{ // 获取包含Hugging Face文本的span元素 const spans = link.querySelectorAll('span.whitespace-nowrap, span.hidden.whitespace-nowrap'); spans.forEach(span => { if (span.textContent && span.textContent.trim().match(/Hugging\s*Face/i)) { span.textContent = 'AI快站'; } }); }); // 替换logo图片的alt属性 document.querySelectorAll('img[alt*="Hugging"], img[alt*="Face"]').forEach(img => { if (img.alt.match(/Hugging\s*Face/i)) { img.alt = 'AI快站 logo'; } }); } // 替换导航栏中的链接 function replaceNavigationLinks() { // 已替换标记,防止重复运行 if (window._navLinksReplaced) { return; } // 已经替换过的链接集合,防止重复替换 const replacedLinks = new Set(); // 只在导航栏区域查找和替换链接 const headerArea = document.querySelector('header') || document.querySelector('nav'); if (!headerArea) { return; } // 在导航区域内查找链接 const navLinks = headerArea.querySelectorAll('a'); navLinks.forEach(link => { // 如果已经替换过,跳过 if (replacedLinks.has(link)) return; const linkText = link.textContent.trim(); const linkHref = link.getAttribute('href') || ''; // 替换Spaces链接 - 仅替换一次 if ( (linkHref.includes('/spaces') || linkHref === '/spaces' || linkText === 'Spaces' || linkText.match(/^s*Spacess*$/i)) && linkText !== 'OCR模型免费转Markdown' && linkText !== 'OCR模型免费转Markdown' ) { link.textContent = 'OCR模型免费转Markdown'; link.href = 'https://fast360.xyz'; link.setAttribute('target', '_blank'); link.setAttribute('rel', 'noopener noreferrer'); replacedLinks.add(link); } // 删除Posts链接 else if ( (linkHref.includes('/posts') || linkHref === '/posts' || linkText === 'Posts' || linkText.match(/^s*Postss*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } // 替换Docs链接 - 仅替换一次 else if ( (linkHref.includes('/docs') || linkHref === '/docs' || linkText === 'Docs' || linkText.match(/^s*Docss*$/i)) && linkText !== '模型下载攻略' ) { link.textContent = '模型下载攻略'; link.href = '/'; replacedLinks.add(link); } // 删除Enterprise链接 else if ( (linkHref.includes('/enterprise') || linkHref === '/enterprise' || linkText === 'Enterprise' || linkText.match(/^s*Enterprises*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } }); // 查找可能嵌套的Spaces和Posts文本 const textNodes = []; function findTextNodes(element) { if (element.nodeType === Node.TEXT_NODE) { const text = element.textContent.trim(); if (text === 'Spaces' || text === 'Posts' || text === 'Enterprise') { textNodes.push(element); } } else { for (const child of element.childNodes) { findTextNodes(child); } } } // 只在导航区域内查找文本节点 findTextNodes(headerArea); // 替换找到的文本节点 textNodes.forEach(node => { const text = node.textContent.trim(); if (text === 'Spaces') { node.textContent = node.textContent.replace(/Spaces/g, 'OCR模型免费转Markdown'); } else if (text === 'Posts') { // 删除Posts文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } else if (text === 'Enterprise') { // 删除Enterprise文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } }); // 标记已替换完成 window._navLinksReplaced = true; } // 替换代码区域中的域名 function replaceCodeDomains() { // 特别处理span.hljs-string和span.njs-string元素 document.querySelectorAll('span.hljs-string, span.njs-string, span[class*="hljs-string"], span[class*="njs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换hljs-string类的span中的域名(移除多余的转义符号) document.querySelectorAll('span.hljs-string, span[class*="hljs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换pre和code标签中包含git clone命令的域名 document.querySelectorAll('pre, code').forEach(element => { if (element.textContent && element.textContent.includes('git clone')) { const text = element.innerHTML; if (text.includes('huggingface.co')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 处理特定的命令行示例 document.querySelectorAll('pre, code').forEach(element => { const text = element.innerHTML; if (text.includes('huggingface.co')) { // 针对git clone命令的专门处理 if (text.includes('git clone') || text.includes('GIT_LFS_SKIP_SMUDGE=1')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 特别处理模型下载页面上的代码片段 document.querySelectorAll('.flex.border-t, .svelte_hydrator, .inline-block').forEach(container => { const content = container.innerHTML; if (content && content.includes('huggingface.co')) { container.innerHTML = content.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 特别处理模型仓库克隆对话框中的代码片段 try { // 查找包含"Clone this model repository"标题的对话框 const cloneDialog = document.querySelector('.svelte_hydration_boundary, [data-target="MainHeader"]'); if (cloneDialog) { // 查找对话框中所有的代码片段和命令示例 const codeElements = cloneDialog.querySelectorAll('pre, code, span'); codeElements.forEach(element => { if (element.textContent && element.textContent.includes('huggingface.co')) { if (element.innerHTML.includes('huggingface.co')) { element.innerHTML = element.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { element.textContent = element.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); } // 更精确地定位克隆命令中的域名 document.querySelectorAll('[data-target]').forEach(container => { const codeBlocks = container.querySelectorAll('pre, code, span.hljs-string'); codeBlocks.forEach(block => { if (block.textContent && block.textContent.includes('huggingface.co')) { if (block.innerHTML.includes('huggingface.co')) { block.innerHTML = block.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { block.textContent = block.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); }); } catch (e) { // 错误处理但不打印日志 } } // 当DOM加载完成后执行替换 if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', () => { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); }); } else { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); } // 增加一个MutationObserver来处理可能的动态元素加载 const observer = new MutationObserver(mutations => { // 检查是否导航区域有变化 const hasNavChanges = mutations.some(mutation => { // 检查是否存在header或nav元素变化 return Array.from(mutation.addedNodes).some(node => { if (node.nodeType === Node.ELEMENT_NODE) { // 检查是否是导航元素或其子元素 if (node.tagName === 'HEADER' || node.tagName === 'NAV' || node.querySelector('header, nav')) { return true; } // 检查是否在导航元素内部 let parent = node.parentElement; while (parent) { if (parent.tagName === 'HEADER' || parent.tagName === 'NAV') { return true; } parent = parent.parentElement; } } return false; }); }); // 只在导航区域有变化时执行替换 if (hasNavChanges) { // 重置替换状态,允许再次替换 window._navLinksReplaced = false; replaceHeaderBranding(); replaceNavigationLinks(); } }); // 开始观察document.body的变化,包括子节点 if (document.body) { observer.observe(document.body, { childList: true, subtree: true }); } else { document.addEventListener('DOMContentLoaded', () => { observer.observe(document.body, { childList: true, subtree: true }); }); } })(); \n\n\n"},"repo_name":{"kind":"string","value":"efraxpc/SEPPP"},"path":{"kind":"string","value":"index.html"},"language":{"kind":"string","value":"HTML"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":256,"string":"256"}}},{"rowIdx":1317,"cells":{"code":{"kind":"string","value":"\n\n\n\n\n\nnucleo-dynamixel: HAL TIM Aliased Macros maintained for legacy purpose\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
\n\n \n \n \n \n \n
\n
nucleo-dynamixel\n  0.0.1\n
\n
A library for controlling dynamixel servomotors, designed for nucleo stm32
\n
\n
\n\n\n\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n\n
\n
\n\n\n
\n\n
\n\n
\n \n
\n
HAL TIM Aliased Macros maintained for legacy purpose
\n
\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n

\nMacros

\n#define __HAL_TIM_SetICPrescalerValue   TIM_SET_ICPRESCALERVALUE
 
\n#define __HAL_TIM_ResetICPrescalerValue   TIM_RESET_ICPRESCALERVALUE
 
\n#define TIM_GET_ITSTATUS   __HAL_TIM_GET_IT_SOURCE
 
\n#define TIM_GET_CLEAR_IT   __HAL_TIM_CLEAR_IT
 
\n#define __HAL_TIM_GET_ITSTATUS   __HAL_TIM_GET_IT_SOURCE
 
\n#define __HAL_TIM_DIRECTION_STATUS   __HAL_TIM_IS_TIM_COUNTING_DOWN
 
\n#define __HAL_TIM_PRESCALER   __HAL_TIM_SET_PRESCALER
 
\n#define __HAL_TIM_SetCounter   __HAL_TIM_SET_COUNTER
 
\n#define __HAL_TIM_GetCounter   __HAL_TIM_GET_COUNTER
 
\n#define __HAL_TIM_SetAutoreload   __HAL_TIM_SET_AUTORELOAD
 
\n#define __HAL_TIM_GetAutoreload   __HAL_TIM_GET_AUTORELOAD
 
\n#define __HAL_TIM_SetClockDivision   __HAL_TIM_SET_CLOCKDIVISION
 
\n#define __HAL_TIM_GetClockDivision   __HAL_TIM_GET_CLOCKDIVISION
 
\n#define __HAL_TIM_SetICPrescaler   __HAL_TIM_SET_ICPRESCALER
 
\n#define __HAL_TIM_GetICPrescaler   __HAL_TIM_GET_ICPRESCALER
 
\n#define __HAL_TIM_SetCompare   __HAL_TIM_SET_COMPARE
 
\n#define __HAL_TIM_GetCompare   __HAL_TIM_GET_COMPARE
 
\n#define TIM_TS_ITR0   ((uint32_t)0x0000)
 
\n#define TIM_TS_ITR1   ((uint32_t)0x0010)
 
\n#define TIM_TS_ITR2   ((uint32_t)0x0020)
 
\n#define TIM_TS_ITR3   ((uint32_t)0x0030)
 
#define IS_TIM_INTERNAL_TRIGGER_SELECTION(SELECTION)
 
\n#define TIM_CHANNEL_1   ((uint32_t)0x0000)
 
\n#define TIM_CHANNEL_2   ((uint32_t)0x0004)
 
#define IS_TIM_PWMI_CHANNELS(CHANNEL)
 
\n#define TIM_OUTPUTNSTATE_DISABLE   ((uint32_t)0x0000)
 
\n#define TIM_OUTPUTNSTATE_ENABLE   (TIM_CCER_CC1NE)
 
#define IS_TIM_OUTPUTN_STATE(STATE)
 
\n#define TIM_OUTPUTSTATE_DISABLE   ((uint32_t)0x0000)
 
\n#define TIM_OUTPUTSTATE_ENABLE   (TIM_CCER_CC1E)
 
#define IS_TIM_OUTPUT_STATE(STATE)
 
\n

Detailed Description

\n

Macro Definition Documentation

\n\n
\n
\n \n \n \n \n \n \n \n \n
#define IS_TIM_INTERNAL_TRIGGER_SELECTION( SELECTION)
\n
\nValue:
(((SELECTION) == TIM_TS_ITR0) || \\
((SELECTION) == TIM_TS_ITR1) || \\
((SELECTION) == TIM_TS_ITR2) || \\
((SELECTION) == TIM_TS_ITR3))
\n
\n
\n\n
\n
\n \n \n \n \n \n \n \n \n
#define IS_TIM_OUTPUT_STATE( STATE)
\n
\nValue:
(((STATE) == TIM_OUTPUTSTATE_DISABLE) || \\
((STATE) == TIM_OUTPUTSTATE_ENABLE))
\n
\n
\n\n
\n
\n \n \n \n \n \n \n \n \n
#define IS_TIM_OUTPUTN_STATE( STATE)
\n
\nValue:
(((STATE) == TIM_OUTPUTNSTATE_DISABLE) || \\
((STATE) == TIM_OUTPUTNSTATE_ENABLE))
\n
\n
\n\n
\n
\n \n \n \n \n \n \n \n \n
#define IS_TIM_PWMI_CHANNELS( CHANNEL)
\n
\nValue:
(((CHANNEL) == TIM_CHANNEL_1) || \\
((CHANNEL) == TIM_CHANNEL_2))
\n
\n
\n
\n
\n\n
\n
    \n
  • Generated by\n \n \"doxygen\"/ 1.8.11
  • \n
\n
\n\n\n"},"repo_name":{"kind":"string","value":"team-diana/nucleo-dynamixel"},"path":{"kind":"string","value":"docs/html/group___h_a_l___t_i_m___aliased___macros.html"},"language":{"kind":"string","value":"HTML"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":21613,"string":"21,613"}}},{"rowIdx":1318,"cells":{"code":{"kind":"string","value":"// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually\n#pragma once\n\n#include \n\n\nSTART_ATF_NAMESPACE\n typedef SLR_FLAGS __MIDL___MIDL_itf_shobjidl_0212_0001;\nEND_ATF_NAMESPACE\n"},"repo_name":{"kind":"string","value":"goodwinxp/Yorozuya"},"path":{"kind":"string","value":"library/ATF/__MIDL___MIDL_itf_shobjidl_0212_0001.hpp"},"language":{"kind":"string","value":"C++"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":250,"string":"250"}}},{"rowIdx":1319,"cells":{"code":{"kind":"string","value":"FROM johnnyasantoss/dotnet-mono-docker:dotnet2.0-mono5.2-sdk\n\nWORKDIR /app\n\nCOPY ./** /app/\n\nRUN apt-get update && apt-get install -y libgit2-24\n\nRUN ./build.sh -t \"pack\" -v > dockerbuild.txt 2>&1\n"},"repo_name":{"kind":"string","value":"PagueVeloz/JsonFluentMap"},"path":{"kind":"string","value":"Dockerfile"},"language":{"kind":"string","value":"Dockerfile"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":197,"string":"197"}}},{"rowIdx":1320,"cells":{"code":{"kind":"string","value":"#region Copyright (c) 2014 Orcomp development team.\n// -------------------------------------------------------------------------------------------------------------------\n// \n// Copyright (c) 2014 Orcomp development team. All rights reserved.\n// \n// --------------------------------------------------------------------------------------------------------------------\n#endregion\n\nnamespace Orc.GraphExplorer.ViewModels\n{\n using System.ComponentModel;\n using System.Threading.Tasks;\n\n using Catel;\n using Catel.Configuration;\n using Catel.MVVM;\n using Factories;\n using Messages;\n using Models;\n using Services;\n\n public class GraphExplorerViewModel : ViewModelBase\n {\n #region Fields\n private readonly IGraphDataService _graphDataService;\n private readonly IGraphExplorerFactory _graphExplorerFactory;\n\n private readonly INavigationService _navigationService;\n #endregion\n\n #region Constructors\n public GraphExplorerViewModel(IGraphDataService graphDataService, IGraphExplorerFactory graphExplorerFactory, INavigationService navigationService)\n {\n Argument.IsNotNull(() => graphDataService);\n Argument.IsNotNull(() => graphExplorerFactory);\n Argument.IsNotNull(() => navigationService);\n\n _graphDataService = graphDataService;\n _graphExplorerFactory = graphExplorerFactory;\n _navigationService = navigationService;\n\n Explorer = _graphExplorerFactory.CreateExplorer();\n\n CloseNavTabCommand = new Command(OnCloseNavTabCommandExecute);\n\n OpenSettingsCommand = new Command(OnOpenSettingsCommandExecute);\n\n EditingStartStopMessage.Register(this, OnEditingStartStopMessage, Explorer.EditorToolset.ToolsetName);\n ReadyToLoadGraphMessage.Register(this, OnReadyToLoadGraphMessage);\n NavigationMessage.Register(this, OnNavigationMessage);\n }\n\n\n #endregion\n\n #region Properties\n /// \n /// Gets the OpenSettingsCommand command.\n /// \n public Command OpenSettingsCommand { get; private set; }\n\n /// \n /// Gets the CloseNavTabCommand command.\n /// \n public Command CloseNavTabCommand { get; private set; }\n\n /// \n /// Gets or sets the property value.\n /// \n [Model]\n public Explorer Explorer { get; set; }\n\n /// \n /// Gets or sets the property value.\n /// \n [Model]\n [ViewModelToModel(\"Explorer\")]\n public Settings Settings { get; set; }\n\n /// \n /// Gets or sets the property value.\n /// \n [ViewModelToModel(\"Settings\")]\n public bool IsSettingsVisible { get; set; }\n\n /// \n /// Gets or sets the property value.\n /// \n [Model]\n [ViewModelToModel(\"Explorer\")]\n public GraphToolset EditorToolset { get; set; }\n\n /// \n /// Gets or sets the property value.\n /// \n [ViewModelToModel(\"EditorToolset\")]\n public bool IsChanged { get; set; }\n\n /// \n /// Gets or sets the property value.\n /// \n [ViewModelToModel(\"Explorer\")]\n public bool IsNavTabVisible { get; set; }\n\n /// \n /// Gets or sets the property value.\n /// \n [ViewModelToModel(\"Explorer\")]\n public bool IsNavTabSelected { get; set; }\n\n /// \n /// Gets or sets the property value.\n /// \n [DefaultValue(false)]\n public bool IsEditorTabSelected { get; set; }\n #endregion\n\n #region Methods\n private void OnNavigationMessage(NavigationMessage message)\n {\n _navigationService.NavigateTo(Explorer, message.Data);\n }\n\n private void OnReadyToLoadGraphMessage(ReadyToLoadGraphMessage message)\n {\n var editorArea = Explorer.EditorToolset.Area;\n if (string.Equals(message.Data, \"Editor\") && editorArea.GraphDataGetter == null)\n {\n editorArea.GraphDataGetter = _graphDataService;\n editorArea.GraphDataSaver = _graphDataService;\n }\n\n var navigatorArea = Explorer.NavigatorToolset.Area;\n if (string.Equals(message.Data, \"Navigator\") && navigatorArea.GraphDataGetter == null)\n {\n navigatorArea.GraphDataGetter = new NavigatorGraphDataGetter();\n }\n }\n\n private void OnEditingStartStopMessage(EditingStartStopMessage message)\n {\n if (message.Data)\n {\n IsNavTabVisible = false;\n }\n }\n\n protected override async Task Initialize()\n {\n await base.Initialize();\n IsEditorTabSelected = true;\n }\n\n /// \n /// Method to invoke when the OpenSettingsCommand command is executed.\n /// \n private void OnOpenSettingsCommandExecute()\n {\n IsSettingsVisible = !IsSettingsVisible;\n }\n\n /// \n /// Method to invoke when the CloseNavTabCommand command is executed.\n /// \n private void OnCloseNavTabCommandExecute()\n {\n IsNavTabVisible = false;\n IsNavTabSelected = false;\n IsEditorTabSelected = true;\n }\n #endregion\n }\n}"},"repo_name":{"kind":"string","value":"Orcomp/Orc.GraphExplorer"},"path":{"kind":"string","value":"src/Orc.GraphExplorer/ViewModels/GraphExplorerViewModel.cs"},"language":{"kind":"string","value":"C#"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":5680,"string":"5,680"}}},{"rowIdx":1321,"cells":{"code":{"kind":"string","value":"require 'spec_helper'\n\ndescribe Fastball do\n it 'has a version number' do\n expect(Fastball::VERSION).not_to be nil\n end\nend\n"},"repo_name":{"kind":"string","value":"jbgo/fastball"},"path":{"kind":"string","value":"spec/lib/fastball_spec.rb"},"language":{"kind":"string","value":"Ruby"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":129,"string":"129"}}},{"rowIdx":1322,"cells":{"code":{"kind":"string","value":"namespace IronSharp.IronMQ\n{\n /// \n /// http://dev.iron.io/mq/reference/clouds/\n /// \n public static class IronMqCloudHosts\n {\n public const string DEFAULT = AWS_US_EAST_HOST;\n\n /// \n /// Default\n /// \n public const string AWS_US_EAST_HOST = \"mq-aws-us-east-1-1.iron.io\";\n }\n}\n"},"repo_name":{"kind":"string","value":"iron-io/iron_dotnet"},"path":{"kind":"string","value":"src/IronSharp.IronMQ/IronMqCloudHosts.cs"},"language":{"kind":"string","value":"C#"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":371,"string":"371"}}},{"rowIdx":1323,"cells":{"code":{"kind":"string","value":"The MIT License (MIT)\n\nCopyright (c) crdx\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},"repo_name":{"kind":"string","value":"crdx/utorrent-mrc"},"path":{"kind":"string","value":"LICENCE.md"},"language":{"kind":"string","value":"Markdown"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":1066,"string":"1,066"}}},{"rowIdx":1324,"cells":{"code":{"kind":"string","value":"package com.yngvark.communicate_through_named_pipes.input;\n\nimport org.slf4j.Logger;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\n\nimport static org.slf4j.LoggerFactory.getLogger;\n\npublic class InputFileReader {\n private final Logger logger = getLogger(getClass());\n private final BufferedReader bufferedReader;\n\n private boolean run = true;\n private boolean streamClosed = false;\n\n public InputFileReader(BufferedReader bufferedReader) {\n this.bufferedReader = bufferedReader;\n }\n\n /**\n * @throws IORuntimeException If an {@link java.io.IOException} occurs.\n */\n public void consume(MessageListener messageListener) throws RuntimeException {\n logger.debug(\"Consume: start.\");\n\n try {\n tryToConsume(messageListener);\n } catch (IOException e) {\n throw new IORuntimeException(e);\n }\n\n logger.debug(\"\");\n logger.debug(\"Consume: done.\");\n }\n\n private void tryToConsume(MessageListener messageListener) throws IOException {\n String msg = null;\n while (run) {\n msg = bufferedReader.readLine();\n if (msg == null)\n break;\n\n logger.trace(\"<<< From other side: \" + msg);\n messageListener.messageReceived(msg);\n }\n\n if (msg == null) {\n logger.debug(\"Consume file stream was closed from other side.\");\n }\n\n bufferedReader.close();\n }\n\n public synchronized void closeStream() {\n logger.debug(\"Stopping consuming input file...\");\n if (streamClosed) {\n logger.info(\"Already stopped.\");\n return;\n }\n\n run = false;\n try {\n logger.trace(\"Closing buffered reader.\");\n bufferedReader.close();\n streamClosed = true;\n } catch (IOException e) {\n logger.error(\"Caught exception when closing stream: {}\", e);\n }\n\n logger.debug(\"Stopping consuming input file... done\");\n }\n}\n"},"repo_name":{"kind":"string","value":"yngvark/gridwalls2"},"path":{"kind":"string","value":"source/lib/communicate-through-named-pipes/source/src/main/java/com/yngvark/communicate_through_named_pipes/input/InputFileReader.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":2016,"string":"2,016"}}},{"rowIdx":1325,"cells":{"code":{"kind":"string","value":"---\nlayout: post\ntitle: Syntax Highlighting Post\ndescription: \"Demo post displaying the various ways of highlighting code in Markdown.\"\nmodified: 2016-06-01T15:27:45-04:00\ntags: [sample post, code, highlighting]\npublished: false\nimage:\n feature: abstract-10.jpg\n credit: dargadgetz\n creditlink: http://www.dargadgetz.com/ios-7-abstract-wallpaper-pack-for-iphone-5-and-ipod-touch-retina/\n---\n\nSyntax highlighting is a feature that displays source code, in different colors and fonts according to the category of terms. This feature facilitates writing in a structured language such as a programming language or a markup language as both structures and syntax errors are visually distinct. Highlighting does not affect the meaning of the text itself; it is intended only for human readers.[^1]\n\n[^1]: \n\n### GFM Code Blocks\n\nGitHub Flavored Markdown [fenced code blocks](https://help.github.com/articles/creating-and-highlighting-code-blocks/) are supported. To modify styling and highlight colors edit `/_sass/syntax.scss`.\n\n```css\n#container {\n float: left;\n margin: 0 -240px 0 0;\n width: 100%;\n}\n```\n\n{% highlight scss %}\n.highlight {\n margin: 0;\n padding: 1em;\n font-family: $monospace;\n font-size: $type-size-7;\n line-height: 1.8;\n}\n{% endhighlight %}\n\n```html\n{% raw %}{% endraw %}\n```\n\n{% highlight html linenos %}\n{% raw %}{% endraw %}\n{% endhighlight %}\n\n```ruby\nmodule Jekyll\n class TagIndex < Page\n def initialize(site, base, dir, tag)\n @site = site\n @base = base\n @dir = dir\n @name = 'index.html'\n self.process(@name)\n self.read_yaml(File.join(base, '_layouts'), 'tag_index.html')\n self.data['tag'] = tag\n tag_title_prefix = site.config['tag_title_prefix'] || 'Tagged: '\n tag_title_suffix = site.config['tag_title_suffix'] || '&#8211;'\n self.data['title'] = \"#{tag_title_prefix}#{tag}\"\n self.data['description'] = \"An archive of posts tagged #{tag}.\"\n end\n end\nend\n```\n\n### Code Blocks in Lists\n\nIndentation matters. Be sure the indent of the code block aligns with the first non-space character after the list item marker (e.g., `1.`). Usually this will mean indenting 3 spaces instead of 4.\n\n1. Do step 1.\n2. Now do this:\n \n ```ruby\n def print_hi(name)\n puts \"Hi, #{name}\"\n end\n print_hi('Tom')\n #=> prints 'Hi, Tom' to STDOUT.\n ```\n \n3. Now you can do this.\n\n### GitHub Gist Embed\n\nAn example of a Gist embed below.\n\n{% gist mmistakes/6589546 %}"},"repo_name":{"kind":"string","value":"yfuseki/yfuseki.github.io"},"path":{"kind":"string","value":"_posts/2013-08-16-code-highlighting-post.md"},"language":{"kind":"string","value":"Markdown"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":3246,"string":"3,246"}}},{"rowIdx":1326,"cells":{"code":{"kind":"string","value":"'use strict';\nvar _ = require('lodash'),\n jsonFormat = require('json-format'),\n grunt = require('grunt');\n\nvar util = require('../util/util');\n\nmodule.exports = {\n json: function(data, options, generatedContent, callback){\n if(_.isString(options.dest)){\n grunt.file.write(options.dest + '/json/' + generatedContent.task + '.json', jsonFormat(generatedContent));\n grunt.file.write(options.dest + '/json/content/' + data.uuid + '.json', jsonFormat(data));\n }\n callback(generatedContent);\n }\n};\n\n//\n"},"repo_name":{"kind":"string","value":"lwhiteley/grunt-pagespeed-report"},"path":{"kind":"string","value":"tasks/config/reporters/json.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":523,"string":"523"}}},{"rowIdx":1327,"cells":{"code":{"kind":"string","value":"/**\n * Dont edit this file!\n * This module generates itself from lang.js files!\n * Instead edit the language files in /lang/\n **/\n\n/*global define*/\ndefine(function () {\n\"use strict\";\nvar i18n = {};\n\ni18n.de = {\n \"Visit %s overview\" : \"Zur %s Übersicht\",\n \"An error occured, please reload.\" : \"Es gab einen unerwarteten Fehler. Bitte laden Sie die Seite neu.\",\n \"Order successfully saved\" : \"Reihenfolge erfolgreich gespeichert\",\n \"Your browser doesnt support the following technologies: %s
Please update your browser!\" : \"Ihr Browser unterstützt die folgenden Technologien nicht: %s
Bitte installieren Sie eine neuere Version Ihres Browsers!\",\n \"Close\" : \"Schließen\",\n \"When asynchronously trying to load a ressource, I came across an error: %s\" : \"Beim Laden einer Ressource gab es leider folgenden Fehler: %s\",\n \"You are using an outdated web browser. Please consider an update!\" : \"Sie benutzen eine veraltete Browser Version. Bitte installieren Sie einen aktuelleren Browser.\",\n \"No results found.\" : \"Keine Ergebnisse gefunden.\",\n \"No results found for \\\"%s\\\".\" : \"Keine Ergebnisse für \\\"%s\\\" gefunden.\",\n \"Illegal injection found\" : \"\",\n \"Could not load injection\" : \"\",\n \"You\\'re almost done!\" : \"Du hast es fast geschafft!\",\n \"Show overview\" : \"Übersicht anzeigen\",\n \"Show %d contents for \\\"%s\\\"\" : \"\",\n \"Abort\": \"Abbrechen\"\n};\n\ni18n.en = {\n \"An error occured, please reload.\" : \"\",\n \"Close\" : \"\",\n \"Visit %s overview\" : \"\",\n \"Order successfully saved\" : \"\",\n \"Your browser doesnt support the following technologies: %s
Please update your browser!\" : \"\",\n \"When asynchronously trying to load a ressource, I came across an error: %s\" : \"\",\n \"You are using an outdated web browser. Please consider an update!\" : \"\",\n \"No results found.\" : \"\",\n \"No results found for \\\"%s\\\".\" : \"\",\n \"Illegal injection found\" : \"\",\n \"Could not load injection\" : \"\",\n \"You\\'re almost done!\" : \"\",\n \"Show overview\" : \"\",\n \"Show %d contents for \\\"%s\\\"\" : \"\",\n \"Abort\": \"\"\n};\n\nreturn i18n;\n});"},"repo_name":{"kind":"string","value":"creitiv/athene2"},"path":{"kind":"string","value":"src/assets/source/scripts/modules/serlo_i18n.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":2085,"string":"2,085"}}},{"rowIdx":1328,"cells":{"code":{"kind":"string","value":"---\nlayout: page\ntitle: \"ACCT 4825: Experimental Seminar Statistics\"\ncomments: true\ndescription: \"blanks\"\nkeywords: \"ACCT,4825,CU,Boulder\"\n---\n\n\n\n\n\n\n\n\t
\n\t\n\n\t\t\t \n#### GRADE AND WORKLOAD STATISTICS\n\n**Percent withdrawn**: 0.0%\n\n**Percent incomplete**: 0.0%\n\n**Average grade** (4.0 scale): 3.3\n\n**Standard deviation in grades** (4.0 scale): 0.0\n\n**Average workload** (raw): 2.62\n\n**Standard deviation in workload** (raw): 0.0\n\n#### COURSE AND INSTRUCTOR RATINGS/INFORMATION\n\n**Average course rating** (6 point scale): 5.32\n\n**Standard deviation in course rating** (6 point scale): 0.0\n\n**Average instructor rating** (6 point scale): 5.86\n\n**Standard deviation in instructor rating** (6 point scale): 0.0\n\n**Instructors**: Susan Morley\n\n#### GENERAL CLASS INFORMATION\n\n**Years provided**: Fall 2011\n\n**Credits**: 3\n\n**RAP/Honors class?** Neither\n\n**Number of Sections**: 1\n\n**Department**: BADM\n\n**College**: Leeds School of Business\n\n**Level**: Upper\n\n**Activity**: LEC - Lecture\n"},"repo_name":{"kind":"string","value":"nikhilrajaram/nikhilrajaram.github.io"},"path":{"kind":"string","value":"courses/ACCT-4825.md"},"language":{"kind":"string","value":"Markdown"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":2593,"string":"2,593"}}},{"rowIdx":1329,"cells":{"code":{"kind":"string","value":"use chrono::{offset::Utc, DateTime};\nuse rustorm::{pool, DbError, FromDao, Pool, ToColumnNames, ToDao, ToTableName};\n\n/// Run using:\n/// ```sh\n/// cargo run --example insert_usage_mysql --features \"with-mysql\"\n/// ```\nfn main() {\n mod for_insert {\n use super::*;\n #[derive(Debug, PartialEq, ToDao, ToColumnNames, ToTableName)]\n pub struct Actor {\n pub first_name: String,\n pub last_name: String,\n }\n }\n\n mod for_retrieve {\n use super::*;\n #[derive(Debug, FromDao, ToColumnNames, ToTableName)]\n pub struct Actor {\n pub actor_id: i32,\n pub first_name: String,\n pub last_name: String,\n pub last_update: DateTime,\n }\n }\n\n let db_url = \"mysql://root:r00tpwdh3r3@localhost/sakila\";\n let mut pool = Pool::new();\n pool.ensure(db_url);\n let mut em = pool.em(db_url).expect(\"Can not connect\");\n let tom_cruise = for_insert::Actor {\n first_name: \"TOM\".into(),\n last_name: \"CRUISE\".to_string(),\n };\n let tom_hanks = for_insert::Actor {\n first_name: \"TOM\".into(),\n last_name: \"HANKS\".to_string(),\n };\n println!(\"tom_cruise: {:#?}\", tom_cruise);\n println!(\"tom_hanks: {:#?}\", tom_hanks);\n\n let actors: Result, DbError> = em.insert(&[&tom_cruise, &tom_hanks]);\n println!(\"Actor: {:#?}\", actors);\n assert!(actors.is_ok());\n let actors = actors.unwrap();\n let today = Utc::now().date();\n assert_eq!(tom_cruise.first_name, actors[0].first_name);\n assert_eq!(tom_cruise.last_name, actors[0].last_name);\n assert_eq!(today, actors[0].last_update.date());\n assert_eq!(tom_hanks.first_name, actors[1].first_name);\n assert_eq!(tom_hanks.last_name, actors[1].last_name);\n assert_eq!(today, actors[1].last_update.date());\n}\n"},"repo_name":{"kind":"string","value":"ivanceras/rustorm"},"path":{"kind":"string","value":"examples/insert_usage_mysql.rs"},"language":{"kind":"string","value":"Rust"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":1853,"string":"1,853"}}},{"rowIdx":1330,"cells":{"code":{"kind":"string","value":"// Copyright 2017 The Lynx Authors. All rights reserved.\n\n#ifndef LYNX_BASE_THREADING_MESSAGE_PUMP_POSIX_H_\n#define LYNX_BASE_THREADING_MESSAGE_PUMP_POSIX_H_\n\n#include \"base/task/task.h\"\n#include \"base/threading/condition.h\"\n#include \"base/threading/message_pump.h\"\n#include \"base/timer/timer.h\"\n\nnamespace base {\n\nclass MessagePumpPosix : public MessagePump {\n public:\n MessagePumpPosix();\n\n virtual ~MessagePumpPosix();\n\n virtual void Run(Delegate* delegate);\n\n virtual void ScheduleWork();\n\n virtual void ScheduleDelayedWork(Closure* closure, int delayed_time);\n\n virtual void ScheduleIntervalWork(Closure* closure, int delayed_time);\n \n virtual void Stop();\n private:\n Condition condition_;\n\n Timer timer_;\n\n bool keep_running_;\n};\n} // namespace base\n\n#endif // LYNX_BASE_THREADING_MESSAGE_PUMP_POSIX_H_\n"},"repo_name":{"kind":"string","value":"hxxft/lynx-native"},"path":{"kind":"string","value":"Core/base/threading/message_pump_posix.h"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":844,"string":"844"}}},{"rowIdx":1331,"cells":{"code":{"kind":"string","value":"'use strict';\n\n/**\n * Module dependencies.\n */\nvar path = require('path'),\n mongoose = require('mongoose'),\n Person = mongoose.model('Person'),\n errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')),\n _ = require('lodash');\n\n/**\n * Create a Person\n */\nexports.create = function(req, res) {\n var person = new Person(req.body);\n person.user = req.user;\n\n person.save(function(err) {\n if (err) {\n return res.status(400).send({\n message: errorHandler.getErrorMessage(err)\n });\n } else {\n res.jsonp(person);\n }\n });\n};\n\n/**\n * Show the current Person\n */\nexports.read = function(req, res) {\n // convert mongoose document to JSON\n var person = req.person ? req.person.toJSON() : {};\n\n // Add a custom field to the Article, for determining if the current User is the \"owner\".\n // NOTE: This field is NOT persisted to the database, since it doesn't exist in the Article model.\n // person.isCurrentUserOwner = req.user && person.user && person.user._id.toString() === req.user._id.toString();\n\n res.jsonp(person);\n};\n\n/**\n * Update a Person\n */\nexports.update = function(req, res) {\n var person = req.person;\n\n person = _.extend(person, req.body);\n\n person.save(function(err) {\n if (err) {\n return res.status(400).send({\n message: errorHandler.getErrorMessage(err)\n });\n } else {\n res.jsonp(person);\n }\n });\n};\n\n/**\n * Delete a Person\n */\nexports.delete = function(req, res) {\n var person = req.person;\n\n person.remove(function(err) {\n if (err) {\n return res.status(400).send({\n message: errorHandler.getErrorMessage(err)\n });\n } else {\n res.jsonp(person);\n }\n });\n};\n\n/**\n * List of People\n */\nexports.list = function(req, res) {\n var search = {};\n if (req.query.full_name) {\n search.full_name = new RegExp(req.query.full_name, 'i');\n }\n if (req.query.url) {\n search.url = new RegExp(req.query.url, 'i');\n }\n if (req.query.email) {\n search.email = new RegExp(req.query.email, 'i');\n }\n if (req.query.job) {\n search.job = new RegExp(req.query.job, 'i');\n }\n if (req.query.location_safe) {\n search.location_safe = new RegExp(req.query.location_safe, 'i');\n }\n if (req.query.phone) {\n search.phone = new RegExp(req.query.phone, 'i');\n }\n if (req.query.notes) {\n search.notes = new RegExp(req.query.notes, 'i');\n }\n if (req.query.keywords) {\n search.keywords = new RegExp(req.query.keywords, 'i');\n }\n\n Person.find(search).sort('-created').exec(function (err, people) {\n if (err) {\n return res.status(400).send({\n message: err.message\n });\n } else {\n res.json(people);\n }\n });\n};\n\n/**\n * List of Dupliacte People\n */\nexports.duplicates = function (req, res) {\n\n var aggregate = [\n {\n $group: {\n _id: { url: '$url' },\n count: { $sum: 1 }\n }\n }, {\n $match: {\n count: { $gte: 2 }\n }\n }\n ];\n\n Person.aggregate(aggregate, function (err, groups) {\n\n if (err) {\n return res.status(400).send({\n message: err.message\n });\n\n } else {\n var dup_urls = [];\n for (var i = 0; i < groups.length; i++) {\n var group = groups[i];\n var _id = group._id;\n dup_urls.push(_id.url);\n }\n\n Person.find({ url: { $in: dup_urls } }).sort('url').exec(function (err, people) {\n if (err) {\n return res.status(400).send({\n message: err.message\n });\n } else {\n res.json(people);\n }\n });\n\n }\n\n });\n\n};\n\n/**\n * Person middleware\n */\nexports.personByID = function(req, res, next, id) {\n\n if (!mongoose.Types.ObjectId.isValid(id)) {\n return res.status(400).send({\n message: 'Person is invalid'\n });\n }\n\n Person.findById(id).populate('user', 'displayName').exec(function (err, person) {\n if (err) {\n return next(err);\n } else if (!person) {\n return res.status(404).send({\n message: 'No Person with that identifier has been found'\n });\n }\n req.person = person;\n next();\n });\n};\n\n"},"repo_name":{"kind":"string","value":"tmrotz/LinkedIn-People-MEAN.JS"},"path":{"kind":"string","value":"modules/people/server/controllers/people.server.controller.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":4096,"string":"4,096"}}},{"rowIdx":1332,"cells":{"code":{"kind":"string","value":"---\ntitle: \"Spreadsheet hijinks\"\nexcerpt: The results from crowd-sourcing a suitable term for a common spreadsheet practice.\ntags:\n - excel\n - munging\n - unheadr\n - clippy\nheader: \n image: /assets/images/featureExcel.png\n---\n\nEarlier in the week Jenny Bryan helped me ask the Twitter community what to call this widely used spreadsheet habit (see the image in my Tweet).\n\n

Do you have a pithy name for this spreadsheet phenomenon? Do tell! https://t.co/XbqOOSmr4i

&mdash; Jenny Bryan (@JennyBryan) September 10, 2018
\n\n\nI kept track of the replies to my tweet and to Jenny's retweet, and here are _most_ of the suggested names... \n\n
\n \n
\n\n\nand again as a proper table...\n\n|term given |user hande |\n|:------------------------------------------------------------------------|:----------------|\n|Replies to Luis |NA |\n|pain in the neck |@AnneMarie_DC |\n|interrupting subheaders |@pandapoop42 |\n|Interstitial group labels |@BrodieGaslam |\n|Nested relational model |@arnabdotorg |\n|subgroups |@Thoughtfulnz |\n|group titles, group names |@benomial |\n|partial normalization for human/visual consumption |@jgraham909 |\n|groups, grouping |@jgraham909 |\n|demon rows |@NthChapter |\n|Meta-data |@IsabellaGhement |\n|Embheaders (embedded headers) |@tammylarmstrong |\n|pivots |@antonycourtney |\n|spreadsheet block groups, spreadsheet sub-table groups, sub-table groups |@cormac85 |\n|Meta-data headers |@cbirunda |\n|group representatives, grouping criterion |@Teggy |\n|complete shit |@StevenNHart |\n|2D matrix in a column of a data frame |@dnlakhotia |\n|subgroups |@enoches |\n|paragraph grouping |@gshotwell |\n|Highlighted Collapsed Factor |@PragmaticDon |\n|small multiples |@nacnudus |\n|Replies to Jenny |NA |\n|Merged cells gone wild |@RikaGorn |\n|windowmakers, widowmakers |@polesasunder |\n|rowgory, separators |@EmilyRiederer |\n|Factros (factor rows) |@EmilyRiederer |\n|Growps = row + groups |@thmscwlls |\n|20 minutes of uninterrupted screaming |@tpoi |\n|premature tabulation |@pdalgd |\n|Read bumps |@MilesMcBain |\n|Row group headers |@dmik3 |\n|factor interruptus |@zentree |\n|Beheaders |@djhocking |\n|Third Abnormal Form |@pitakakariki |\n|Hydra |@JasonWilliamsNY |\n|stubs |@IanDennisMiller |\n|nuisance categorical (or subgroup) variables |@nspyrison |\n|Categorical nuisance formatting |@nspyrison |\n|Business logic |@doomsuckle |\n|Data beheading! Factorless features, grouping gone wrong... |@SamanthaSifleet |\n|Adjacent attribution |@dagoodman1 |\n|group names |@benomial |\n|facet but in tabular form |@kdpsinghlab |\n|murder of rows |@RileenSinha |\n|GroupNotRow |@kevin_lanning |\n\nOverall, there seemed to be no clear-cut consensus but a few themes kept popping up, such as: groups, subgroups, headers, row groups, etc. Everyone is familiar with this somewhat annoying practice, and people from different disciplines pitched in with interpretations that often invoked concepts from database normalization or pivot tables.\n\nPersonally, I'm now partial to calling these things **embedded subheaders**. The header row typically contains the variable names, and the subheader concept seems more flexible. In this case they are embedded in the data rectangle to define subgroups or slices of data, equivalent to the **small multiples** concept from data visualization, as suggested by Duncan Garmonsway in his [Spreadsheet Munging](https://nacnudus.github.io/spreadsheet-munging-strategies/index.html) book. \n\nI particularly liked **adjacent attribution** (suggested by Daniel Goodman) as a way to explain how embedded subheaders are expected to work. From what I could find out, this is a term from computer science used when defining clauses used to parse text strings. Embedded subheaders imply that the rows below them belong to a subgroup until a new subheader indicates otherwise, so establishing membership across different groups is a good example of attribution by adjaceny. \n\nLastly, I liked the name _factros_ (factor rows) suggested by Emily Riederer, it has a cool _tidyverse_ ring to it and I when I update the documentation for _unheadr_ (an [R](https://github.com/luisDVA/unheadr) package that can untangle most cases of embedded subheaders) with everyone's feedback I will try to work it in.\n\n\nIf you have any other suggestions please let me know.\n\n\n\n"},"repo_name":{"kind":"string","value":"luisDVA/luisdva.github.io"},"path":{"kind":"string","value":"_posts/2018-09-14-spreadsheet-hijinks.md"},"language":{"kind":"string","value":"Markdown"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":7271,"string":"7,271"}}},{"rowIdx":1333,"cells":{"code":{"kind":"string","value":"#include \n#include \n#include \n#include \n#include \n#include \n\nusing namespace std;\nusing namespace jam;\n\nstruct JoinK {\n \n JoinK(vector>&& input, int kIn) : g(input), k(kIn) { n = g.size(); }\n \n void rotate() {\n for (auto& v : g) {\n v.erase(remove(v.begin(), v.end(), '.'), v.end());\n v.insert(v.begin(), g.size() - v.size(), '.');\n }\n }\n \n bool winAt(int i, int j, char c) {\n bool winRight = false, winDown = false, winDiagRight = false, winDiagLeft = false;\n if (i <= n - k) {\n winDown = true;\n for (int x = i; x < i + k; ++x) { if (g[x][j] != c) { winDown = false; break; } }\n }\n if (j <= n - k) {\n winRight = true;\n for (int x = j; x < j + k; ++x) { if (g[i][x] != c) { winRight = false; break; } }\n }\n if (i <= n - k && j >= k - 1) {\n winDiagLeft = true;\n for (int x = 0; x < k; ++x) { if (g[i + x][j - x] != c) { winDiagLeft = false; break; } }\n }\n if (i <= n - k && j <= n - k) {\n winDiagRight = true;\n for (int x = 0; x < k; ++x) { if (g[i + x][j + x] != c) { winDiagRight = false; break; } }\n }\n return winRight || winDown || winDiagRight || winDiagLeft;\n }\n \n bool winFor(char c) {\n for (int i = 0; i < n; ++i) {\n for (int j = 0; j < n; ++j) {\n if (winAt(i, j, c)) { return true; }\n }\n }\n return false;\n }\n \n void dump() {\n cout << endl;\n for (int i = 0; i < n; ++i) {\n for (int j = 0; j < n; ++j) {\n cout << g[i][j];\n }\n cout << endl;\n }\n }\n \n string result() {\n //dump();\n bool redWins = winFor('R');\n bool blueWins = winFor('B');\n if (redWins && blueWins) return \"Both\";\n else if (redWins) return \"Red\";\n else if (blueWins) return \"Blue\";\n else return \"Neither\";\n }\n \n vector> g;\n int k;\n size_t n = 0;\n \n};\n\nint main(int argc, char** argv) {\n\n Writer w(argc, argv);\n Reader r(argc, argv);\n\n stringstream ss;\n\n int numCases = 0;\n r.nextLine(ss);\n ss >> numCases;\n\n for (int i = 0; i < numCases; ++i) {\n\n r.nextLine(ss);\n \n int n, k;\n ss >> n >> k;\n \n vector> input;\n for (int j = 0; j < n; ++j) {\n r.nextLine(ss);\n string line;\n ss >> line;\n vector temp;\n move(line.begin(), line.end(), back_inserter(temp));\n input.push_back(temp);\n }\n \n JoinK j(move(input), k);\n j.rotate();\n w.out() << \"Case #\" << (i + 1) << \": \" << j.result() << '\\n';\n }\n\n return 0;\n}\n"},"repo_name":{"kind":"string","value":"zenonparker/googlejam"},"path":{"kind":"string","value":"contests/2010_round1a_may_22/a/main.cpp"},"language":{"kind":"string","value":"C++"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":2533,"string":"2,533"}}},{"rowIdx":1334,"cells":{"code":{"kind":"string","value":"\"use strict\";require(\"retape\")(require(\"./index\"))"},"repo_name":{"kind":"string","value":"SunboX/fxos-washing-machine_interface"},"path":{"kind":"string","value":"b2g_sdk/34.0a1-2014-08-12-04-02-01/B2G.app/Contents/MacOS/modules/commonjs/diffpatcher/test/tap.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":50,"string":"50"}}},{"rowIdx":1335,"cells":{"code":{"kind":"string","value":"---\r\ntitle: Scala 入门笔记\r\nauthor: He Tao\r\ndate: 2015-03-28\r\ntag: [Scala]\r\ncategory: 编程语言\r\nlayout: post\r\n---\r\n\r\nScala初学笔记。\r\n\r\nHello World in Scala\r\n---------------------\r\n\r\n学习Scala的语法,还是从Hello World开始吧:\r\n\r\n```scala\r\nobject HelloWorld {\r\n def main(args: Array[String]) {\r\n print(\"Hello World, Scala!\")\r\n }\r\n}\r\n```\r\n\r\n\r\n\r\n编译,\r\n\r\n scalac HelloWorld.scala\r\n\r\n\r\n\r\n运行,\r\n\r\n scala -classpath . HelloWorld\r\n\r\n在控制台输出:\r\n\r\n Hello World, Scala!\r\n\r\n跟Java挺像!需要**注意**的是,`main`函数没有返回值(procedure method)。\r\n\r\n在Scala中,可以每行写一条语句,行末不用使用`;`分隔,如果在同一行书写多条语句,语句间需要用`;`隔开。\r\n\r\nInteraction with Java\r\n---------------------\r\n\r\nScala运行于JVM之上,Scala代码也很容易与Java代码进行交互。Scala中,可以使用`import`来导入Java的包,`java.lang`包会默认导入,其他的包需要显式导入。Scala中的`import`与Java相比有一些语法上的扩展,使得更灵活易用。例如:\r\n\r\n import java.lang.{Math, Boolean} // import Math 和 Boolean\r\n import java.lang.Math._ // import java.lang.Math包中的所有内容\r\n\r\nScala与Java进行代码级的交互的例子:\r\n\r\n```scala\r\nimport java.util.{Data, Locale}\r\n\r\nobject Main {\r\n def main(args: Array[String]) {\r\n val now = new Date\r\n print(now)\r\n }\r\n}\r\n```\r\n\r\n编译,运行,得到输出:\r\n\r\n Thu Mar 26 23:31:14 CST 2015\r\n\r\n面向对象特性\r\n------------\r\n\r\nScala是一门纯面向对象的语言(a pure object-oritented language),一切皆对象,(everything is an object),包括数字、函数等。在这一点上,Scala与Java之间存在差异,Java中区分基本类型与引用类型,例如boolean与Boolean、int与Integer,并且,在Java中,函数不能被当成值来操作。\r\n\r\n纯面向对象的一个体现:\r\n\r\n 1+2*3\r\n\r\n等价于:\r\n\r\n 1.+(2.*(3))\r\n\r\n运算符`+`、`-`、`*`、`/`等都是number对象的方法。\r\n\r\nScala中,函数也是对象,可以把函数当成值来传参和作为函数返回值,这也是Scala函数式编程特性的体现。将函数作为参数传递时类似C/C++中的函数指针。如下例:\r\n\r\n```scala\r\nobject Main { \r\n\r\n def timer(callback: () => Unit) : Unit {\r\n var cnt = 0 // var表示定义变量\r\n while(cnt < 10) {\r\n Thread sleep 2000\r\n cnt += 1\r\n callback()\r\n }\r\n }\r\n\r\n def task() : Unit {\r\n println(\"working...\")\r\n }\r\n\r\n def main(args: Array[String]) : Unit {\r\n timer(task)\r\n }\r\n```\r\n\r\n此处,`timer`函数进行传递回调函数是,还可以使用匿名函数,写成这样:\r\n\r\n```scala\r\n timer(() => Unit {\r\n println(\"working...\")\r\n })\r\n```\r\n\r\n面向对象自然少不了类的概念,在Scala中,也是用`class`关键字来定义类。例如,用Scala定义一个Person类:\r\n\r\n```scala\r\nclass Student {\r\n private var id = Int.MaxValue\r\n def setId(id: Int) {\r\n \r\n }\r\n}\r\nclass Person(id: Integer, name: String) {\r\n}\r\n```\r\n\r\n可以用\r\n\r\n var p = new Person(10, \"abcd\")\r\n\r\n来实例化得到一个Person类的对象p。\r\n\r\n同样,在类中也可以定义类的方法和属性,只是在这一点上Scala更多地具有函数式编程的特点。在这一点上,Scala的语法与Haskell的**“绑定”**类似。举例:\r\n\r\n\r\n\r\n```scala\r\nclass Person(id: Integer, name: String) {\r\n def aid = id\r\n def aname = name\r\n def getId(pid: Integer) = id\r\n def getName(pname: String) = name\r\n}\r\n```\r\n\r\n实例化类得到对象并调用类的方法,操作(读/写)类的属性:\r\n\r\n\r\n\r\n"},"repo_name":{"kind":"string","value":"compile-me/compile-me.github.io"},"path":{"kind":"string","value":"_posts/programming-language/scala/2015-03-26-scala_begin.md"},"language":{"kind":"string","value":"Markdown"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":3675,"string":"3,675"}}},{"rowIdx":1336,"cells":{"code":{"kind":"string","value":"/**\n * Copyright © 2009-2012 A. Matías Quezada\n */\n\nuse('sassmine').on(function(sas) {\n\n\tvar Block = Class.extend({\n\n\t\tconstructor: function(message, code) {\n\t\t\tthis.base();\n\t\t\tthis.message = message;\n\t\t\tthis.code = code;\n\n\t\t\tthis.before = [];\n\t\t\tthis.after = [];\n\t\t},\n\n\t\texecute: function() {\n\t\t\tthis.code.call(null, sas);\n\t\t},\n\n\t\taddBeforeEach: function(action) {\n\t\t\tthis.before.push(action);\n\t\t},\n\n\t\taddAfterEach: function(action) {\n\t\t\tthis.after.push(action);\n\t\t},\n\n\t\tbeforeEach: function() {\n\t\t\tfor (var i = 0; i < this.before.length; i++)\n\t\t\t\tthis.before[i].call(null, sas);\n\t\t},\n\n\t\tafterEach: function() {\n\t\t\tfor (var i = 0; i < this.after.length; i++)\n\t\t\t\tthis.after[i].call(null, sas);\n\t\t}\n\n\t});\n\n\tsas.Spec = sas.Suite = Block.extend();\n\n});\n"},"repo_name":{"kind":"string","value":"amatiasq/Sassmine"},"path":{"kind":"string","value":"lib/Block.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":753,"string":"753"}}},{"rowIdx":1337,"cells":{"code":{"kind":"string","value":"\n#include \n#include \n#include \n#include \"DebugCamera.h\"\n#include \"SceneTools.h\"\n\nDebugCamera::DebugCamera(Pimp::World* world) :\n\tworld(world)\n,\tisEnabled(false)\n,\tisLookingAt(false)\n{\n\tASSERT(nullptr != world);\n\n\tcamera = new Pimp::Camera(world);\n\tworld->GetElements().push_back(camera);\n\tcamera->SetFOVy(0.563197f);\n\n\txform = new Pimp::Xform(world);\n\tworld->GetElements().push_back(xform);\n\n\tAddChildToParent(xform,world->GetRootNode());\n\tAddChildToParent(camera,xform);\n}\n\nvoid DebugCamera::SetEnabled( bool enabled )\n{\n\tif (enabled == isEnabled)\n\t\treturn;\n\telse\n\t{\n\t\tisEnabled = enabled;\n\n\t\tif (true == isEnabled)\n\t\t{\n\t\t\t// Adopt current camera.\n\t\t\tPimp::Camera* prevCam = world->GetCamera();\n\t\t\tASSERT(prevCam->GetParents().size() == 1);\n\t\t\tPimp::Node* prevCamParent = prevCam->GetParents()[0];\n\t\t\tASSERT(prevCamParent->GetType() == Pimp::ET_Xform);\n\t\t\tPimp::Xform* prevDirectedCamXform = static_cast(prevCamParent);\n\n\t\t\t// And then set it as ours.\n\t\t\txform->SetTranslation(prevDirectedCamXform->GetTranslation());\n\t\t\txform->SetRotation(prevDirectedCamXform->GetRotation());\n\t\t\tworld->SetCamera(camera);\n\t\t}\n\t}\n}\n\nvoid DebugCamera::Move( const Vector3& directionViewSpace )\n{\n\tfloat speed = 1.0f; //< Totally framerate-dependent movement speed\n\n\tVector3 dirWorld = xform->GetWorldTransform()->TransformNormal(directionViewSpace);\n\n\tVector3 pos = xform->GetTranslation();\n\tpos += dirWorld * speed;\n\txform->SetTranslation(pos);\n}\n\nvoid DebugCamera::Roll(bool positive)\n{\n\tQuaternion rot = xform->GetRotation();\n\n\tconst float rollAmount = 0.10f; //< Totally framerate-dependent roll amount\n\trot = CreateQuaternionFromYawPitchRoll(0, 0, positive ? rollAmount : -rollAmount) * rot;\n\n\txform->SetRotation(rot);\n}\n\nvoid DebugCamera::StartLookAt()\n{\n\tASSERT(!isLookingAt);\n\tisLookingAt = true;\n\n\tlookAtInitialRotation = xform->GetRotation();\n}\n\nvoid DebugCamera::EndLookAt()\n{\n\tASSERT(isLookingAt);\n\tisLookingAt = false;\n}\n\nvoid DebugCamera::LookAt(int deltaMouseX, int deltaMouseY)\n{\n\tASSERT(isLookingAt);\n\n\t// Calculate new orientation\n\tconst float mouseSensitivity = -0.01f;\n\n\tfloat yaw = deltaMouseX * mouseSensitivity;\n\tfloat pitch = deltaMouseY * mouseSensitivity;\n\n\tQuaternion camOrientationDelta = CreateQuaternionFromYawPitchRoll(yaw, pitch, 0);\n\n\tQuaternion newRot = camOrientationDelta * lookAtInitialRotation;\n\n\txform->SetRotation(newRot);\n}\n\nvoid DebugCamera::DumpCurrentTransformToOutputWindow()\n{\n\tQuaternion rot = xform->GetRotation();\n\tVector3 pos = xform->GetTranslation();\n\n\tVector3 rotEulerXYZ = rot.GetEulerAnglesXYZ();\n\n\tDEBUG_LOG(\"Current debug camera transform:\");\n\tDEBUG_LOG(\"X = %.2ff\", pos.x);\n\tDEBUG_LOG(\"Y = %.2ff\", pos.y);\n\tDEBUG_LOG(\"Z = %.2ff\", pos.z);\n\tDEBUG_LOG(\"X = %.2ff\", rot.x);\n\tDEBUG_LOG(\"Y = %.2ff\", rot.y);\n\tDEBUG_LOG(\"Z = %.2ff\", rot.z);\n\tDEBUG_LOG(\"W = %.2ff\", rot.w);\n}\n"},"repo_name":{"kind":"string","value":"visualizersdotnl/tpb-06-final"},"path":{"kind":"string","value":"Src/Player/DebugCamera.cpp"},"language":{"kind":"string","value":"C++"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":2869,"string":"2,869"}}},{"rowIdx":1338,"cells":{"code":{"kind":"string","value":"---\nredirect_from: '/webmaster.html'\n---\n\nPage to test redirection artefacts\n"},"repo_name":{"kind":"string","value":"jekyll/jekyll-admin"},"path":{"kind":"string","value":"spec/fixtures/site/support.md"},"language":{"kind":"string","value":"Markdown"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":77,"string":"77"}}},{"rowIdx":1339,"cells":{"code":{"kind":"string","value":"#ifndef OPENTISSUE_COLLISION_SDF_SDF_COMPUTE_POINT_SAMPLING_H\n#define OPENTISSUE_COLLISION_SDF_SDF_COMPUTE_POINT_SAMPLING_H\n//\n// OpenTissue Template Library\n// - A generic toolbox for physics-based modeling and simulation.\n// Copyright (C) 2008 Department of Computer Science, University of Copenhagen.\n//\n// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php\n//\n#include \n\n#include \n\n#include //--- Needed for boost::numerical_cast\n\n#include \n\nnamespace OpenTissue\n{\n namespace sdf\n {\n\n /**\n * Compute Point Sampling.\n * This function tries to resample a mesh geometry to better fit the\n * resolution of the corresponding signed distance map.\n *\n * @param mesh The surface mesh from which a point sampling is computed.\n * @param phi The signed distance field corresponding to the specified mesh.\n *\n * @param edge_resolution Threshold value, indicating the sampling\n * resolution along edges. If zero it will be\n * computed on the fly, to match the resolution\n * of the signed distance map.\n *\n * @param face_sampling Boolean flag indicating wheter face sampling is on or off.\n *\n * @param points Upon return this argument holds the computed point sampling.\n */\n template\n void compute_point_sampling(\n mesh_type /*const*/ & mesh\n , grid_type const & phi\n , double edge_resolution\n , bool face_sampling\n , point_container & points\n )\n {\n using std::min;\n using std::max;\n using std::sqrt;\n\n typedef typename mesh_type::vertex_iterator vertex_iterator;\n typedef typename mesh_type::halfedge_iterator halfedge_iterator;\n typedef typename mesh_type::face_iterator face_iterator;\n typedef typename mesh_type::face_type face_type;\n typedef typename mesh_type::halfedge_type halfedge_type;\n typedef typename mesh_type::face_halfedge_circulator face_halfedge_circulator;\n typedef typename std::list face_queue;\n\n typedef typename mesh_type::math_types math_types;\n typedef typename math_types::vector3_type vector3_type;\n typedef typename math_types::real_type real_type;\n\n assert(edge_resolution>=0 || !\"compute_point_sampling(): edge resolution was negative\");\n\n mesh::clear_vertex_tags( mesh);\n mesh::clear_halfedge_tags( mesh);\n mesh::clear_face_tags( mesh);\n\n points.clear();\n\n //--- Ignore vertices in flat regions\n for(vertex_iterator v = mesh.vertex_begin();v!=mesh.vertex_end();++v)\n {\n v->m_tag = 1;\n if(!is_convex( *v ) )\n continue;\n points.push_back( v->m_coord );\n }\n //--- long flat edges are linearly sub-samplet, to help catch edge-face intersections.\n\n\n real_type tmp = boost::numeric_cast( edge_resolution );\n real_type threshold = max(tmp, sqrt( phi.dx()*phi.dx() + phi.dy()*phi.dy() + phi.dz()*phi.dz() ));\n\n for(halfedge_iterator h = mesh.halfedge_begin();h!=mesh.halfedge_end();++h)\n {\n if(h->m_tag)\n continue;\n h->m_tag = 1;\n h->get_twin_iterator()->m_tag = 1;\n if(!is_convex( *h ) )\n continue;\n vector3_type u = h->get_destination_iterator()->m_coord - h->get_origin_iterator()->m_coord;\n real_type lgth = sqrt(u*u);\n if(lgth>threshold)\n {\n u /= lgth;\n vector3_type p = h->get_origin_iterator()->m_coord;\n real_type t = threshold;\n while(tm_tag)\n continue;\n real_type area = 0;\n vector3_type centroid = vector3_type(0,0,0);\n unsigned int size = 0;\n face_queue Q;\n Q.push_back( &(*face) );\n face->m_tag = 1;\n while(!Q.empty())\n {\n face_type * cur = Q.front();Q.pop_front();\n face_halfedge_circulator h(*cur),hend;\n for(;h!=hend;++h)\n {\n ai = h->get_origin_iterator()->m_coord;\n ei = h->get_destination_iterator()->m_coord - ai;\n Ai = ai % ei;\n area += 0.5*sqrt(Ai*Ai);\n ++size;\n centroid += h->get_origin_iterator()->m_coord;\n\n if(h->get_twin_iterator()->get_face_handle().is_null())\n continue;\n\n face_type * neighbor = &(*h->get_twin_iterator()->get_face_iterator());\n bool unseen = !neighbor->m_tag;\n // TODO 2007-02-08: polymesh specific, bad idea\n bool coplanar = is_planar(*h); \n if(unseen && coplanar)\n {\n neighbor->m_tag = 1;\n Q.push_back(neighbor);\n }\n }\n }\n if(size && area > area_test)\n {\n centroid /= size;\n points.push_back( centroid );\n }\n }\n }\n }\n\n } // namespace sdf\n\n} // namespace OpenTissue\n\n// OPENTISSUE_COLLISION_SDF_SDF_COMPUTE_POINT_SAMPLING_H\n#endif\n"},"repo_name":{"kind":"string","value":"misztal/GRIT"},"path":{"kind":"string","value":"3RDPARTY/OpenTissue/OpenTissue/collision/sdf/sdf_compute_point_sampling.h"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":5941,"string":"5,941"}}},{"rowIdx":1340,"cells":{"code":{"kind":"string","value":"\nUTF-8\n\n AboutDialog\n \n \n About callcoin\n در مورد بیتکویین\n \n \n \n &lt;b&gt;callcoin&lt;/b&gt; version\n &lt;b&gt;callcoin&lt;/b&gt; version\n \n \n \n \nThis is experimental software.\n\nDistributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\nThis product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.\n \n \n \n \n Copyright\n \n \n \n \n The callcoin developers\n \n \n\n\n AddressBookPage\n \n \n Address Book\n دفترچه آدرس\n \n \n \n Double-click to edit address or label\n برای ویرایش آدرس/برچسب دوبار کلیک نمایید\n \n \n \n Create a new address\n یک آدرس جدید بسازید\n \n \n \n Copy the currently selected address to the system clipboard\n آدرس انتخاب شده را در کلیپ بوردِ سیستم کپی کنید\n \n \n \n &amp;New Address\n و آدرس جدید\n \n \n \n These are your callcoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.\n \n \n \n \n &amp;Copy Address\n و کپی آدرس\n \n \n \n Show &amp;QR Code\n نشان و کد QR\n \n \n \n Sign a message to prove you own a callcoin address\n \n \n \n \n Sign &amp;Message\n \n \n \n \n Delete the currently selected address from the list\n \n \n \n \n Export the data in the current tab to a file\n صدور داده نوار جاری به یک فایل\n \n \n \n &amp;Export\n \n \n \n \n Verify a message to ensure it was signed with a specified callcoin address\n \n \n \n \n &amp;Verify Message\n \n \n \n \n &amp;Delete\n و حذف\n \n \n \n These are your callcoin addresses for sending payments. Always check the amount and the receiving address before sending coins.\n \n \n \n \n Copy &amp;Label\n کپی و برچسب\n \n \n \n &amp;Edit\n و ویرایش\n \n \n \n Send &amp;Coins\n \n \n \n \n Export Address Book Data\n انتقال اطلاعات دفترچه آدرس\n \n \n \n Comma separated file (*.csv)\n سی.اس.وی. (فایل جداگانه دستوری)\n \n \n \n Error exporting\n صدور پیام خطا\n \n \n \n Could not write to file %1.\n قابل کپی در فایل نیست %1\n \n\n\n AddressTableModel\n \n \n Label\n برچسب\n \n \n \n Address\n آدرس\n \n \n \n (no label)\n (برچسب ندارد)\n \n\n\n AskPassphraseDialog\n \n \n Passphrase Dialog\n \n \n \n \n Enter passphrase\n رمز/پَس فرِیز را وارد کنید\n \n \n \n New passphrase\n رمز/پَس فرِیز جدید را وارد کنید\n \n \n \n Repeat new passphrase\n رمز/پَس فرِیز را دوباره وارد کنید\n \n \n \n Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.\n رمز/پَس فرِیز جدید را در wallet وارد کنید. برای انتخاب رمز/پَس فرِیز از 10 کاراکتر تصادفی یا بیشتر و یا هشت کلمه یا بیشتر استفاده کنید. \n \n \n \n Encrypt wallet\n wallet را رمزگذاری کنید\n \n \n \n This operation needs your wallet passphrase to unlock the wallet.\n برای انجام این عملکرد به رمز/پَس فرِیزِwallet نیاز است تا آن را از حالت قفل درآورد.\n \n \n \n Unlock wallet\n باز کردن قفل wallet \n \n \n \n This operation needs your wallet passphrase to decrypt the wallet.\n برای کشف رمز wallet، به رمز/پَس فرِیزِwallet نیاز است.\n \n \n \n Decrypt wallet\n کشف رمز wallet\n \n \n \n Change passphrase\n تغییر رمز/پَس فرِیز\n \n \n \n Enter the old and new passphrase to the wallet.\n رمز/پَس فرِیزِ قدیم و جدید را در wallet وارد کنید\n \n \n \n Confirm wallet encryption\n رمزگذاری wallet را تایید کنید\n \n \n \n Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR SKEINCOINS&lt;/b&gt;!\n \n \n \n \n Are you sure you wish to encrypt your wallet?\n \n \n \n \n IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.\n \n \n \n \n \n Warning: The Caps Lock key is on!\n \n \n \n \n \n Wallet encrypted\n تایید رمزگذاری\n \n \n \n callcoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your callcoins from being stolen by malware infecting your computer.\n callcoin برای اتمام فرایند رمزگذاری بسته خواهد شد. به خاطر داشته باشید که رمزگذاری WALLET شما، کامپیوتر شما را از آلودگی به بدافزارها مصون نمی دارد.\n \n \n \n \n \n \n Wallet encryption failed\n رمزگذاری تایید نشد\n \n \n \n Wallet encryption failed due to an internal error. Your wallet was not encrypted.\n رمزگذاری به علت خطای داخلی تایید نشد. wallet شما رمزگذاری نشد\n \n \n \n \n The supplied passphrases do not match.\n رمزهای/پَس فرِیزهایِ وارد شده با هم تطابق ندارند\n \n \n \n Wallet unlock failed\n قفل wallet باز نشد\n \n \n \n \n \n The passphrase entered for the wallet decryption was incorrect.\n رمزهای/پَس فرِیزهایِ وارد شده wallet برای کشف رمز اشتباه است.\n \n \n \n Wallet decryption failed\n کشف رمز wallet انجام نشد\n \n \n \n Wallet passphrase was successfully changed.\n \n \n\n\n BitcoinGUI\n \n \n Sign &amp;message...\n امضا و پیام\n \n \n \n Synchronizing with network...\n به روز رسانی با شبکه...\n \n \n \n &amp;Overview\n و بازبینی\n \n \n \n Show general overview of wallet\n نمای کلی از wallet را نشان بده\n \n \n \n &amp;Transactions\n و تراکنش\n \n \n \n Browse transaction history\n تاریخچه تراکنش را باز کن\n \n \n \n Edit the list of stored addresses and labels\n فهرست آدرسها و برچسبهای ذخیره شده را ویرایش کن\n \n \n \n Show the list of addresses for receiving payments\n فهرست آدرسها را برای دریافت وجه نشان بده\n \n \n \n E&amp;xit\n خروج\n \n \n \n Quit application\n از &quot;درخواست نامه&quot;/ application خارج شو\n \n \n \n Show information about callcoin\n اطلاعات در مورد callcoin را نشان بده\n \n \n \n About &amp;Qt\n درباره و QT\n \n \n \n Show information about Qt\n نمایش اطلاعات درباره QT\n \n \n \n &amp;Options...\n و انتخابها\n \n \n \n &amp;Encrypt Wallet...\n و رمزگذاری wallet\n \n \n \n &amp;Backup Wallet...\n و گرفتن نسخه پیشتیبان از wallet\n \n \n \n &amp;Change Passphrase...\n تغییر رمز/پَس فرِیز\n \n \n \n Importing blocks from disk...\n \n \n \n \n Reindexing blocks on disk...\n \n \n \n \n Send coins to a callcoin address\n \n \n \n \n Modify configuration options for callcoin\n اصلاح انتخابها برای پیکربندی callcoin\n \n \n \n Backup wallet to another location\n گرفتن نسخه پیشتیبان در آدرسی دیگر\n \n \n \n Change the passphrase used for wallet encryption\n رمز مربوط به رمزگذاریِ wallet را تغییر دهید\n \n \n \n &amp;Debug window\n \n \n \n \n Open debugging and diagnostic console\n \n \n \n \n &amp;Verify message...\n \n \n \n \n \n callcoin\n callcoin\n \n \n \n Wallet\n کیف پول\n \n \n \n &amp;Send\n \n \n \n \n &amp;Receive\n \n \n \n \n &amp;Addresses\n \n \n \n \n &amp;About callcoin\n &amp;در مورد بیتکویین\n \n \n \n &amp;Show / Hide\n &amp;نمایش/ عدم نمایش و\n \n \n \n Show or hide the main Window\n \n \n \n \n Encrypt the private keys that belong to your wallet\n \n \n \n \n Sign messages with your callcoin addresses to prove you own them\n \n \n \n \n Verify messages to ensure they were signed with specified callcoin addresses\n \n \n \n \n &amp;File\n و فایل\n \n \n \n &amp;Settings\n و تنظیمات\n \n \n \n &amp;Help\n و راهنما\n \n \n \n Tabs toolbar\n نوار ابزار\n \n \n \n \n [testnet]\n [testnet]\n \n \n \n callcoin client\n مشتری callcoin\n \n \n \n %n active connection(s) to callcoin network\n %n ارتباط فعال به شبکه callcoin\n%n ارتباط فعال به شبکه callcoin\n \n \n \n No block source available...\n \n \n \n \n Processed %1 of %2 (estimated) blocks of transaction history.\n \n \n \n \n Processed %1 blocks of transaction history.\n \n \n \n \n %n hour(s)\n \n \n \n \n %n day(s)\n \n \n \n \n %n week(s)\n \n \n \n \n %1 behind\n \n \n \n \n Last received block was generated %1 ago.\n \n \n \n \n Transactions after this will not yet be visible.\n \n \n \n \n Error\n \n \n \n \n Warning\n \n \n \n \n Information\n \n \n \n \n This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?\n \n \n \n \n Up to date\n روزآمد\n \n \n \n Catching up...\n در حال روزآمد سازی..\n \n \n \n Confirm transaction fee\n \n \n \n \n Sent transaction\n ارسال تراکنش\n \n \n \n Incoming transaction\n تراکنش دریافتی\n \n \n \n Date: %1\nAmount: %2\nType: %3\nAddress: %4\n\n تاریخ: %1⏎ میزان وجه : %2⏎ نوع: %3⏎ آدرس: %4⏎ \n\n \n \n \n \n URI handling\n \n \n \n \n \n URI can not be parsed! This can be caused by an invalid callcoin address or malformed URI parameters.\n \n \n \n \n Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;\n wallet رمزگذاری شد و در حال حاضر از حالت قفل در آمده است\n \n \n \n Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;\n wallet رمزگذاری شد و در حال حاضر قفل است\n \n \n \n A fatal error occurred. callcoin can no longer continue safely and will quit.\n \n \n\n\n ClientModel\n \n \n Network Alert\n هشدار شبکه\n \n\n\n EditAddressDialog\n \n \n Edit Address\n ویرایش آدرسها\n \n \n \n &amp;Label\n و برچسب\n \n \n \n The label associated with this address book entry\n برچسب مربوط به این دفترچه آدرس\n \n \n \n &amp;Address\n و آدرس\n \n \n \n The address associated with this address book entry. This can only be modified for sending addresses.\n برچسب مربوط به این دفترچه آدرس و تنها ب\n \n \n \n New receiving address\n آدرسِ دریافت کننده جدید\n \n \n \n New sending address\n آدرس ارسال کننده جدید\n \n \n \n Edit receiving address\n ویرایش آدرسِ دریافت کننده\n \n \n \n Edit sending address\n ویرایش آدرسِ ارسال کننده\n \n \n \n The entered address &quot;%1&quot; is already in the address book.\n آدرس وارد شده %1 قبلا به فهرست آدرسها اضافه شده بوده است.\n \n \n \n The entered address &quot;%1&quot; is not a valid callcoin address.\n آدرس وارد شده &quot;%1&quot; یک آدرس صحیح برای callcoin نسشت\n \n \n \n Could not unlock wallet.\n عدم توانیی برای قفل گشایی wallet\n \n \n \n New key generation failed.\n عدم توانیی در ایجاد کلید جدید\n \n\n\n GUIUtil::HelpMessageBox\n \n \n \n callcoin-Qt\n \n \n \n \n version\n نسخه\n \n \n \n Usage:\n میزان استفاده:\n \n \n \n command-line options\n \n \n \n \n UI options\n \n \n \n \n Set language, for example &quot;de_DE&quot; (default: system locale)\n \n \n \n \n Start minimized\n \n \n \n \n Show splash screen on startup (default: 1)\n \n \n\n\n OptionsDialog\n \n \n Options\n انتخاب/آپشن\n \n \n \n &amp;Main\n \n \n \n \n Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.\n \n \n \n \n Pay transaction &amp;fee\n \n \n \n \n Automatically start callcoin after logging in to the system.\n \n \n \n \n &amp;Start callcoin on system login\n \n \n \n \n Reset all client options to default.\n \n \n \n \n &amp;Reset Options\n \n \n \n \n &amp;Network\n \n \n \n \n Automatically open the callcoin client port on the router. This only works when your router supports UPnP and it is enabled.\n \n \n \n \n Map port using &amp;UPnP\n \n \n \n \n Connect to the callcoin network through a SOCKS proxy (e.g. when connecting through Tor).\n \n \n \n \n &amp;Connect through SOCKS proxy:\n \n \n \n \n Proxy &amp;IP:\n \n \n \n \n IP address of the proxy (e.g. 127.0.0.1)\n \n \n \n \n &amp;Port:\n \n \n \n \n Port of the proxy (e.g. 9050)\n \n \n \n \n SOCKS &amp;Version:\n \n \n \n \n SOCKS version of the proxy (e.g. 5)\n \n \n \n \n &amp;Window\n \n \n \n \n Show only a tray icon after minimizing the window.\n \n \n \n \n &amp;Minimize to the tray instead of the taskbar\n \n \n \n \n Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.\n \n \n \n \n M&amp;inimize on close\n \n \n \n \n &amp;Display\n \n \n \n \n User Interface &amp;language:\n \n \n \n \n The user interface language can be set here. This setting will take effect after restarting callcoin.\n \n \n \n \n &amp;Unit to show amounts in:\n \n \n \n \n Choose the default subdivision unit to show in the interface and when sending coins.\n \n \n \n \n Whether to show callcoin addresses in the transaction list or not.\n \n \n \n \n &amp;Display addresses in transaction list\n و نمایش آدرسها در فهرست تراکنش\n \n \n \n &amp;OK\n و تایید\n \n \n \n &amp;Cancel\n و رد\n \n \n \n &amp;Apply\n و به کار گرفتن\n \n \n \n default\n پیش فرض\n \n \n \n Confirm options reset\n \n \n \n \n Some settings may require a client restart to take effect.\n \n \n \n \n Do you want to proceed?\n \n \n \n \n \n Warning\n \n \n \n \n \n This setting will take effect after restarting callcoin.\n \n \n \n \n The supplied proxy address is invalid.\n \n \n\n\n OverviewPage\n \n \n Form\n فرم\n \n \n \n \n The displayed information may be out of date. Your wallet automatically synchronizes with the callcoin network after a connection is established, but this process has not completed yet.\n اطلاعات نمایش داده شده ممکن است روزآمد نباشد. wallet شما به صورت خودکار بعد از برقراری اتصال با شبکه callcoin به روز می شود اما این فرایند هنوز تکمیل نشده است.\n \n \n \n Balance:\n مانده حساب:\n \n \n \n Unconfirmed:\n تایید نشده\n \n \n \n Wallet\n کیف پول\n \n \n \n Immature:\n \n \n \n \n Mined balance that has not yet matured\n \n \n \n \n &lt;b&gt;Recent transactions&lt;/b&gt;\n تراکنشهای اخیر\n \n \n \n Your current balance\n مانده حساب جاری\n \n \n \n Total of transactions that have yet to be confirmed, and do not yet count toward the current balance\n تعداد تراکنشهایی که نیاز به تایید دارند و هنوز در مانده حساب جاری شما به حساب نیامده اند\n \n \n \n \n out of sync\n خارج از روزآمد سازی\n \n\n\n PaymentServer\n \n \n Cannot start callcoin: click-to-pay handler\n \n \n\n\n QRCodeDialog\n \n \n QR Code Dialog\n \n \n \n \n Request Payment\n درخواست وجه\n \n \n \n Amount:\n میزان وجه:\n \n \n \n Label:\n برچسب:\n \n \n \n Message:\n پیام:\n \n \n \n &amp;Save As...\n و ذخیره با عنوانِ...\n \n \n \n Error encoding URI into QR Code.\n \n \n \n \n The entered amount is invalid, please check.\n \n \n \n \n Resulting URI too long, try to reduce the text for label / message.\n متن وارد شده طولانی است، متنِ برچسب/پیام را کوتاه کنید\n \n \n \n Save QR Code\n \n \n \n \n PNG Images (*.png)\n تصاویر با فرمت PNG\n(*.png)\n \n\n\n RPCConsole\n \n \n Client name\n \n \n \n \n \n \n \n \n \n \n \n \n \n N/A\n \n \n \n \n Client version\n \n \n \n \n &amp;Information\n \n \n \n \n Using OpenSSL version\n \n \n \n \n Startup time\n \n \n \n \n Network\n \n \n \n \n Number of connections\n \n \n \n \n On testnet\n \n \n \n \n Block chain\n \n \n \n \n Current number of blocks\n \n \n \n \n Estimated total blocks\n \n \n \n \n Last block time\n \n \n \n \n &amp;Open\n \n \n \n \n Command-line options\n \n \n \n \n Show the callcoin-Qt help message to get a list with possible callcoin command-line options.\n \n \n \n \n &amp;Show\n \n \n \n \n &amp;Console\n \n \n \n \n Build date\n \n \n \n \n callcoin - Debug window\n \n \n \n \n callcoin Core\n \n \n \n \n Debug log file\n \n \n \n \n Open the callcoin debug log file from the current data directory. This can take a few seconds for large log files.\n \n \n \n \n Clear console\n \n \n \n \n Welcome to the callcoin RPC console.\n به کنسول آر.پی.سی. SKEINCOIN خوش آمدید\n \n \n \n Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.\n \n \n \n \n Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.\n \n \n\n\n SendCoinsDialog\n \n \n \n \n \n \n \n \n \n Send Coins\n سکه های ارسالی\n \n \n \n Send to multiple recipients at once\n ارسال همزمان به گیرنده های متعدد\n \n \n \n Add &amp;Recipient\n \n \n \n \n Remove all transaction fields\n تمامی فیلدهای تراکنش حذف شوند\n \n \n \n Clear &amp;All\n \n \n \n \n Balance:\n مانده حساب:\n \n \n \n 123.456 BTC\n 123.456 BTC\n \n \n \n Confirm the send action\n تایید عملیات ارسال \n \n \n \n S&amp;end\n و ارسال\n \n \n \n &lt;b&gt;%1&lt;/b&gt; to %2 (%3)\n %1 به %2 (%3)\n \n \n \n Confirm send coins\n تایید ارسال سکه ها\n \n \n \n Are you sure you want to send %1?\n شما مطمئن هستید که می خواهید %1 را ارسال کنید؟\n \n \n \n and \n و\n \n \n \n The recipient address is not valid, please recheck.\n \n \n \n \n The amount to pay must be larger than 0.\n میزان پرداخت باید بیشتر از 0 باشد\n \n \n \n The amount exceeds your balance.\n \n \n \n \n The total exceeds your balance when the %1 transaction fee is included.\n \n \n \n \n Duplicate address found, can only send to each address once per send operation.\n \n \n \n \n Error: Transaction creation failed!\n \n \n \n \n Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.\n خطا: تراکنش تایید نشد. این خطا ممکن است به این دلیل اتفاق بیافتد که سکه های wallet شما خرج شده باشند مثلا اگر wallet.dat را مپی کرده باشید و سکه های شما در آن کپی استفاده شده باشند اما در اینجا نمایش داده نشده اند.\n \n\n\n SendCoinsEntry\n \n \n Form\n فرم\n \n \n \n A&amp;mount:\n و میزان وجه\n \n \n \n Pay &amp;To:\n پرداخت و به چه کسی\n \n \n \n The address to send the payment to (e.g. X6ENACNZSWAvxM96TiGp3Du9YhVmbhweMa)\n \n \n \n \n \n Enter a label for this address to add it to your address book\n یک برچسب برای این آدرس بنویسید تا به دفترچه آدرسهای شما اضافه شود\n \n \n \n &amp;Label:\n و برچسب\n \n \n \n Choose address from address book\n آدرس از فهرست آدرس انتخاب کنید\n \n \n \n Alt+A\n Alt و A\n \n \n \n Paste address from clipboard\n آدرس را بر کلیپ بورد کپی کنید\n \n \n \n Alt+P\n Alt و P\n \n \n \n Remove this recipient\n این گیرنده را حذف کن\n \n \n \n Enter a callcoin address (e.g. X6ENACNZSWAvxM96TiGp3Du9YhVmbhweMa)\n یک آدرس callcoin وارد کنید (مثال X6ENACNZSWAvxM96TiGp3Du9YhVmbhweMa)\n \n\n\n SignVerifyMessageDialog\n \n \n Signatures - Sign / Verify a Message\n \n \n \n \n &amp;Sign Message\n و امضای پیام \n \n \n \n You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.\n \n \n \n \n The address to sign the message with (e.g. X6ENACNZSWAvxM96TiGp3Du9YhVmbhweMa)\n یک آدرس callcoin وارد کنید (مثال X6ENACNZSWAvxM96TiGp3Du9YhVmbhweMa)\n \n \n \n \n Choose an address from the address book\n آدرس از فهرست آدرس انتخاب کنید\n \n \n \n \n Alt+A\n Alt و A\n \n \n \n Paste address from clipboard\n آدرس را بر کلیپ بورد کپی کنید\n \n \n \n Alt+P\n Alt و P\n \n \n \n Enter the message you want to sign here\n \n \n \n \n Signature\n \n \n \n \n Copy the current signature to the system clipboard\n \n \n \n \n Sign the message to prove you own this callcoin address\n \n \n \n \n Sign &amp;Message\n \n \n \n \n Reset all sign message fields\n \n \n \n \n \n Clear &amp;All\n \n \n \n \n &amp;Verify Message\n \n \n \n \n Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.\n \n \n \n \n The address the message was signed with (e.g. X6ENACNZSWAvxM96TiGp3Du9YhVmbhweMa)\n یک آدرس callcoin وارد کنید (مثال X6ENACNZSWAvxM96TiGp3Du9YhVmbhweMa)\n \n \n \n Verify the message to ensure it was signed with the specified callcoin address\n \n \n \n \n Verify &amp;Message\n \n \n \n \n Reset all verify message fields\n \n \n \n \n \n Enter a callcoin address (e.g. X6ENACNZSWAvxM96TiGp3Du9YhVmbhweMa)\n یک آدرس callcoin وارد کنید (مثال X6ENACNZSWAvxM96TiGp3Du9YhVmbhweMa)\n \n \n \n Click &quot;Sign Message&quot; to generate signature\n \n \n \n \n Enter callcoin signature\n \n \n \n \n \n The entered address is invalid.\n \n \n \n \n \n \n \n Please check the address and try again.\n \n \n \n \n \n The entered address does not refer to a key.\n \n \n \n \n Wallet unlock was cancelled.\n \n \n \n \n Private key for the entered address is not available.\n \n \n \n \n Message signing failed.\n \n \n \n \n Message signed.\n \n \n \n \n The signature could not be decoded.\n \n \n \n \n \n Please check the signature and try again.\n \n \n \n \n The signature did not match the message digest.\n \n \n \n \n Message verification failed.\n \n \n \n \n Message verified.\n \n \n\n\n SplashScreen\n \n \n The callcoin developers\n \n \n \n \n [testnet]\n [testnet]\n \n\n\n TransactionDesc\n \n \n Open until %1\n باز کن تا %1\n \n \n \n %1/offline\n \n \n \n \n %1/unconfirmed\n %1 غیرقابل تایید\n \n \n \n %1 confirmations\n %1 تاییدها\n \n \n \n Status\n \n \n \n \n , broadcast through %n node(s)\n \n \n \n \n Date\n تاریخ\n \n \n \n Source\n \n \n \n \n Generated\n \n \n \n \n \n From\n \n \n \n \n \n \n To\n \n \n \n \n \n own address\n \n \n \n \n label\n برچسب\n \n \n \n \n \n \n \n Credit\n \n \n \n \n matures in %n more block(s)\n \n \n \n \n not accepted\n \n \n \n \n \n \n \n Debit\n \n \n \n \n Transaction fee\n \n \n \n \n Net amount\n \n \n \n \n Message\n پیام\n \n \n \n Comment\n \n \n \n \n Transaction ID\n \n \n \n \n Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.\n \n \n \n \n Debug information\n \n \n \n \n Transaction\n \n \n \n \n Inputs\n \n \n \n \n Amount\n میزان\n \n \n \n true\n \n \n \n \n false\n \n \n \n \n , has not been successfully broadcast yet\n تا به حال با موفقیت انتشار نیافته است\n \n \n \n Open for %n more block(s)\n \n \n \n \n unknown\n ناشناس\n \n\n\n TransactionDescDialog\n \n \n Transaction details\n جزئیات تراکنش\n \n \n \n This pane shows a detailed description of the transaction\n این بخش جزئیات تراکنش را نشان می دهد\n \n\n\n TransactionTableModel\n \n \n Date\n تاریخ\n \n \n \n Type\n نوع\n \n \n \n Address\n آدرس\n \n \n \n Amount\n میزان وجه\n \n \n \n Open for %n more block(s)\n \n \n \n \n Open until %1\n باز کن تا %1\n \n \n \n Offline (%1 confirmations)\n برون خطی (%1 تاییدها)\n \n \n \n Unconfirmed (%1 of %2 confirmations)\n تایید نشده (%1 از %2 تاییدها)\n \n \n \n Confirmed (%1 confirmations)\n تایید شده (%1 تاییدها)\n \n \n \n Mined balance will be available when it matures in %n more block(s)\n \n \n \n \n This block was not received by any other nodes and will probably not be accepted!\n این block توسط گره های دیگری دریافت نشده است و ممکن است قبول نشود\n \n \n \n Generated but not accepted\n تولید شده اما قبول نشده است\n \n \n \n Received with\n قبول با \n \n \n \n Received from\n دریافت شده از\n \n \n \n Sent to\n ارسال به\n \n \n \n Payment to yourself\n وجه برای شما \n \n \n \n Mined\n استخراج شده\n \n \n \n (n/a)\n خالی\n \n \n \n Transaction status. Hover over this field to show number of confirmations.\n وضعیت تراکنش. با اشاره به این بخش تعداد تاییدها نمایش داده می شود\n \n \n \n Date and time that the transaction was received.\n زمان و تاریخی که تراکنش دریافت شده است\n \n \n \n Type of transaction.\n نوع تراکنش\n \n \n \n Destination address of transaction.\n آدرس مقصد در تراکنش\n \n \n \n Amount removed from or added to balance.\n میزان وجه کم شده یا اضافه شده به حساب\n \n\n\n TransactionView\n \n \n \n All\n همه\n \n \n \n Today\n امروز\n \n \n \n This week\n این هفته\n \n \n \n This month\n این ماه\n \n \n \n Last month\n ماه گذشته\n \n \n \n This year\n این سال\n \n \n \n Range...\n حدود..\n \n \n \n Received with\n دریافت با\n \n \n \n Sent to\n ارسال به\n \n \n \n To yourself\n به شما\n \n \n \n Mined\n استخراج شده\n \n \n \n Other\n دیگر\n \n \n \n Enter address or label to search\n آدرس یا برچسب را برای جستجو وارد کنید\n \n \n \n Min amount\n حداقل میزان وجه\n \n \n \n Copy address\n آدرس را کپی کنید\n \n \n \n Copy label\n برچسب را کپی کنید\n \n \n \n Copy amount\n میزان وجه کپی شود\n \n \n \n Copy transaction ID\n \n \n \n \n Edit label\n برچسب را ویرایش کنید\n \n \n \n Show transaction details\n \n \n \n \n Export Transaction Data\n داده های تراکنش را صادر کنید\n \n \n \n Comma separated file (*.csv)\n Comma separated file (*.csv) فایل جداگانه دستوری\n \n \n \n Confirmed\n تایید شده\n \n \n \n Date\n تاریخ\n \n \n \n Type\n نوع\n \n \n \n Label\n برچسب\n \n \n \n Address\n آدرس\n \n \n \n Amount\n میزان\n \n \n \n ID\n شناسه کاربری\n \n \n \n Error exporting\n خطا در ارسال\n \n \n \n Could not write to file %1.\n قابل کپی به فایل نیست %1.\n \n \n \n Range:\n دامنه:\n \n \n \n to\n به\n \n\n\n WalletModel\n \n \n Send Coins\n سکه های ارسالی\n \n\n\n WalletView\n \n \n &amp;Export\n \n \n \n \n Export the data in the current tab to a file\n صدور داده نوار جاری به یک فایل\n \n \n \n Backup Wallet\n \n \n \n \n Wallet Data (*.dat)\n \n \n \n \n Backup Failed\n \n \n \n \n There was an error trying to save the wallet data to the new location.\n \n \n \n \n Backup Successful\n \n \n \n \n The wallet data was successfully saved to the new location.\n \n \n\n\n bitcoin-core\n \n \n callcoin version\n نسخه callcoin\n \n \n \n Usage:\n میزان استفاده:\n \n \n \n Send command to -server or callcoind\n ارسال دستور به سرور یا callcoined\n \n \n \n List commands\n فهرست دستورها\n \n \n \n Get help for a command\n درخواست کمک برای یک دستور\n \n \n \n Options:\n انتخابها:\n \n \n \n Specify configuration file (default: callcoin.conf)\n فایل پیکربندیِ را مشخص کنید (پیش فرض: callcoin.conf)\n \n \n \n Specify pid file (default: callcoind.pid)\n فایل pid را مشخص کنید (پیش فرض: callcoind.pid)\n \n \n \n Specify data directory\n دایرکتوری داده را مشخص کن\n \n \n \n Set database cache size in megabytes (default: 25)\n حافظه بانک داده را به مگابایت تنظیم کنید (پیش فرض: 25)\n \n \n \n Listen for connections on &lt;port&gt; (default: 8333 or testnet: 18333)\n ارتباطات را در &lt;PORT&gt; بشنوید (پیش فرض: 8333 or testnet: 18333)\n \n \n \n Maintain at most &lt;n&gt; connections to peers (default: 125)\n نگهداری &lt;N&gt; ارتباطات برای قرینه سازی (پیش فرض:125)\n \n \n \n Connect to a node to retrieve peer addresses, and disconnect\n \n \n \n \n Specify your own public address\n \n \n \n \n Threshold for disconnecting misbehaving peers (default: 100)\n آستانه قطع برای قرینه سازی اشتباه (پیش فرض:100)\n \n \n \n Number of seconds to keep misbehaving peers from reconnecting (default: 86400)\n تعداد ثانیه ها برای اتصال دوباره قرینه های اشتباه (پیش فرض:86400)\n \n \n \n An error occurred while setting up the RPC port %u for listening on IPv4: %s\n \n \n \n \n Listen for JSON-RPC connections on &lt;port&gt; (default: 8332 or testnet: 18332)\n ارتباطاتِ JSON-RPC را در &lt;port&gt; گوش کنید (پیش فرض:8332)\n \n \n \n Accept command line and JSON-RPC commands\n command line و JSON-RPC commands را قبول کنید\n \n \n \n Run in the background as a daemon and accept commands\n به عنوان daemon بک گراند را اجرا کنید و دستورات را قبول نمایید\n \n \n \n Use the test network\n از تستِ شبکه استفاده نمایید\n \n \n \n Accept connections from outside (default: 1 if no -proxy or -connect)\n \n \n \n \n %s, you must set a rpcpassword in the configuration file:\n%s\nIt is recommended you use the following random password:\nrpcuser=callcoinrpc\nrpcpassword=%s\n(you do not need to remember this password)\nThe username and password MUST NOT be the same.\nIf the file does not exist, create it with owner-readable-only file permissions.\nIt is also recommended to set alertnotify so you are notified of problems;\nfor example: alertnotify=echo %%s | mail -s &quot;callcoin Alert&quot; admin@foo.com\n\n \n \n \n \n An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s\n \n \n \n \n Bind to given address and always listen on it. Use [host]:port notation for IPv6\n \n \n \n \n Cannot obtain a lock on data directory %s. callcoin is probably already running.\n \n \n \n \n Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.\n \n \n \n \n Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!\n \n \n \n \n Execute command when a relevant alert is received (%s in cmd is replaced by message)\n \n \n \n \n Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)\n \n \n \n \n Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)\n \n \n \n \n This is a pre-release test build - use at your own risk - do not use for mining or merchant applications\n \n \n \n \n Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.\n \n \n \n \n Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.\n \n \n \n \n Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong callcoin will not work properly.\n \n \n \n \n Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.\n \n \n \n \n Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.\n \n \n \n \n Attempt to recover private keys from a corrupt wallet.dat\n \n \n \n \n Block creation options:\n \n \n \n \n Connect only to the specified node(s)\n \n \n \n \n Corrupted block database detected\n \n \n \n \n Discover own IP address (default: 1 when listening and no -externalip)\n \n \n \n \n Do you want to rebuild the block database now?\n \n \n \n \n Error initializing block database\n \n \n \n \n Error initializing wallet database environment %s!\n \n \n \n \n Error loading block database\n \n \n \n \n Error opening block database\n \n \n \n \n Error: Disk space is low!\n \n \n \n \n Error: Wallet locked, unable to create transaction!\n \n \n \n \n Error: system error: \n \n \n \n \n Failed to listen on any port. Use -listen=0 if you want this.\n \n \n \n \n Failed to read block info\n \n \n \n \n Failed to read block\n \n \n \n \n Failed to sync block index\n \n \n \n \n Failed to write block index\n \n \n \n \n Failed to write block info\n \n \n \n \n Failed to write block\n \n \n \n \n Failed to write file info\n \n \n \n \n Failed to write to coin database\n \n \n \n \n Failed to write transaction index\n \n \n \n \n Failed to write undo data\n \n \n \n \n Find peers using DNS lookup (default: 1 unless -connect)\n \n \n \n \n Generate coins (default: 0)\n \n \n \n \n How many blocks to check at startup (default: 288, 0 = all)\n \n \n \n \n How thorough the block verification is (0-4, default: 3)\n \n \n \n \n Not enough file descriptors available.\n \n \n \n \n Rebuild block chain index from current blk000??.dat files\n \n \n \n \n Set the number of threads to service RPC calls (default: 4)\n \n \n \n \n Verifying blocks...\n \n \n \n \n Verifying wallet...\n \n \n \n \n Imports blocks from external blk000??.dat file\n \n \n \n \n Set the number of script verification threads (up to 16, 0 = auto, &lt;0 = leave that many cores free, default: 0)\n \n \n \n \n Information\n \n \n \n \n Invalid -tor address: &apos;%s&apos;\n \n \n \n \n Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;\n \n \n \n \n Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;\n \n \n \n \n Maintain a full transaction index (default: 0)\n \n \n \n \n Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)\n \n \n \n \n Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)\n \n \n \n \n Only accept block chain matching built-in checkpoints (default: 1)\n \n \n \n \n Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)\n \n \n \n \n Output extra debugging information. Implies all other -debug* options\n \n \n \n \n Output extra network debugging information\n \n \n \n \n Prepend debug output with timestamp\n برونداد اشکال زدایی با timestamp\n \n \n \n SSL options: (see the callcoin Wiki for SSL setup instructions)\n \n \n \n \n Select the version of socks proxy to use (4-5, default: 5)\n \n \n \n \n Send trace/debug info to console instead of debug.log file\n ارسال اطلاعات پیگیری/خطایابی به کنسول به جای ارسال به فایل debug.log\n \n \n \n Send trace/debug info to debugger\n ارسال اطاعات خطایابی/پیگیری به سیستم خطایاب\n \n \n \n Set maximum block size in bytes (default: 250000)\n \n \n \n \n Set minimum block size in bytes (default: 0)\n \n \n \n \n Shrink debug.log file on client startup (default: 1 when no -debug)\n \n \n \n \n Signing transaction failed\n \n \n \n \n Specify connection timeout in milliseconds (default: 5000)\n تعیین مدت زمان وقفه (time out) به هزارم ثانیه\n \n \n \n System error: \n \n \n \n \n Transaction amount too small\n \n \n \n \n Transaction amounts must be positive\n \n \n \n \n Transaction too large\n \n \n \n \n Use UPnP to map the listening port (default: 0)\n \n \n \n \n Use UPnP to map the listening port (default: 1 when listening)\n \n \n \n \n Use proxy to reach tor hidden services (default: same as -proxy)\n \n \n \n \n Username for JSON-RPC connections\n شناسه کاربری برای ارتباطاتِ JSON-RPC\n \n \n \n Warning\n \n \n \n \n Warning: This version is obsolete, upgrade required!\n \n \n \n \n You need to rebuild the databases using -reindex to change -txindex\n \n \n \n \n wallet.dat corrupt, salvage failed\n \n \n \n \n Password for JSON-RPC connections\n رمز برای ارتباطاتِ JSON-RPC\n \n \n \n Allow JSON-RPC connections from specified IP address\n ارتباطاتِ JSON-RPC را از آدرس آی.پی. مشخصی برقرار کنید.\n \n \n \n Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)\n دستورات را به گره اجرا شده در&lt;ip&gt; ارسال کنید (پیش فرض:127.0.0.1)\n \n \n \n Execute command when the best block changes (%s in cmd is replaced by block hash)\n دستور را وقتی بهترین بلاک تغییر کرد اجرا کن (%s در دستور توسط block hash جایگزین شده است)\n \n \n \n Upgrade wallet to latest format\n wallet را به جدیدترین نسخه روزآمد کنید\n \n \n \n Set key pool size to &lt;n&gt; (default: 100)\n حجم key pool را به اندازه &lt;n&gt; تنظیم کنید (پیش فرض:100)\n \n \n \n Rescan the block chain for missing wallet transactions\n زنجیره بلاک را برای تراکنش جا افتاده در WALLET دوباره اسکن کنید\n \n \n \n Use OpenSSL (https) for JSON-RPC connections\n برای ارتباطاتِ JSON-RPC از OpenSSL (https) استفاده کنید\n \n \n \n Server certificate file (default: server.cert)\n فایل certificate سرور (پیش فرض server.cert)\n \n \n \n Server private key (default: server.pem)\n رمز اختصاصی سرور (پیش فرض: server.pem)\n \n \n \n Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n ciphers قابل قبول (پیش فرض: default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)\n \n \n \n This help message\n این پیام راهنما\n \n \n \n Unable to bind to %s on this computer (bind returned error %d, %s)\n \n \n \n \n Connect through socks proxy\n \n \n \n \n Allow DNS lookups for -addnode, -seednode and -connect\n \n \n \n \n Loading addresses...\n لود شدن آدرسها..\n \n \n \n Error loading wallet.dat: Wallet corrupted\n خطا در هنگام لود شدن wallet.dat: Wallet corrupted\n \n \n \n Error loading wallet.dat: Wallet requires newer version of callcoin\n خطا در هنگام لود شدن wallet.dat. به نسخه جدید callcoin برای wallet نیاز است.\n \n \n \n Wallet needed to be rewritten: restart callcoin to complete\n wallet نیاز به بازنویسی دارد. callcoin را برای تکمیل عملیات دوباره اجرا کنید.\n \n \n \n Error loading wallet.dat\n خطا در هنگام لود شدن wallet.dat\n \n \n \n Invalid -proxy address: &apos;%s&apos;\n \n \n \n \n Unknown network specified in -onlynet: &apos;%s&apos;\n \n \n \n \n Unknown -socks proxy version requested: %i\n \n \n \n \n Cannot resolve -bind address: &apos;%s&apos;\n \n \n \n \n Cannot resolve -externalip address: &apos;%s&apos;\n \n \n \n \n Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;\n میزان اشتباه است for -paytxfee=&lt;amount&gt;: &apos;%s&apos;\n \n \n \n Invalid amount\n میزان اشتباه است\n \n \n \n Insufficient funds\n وجوه ناکافی\n \n \n \n Loading block index...\n لود شدن نمایه بلاکها..\n \n \n \n Add a node to connect to and attempt to keep the connection open\n یک گره برای اتصال اضافه کنید و تلاش کنید تا اتصال را باز نگاه دارید\n \n \n \n Unable to bind to %s on this computer. callcoin is probably already running.\n \n \n \n \n Fee per KB to add to transactions you send\n هزینه بر اساس کیلو بایت برای اضافه شدن به تراکنشی که ارسال کرده اید\n \n \n \n Loading wallet...\n wallet در حال لود شدن است...\n \n \n \n Cannot downgrade wallet\n قابلیت برگشت به نسخه قبلی برای wallet امکان پذیر نیست\n \n \n \n Cannot write default address\n آدرس پیش فرض قابل ذخیره نیست\n \n \n \n Rescanning...\n اسکنِ دوباره...\n \n \n \n Done loading\n اتمام لود شدن\n \n \n \n To use the %s option\n برای استفاده از %s از اختیارات\n \n \n \n Error\n خطا\n \n \n \n You must set rpcpassword=&lt;password&gt; in the configuration file:\n%s\nIf the file does not exist, create it with owner-readable-only file permissions.\n شما باید یک رمز rpcpassword=&lt;password&gt; را در فایل تنظیمات ایجاد کنید⏎ %s ⏎ اگر فایل ایجاد نشده است، آن را با یک فایل &quot;فقط متنی&quot; ایجاد کنید.\n\n \n\n"},"repo_name":{"kind":"string","value":"callcoin/callcoin"},"path":{"kind":"string","value":"src/qt/locale/bitcoin_fa_IR.ts"},"language":{"kind":"string","value":"TypeScript"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":107444,"string":"107,444"}}},{"rowIdx":1341,"cells":{"code":{"kind":"string","value":"\nThe MIT License (MIT)\n\nCopyright (c) 2017 Santiago Chávez\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},"repo_name":{"kind":"string","value":"sanxofon/basicnlp"},"path":{"kind":"string","value":"LICENSE.md"},"language":{"kind":"string","value":"Markdown"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":1084,"string":"1,084"}}},{"rowIdx":1342,"cells":{"code":{"kind":"string","value":"import { Component } from '@angular/core';\nimport { ContactService } from './contact.service';\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: ['./app.component.css']\n})\nexport class AppComponent {\n title = 'Simple Contacts Application';\n constructor(private contactService:ContactService){\n\n }\n}\n"},"repo_name":{"kind":"string","value":"csrahulram/contacts"},"path":{"kind":"string","value":"ng/src/app/app.component.ts"},"language":{"kind":"string","value":"TypeScript"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":342,"string":"342"}}},{"rowIdx":1343,"cells":{"code":{"kind":"string","value":"package org.moe.runtime\n\nclass MoeSystem(\n private var STDOUT : java.io.PrintStream = Console.out,\n private var STDIN : java.io.BufferedReader = Console.in,\n private var STDERR : java.io.PrintStream = Console.err\n ) {\n\n def getSTDIN = STDIN\n def getSTDOUT = STDOUT\n def getSTDERR = STDERR\n\n def getEnv = sys.env\n\n def exit () = sys.exit()\n def exit (status: Int) = sys.exit(status)\n}\n\n/*\n * Might be useful to steal much of what is in here:\n * https://github.com/scala/scala/blob/v2.10.0/src/library/scala/Console.scala\n */"},"repo_name":{"kind":"string","value":"MoeOrganization/moe"},"path":{"kind":"string","value":"src/main/scala/org/moe/runtime/MoeSystem.scala"},"language":{"kind":"string","value":"Scala"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":554,"string":"554"}}},{"rowIdx":1344,"cells":{"code":{"kind":"string","value":"table(\"movies\", ['id' => true, 'primary_key' => 'id']);\n $movies->addColumn('kinopoisk_id', 'integer')\n ->addColumn('name', 'string')\n ->addColumn('poster', 'string')\n ->addColumn('data', 'text')\n ->addIndex(['kinopoisk_id'])\n ->save();\n\n $sessions = $this->table(\"sessions\", ['id' => true, 'primary_key' => 'id']);\n $sessions->addColumn('movie_id', 'integer')\n ->addColumn('time', 'datetime')\n ->addIndex(['movie_id'])\n ->save();\n }\n}\n"},"repo_name":{"kind":"string","value":"kachkanar/website"},"path":{"kind":"string","value":"db/migrations/20171019235147_create_cinema_tables.php"},"language":{"kind":"string","value":"PHP"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":735,"string":"735"}}},{"rowIdx":1345,"cells":{"code":{"kind":"string","value":"import { delay } from \"../delay\"\nimport { getOneTrustConsent } from \"../getOneTrustConsent\"\nimport { oneTrustReady } from \"../oneTrustReady\"\n\njest.mock(\"../delay\")\njest.mock(\"../oneTrustReady\")\n\ndescribe(\"getOneTrustConsent\", () => {\n const delayMock = delay as jest.Mock\n const oneTrustReadyMock = oneTrustReady as jest.Mock\n\n beforeEach(() => {\n delayMock.mockImplementation(() => Promise.resolve())\n })\n\n afterEach(() => {\n delayMock.mockRestore()\n oneTrustReadyMock.mockRestore()\n })\n\n it(\"returns empty string if onetrust is never ready\", async () => {\n oneTrustReadyMock.mockImplementation(() => {\n return false\n })\n const result = await getOneTrustConsent()\n expect(delayMock).toHaveBeenCalledWith(10)\n expect(delayMock).toHaveBeenCalledTimes(101)\n expect(oneTrustReadyMock).toHaveBeenCalledWith()\n expect(oneTrustReadyMock).toHaveBeenCalledTimes(103)\n expect(result).toBe(\"\")\n })\n it(\"returns onetrust consent string if onetrust is ready\", async () => {\n oneTrustReadyMock.mockImplementation(() => {\n return true\n })\n window.OnetrustActiveGroups = \"C0001\"\n const result = await getOneTrustConsent()\n expect(delayMock).not.toHaveBeenCalled()\n expect(oneTrustReadyMock).toHaveBeenCalledWith()\n expect(result).toBe(\"C0001\")\n })\n})\n"},"repo_name":{"kind":"string","value":"artsy/force"},"path":{"kind":"string","value":"src/lib/analytics/segmentOneTrustIntegration/__tests__/getOneTrustConsent.jest.ts"},"language":{"kind":"string","value":"TypeScript"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":1310,"string":"1,310"}}},{"rowIdx":1346,"cells":{"code":{"kind":"string","value":"'use strict'\n\nconst { describe, it, beforeEach, afterEach } = require('mocha')\nconst Helper = require('hubot-test-helper')\nconst { expect } = require('chai')\nconst mock = require('mock-require')\nconst http = require('http')\n\nconst sleep = m => new Promise(resolve => setTimeout(() => resolve(), m))\nconst request = uri => {\n return new Promise((resolve, reject) => {\n http\n .get(uri, res => {\n const result = { statusCode: res.statusCode }\n if (res.statusCode !== 200) {\n resolve(result)\n } else {\n res.setEncoding('utf8')\n let rawData = ''\n res.on('data', chunk => {\n rawData += chunk\n })\n res.on('end', () => {\n result.body = rawData\n resolve(result)\n })\n }\n })\n .on('error', err => reject(err))\n })\n}\n\nconst infoRutStub = {\n getPersonByRut (rut) {\n return new Promise((resolve, reject) => {\n if (rut === '11111111-1') {\n return resolve({ name: 'Anonymous', rut })\n } else if (rut === '77777777-7') {\n return resolve({ name: 'Sushi', rut })\n } else if (rut === '22222222-2') {\n return resolve(null)\n }\n reject(new Error('Not found'))\n })\n },\n getEnterpriseByRut (rut) {\n return new Promise((resolve, reject) => {\n if (rut === '11111111-1') {\n return resolve({ name: 'Anonymous', rut })\n } else if (rut === '77777777-7') {\n return resolve({ name: 'Sushi', rut })\n } else if (rut === '22222222-2') {\n return resolve(null)\n }\n reject(new Error('Not found'))\n })\n },\n getPersonByName (name) {\n return new Promise((resolve, reject) => {\n if (name === 'juan perez perez') {\n return resolve([\n { rut: '11.111.111-1', name: 'Anonymous' },\n { rut: '11.111.111-1', name: 'Anonymous' },\n { rut: '11.111.111-1', name: 'Anonymous' },\n { rut: '11.111.111-1', name: 'Anonymous' },\n { rut: '11.111.111-1', name: 'Anonymous' },\n { rut: '11.111.111-1', name: 'Anonymous' }\n ])\n } else if (name === 'soto') {\n return resolve([\n { rut: '11.111.111-1', name: 'Anonymous' },\n { rut: '11.111.111-1', name: 'Anonymous' },\n { rut: '11.111.111-1', name: 'Anonymous' },\n { rut: '11.111.111-1', name: 'Anonymous' },\n { rut: '11.111.111-1', name: 'Anonymous' }\n ])\n } else if (name === 'info-rut') {\n return resolve([])\n }\n reject(new Error('Not found'))\n })\n },\n getEnterpriseByName (name) {\n return new Promise((resolve, reject) => {\n if (name === 'perez') {\n return resolve([{ rut: '11.111.111-1', name: 'Anonymous' }])\n } else if (name === 'info-rut') {\n return resolve([])\n }\n reject(new Error('Not found'))\n })\n }\n}\nmock('info-rut', infoRutStub)\n\nconst helper = new Helper('./../src/index.js')\n\ndescribe('info rut', function () {\n beforeEach(() => {\n this.room = helper.createRoom()\n })\n\n afterEach(() => this.room.destroy())\n\n describe('person rut valid', () => {\n const rut = '11111111-1'\n\n beforeEach(async () => {\n this.room.user.say('user', `hubot info-rut rut ${rut}`)\n await sleep(1000)\n })\n\n it('should return a full name', () => {\n expect(this.room.messages).to.eql([\n ['user', `hubot info-rut rut ${rut}`],\n ['hubot', `Anonymous (${rut})`]\n ])\n })\n })\n\n describe('enterprise rut valid', () => {\n const rut = '77777777-7'\n\n beforeEach(async () => {\n this.room.user.say('user', `hubot info-rut rut ${rut}`)\n await sleep(1000)\n })\n\n it('should return a full name', () => {\n expect(this.room.messages).to.eql([\n ['user', `hubot info-rut rut ${rut}`],\n ['hubot', `Sushi (${rut})`]\n ])\n })\n })\n\n describe('rut invalid', () => {\n const rut = '22222222-2'\n\n beforeEach(async () => {\n this.room.user.say('user', `hubot info-rut rut ${rut}`)\n await sleep(1000)\n })\n\n it('should return a error', () => {\n expect(this.room.messages).to.eql([\n ['user', `hubot info-rut rut ${rut}`],\n ['hubot', '@user rut sin resultados']\n ])\n })\n })\n\n describe('rut error', () => {\n const rut = '1'\n\n beforeEach(async () => {\n this.room.user.say('user', `hubot info-rut rut ${rut}`)\n await sleep(1000)\n })\n\n it('should return a error', () => {\n expect(this.room.messages).to.eql([\n ['user', `hubot info-rut rut ${rut}`],\n ['hubot', '@user ocurrio un error al consultar el rut']\n ])\n })\n })\n\n describe('name valid', () => {\n const name = 'juan perez perez'\n\n beforeEach(async () => {\n this.room.user.say('user', `hubot info-rut persona ${name}`)\n await sleep(1000)\n })\n\n it('should return a array of results with link', () => {\n expect(this.room.messages).to.eql([\n ['user', `hubot info-rut persona ${name}`],\n [\n 'hubot',\n 'Anonymous (11.111.111-1)\\n' +\n 'Anonymous (11.111.111-1)\\n' +\n 'Anonymous (11.111.111-1)\\n' +\n 'Anonymous (11.111.111-1)\\n' +\n 'Anonymous (11.111.111-1)\\n' +\n 'Más resultados en ' +\n 'http://localhost:8080/info-rut?name=juan%20perez%20perez&' +\n 'type=persona'\n ]\n ])\n })\n })\n\n describe('name valid', () => {\n const name = 'soto'\n\n beforeEach(async () => {\n this.room.user.say('user', `hubot info-rut persona ${name}`)\n await sleep(500)\n })\n\n it('should return a array of results', () => {\n expect(this.room.messages).to.eql([\n ['user', `hubot info-rut persona ${name}`],\n [\n 'hubot',\n 'Anonymous (11.111.111-1)\\n' +\n 'Anonymous (11.111.111-1)\\n' +\n 'Anonymous (11.111.111-1)\\n' +\n 'Anonymous (11.111.111-1)\\n' +\n 'Anonymous (11.111.111-1)'\n ]\n ])\n })\n })\n\n describe('name without results', () => {\n const name = 'info-rut'\n\n beforeEach(async () => {\n this.room.user.say('user', `hubot info-rut empresa ${name}`)\n await sleep(500)\n })\n\n it('should return a empty results', () => {\n expect(this.room.messages).to.eql([\n ['user', `hubot info-rut empresa ${name}`],\n ['hubot', `@user no hay resultados para ${name}`]\n ])\n })\n })\n\n describe('name invalid', () => {\n const name = 'asdf'\n\n beforeEach(async () => {\n this.room.user.say('user', `hubot info-rut persona ${name}`)\n await sleep(500)\n })\n\n it('should return a empty results', () => {\n expect(this.room.messages).to.eql([\n ['user', `hubot info-rut persona ${name}`],\n ['hubot', '@user ocurrio un error al consultar el nombre']\n ])\n })\n })\n\n describe('GET /info-rut?name=perez&type=persona', () => {\n beforeEach(async () => {\n this.response = await request(\n 'http://localhost:8080/info-rut?name=juan%20perez%20perez&type=persona'\n )\n })\n\n it('responds with status 200 and results', () => {\n expect(this.response.statusCode).to.equal(200)\n expect(this.response.body).to.equal(\n 'Anonymous (11.111.111-1)
' +\n 'Anonymous (11.111.111-1)
' +\n 'Anonymous (11.111.111-1)
' +\n 'Anonymous (11.111.111-1)
' +\n 'Anonymous (11.111.111-1)
' +\n 'Anonymous (11.111.111-1)'\n )\n })\n })\n\n describe('GET /info-rut?name=perez&type=empresa', () => {\n beforeEach(async () => {\n this.response = await request(\n 'http://localhost:8080/info-rut?name=perez&type=empresa'\n )\n })\n\n it('responds with status 200 and results', () => {\n expect(this.response.statusCode).to.equal(200)\n expect(this.response.body).to.equal('Anonymous (11.111.111-1)')\n })\n })\n\n describe('GET /info-rut?name=info-rut&type=persona', () => {\n beforeEach(async () => {\n this.response = await request(\n 'http://localhost:8080/info-rut?name=info-rut&type=persona'\n )\n })\n\n it('responds with status 200 and not results', () => {\n expect(this.response.statusCode).to.equal(200)\n expect(this.response.body).to.equal('no hay resultados para info-rut')\n })\n })\n\n describe('GET /info-rut', () => {\n beforeEach(async () => {\n this.response = await request('http://localhost:8080/info-rut')\n })\n\n it('responds with status 200 and not results', () => {\n expect(this.response.statusCode).to.equal(200)\n expect(this.response.body).to.equal('faltan los parametros type y name')\n })\n })\n\n describe('GET /info-rut?name=asdf&type=persona', () => {\n beforeEach(async () => {\n this.response = await request(\n 'http://localhost:8080/info-rut?name=asdf&type=persona'\n )\n })\n\n it('responds with status 200 and not results', () => {\n expect(this.response.statusCode).to.equal(200)\n expect(this.response.body).to.equal(\n 'Ocurrio un error al consultar el nombre'\n )\n })\n })\n})\n"},"repo_name":{"kind":"string","value":"lgaticaq/hubot-info-rut"},"path":{"kind":"string","value":"test/test.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":9067,"string":"9,067"}}},{"rowIdx":1347,"cells":{"code":{"kind":"string","value":"module Modernizr\n module Rails\n class Engine < ::Rails::Engine\n end\n end\nend\n"},"repo_name":{"kind":"string","value":"tsechingho/modernizr-rails"},"path":{"kind":"string","value":"lib/modernizr-rails/engine.rb"},"language":{"kind":"string","value":"Ruby"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":85,"string":"85"}}},{"rowIdx":1348,"cells":{"code":{"kind":"string","value":"using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\nnamespace Fungus\n{\n // \n /// Add force to a Rigidbody2D\n /// \n [CommandInfo(\"Rigidbody2D\",\n \"AddForce2D\",\n \"Add force to a Rigidbody2D\")]\n [AddComponentMenu(\"\")]\n public class AddForce2D : Command\n {\n [SerializeField]\n protected Rigidbody2DData rb;\n\n [SerializeField]\n protected ForceMode2D forceMode = ForceMode2D.Force;\n\n public enum ForceFunction\n {\n AddForce,\n AddForceAtPosition,\n AddRelativeForce\n }\n\n [SerializeField]\n protected ForceFunction forceFunction = ForceFunction.AddForce;\n\n [Tooltip(\"Vector of force to be added\")]\n [SerializeField]\n protected Vector2Data force;\n\n [Tooltip(\"Scale factor to be applied to force as it is used.\")]\n [SerializeField]\n protected FloatData forceScaleFactor = new FloatData(1);\n\n [Tooltip(\"World position the force is being applied from. Used only in AddForceAtPosition\")]\n [SerializeField]\n protected Vector2Data atPosition;\n\n public override void OnEnter()\n {\n switch (forceFunction)\n {\n case ForceFunction.AddForce:\n rb.Value.AddForce(force.Value * forceScaleFactor.Value, forceMode);\n break;\n case ForceFunction.AddForceAtPosition:\n rb.Value.AddForceAtPosition(force.Value * forceScaleFactor.Value, atPosition.Value, forceMode);\n break;\n case ForceFunction.AddRelativeForce:\n rb.Value.AddRelativeForce(force.Value * forceScaleFactor.Value, forceMode);\n break;\n default:\n break;\n }\n\n\n Continue();\n }\n\n public override string GetSummary()\n {\n return forceMode.ToString() + \": \" + force.ToString();\n }\n\n public override Color GetButtonColor()\n {\n return new Color32(235, 191, 217, 255);\n }\n\n public override bool HasReference(Variable variable)\n {\n if (rb.rigidbody2DRef == variable || force.vector2Ref == variable || forceScaleFactor.floatRef == variable ||\n atPosition.vector2Ref == variable)\n return true;\n\n return false;\n }\n\n }\n}"},"repo_name":{"kind":"string","value":"FungusGames/Fungus"},"path":{"kind":"string","value":"Assets/Fungus/Scripts/Commands/Rigidbody2D/AddForce2D.cs"},"language":{"kind":"string","value":"C#"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":2491,"string":"2,491"}}},{"rowIdx":1349,"cells":{"code":{"kind":"string","value":"// package metadata file for Meteor.js\n\nPackage.describe({\n name: 'startup-cafe',\n \"author\": \"Dragos Mateescu \",\n \"licenses\": [\n {\n \"type\": \"MIT\",\n \"url\": \"http://opensource.org/licenses/MIT\"\n }\n ],\n \"scripts\": {\n\n },\n \"engines\": {\n \"node\": \">= 0.10.0\"\n },\n \"devDependencies\": {\n \"grunt\": \"~0.4.5\",\n \"grunt-autoprefixer\": \"~0.8.1\",\n \"grunt-contrib-concat\": \"~0.4.0\",\n \"grunt-contrib-jshint\": \"~0.10.0\",\n \"grunt-contrib-less\": \"~0.11.3\",\n \"grunt-contrib-uglify\": \"~0.5.0\",\n \"grunt-contrib-watch\": \"~0.6.1\",\n \"grunt-contrib-clean\": \"~ v0.6.0\",\n \"grunt-modernizr\": \"~0.5.2\",\n \"grunt-stripmq\": \"0.0.6\",\n \"grunt-wp-assets\": \"~0.2.6\",\n \"load-grunt-tasks\": \"~0.6.0\",\n \"time-grunt\": \"~0.3.2\",\n \"grunt-bless\": \"^0.1.1\"\n }\n});\n\nPackage.onUse(function (api) {\n api.versionsFrom('METEOR@1.0');\n api.use('jquery', 'client');\n api.addFiles([\n 'dist/fonts/glyphicons-halflings-regular.eot',\n 'dist/fonts/glyphicons-halflings-regular.svg',\n 'dist/fonts/glyphicons-halflings-regular.ttf',\n 'dist/fonts/glyphicons-halflings-regular.woff',\n 'dist/fonts/glyphicons-halflings-regular.woff2',\n 'dist/css/bootstrap.css',\n 'dist/js/bootstrap.js',\n ], 'client');\n});\n"},"repo_name":{"kind":"string","value":"dragosmateescu/startup-cafe"},"path":{"kind":"string","value":"package.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":1260,"string":"1,260"}}},{"rowIdx":1350,"cells":{"code":{"kind":"string","value":"exports.engine = function(version){\n\tversion = version || null;\n\tswitch (version){\n\t\tcase null:\n\t\tcase '0.8.2':\n\t\t\treturn require('./0.8.2').engine;\n\t\tdefault:\n\t\t\treturn null;\n\t}\n};\n"},"repo_name":{"kind":"string","value":"keeto/deck"},"path":{"kind":"string","value":"Source/engines/v8cgi/engine.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":182,"string":"182"}}},{"rowIdx":1351,"cells":{"code":{"kind":"string","value":"/* This is a managed file. Do not delete this comment. */\n\n#include \n\nstatic void echo(lifecycle_Foo this, char* hook) {\n corto_state s = corto_stateof(this);\n char *stateStr = corto_ptr_str(&s, corto_state_o, 0);\n corto_info(\"callback: %s [%s]\", \n hook,\n stateStr);\n free(stateStr);\n}\n\nint16_t lifecycle_Foo_construct(\n lifecycle_Foo this)\n{\n echo(this, \"construct\");\n return 0;\n}\n\nvoid lifecycle_Foo_define(\n lifecycle_Foo this)\n{\n echo(this, \"define\");\n}\n\nvoid lifecycle_Foo_deinit(\n lifecycle_Foo this)\n{\n echo(this, \"deinit\");\n}\n\nvoid lifecycle_Foo_delete(\n lifecycle_Foo this)\n{\n echo(this, \"delete\");\n}\n\nvoid lifecycle_Foo_destruct(\n lifecycle_Foo this)\n{\n echo(this, \"destruct\");\n}\n\nint16_t lifecycle_Foo_init(\n lifecycle_Foo this)\n{\n echo(this, \"init\");\n return 0;\n}\n\nvoid lifecycle_Foo_update(\n lifecycle_Foo this)\n{\n echo(this, \"update\");\n}\n\nint16_t lifecycle_Foo_validate(\n lifecycle_Foo this)\n{\n echo(this, \"validate\");\n return 0;\n}\n\n"},"repo_name":{"kind":"string","value":"cortoproject/examples"},"path":{"kind":"string","value":"c/modeling/lifecycle/src/Foo.c"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":1051,"string":"1,051"}}},{"rowIdx":1352,"cells":{"code":{"kind":"string","value":"\"\"\"\nhttp://community.topcoder.com/stat?c=problem_statement&pm=1667\n\nSingle Round Match 147 Round 1 - Division II, Level One\n\"\"\"\n\n\nclass CCipher:\n def decode(self, cipherText, shift):\n a = ord('A')\n decoder = [a + (c - shift if c >= shift else c - shift + 26) for c in range(26)]\n plain = [chr(decoder[ord(c) - a]) for c in cipherText]\n return ''.join(plain)\n"},"repo_name":{"kind":"string","value":"warmsea/tc-srm"},"path":{"kind":"string","value":"srm147/CCipher.py"},"language":{"kind":"string","value":"Python"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":389,"string":"389"}}},{"rowIdx":1353,"cells":{"code":{"kind":"string","value":"'use strict';\n\nvar Killable = artifacts.require('../contracts/lifecycle/Killable.sol');\nrequire('./helpers/transactionMined.js');\n\ncontract('Killable', function(accounts) {\n\n it('should send balance to owner after death', async function() {\n let killable = await Killable.new({from: accounts[0], value: web3.toWei('10','ether')});\n let owner = await killable.owner();\n let initBalance = web3.eth.getBalance(owner);\n await killable.kill({from: owner});\n let newBalance = web3.eth.getBalance(owner);\n\n assert.isTrue(newBalance > initBalance);\n });\n\n});\n"},"repo_name":{"kind":"string","value":"maraoz/zeppelin-solidity"},"path":{"kind":"string","value":"test/Killable.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":571,"string":"571"}}},{"rowIdx":1354,"cells":{"code":{"kind":"string","value":"//\n// PCMenuPopView.h\n// PCMenuPopDemo\n//\n// Created by peichuang on 16/6/30.\n// Copyright © 2016年 peichuang. All rights reserved.\n//\n\n#import \n\n@class PCMenuPopView;\n\n@protocol PCMenuPopViewDelegate \n\n//返回需要多少个菜单项\n- (NSInteger)numberOfitemsInMenuPopView:(PCMenuPopView *)menuPopView;\n//配置对应菜单button\n- (void)menuPopView:(PCMenuPopView *)menuPopView configureWithMenuItem:(UIButton *)menuButton index:(NSInteger)index;\n//配置对应的button的位置\n- (CGRect)menuPopView:(PCMenuPopView *)menuPopView rectForMenuItemWithIndex:(NSInteger)index;\n\n@end\n\n@interface PCMenuPopView : UIView\n\n@property (nonatomic, strong) UIButton *closeButton;\n@property (nonatomic, weak) iddelegate;\n\n- (void)showInView:(UIView *)view withPopButton:(UIButton *)popButton;\n\n- (void)hide;\n//根据index可以设置默认位置,从右到左的顺序\n- (CGRect)defaultItemRectWithSize:(CGSize)size index:(NSInteger)index;\n\n@end\n"},"repo_name":{"kind":"string","value":"pclion/MenuPopView"},"path":{"kind":"string","value":"PCMenuPopDemo/PCMenuPopView/PCMenuPopView.h"},"language":{"kind":"string","value":"C"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":993,"string":"993"}}},{"rowIdx":1355,"cells":{"code":{"kind":"string","value":"---\nlayout: post\ntitle: Word Embedding\ncategory: NLP\n---\n\n## 基于矩阵的分布表示 \n\n* 选取上下文,确定矩阵类型 \n1. “词-文档”矩阵,非常稀疏 \n2. “词-词”矩阵,选取词附近上下文中的各个词(如上下文窗口中的5个词),相对稠密 \n3. “词-n gram词组”,选取词附近上下文各词组成的n元词组,更加精准,但是更加稀疏 \n\n* 确定矩阵中各元素的值,包括TF-IDF,PMI,log \n* 矩阵分解,包括 SVD,NMF,CCA,HPCA \n\n## 基于神经网络的语言模型\n* NNLM basic Language model \n![nnlm](http://7xpv97.com1.z0.glb.clouddn.com/6e27cb7b6cc755694077db17bd0f3a29.png)\n* LBL 双线性结构\n 和nnlm基本类似,只是输出的目标函数稍有不同。\n* RNNLM 利用所有的上下文信息,不进行简化(每个词都用上之前看过的所有单词,而不是n个)\n\n一个语言模型的描述\n![word-embedding-1](http://7xpv97.com1.z0.glb.clouddn.com/e4f2ceab920fa8692122d09e3d38a853.png)\n当m很大的时候没法算,因此做了n-gram的估算\n![word-embedding-2](http://7xpv97.com1.z0.glb.clouddn.com/842c3f059e28d74deff8912cc16662af.png)\n在计算右边的公式的时候,一般直接采用频率计数的方法进行计算\n![word-embedding-3](http://7xpv97.com1.z0.glb.clouddn.com/a3a8bf394bb857bfb85824ef4de65c26.png)\n由此带来的问题是数据稀疏问题和平滑问题,由此,神经网络语言模型产生。\n\nBengio Neural Probabilistic Language Model\n\n![nplm](http://7xpv97.com1.z0.glb.clouddn.com/81301bde23b2843b1a1835410e949ae4.png)\n\nx是一个分布式向量\n\n![distribution](http://7xpv97.com1.z0.glb.clouddn.com/28d9f8c439364f6c190513346c97fcc8.png)\n\n### word2vec\n前面的模型相对而言都很复杂,然后出了一个CBOW和Skip-gram模型。\n![skip-gram model](http://7xpv97.com1.z0.glb.clouddn.com/f7190942789f72698eb5593189e2b4e4.png)\n没有很多的计算过程,就是根据上下文关系的softmax\n"},"repo_name":{"kind":"string","value":"cdmaok/cdmaok.github.io"},"path":{"kind":"string","value":"_drafts/2016-03-01-Word-Embedding.md"},"language":{"kind":"string","value":"Markdown"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":1967,"string":"1,967"}}},{"rowIdx":1356,"cells":{"code":{"kind":"string","value":"from hwt.synthesizer.rtlLevel.extract_part_drivers import extract_part_drivers\nfrom hwt.synthesizer.rtlLevel.remove_unconnected_signals import removeUnconnectedSignals\nfrom hwt.synthesizer.rtlLevel.mark_visibility_of_signals_and_check_drivers import markVisibilityOfSignalsAndCheckDrivers\n\n\nclass DummyPlatform():\n \"\"\"\n :note: all processors has to be callable with only one parameter\n which is actual Unit/RtlNetlist instance\n \"\"\"\n\n def __init__(self):\n self.beforeToRtl = []\n self.beforeToRtlImpl = []\n self.afterToRtlImpl = []\n\n self.beforeHdlArchGeneration = [\n extract_part_drivers,\n removeUnconnectedSignals,\n markVisibilityOfSignalsAndCheckDrivers,\n ]\n self.afterToRtl = []\n"},"repo_name":{"kind":"string","value":"Nic30/HWToolkit"},"path":{"kind":"string","value":"hwt/synthesizer/dummyPlatform.py"},"language":{"kind":"string","value":"Python"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":775,"string":"775"}}},{"rowIdx":1357,"cells":{"code":{"kind":"string","value":"using Microsoft.Diagnostics.Tracing;\nusing System;\nusing System.Collections.Concurrent;\nusing System.Diagnostics;\nusing System.Linq;\nusing System.Management.Automation;\nusing System.Reactive.Disposables;\nusing System.Reactive.Linq;\nusing System.Threading;\n\nnamespace EtwStream.PowerShell\n{\n [Cmdlet(VerbsCommon.Get, \"TraceEventStream\", DefaultParameterSetName = \"nameOrGuid\")]\n public class GetTraceEvent : PSCmdlet\n {\n private CompositeDisposable disposable = new CompositeDisposable();\n\n [Parameter(Position = 0, ParameterSetName = \"nameOrGuid\", Mandatory = true, ValueFromPipeline = true)]\n public string[] NameOrGuid { get; set; }\n\n [ValidateSet(\n nameof(WellKnownEventSources.AspNetEventSource),\n nameof(WellKnownEventSources.ConcurrentCollectionsEventSource),\n nameof(WellKnownEventSources.FrameworkEventSource),\n nameof(WellKnownEventSources.PinnableBufferCacheEventSource),\n nameof(WellKnownEventSources.PlinqEventSource),\n nameof(WellKnownEventSources.SqlEventSource),\n nameof(WellKnownEventSources.SynchronizationEventSource),\n nameof(WellKnownEventSources.TplEventSource))]\n [Parameter(Position = 0, ParameterSetName = \"wellKnown\", Mandatory = true, ValueFromPipeline = true)]\n public string[] WellKnownEventSource { get; set; }\n\n\n [ValidateSet(\n nameof(IISEventSources.AspDotNetEvents),\n nameof(IISEventSources.HttpEvent),\n nameof(IISEventSources.HttpLog),\n nameof(IISEventSources.HttpService),\n nameof(IISEventSources.IISAppHostSvc),\n nameof(IISEventSources.IISLogging),\n nameof(IISEventSources.IISW3Svc),\n nameof(IISEventSources.RuntimeWebApi),\n nameof(IISEventSources.RuntimeWebHttp))]\n [Parameter(Position = 0, ParameterSetName = \"IIS\", Mandatory = true, ValueFromPipeline = true)]\n public string[] IISEventSource { get; set; }\n\n\n [Parameter]\n public SwitchParameter DumpWithColor { get; set; }\n\n [Parameter]\n public TraceEventLevel TraceLevel { get; set; } = TraceEventLevel.Verbose;\n\n private IObservable listener = Observable.Empty();\n\n protected override void ProcessRecord()\n {\n switch (ParameterSetName)\n {\n case \"wellKnown\":\n listener = listener.Merge(WellKnownEventSource.Select(x => GetWellKnownEventListener(x)).Merge());\n break;\n case \"IIS\":\n listener = listener.Merge(IISEventSource.Select(x => GetIISEventListener(x)).Merge());\n break;\n default:\n listener = listener.Merge(NameOrGuid.Select(x => ObservableEventListener.FromTraceEvent(x)).Merge());\n break;\n }\n }\n\n protected override void EndProcessing()\n {\n var q = new BlockingCollection();\n Exception exception = null;\n\n var d = listener\n .Where(x => Process.GetCurrentProcess().Id != x.ProcessID)\n .Where(x => x.Level <= TraceLevel)\n .Subscribe(\n x =>\n {\n q.Add(() =>\n {\n var item = new PSTraceEvent(x, Host.UI);\n if (DumpWithColor.IsPresent)\n {\n item.DumpWithColor();\n }\n else\n {\n WriteObject(item);\n }\n WriteVerbose(item.DumpPayloadOrMessage());\n });\n },\n e =>\n {\n exception = e;\n q.CompleteAdding();\n }, q.CompleteAdding);\n\n\n disposable.Add(d);\n var cts = new CancellationTokenSource();\n disposable.Add(new CancellationDisposable(cts));\n foreach (var act in q.GetConsumingEnumerable(cts.Token))\n {\n act();\n }\n\n if (exception != null)\n {\n ThrowTerminatingError(new ErrorRecord(exception, \"1\", ErrorCategory.OperationStopped, null));\n }\n }\n\n protected override void StopProcessing()\n {\n disposable.Dispose();\n }\n\n private IObservable GetWellKnownEventListener(string wellKnownEventSource)\n {\n switch (wellKnownEventSource)\n {\n case nameof(WellKnownEventSources.AspNetEventSource):\n return ObservableEventListener.FromTraceEvent(WellKnownEventSources.AspNetEventSource);\n case nameof(WellKnownEventSources.ConcurrentCollectionsEventSource):\n return ObservableEventListener.FromTraceEvent(WellKnownEventSources.ConcurrentCollectionsEventSource);\n case nameof(WellKnownEventSources.FrameworkEventSource):\n return ObservableEventListener.FromTraceEvent(WellKnownEventSources.FrameworkEventSource);\n case nameof(WellKnownEventSources.PinnableBufferCacheEventSource):\n return ObservableEventListener.FromTraceEvent(WellKnownEventSources.PinnableBufferCacheEventSource);\n case nameof(WellKnownEventSources.PlinqEventSource):\n return ObservableEventListener.FromTraceEvent(WellKnownEventSources.PlinqEventSource);\n case nameof(WellKnownEventSources.SqlEventSource):\n return ObservableEventListener.FromTraceEvent(WellKnownEventSources.SqlEventSource);\n case nameof(WellKnownEventSources.SynchronizationEventSource):\n return ObservableEventListener.FromTraceEvent(WellKnownEventSources.SynchronizationEventSource);\n case nameof(WellKnownEventSources.TplEventSource):\n return ObservableEventListener.FromTraceEvent(WellKnownEventSources.TplEventSource);\n default:\n return Observable.Empty();\n }\n }\n\n private IObservable GetIISEventListener(string iisEventSource)\n {\n\n switch (iisEventSource)\n {\n case nameof(IISEventSources.AspDotNetEvents):\n return ObservableEventListener.FromTraceEvent(IISEventSources.AspDotNetEvents);\n case nameof(IISEventSources.HttpEvent):\n return ObservableEventListener.FromTraceEvent(IISEventSources.HttpEvent);\n case nameof(IISEventSources.HttpLog):\n return ObservableEventListener.FromTraceEvent(IISEventSources.HttpLog);\n case nameof(IISEventSources.HttpService):\n return ObservableEventListener.FromTraceEvent(IISEventSources.HttpService);\n case nameof(IISEventSources.IISAppHostSvc):\n return ObservableEventListener.FromTraceEvent(IISEventSources.IISAppHostSvc);\n case nameof(IISEventSources.IISLogging):\n return ObservableEventListener.FromTraceEvent(IISEventSources.IISLogging);\n case nameof(IISEventSources.IISW3Svc):\n return ObservableEventListener.FromTraceEvent(IISEventSources.IISW3Svc);\n case nameof(IISEventSources.RuntimeWebApi):\n return ObservableEventListener.FromTraceEvent(IISEventSources.RuntimeWebApi);\n case nameof(IISEventSources.RuntimeWebHttp):\n return ObservableEventListener.FromTraceEvent(IISEventSources.RuntimeWebHttp);\n default:\n return Observable.Empty();\n\n }\n }\n }\n\n}\n"},"repo_name":{"kind":"string","value":"pierre3/EtwStream.PowerShell"},"path":{"kind":"string","value":"EtwStream.PowerShell/GetTraceEventStream.cs"},"language":{"kind":"string","value":"C#"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":7932,"string":"7,932"}}},{"rowIdx":1358,"cells":{"code":{"kind":"string","value":"package com.yunpian.sdk.model;\n\n/**\n * Created by bingone on 15/11/8.\n */\npublic class VoiceSend extends BaseInfo {\n\n}\n"},"repo_name":{"kind":"string","value":"yunpian/yunpian-java-sdk"},"path":{"kind":"string","value":"src/main/java/com/yunpian/sdk/model/VoiceSend.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":119,"string":"119"}}},{"rowIdx":1359,"cells":{"code":{"kind":"string","value":"package com.ipvans.flickrgallery.ui.main;\n\nimport android.util.Log;\n\nimport com.ipvans.flickrgallery.data.SchedulerProvider;\nimport com.ipvans.flickrgallery.di.PerActivity;\nimport com.ipvans.flickrgallery.domain.FeedInteractor;\nimport com.ipvans.flickrgallery.domain.UpdateEvent;\n\nimport java.util.concurrent.TimeUnit;\n\nimport javax.inject.Inject;\n\nimport io.reactivex.Observable;\nimport io.reactivex.disposables.CompositeDisposable;\nimport io.reactivex.disposables.Disposable;\nimport io.reactivex.subjects.BehaviorSubject;\nimport io.reactivex.subjects.PublishSubject;\n\nimport static com.ipvans.flickrgallery.ui.main.MainViewState.*;\n\n@PerActivity\npublic class MainPresenterImpl implements MainPresenter {\n\n private final FeedInteractor interactor;\n private final SchedulerProvider schedulers;\n\n private BehaviorSubject stateSubject = BehaviorSubject.createDefault(empty());\n private PublishSubject searchSubject = PublishSubject.create();\n\n private Disposable disposable = new CompositeDisposable();\n\n @Inject\n public MainPresenterImpl(FeedInteractor interactor, SchedulerProvider schedulers) {\n this.interactor = interactor;\n this.schedulers = schedulers;\n }\n\n @Override\n public void onAttach() {\n Observable.combineLatest(searchSubject\n .debounce(150, TimeUnit.MILLISECONDS, schedulers.io())\n .doOnNext(interactor::getFeed),\n interactor.observe(),\n (tags, feed) -> new MainViewState(feed.isLoading(),\n feed.getError(), feed.getData(), tags.getTags()))\n .withLatestFrom(stateSubject,\n (newState, oldState) -> new MainViewState(\n newState.isLoading(), newState.getError(),\n newState.getData() != null ? newState.getData() : oldState.getData(),\n newState.getTags()\n ))\n .observeOn(schedulers.io())\n .subscribeWith(stateSubject)\n .onSubscribe(disposable);\n }\n\n @Override\n public void onDetach() {\n disposable.dispose();\n }\n\n @Override\n public void restoreState(MainViewState data) {\n stateSubject.onNext(data);\n }\n\n @Override\n public Observable observe() {\n return stateSubject;\n }\n\n @Override\n public MainViewState getLatestState() {\n return stateSubject.getValue();\n }\n\n @Override\n public void search(String tags, boolean force) {\n searchSubject.onNext(new UpdateEvent(tags, force));\n }\n}\n"},"repo_name":{"kind":"string","value":"VansPo/flickr-gallery"},"path":{"kind":"string","value":"FlickrGallery/app/src/main/java/com/ipvans/flickrgallery/ui/main/MainPresenterImpl.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":2680,"string":"2,680"}}},{"rowIdx":1360,"cells":{"code":{"kind":"string","value":"package aaron.org.anote.viewbinder;\n\nimport android.app.Activity;\nimport android.os.Bundle;\n\npublic class DynamicActivity extends Activity {\n @Override\n public void onCreate(Bundle savedInstance) {\n super.onCreate(savedInstance);\n Layout.start(this);\n }\n}\n"},"repo_name":{"kind":"string","value":"phil0522/anote"},"path":{"kind":"string","value":"anote-mobile/ANote/app/src/main/java/aaron/org/anote/viewbinder/DynamicActivity.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":279,"string":"279"}}},{"rowIdx":1361,"cells":{"code":{"kind":"string","value":"'use strict';\n\ndescribe('Directive: resize', function () {\n\n\t// load the directive's module\n\tbeforeEach(module('orderDisplayApp'));\n\n\tvar element,\n\t\tscope;\n\n\tbeforeEach(inject(function ($rootScope) {\n\t\tscope = $rootScope.$new();\n\t}));\n\n\t//TODO: Add unit tests\n\t\n\t/*it('should change height', inject(function ($compile, $window) {\n\t\telement = angular.element('');\n\t\telement = $compile(element)(scope);\n\n\t\texpect(scope.screenHeight).toBe($window.outerHeight);\n\t}));*/\n});\n"},"repo_name":{"kind":"string","value":"PureHacks/PickMeUp"},"path":{"kind":"string","value":"test/spec/directives/resize.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":487,"string":"487"}}},{"rowIdx":1362,"cells":{"code":{"kind":"string","value":"/*\n * Copyright (c) 2005 Dizan Vasquez.\n * \n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * \n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n * \n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\npackage net.jenet;\n\nimport java.nio.ByteBuffer;\n\nimport org.apache.commons.lang.builder.ToStringBuilder;\nimport org.apache.commons.lang.builder.ToStringStyle;\n\n/**\n * Wraps information to be sent through JeNet.\n * @author Dizan Vasquez\n */\npublic class Packet implements IBufferable {\n\n /**\n * Indicates that this packet is reliable\n */\n public static final int FLAG_RELIABLE = 1;\n\n /**\n * Indicates that the packet should be processed no \n * matter its order relative to other packets.\n */\n public static final int FLAG_UNSEQUENCED = 2;\n\n protected int referenceCount;\n\n protected int flags;\n\n protected ByteBuffer data;\n\n protected int dataLength;\n\n private Packet() {\n super();\n }\n\n /**\n * Creates a new Packet.\n * The constructor allocates a new packet and allocates a\n * buffer of dataLength bytes for it.\n * \n * @param dataLength\n * The size in bytes of this packet.\n * @param flags\n * An byte inidicating the how to handle this packet.\n */\n public Packet( int dataLength, int flags ) {\n data = ByteBuffer.allocateDirect( dataLength );\n this.dataLength = dataLength;\n this.flags = flags;\n }\n \n /**\n * Copies this packet's data into the given buffer.\n * @param buffer\n * Destination buffer\n */\n public void toBuffer( ByteBuffer buffer ) {\n data.flip();\n for ( int i = 0; i < dataLength; i++ ) {\n buffer.put( data.get() );\n }\n }\n\n /**\n * Copies part of this packet's data into the given buffer.\n * @param buffer\n * Destination buffer\n * @param offset\n * Initial position of the destination buffer\n * @param length\n * Total number of bytes to copy\n */\n public void toBuffer( ByteBuffer buffer, int offset, int length ) {\n int position = data.position();\n int limit = data.limit();\n data.flip();\n data.position( offset );\n for ( int i = 0; i < length; i++ ) {\n buffer.put( data.get() );\n }\n data.position( position );\n data.limit( limit );\n }\n\n /**\n * Copies the given buffer into this packet's data.\n * @ param buffer\n * Buffer to copy from\n */\n public void fromBuffer( ByteBuffer buffer ) {\n data.clear();\n for ( int i = 0; i < dataLength; i++ ) {\n data.put( buffer.get() );\n }\n }\n \n /**\n * Copies part of the given buffer into this packet's data.\n * @param buffer\n * Buffer to copy from\n * @param fragmentOffset\n * Position of the first byte to copy\n * @param length\n * Total number of bytes to copy\n */\n public void fromBuffer( ByteBuffer buffer, int fragmentOffset, int length ) {\n data.position( fragmentOffset );\n for ( int i = 0; i < length; i++ ) {\n data.put( buffer.get() );\n }\n data.position( dataLength );\n data.limit( dataLength );\n }\n\n /**\n * Returs size of this packet.\n * @return Size in bytes of this packet\n */\n public int byteSize() {\n return dataLength;\n }\n\n /**\n * Returns the data contained in this packet\n * @return Returns the data.\n */\n public ByteBuffer getData() {\n return data;\n }\n\n \n /**\n * Returns the size in bytes of this packet's data\n * @return Returns the dataLength.\n */\n public int getDataLength() {\n return dataLength;\n }\n\n /**\n * Returns this packet's flags.\n * @return Returns the flags.\n */\n public int getFlags() {\n return flags;\n }\n\n /**\n * @return Returns the referenceCount.\n */\n int getReferenceCount() {\n return referenceCount;\n }\n\n /**\n * Sets the flags for this packet.\n * The parameter is an or of the flags FLAG_RELIABLE and FLAG_UNSEQUENCED\n * a value of zero indicates an unreliable, sequenced (last one is kept) packet.\n * @param flags\n * The flags to set.\n */\n public void setFlags( int flags ) {\n this.flags = flags;\n }\n\n /**\n * @param referenceCount\n * The referenceCount to set.\n */\n void setReferenceCount( int referenceCount ) {\n this.referenceCount = referenceCount;\n }\n\n public String toString() {\n return ToStringBuilder.reflectionToString( this, ToStringStyle.MULTI_LINE_STYLE );\n }\n\n}"},"repo_name":{"kind":"string","value":"seeseekey/jenet"},"path":{"kind":"string","value":"src/net/jenet/Packet.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":6482,"string":"6,482"}}},{"rowIdx":1363,"cells":{"code":{"kind":"string","value":"'use strict';\n\n\nangular.module('core').controller('HomeController', ['$scope', 'Authentication', '$http', '$modal','$rootScope',\n\tfunction($scope, Authentication, $http, $modal, $rootScope) {\n\t\t// This provides Authentication context.\n\t\t$scope.authentication = Authentication;\n\n\n\n $scope.card = {};\n\n $scope.columnWidth = function() {\n return Math.floor((100 / $scope.columns.length) * 100) / 100;\n };\n\n $scope.updateCard = function(column, card) {\n\n var modalInstance = $modal.open({\n templateUrl: '/modules/core/views/card-details.client.view.html',\n controller: modalController,\n size: 'lg',\n resolve: {\n items: function() {\n return angular.copy({\n title: card.title,\n Details: card.details,\n release: card.release,\n cardColor: card.ragStatus,\n column: column,\n architect: card.architect,\n analyst: card.Analyst,\n designer: card.designer,\n buildCell: card.buildCell\n });\n }\n }\n });\n\n modalInstance.result.then(function(result) {\n console.log(result.title);\n\n angular.forEach($scope.columns, function(col) {\n if(col.name === column.name) {\n angular.forEach(col.cards, function(cd) {\n if (cd.title === card.title) {\n if (col.name === 'Backlog') {\n cd.details = result.Details;\n } else {\n cd.details = result.Details;\n if (result.cardColor) {\n cd.ragStatus = '#' + result.cardColor;\n } else {\n cd.ragStatus = '#5CB85C';\n }\n cd.release = result.release;\n cd.architect = result.architect;\n cd.designer = result.designer;\n cd.Analyst = result.analyst;\n cd.buildCell = result.buildCell\n }\n\n }\n });\n }\n });\n\n\n console.log('modal closed');\n }, function() {\n console.log('modal dismissed');\n });\n\n //setTimeout(function() {\n // $scope.$apply(function(){\n // console.log('broadcasting event');\n // $rootScope.$broadcast('OpenCardDetails', column, card);\n // });\n //}, 500);\n };\n\n var modalController = function($scope, $modalInstance, items) {\n\n $scope.colorOptions = ['5CB85C','FFEB13','FF0000'];\n\n console.log(items.column.name);\n\n $scope.card = items;\n\n $scope.ok = function () {\n //events();\n $modalInstance.close($scope.card);\n };\n\n $scope.cancel = function () {\n $modalInstance.dismiss('cancel');\n };\n };\n\n $scope.$on('OpenCardDetails', function(e, column,card) {\n console.log('in broadcast event');\n console.log(column.name);\n $scope.card = card;\n });\n\n\n $scope.columns = [\n {'name': 'Backlog',cards: [{'id': '1', 'title': 'item1', 'drag':true, 'release':\"\",'ragStatus':'#5cb85c', 'details':\"\",'architect':\"\", 'Analyst':\"\",'designer':\"\",'buildCell':\"\"},\n {'id': '2','title': 'item2', 'drag':true, 'release':\"\",'ragStatus':'#5cb85c', 'details':\"\",'architect':\"\", 'Analyst':\"\",'designer':\"\",'buildCell':\"\"},\n {'id': '3','title': 'item3', 'drag':true, 'release':\"\",'ragStatus':'#ffeb13', 'details':\"\",'architect':\"\", 'Analyst':\"\",'designer':\"\",'buildCell':\"\"},\n {'id': '4','title': 'item4', 'drag':true, 'release':\"\",'ragStatus':'#5cb85c', 'details':\"\",'architect':\"\", 'Analyst':\"\",'designer':\"\",'buildCell':\"\"},\n {'id': '5','title': 'item5', 'drag':true, 'release':\"\",'ragStatus':'#ff0000', 'details':\"\",'architect':\"\", 'Analyst':\"\",'designer':\"\",'buildCell':\"\"},\n {'id': '6','title': 'item6', 'drag':true, 'release':\"\",'ragStatus':'#5cb85c', 'details':\"\",'architect':\"\", 'Analyst':\"\",'designer':\"\",'buildCell':\"\"}], 'hideCol':false},\n {'name': 'Discovery',cards: [], 'hideCol':false},\n {'name': 'Design',cards: [], 'hideCol':false},\n {'name': 'Build',cards: [], 'hideCol':false},\n {'name': 'Pilot',cards: [], 'hideCol':false}\n ];\n\n\n $scope.hiddenCol = function(column) {\n angular.forEach($scope.columns, function(col) {\n if(col.name === column.name) {\n if(column.hideCol === true) {\n column.hideCol = false;\n } else {\n column.hideCol = true;\n }\n }\n });\n };\n\n\n $scope.addCard = function(column) {\n angular.forEach($scope.columns, function(col){\n if(col.name === column.name) {\n column.cards.push({'title': 'item8','drag':true});\n }\n });\n };\n\n $scope.list1 = [\n {'title': 'item1', 'drag':true},\n {'title': 'item2', 'drag':true},\n {'title': 'item3', 'drag':true},\n {'title': 'item4', 'drag':true},\n {'title': 'item5', 'drag':true},\n {'title': 'item6', 'drag':true}\n ];\n\n $scope.list2 = [];\n\n $scope.sortableOptions = {\n //containment: '#sortable-container1'\n };\n\n $scope.sortableOptions1 = {\n //containment: '#sortable-container2'\n };\n\n $scope.removeCard = function(column, card) {\n angular.forEach($scope.columns, function(col) {\n if (col.name === column.name) {\n col.cards.splice(col.cards.indexOf(card), 1);\n }\n });\n };\n\n\n $scope.dragControlListeners = {\n itemMoved: function (event) {\n var releaseVar = '';\n var columnName = event.dest.sortableScope.$parent.column.name;\n if (columnName === 'Backlog') {\n releaseVar = '';\n } else {\n //releaseVar = prompt('Enter Release Info !');\n }\n angular.forEach($scope.columns, function(col) {\n if (col.name === columnName) {\n angular.forEach(col.cards, function(card) {\n if (card.title === event.source.itemScope.modelValue.title) {\n if (releaseVar === ' ' || releaseVar.length === 0) {\n releaseVar = 'Rel';\n }\n card.release = releaseVar;\n }\n });\n }\n });\n }\n };\n\t}\n]);\n"},"repo_name":{"kind":"string","value":"bonzyKul/continuous"},"path":{"kind":"string","value":"public/modules/core/controllers/home.client.controller.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":7537,"string":"7,537"}}},{"rowIdx":1364,"cells":{"code":{"kind":"string","value":"/*eslint-disable */\nvar webpack = require( \"webpack\" );\nvar sml = require( \"source-map-loader\" );\n/*eslint-enable */\nvar path = require( \"path\" );\n\nmodule.exports = {\n\tmodule: {\n\t\tpreLoaders: [\n\t\t\t{\n\t\t\t\ttest: /\\.js$/,\n\t\t\t\tloader: \"source-map-loader\"\n\t\t\t}\n\t\t],\n\t\tloaders: [\n\t\t\t{ test: /sinon.*\\.js/, loader: \"imports?define=>false\" },\n\t\t\t{ test: /\\.spec\\.js$/, exclude: /node_modules/, loader: \"babel-loader\" }\n\t\t],\n\t\tpostLoaders: [ {\n\t\t\ttest: /\\.js$/,\n\t\t\texclude: /(spec|node_modules)\\//,\n\t\t\tloader: \"istanbul-instrumenter\"\n\t\t} ]\n\t},\n\tresolve: {\n\t\talias: {\n\t\t\t\"when.parallel\": \"when/parallel\",\n\t\t\t\"when.pipeline\": \"when/pipeline\",\n\t\t\treact: \"react/dist/react-with-addons.js\",\n\t\t\tlux: path.join( __dirname, \"./lib/lux.js\" )\n\t\t}\n\t}\n};\n"},"repo_name":{"kind":"string","value":"rniemeyer/lux.js"},"path":{"kind":"string","value":"webpack.config.test.js"},"language":{"kind":"string","value":"JavaScript"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":733,"string":"733"}}},{"rowIdx":1365,"cells":{"code":{"kind":"string","value":"import {Component, OnInit} from '@angular/core';\nimport {ActivityService} from '../../services/activity.service';\nimport {Activity} from \"../../models/activity\";\nimport {BarChartComponent} from \"../bar-chart/bar-chart.component\";\n\n@Component({\n selector: 'records-view',\n moduleId: module.id,\n templateUrl: 'records-view.component.html',\n styleUrls: ['records-view.component.css'],\n directives: [BarChartComponent]\n})\n\nexport class RecordsViewComponent implements OnInit {\n calBurnActs:Activity[];\n longestActs:Activity[];\n\n constructor(private activityService:ActivityService) {\n\n }\n\n getData() {\n this.activityService.getActivities('totalCalories','desc',6).then(\n data => this.calBurnActs = data\n );\n this.activityService.getActivities('totalDistance','desc',6).then(\n data => this.longestActs = data\n );\n }\n\n ngOnInit() {\n this.getData();\n }\n}"},"repo_name":{"kind":"string","value":"montgomeryce/HAVC"},"path":{"kind":"string","value":"app/components/records-view/records-view.component.ts"},"language":{"kind":"string","value":"TypeScript"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":951,"string":"951"}}},{"rowIdx":1366,"cells":{"code":{"kind":"string","value":"from __future__ import (absolute_import, division, print_function,\n unicode_literals)\n\nRJUST = 12\n\n\ndef format_fans(fans):\n return format_line(prefix='fans'.rjust(RJUST), values=fans)\n\n\ndef format_rpms(rpms):\n return format_line(prefix='rpms'.rjust(RJUST), values=rpms)\n\n\ndef format_pwms(pwms):\n return format_line(prefix='pwms'.rjust(RJUST), values=pwms)\n\n\ndef format_tmps(tmps):\n return format_line(prefix='temps'.rjust(RJUST), values=tmps)\n\n\ndef format_names(names):\n return format_line(prefix='names'.rjust(RJUST), values=names)\n\n\ndef format_ports(ports):\n return format_line(prefix='ports'.rjust(RJUST), values=ports)\n\n\ndef format_temps(temps):\n return format_line(prefix='temps'.rjust(RJUST), values=temps)\n\n\ndef format_ambients(ambients):\n return format_line(prefix='ambients'.rjust(RJUST), values=ambients)\n\n\ndef format_limits(limits):\n return format_line(prefix='limits'.rjust(RJUST), values=limits)\n\n\ndef format_buffers(buffers):\n return format_line(prefix='buffers'.rjust(RJUST), values=buffers)\n\n\ndef format_headrooms(headrooms):\n return format_line(prefix='headrooms'.rjust(RJUST), values=headrooms)\n\n\ndef format_directions(directions):\n return format_line(prefix='directions'.rjust(RJUST), values=directions)\n\n\ndef format_differences(differences):\n return format_line(prefix='differences'.rjust(RJUST), values=differences)\n\n\ndef format_pwms_new(pwms_new):\n return format_line(prefix='new pwms'.rjust(RJUST), values=pwms_new)\n\n\ndef format_line(prefix, values):\n line = ''\n line += prefix\n line += ': '\n line += '['\n for value in values:\n try:\n if value >= 1:\n value = int(round(value, 0))\n if 1 > value != 0:\n value = str(value)[1:4].ljust(3, '0')\n except TypeError:\n # value is None\n pass\n\n value = str(value) if value is not None else ''\n line += value.rjust(6)\n line += ', '\n line = line[:-len(', ')]\n line += ']'\n\n return line\n"},"repo_name":{"kind":"string","value":"Bengt/AL-FanControl"},"path":{"kind":"string","value":"python/fancontrol/ui/cli_util.py"},"language":{"kind":"string","value":"Python"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":2042,"string":"2,042"}}},{"rowIdx":1367,"cells":{"code":{"kind":"string","value":"/* /////////////////////////////////////////////////////////////////////////\r\n * File: stlsoft/conversion/internal/explicit_cast_specialisations.hpp\r\n *\r\n * Purpose: Specialisations of explicit_cast\r\n *\r\n * Created: 13th August 2003\r\n * Updated: 10th August 2009\r\n *\r\n * Home: http://stlsoft.org/\r\n *\r\n * Copyright (c) 2003-2009, Matthew Wilson and Synesis Software\r\n * All rights reserved.\r\n *\r\n * Redistribution and use in source and binary forms, with or without\r\n * modification, are permitted provided that the following conditions are met:\r\n *\r\n * - Redistributions of source code must retain the above copyright notice, this\r\n * list of conditions and the following disclaimer.\r\n * - Redistributions in binary form must reproduce the above copyright notice,\r\n * this list of conditions and the following disclaimer in the documentation\r\n * and/or other materials provided with the distribution.\r\n * - Neither the name(s) of Matthew Wilson and Synesis Software nor the names of\r\n * any contributors may be used to endorse or promote products derived from\r\n * this software without specific prior written permission.\r\n *\r\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\r\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\r\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r\n * POSSIBILITY OF SUCH DAMAGE.\r\n *\r\n * ////////////////////////////////////////////////////////////////////// */\r\n\r\n\r\n/** \\file stlsoft/conversion/internal/explicit_cast_specialisations.hpp\r\n *\r\n * \\brief [C++ only] Explicit specialisations of stlsoft::explicit_cast\r\n * (\\ref group__library__conversion \"Conversion\" Library).\r\n */\r\n\r\n#ifndef STLSOFT_INCL_STLSOFT_CONVERSION_HPP_EXPLICIT_CAST\r\n# error This file is included from within stlsoft/conversion/explicit_cast.hpp, and cannot be included directly\r\n#else\r\n\r\n#ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION\r\n# define STLSOFT_VER_STLSOFT_CONVERSION_INTERNAL_HPP_EXPLICIT_CAST_SPECIALISATIONS_MAJOR 4\r\n# define STLSOFT_VER_STLSOFT_CONVERSION_INTERNAL_HPP_EXPLICIT_CAST_SPECIALISATIONS_MINOR 0\r\n# define STLSOFT_VER_STLSOFT_CONVERSION_INTERNAL_HPP_EXPLICIT_CAST_SPECIALISATIONS_REVISION 1\r\n# define STLSOFT_VER_STLSOFT_CONVERSION_INTERNAL_HPP_EXPLICIT_CAST_SPECIALISATIONS_EDIT 21\r\n#endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */\r\n\r\n/* /////////////////////////////////////////////////////////////////////////\r\n * Auto-generation and compatibility\r\n */\r\n\r\n/*\r\n[<[STLSOFT-AUTO:NO-UNITTEST]>]\r\n[<[STLSOFT-AUTO:NO-DOCFILELABEL]>]\r\n*/\r\n\r\n/* /////////////////////////////////////////////////////////////////////////\r\n * Specialisations\r\n */\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef char value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(char const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator char const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n char const& m_t;\r\n};\r\n\r\n#ifdef STLSOFT_CF_NATIVE_WCHAR_T_SUPPORT\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef wchar_t value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(wchar_t const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator wchar_t const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n wchar_t const& m_t;\r\n};\r\n\r\n#endif /* STLSOFT_CF_NATIVE_WCHAR_T_SUPPORT */\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef unsigned char value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(unsigned char const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator unsigned char const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n unsigned char const& m_t;\r\n};\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef signed char value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(signed char const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator signed char const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n signed char const& m_t;\r\n};\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef signed short value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(signed short const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator signed short const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n signed short const& m_t;\r\n};\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef unsigned short value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(unsigned short const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator unsigned short const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n unsigned short const& m_t;\r\n};\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef signed int value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(signed int const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator signed int const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n signed int const& m_t;\r\n};\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef unsigned int value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(unsigned int const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator unsigned int const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n unsigned int const& m_t;\r\n};\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef signed long value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(signed long const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator signed long const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n signed long const& m_t;\r\n};\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef unsigned long value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(unsigned long const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator unsigned long const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n unsigned long const& m_t;\r\n};\r\n\r\n#ifdef STLSOFT_CF_64BIT_INT_IS_long_long\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef signed long long value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(signed long long const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator signed long long const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n signed long long const& m_t;\r\n};\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef unsigned long long value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(unsigned long long const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator unsigned long long const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n unsigned long long const& m_t;\r\n};\r\n\r\n#elif defined(STLSOFT_CF_64BIT_INT_IS___int64)\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef signed __int64 value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(signed __int64 const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator signed __int64 const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n signed __int64 const& m_t;\r\n};\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef unsigned __int64 value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(unsigned __int64 const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator unsigned __int64 const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n unsigned __int64 const& m_t;\r\n};\r\n\r\n#else\r\n\r\n# error 64-bit discrimination not handled correctly\r\n\r\n#endif /* 64-bit */\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef float value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(float const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator float const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n float const& m_t;\r\n};\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef double value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(double const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator double const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n double const& m_t;\r\n};\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef long double value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(long double const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator long double const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n long double const& m_t;\r\n};\r\n\r\n#ifdef STLSOFT_CF_NATIVE_BOOL_SUPPORT\r\n\r\nSTLSOFT_TEMPLATE_SPECIALISATION\r\nclass explicit_cast\r\n{\r\npublic:\r\n typedef bool value_type;\r\n typedef explicit_cast class_type;\r\n\r\n// Construction\r\npublic:\r\n explicit_cast(bool const& t)\r\n : m_t(t)\r\n {}\r\n\r\n// Conversions\r\npublic:\r\n operator bool const& () const\r\n {\r\n return m_t;\r\n }\r\n\r\n// Members\r\nprivate:\r\n bool const& m_t;\r\n};\r\n\r\n#endif /* STLSOFT_CF_NATIVE_BOOL_SUPPORT */\r\n\r\n/* ////////////////////////////////////////////////////////////////////// */\r\n\r\n#endif /* !STLSOFT_INCL_STLSOFT_CONVERSION_HPP_EXPLICIT_CAST */\r\n\r\n/* ///////////////////////////// end of file //////////////////////////// */\r\n"},"repo_name":{"kind":"string","value":"rokn/Count_Words_2015"},"path":{"kind":"string","value":"fetched_code/cpp/code/explicit_cast_specialisations.hpp"},"language":{"kind":"string","value":"C++"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":11877,"string":"11,877"}}},{"rowIdx":1368,"cells":{"code":{"kind":"string","value":"\n\n# ファイル操作(読み込み)\n\nではファイルの内容を読み込めるようにしましょう。\n\nファイル操作は\n\n- ファイルを開く(fopen)\n- ファイルの中身を読み込む(fgets)\n- ファイルを閉じる(fclose)\n\nという手順になります。\n\nそれぞれを説明します\n\n## fopen\n\nファイルを開き、ファイルハンドルを返します。\n\nファイルハンドルとはファイルを特定するIDのようなもので、この後読み込むときやファイルを閉じるときに必要になります。\n\n```\nfopen(ファイル名, モード);\n```\n\nの形式で使われます。\n\nモードには大きく3つあり,\n\n- r:読み込み(ファイルポインタはファイルの先頭)\n- w:書き込み(ファイルポインタはファイルの先頭)\n- a:書き込み(ファイルポインタはファイルの最後)\n\nのようになります。\n\nたとえば、file01.txtを読み込みモードで開く時は\n\n```\n$fp = fopen('file01.txt', 'r');\n```\n\nのようになります。\n\n\n## fclose\n\nfopenで開いたファイルを閉じます。必ずfopenで開いたファイルは閉じるようにしましょう。\n\n```\nfclose($fp);\n```\n\n\n\n\n## fgets\n\nfopenで開いたファイルを1行ずつ読み込みます。\n\n先のfopen,fcloseと組み合わせると例えば以下のように使われます。\n\n```\nif (($fp = fopen($filename, 'r')) !== FALSE) {\n while (($tmp = fgets($fp)) !== FALSE) {\n $data[] = htmlspecialchars($tmp, ENT_QUOTES, 'UTF-8');\n }\n fclose($fp);\n}\n```\n\nこのように書くことで、1行ずつ最後まで読み込まれ、1行ずつのデータが$dataという配列の1行ずつに格納されます。\n\n\n"},"repo_name":{"kind":"string","value":"CodeshipTeachers/document-php"},"path":{"kind":"string","value":"4/1.md"},"language":{"kind":"string","value":"Markdown"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":1767,"string":"1,767"}}},{"rowIdx":1369,"cells":{"code":{"kind":"string","value":"\n\n \n JAVASCRIPT BASICS\n \n \n \n \n \n \n \n \n\n \n

JAVASCRIPT BASICS

\n
\n

Technical Blog Part Four

\n
Terminology: \"Learning the Lingo\"
\n\n How does JavaScript compare to HTML and CSS?\n

\n JavaScript compares differently to HTML and CSS as it is used for website functionality, this means it is able to process data and tells a page how to behave, where as HTML dictates structure, i.e. how the contents is divided, and CSS dictates style, i.e. how the page looks.\n

\n\n Explain control flow and loops using an example process from everyday life.\n

\n Control flow is the order in which the computer executes statements. Loops offer a quick and easy way to do something repeatedly, changing the control flow of the code. An example of this in daily life would be the process of waking up. The control flow when you wake up is that your alarm goes off, you turn alarm off, you wake up and you take a shower. However as we all know we like to snooze so sometimes when our alarm goes off we will snooze and go back to bed. A loop would then check that we haven't woken up and so the code to take a shower will not run until the condition of us waking up is met. If we are already awake when the alarm goes off the loop will not run at all as the condition has been met.\n

\n\n Explain the difference between accessing data from arrays and objects\n

\n The difference between accessing data from arrays and objects is that data from an array can only be accessed through bracket notation where as data from an object can be accessed with bracket and dot notation. Also I think arrays are ordered so that you can only add/remove the first and last element where as you can add/remove or modify any property within an object as long as you know the property name.\n

\n\n Explain what functions are and why they are useful\n

\n Functions are a way for us to give instructions to the computer more efficiently. Imagine us doing a daily task such as cooking. Our Ingredients(inputs) and meal(output) would differ but our method i.e. cook will be the same. Functions let us tell the computer to perform a set of instructions, without typing it over and over again, we just give it different inputs to get the corresponding output.\n

\n
\n \n\n \n\n\n"},"repo_name":{"kind":"string","value":"amandahogan/amandahogan.github.io"},"path":{"kind":"string","value":"blog/t4-javascript-basics.html"},"language":{"kind":"string","value":"HTML"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":3202,"string":"3,202"}}},{"rowIdx":1370,"cells":{"code":{"kind":"string","value":"\n

Full Sail Landing Page

\n\n

README

\n\n

Objective:

\n\n

Recreate a PSD landing page using HTML/CSS/JavaScript for Full Sail University

\n\n

Dependencies

\n\n
    \n
  • Rails
  • \n
  • Boostrap
  • \n
\n\n\n

How to run through terminal

\n\n
    \n
  • Fork project
  • \n
  • Clone forked repo/install locally
  • \n
  • Bundle install
  • \n
  • run \"rails s\" in the terminal from the root directory of the forked project
  • \n
  • Type \"localhost:3000\" into your browsers search bar to view the project
  • \n
\n\n

Designers

\n\n
    \n
  • Full Sail University
  • \n
\n\n\n\n

Developers

\n\n
    \n
  • Christopher Pelnar
  • \n
\n\n"},"repo_name":{"kind":"string","value":"ctpelnar1988/FullSailLandingPage"},"path":{"kind":"string","value":"README.md"},"language":{"kind":"string","value":"Markdown"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":676,"string":"676"}}},{"rowIdx":1371,"cells":{"code":{"kind":"string","value":"package com.aspose.cloud.sdk.cells.model;\n\npublic enum ValidFormatsForDocumentEnum {\n\tcsv, \n\txlsx, \n\txlsm, \n\txltx,\t\n\txltm,\t\n\ttext, \n\thtml,\n\tpdf, \n\tods, \n\txls, \n\tspreadsheetml, \n\txlsb, \n\txps, \n\ttiff,\n\tjpeg, \n\tpng, \n\temf, \n\tbmp, \n\tgif \n}\n"},"repo_name":{"kind":"string","value":"asposeforcloud/Aspose_Cloud_SDK_For_Android"},"path":{"kind":"string","value":"asposecloudsdk/src/main/java/com/aspose/cloud/sdk/cells/model/ValidFormatsForDocumentEnum.java"},"language":{"kind":"string","value":"Java"},"license":{"kind":"string","value":"mit"},"size":{"kind":"number","value":236,"string":"236"}}},{"rowIdx":1372,"cells":{"code":{"kind":"string","value":"# Haml Changelog\n\n## 5.0.1\n\nReleased on May 3, 2017\n([diff](https://github.com/haml/haml/compare/v5.0.0...v5.0.1)).\n\n* Fix parsing attributes including string interpolation. [#917](https://github.com/haml/haml/pull/917) [#921](https://github.com/haml/haml/issues/921)\n* Stop distributing test files in gem package and allow installing on Windows.\n* Use ActionView's Erubi/Erubis handler for erb filter only on ActionView. [#914](https://github.com/haml/haml/pull/914)\n\n## 5.0.0\n\nReleased on April 26, 2017\n([diff](https://github.com/haml/haml/compare/4.0.7...v5.0.0)).\n\nBreaking Changes\n\n* Haml now requires Ruby 2.0.0 or above.\n* Rails 3 is no longer supported, matching the official\n [Maintenance Policy for Ruby on Rails](http://weblog.rubyonrails.org/2013/2/24/maintenance-policy-for-ruby-on-rails/).\n (Tee Parham)\n* The `haml` command's debug option (`-d`) no longer executes the Haml code, but\n rather checks the generated Ruby syntax for errors.\n* Drop parser/compiler accessor from `Haml::Engine`. Modify `Haml::Engine#initialize` options\n or `Haml::Template.options` instead. (Takashi Kokubun)\n* Drop dynamic quotes support and always escape `'` for `escape_html`/`escape_attrs` instead.\n Also, escaped results are slightly changed and always unified to the same characters. (Takashi Kokubun)\n* Don't preserve newlines in attributes. (Takashi Kokubun)\n* HTML escape interpolated code in filters.\n [#770](https://github.com/haml/haml/pull/770)\n (Matt Wildig)\n\n :javascript\n #{JSON.generate(foo: \"bar\")}\n Haml 4 output: {\"foo\":\"bar\"}\n Haml 5 output: {&quot;foo&quot;:&quot;bar&quot;}\n\nAdded\n\n* Add a tracing option. When enabled, Haml will output a data-trace attribute on each tag showing the path\n to the source Haml file from which it was generated. Thanks [Alex Babkin](https://github.com/ababkin).\n* Add `haml_tag_if` to render a block, conditionally wrapped in another element (Matt Wildig)\n* Support Rails 5.1 Erubi template handler.\n* Support Sprockets 3. Thanks [Sam Davies](https://github.com/samphilipd) and [Jeremy Venezia](https://github.com/jvenezia).\n* General performance and memory usage improvements. (Akira Matsuda)\n* Analyze attribute values by Ripper and render static attributes beforehand. (Takashi Kokubun)\n* Optimize attribute rendering about 3x faster. (Takashi Kokubun)\n* Add temple gem as dependency and create `Haml::TempleEngine` class.\n Some methods in `Haml::Compiler` are migrated to `Haml::TempleEngine`. (Takashi Kokubun)\n\nFixed\n\n* Fix for attribute merging. When an attribute method (or literal nested hash)\n was used in an old style attribute hash and there is also a (non-static) new\n style hash there is an error. The fix can result in different behavior in\n some circumstances. See the [commit message](https://github.com/haml/haml/tree/e475b015d3171fb4c4f140db304f7970c787d6e3)\n for detailed info. (Matt Wildig)\n* Make escape_once respect hexadecimal references. (Matt Wildig)\n* Don't treat the 'data' attribute specially when merging attribute hashes. (Matt Wildig and Norman Clarke)\n* Fix #@foo and #$foo style interpolation that was not working in html_safe mode. (Akira Matsuda)\n* Allow `@` as tag's class name. Thanks [Joe Bartlett](https://github.com/redoPop).\n* Raise `Haml::InvalidAttributeNameError` when attribute name includes invalid characters. (Takashi Kokubun)\n* Don't ignore unexpected exceptions on initializing `ActionView::OutputBuffer`. (Takashi Kokubun)\n\n## 4.0.7\n\nReleased on August 10, 2015\n([diff](https://github.com/haml/haml/compare/4.0.6...4.0.7)).\n\n* Significantly improve performance of regexp used to fix whitespace handling in textareas (thanks [Stan Hu](https://github.com/stanhu)).\n\n## 4.0.6\n\nReleased on Dec 1, 2014 ([diff](https://github.com/haml/haml/compare/4.0.5...4.0.6)).\n\n* Fix warning on Ruby 1.8.7 \"regexp has invalid interval\" (thanks [Elia Schito](https://github.com/elia)).\n\n## 4.0.5\n\nReleased on Jan 7, 2014 ([diff](https://github.com/haml/haml/compare/4.0.4...4.0.5)).\n\n* Fix haml_concat appending unescaped HTML after a call to haml_tag.\n* Fix for bug whereby when HAML :ugly option is \"true\",\n ActionView::Helpers::CaptureHelper::capture returns the whole view buffer\n when passed a block that returns nothing (thanks [Mircea\n Moise](https://github.com/mmircea16)).\n\n## 4.0.4\n\nReleased on November 5, 2013 ([diff](https://github.com/haml/haml/compare/4.0.3...4.0.4)).\n\n* Check for Rails::Railtie rather than Rails (thanks [Konstantin Shabanov](https://github.com/etehtsea)).\n* Parser fix to allow literal '#' with suppress_eval (Matt Wildig).\n* Helpers#escape_once works on frozen strings (as does\n ERB::Util.html_escape_once for which it acts as a replacement in\n Rails (thanks [Patrik Metzmacher](https://github.com/patrik)).\n* Minor test fix (thanks [Mircea Moise](https://github.com/mmircea16)).\n\n## 4.0.3\n\nReleased May 21, 2013 ([diff](https://github.com/haml/haml/compare/4.0.2...4.0.3)).\n\n* Compatibility with newer versions of Rails's Erubis handler.\n* Fix Erubis handler for compatibility with Tilt 1.4.x, too.\n* Small performance optimization for html_escape.\n(thanks [Lachlan Sylvester](https://github.com/lsylvester))\n* Documentation fixes.\n* Documented some helper methods that were left out of the reference.\n(thanks [Shane Riley](https://github.com/shaneriley))\n\n## 4.0.2\n\nReleased April 5, 2013 ([diff](https://github.com/haml/haml/compare/4.0.1...4.0.2)).\n\n* Explicitly require Erubis to work around bug in older versions of Tilt.\n* Fix :erb filter printing duplicate content in Rails views.\n(thanks [Jori Hardman](https://github.com/jorihardman))\n* Replace range with slice to reduce objects created by `capture_haml`.\n(thanks [Tieg Zaharia](https://github.com/tiegz))\n* Correct/improve some documentation.\n\n## 4.0.1\n\nReleased March 21, 2013 ([diff](https://github.com/haml/haml/compare/4.0.0...4.0.1)).\n\n* Remove Rails 3.2.3+ textarea hack in favor of a more general solution.\n* Fix some performance regressions.\n* Fix support for Rails 4 `text_area` helper method.\n* Fix data attribute flattening with singleton objects.\n(thanks [Alisdair McDiarmid](https://github.com/alisdair))\n* Fix support for sass-rails 4.0 beta.\n(thanks [Ryunosuke SATO](https://github.com/tricknotes))\n* Load \"haml/template\" in Railtie in order to prevent user options set in a\n Rails initializer from being overwritten\n* Don't depend on Rails in haml/template to allow using Haml with ActionView\n but without Rails itself. (thanks [Hunter Haydel](https://github.com/wedgex))\n\n## 4.0.0\n\n* The Haml executable now accepts an `--autoclose` option. You can now\n specify a list of tags that should be autoclosed\n\n* The `:ruby` filter no longer redirects $stdout to the Haml document, as this\n is not thread safe. Instead it provides a `haml_io` local variable, which is\n an IO object that writes to the document.\n\n* HTML5 is now the default output format rather than XHTML. This was already\n the default on Rails 3+, so many users will notice no difference.\n\n* The :sass filter now wraps its output in a style tag, as do the new :less and\n :scss filters. The :coffee filter wraps its output in a script tag.\n\n* Haml now supports only Rails 3 and above, and Ruby 1.8.7 and above. If you\n still need support for Rails 2 and Ruby 1.8.6, please use Haml 3.1.x which\n will continue to be maintained for bug fixes.\n\n* The :javascript and :css filters no longer add CDATA tags when the format is\n html4 or html5. This can be overridden by setting the `cdata` option to\n `true`. CDATA tags are always added when the format is xhtml.\n\n* HTML2Haml has been extracted to a separate gem, creatively named \"html2haml\".\n\n* The `:erb` filter now uses Rails's safe output buffer to provide XSS safety.\n\n* Haml's internals have been refactored to move the parser, compiler and options\n handling into independent classes, rather than including them all in the\n Engine module. You can also specify your own custom Haml parser or compiler\n class in Haml::Options in order to extend or modify Haml reasonably easily.\n\n* Add an {file:REFERENCE.md#hyphenate_data_attrs-option `:hyphenate_data_attrs`\n option} that converts underscores to hyphens in your HTML5 data keys. This is\n a language change from 3.1 and is enabled by default.\n (thanks to [Andrew Smith](https://github.com/fullsailor))\n\n* All Hash attribute values are now treated as HTML5 data, regardless of key.\n Previously only the \"data\" key was treated this way. Allowing arbitrary keys\n means you can now easily use this feature for Aria attributes, among other\n uses.\n (thanks to [Elvin Efendi](https://github.com/ElvinEfendi))\n\n* Added `remove_whitespace` option to always remove all whitespace around Haml\n tags. (thanks to [Tim van der Horst](https://github.com/vdh))\n\n* Haml now flattens deeply nested data attribute hashes. For example:\n\n `.foo{:data => {:a => \"b\", :c => {:d => \"e\", :f => \"g\"}}}`\n\n would render to:\n\n `
`\n\n (thanks to [Péter Pál Koszta](https://github.com/koszta))\n\n* Filters that rely on third-party template engines are now implemented using\n [Tilt](http://github.com/rtomayko/tilt). Several new filters have been added, namely\n SCSS (:scss), LessCSS, (:less), and Coffeescript (:coffee/:coffeescript).\n\n Though the list of \"official\" filters is kept intentionally small, Haml comes\n with a helper method that makes adding support for other Tilt-based template\n engines trivial.\n\n As of 4.0, Haml will also ship with a \"haml-contrib\" gem that includes useful\n but less-frequently used filters and helpers. This includes several additional\n filters such as Nokogiri, Yajl, Markaby, and others.\n\n* Generate object references based on `#to_key` if it exists in preference to\n `#id`.\n\n* Performance improvements.\n (thanks to [Chris Heald](https://github.com/cheald))\n\n* Helper `list_of` takes an extra argument that is rendered into list item\n attributes.\n (thanks [Iain Barnett](http://iainbarnett.me.uk/))\n\n* Fix parser to allow lines ending with `some_method?` to be a Ruby multinline.\n (thanks to [Brad Ediger](https://github.com/bradediger))\n\n* Always use :xhtml format when the mime_type of the rendered template is\n 'text/xml'.\n (thanks to [Stephen Bannasch](https://github.com/stepheneb))\n\n* html2haml now includes an `--html-attributes` option.\n (thanks [Stefan Natchev](https://github.com/snatchev))\n\n* Fix for inner whitespace removal in loops.\n (thanks [Richard Michael](https://github.com/richardkmichael))\n\n* Use numeric character references rather than HTML entities when escaping\n double quotes and apostrophes in attributes. This works around some bugs in\n Internet Explorer earlier than version 9.\n (thanks [Doug Mayer](https://github.com/doxavore))\n\n* Fix multiline silent comments: Haml previously did not allow free indentation\n inside multline silent comments.\n\n* Fix ordering bug with partial layouts on Rails.\n (thanks [Sam Pohlenz](https://github.com/spohlenz))\n\n* Add command-line option to suppress script evaluation.\n\n* It's now possible to use Rails's asset helpers inside the Sass and SCSS\n filters. Note that to do so, you must make sure sass-rails is loaded in\n production, usually by moving it out of the assets gem group.\n\n* The Haml project now uses [semantic versioning](http://semver.org/).\n\n## 3.2.0\n\nThe Haml 3.2 series was released only as far as 3.2.0.rc.4, but then was\nrenamed to Haml 4.0 when the project adopted semantic versioning.\n\n## 3.1.8\n\n* Fix for line numbers reported from exceptions in nested blocks\n (thanks to Grant Hutchins & Sabrina Staedt).\n\n## 3.1.7\n\n* Fix for compatibility with Sass 3.2.x.\n (thanks [Michael Westbom](https://github.com/totallymike)).\n\n## 3.1.6\n\n* In indented mode, don't reindent buffers that contain preserved tags, and\n provide a better workaround for Rails 3.2.3's textarea helpers.\n\n## 3.1.5\n\n* Respect Rails' `html_safe` flag when escaping attribute values\n (thanks to [Gerad Suyderhoud](https://github.com/gerad)).\n\n* Fix for Rails 3.2.3 textarea helpers\n (thanks to [James Coleman](https://github.com/jcoleman) and others).\n\n## 3.1.4\n\n* Fix the use of `FormBuilder#block` with a label in Haml.\n* Fix indentation after a self-closing tag with dynamic attributes.\n\n## 3.1.3\n\n* Stop partial layouts from being displayed twice.\n\n## 3.1.2\n\n* If the ActionView `#capture` helper is used in a Haml template but without any Haml being run in the block,\n return the value of the block rather than the captured buffer.\n\n* Don't throw errors when text is nested within comments.\n\n* Fix html2haml.\n\n* Fix an issue where destructive modification was sometimes performed on Rails SafeBuffers.\n\n* Use character code entities for attribute value replacements instead of named/keyword entities.\n\n## 3.1.1\n\n* Update the vendored Sass to version 3.1.0.\n\n## 3.1.0\n\n* Don't add a `type` attribute to `\n\n is now transformed into:\n\n :javascript\n function foo() {\n return 12;\n }\n\n* `
` and `

				
Subsets and Splits

No community queries yet

The top public SQL queries from the community will appear here once available.