{ // 获取包含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"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"2746f97e71bb12ff000a012263ab87e2\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 26,\n \"max_line_length\": 121,\n \"avg_line_length\": 39.53846153846154,\n \"alnum_prop\": 0.708171206225681,\n \"repo_name\": \"ggamelas/it2-komtuve\",\n \"id\": \"c0dfa9d6b7b6d65bfe95269def215e9a93c24799\",\n \"size\": \"1028\",\n \"binary\": false,\n \"copies\": \"3\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"doc/html/search/all_9.html\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"C\",\n \"bytes\": \"179786\"\n },\n {\n \"name\": \"Makefile\",\n \"bytes\": \"1164\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1722,"cells":{"text":{"kind":"string","value":"/**\n * \n */\npackage com.jarp.tutorials.bigranchprohects.ch9;\n\n\n\n\n\nimport android.os.Bundle;\nimport android.support.v4.app.Fragment;\nimport android.support.v4.app.FragmentActivity;\nimport android.support.v4.app.FragmentManager;\n\nimport com.jarp.tutorials.bigranchprohects.R;\n\n\n/**\n * @author JARP\n *\n */\npublic class CrimeActivity extends SingleFragmentActivity {\n\t\n\t/*\n\t@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.ch9_activity_fragment);\n\t\t\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\t\n\t\tFragment fragment = fm.findFragmentById(R.id.ch9_fragmentContainer);\n\t\t\n\t\tif(fragment==null)\n\t\t{\n\t\t\tfragment = new CrimeFragment();\n\t\t\n\t\t\tfm.beginTransaction()\n\t\t\t.add(R.id.ch9_fragmentContainer, fragment)\n\t\t\t.commit();\n\t\t}\n\t\t\n\t\t\n\t}*/\n\n\t@Override\n\tprotected Fragment createFragment() {\n\t\t// TODO Auto-generated method stub\n\t\treturn new CrimeFragment();\n\t}\n\n\n\t\n\t\n\t\n\t\n\t\n\n}\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"9ee1958095e28c61bf9944963cd0356f\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 60,\n \"max_line_length\": 70,\n \"avg_line_length\": 16.45,\n \"alnum_prop\": 0.7193515704154002,\n \"repo_name\": \"imjarp/big-ranch-examples\",\n \"id\": \"e9ed063b2541aa4c80fca0dd3fd6cd01e4318d77\",\n \"size\": \"987\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"src/com/jarp/tutorials/bigranchprohects/ch9/CrimeActivity.java\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"Java\",\n \"bytes\": \"207777\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1723,"cells":{"text":{"kind":"string","value":"using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\nusing UnityEngine.UI;\n\nnamespace VR\n{\n public class CameraFollowYRotation : MonoBehaviour {\n public Camera cam;\n public GameObject canvasParent;\n public float timeMultiplier = 0.05f;\n\n // Update is called once per frame\n void Update () {\n Vector3 rot = canvasParent.transform.eulerAngles;\n float min = Calc.Angle.GetMinRotation(rot.y, cam.transform.eulerAngles.y);\n rot.x = 0;\n rot.z = 0;\n\n rot.y += min * timeMultiplier * Time.deltaTime * 100f;\n\n canvasParent.transform.rotation = Quaternion.Euler( rot );\n }\n }\n}\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"944f76afcc1892d2a3383d84085abaf2\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 25,\n \"max_line_length\": 86,\n \"avg_line_length\": 28.44,\n \"alnum_prop\": 0.6258790436005626,\n \"repo_name\": \"schoffi92/Unity3D-Scripts\",\n \"id\": \"20dfc6339ef5f6e6c99f51e4c8a4dd40d5005ef2\",\n \"size\": \"711\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"VR/CameraFollowYRotation.cs\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"C#\",\n \"bytes\": \"22500\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1724,"cells":{"text":{"kind":"string","value":"import React, { Component } from 'react';\nimport { Button } from 'primereact/button';\nimport { ObjectUtils, DomHandler, classNames } from 'primereact/utils';\nimport { Ripple } from 'primereact/ripple';\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$2() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar OrderListControls = /*#__PURE__*/function (_Component) {\n _inherits(OrderListControls, _Component);\n\n var _super = _createSuper$2(OrderListControls);\n\n function OrderListControls() {\n var _this;\n\n _classCallCheck(this, OrderListControls);\n\n _this = _super.call(this);\n _this.moveUp = _this.moveUp.bind(_assertThisInitialized(_this));\n _this.moveTop = _this.moveTop.bind(_assertThisInitialized(_this));\n _this.moveDown = _this.moveDown.bind(_assertThisInitialized(_this));\n _this.moveBottom = _this.moveBottom.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(OrderListControls, [{\n key: \"moveUp\",\n value: function moveUp(event) {\n if (this.props.selection) {\n var value = _toConsumableArray(this.props.value);\n\n for (var i = 0; i < this.props.selection.length; i++) {\n var selectedItem = this.props.selection[i];\n var selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, value, this.props.dataKey);\n\n if (selectedItemIndex !== 0) {\n var movedItem = value[selectedItemIndex];\n var temp = value[selectedItemIndex - 1];\n value[selectedItemIndex - 1] = movedItem;\n value[selectedItemIndex] = temp;\n } else {\n break;\n }\n }\n\n if (this.props.onReorder) {\n this.props.onReorder({\n originalEvent: event,\n value: value,\n direction: 'up'\n });\n }\n }\n }\n }, {\n key: \"moveTop\",\n value: function moveTop(event) {\n if (this.props.selection) {\n var value = _toConsumableArray(this.props.value);\n\n for (var i = 0; i < this.props.selection.length; i++) {\n var selectedItem = this.props.selection[i];\n var selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, value, this.props.dataKey);\n\n if (selectedItemIndex !== 0) {\n var movedItem = value.splice(selectedItemIndex, 1)[0];\n value.unshift(movedItem);\n } else {\n break;\n }\n }\n\n if (this.props.onReorder) {\n this.props.onReorder({\n originalEvent: event,\n value: value,\n direction: 'top'\n });\n }\n }\n }\n }, {\n key: \"moveDown\",\n value: function moveDown(event) {\n if (this.props.selection) {\n var value = _toConsumableArray(this.props.value);\n\n for (var i = this.props.selection.length - 1; i >= 0; i--) {\n var selectedItem = this.props.selection[i];\n var selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, value, this.props.dataKey);\n\n if (selectedItemIndex !== value.length - 1) {\n var movedItem = value[selectedItemIndex];\n var temp = value[selectedItemIndex + 1];\n value[selectedItemIndex + 1] = movedItem;\n value[selectedItemIndex] = temp;\n } else {\n break;\n }\n }\n\n if (this.props.onReorder) {\n this.props.onReorder({\n originalEvent: event,\n value: value,\n direction: 'down'\n });\n }\n }\n }\n }, {\n key: \"moveBottom\",\n value: function moveBottom(event) {\n if (this.props.selection) {\n var value = _toConsumableArray(this.props.value);\n\n for (var i = this.props.selection.length - 1; i >= 0; i--) {\n var selectedItem = this.props.selection[i];\n var selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, value, this.props.dataKey);\n\n if (selectedItemIndex !== value.length - 1) {\n var movedItem = value.splice(selectedItemIndex, 1)[0];\n value.push(movedItem);\n } else {\n break;\n }\n }\n\n if (this.props.onReorder) {\n this.props.onReorder({\n originalEvent: event,\n value: value,\n direction: 'bottom'\n });\n }\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-orderlist-controls\"\n }, /*#__PURE__*/React.createElement(Button, {\n type: \"button\",\n icon: \"pi pi-angle-up\",\n onClick: this.moveUp\n }), /*#__PURE__*/React.createElement(Button, {\n type: \"button\",\n icon: \"pi pi-angle-double-up\",\n onClick: this.moveTop\n }), /*#__PURE__*/React.createElement(Button, {\n type: \"button\",\n icon: \"pi pi-angle-down\",\n onClick: this.moveDown\n }), /*#__PURE__*/React.createElement(Button, {\n type: \"button\",\n icon: \"pi pi-angle-double-down\",\n onClick: this.moveBottom\n }));\n }\n }]);\n\n return OrderListControls;\n}(Component);\n\nfunction _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct$1() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar OrderListSubList = /*#__PURE__*/function (_Component) {\n _inherits(OrderListSubList, _Component);\n\n var _super = _createSuper$1(OrderListSubList);\n\n function OrderListSubList(props) {\n var _this;\n\n _classCallCheck(this, OrderListSubList);\n\n _this = _super.call(this, props);\n _this.onDragEnd = _this.onDragEnd.bind(_assertThisInitialized(_this));\n _this.onDragLeave = _this.onDragLeave.bind(_assertThisInitialized(_this));\n _this.onDrop = _this.onDrop.bind(_assertThisInitialized(_this));\n _this.onListMouseMove = _this.onListMouseMove.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(OrderListSubList, [{\n key: \"isSelected\",\n value: function isSelected(item) {\n return ObjectUtils.findIndexInList(item, this.props.selection, this.props.dataKey) !== -1;\n }\n }, {\n key: \"onDragStart\",\n value: function onDragStart(event, index) {\n this.dragging = true;\n this.draggedItemIndex = index;\n\n if (this.props.dragdropScope) {\n event.dataTransfer.setData('text', 'orderlist');\n }\n }\n }, {\n key: \"onDragOver\",\n value: function onDragOver(event, index) {\n if (this.draggedItemIndex !== index && this.draggedItemIndex + 1 !== index) {\n this.dragOverItemIndex = index;\n DomHandler.addClass(event.target, 'p-orderlist-droppoint-highlight');\n event.preventDefault();\n }\n }\n }, {\n key: \"onDragLeave\",\n value: function onDragLeave(event) {\n this.dragOverItemIndex = null;\n DomHandler.removeClass(event.target, 'p-orderlist-droppoint-highlight');\n }\n }, {\n key: \"onDrop\",\n value: function onDrop(event) {\n var dropIndex = this.draggedItemIndex > this.dragOverItemIndex ? this.dragOverItemIndex : this.dragOverItemIndex === 0 ? 0 : this.dragOverItemIndex - 1;\n\n var value = _toConsumableArray(this.props.value);\n\n ObjectUtils.reorderArray(value, this.draggedItemIndex, dropIndex);\n this.dragOverItemIndex = null;\n DomHandler.removeClass(event.target, 'p-orderlist-droppoint-highlight');\n\n if (this.props.onChange) {\n this.props.onChange({\n originalEvent: event,\n value: value\n });\n }\n }\n }, {\n key: \"onDragEnd\",\n value: function onDragEnd(event) {\n this.dragging = false;\n }\n }, {\n key: \"onListMouseMove\",\n value: function onListMouseMove(event) {\n if (this.dragging) {\n var offsetY = this.listElement.getBoundingClientRect().top + DomHandler.getWindowScrollTop();\n var bottomDiff = offsetY + this.listElement.clientHeight - event.pageY;\n var topDiff = event.pageY - offsetY;\n if (bottomDiff < 25 && bottomDiff > 0) this.listElement.scrollTop += 15;else if (topDiff < 25 && topDiff > 0) this.listElement.scrollTop -= 15;\n }\n }\n }, {\n key: \"renderDropPoint\",\n value: function renderDropPoint(index, key) {\n var _this2 = this;\n\n return /*#__PURE__*/React.createElement(\"li\", {\n key: key,\n className: \"p-orderlist-droppoint\",\n onDragOver: function onDragOver(e) {\n return _this2.onDragOver(e, index + 1);\n },\n onDragLeave: this.onDragLeave,\n onDrop: this.onDrop\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this3 = this;\n\n var header = null;\n var items = null;\n\n if (this.props.header) {\n header = /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-orderlist-header\"\n }, this.props.header);\n }\n\n if (this.props.value) {\n items = this.props.value.map(function (item, i) {\n var content = _this3.props.itemTemplate ? _this3.props.itemTemplate(item) : item;\n var itemClassName = classNames('p-orderlist-item', {\n 'p-highlight': _this3.isSelected(item)\n }, _this3.props.className);\n var key = JSON.stringify(item);\n\n if (_this3.props.dragdrop) {\n var _items = [_this3.renderDropPoint(i, key + '_droppoint'), /*#__PURE__*/React.createElement(\"li\", {\n key: key,\n className: itemClassName,\n onClick: function onClick(e) {\n return _this3.props.onItemClick({\n originalEvent: e,\n value: item,\n index: i\n });\n },\n onKeyDown: function onKeyDown(e) {\n return _this3.props.onItemKeyDown({\n originalEvent: e,\n value: item,\n index: i\n });\n },\n role: \"option\",\n \"aria-selected\": _this3.isSelected(item),\n draggable: \"true\",\n onDragStart: function onDragStart(e) {\n return _this3.onDragStart(e, i);\n },\n onDragEnd: _this3.onDragEnd,\n tabIndex: _this3.props.tabIndex\n }, content, /*#__PURE__*/React.createElement(Ripple, null))];\n\n if (i === _this3.props.value.length - 1) {\n _items.push(_this3.renderDropPoint(item, i, key + '_droppoint_end'));\n }\n\n return _items;\n } else {\n return /*#__PURE__*/React.createElement(\"li\", {\n key: JSON.stringify(item),\n className: itemClassName,\n role: \"option\",\n \"aria-selected\": _this3.isSelected(item),\n onClick: function onClick(e) {\n return _this3.props.onItemClick({\n originalEvent: e,\n value: item,\n index: i\n });\n },\n onKeyDown: function onKeyDown(e) {\n return _this3.props.onItemKeyDown({\n originalEvent: e,\n value: item,\n index: i\n });\n },\n tabIndex: _this3.props.tabIndex\n }, content);\n }\n });\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-orderlist-list-container\"\n }, header, /*#__PURE__*/React.createElement(\"ul\", {\n ref: function ref(el) {\n return _this3.listElement = el;\n },\n className: \"p-orderlist-list\",\n style: this.props.listStyle,\n onDragOver: this.onListMouseMove,\n role: \"listbox\",\n \"aria-multiselectable\": true\n }, items));\n }\n }]);\n\n return OrderListSubList;\n}(Component);\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar OrderList = /*#__PURE__*/function (_Component) {\n _inherits(OrderList, _Component);\n\n var _super = _createSuper(OrderList);\n\n function OrderList(props) {\n var _this;\n\n _classCallCheck(this, OrderList);\n\n _this = _super.call(this, props);\n _this.state = {\n selection: []\n };\n _this.onItemClick = _this.onItemClick.bind(_assertThisInitialized(_this));\n _this.onItemKeyDown = _this.onItemKeyDown.bind(_assertThisInitialized(_this));\n _this.onReorder = _this.onReorder.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(OrderList, [{\n key: \"onItemClick\",\n value: function onItemClick(event) {\n var metaKey = event.originalEvent.metaKey || event.originalEvent.ctrlKey;\n var index = ObjectUtils.findIndexInList(event.value, this.state.selection, this.props.dataKey);\n var selected = index !== -1;\n var selection;\n\n if (selected) {\n if (metaKey) selection = this.state.selection.filter(function (val, i) {\n return i !== index;\n });else selection = [event.value];\n } else {\n if (metaKey) selection = [].concat(_toConsumableArray(this.state.selection), [event.value]);else selection = [event.value];\n }\n\n this.setState({\n selection: selection\n });\n }\n }, {\n key: \"onItemKeyDown\",\n value: function onItemKeyDown(event) {\n var listItem = event.originalEvent.currentTarget;\n\n switch (event.originalEvent.which) {\n //down\n case 40:\n var nextItem = this.findNextItem(listItem);\n\n if (nextItem) {\n nextItem.focus();\n }\n\n event.originalEvent.preventDefault();\n break;\n //up\n\n case 38:\n var prevItem = this.findPrevItem(listItem);\n\n if (prevItem) {\n prevItem.focus();\n }\n\n event.originalEvent.preventDefault();\n break;\n //enter\n\n case 13:\n this.onItemClick(event);\n event.originalEvent.preventDefault();\n break;\n }\n }\n }, {\n key: \"findNextItem\",\n value: function findNextItem(item) {\n var nextItem = item.nextElementSibling;\n if (nextItem) return !DomHandler.hasClass(nextItem, 'p-orderlist-item') ? this.findNextItem(nextItem) : nextItem;else return null;\n }\n }, {\n key: \"findPrevItem\",\n value: function findPrevItem(item) {\n var prevItem = item.previousElementSibling;\n if (prevItem) return !DomHandler.hasClass(prevItem, 'p-orderlist-item') ? this.findPrevItem(prevItem) : prevItem;else return null;\n }\n }, {\n key: \"onReorder\",\n value: function onReorder(event) {\n if (this.props.onChange) {\n this.props.onChange({\n event: event.originalEvent,\n value: event.value\n });\n }\n\n this.reorderDirection = event.direction;\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n if (this.reorderDirection) {\n this.updateListScroll();\n this.reorderDirection = null;\n }\n }\n }, {\n key: \"updateListScroll\",\n value: function updateListScroll() {\n var listItems = DomHandler.find(this.subList.listElement, '.p-orderlist-item.p-highlight');\n\n if (listItems && listItems.length) {\n switch (this.reorderDirection) {\n case 'up':\n DomHandler.scrollInView(this.subList.listElement, listItems[0]);\n break;\n\n case 'top':\n this.subList.listElement.scrollTop = 0;\n break;\n\n case 'down':\n DomHandler.scrollInView(this.subList.listElement, listItems[listItems.length - 1]);\n break;\n\n case 'bottom':\n this.subList.listElement.scrollTop = this.subList.listElement.scrollHeight;\n break;\n }\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var className = classNames('p-orderlist p-component', this.props.className);\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this2.element = el;\n },\n id: this.props.id,\n className: className,\n style: this.props.style\n }, /*#__PURE__*/React.createElement(OrderListControls, {\n value: this.props.value,\n selection: this.state.selection,\n onReorder: this.onReorder,\n dataKey: this.props.dataKey\n }), /*#__PURE__*/React.createElement(OrderListSubList, {\n ref: function ref(el) {\n return _this2.subList = el;\n },\n value: this.props.value,\n selection: this.state.selection,\n onItemClick: this.onItemClick,\n onItemKeyDown: this.onItemKeyDown,\n itemTemplate: this.props.itemTemplate,\n header: this.props.header,\n listStyle: this.props.listStyle,\n dataKey: this.props.dataKey,\n dragdrop: this.props.dragdrop,\n onDragStart: this.onDragStart,\n onDragEnter: this.onDragEnter,\n onDragEnd: this.onDragEnd,\n onDragLeave: this.onDragEnter,\n onDrop: this.onDrop,\n onChange: this.props.onChange,\n tabIndex: this.props.tabIndex\n }));\n }\n }]);\n\n return OrderList;\n}(Component);\n\n_defineProperty(OrderList, \"defaultProps\", {\n id: null,\n value: null,\n header: null,\n style: null,\n className: null,\n listStyle: null,\n dragdrop: false,\n tabIndex: 0,\n dataKey: null,\n onChange: null,\n itemTemplate: null\n});\n\nexport { OrderList };\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"6c3b67dff65a1b2496003cf0b19264ff\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 696,\n \"max_line_length\": 429,\n \"avg_line_length\": 33.49856321839081,\n \"alnum_prop\": 0.6051469011366073,\n \"repo_name\": \"cdnjs/cdnjs\",\n \"id\": \"2fe7f8a4fb16dd6ad9f3baab8040c7bcb298de5c\",\n \"size\": \"23315\",\n \"binary\": false,\n \"copies\": \"2\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"ajax/libs/primereact/7.2.1/orderlist/orderlist.esm.js\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1725,"cells":{"text":{"kind":"string","value":"tool = $tool;\n\n $this->contentData();\n $this->elementData();\n $this->previewData();\n\n return array(\n 'form' => new Dlayer_DesignerTool_ContentManager_Html_SubTool_Typography_Form(\n $tool,\n $this->content_data,\n $this->instancesOfData(),\n $this->element_data\n ),\n 'preview' => $this->preview_data\n );\n }\n\n /**\n * Fetch the data array for the content item, if in edit mode mode populate the values otherwise every value is\n * set to FALSE, the tool form can simply check to see if the value is FALSe or not and then set the existing value\n *\n * @return void Writes to $this->content_data\n */\n protected function contentData()\n {\n if ($this->content_fetched === false) {\n $this->content_data = array(\n 'font_family_id' => false,\n 'text_weight_id' => false\n );\n\n if ($this->tool['content_id'] !== null) {\n $model = new Dlayer_DesignerTool_ContentManager_Shared_Model_Content_Typography();\n\n $font_weight = $model->fontWeight(\n $this->tool['site_id'],\n $this->tool['page_id'],\n $this->tool['content_id']\n );\n\n $font_family = $model->fontFamily(\n $this->tool['site_id'],\n $this->tool['page_id'],\n $this->tool['content_id']\n );\n\n if ($font_weight !== false) {\n $this->content_data['text_weight_id'] = $font_weight;\n }\n\n if ($font_family !== false) {\n $this->content_data['font_family_id'] = $font_family;\n }\n }\n\n $this->content_fetched = true;\n }\n }\n\n /**\n * Element data, data required to build the inputs\n *\n * @return array\n */\n protected function elementData()\n {\n if ($this->element_data_fetched === false) {\n\n $this->element_data = array(\n 'font_families' => false,\n 'text_weights' => false\n );\n\n $model = new Dlayer_Model_DesignerTool_ContentManager_Typography();\n\n $font_families = $model->fontFamiliesForSelect();\n if ($font_families !== false) {\n $this->element_data['font_families'] = $font_families;\n }\n\n $text_weights = $model->fontWeightsForSelect();\n if ($text_weights !== false) {\n $this->element_data['text_weights'] = $text_weights;\n }\n\n $this->element_data_fetched = true;\n }\n }\n\n /**\n * Fetch the data required by the preview functions\n *\n * @return array\n */\n protected function previewData()\n {\n if ($this->element_data_fetched === false || $this->preview_data_fetched === false) {\n\n $this->contentData();\n\n $this->preview_data = array(\n 'id' => $this->tool['content_id'],\n 'font_family_id' => $this->content_data['font_family_id'],\n 'font_families' => false,\n 'text_weights' => false\n );\n\n $model = new Dlayer_Model_DesignerTool_ContentManager_Typography();\n\n $font_families = $model->fontFamiliesForPreview();\n if ($font_families !== false) {\n $this->preview_data['font_families'] = $font_families;\n }\n\n $text_weights = $model->fontWeightsForPreview();\n if ($text_weights !== false) {\n $this->preview_data['text_weights'] = $text_weights;\n }\n\n $this->preview_data_fetched = true;\n }\n }\n\n /**\n * Fetch the number of instances for the content items data\n *\n * @return integer\n */\n protected function instancesOfData()\n {\n return 0;\n }\n}\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"397ddcc51b03b69d169cc9ecee38a273\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 148,\n \"max_line_length\": 119,\n \"avg_line_length\": 30.25,\n \"alnum_prop\": 0.5054724145633237,\n \"repo_name\": \"Dlayer/dlayer\",\n \"id\": \"5e862ee2ae434544b68cc20a828da7ed01407637\",\n \"size\": \"4678\",\n \"binary\": false,\n \"copies\": \"2\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"library/Dlayer/DesignerTool/ContentManager/Html/SubTool/Typography/Ribbon.php\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"ApacheConf\",\n \"bytes\": \"178\"\n },\n {\n \"name\": \"Batchfile\",\n \"bytes\": \"1036\"\n },\n {\n \"name\": \"CSS\",\n \"bytes\": \"5185\"\n },\n {\n \"name\": \"HTML\",\n \"bytes\": \"137813\"\n },\n {\n \"name\": \"JavaScript\",\n \"bytes\": \"101730\"\n },\n {\n \"name\": \"PHP\",\n \"bytes\": \"16742312\"\n },\n {\n \"name\": \"PowerShell\",\n \"bytes\": \"1028\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1726,"cells":{"text":{"kind":"string","value":"\npackage com.netflix.raigad.objectmapper;\n\nimport org.codehaus.jackson.JsonFactory;\nimport org.codehaus.jackson.Version;\nimport org.codehaus.jackson.map.DeserializationConfig;\nimport org.codehaus.jackson.map.ObjectMapper;\nimport org.codehaus.jackson.map.SerializationConfig;\nimport org.codehaus.jackson.map.module.SimpleModule;\n\npublic class DefaultMasterNodeInfoMapper extends ObjectMapper\n{\n public DefaultMasterNodeInfoMapper() {\n this(null);\n }\n\n public DefaultMasterNodeInfoMapper(JsonFactory factory) {\n super(factory);\n SimpleModule serializerModule = new SimpleModule(\"default serializers\", new Version(1, 0, 0, null));\n registerModule(serializerModule);\n\n configure(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n configure(SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS, false);\n }\n}\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"3d60ae6bf4c6b79a79f996c14b6dffdc\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 25,\n \"max_line_length\": 108,\n \"avg_line_length\": 34.72,\n \"alnum_prop\": 0.7707373271889401,\n \"repo_name\": \"Netflix/Raigad\",\n \"id\": \"d07be4e29e12781233b1b9e0f07d7f1ac26fa724\",\n \"size\": \"1465\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"raigad/src/main/java/com/netflix/raigad/objectmapper/DefaultMasterNodeInfoMapper.java\",\n \"mode\": \"33188\",\n \"license\": \"apache-2.0\",\n \"language\": [\n {\n \"name\": \"Java\",\n \"bytes\": \"566915\"\n },\n {\n \"name\": \"Shell\",\n \"bytes\": \"2125\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1727,"cells":{"text":{"kind":"string","value":"import { EventEmitter } from 'events';\n\nimport { Meteor } from 'meteor/meteor';\nimport { Random } from 'meteor/random';\nimport { EJSON } from 'meteor/ejson';\nimport { Log } from 'meteor/logging';\n\nimport { settings } from '../../settings';\nimport notifications from '../../notifications/server/lib/Notifications';\n\nexport const processString = function(string, date) {\n\tlet obj;\n\ttry {\n\t\tif (string[0] === '{') {\n\t\t\tobj = EJSON.parse(string);\n\t\t} else {\n\t\t\tobj = {\n\t\t\t\tmessage: string,\n\t\t\t\ttime: date,\n\t\t\t\tlevel: 'info',\n\t\t\t};\n\t\t}\n\t\treturn Log.format(obj, { color: true });\n\t} catch (error) {\n\t\treturn string;\n\t}\n};\n\nexport const StdOut = new class extends EventEmitter {\n\tconstructor() {\n\t\tsuper();\n\t\tconst { write } = process.stdout;\n\t\tthis.queue = [];\n\t\tprocess.stdout.write = (...args) => {\n\t\t\twrite.apply(process.stdout, args);\n\t\t\tconst date = new Date();\n\t\t\tconst string = processString(args[0], date);\n\t\t\tconst item = {\n\t\t\t\tid: Random.id(),\n\t\t\t\tstring,\n\t\t\t\tts: date,\n\t\t\t};\n\t\t\tthis.queue.push(item);\n\n\t\t\tconst limit = settings.get('Log_View_Limit') || 1000;\n\t\t\tif (limit && this.queue.length > limit) {\n\t\t\t\tthis.queue.shift();\n\t\t\t}\n\n\t\t\tthis.emit('write', string, item);\n\t\t};\n\t}\n}();\n\nMeteor.startup(() => {\n\tconst handler = (string, item) => {\n\t\t// TODO having this as 'emitWithoutBroadcast' will not sent this data to ddp-streamer, so this data\n\t\t// won't be available when using micro services.\n\t\tnotifications.streamStdout.emitWithoutBroadcast('stdout', {\n\t\t\t...item,\n\t\t});\n\t};\n\n\t// do not emit to StdOut if moleculer log level set to debug because it creates an infinite loop\n\tif (String(process.env.MOLECULER_LOG_LEVEL).toLowerCase() !== 'debug') {\n\t\tStdOut.on('write', handler);\n\t}\n});\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"b45ce02576330270fe2f10532f9cc3e4\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 68,\n \"max_line_length\": 101,\n \"avg_line_length\": 24.970588235294116,\n \"alnum_prop\": 0.6336866902237926,\n \"repo_name\": \"VoiSmart/Rocket.Chat\",\n \"id\": \"3bff9032aafbe039cc9dffa9100b3f45d345a69e\",\n \"size\": \"1698\",\n \"binary\": false,\n \"copies\": \"2\",\n \"ref\": \"refs/heads/ng_integration\",\n \"path\": \"app/logger/server/streamer.js\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"Batchfile\",\n \"bytes\": \"549\"\n },\n {\n \"name\": \"CSS\",\n \"bytes\": \"818469\"\n },\n {\n \"name\": \"Dockerfile\",\n \"bytes\": \"1895\"\n },\n {\n \"name\": \"HTML\",\n \"bytes\": \"701096\"\n },\n {\n \"name\": \"JavaScript\",\n \"bytes\": \"5470868\"\n },\n {\n \"name\": \"Shell\",\n \"bytes\": \"25172\"\n },\n {\n \"name\": \"Smarty\",\n \"bytes\": \"1052\"\n },\n {\n \"name\": \"Standard ML\",\n \"bytes\": \"1843\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1728,"cells":{"text":{"kind":"string","value":"\n\n\n\t\t\t
\n\t\t\t\t
Diary
\n\t\t\t\t
\"Yoga\"
\n\t\t\t\t
\"Ink
\n\t\t\t\t
\"Ignorance\"
\n\t\t\t\t
Watercolor
\n\t\t\t\t
\"Watercolor
\n\t\t\t\t
\"Watercolor
\n\t\t\t
\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"df913f531dedc7223606b1c880f6a023\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 14,\n \"max_line_length\": 232,\n \"avg_line_length\": 84.78571428571429,\n \"alnum_prop\": 0.6798652064026959,\n \"repo_name\": \"donnasaur/portfolio\",\n \"id\": \"bc4060ee2c7eda84d62c14f025cd357b1b498b7d\",\n \"size\": \"1412\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"sketchbook.php\",\n \"mode\": \"33188\",\n \"license\": \"apache-2.0\",\n \"language\": [\n {\n \"name\": \"JavaScript\",\n \"bytes\": \"44479\"\n },\n {\n \"name\": \"PHP\",\n \"bytes\": \"25131\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1729,"cells":{"text":{"kind":"string","value":"Convolve\n========\n\n.. automodule:: sdf.convolve\n :members:"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"2fa304ff3937089397622f2bc1c6440a\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 5,\n \"max_line_length\": 28,\n \"avg_line_length\": 12,\n \"alnum_prop\": 0.6,\n \"repo_name\": \"drgmk/sdf\",\n \"id\": \"837bce221fb3484004c8de139b8e2cbce8e7015b\",\n \"size\": \"60\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"docs/convolve.rst\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"HTML\",\n \"bytes\": \"9390\"\n },\n {\n \"name\": \"IDL\",\n \"bytes\": \"2187\"\n },\n {\n \"name\": \"Python\",\n \"bytes\": \"474584\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1730,"cells":{"text":{"kind":"string","value":"#pragma once\n\n#include \"il2cpp-config.h\"\n\n#ifndef _MSC_VER\n# include \n#else\n# include \n#endif\n\n#include \n\n#include \"mscorlib_System_Attribute542643598.h\"\n\n\n\n\n\n#ifdef __clang__\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Winvalid-offsetof\"\n#pragma clang diagnostic ignored \"-Wunused-variable\"\n#endif\n\n// UnityEngine.Collections.WriteOnlyAttribute\nstruct WriteOnlyAttribute_t14323075 : public Attribute_t542643598\n{\npublic:\n\npublic:\n};\n\n#ifdef __clang__\n#pragma clang diagnostic pop\n#endif\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"cadc45b07977593a19455166649a5833\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 35,\n \"max_line_length\": 67,\n \"avg_line_length\": 15.485714285714286,\n \"alnum_prop\": 0.7546125461254612,\n \"repo_name\": \"WestlakeAPC/unity-game\",\n \"id\": \"1643507d96560064ec6d111db26eb7f8242e4c20\",\n \"size\": \"544\",\n \"binary\": false,\n \"copies\": \"2\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"Xcode Project/Classes/Native/UnityEngine_UnityEngine_Collections_WriteOnlyAttribu14323075.h\",\n \"mode\": \"33188\",\n \"license\": \"apache-2.0\",\n \"language\": [\n {\n \"name\": \"C\",\n \"bytes\": \"2203895\"\n },\n {\n \"name\": \"C++\",\n \"bytes\": \"30788244\"\n },\n {\n \"name\": \"Objective-C\",\n \"bytes\": \"60881\"\n },\n {\n \"name\": \"Objective-C++\",\n \"bytes\": \"297711\"\n },\n {\n \"name\": \"Shell\",\n \"bytes\": \"1736\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1731,"cells":{"text":{"kind":"string","value":"def allLongestStrings(in_array):\n # Given an array of strings, return another containing only\n # the longest strings (all strings with longest length equal).\n lengths = [(len(str), str) for str in in_array]\n max_len = max(lengths)\n # Filter only lengths of strings with same length as max.\n # These tuples will also contain the original string, in\n # the same originally occurring order.\n res = filter(lambda x: x[0] == max_len[0], lengths)\n\n # Return just the string part of the filtered tuples.\n return list(map(lambda x: x[1], res))\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"0a54281006b176221ec8fae9ca5691cf\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 12,\n \"max_line_length\": 66,\n \"avg_line_length\": 47.166666666666664,\n \"alnum_prop\": 0.6908127208480566,\n \"repo_name\": \"Zubieta/CPP\",\n \"id\": \"5eb1108fab75a71f9204b17a3582bc357cbe4cd1\",\n \"size\": \"634\",\n \"binary\": false,\n \"copies\": \"3\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"CodeSignal/Arcade/Intro/Level_03/01_All_Longest_Strings.py\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"C++\",\n \"bytes\": \"290798\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1732,"cells":{"text":{"kind":"string","value":"\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"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"ae2f11bd1fba4c835123a969299f6921\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 27,\n \"max_line_length\": 158,\n \"avg_line_length\": 39.7037037037037,\n \"alnum_prop\": 0.566231343283582,\n \"repo_name\": \"zoozooll/MyExercise\",\n \"id\": \"a15404f97a47e7dc106c1334fed132e7f45d3ea4\",\n \"size\": \"1072\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"meep/MeepStore2/res/drawable/progressbar.xml\",\n \"mode\": \"33188\",\n \"license\": \"apache-2.0\",\n \"language\": [\n {\n \"name\": \"C\",\n \"bytes\": \"1495689\"\n },\n {\n \"name\": \"C#\",\n \"bytes\": \"190108\"\n },\n {\n \"name\": \"C++\",\n \"bytes\": \"8719269\"\n },\n {\n \"name\": \"CMake\",\n \"bytes\": \"46692\"\n },\n {\n \"name\": \"CSS\",\n \"bytes\": \"149067\"\n },\n {\n \"name\": \"GLSL\",\n \"bytes\": \"1069\"\n },\n {\n \"name\": \"HTML\",\n \"bytes\": \"5933291\"\n },\n {\n \"name\": \"Java\",\n \"bytes\": \"20935928\"\n },\n {\n \"name\": \"JavaScript\",\n \"bytes\": \"420263\"\n },\n {\n \"name\": \"Kotlin\",\n \"bytes\": \"13567\"\n },\n {\n \"name\": \"Makefile\",\n \"bytes\": \"40498\"\n },\n {\n \"name\": \"Objective-C\",\n \"bytes\": \"1149532\"\n },\n {\n \"name\": \"Objective-C++\",\n \"bytes\": \"248482\"\n },\n {\n \"name\": \"Python\",\n \"bytes\": \"23625\"\n },\n {\n \"name\": \"RenderScript\",\n \"bytes\": \"3899\"\n },\n {\n \"name\": \"Shell\",\n \"bytes\": \"18962\"\n },\n {\n \"name\": \"TSQL\",\n \"bytes\": \"184481\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1733,"cells":{"text":{"kind":"string","value":"package eais\n\n//Licensed under the Apache License, Version 2.0 (the \"License\");\n//you may not use this file except in compliance with the License.\n//You may obtain a copy of the License at\n//\n//http://www.apache.org/licenses/LICENSE-2.0\n//\n//Unless required by applicable law or agreed to in writing, software\n//distributed under the License is distributed on an \"AS IS\" BASIS,\n//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n//See the License for the specific language governing permissions and\n//limitations under the License.\n//\n// Code generated by Alibaba Cloud SDK Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\n// Regions is a nested struct in eais response\ntype Regions struct {\n\tRegion []Region `json:\"Region\" xml:\"Region\"`\n}\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"f4b71a15a33e823310a9f414f0d7d984\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 21,\n \"max_line_length\": 84,\n \"avg_line_length\": 38.904761904761905,\n \"alnum_prop\": 0.7600979192166463,\n \"repo_name\": \"aliyun/alibaba-cloud-sdk-go\",\n \"id\": \"94ad6017e2fb929fc00063bf7256fd1d03e83358\",\n \"size\": \"817\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"services/eais/struct_regions.go\",\n \"mode\": \"33188\",\n \"license\": \"apache-2.0\",\n \"language\": [\n {\n \"name\": \"Go\",\n \"bytes\": \"734307\"\n },\n {\n \"name\": \"Makefile\",\n \"bytes\": \"183\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1734,"cells":{"text":{"kind":"string","value":"ACCEPTED\n\n#### According to\nIndex Fungorum\n\n#### Published in\nnull\n\n#### Original name\nCylindrocolla tenuis P. Karst.\n\n### Remarks\nnull"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"e4882129f8d3fb1d256b4b6e1edd56a7\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 13,\n \"max_line_length\": 30,\n \"avg_line_length\": 10.384615384615385,\n \"alnum_prop\": 0.7037037037037037,\n \"repo_name\": \"mdoering/backbone\",\n \"id\": \"0d18fe70e6dddeac5f7973d3a9d17363f38a96c1\",\n \"size\": \"189\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"life/Fungi/Ascomycota/Leotiomycetes/Helotiales/Cylindrocolla/Cylindrocolla tenuis/README.md\",\n \"mode\": \"33188\",\n \"license\": \"apache-2.0\",\n \"language\": [],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1735,"cells":{"text":{"kind":"string","value":"\npackage org.apache.directory.server.core.partition.impl.btree.jdbm;\n\n\nimport java.io.IOException;\n\nimport jdbm.helper.Serializer;\n\nimport org.apache.directory.api.util.Strings;\n\n\n/**\n * A custom String serializer to [de]serialize Strings.\n *\n * @author Apache Directory Project\n */\npublic final class StringSerializer implements Serializer\n{\n private static final long serialVersionUID = -173163945773783649L;\n\n /** A static instance of a StringSerializer */\n public static final StringSerializer INSTANCE = new StringSerializer();\n\n\n /**\n * Default private constructor\n */\n private StringSerializer()\n {\n }\n\n\n /* (non-Javadoc)\n * @see jdbm.helper.Serializer#deserialize(byte[])\n */\n public Object deserialize( byte[] bytes ) throws IOException\n {\n if ( bytes.length == 0 )\n {\n return \"\";\n }\n\n char[] strchars = new char[bytes.length >> 1];\n int pos = 0;\n\n for ( int i = 0; i < bytes.length; i += 2 )\n {\n strchars[pos++] = ( char ) ( ( ( bytes[i] << 8 ) & 0x0000FF00 ) | ( bytes[i + 1] & 0x000000FF ) );\n }\n\n return new String( strchars );\n }\n\n\n /* (non-Javadoc)\n * @see jdbm.helper.Serializer#serialize(java.lang.Object)\n */\n public byte[] serialize( Object str ) throws IOException\n {\n if ( ( ( String ) str ).length() == 0 )\n {\n return Strings.EMPTY_BYTES;\n }\n\n char[] strchars = ( ( String ) str ).toCharArray();\n byte[] bites = new byte[strchars.length << 1];\n int pos = 0;\n\n for ( char c : strchars )\n {\n bites[pos++] = ( byte ) ( c >> 8 & 0x00FF );\n bites[pos++] = ( byte ) ( c & 0x00FF );\n }\n\n return bites;\n }\n}\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"cf16fbce8c1abdad7a31e296ad5fbfdd\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 77,\n \"max_line_length\": 110,\n \"avg_line_length\": 23.7012987012987,\n \"alnum_prop\": 0.5621917808219178,\n \"repo_name\": \"drankye/directory-server\",\n \"id\": \"67853b17e32a054fcddc4a27520d01f889f2903d\",\n \"size\": \"2656\",\n \"binary\": false,\n \"copies\": \"3\",\n \"ref\": \"refs/heads/trunk\",\n \"path\": \"jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/StringSerializer.java\",\n \"mode\": \"33188\",\n \"license\": \"apache-2.0\",\n \"language\": [\n {\n \"name\": \"Batchfile\",\n \"bytes\": \"4590\"\n },\n {\n \"name\": \"Java\",\n \"bytes\": \"13237996\"\n },\n {\n \"name\": \"NSIS\",\n \"bytes\": \"19538\"\n },\n {\n \"name\": \"Shell\",\n \"bytes\": \"95348\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1736,"cells":{"text":{"kind":"string","value":"\n\n \n sniffy-parent\n io.sniffy\n 3.1.12\n \n 4.0.0\n\n sniffy-module-nio\n\n Sniffy NIO Module\n http://sniffy.io/\n Sniffy NIO Module\n\n \n UTF-8\n https://oss.sonatype.org/content/repositories/snapshots/\n \n\n \n \n io.sniffy\n sniffy-core\n ${project.version}\n \n \n io.sniffy\n sniffy-core\n ${project.version}\n test-jar\n test\n \n \n\n \n\n \n jdk9plus\n \n false\n [1.9,)\n \n \n \n \n org.apache.maven.plugins\n maven-compiler-plugin\n 3.8.1\n \n \n --add-exports=java.base/sun.nio.ch=ALL-UNNAMED\n \n 1.9\n 1.9\n 1.9\n 1.9\n \n \n \n \n \n\n \n\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"15c77266fb8fe1df1ae91c73d8a30e7a\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 68,\n \"max_line_length\": 131,\n \"avg_line_length\": 35.1764705882353,\n \"alnum_prop\": 0.5179765886287625,\n \"repo_name\": \"bedrin/jdbc-sniffer\",\n \"id\": \"685e5a78b95c6f40525da39c78608fd8042a899b\",\n \"size\": \"2392\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"sniffy-module-nio/pom.xml\",\n \"mode\": \"33188\",\n \"license\": \"bsd-3-clause\",\n \"language\": [\n {\n \"name\": \"Groovy\",\n \"bytes\": \"909\"\n },\n {\n \"name\": \"Java\",\n \"bytes\": \"257341\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1737,"cells":{"text":{"kind":"string","value":"using System;\nusing Microsoft.Data.Entity;\nusing Microsoft.Data.Entity.Infrastructure;\n\nnamespace Pyrotech.IdentityServer3.AspNetIdentity3.EntityFramework7.DbContexts\n{\n public abstract class BaseDbContext : DbContext\n {\n protected BaseDbContext(DbContextOptions options)\n : base(options)\n {\n }\n\n protected BaseDbContext(IServiceProvider provider)\n : base(provider)\n {\n }\n\n protected BaseDbContext(IServiceProvider provider, DbContextOptions options)\n : base(provider,options)\n {\n }\n }\n}"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"ea04728060237d85ffdc44b3fe511c04\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 24,\n \"max_line_length\": 84,\n \"avg_line_length\": 24.708333333333332,\n \"alnum_prop\": 0.6559865092748736,\n \"repo_name\": \"Bartthefish/PyrotechIdsrv3\",\n \"id\": \"f2c643ad23d0ff8e0ff96243d810a799e50f61e0\",\n \"size\": \"595\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"source/Pyrotech.IdentityServer3.AspNetIdentity3.EntityFramework7/DbContexts/BaseDbContext.cs\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"C#\",\n \"bytes\": \"71107\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1738,"cells":{"text":{"kind":"string","value":"\n\t4.0.0\n\tbr.com.casadocodigo\n\tcasadocodigo\n\t1.0.0-SNAPSHOT\n\twar\n\n\t\n\t\t1.8\n\t\t1.8\n\t\tUTF-8\n\t\n\n\t\n\t\tcasadocodigo\n\t\t\n\t\t\t\n\t\t\t\tmaven-war-plugin\n\t\t\t\t2.4\n\t\t\t\t\n\t\t\t\t\tfalse\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n\n\t\n\t\t\n\t\t\tspring-milestones\n\t\t\tSpring Milestones\n\t\t\thttp://repo.spring.io/milestone\n\t\t\t\n\t\t\t\ttrue\n\t\t\t\n\t\t\t\n\t\t\t\tfalse\n\t\t\t\n\t\t\n\t\n\n\t\n\t\t\n\t\t\torg.springframework\n\t\t\tspring-webmvc\n\t\t\t4.1.0.RELEASE\n\t\t\n\n\t\t\n\t\t\torg.apache.tomcat\n\t\t\ttomcat-servlet-api\n\t\t\t7.0.30\n\t\t\tprovided\n\t\t\n\n\t\t\n\t\t\tjavax.servlet.jsp\n\t\t\tjsp-api\n\t\t\t2.1\n\t\t\tprovided\n\t\t\n\n\t\t\n\t\t\tjavax.servlet.jsp.jstl\n\t\t\tjstl-api\n\t\t\t1.2\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tjavax.servlet\n\t\t\t\t\tservlet-api\n\t\t\t\t\n\t\t\t\n\t\t\n\n\t\t\n\t\t\torg.glassfish.web\n\t\t\tjstl-impl\n\t\t\t1.2\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tjavax.servlet\n\t\t\t\t\tservlet-api\n\t\t\t\t\n\t\t\t\n\t\t\n\n\t\t\n\t\t\n\t\t\torg.slf4j\n\t\t\tslf4j-api\n\t\t\t1.6.1\n\t\t\n\n\t\t\n\t\t\torg.slf4j\n\t\t\tjcl-over-slf4j\n\t\t\t1.6.1\n\t\t\truntime\n\t\t\n\n\t\t\n\t\t\torg.slf4j\n\t\t\tslf4j-log4j12\n\t\t\t1.6.1\n\t\t\truntime\n\t\t\n\n\t\t\n\t\t\tlog4j\n\t\t\tlog4j\n\t\t\t1.2.16\n\t\t\truntime\n\t\t\n\n\t\t\n\t\t\n\t\t\torg.hibernate\n\t\t\thibernate-entitymanager\n\t\t\t4.3.0.Final\n\t\t\n\n\t\t\n\t\t\torg.hibernate\n\t\t\thibernate-core\n\t\t\t4.3.0.Final\n\t\t\n\n\t\t\n\t\t\torg.hibernate.javax.persistence\n\t\t\thibernate-jpa-2.1-api\n\t\t\t1.0.0.Final\n\t\t\n\n\t\t\n\t\t\torg.springframework\n\t\t\tspring-orm\n\t\t\t4.1.0.RELEASE\n\t\t\n\n\t\t\n\t\t\tjavax.validation\n\t\t\tvalidation-api\n\t\t\t1.0.0.GA\n\t\t\n\n\t\t\n\t\t\torg.hibernate\n\t\t\thibernate-validator\n\t\t\t4.1.0.Final\n\t\t\n\n\t\t\n\t\t\tmysql\n\t\t\tmysql-connector-java\n\t\t\t5.1.15\n\t\t\n\n\t\t\n\t\t\tcom.fasterxml.jackson.core\n\t\t\tjackson-core\n\t\t\t2.5.4\n\t\t\n\n\t\t\n\t\t\tcom.fasterxml.jackson.core\n\t\t\tjackson-databind\n\t\t\t2.5.4\n\t\t\n\t\t\n\t\t\n\t\t com.fasterxml.jackson.dataformat\n\t\t jackson-dataformat-xml\n\t\t 2.5.4\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t\t\tcom.google.guava\n\t\t\tguava\n\t\t\t18.0\n\t\t\n\n\t\t\n\t\t\torg.springframework\n\t\t\tspring-context-support\n\t\t\t4.1.0.RELEASE\n\t\t\n\n\t\t\n\t\t\n\t\t\torg.springframework.security\n\t\t\tspring-security-core\n\t\t\t4.0.0.M2\n\t\t\n\n\t\t\n\t\t\torg.springframework.security\n\t\t\tspring-security-config\n\t\t\t4.0.0.M2\n\t\t\n\n\t\t\n\t\t\torg.springframework.security\n\t\t\tspring-security-web\n\t\t\t4.0.0.M2\n\t\t\n\n\t\t\n\t\t\torg.springframework.security\n\t\t\tspring-security-taglibs\n\t\t\t4.0.0.M2\n\t\t\n\n\t\t\n\t\t\n\t\t\tjunit\n\t\t\tjunit\n\t\t\t4.12\n\t\t\ttest\n\t\t\n\n\t\t\n\t\t\torg.springframework\n\t\t\tspring-test\n\t\t\t4.1.0.RELEASE\n\t\t\n\t\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"4ba90e48bea2162416216a5446a98d51\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 229,\n \"max_line_length\": 104,\n \"avg_line_length\": 25.16593886462882,\n \"alnum_prop\": 0.6906125281971196,\n \"repo_name\": \"tuliof/fj-27\",\n \"id\": \"1f52ec251038b39b90db19497d65804d45dc71f5\",\n \"size\": \"5763\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"pom.xml\",\n \"mode\": \"33261\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"CSS\",\n \"bytes\": \"31653\"\n },\n {\n \"name\": \"Java\",\n \"bytes\": \"67681\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1739,"cells":{"text":{"kind":"string","value":"\n\n \n \n \n \n \n\n\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"257e130a026eb6fc44bd4d1afa29d0d1\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 9,\n \"max_line_length\": 106,\n \"avg_line_length\": 29.555555555555557,\n \"alnum_prop\": 0.650375939849624,\n \"repo_name\": \"kevstessens/docnetrails\",\n \"id\": \"27555400445f47d3fd67f9d7e3b0f254ef6114a4\",\n \"size\": \"266\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \".idea/modules.xml\",\n \"mode\": \"33188\",\n \"license\": \"apache-2.0\",\n \"language\": [\n {\n \"name\": \"CSS\",\n \"bytes\": \"100801\"\n },\n {\n \"name\": \"CoffeeScript\",\n \"bytes\": \"3893\"\n },\n {\n \"name\": \"JavaScript\",\n \"bytes\": \"282009\"\n },\n {\n \"name\": \"Ruby\",\n \"bytes\": \"100228\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1740,"cells":{"text":{"kind":"string","value":"namespace Network_Manager.Gadget.ControlPanel.InterfacePerformance\r\n{\r\n partial class InterfacePerformanceForm\r\n {\r\n /// \r\n /// Required designer variable.\r\n /// \r\n private System.ComponentModel.IContainer components = null;\r\n\r\n /// \r\n /// Clean up any resources being used.\r\n /// \r\n /// true if managed resources should be disposed; otherwise, false.\r\n protected override void Dispose(bool disposing)\r\n {\r\n if (disposing && (components != null))\r\n {\r\n components.Dispose();\r\n }\r\n base.Dispose(disposing);\r\n }\r\n\r\n #region Windows Form Designer generated code\r\n\r\n /// \r\n /// Required method for Designer support - do not modify\r\n /// the contents of this method with the code editor.\r\n /// \r\n private void InitializeComponent()\r\n {\r\n System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InterfacePerformanceForm));\r\n this.button1 = new System.Windows.Forms.Button();\r\n this.textBox1 = new System.Windows.Forms.TextBox();\r\n this.SuspendLayout();\r\n // \r\n // button1\r\n // \r\n this.button1.Location = new System.Drawing.Point(303, 350);\r\n this.button1.Name = \"button1\";\r\n this.button1.Size = new System.Drawing.Size(75, 23);\r\n this.button1.TabIndex = 0;\r\n this.button1.Text = \"button1\";\r\n this.button1.UseVisualStyleBackColor = true;\r\n this.button1.Click += new System.EventHandler(this.button1_Click);\r\n // \r\n // textBox1\r\n // \r\n this.textBox1.Location = new System.Drawing.Point(12, 12);\r\n this.textBox1.Multiline = true;\r\n this.textBox1.Name = \"textBox1\";\r\n this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both;\r\n this.textBox1.Size = new System.Drawing.Size(645, 332);\r\n this.textBox1.TabIndex = 1;\r\n // \r\n // InterfacePerformanceForm\r\n // \r\n this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);\r\n this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\r\n this.ClientSize = new System.Drawing.Size(669, 385);\r\n this.Controls.Add(this.textBox1);\r\n this.Controls.Add(this.button1);\r\n this.Icon = ((System.Drawing.Icon)(resources.GetObject(\"$this.Icon\")));\r\n this.Name = \"InterfacePerformanceForm\";\r\n this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\r\n this.Text = \"Interface Performance\";\r\n this.ResumeLayout(false);\r\n this.PerformLayout();\r\n\r\n }\r\n\r\n #endregion\r\n\r\n private System.Windows.Forms.Button button1;\r\n private System.Windows.Forms.TextBox textBox1;\r\n }\r\n}"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"efb49d9a2f0b4332249cb56efc0ce57b\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 76,\n \"max_line_length\": 156,\n \"avg_line_length\": 40.723684210526315,\n \"alnum_prop\": 0.5751211631663974,\n \"repo_name\": \"SortByte/Network-Manager\",\n \"id\": \"983664675cd4b5db0c5393d9fa692745cc791c49\",\n \"size\": \"3097\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"Network_Manager/Gadget/ControlPanel/InterfacePerformance/InterfacePerformanceForm.Designer.cs\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"Batchfile\",\n \"bytes\": \"220\"\n },\n {\n \"name\": \"C\",\n \"bytes\": \"3032\"\n },\n {\n \"name\": \"C#\",\n \"bytes\": \"924881\"\n },\n {\n \"name\": \"C++\",\n \"bytes\": \"32419\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1741,"cells":{"text":{"kind":"string","value":"declare namespace __React {\n //\n // React Elements\n // ----------------------------------------------------------------------\n\n type ReactType = ComponentClass | string;\n\n interface ReactElement

{\n type: string | ComponentClass

;\n props: P;\n key: string | number;\n ref: string | ((component: Component) => any);\n }\n\n interface ClassicElement

extends ReactElement

{\n type: string | ClassicComponentClass

;\n ref: string | ((component: ClassicComponent) => any);\n }\n\n interface DOMElement

extends ClassicElement

{\n type: string;\n ref: string | ((component: DOMComponent

) => any);\n }\n\n type HTMLElement = DOMElement;\n type SVGElement = DOMElement;\n\n //\n // Factories\n // ----------------------------------------------------------------------\n\n interface Factory

{\n (props?: P, ...children: ReactNode[]): ReactElement

;\n }\n\n interface ClassicFactory

extends Factory

{\n (props?: P, ...children: ReactNode[]): ClassicElement

;\n }\n\n interface DOMFactory

extends ClassicFactory

{\n (props?: P, ...children: ReactNode[]): DOMElement

;\n }\n\n type HTMLFactory = DOMFactory;\n type SVGFactory = DOMFactory;\n type SVGElementFactory = DOMFactory;\n\n //\n // React Nodes\n // http://facebook.github.io/react/docs/glossary.html\n // ----------------------------------------------------------------------\n\n type ReactText = string | number;\n type ReactChild = ReactElement | ReactText;\n\n // Should be Array but type aliases cannot be recursive\n type ReactFragment = {} | Array;\n type ReactNode = ReactChild | ReactFragment | boolean;\n\n //\n // Top Level API\n // ----------------------------------------------------------------------\n\n function createClass(spec: ComponentSpec): ClassicComponentClass

;\n\n function createFactory

(type: string): DOMFactory

;\n function createFactory

(type: ClassicComponentClass

| string): ClassicFactory

;\n function createFactory

(type: ComponentClass

): Factory

;\n\n function createElement

(\n type: string,\n props?: P,\n ...children: ReactNode[]): DOMElement

;\n function createElement

(\n type: ClassicComponentClass

| string,\n props?: P,\n ...children: ReactNode[]): ClassicElement

;\n function createElement

(\n type: ComponentClass

,\n props?: P,\n ...children: ReactNode[]): ReactElement

;\n\n function cloneElement

(\n element: DOMElement

,\n props?: P,\n ...children: ReactNode[]): DOMElement

;\n function cloneElement

(\n element: ClassicElement

,\n props?: P,\n ...children: ReactNode[]): ClassicElement

;\n function cloneElement

(\n element: ReactElement

,\n props?: P,\n ...children: ReactNode[]): ReactElement

;\n\n function render

(\n element: DOMElement

,\n container: Element,\n callback?: () => any): DOMComponent

;\n function render(\n element: ClassicElement

,\n container: Element,\n callback?: () => any): ClassicComponent;\n function render(\n element: ReactElement

,\n container: Element,\n callback?: () => any): Component;\n\n function unmountComponentAtNode(container: Element): boolean;\n function renderToString(element: ReactElement): string;\n function renderToStaticMarkup(element: ReactElement): string;\n function isValidElement(object: {}): boolean;\n function initializeTouchEvents(shouldUseTouch: boolean): void;\n\n function findDOMNode(\n componentOrElement: Component | Element): TElement;\n function findDOMNode(\n componentOrElement: Component | Element): Element;\n\n var DOM: ReactDOM;\n var PropTypes: ReactPropTypes;\n var Children: ReactChildren;\n\n //\n // Component API\n // ----------------------------------------------------------------------\n\n // Base component for plain JS classes\n class Component implements ComponentLifecycle {\n static propTypes: ValidationMap;\n static contextTypes: ValidationMap;\n static childContextTypes: ValidationMap;\n static defaultProps: Props;\n\n constructor(props?: P, context?: any);\n setState(f: (prevState: S, props: P) => S, callback?: () => any): void;\n setState(state: S, callback?: () => any): void;\n forceUpdate(callBack?: () => any): void;\n render(): JSX.Element;\n props: P;\n state: S;\n context: {};\n refs: {\n [key: string]: Component\n };\n }\n\n interface ClassicComponent extends Component {\n replaceState(nextState: S, callback?: () => any): void;\n getDOMNode(): TElement;\n getDOMNode(): Element;\n isMounted(): boolean;\n getInitialState?(): S;\n setProps(nextProps: P, callback?: () => any): void;\n replaceProps(nextProps: P, callback?: () => any): void;\n }\n\n interface DOMComponent

extends ClassicComponent {\n tagName: string;\n }\n\n type HTMLComponent = DOMComponent;\n type SVGComponent = DOMComponent;\n\n interface ChildContextProvider {\n getChildContext(): CC;\n }\n\n //\n // Class Interfaces\n // ----------------------------------------------------------------------\n\n interface ComponentClass

{\n new (props?: P, context?: any): Component;\n propTypes?: ValidationMap

;\n contextTypes?: ValidationMap;\n childContextTypes?: ValidationMap;\n defaultProps?: P;\n }\n\n interface ClassicComponentClass

extends ComponentClass

{\n new (props?: P, context?: any): ClassicComponent;\n getDefaultProps?(): P;\n displayName?: string;\n }\n\n //\n // Component Specs and Lifecycle\n // ----------------------------------------------------------------------\n\n interface ComponentLifecycle {\n componentWillMount?(): void;\n componentDidMount?(): void;\n componentWillReceiveProps?(nextProps: P, nextContext: any): void;\n shouldComponentUpdate?(nextProps: P, nextState: S, nextContext: any): boolean;\n componentWillUpdate?(nextProps: P, nextState: S, nextContext: any): void;\n componentDidUpdate?(prevProps: P, prevState: S, prevContext: any): void;\n componentWillUnmount?(): void;\n }\n\n interface Mixin extends ComponentLifecycle {\n mixins?: Mixin;\n statics?: {\n [key: string]: any;\n };\n\n displayName?: string;\n propTypes?: ValidationMap;\n contextTypes?: ValidationMap;\n childContextTypes?: ValidationMap\n\n getDefaultProps?(): P;\n getInitialState?(): S;\n }\n\n interface ComponentSpec extends Mixin {\n render(): ReactElement;\n\n [propertyName: string]: any;\n }\n\n //\n // Event System\n // ----------------------------------------------------------------------\n\n interface SyntheticEvent {\n bubbles: boolean;\n cancelable: boolean;\n currentTarget: EventTarget;\n defaultPrevented: boolean;\n eventPhase: number;\n isTrusted: boolean;\n nativeEvent: Event;\n preventDefault(): void;\n stopPropagation(): void;\n target: EventTarget;\n timeStamp: Date;\n type: string;\n }\n\n interface DragEvent extends SyntheticEvent {\n dataTransfer: DataTransfer;\n }\n\n interface ClipboardEvent extends SyntheticEvent {\n clipboardData: DataTransfer;\n }\n\n interface KeyboardEvent extends SyntheticEvent {\n altKey: boolean;\n charCode: number;\n ctrlKey: boolean;\n getModifierState(key: string): boolean;\n key: string;\n keyCode: number;\n locale: string;\n location: number;\n metaKey: boolean;\n repeat: boolean;\n shiftKey: boolean;\n which: number;\n }\n\n interface FocusEvent extends SyntheticEvent {\n relatedTarget: EventTarget;\n }\n\n interface FormEvent extends SyntheticEvent {\n }\n\n interface MouseEvent extends SyntheticEvent {\n altKey: boolean;\n button: number;\n buttons: number;\n clientX: number;\n clientY: number;\n ctrlKey: boolean;\n getModifierState(key: string): boolean;\n metaKey: boolean;\n pageX: number;\n pageY: number;\n relatedTarget: EventTarget;\n screenX: number;\n screenY: number;\n shiftKey: boolean;\n }\n\n interface TouchEvent extends SyntheticEvent {\n altKey: boolean;\n changedTouches: TouchList;\n ctrlKey: boolean;\n getModifierState(key: string): boolean;\n metaKey: boolean;\n shiftKey: boolean;\n targetTouches: TouchList;\n touches: TouchList;\n }\n\n interface UIEvent extends SyntheticEvent {\n detail: number;\n view: AbstractView;\n }\n\n interface WheelEvent extends SyntheticEvent {\n deltaMode: number;\n deltaX: number;\n deltaY: number;\n deltaZ: number;\n }\n\n //\n // Event Handler Types\n // ----------------------------------------------------------------------\n\n interface EventHandler {\n (event: E): void;\n }\n\n interface DragEventHandler extends EventHandler { }\n interface ClipboardEventHandler extends EventHandler { }\n interface KeyboardEventHandler extends EventHandler { }\n interface FocusEventHandler extends EventHandler { }\n interface FormEventHandler extends EventHandler { }\n interface MouseEventHandler extends EventHandler { }\n interface TouchEventHandler extends EventHandler { }\n interface UIEventHandler extends EventHandler { }\n interface WheelEventHandler extends EventHandler { }\n\n //\n // Props / DOM Attributes\n // ----------------------------------------------------------------------\n\n interface Props {\n children?: ReactNode;\n key?: string | number;\n ref?: string | ((component: T) => any);\n }\n\n interface DOMAttributesBase extends Props {\n onCopy?: ClipboardEventHandler;\n onCut?: ClipboardEventHandler;\n onPaste?: ClipboardEventHandler;\n onKeyDown?: KeyboardEventHandler;\n onKeyPress?: KeyboardEventHandler;\n onKeyUp?: KeyboardEventHandler;\n onFocus?: FocusEventHandler;\n onBlur?: FocusEventHandler;\n onChange?: FormEventHandler;\n onInput?: FormEventHandler;\n onSubmit?: FormEventHandler;\n onClick?: MouseEventHandler;\n onContextMenu?: MouseEventHandler;\n onDoubleClick?: MouseEventHandler;\n onDrag?: DragEventHandler;\n onDragEnd?: DragEventHandler;\n onDragEnter?: DragEventHandler;\n onDragExit?: DragEventHandler;\n onDragLeave?: DragEventHandler;\n onDragOver?: DragEventHandler;\n onDragStart?: DragEventHandler;\n onDrop?: DragEventHandler;\n onMouseDown?: MouseEventHandler;\n onMouseEnter?: MouseEventHandler;\n onMouseLeave?: MouseEventHandler;\n onMouseMove?: MouseEventHandler;\n onMouseOut?: MouseEventHandler;\n onMouseOver?: MouseEventHandler;\n onMouseUp?: MouseEventHandler;\n onTouchCancel?: TouchEventHandler;\n onTouchEnd?: TouchEventHandler;\n onTouchMove?: TouchEventHandler;\n onTouchStart?: TouchEventHandler;\n onScroll?: UIEventHandler;\n onWheel?: WheelEventHandler;\n\n className?: string;\n id?: string;\n\n dangerouslySetInnerHTML?: {\n __html: string;\n };\n }\n\n interface DOMAttributes extends DOMAttributesBase> {\n }\n\n // This interface is not complete. Only properties accepting\n // unitless numbers are listed here (see CSSProperty.js in React)\n interface CSSProperties {\n boxFlex?: number;\n boxFlexGroup?: number;\n columnCount?: number;\n flex?: number | string;\n flexGrow?: number;\n flexShrink?: number;\n fontWeight?: number | string;\n lineClamp?: number;\n lineHeight?: number | string;\n opacity?: number;\n order?: number;\n orphans?: number;\n widows?: number;\n zIndex?: number;\n zoom?: number;\n\n fontSize?: number | string;\n\n // SVG-related properties\n fillOpacity?: number;\n strokeOpacity?: number;\n strokeWidth?: number;\n\n [propertyName: string]: any;\n }\n\n interface HTMLAttributesBase extends DOMAttributesBase {\n accept?: string;\n acceptCharset?: string;\n accessKey?: string;\n action?: string;\n allowFullScreen?: boolean;\n allowTransparency?: boolean;\n alt?: string;\n async?: boolean;\n autoComplete?: string;\n autoFocus?: boolean;\n autoPlay?: boolean;\n cellPadding?: number | string;\n cellSpacing?: number | string;\n charSet?: string;\n checked?: boolean;\n classID?: string;\n cols?: number;\n colSpan?: number;\n content?: string;\n contentEditable?: boolean;\n contextMenu?: string;\n controls?: any;\n coords?: string;\n crossOrigin?: string;\n data?: string;\n dateTime?: string;\n defaultChecked?: boolean;\n defaultValue?: string;\n defer?: boolean;\n dir?: string;\n disabled?: boolean;\n download?: any;\n draggable?: boolean;\n encType?: string;\n form?: string;\n formAction?: string;\n formEncType?: string;\n formMethod?: string;\n formNoValidate?: boolean;\n formTarget?: string;\n frameBorder?: number | string;\n headers?: string;\n height?: number | string;\n hidden?: boolean;\n high?: number;\n href?: string;\n hrefLang?: string;\n htmlFor?: string;\n httpEquiv?: string;\n icon?: string;\n label?: string;\n lang?: string;\n list?: string;\n loop?: boolean;\n low?: number;\n manifest?: string;\n marginHeight?: number;\n marginWidth?: number;\n max?: number | string;\n maxLength?: number;\n media?: string;\n mediaGroup?: string;\n method?: string;\n min?: number | string;\n multiple?: boolean;\n muted?: boolean;\n name?: string;\n noValidate?: boolean;\n open?: boolean;\n optimum?: number;\n pattern?: string;\n placeholder?: string;\n poster?: string;\n preload?: string;\n radioGroup?: string;\n readOnly?: boolean;\n rel?: string;\n required?: boolean;\n role?: string;\n rows?: number;\n rowSpan?: number;\n sandbox?: string;\n scope?: string;\n scoped?: boolean;\n scrolling?: string;\n seamless?: boolean;\n selected?: boolean;\n shape?: string;\n size?: number;\n sizes?: string;\n span?: number;\n spellCheck?: boolean;\n src?: string;\n srcDoc?: string;\n srcSet?: string;\n start?: number;\n step?: number | string;\n style?: CSSProperties;\n tabIndex?: number;\n target?: string;\n title?: string;\n type?: string;\n useMap?: string;\n value?: string;\n width?: number | string;\n wmode?: string;\n\n // Non-standard Attributes\n autoCapitalize?: boolean;\n autoCorrect?: boolean;\n property?: string;\n itemProp?: string;\n itemScope?: boolean;\n itemType?: string;\n unselectable?: boolean;\n }\n\n interface HTMLAttributes extends HTMLAttributesBase {\n }\n\n interface SVGElementAttributes extends HTMLAttributes {\n viewBox?: string;\n preserveAspectRatio?: string;\n }\n\n interface SVGAttributes extends DOMAttributes {\n ref?: string | ((component: SVGComponent) => void);\n\n cx?: number | string;\n cy?: number | string;\n d?: string;\n dx?: number | string;\n dy?: number | string;\n fill?: string;\n fillOpacity?: number | string;\n fontFamily?: string;\n fontSize?: number | string;\n fx?: number | string;\n fy?: number | string;\n gradientTransform?: string;\n gradientUnits?: string;\n height?: number | string;\n markerEnd?: string;\n markerMid?: string;\n markerStart?: string;\n offset?: number | string;\n opacity?: number | string;\n patternContentUnits?: string;\n patternUnits?: string;\n points?: string;\n preserveAspectRatio?: string;\n r?: number | string;\n rx?: number | string;\n ry?: number | string;\n spreadMethod?: string;\n stopColor?: string;\n stopOpacity?: number | string;\n stroke?: string;\n strokeDasharray?: string;\n strokeLinecap?: string;\n strokeMiterlimit?: string;\n strokeOpacity?: number | string;\n strokeWidth?: number | string;\n textAnchor?: string;\n transform?: string;\n version?: string;\n viewBox?: string;\n width?: number | string;\n x1?: number | string;\n x2?: number | string;\n x?: number | string;\n y1?: number | string;\n y2?: number | string\n y?: number | string;\n }\n\n //\n // React.DOM\n // ----------------------------------------------------------------------\n\n interface ReactDOM {\n // HTML\n a: HTMLFactory;\n abbr: HTMLFactory;\n address: HTMLFactory;\n area: HTMLFactory;\n article: HTMLFactory;\n aside: HTMLFactory;\n audio: HTMLFactory;\n b: HTMLFactory;\n base: HTMLFactory;\n bdi: HTMLFactory;\n bdo: HTMLFactory;\n big: HTMLFactory;\n blockquote: HTMLFactory;\n body: HTMLFactory;\n br: HTMLFactory;\n button: HTMLFactory;\n canvas: HTMLFactory;\n caption: HTMLFactory;\n cite: HTMLFactory;\n code: HTMLFactory;\n col: HTMLFactory;\n colgroup: HTMLFactory;\n data: HTMLFactory;\n datalist: HTMLFactory;\n dd: HTMLFactory;\n del: HTMLFactory;\n details: HTMLFactory;\n dfn: HTMLFactory;\n dialog: HTMLFactory;\n div: HTMLFactory;\n dl: HTMLFactory;\n dt: HTMLFactory;\n em: HTMLFactory;\n embed: HTMLFactory;\n fieldset: HTMLFactory;\n figcaption: HTMLFactory;\n figure: HTMLFactory;\n footer: HTMLFactory;\n form: HTMLFactory;\n h1: HTMLFactory;\n h2: HTMLFactory;\n h3: HTMLFactory;\n h4: HTMLFactory;\n h5: HTMLFactory;\n h6: HTMLFactory;\n head: HTMLFactory;\n header: HTMLFactory;\n hr: HTMLFactory;\n html: HTMLFactory;\n i: HTMLFactory;\n iframe: HTMLFactory;\n img: HTMLFactory;\n input: HTMLFactory;\n ins: HTMLFactory;\n kbd: HTMLFactory;\n keygen: HTMLFactory;\n label: HTMLFactory;\n legend: HTMLFactory;\n li: HTMLFactory;\n link: HTMLFactory;\n main: HTMLFactory;\n map: HTMLFactory;\n mark: HTMLFactory;\n menu: HTMLFactory;\n menuitem: HTMLFactory;\n meta: HTMLFactory;\n meter: HTMLFactory;\n nav: HTMLFactory;\n noscript: HTMLFactory;\n object: HTMLFactory;\n ol: HTMLFactory;\n optgroup: HTMLFactory;\n option: HTMLFactory;\n output: HTMLFactory;\n p: HTMLFactory;\n param: HTMLFactory;\n picture: HTMLFactory;\n pre: HTMLFactory;\n progress: HTMLFactory;\n q: HTMLFactory;\n rp: HTMLFactory;\n rt: HTMLFactory;\n ruby: HTMLFactory;\n s: HTMLFactory;\n samp: HTMLFactory;\n script: HTMLFactory;\n section: HTMLFactory;\n select: HTMLFactory;\n small: HTMLFactory;\n source: HTMLFactory;\n span: HTMLFactory;\n strong: HTMLFactory;\n style: HTMLFactory;\n sub: HTMLFactory;\n summary: HTMLFactory;\n sup: HTMLFactory;\n table: HTMLFactory;\n tbody: HTMLFactory;\n td: HTMLFactory;\n textarea: HTMLFactory;\n tfoot: HTMLFactory;\n th: HTMLFactory;\n thead: HTMLFactory;\n time: HTMLFactory;\n title: HTMLFactory;\n tr: HTMLFactory;\n track: HTMLFactory;\n u: HTMLFactory;\n ul: HTMLFactory;\n \"var\": HTMLFactory;\n video: HTMLFactory;\n wbr: HTMLFactory;\n\n // SVG\n svg: SVGElementFactory;\n circle: SVGFactory;\n defs: SVGFactory;\n ellipse: SVGFactory;\n g: SVGFactory;\n line: SVGFactory;\n linearGradient: SVGFactory;\n mask: SVGFactory;\n path: SVGFactory;\n pattern: SVGFactory;\n polygon: SVGFactory;\n polyline: SVGFactory;\n radialGradient: SVGFactory;\n rect: SVGFactory;\n stop: SVGFactory;\n text: SVGFactory;\n tspan: SVGFactory;\n }\n\n //\n // React.PropTypes\n // ----------------------------------------------------------------------\n\n interface Validator {\n (object: T, key: string, componentName: string): Error;\n }\n\n interface Requireable extends Validator {\n isRequired: Validator;\n }\n\n interface ValidationMap {\n [key: string]: Validator;\n }\n\n interface ReactPropTypes {\n any: Requireable;\n array: Requireable;\n bool: Requireable;\n func: Requireable;\n number: Requireable;\n object: Requireable;\n string: Requireable;\n node: Requireable;\n element: Requireable;\n instanceOf(expectedClass: {}): Requireable;\n oneOf(types: any[]): Requireable;\n oneOfType(types: Validator[]): Requireable;\n arrayOf(type: Validator): Requireable;\n objectOf(type: Validator): Requireable;\n shape(type: ValidationMap): Requireable;\n }\n\n //\n // React.Children\n // ----------------------------------------------------------------------\n\n interface ReactChildren {\n map(children: ReactNode, fn: (child: ReactChild, index: number) => T): { [key: string]: T };\n forEach(children: ReactNode, fn: (child: ReactChild, index: number) => any): void;\n count(children: ReactNode): number;\n only(children: ReactNode): ReactChild;\n }\n\n //\n // Browser Interfaces\n // https://github.com/nikeee/2048-typescript/blob/master/2048/js/touch.d.ts\n // ----------------------------------------------------------------------\n\n interface AbstractView {\n styleMedia: StyleMedia;\n document: Document;\n }\n\n interface Touch {\n identifier: number;\n target: EventTarget;\n screenX: number;\n screenY: number;\n clientX: number;\n clientY: number;\n pageX: number;\n pageY: number;\n }\n\n interface TouchList {\n [index: number]: Touch;\n length: number;\n item(index: number): Touch;\n identifiedTouch(identifier: number): Touch;\n }\n}\n\ndeclare module \"react\" {\n export = __React;\n}\n\ndeclare module \"react/addons\" {\n //\n // React Elements\n // ----------------------------------------------------------------------\n\n type ReactType = ComponentClass | string;\n\n interface ReactElement

{\n type: string | ComponentClass

;\n props: P;\n key: string | number;\n ref: string | ((component: Component) => any);\n }\n\n interface ClassicElement

extends ReactElement

{\n type: string | ClassicComponentClass

;\n ref: string | ((component: ClassicComponent) => any);\n }\n\n interface DOMElement

extends ClassicElement

{\n type: string;\n ref: string | ((component: DOMComponent

) => any);\n }\n\n type HTMLElement = DOMElement;\n type SVGElement = DOMElement;\n\n //\n // Factories\n // ----------------------------------------------------------------------\n\n interface Factory

{\n (props?: P, ...children: ReactNode[]): ReactElement

;\n }\n\n interface ClassicFactory

extends Factory

{\n (props?: P, ...children: ReactNode[]): ClassicElement

;\n }\n\n interface DOMFactory

extends ClassicFactory

{\n (props?: P, ...children: ReactNode[]): DOMElement

;\n }\n\n type HTMLFactory = DOMFactory;\n type SVGFactory = DOMFactory;\n type SVGElementFactory = DOMFactory;\n\n //\n // React Nodes\n // http://facebook.github.io/react/docs/glossary.html\n // ----------------------------------------------------------------------\n\n type ReactText = string | number;\n type ReactChild = ReactElement | ReactText;\n\n // Should be Array but type aliases cannot be recursive\n type ReactFragment = {} | Array;\n type ReactNode = ReactChild | ReactFragment | boolean;\n\n //\n // Top Level API\n // ----------------------------------------------------------------------\n\n function createClass(spec: ComponentSpec): ClassicComponentClass

;\n\n function createFactory

(type: string): DOMFactory

;\n function createFactory

(type: ClassicComponentClass

| string): ClassicFactory

;\n function createFactory

(type: ComponentClass

): Factory

;\n\n function createElement

(\n type: string,\n props?: P,\n ...children: ReactNode[]): DOMElement

;\n function createElement

(\n type: ClassicComponentClass

| string,\n props?: P,\n ...children: ReactNode[]): ClassicElement

;\n function createElement

(\n type: ComponentClass

,\n props?: P,\n ...children: ReactNode[]): ReactElement

;\n\n function cloneElement

(\n element: DOMElement

,\n props?: P,\n ...children: ReactNode[]): DOMElement

;\n function cloneElement

(\n element: ClassicElement

,\n props?: P,\n ...children: ReactNode[]): ClassicElement

;\n function cloneElement

(\n element: ReactElement

,\n props?: P,\n ...children: ReactNode[]): ReactElement

;\n\n function render

(\n element: DOMElement

,\n container: Element,\n callback?: () => any): DOMComponent

;\n function render(\n element: ClassicElement

,\n container: Element,\n callback?: () => any): ClassicComponent;\n function render(\n element: ReactElement

,\n container: Element,\n callback?: () => any): Component;\n\n function unmountComponentAtNode(container: Element): boolean;\n function renderToString(element: ReactElement): string;\n function renderToStaticMarkup(element: ReactElement): string;\n function isValidElement(object: {}): boolean;\n function initializeTouchEvents(shouldUseTouch: boolean): void;\n\n function findDOMNode(\n componentOrElement: Component | Element): TElement;\n function findDOMNode(\n componentOrElement: Component | Element): Element;\n\n var DOM: ReactDOM;\n var PropTypes: ReactPropTypes;\n var Children: ReactChildren;\n\n //\n // Component API\n // ----------------------------------------------------------------------\n\n // Base component for plain JS classes\n class Component implements ComponentLifecycle {\n static propTypes: ValidationMap;\n static contextTypes: ValidationMap;\n static childContextTypes: ValidationMap;\n static defaultProps: Props;\n\n constructor(props?: P, context?: any);\n setState(f: (prevState: S, props: P) => S, callback?: () => any): void;\n setState(state: S, callback?: () => any): void;\n forceUpdate(callBack?: () => any): void;\n render(): JSX.Element;\n props: P;\n state: S;\n context: {};\n refs: {\n [key: string]: Component\n };\n }\n\n interface ClassicComponent extends Component {\n replaceState(nextState: S, callback?: () => any): void;\n getDOMNode(): TElement;\n getDOMNode(): Element;\n isMounted(): boolean;\n getInitialState?(): S;\n setProps(nextProps: P, callback?: () => any): void;\n replaceProps(nextProps: P, callback?: () => any): void;\n }\n\n interface DOMComponent

extends ClassicComponent {\n tagName: string;\n }\n\n type HTMLComponent = DOMComponent;\n type SVGComponent = DOMComponent;\n\n interface ChildContextProvider {\n getChildContext(): CC;\n }\n\n //\n // Class Interfaces\n // ----------------------------------------------------------------------\n\n interface ComponentClass

{\n new (props?: P, context?: any): Component;\n propTypes?: ValidationMap

;\n contextTypes?: ValidationMap;\n childContextTypes?: ValidationMap;\n defaultProps?: P;\n }\n\n interface ClassicComponentClass

extends ComponentClass

{\n new (props?: P, context?: any): ClassicComponent;\n getDefaultProps?(): P;\n displayName?: string;\n }\n\n //\n // Component Specs and Lifecycle\n // ----------------------------------------------------------------------\n\n interface ComponentLifecycle {\n componentWillMount?(): void;\n componentDidMount?(): void;\n componentWillReceiveProps?(nextProps: P, nextContext: any): void;\n shouldComponentUpdate?(nextProps: P, nextState: S, nextContext: any): boolean;\n componentWillUpdate?(nextProps: P, nextState: S, nextContext: any): void;\n componentDidUpdate?(prevProps: P, prevState: S, prevContext: any): void;\n componentWillUnmount?(): void;\n }\n\n interface Mixin extends ComponentLifecycle {\n mixins?: Mixin;\n statics?: {\n [key: string]: any;\n };\n\n displayName?: string;\n propTypes?: ValidationMap;\n contextTypes?: ValidationMap;\n childContextTypes?: ValidationMap\n\n getDefaultProps?(): P;\n getInitialState?(): S;\n }\n\n interface ComponentSpec extends Mixin {\n render(): ReactElement;\n\n [propertyName: string]: any;\n }\n\n //\n // Event System\n // ----------------------------------------------------------------------\n\n interface SyntheticEvent {\n bubbles: boolean;\n cancelable: boolean;\n currentTarget: EventTarget;\n defaultPrevented: boolean;\n eventPhase: number;\n isTrusted: boolean;\n nativeEvent: Event;\n preventDefault(): void;\n stopPropagation(): void;\n target: EventTarget;\n timeStamp: Date;\n type: string;\n }\n\n interface DragEvent extends SyntheticEvent {\n dataTransfer: DataTransfer;\n }\n\n interface ClipboardEvent extends SyntheticEvent {\n clipboardData: DataTransfer;\n }\n\n interface KeyboardEvent extends SyntheticEvent {\n altKey: boolean;\n charCode: number;\n ctrlKey: boolean;\n getModifierState(key: string): boolean;\n key: string;\n keyCode: number;\n locale: string;\n location: number;\n metaKey: boolean;\n repeat: boolean;\n shiftKey: boolean;\n which: number;\n }\n\n interface FocusEvent extends SyntheticEvent {\n relatedTarget: EventTarget;\n }\n\n interface FormEvent extends SyntheticEvent {\n }\n\n interface MouseEvent extends SyntheticEvent {\n altKey: boolean;\n button: number;\n buttons: number;\n clientX: number;\n clientY: number;\n ctrlKey: boolean;\n getModifierState(key: string): boolean;\n metaKey: boolean;\n pageX: number;\n pageY: number;\n relatedTarget: EventTarget;\n screenX: number;\n screenY: number;\n shiftKey: boolean;\n }\n\n interface TouchEvent extends SyntheticEvent {\n altKey: boolean;\n changedTouches: TouchList;\n ctrlKey: boolean;\n getModifierState(key: string): boolean;\n metaKey: boolean;\n shiftKey: boolean;\n targetTouches: TouchList;\n touches: TouchList;\n }\n\n interface UIEvent extends SyntheticEvent {\n detail: number;\n view: AbstractView;\n }\n\n interface WheelEvent extends SyntheticEvent {\n deltaMode: number;\n deltaX: number;\n deltaY: number;\n deltaZ: number;\n }\n\n //\n // Event Handler Types\n // ----------------------------------------------------------------------\n\n interface EventHandler {\n (event: E): void;\n }\n\n interface DragEventHandler extends EventHandler { }\n interface ClipboardEventHandler extends EventHandler { }\n interface KeyboardEventHandler extends EventHandler { }\n interface FocusEventHandler extends EventHandler { }\n interface FormEventHandler extends EventHandler { }\n interface MouseEventHandler extends EventHandler { }\n interface TouchEventHandler extends EventHandler { }\n interface UIEventHandler extends EventHandler { }\n interface WheelEventHandler extends EventHandler { }\n\n //\n // Props / DOM Attributes\n // ----------------------------------------------------------------------\n\n interface Props {\n children?: ReactNode;\n key?: string | number;\n ref?: string | ((component: T) => any);\n }\n\n interface DOMAttributesBase extends Props {\n onCopy?: ClipboardEventHandler;\n onCut?: ClipboardEventHandler;\n onPaste?: ClipboardEventHandler;\n onKeyDown?: KeyboardEventHandler;\n onKeyPress?: KeyboardEventHandler;\n onKeyUp?: KeyboardEventHandler;\n onFocus?: FocusEventHandler;\n onBlur?: FocusEventHandler;\n onChange?: FormEventHandler;\n onInput?: FormEventHandler;\n onSubmit?: FormEventHandler;\n onClick?: MouseEventHandler;\n onDoubleClick?: MouseEventHandler;\n onDrag?: DragEventHandler;\n onDragEnd?: DragEventHandler;\n onDragEnter?: DragEventHandler;\n onDragExit?: DragEventHandler;\n onDragLeave?: DragEventHandler;\n onDragOver?: DragEventHandler;\n onDragStart?: DragEventHandler;\n onDrop?: DragEventHandler;\n onMouseDown?: MouseEventHandler;\n onMouseEnter?: MouseEventHandler;\n onMouseLeave?: MouseEventHandler;\n onMouseMove?: MouseEventHandler;\n onMouseOut?: MouseEventHandler;\n onMouseOver?: MouseEventHandler;\n onMouseUp?: MouseEventHandler;\n onTouchCancel?: TouchEventHandler;\n onTouchEnd?: TouchEventHandler;\n onTouchMove?: TouchEventHandler;\n onTouchStart?: TouchEventHandler;\n onScroll?: UIEventHandler;\n onWheel?: WheelEventHandler;\n\n className?: string;\n id?: string;\n\n dangerouslySetInnerHTML?: {\n __html: string;\n };\n }\n\n interface DOMAttributes extends DOMAttributesBase> {\n }\n\n // This interface is not complete. Only properties accepting\n // unitless numbers are listed here (see CSSProperty.js in React)\n interface CSSProperties {\n boxFlex?: number;\n boxFlexGroup?: number;\n columnCount?: number;\n flex?: number | string;\n flexGrow?: number;\n flexShrink?: number;\n fontWeight?: number | string;\n lineClamp?: number;\n lineHeight?: number | string;\n opacity?: number;\n order?: number;\n orphans?: number;\n widows?: number;\n zIndex?: number;\n zoom?: number;\n\n fontSize?: number | string;\n\n // SVG-related properties\n fillOpacity?: number;\n strokeOpacity?: number;\n strokeWidth?: number;\n\n [propertyName: string]: any;\n }\n\n interface HTMLAttributesBase extends DOMAttributesBase {\n accept?: string;\n acceptCharset?: string;\n accessKey?: string;\n action?: string;\n allowFullScreen?: boolean;\n allowTransparency?: boolean;\n alt?: string;\n async?: boolean;\n autoComplete?: boolean;\n autoFocus?: boolean;\n autoPlay?: boolean;\n cellPadding?: number | string;\n cellSpacing?: number | string;\n charSet?: string;\n checked?: boolean;\n classID?: string;\n cols?: number;\n colSpan?: number;\n content?: string;\n contentEditable?: boolean;\n contextMenu?: string;\n controls?: any;\n coords?: string;\n crossOrigin?: string;\n data?: string;\n dateTime?: string;\n defaultChecked?: boolean;\n defaultValue?: string;\n defer?: boolean;\n dir?: string;\n disabled?: boolean;\n download?: any;\n draggable?: boolean;\n encType?: string;\n form?: string;\n formAction?: string;\n formEncType?: string;\n formMethod?: string;\n formNoValidate?: boolean;\n formTarget?: string;\n frameBorder?: number | string;\n headers?: string;\n height?: number | string;\n hidden?: boolean;\n high?: number;\n href?: string;\n hrefLang?: string;\n htmlFor?: string;\n httpEquiv?: string;\n icon?: string;\n label?: string;\n lang?: string;\n list?: string;\n loop?: boolean;\n low?: number;\n manifest?: string;\n marginHeight?: number;\n marginWidth?: number;\n max?: number | string;\n maxLength?: number;\n media?: string;\n mediaGroup?: string;\n method?: string;\n min?: number | string;\n multiple?: boolean;\n muted?: boolean;\n name?: string;\n noValidate?: boolean;\n open?: boolean;\n optimum?: number;\n pattern?: string;\n placeholder?: string;\n poster?: string;\n preload?: string;\n radioGroup?: string;\n readOnly?: boolean;\n rel?: string;\n required?: boolean;\n role?: string;\n rows?: number;\n rowSpan?: number;\n sandbox?: string;\n scope?: string;\n scoped?: boolean;\n scrolling?: string;\n seamless?: boolean;\n selected?: boolean;\n shape?: string;\n size?: number;\n sizes?: string;\n span?: number;\n spellCheck?: boolean;\n src?: string;\n srcDoc?: string;\n srcSet?: string;\n start?: number;\n step?: number | string;\n style?: CSSProperties;\n tabIndex?: number;\n target?: string;\n title?: string;\n type?: string;\n useMap?: string;\n value?: string;\n width?: number | string;\n wmode?: string;\n\n // Non-standard Attributes\n autoCapitalize?: boolean;\n autoCorrect?: boolean;\n property?: string;\n itemProp?: string;\n itemScope?: boolean;\n itemType?: string;\n unselectable?: boolean;\n }\n\n interface HTMLAttributes extends HTMLAttributesBase {\n }\n\n interface SVGElementAttributes extends HTMLAttributes {\n viewBox?: string;\n preserveAspectRatio?: string;\n }\n\n interface SVGAttributes extends DOMAttributes {\n ref?: string | ((component: SVGComponent) => void);\n\n cx?: number | string;\n cy?: number | string;\n d?: string;\n dx?: number | string;\n dy?: number | string;\n fill?: string;\n fillOpacity?: number | string;\n fontFamily?: string;\n fontSize?: number | string;\n fx?: number | string;\n fy?: number | string;\n gradientTransform?: string;\n gradientUnits?: string;\n height?: number | string;\n markerEnd?: string;\n markerMid?: string;\n markerStart?: string;\n offset?: number | string;\n opacity?: number | string;\n patternContentUnits?: string;\n patternUnits?: string;\n points?: string;\n preserveAspectRatio?: string;\n r?: number | string;\n rx?: number | string;\n ry?: number | string;\n spreadMethod?: string;\n stopColor?: string;\n stopOpacity?: number | string;\n stroke?: string;\n strokeDasharray?: string;\n strokeLinecap?: string;\n strokeMiterlimit?: string;\n strokeOpacity?: number | string;\n strokeWidth?: number | string;\n textAnchor?: string;\n transform?: string;\n version?: string;\n viewBox?: string;\n width?: number | string;\n x1?: number | string;\n x2?: number | string;\n x?: number | string;\n y1?: number | string;\n y2?: number | string\n y?: number | string;\n }\n\n //\n // React.DOM\n // ----------------------------------------------------------------------\n\n interface ReactDOM {\n // HTML\n a: HTMLFactory;\n abbr: HTMLFactory;\n address: HTMLFactory;\n area: HTMLFactory;\n article: HTMLFactory;\n aside: HTMLFactory;\n audio: HTMLFactory;\n b: HTMLFactory;\n base: HTMLFactory;\n bdi: HTMLFactory;\n bdo: HTMLFactory;\n big: HTMLFactory;\n blockquote: HTMLFactory;\n body: HTMLFactory;\n br: HTMLFactory;\n button: HTMLFactory;\n canvas: HTMLFactory;\n caption: HTMLFactory;\n cite: HTMLFactory;\n code: HTMLFactory;\n col: HTMLFactory;\n colgroup: HTMLFactory;\n data: HTMLFactory;\n datalist: HTMLFactory;\n dd: HTMLFactory;\n del: HTMLFactory;\n details: HTMLFactory;\n dfn: HTMLFactory;\n dialog: HTMLFactory;\n div: HTMLFactory;\n dl: HTMLFactory;\n dt: HTMLFactory;\n em: HTMLFactory;\n embed: HTMLFactory;\n fieldset: HTMLFactory;\n figcaption: HTMLFactory;\n figure: HTMLFactory;\n footer: HTMLFactory;\n form: HTMLFactory;\n h1: HTMLFactory;\n h2: HTMLFactory;\n h3: HTMLFactory;\n h4: HTMLFactory;\n h5: HTMLFactory;\n h6: HTMLFactory;\n head: HTMLFactory;\n header: HTMLFactory;\n hr: HTMLFactory;\n html: HTMLFactory;\n i: HTMLFactory;\n iframe: HTMLFactory;\n img: HTMLFactory;\n input: HTMLFactory;\n ins: HTMLFactory;\n kbd: HTMLFactory;\n keygen: HTMLFactory;\n label: HTMLFactory;\n legend: HTMLFactory;\n li: HTMLFactory;\n link: HTMLFactory;\n main: HTMLFactory;\n map: HTMLFactory;\n mark: HTMLFactory;\n menu: HTMLFactory;\n menuitem: HTMLFactory;\n meta: HTMLFactory;\n meter: HTMLFactory;\n nav: HTMLFactory;\n noscript: HTMLFactory;\n object: HTMLFactory;\n ol: HTMLFactory;\n optgroup: HTMLFactory;\n option: HTMLFactory;\n output: HTMLFactory;\n p: HTMLFactory;\n param: HTMLFactory;\n picture: HTMLFactory;\n pre: HTMLFactory;\n progress: HTMLFactory;\n q: HTMLFactory;\n rp: HTMLFactory;\n rt: HTMLFactory;\n ruby: HTMLFactory;\n s: HTMLFactory;\n samp: HTMLFactory;\n script: HTMLFactory;\n section: HTMLFactory;\n select: HTMLFactory;\n small: HTMLFactory;\n source: HTMLFactory;\n span: HTMLFactory;\n strong: HTMLFactory;\n style: HTMLFactory;\n sub: HTMLFactory;\n summary: HTMLFactory;\n sup: HTMLFactory;\n table: HTMLFactory;\n tbody: HTMLFactory;\n td: HTMLFactory;\n textarea: HTMLFactory;\n tfoot: HTMLFactory;\n th: HTMLFactory;\n thead: HTMLFactory;\n time: HTMLFactory;\n title: HTMLFactory;\n tr: HTMLFactory;\n track: HTMLFactory;\n u: HTMLFactory;\n ul: HTMLFactory;\n \"var\": HTMLFactory;\n video: HTMLFactory;\n wbr: HTMLFactory;\n\n // SVG\n svg: SVGElementFactory;\n circle: SVGFactory;\n defs: SVGFactory;\n ellipse: SVGFactory;\n g: SVGFactory;\n line: SVGFactory;\n linearGradient: SVGFactory;\n mask: SVGFactory;\n path: SVGFactory;\n pattern: SVGFactory;\n polygon: SVGFactory;\n polyline: SVGFactory;\n radialGradient: SVGFactory;\n rect: SVGFactory;\n stop: SVGFactory;\n text: SVGFactory;\n tspan: SVGFactory;\n }\n\n //\n // React.PropTypes\n // ----------------------------------------------------------------------\n\n interface Validator {\n (object: T, key: string, componentName: string): Error;\n }\n\n interface Requireable extends Validator {\n isRequired: Validator;\n }\n\n interface ValidationMap {\n [key: string]: Validator;\n }\n\n interface ReactPropTypes {\n any: Requireable;\n array: Requireable;\n bool: Requireable;\n func: Requireable;\n number: Requireable;\n object: Requireable;\n string: Requireable;\n node: Requireable;\n element: Requireable;\n instanceOf(expectedClass: {}): Requireable;\n oneOf(types: any[]): Requireable;\n oneOfType(types: Validator[]): Requireable;\n arrayOf(type: Validator): Requireable;\n objectOf(type: Validator): Requireable;\n shape(type: ValidationMap): Requireable;\n }\n\n //\n // React.Children\n // ----------------------------------------------------------------------\n\n interface ReactChildren {\n map(children: ReactNode, fn: (child: ReactChild, index: number) => T): { [key: string]: T };\n forEach(children: ReactNode, fn: (child: ReactChild, index: number) => any): void;\n count(children: ReactNode): number;\n only(children: ReactNode): ReactChild;\n }\n\n //\n // Browser Interfaces\n // https://github.com/nikeee/2048-typescript/blob/master/2048/js/touch.d.ts\n // ----------------------------------------------------------------------\n\n interface AbstractView {\n styleMedia: StyleMedia;\n document: Document;\n }\n\n interface Touch {\n identifier: number;\n target: EventTarget;\n screenX: number;\n screenY: number;\n clientX: number;\n clientY: number;\n pageX: number;\n pageY: number;\n }\n\n interface TouchList {\n [index: number]: Touch;\n length: number;\n item(index: number): Touch;\n identifiedTouch(identifier: number): Touch;\n }\n\n //\n // React.addons\n // ----------------------------------------------------------------------\n\n export module addons {\n export var CSSTransitionGroup: CSSTransitionGroup;\n export var TransitionGroup: TransitionGroup;\n\n export var LinkedStateMixin: LinkedStateMixin;\n export var PureRenderMixin: PureRenderMixin;\n\n export function batchedUpdates(\n callback: (a: A, b: B) => any, a: A, b: B): void;\n export function batchedUpdates(callback: (a: A) => any, a: A): void;\n export function batchedUpdates(callback: () => any): void;\n\n // deprecated: use petehunt/react-classset or JedWatson/classnames\n export function classSet(cx: { [key: string]: boolean }): string;\n export function classSet(...classList: string[]): string;\n\n export function cloneWithProps

(\n element: DOMElement

, props: P): DOMElement

;\n export function cloneWithProps

(\n element: ClassicElement

, props: P): ClassicElement

;\n export function cloneWithProps

(\n element: ReactElement

, props: P): ReactElement

;\n\n export function createFragment(\n object: { [key: string]: ReactNode }): ReactFragment;\n\n export function update(value: any[], spec: UpdateArraySpec): any[];\n export function update(value: {}, spec: UpdateSpec): any;\n\n // Development tools\n export import Perf = ReactPerf;\n export import TestUtils = ReactTestUtils;\n }\n\n //\n // React.addons (Transitions)\n // ----------------------------------------------------------------------\n\n interface TransitionGroupProps {\n component?: ReactType;\n childFactory?: (child: ReactElement) => ReactElement;\n }\n\n interface CSSTransitionGroupProps extends TransitionGroupProps {\n transitionName: string;\n transitionAppear?: boolean;\n transitionEnter?: boolean;\n transitionLeave?: boolean;\n }\n\n type CSSTransitionGroup = ComponentClass;\n type TransitionGroup = ComponentClass;\n\n //\n // React.addons (Mixins)\n // ----------------------------------------------------------------------\n\n interface ReactLink {\n value: T;\n requestChange(newValue: T): void;\n }\n\n interface LinkedStateMixin extends Mixin {\n linkState(key: string): ReactLink;\n }\n\n interface PureRenderMixin extends Mixin {\n }\n\n //\n // Reat.addons.update\n // ----------------------------------------------------------------------\n\n interface UpdateSpecCommand {\n $set?: any;\n $merge?: {};\n $apply?(value: any): any;\n }\n\n interface UpdateSpecPath {\n [key: string]: UpdateSpec;\n }\n\n type UpdateSpec = UpdateSpecCommand | UpdateSpecPath;\n\n interface UpdateArraySpec extends UpdateSpecCommand {\n $push?: any[];\n $unshift?: any[];\n $splice?: any[][];\n }\n\n //\n // React.addons.Perf\n // ----------------------------------------------------------------------\n\n interface ComponentPerfContext {\n current: string;\n owner: string;\n }\n\n interface NumericPerfContext {\n [key: string]: number;\n }\n\n interface Measurements {\n exclusive: NumericPerfContext;\n inclusive: NumericPerfContext;\n render: NumericPerfContext;\n counts: NumericPerfContext;\n writes: NumericPerfContext;\n displayNames: {\n [key: string]: ComponentPerfContext;\n };\n totalTime: number;\n }\n\n module ReactPerf {\n export function start(): void;\n export function stop(): void;\n export function printInclusive(measurements: Measurements[]): void;\n export function printExclusive(measurements: Measurements[]): void;\n export function printWasted(measurements: Measurements[]): void;\n export function printDOM(measurements: Measurements[]): void;\n export function getLastMeasurements(): Measurements[];\n }\n\n //\n // React.addons.TestUtils\n // ----------------------------------------------------------------------\n\n interface MockedComponentClass {\n new (): any;\n }\n\n module ReactTestUtils {\n export import Simulate = ReactSimulate;\n\n export function renderIntoDocument

(\n element: ReactElement

): Component;\n export function renderIntoDocument>(\n element: ReactElement): C;\n\n export function mockComponent(\n mocked: MockedComponentClass, mockTagName?: string): typeof ReactTestUtils;\n\n export function isElementOfType(\n element: ReactElement, type: ReactType): boolean;\n export function isTextComponent(instance: Component): boolean;\n export function isDOMComponent(instance: Component): boolean;\n export function isCompositeComponent(instance: Component): boolean;\n export function isCompositeComponentWithType(\n instance: Component,\n type: ComponentClass): boolean;\n\n export function findAllInRenderedTree(\n tree: Component,\n fn: (i: Component) => boolean): Component;\n\n export function scryRenderedDOMComponentsWithClass(\n tree: Component,\n className: string): DOMComponent[];\n export function findRenderedDOMComponentWithClass(\n tree: Component,\n className: string): DOMComponent;\n\n export function scryRenderedDOMComponentsWithTag(\n tree: Component,\n tagName: string): DOMComponent[];\n export function findRenderedDOMComponentWithTag(\n tree: Component,\n tagName: string): DOMComponent;\n\n export function scryRenderedComponentsWithType

(\n tree: Component,\n type: ComponentClass

): Component[];\n export function scryRenderedComponentsWithType>(\n tree: Component,\n type: ComponentClass): C[];\n\n export function findRenderedComponentWithType

(\n tree: Component,\n type: ComponentClass

): Component;\n export function findRenderedComponentWithType>(\n tree: Component,\n type: ComponentClass): C;\n\n export function createRenderer(): ShallowRenderer;\n }\n\n interface SyntheticEventData {\n altKey?: boolean;\n button?: number;\n buttons?: number;\n clientX?: number;\n clientY?: number;\n changedTouches?: TouchList;\n charCode?: boolean;\n clipboardData?: DataTransfer;\n ctrlKey?: boolean;\n deltaMode?: number;\n deltaX?: number;\n deltaY?: number;\n deltaZ?: number;\n detail?: number;\n getModifierState?(key: string): boolean;\n key?: string;\n keyCode?: number;\n locale?: string;\n location?: number;\n metaKey?: boolean;\n pageX?: number;\n pageY?: number;\n relatedTarget?: EventTarget;\n repeat?: boolean;\n screenX?: number;\n screenY?: number;\n shiftKey?: boolean;\n targetTouches?: TouchList;\n touches?: TouchList;\n view?: AbstractView;\n which?: number;\n }\n\n interface EventSimulator {\n (element: Element, eventData?: SyntheticEventData): void;\n (component: Component, eventData?: SyntheticEventData): void;\n }\n\n module ReactSimulate {\n export var blur: EventSimulator;\n export var change: EventSimulator;\n export var click: EventSimulator;\n export var cut: EventSimulator;\n export var doubleClick: EventSimulator;\n export var drag: EventSimulator;\n export var dragEnd: EventSimulator;\n export var dragEnter: EventSimulator;\n export var dragExit: EventSimulator;\n export var dragLeave: EventSimulator;\n export var dragOver: EventSimulator;\n export var dragStart: EventSimulator;\n export var drop: EventSimulator;\n export var focus: EventSimulator;\n export var input: EventSimulator;\n export var keyDown: EventSimulator;\n export var keyPress: EventSimulator;\n export var keyUp: EventSimulator;\n export var mouseDown: EventSimulator;\n export var mouseEnter: EventSimulator;\n export var mouseLeave: EventSimulator;\n export var mouseMove: EventSimulator;\n export var mouseOut: EventSimulator;\n export var mouseOver: EventSimulator;\n export var mouseUp: EventSimulator;\n export var paste: EventSimulator;\n export var scroll: EventSimulator;\n export var submit: EventSimulator;\n export var touchCancel: EventSimulator;\n export var touchEnd: EventSimulator;\n export var touchMove: EventSimulator;\n export var touchStart: EventSimulator;\n export var wheel: EventSimulator;\n }\n\n class ShallowRenderer {\n getRenderOutput>(): E;\n getRenderOutput(): ReactElement;\n render(element: ReactElement, context?: any): void;\n unmount(): void;\n }\n}\n\ndeclare namespace JSX {\n import React = __React;\n\n interface Element extends React.ReactElement { }\n interface ElementClass extends React.Component {\n render(): JSX.Element;\n }\n interface ElementAttributesProperty { props: {}; }\n\n interface IntrinsicElements {\n // HTML\n a: React.HTMLAttributes;\n abbr: React.HTMLAttributes;\n address: React.HTMLAttributes;\n area: React.HTMLAttributes;\n article: React.HTMLAttributes;\n aside: React.HTMLAttributes;\n audio: React.HTMLAttributes;\n b: React.HTMLAttributes;\n base: React.HTMLAttributes;\n bdi: React.HTMLAttributes;\n bdo: React.HTMLAttributes;\n big: React.HTMLAttributes;\n blockquote: React.HTMLAttributes;\n body: React.HTMLAttributes;\n br: React.HTMLAttributes;\n button: React.HTMLAttributes;\n canvas: React.HTMLAttributes;\n caption: React.HTMLAttributes;\n cite: React.HTMLAttributes;\n code: React.HTMLAttributes;\n col: React.HTMLAttributes;\n colgroup: React.HTMLAttributes;\n data: React.HTMLAttributes;\n datalist: React.HTMLAttributes;\n dd: React.HTMLAttributes;\n del: React.HTMLAttributes;\n details: React.HTMLAttributes;\n dfn: React.HTMLAttributes;\n dialog: React.HTMLAttributes;\n div: React.HTMLAttributes;\n dl: React.HTMLAttributes;\n dt: React.HTMLAttributes;\n em: React.HTMLAttributes;\n embed: React.HTMLAttributes;\n fieldset: React.HTMLAttributes;\n figcaption: React.HTMLAttributes;\n figure: React.HTMLAttributes;\n footer: React.HTMLAttributes;\n form: React.HTMLAttributes;\n h1: React.HTMLAttributes;\n h2: React.HTMLAttributes;\n h3: React.HTMLAttributes;\n h4: React.HTMLAttributes;\n h5: React.HTMLAttributes;\n h6: React.HTMLAttributes;\n head: React.HTMLAttributes;\n header: React.HTMLAttributes;\n hr: React.HTMLAttributes;\n html: React.HTMLAttributes;\n i: React.HTMLAttributes;\n iframe: React.HTMLAttributes;\n img: React.HTMLAttributes;\n input: React.HTMLAttributes;\n ins: React.HTMLAttributes;\n kbd: React.HTMLAttributes;\n keygen: React.HTMLAttributes;\n label: React.HTMLAttributes;\n legend: React.HTMLAttributes;\n li: React.HTMLAttributes;\n link: React.HTMLAttributes;\n main: React.HTMLAttributes;\n map: React.HTMLAttributes;\n mark: React.HTMLAttributes;\n menu: React.HTMLAttributes;\n menuitem: React.HTMLAttributes;\n meta: React.HTMLAttributes;\n meter: React.HTMLAttributes;\n nav: React.HTMLAttributes;\n noscript: React.HTMLAttributes;\n object: React.HTMLAttributes;\n ol: React.HTMLAttributes;\n optgroup: React.HTMLAttributes;\n option: React.HTMLAttributes;\n output: React.HTMLAttributes;\n p: React.HTMLAttributes;\n param: React.HTMLAttributes;\n picture: React.HTMLAttributes;\n pre: React.HTMLAttributes;\n progress: React.HTMLAttributes;\n q: React.HTMLAttributes;\n rp: React.HTMLAttributes;\n rt: React.HTMLAttributes;\n ruby: React.HTMLAttributes;\n s: React.HTMLAttributes;\n samp: React.HTMLAttributes;\n script: React.HTMLAttributes;\n section: React.HTMLAttributes;\n select: React.HTMLAttributes;\n small: React.HTMLAttributes;\n source: React.HTMLAttributes;\n span: React.HTMLAttributes;\n strong: React.HTMLAttributes;\n style: React.HTMLAttributes;\n sub: React.HTMLAttributes;\n summary: React.HTMLAttributes;\n sup: React.HTMLAttributes;\n table: React.HTMLAttributes;\n tbody: React.HTMLAttributes;\n td: React.HTMLAttributes;\n textarea: React.HTMLAttributes;\n tfoot: React.HTMLAttributes;\n th: React.HTMLAttributes;\n thead: React.HTMLAttributes;\n time: React.HTMLAttributes;\n title: React.HTMLAttributes;\n tr: React.HTMLAttributes;\n track: React.HTMLAttributes;\n u: React.HTMLAttributes;\n ul: React.HTMLAttributes;\n \"var\": React.HTMLAttributes;\n video: React.HTMLAttributes;\n wbr: React.HTMLAttributes;\n\n // SVG\n svg: React.SVGElementAttributes;\n\n circle: React.SVGAttributes;\n defs: React.SVGAttributes;\n ellipse: React.SVGAttributes;\n g: React.SVGAttributes;\n line: React.SVGAttributes;\n linearGradient: React.SVGAttributes;\n mask: React.SVGAttributes;\n path: React.SVGAttributes;\n pattern: React.SVGAttributes;\n polygon: React.SVGAttributes;\n polyline: React.SVGAttributes;\n radialGradient: React.SVGAttributes;\n rect: React.SVGAttributes;\n stop: React.SVGAttributes;\n text: React.SVGAttributes;\n tspan: React.SVGAttributes;\n }\n}"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"52628ef6d684e2332424956c59d4523f\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 2033,\n \"max_line_length\": 103,\n \"avg_line_length\": 30.73290703393999,\n \"alnum_prop\": 0.576056338028169,\n \"repo_name\": \"JoshuaKGoldberg/Todo-Backbone-React-TypeScript\",\n \"id\": \"428a8fea414eb6bebb665266e2f02e649abde280\",\n \"size\": \"62747\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"js/lib/react.d.ts\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"HTML\",\n \"bytes\": \"725\"\n },\n {\n \"name\": \"JavaScript\",\n \"bytes\": \"977284\"\n },\n {\n \"name\": \"TypeScript\",\n \"bytes\": \"10196\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1742,"cells":{"text":{"kind":"string","value":"\n\n\n \n WelcomeToTheRDK\n \n /oracle/apps/uikit/page/WelcomeToTheRDK.jsff\n \n \n \n\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"364ee5134f54df5b5c0f516b9f0e244e\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 13,\n \"max_line_length\": 76,\n \"avg_line_length\": 37.84615384615385,\n \"alnum_prop\": 0.6910569105691057,\n \"repo_name\": \"oracle-adf/apps-cloud-ui-kit\",\n \"id\": \"1d50ce9634edc118a6d3c54c23c4496d42e729ae\",\n \"size\": \"492\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"DemoMaster/public_html/WEB-INF/oracle/apps/uikit/flow/WelcomeToTheRDKFlow.xml\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"CSS\",\n \"bytes\": \"211310\"\n },\n {\n \"name\": \"HTML\",\n \"bytes\": \"230\"\n },\n {\n \"name\": \"Java\",\n \"bytes\": \"174000\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1743,"cells":{"text":{"kind":"string","value":"\"\"\"Command line tool help you debug your event definitions.\n\nFeed it a list of test notifications in json format, and it will show\nyou what events will be generated.\n\"\"\"\n\nimport json\nimport sys\n\nfrom oslo.config import cfg\nfrom stevedore import extension\n\nfrom ceilometer.event import converter\nfrom ceilometer import service\n\n\ncfg.CONF.register_cli_opts([\n cfg.StrOpt('input-file',\n short='i',\n help='File to read test notifications from.'\n ' (Containing a json list of notifications.)'\n ' defaults to stdin.'),\n cfg.StrOpt('output-file',\n short='o',\n help='File to write results to. Defaults to stdout'),\n])\n\nTYPES = {1: 'text',\n 2: 'int',\n 3: 'float',\n 4: 'datetime'}\n\n\nservice.prepare_service()\n\nconfig_file = converter.get_config_file()\noutput_file = cfg.CONF.output_file\ninput_file = cfg.CONF.input_file\n\nif output_file is None:\n out = sys.stdout\nelse:\n out = open(output_file, 'w')\n\nif input_file is None:\n notifications = json.load(sys.stdin)\nelse:\n with open(input_file, 'r') as f:\n notifications = json.load(f)\n\nout.write(\"Definitions file: %s\\n\" % config_file)\nout.write(\"Notifications tested: %s\\n\" % len(notifications))\n\nevent_converter = converter.setup_events(\n extension.ExtensionManager(\n namespace='ceilometer.event.trait_plugin'))\n\nfor notification in notifications:\n event = event_converter.to_event(notification)\n if event is None:\n out.write(\"Dropped notification: %s\\n\" %\n notification['message_id'])\n continue\n out.write(\"Event: %s at %s\\n\" % (event.event_name, event.generated))\n for trait in event.traits:\n dtype = TYPES[trait.dtype]\n out.write(\" Trait: name: %s, type: %s, value: %s\\n\" % (\n trait.name, dtype, trait.value))\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"06d5f62889b234b65958a6dccfeccd9f\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 68,\n \"max_line_length\": 72,\n \"avg_line_length\": 27.426470588235293,\n \"alnum_prop\": 0.6375335120643432,\n \"repo_name\": \"lexxito/monitoring\",\n \"id\": \"d9b6d70bfcc170fe6b78a4f351094d48e8b9a6f4\",\n \"size\": \"2553\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"bin/ceilometer-test-event.py\",\n \"mode\": \"33261\",\n \"license\": \"apache-2.0\",\n \"language\": [\n {\n \"name\": \"CSS\",\n \"bytes\": \"6284\"\n },\n {\n \"name\": \"HTML\",\n \"bytes\": \"5892\"\n },\n {\n \"name\": \"JavaScript\",\n \"bytes\": \"63538\"\n },\n {\n \"name\": \"Mako\",\n \"bytes\": \"412\"\n },\n {\n \"name\": \"Python\",\n \"bytes\": \"2077479\"\n },\n {\n \"name\": \"Shell\",\n \"bytes\": \"8171\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1744,"cells":{"text":{"kind":"string","value":"sudo apt-get update && sudo apt-get -y upgrade\n\nsudo apt-get install -y python python-dev python-pip \n\nsudo apt-get install -y libblas-dev liblapack-dev libatlas-base-dev gfortran\n\nsudo pip install numpy==1.12.1\nsudo pip install scipy==0.19.0\nsudo pip install pyamg==3.2.1\nsudo pip install psutil\nsudo apt-get install -y python-wxgtk3.0\nsudo apt-get install -y python-pythoncard\n\nsudo pip install circuitscape\n\n\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"e5cff026ffee472dd31945817faf1f70\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 16,\n \"max_line_length\": 76,\n \"avg_line_length\": 25.75,\n \"alnum_prop\": 0.7718446601941747,\n \"repo_name\": \"clemsonciti/singularity-images\",\n \"id\": \"abcddc152fdc83c7a7b01d57eae80152d0ab577a\",\n \"size\": \"412\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"circuitscape/install_circuitscape.sh\",\n \"mode\": \"33188\",\n \"license\": \"apache-2.0\",\n \"language\": [\n {\n \"name\": \"Shell\",\n \"bytes\": \"22063\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1745,"cells":{"text":{"kind":"string","value":"module Servant\n module Mixin\n class Trigger\n \n def has_config\n return @has\n end\n \n def get_poll\n @poll\n end\n \n def get_periodical\n @periodical\n end\n \n def initialize\n @has = false\n @poll\n @periodical\n end\n \n def poll(sched)\n @has = true\n @poll = sched\n end\n\n def periodical(sched)\n @has = true\n @periodical = sched\n end\n end\n end\nend"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"27aca7a6d934210ca6121ca280a7a1b4\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 34,\n \"max_line_length\": 27,\n \"avg_line_length\": 14.588235294117647,\n \"alnum_prop\": 0.4576612903225806,\n \"repo_name\": \"chobie/Servant\",\n \"id\": \"9b8a1c20d1b3f66a998c2ebb90bc8e912549f80e\",\n \"size\": \"496\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"lib/servant/mixin/trigger.rb\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"Ruby\",\n \"bytes\": \"20004\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1746,"cells":{"text":{"kind":"string","value":"/**\r\n * \r\n */\r\npackage com.jettmarks.clue.server.service;\r\n\r\nimport com.google.gwt.user.server.rpc.RemoteServiceServlet;\r\nimport com.jettmarks.clue.client.service.RevealLevelService;\r\nimport com.jettmarks.clue.server.domain.Group;\r\n\r\n/**\r\n * @author jett\r\n *\r\n */\r\npublic class RevealLevelServiceImpl extends RemoteServiceServlet implements\r\n\t\tRevealLevelService {\r\n\r\n\t/**\r\n\t * \r\n\t */\r\n\tprivate static final long serialVersionUID = -5943620817773835942L;\r\n\t\r\n\tprivate int currentPage = 0;\r\n\t\r\n\t/**\r\n\t * Implementation of service that returns the current page that can be\r\n\t * revealed in the application.\r\n\t * \r\n\t * The groupId identifies which instance of the game is being played by the\r\n\t * group.\r\n\t * \r\n\t * @see com.jettmarks.clue.client.service.RevealLevelService#getCurrentPage()\r\n\t */\r\n\t@Override\r\n\tpublic int getCurrentPage(int groupId) {\r\n\t\tGroup group = SessionManagerImpl.getGroup(groupId);\r\n\t\treturn group.getRevealLevel();\r\n\t}\r\n\t\r\n\tpublic int bumpCurrentPage(int groupId) {\r\n\t\tGroup group = SessionManagerImpl.getGroup(groupId);\r\n\t\tgroup.bumpCurrentPage();\r\n\t\treturn group.getRevealLevel();\r\n\t}\r\n\t\r\n\tpublic void setCurrentPage(int groupId, int newCurrentPage) {\r\n\t\tGroup group = SessionManagerImpl.getGroup(groupId);\r\n\t\tgroup.setRevealLevel(newCurrentPage);\r\n\t}\r\n\r\n}\r\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"67f5ebae6b2cc600896a52029c27ed39\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 50,\n \"max_line_length\": 78,\n \"avg_line_length\": 25.64,\n \"alnum_prop\": 0.7215288611544461,\n \"repo_name\": \"jettmarks/clueRide\",\n \"id\": \"3d7fabc7104ec257c7a43ebe4e4d00b1c7883fb6\",\n \"size\": \"1282\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"cluepageMGWT/src/main/java/com/jettmarks/clue/server/service/RevealLevelServiceImpl.java\",\n \"mode\": \"33188\",\n \"license\": \"apache-2.0\",\n \"language\": [\n {\n \"name\": \"CSS\",\n \"bytes\": \"2440\"\n },\n {\n \"name\": \"HTML\",\n \"bytes\": \"13577\"\n },\n {\n \"name\": \"Java\",\n \"bytes\": \"87142\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1747,"cells":{"text":{"kind":"string","value":"contract;\n }\n\n /**\n * Get the current subject.\n *\n * @return string\n */\n public function getTitle()\n {\n return $this->title;\n }\n\n /**\n * Get the net value.\n *\n * @return float\n */\n public function getValue()\n {\n return $this->value;\n }\n\n /**\n * Set the current contract.\n *\n * @param Contract|null $contract Related contract.\n */\n public function setContract(Contract $contract = null)\n {\n $this->contract = $contract;\n }\n\n /**\n * Set the current subject.\n *\n * @param string $title Sum up what has been done.\n */\n public function setTitle($title)\n {\n $this->title = $title;\n }\n\n /**\n * Set the net value of the ticket.\n *\n * @param float $netValue Net value of the delivered goods.\n */\n public function setValue($netValue)\n {\n $this->value = $netValue;\n }\n}\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"5c7016277e0f0db1631fd713189748af\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 115,\n \"max_line_length\": 76,\n \"avg_line_length\": 20.52173913043478,\n \"alnum_prop\": 0.5792372881355933,\n \"repo_name\": \"sourcerer-mike/crmp\",\n \"id\": \"1aabdb8bee974ac1fee96c03009a7b5d79b35b0c\",\n \"size\": \"2360\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/develop\",\n \"path\": \"src/Crmp/AccountingBundle/CoreDomain/DeliveryTicket/DeliveryTicket.php\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"ApacheConf\",\n \"bytes\": \"286\"\n },\n {\n \"name\": \"CSS\",\n \"bytes\": \"3022\"\n },\n {\n \"name\": \"Cucumber\",\n \"bytes\": \"13067\"\n },\n {\n \"name\": \"GCC Machine Description\",\n \"bytes\": \"268\"\n },\n {\n \"name\": \"HTML\",\n \"bytes\": \"90001\"\n },\n {\n \"name\": \"PHP\",\n \"bytes\": \"367798\"\n },\n {\n \"name\": \"Shell\",\n \"bytes\": \"1879\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1748,"cells":{"text":{"kind":"string","value":"ACCEPTED\n\n#### According to\nInternational Plant Names Index\n\n#### Published in\nnull\n\n#### Original name\nnull\n\n### Remarks\nnull"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"a42aa818b5f9eae8f7a8107a7c0c6d46\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 13,\n \"max_line_length\": 31,\n \"avg_line_length\": 9.692307692307692,\n \"alnum_prop\": 0.7063492063492064,\n \"repo_name\": \"mdoering/backbone\",\n \"id\": \"b35d1ddf80db456dcdb818da284491159960baae\",\n \"size\": \"194\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"life/Plantae/Magnoliophyta/Magnoliopsida/Rosales/Rosaceae/Rubus/Rubus pyramidalis/Rubus pyramidalis parvifolius/README.md\",\n \"mode\": \"33188\",\n \"license\": \"apache-2.0\",\n \"language\": [],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1749,"cells":{"text":{"kind":"string","value":"require 'test_helper'\n\nclass UsersProjectTest < ActiveSupport::TestCase\n # test \"the truth\" do\n # assert true\n # end\nend\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"75b779de6ac1e6dc7007ae38a10335d0\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 7,\n \"max_line_length\": 48,\n \"avg_line_length\": 18,\n \"alnum_prop\": 0.7063492063492064,\n \"repo_name\": \"GDG-Regensburg/campusasyl_projectsdb\",\n \"id\": \"70b97f0adffc93f89fe0478a981c4531df12f7a6\",\n \"size\": \"126\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"test/models/users_project_test.rb\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"CSS\",\n \"bytes\": \"4300\"\n },\n {\n \"name\": \"CoffeeScript\",\n \"bytes\": \"2785\"\n },\n {\n \"name\": \"HTML\",\n \"bytes\": \"40873\"\n },\n {\n \"name\": \"JavaScript\",\n \"bytes\": \"757\"\n },\n {\n \"name\": \"Ruby\",\n \"bytes\": \"117820\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1750,"cells":{"text":{"kind":"string","value":"package com.github.eventasia.eventstore.event;\n\npublic interface EventasiaMessageConverter {\n\n public byte[] serialize(EventasiaMessage message);\n\n public EventasiaMessage deserialize(byte[] message);\n}\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"3fc983a3c7a2a7bdb84506a372bf8ffd\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 8,\n \"max_line_length\": 56,\n \"avg_line_length\": 26.125,\n \"alnum_prop\": 0.7942583732057417,\n \"repo_name\": \"Eventasia/eventasia\",\n \"id\": \"73938574fdcb660518d16839a985f71c231da5d6\",\n \"size\": \"209\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"eventasia-starter/src/main/java/com/github/eventasia/eventstore/event/EventasiaMessageConverter.java\",\n \"mode\": \"33188\",\n \"license\": \"apache-2.0\",\n \"language\": [\n {\n \"name\": \"Java\",\n \"bytes\": \"39340\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1751,"cells":{"text":{"kind":"string","value":"package co.mewf.minirs.servlet;\n\nimport java.io.IOException;\nimport java.io.OutputStream;\nimport java.lang.annotation.Annotation;\nimport java.lang.reflect.Type;\n\nimport co.mewf.minirs.internal.javax.ws.rs.WebApplicationException;\nimport co.mewf.minirs.internal.javax.ws.rs.core.MediaType;\nimport co.mewf.minirs.internal.javax.ws.rs.core.MultivaluedMap;\nimport co.mewf.minirs.internal.javax.ws.rs.ext.MessageBodyWriter;\n\npublic class FirstPartyMessageBodyWriter implements MessageBodyWriter {\n\n @Override\n public boolean isWriteable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType) {\n return true;\n }\n\n @Override\n public long getSize(String t, Class type, Type genericType, Annotation[] annotations, MediaType mediaType) {\n return 0;\n }\n\n @Override\n public void writeTo(String t, Class type, Type genericType, Annotation[] annotations, MediaType mediaType,\n MultivaluedMap httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException {}\n\n}\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"757e02892960b4359d0476565dace8e9\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 29,\n \"max_line_length\": 123,\n \"avg_line_length\": 35.93103448275862,\n \"alnum_prop\": 0.7869481765834933,\n \"repo_name\": \"mewf/minirs-core\",\n \"id\": \"4866b5d4fcfbab763bd20596a6d6f934d7cb5689\",\n \"size\": \"1042\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"src/test/java/co/mewf/minirs/servlet/FirstPartyMessageBodyWriter.java\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"Java\",\n \"bytes\": \"885851\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1752,"cells":{"text":{"kind":"string","value":"getConfigFlag('active')) {\n return false;\n }\n\n // Check if the rates were requested by ChannelEngine and not by the frontend\n if (!Mage::registry('channelengine_shipping')) {\n return false;\n }\n Mage::unregister('channelengine_shipping');\n\n $result = Mage::getModel('shipping/rate_result');\n\n $shippingPrice = 0;\n\n if (Mage::registry('channelengine_shipping_amount')) {\n $shippingPrice = Mage::registry('channelengine_shipping_amount');\n }\n Mage::unregister('channelengine_shipping_amount');\n\n\n $method = Mage::getModel('shipping/rate_result_method');\n\n $method->setCarrier($this->_code);\n $method->setCarrierTitle($this->getConfigData('title'));\n\n $method->setMethod($this->_code);\n $method->setMethodTitle($this->getConfigData('name'));\n\n $method->setPrice($shippingPrice);\n $method->setCost($shippingPrice);\n\n $result->append($method);\n\n\n return $result;\n }\n\n public function isActive()\n {\n\n }\n\n public function getAllowedMethods()\n {\n return array('channelengine' => 'ChannelEngine');\n }\n\n}\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"c6891cab34d8859d75b7dfeb213a1f7e\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 68,\n \"max_line_length\": 87,\n \"avg_line_length\": 26.279411764705884,\n \"alnum_prop\": 0.6245103525461667,\n \"repo_name\": \"channelengine/magento\",\n \"id\": \"bb735aa46bcca6265b7331ab43999f65e476521a\",\n \"size\": \"1787\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"app/code/community/Tritac/ChannelEngine/Model/Carrier/Channelengine.php\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"Batchfile\",\n \"bytes\": \"959\"\n },\n {\n \"name\": \"HTML\",\n \"bytes\": \"3736\"\n },\n {\n \"name\": \"PHP\",\n \"bytes\": \"84048\"\n },\n {\n \"name\": \"Shell\",\n \"bytes\": \"802\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1753,"cells":{"text":{"kind":"string","value":"@implementation AppDelegate\n\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions\n{\n // Override point for customization after application launch.\n return YES;\n}\n\t\t\t\t\t\t\t\n- (void)applicationWillResignActive:(UIApplication *)application\n{\n // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.\n // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.\n}\n\n- (void)applicationDidEnterBackground:(UIApplication *)application\n{\n // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. \n // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.\n}\n\n- (void)applicationWillEnterForeground:(UIApplication *)application\n{\n // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.\n}\n\n- (void)applicationDidBecomeActive:(UIApplication *)application\n{\n // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.\n}\n\n- (void)applicationWillTerminate:(UIApplication *)application\n{\n // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.\n}\n\n@end\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"2822c24e48595f4840ae8f69d5457335\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 36,\n \"max_line_length\": 281,\n \"avg_line_length\": 51.27777777777778,\n \"alnum_prop\": 0.7849404117009751,\n \"repo_name\": \"yuyedaidao/AmazingButton\",\n \"id\": \"cb8ea34f887e4dff2a1838c358d54884f8af560b\",\n \"size\": \"2002\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"AmazingButton/AppDelegate.m\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"Objective-C\",\n \"bytes\": \"27588\"\n },\n {\n \"name\": \"Ruby\",\n \"bytes\": \"108\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1754,"cells":{"text":{"kind":"string","value":"\n\n\n\n\n\nXLabs: Class Members - Variables\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&#160;\n\n

- e -

\n
\n
\n\n
\n
    \n
  • Generated by\n \n \"doxygen\"/ 1.8.10
  • \n
\n
\n\n\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"d578693537d88d2a4ea417274161ffe3\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 175,\n \"max_line_length\": 168,\n \"avg_line_length\": 45.97714285714286,\n \"alnum_prop\": 0.6400695998011434,\n \"repo_name\": \"XLabs/xlabs.github.io\",\n \"id\": \"e08a9eedf0d19794faa3cd4f3c3b730629a3de6a\",\n \"size\": \"8046\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"html/functions_vars_e.html\",\n \"mode\": \"33188\",\n \"license\": \"apache-2.0\",\n \"language\": [\n {\n \"name\": \"CSS\",\n \"bytes\": \"33201\"\n },\n {\n \"name\": \"HTML\",\n \"bytes\": \"25233456\"\n },\n {\n \"name\": \"JavaScript\",\n \"bytes\": \"1159419\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1755,"cells":{"text":{"kind":"string","value":"pathMatcher = $pathMatcher;\n $this->responseFilters = $responseFilters;\n }\n\n public function match($variantFilepath)\n {\n return $this->pathMatcher->match($variantFilepath);\n }\n\n public function matches($variantFilepath)\n {\n return $this->pathMatcher->matches($variantFilepath);\n }\n\n public function beforeSendProcess(FileSource $file, FileId $fileId)\n {\n return $file;\n }\n\n public function beforeStoreProcess(FileSource $file)\n {\n return $file;\n }\n\n public function getStoreAttributes(FileSource $file)\n {\n $content = $file->content();\n\n return array(\n 'mime-type' => $file->fileType()->mimeType(),\n 'extension' => $file->fileType()->extension(),\n 'size' => strlen($content),\n ) + $this->doGetStoreAttributes($file);\n }\n\n protected function doGetStoreAttributes(FileSource $file)\n {\n return array();\n }\n\n public function supports(FileType $fileType)\n {\n return in_array($fileType->mimeType(), $this->supportedMimeTypes()) && in_array($fileType->extension(), $this->supportedExtensions());\n }\n\n protected abstract function supportedMimeTypes();\n\n protected abstract function supportedExtensions();\n\n public function filterResponse(Response $response, FileSource $fileSource, FileId $fileId)\n {\n foreach($this->responseFilters as $filter) {\n $filter->filterResponse($response, $fileSource, $fileId);\n }\n }\n}"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"3bffc4cf6fcdb4879013cdfd5993adb3\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 73,\n \"max_line_length\": 142,\n \"avg_line_length\": 26.767123287671232,\n \"alnum_prop\": 0.6622313203684749,\n \"repo_name\": \"zineinc/floppy-server\",\n \"id\": \"a6e0134663db1e67f3499e0bc4cddefba6f8ab54\",\n \"size\": \"1954\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"src/Floppy/Server/FileHandler/AbstractFileHandler.php\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"PHP\",\n \"bytes\": \"165633\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1756,"cells":{"text":{"kind":"string","value":"package apps::antivirus::kaspersky::snmp::mode::logicalnetwork;\n\nuse base qw(centreon::plugins::templates::counter);\n\nuse strict;\nuse warnings;\n\nmy $instance_mode;\n\nsub custom_status_threshold {\n my ($self, %options) = @_;\n my $status = 'ok';\n my $message;\n\n eval {\n local $SIG{__WARN__} = sub { $message = $_[0]; };\n local $SIG{__DIE__} = sub { $message = $_[0]; };\n\n if (defined($instance_mode->{option_results}->{critical_status}) && $instance_mode->{option_results}->{critical_status} ne '' &&\n eval \"$instance_mode->{option_results}->{critical_status}\") {\n $status = 'critical';\n } elsif (defined($instance_mode->{option_results}->{warning_status}) && $instance_mode->{option_results}->{warning_status} ne '' &&\n eval \"$instance_mode->{option_results}->{warning_status}\") {\n $status = 'warning';\n }\n };\n if (defined($message)) {\n $self->{output}->output_add(long_msg => 'filter status issue: ' . $message);\n }\n\n return $status;\n}\n\nsub custom_status_output {\n my ($self, %options) = @_;\n\n my $msg = sprintf(\"Logical network status is '%s'\", $self->{result_values}->{status});\n return $msg;\n}\n\nsub custom_status_calc {\n my ($self, %options) = @_;\n\n $self->{result_values}->{status} = $options{new_datas}->{$self->{instance} . '_logicalNetworkStatus'};\n return 0;\n}\n\nsub set_counters {\n my ($self, %options) = @_;\n\n $self->{maps_counters_type} = [\n { name => 'global', type => 0, message_separator => ' - ' },\n ];\n\n $self->{maps_counters}->{global} = [\n { label => 'status', set => {\n key_values => [ { name => 'logicalNetworkStatus' } ],\n closure_custom_calc => $self->can('custom_status_calc'),\n closure_custom_output => $self->can('custom_status_output'),\n closure_custom_perfdata => sub { return 0; },\n closure_custom_threshold_check => $self->can('custom_status_threshold'),\n }\n },\n { label => 'new-hosts', set => {\n key_values => [ { name => 'hostsFound' } ],\n output_template => '%d new host(s) found',\n perfdatas => [\n { label => 'new_hosts', value => 'hostsFound_absolute', template => '%d', min => 0 },\n ],\n }\n },\n { label => 'groups', set => {\n key_values => [ { name => 'groupsCount' } ],\n output_template => '%d group(s) on the server',\n perfdatas => [\n { label => 'groups', value => 'groupsCount_absolute', template => '%d', min => 0 },\n ],\n }\n },\n { label => 'not-connected-long-time', set => {\n key_values => [ { name => 'hostsNotConnectedLongTime' } ],\n output_template => '%d host(s) has not connected for a long time',\n perfdatas => [\n { label => 'not_connected_long_time', value => 'hostsNotConnectedLongTime_absolute', template => '%d', min => 0 },\n ],\n }\n },\n { label => 'not-controlled', set => {\n key_values => [ { name => 'hostsControlLost' } ],\n output_template => '%d host(s) are not controlled',\n perfdatas => [\n { label => 'not_controlled', value => 'hostsControlLost_absolute', template => '%d', min => 0 },\n ],\n }\n },\n ];\n}\n\nsub new {\n my ($class, %options) = @_;\n my $self = $class->SUPER::new(package => __PACKAGE__, %options);\n bless $self, $class;\n\n $self->{version} = '1.0';\n $options{options}->add_options(arguments =>\n {\n \"warning-status:s\" => { name => 'warning_status', default => '%{status} =~ /Warning/i' },\n \"critical-status:s\" => { name => 'critical_status', default => '%{status} =~ /Critical/i' },\n });\n return $self;\n}\n\nsub change_macros {\n my ($self, %options) = @_;\n\n foreach ('warning_status', 'critical_status') {\n if (defined($self->{option_results}->{$_})) {\n $self->{option_results}->{$_} =~ s/%\\{(.*?)\\}/\\$self->{result_values}->{$1}/g;\n }\n }\n}\n\nsub check_options {\n my ($self, %options) = @_;\n $self->SUPER::check_options(%options);\n\n $instance_mode = $self;\n $self->change_macros();\n}\n\nmy %map_status = (\n 0 => 'OK',\n 1 => 'Info',\n 2 => 'Warning',\n 3 => 'Critical',\n);\n\nmy $oid_logicalNetworkStatus = '.1.3.6.1.4.1.23668.1093.1.5.1';\nmy $oid_hostsFound = '.1.3.6.1.4.1.23668.1093.1.5.3';\nmy $oid_groupsCount = '.1.3.6.1.4.1.23668.1093.1.5.4';\nmy $oid_hostsNotConnectedLongTime = '.1.3.6.1.4.1.23668.1093.1.5.5';\nmy $oid_hostsControlLost = '.1.3.6.1.4.1.23668.1093.1.5.6';\n\nsub manage_selection {\n my ($self, %options) = @_;\n\n my $snmp_result = $options{snmp}->get_leef(oids => [ $oid_logicalNetworkStatus, $oid_hostsFound,\n $oid_groupsCount, $oid_hostsNotConnectedLongTime,\n $oid_hostsControlLost ], \n nothing_quit => 1);\n \n $self->{global} = {};\n\n $self->{global} = { \n logicalNetworkStatus => $map_status{$snmp_result->{$oid_logicalNetworkStatus}},\n hostsFound => $snmp_result->{$oid_hostsFound},\n groupsCount => $snmp_result->{$oid_groupsCount},\n hostsNotConnectedLongTime => $snmp_result->{$oid_hostsNotConnectedLongTime},\n hostsControlLost => $snmp_result->{$oid_hostsControlLost},\n };\n}\n\n1;\n\n__END__\n\n=head1 MODE\n\nCheck logical network status.\n\n=over 8\n\n=item B<--warning-status>\n\nSet warning threshold for status. (Default: '%{status} =~ /Warning/i').\nCan use special variables like: %{status}\n\n=item B<--critical-status>\n\nSet critical threshold for status. (Default: '%{status} =~ /Critical/i').\nCan use special variables like: %{status}\n\n=item B<--warning-*>\n\nThreshold warning.\nCan be: 'new-hosts', 'groups', 'not-connected-long-time', 'not-controlled'.\n\n=item B<--critical-*>\n\nThreshold critical.\nCan be: 'new-hosts', 'groups', 'not-connected-long-time', 'not-controlled'.\n\n=back\n\n=cut\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"a9d741f2cc371fb6dcb7c8257a50530c\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 195,\n \"max_line_length\": 139,\n \"avg_line_length\": 32.56410256410256,\n \"alnum_prop\": 0.512755905511811,\n \"repo_name\": \"wilfriedcomte/centreon-plugins\",\n \"id\": \"ba5743ff2fbe919555a9fa63e714c2a089a8a47a\",\n \"size\": \"7110\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"apps/antivirus/kaspersky/snmp/mode/logicalnetwork.pm\",\n \"mode\": \"33188\",\n \"license\": \"apache-2.0\",\n \"language\": [\n {\n \"name\": \"Perl\",\n \"bytes\": \"5844487\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1757,"cells":{"text":{"kind":"string","value":"\r\nMySafenet is complementary to the [SAFE Demo App](https://maidsafe.readme.io/docs/demo-app) and aims to help you explore \r\nthe capabilities of the SAFE Network and serve as a sample of a non trivial application built on it.\r\n\r\nOnce given authorization the main screen shows most of what is offered. You can manage Public IDs and\r\nservices and manage files and folders by simply dragging and dropping them.\r\n\r\n## Changelog\r\n\r\n### v0.0.0.2\r\n* Downloads file & folders from explorer view.\r\n\r\n### v0.0.0.1\r\n* Initial release, configure public ids, upload files.\r\n\r\n[MySafenet-v0.0.0.2.zip](Files/MySafenet-v0.0.0.2.zip) (.NET + Winforms)\\\r\nYou find the [source on GitHub](https://github.com/drunkcod/Safenet)\r\n![MySafenet](Images/MySafenet-Drag-Drop.png)\r\n"},"meta":{"kind":"string","value":"{\n \"content_hash\": \"76a4cb67fcf30c01ca81a57758003c01\",\n \"timestamp\": \"\",\n \"source\": \"github\",\n \"line_count\": 18,\n \"max_line_length\": 122,\n \"avg_line_length\": 41.94444444444444,\n \"alnum_prop\": 0.7390728476821192,\n \"repo_name\": \"drunkcod/Safenet\",\n \"id\": \"ddc3f7b96388670fa63da1112ea42d5d99df669f\",\n \"size\": \"777\",\n \"binary\": false,\n \"copies\": \"1\",\n \"ref\": \"refs/heads/master\",\n \"path\": \"Docs/MySafenet.md\",\n \"mode\": \"33188\",\n \"license\": \"mit\",\n \"language\": [\n {\n \"name\": \"Batchfile\",\n \"bytes\": \"117\"\n },\n {\n \"name\": \"C#\",\n \"bytes\": \"76200\"\n },\n {\n \"name\": \"CSS\",\n \"bytes\": \"659\"\n },\n {\n \"name\": \"HTML\",\n \"bytes\": \"256\"\n }\n ],\n \"symlink_target\": \"\"\n}"}}},{"rowIdx":1758,"cells":{"text":{"kind":"string","value":"\n\n/* **********************************************\n Begin TL.js\n********************************************** */\n\n/*!\n\tTL\n*/\n\n(function (root) {\n\troot.TL = {\n\t\tVERSION: '0.1',\n\t\t_originalL: root.TL\n\t};\n}(this));\n\n/*\tTL.Debug\n\tDebug mode\n================================================== */\nTL.debug = false;\n\n\n\n/*\tTL.Bind\n================================================== */\nTL.Bind = function (/*Function*/ fn, /*Object*/ obj) /*-> Object*/ {\n\treturn function () {\n\t\treturn fn.apply(obj, arguments);\n\t};\n};\n\n\n\n/* Trace (console.log)\n================================================== */\ntrace = function( msg ) {\n\tif (TL.debug) {\n\t\tif (window.console) {\n\t\t\tconsole.log(msg);\n\t\t} else if ( typeof( jsTrace ) != 'undefined' ) {\n\t\t\tjsTrace.send( msg );\n\t\t} else {\n\t\t\t//alert(msg);\n\t\t}\n\t}\n}\n\n\n/* **********************************************\n Begin TL.Error.js\n********************************************** */\n\n/* Timeline Error class */\n\nfunction TL_Error(message_key, detail) {\n this.name = 'TL.Error';\n this.message = message_key || 'error';\n this.message_key = this.message;\n this.detail = detail || '';\n \n // Grab stack?\n var e = new Error();\n if(e.hasOwnProperty('stack')) {\n this.stack = e.stack;\n }\n}\n\nTL_Error.prototype = Object.create(Error.prototype);\nTL_Error.prototype.constructor = TL_Error;\n\nTL.Error = TL_Error;\n\n\n/* **********************************************\n Begin TL.Util.js\n********************************************** */\n\n/*\tTL.Util\n\tClass of utilities\n================================================== */\n\nTL.Util = {\n\tmergeData: function(data_main, data_to_merge) {\n\t\tvar x;\n\t\tfor (x in data_to_merge) {\n\t\t\tif (Object.prototype.hasOwnProperty.call(data_to_merge, x)) {\n\t\t\t\tdata_main[x] = data_to_merge[x];\n\t\t\t}\n\t\t}\n\t\treturn data_main;\n\t},\n\n\t// like TL.Util.mergeData but takes an arbitrarily long list of sources to merge.\n\textend: function (/*Object*/ dest) /*-> Object*/ {\t// merge src properties into dest\n\t\tvar sources = Array.prototype.slice.call(arguments, 1);\n\t\tfor (var j = 0, len = sources.length, src; j < len; j++) {\n\t\t\tsrc = sources[j] || {};\n\t\t\tTL.Util.mergeData(dest, src);\n\t\t}\n\t\treturn dest;\n\t},\n\n\tisEven: function(n) {\n\t return n == parseFloat(n)? !(n%2) : void 0;\n\t},\n\n\tisTrue: function(s) {\n\t\tif (s == null) return false;\n\t\treturn s == true || String(s).toLowerCase() == 'true' || Number(s) == 1;\n\t},\n\n\tfindArrayNumberByUniqueID: function(id, array, prop, defaultVal) {\n\t\tvar _n = defaultVal || 0;\n\n\t\tfor (var i = 0; i < array.length; i++) {\n\t\t\tif (array[i].data[prop] == id) {\n\t\t\t\t_n = i;\n\t\t\t}\n\t\t};\n\n\t\treturn _n;\n\t},\n\n\tconvertUnixTime: function(str) {\n\t\tvar _date, _months, _year, _month, _day, _time, _date_array = [],\n\t\t\t_date_str = {\n\t\t\t\tymd:\"\",\n\t\t\t\ttime:\"\",\n\t\t\t\ttime_array:[],\n\t\t\t\tdate_array:[],\n\t\t\t\tfull_array:[]\n\t\t\t};\n\n\t\t_date_str.ymd = str.split(\" \")[0];\n\t\t_date_str.time = str.split(\" \")[1];\n\t\t_date_str.date_array = _date_str.ymd.split(\"-\");\n\t\t_date_str.time_array = _date_str.time.split(\":\");\n\t\t_date_str.full_array = _date_str.date_array.concat(_date_str.time_array)\n\n\t\tfor(var i = 0; i < _date_str.full_array.length; i++) {\n\t\t\t_date_array.push( parseInt(_date_str.full_array[i]) )\n\t\t}\n\n\t\t_date = new Date(_date_array[0], _date_array[1], _date_array[2], _date_array[3], _date_array[4], _date_array[5]);\n\t\t_months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\n\t\t_year = _date.getFullYear();\n\t\t_month = _months[_date.getMonth()];\n\t\t_day = _date.getDate();\n\t\t_time = _month + ', ' + _day + ' ' + _year;\n\n\t\treturn _time;\n\t},\n\n\tsetData: function (obj, data) {\n\t\tobj.data = TL.Util.extend({}, obj.data, data);\n\t\tif (obj.data.unique_id === \"\") {\n\t\t\tobj.data.unique_id = TL.Util.unique_ID(6);\n\t\t}\n\t},\n\n\tstamp: (function () {\n\t\tvar lastId = 0, key = '_tl_id';\n\n\n\t\treturn function (/*Object*/ obj) {\n\t\t\tobj[key] = obj[key] || ++lastId;\n\t\t\treturn obj[key];\n\t\t};\n\t}()),\n\n\tisArray: (function () {\n\t // Use compiler's own isArray when available\n\t if (Array.isArray) {\n\t return Array.isArray;\n\t }\n\n\t // Retain references to variables for performance\n\t // optimization\n\t var objectToStringFn = Object.prototype.toString,\n\t arrayToStringResult = objectToStringFn.call([]);\n\n\t return function (subject) {\n\t return objectToStringFn.call(subject) === arrayToStringResult;\n\t };\n\t}()),\n\n getRandomNumber: function(range) {\n \t\treturn Math.floor(Math.random() * range);\n \t},\n\n\tunique_ID: function(size, prefix) {\n\n\t\tvar getRandomNumber = function(range) {\n\t\t\treturn Math.floor(Math.random() * range);\n\t\t};\n\n\t\tvar getRandomChar = function() {\n\t\t\tvar chars = \"abcdefghijklmnopqurstuvwxyz\";\n\t\t\treturn chars.substr( getRandomNumber(32), 1 );\n\t\t};\n\n\t\tvar randomID = function(size) {\n\t\t\tvar str = \"\";\n\t\t\tfor(var i = 0; i < size; i++) {\n\t\t\t\tstr += getRandomChar();\n\t\t\t}\n\t\t\treturn str;\n\t\t};\n\n\t\tif (prefix) {\n\t\t\treturn prefix + \"-\" + randomID(size);\n\t\t} else {\n\t\t\treturn \"tl-\" + randomID(size);\n\t\t}\n\t},\n\n\tensureUniqueKey: function(obj, candidate) {\n\t\tif (!candidate) { candidate = TL.Util.unique_ID(6); }\n\n\t\tif (!(candidate in obj)) { return candidate; }\n\n\t\tvar root = candidate.match(/^(.+)(-\\d+)?$/)[1];\n\t\tvar similar_ids = [];\n\t\t// get an alternative\n\t\tfor (key in obj) {\n\t\t\tif (key.match(/^(.+?)(-\\d+)?$/)[1] == root) {\n\t\t\t\tsimilar_ids.push(key);\n\t\t\t}\n\t\t}\n\t\tcandidate = root + \"-\" + (similar_ids.length + 1);\n\n\t\tfor (var counter = similar_ids.length; similar_ids.indexOf(candidate) != -1; counter++) {\n\t\t\tcandidate = root + '-' + counter;\n\t\t}\n\n\t\treturn candidate;\n\t},\n\n\n\thtmlify: function(str) {\n\t\t//if (str.match(/<\\s*p[^>]*>([^<]*)<\\s*\\/\\s*p\\s*>/)) {\n\t\tif (str.match(/

[\\s\\S]*?<\\/p>/)) {\n\n\t\t\treturn str;\n\t\t} else {\n\t\t\treturn \"

\" + str + \"

\";\n\t\t}\n\t},\n\n\t/*\t* Turns plain text links into real links\n\t================================================== */\n\tlinkify: function(text,targets,is_touch) {\n\n var make_link = function(url, link_text, prefix) {\n if (!prefix) {\n prefix = \"\";\n }\n var MAX_LINK_TEXT_LENGTH = 30;\n if (link_text && link_text.length > MAX_LINK_TEXT_LENGTH) {\n link_text = link_text.substring(0,MAX_LINK_TEXT_LENGTH) + \"\\u2026\"; // unicode ellipsis\n }\n return prefix + \"\" + link_text + \"\";\n }\n\t\t// http://, https://, ftp://\n\t\tvar urlPattern = /\\b(?:https?|ftp):\\/\\/([a-z0-9-+&@#\\/%?=~_|!:,.;]*[a-z0-9-+&@#\\/%=~_|])/gim;\n\n\t\t// www. sans http:// or https://\n\t\tvar pseudoUrlPattern = /(^|[^\\/>])(www\\.[\\S]+(\\b|$))/gim;\n\n\t\t// Email addresses\n\t\tvar emailAddressPattern = /([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+)/gim;\n\n\n\t\treturn text\n\t\t\t.replace(urlPattern, function(match, url_sans_protocol, offset, string) {\n // Javascript doesn't support negative lookbehind assertions, so\n // we need to handle risk of matching URLs in legit hrefs\n if (offset > 0) {\n var prechar = string[offset-1];\n if (prechar == '\"' || prechar == \"'\" || prechar == \"=\") {\n return match;\n }\n }\n return make_link(match, url_sans_protocol);\n })\n\t\t\t.replace(pseudoUrlPattern, function(match, beforePseudo, pseudoUrl, offset, string) {\n return make_link('http://' + pseudoUrl, pseudoUrl, beforePseudo);\n })\n\t\t\t.replace(emailAddressPattern, function(match, email, offset, string) {\n return make_link('mailto:' + email, email);\n });\n\t},\n\n\tunlinkify: function(text) {\n\t\tif(!text) return text;\n\t\ttext = text.replace(/]*>/i,\"\");\n\t\ttext = text.replace(/<\\/a>/i, \"\");\n\t\treturn text;\n\t},\n\n\tgetParamString: function (obj) {\n\t\tvar params = [];\n\t\tfor (var i in obj) {\n\t\t\tif (obj.hasOwnProperty(i)) {\n\t\t\t\tparams.push(i + '=' + obj[i]);\n\t\t\t}\n\t\t}\n\t\treturn '?' + params.join('&');\n\t},\n\n\tformatNum: function (num, digits) {\n\t\tvar pow = Math.pow(10, digits || 5);\n\t\treturn Math.round(num * pow) / pow;\n\t},\n\n\tfalseFn: function () {\n\t\treturn false;\n\t},\n\n\trequestAnimFrame: (function () {\n\t\tfunction timeoutDefer(callback) {\n\t\t\twindow.setTimeout(callback, 1000 / 60);\n\t\t}\n\n\t\tvar requestFn = window.requestAnimationFrame ||\n\t\t\twindow.webkitRequestAnimationFrame ||\n\t\t\twindow.mozRequestAnimationFrame ||\n\t\t\twindow.oRequestAnimationFrame ||\n\t\t\twindow.msRequestAnimationFrame ||\n\t\t\ttimeoutDefer;\n\n\t\treturn function (callback, context, immediate, contextEl) {\n\t\t\tcallback = context ? TL.Util.bind(callback, context) : callback;\n\t\t\tif (immediate && requestFn === timeoutDefer) {\n\t\t\t\tcallback();\n\t\t\t} else {\n\t\t\t\trequestFn(callback, contextEl);\n\t\t\t}\n\t\t};\n\t}()),\n\n\tbind: function (/*Function*/ fn, /*Object*/ obj) /*-> Object*/ {\n\t\treturn function () {\n\t\t\treturn fn.apply(obj, arguments);\n\t\t};\n\t},\n\n\ttemplate: function (str, data) {\n\t\treturn str.replace(/\\{ *([\\w_]+) *\\}/g, function (str, key) {\n\t\t\tvar value = data[key];\n\t\t\tif (!data.hasOwnProperty(key)) {\n\t\t\t throw new TL.Error(\"template_value_err\", str);\n\t\t\t}\n\t\t\treturn value;\n\t\t});\n\t},\n\n\thexToRgb: function(hex) {\n\t // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\n if (TL.Util.css_named_colors[hex.toLowerCase()]) {\n hex = TL.Util.css_named_colors[hex.toLowerCase()];\n }\n\t var shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n\t hex = hex.replace(shorthandRegex, function(m, r, g, b) {\n\t return r + r + g + g + b + b;\n\t });\n\n\t var result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n\t return result ? {\n\t r: parseInt(result[1], 16),\n\t g: parseInt(result[2], 16),\n\t b: parseInt(result[3], 16)\n\t } : null;\n\t},\n\t// given an object with r, g, and b keys, or a string of the form 'rgb(mm,nn,ll)', return a CSS hex string including the leading '#' character\n\trgbToHex: function(rgb) {\n\t\tvar r,g,b;\n\t\tif (typeof(rgb) == 'object') {\n\t\t\tr = rgb.r;\n\t\t\tg = rgb.g;\n\t\t\tb = rgb.b;\n\t\t} else if (typeof(rgb.match) == 'function'){\n\t\t\tvar parts = rgb.match(/^rgb\\((\\d+),(\\d+),(\\d+)\\)$/);\n\t\t\tif (parts) {\n\t\t\t\tr = parts[1];\n\t\t\t\tg = parts[2];\n\t\t\t\tb = parts[3];\n\t\t\t}\n\t\t}\n\t\tif (isNaN(r) || isNaN(b) || isNaN(g)) {\n\t\t\tthrow new TL.Error(\"invalid_rgb_err\");\n\t\t}\n\t\treturn \"#\" + TL.Util.intToHexString(r) + TL.Util.intToHexString(g) + TL.Util.intToHexString(b);\n\t},\n\tcolorObjToHex: function(o) {\n\t\tvar parts = [o.r, o.g, o.b];\n\t\treturn TL.Util.rgbToHex(\"rgb(\" + parts.join(',') + \")\")\n\t},\n css_named_colors: {\n \"aliceblue\": \"#f0f8ff\",\n \"antiquewhite\": \"#faebd7\",\n \"aqua\": \"#00ffff\",\n \"aquamarine\": \"#7fffd4\",\n \"azure\": \"#f0ffff\",\n \"beige\": \"#f5f5dc\",\n \"bisque\": \"#ffe4c4\",\n \"black\": \"#000000\",\n \"blanchedalmond\": \"#ffebcd\",\n \"blue\": \"#0000ff\",\n \"blueviolet\": \"#8a2be2\",\n \"brown\": \"#a52a2a\",\n \"burlywood\": \"#deb887\",\n \"cadetblue\": \"#5f9ea0\",\n \"chartreuse\": \"#7fff00\",\n \"chocolate\": \"#d2691e\",\n \"coral\": \"#ff7f50\",\n \"cornflowerblue\": \"#6495ed\",\n \"cornsilk\": \"#fff8dc\",\n \"crimson\": \"#dc143c\",\n \"cyan\": \"#00ffff\",\n \"darkblue\": \"#00008b\",\n \"darkcyan\": \"#008b8b\",\n \"darkgoldenrod\": \"#b8860b\",\n \"darkgray\": \"#a9a9a9\",\n \"darkgreen\": \"#006400\",\n \"darkkhaki\": \"#bdb76b\",\n \"darkmagenta\": \"#8b008b\",\n \"darkolivegreen\": \"#556b2f\",\n \"darkorange\": \"#ff8c00\",\n \"darkorchid\": \"#9932cc\",\n \"darkred\": \"#8b0000\",\n \"darksalmon\": \"#e9967a\",\n \"darkseagreen\": \"#8fbc8f\",\n \"darkslateblue\": \"#483d8b\",\n \"darkslategray\": \"#2f4f4f\",\n \"darkturquoise\": \"#00ced1\",\n \"darkviolet\": \"#9400d3\",\n \"deeppink\": \"#ff1493\",\n \"deepskyblue\": \"#00bfff\",\n \"dimgray\": \"#696969\",\n \"dodgerblue\": \"#1e90ff\",\n \"firebrick\": \"#b22222\",\n \"floralwhite\": \"#fffaf0\",\n \"forestgreen\": \"#228b22\",\n \"fuchsia\": \"#ff00ff\",\n \"gainsboro\": \"#dcdcdc\",\n \"ghostwhite\": \"#f8f8ff\",\n \"gold\": \"#ffd700\",\n \"goldenrod\": \"#daa520\",\n \"gray\": \"#808080\",\n \"green\": \"#008000\",\n \"greenyellow\": \"#adff2f\",\n \"honeydew\": \"#f0fff0\",\n \"hotpink\": \"#ff69b4\",\n \"indianred\": \"#cd5c5c\",\n \"indigo\": \"#4b0082\",\n \"ivory\": \"#fffff0\",\n \"khaki\": \"#f0e68c\",\n \"lavender\": \"#e6e6fa\",\n \"lavenderblush\": \"#fff0f5\",\n \"lawngreen\": \"#7cfc00\",\n \"lemonchiffon\": \"#fffacd\",\n \"lightblue\": \"#add8e6\",\n \"lightcoral\": \"#f08080\",\n \"lightcyan\": \"#e0ffff\",\n \"lightgoldenrodyellow\": \"#fafad2\",\n \"lightgray\": \"#d3d3d3\",\n \"lightgreen\": \"#90ee90\",\n \"lightpink\": \"#ffb6c1\",\n \"lightsalmon\": \"#ffa07a\",\n \"lightseagreen\": \"#20b2aa\",\n \"lightskyblue\": \"#87cefa\",\n \"lightslategray\": \"#778899\",\n \"lightsteelblue\": \"#b0c4de\",\n \"lightyellow\": \"#ffffe0\",\n \"lime\": \"#00ff00\",\n \"limegreen\": \"#32cd32\",\n \"linen\": \"#faf0e6\",\n \"magenta\": \"#ff00ff\",\n \"maroon\": \"#800000\",\n \"mediumaquamarine\": \"#66cdaa\",\n \"mediumblue\": \"#0000cd\",\n \"mediumorchid\": \"#ba55d3\",\n \"mediumpurple\": \"#9370db\",\n \"mediumseagreen\": \"#3cb371\",\n \"mediumslateblue\": \"#7b68ee\",\n \"mediumspringgreen\": \"#00fa9a\",\n \"mediumturquoise\": \"#48d1cc\",\n \"mediumvioletred\": \"#c71585\",\n \"midnightblue\": \"#191970\",\n \"mintcream\": \"#f5fffa\",\n \"mistyrose\": \"#ffe4e1\",\n \"moccasin\": \"#ffe4b5\",\n \"navajowhite\": \"#ffdead\",\n \"navy\": \"#000080\",\n \"oldlace\": \"#fdf5e6\",\n \"olive\": \"#808000\",\n \"olivedrab\": \"#6b8e23\",\n \"orange\": \"#ffa500\",\n \"orangered\": \"#ff4500\",\n \"orchid\": \"#da70d6\",\n \"palegoldenrod\": \"#eee8aa\",\n \"palegreen\": \"#98fb98\",\n \"paleturquoise\": \"#afeeee\",\n \"palevioletred\": \"#db7093\",\n \"papayawhip\": \"#ffefd5\",\n \"peachpuff\": \"#ffdab9\",\n \"peru\": \"#cd853f\",\n \"pink\": \"#ffc0cb\",\n \"plum\": \"#dda0dd\",\n \"powderblue\": \"#b0e0e6\",\n \"purple\": \"#800080\",\n \"rebeccapurple\": \"#663399\",\n \"red\": \"#ff0000\",\n \"rosybrown\": \"#bc8f8f\",\n \"royalblue\": \"#4169e1\",\n \"saddlebrown\": \"#8b4513\",\n \"salmon\": \"#fa8072\",\n \"sandybrown\": \"#f4a460\",\n \"seagreen\": \"#2e8b57\",\n \"seashell\": \"#fff5ee\",\n \"sienna\": \"#a0522d\",\n \"silver\": \"#c0c0c0\",\n \"skyblue\": \"#87ceeb\",\n \"slateblue\": \"#6a5acd\",\n \"slategray\": \"#708090\",\n \"snow\": \"#fffafa\",\n \"springgreen\": \"#00ff7f\",\n \"steelblue\": \"#4682b4\",\n \"tan\": \"#d2b48c\",\n \"teal\": \"#008080\",\n \"thistle\": \"#d8bfd8\",\n \"tomato\": \"#ff6347\",\n \"turquoise\": \"#40e0d0\",\n \"violet\": \"#ee82ee\",\n \"wheat\": \"#f5deb3\",\n \"white\": \"#ffffff\",\n \"whitesmoke\": \"#f5f5f5\",\n \"yellow\": \"#ffff00\",\n \"yellowgreen\": \"#9acd32\"\n },\n\tratio: {\n\t\tsquare: function(size) {\n\t\t\tvar s = {\n\t\t\t\tw: 0,\n\t\t\t\th: 0\n\t\t\t}\n\t\t\tif (size.w > size.h && size.h > 0) {\n\t\t\t\ts.h = size.h;\n\t\t\t\ts.w = size.h;\n\t\t\t} else {\n\t\t\t\ts.w = size.w;\n\t\t\t\ts.h = size.w;\n\t\t\t}\n\t\t\treturn s;\n\t\t},\n\n\t\tr16_9: function(size) {\n\t\t\tif (size.w !== null && size.w !== \"\") {\n\t\t\t\treturn Math.round((size.w / 16) * 9);\n\t\t\t} else if (size.h !== null && size.h !== \"\") {\n\t\t\t\treturn Math.round((size.h / 9) * 16);\n\t\t\t} else {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t},\n\t\tr4_3: function(size) {\n\t\t\tif (size.w !== null && size.w !== \"\") {\n\t\t\t\treturn Math.round((size.w / 4) * 3);\n\t\t\t} else if (size.h !== null && size.h !== \"\") {\n\t\t\t\treturn Math.round((size.h / 3) * 4);\n\t\t\t}\n\t\t}\n\t},\n\tgetObjectAttributeByIndex: function(obj, index) {\n\t\tif(typeof obj != 'undefined') {\n\t\t\tvar i = 0;\n\t\t\tfor (var attr in obj){\n\t\t\t\tif (index === i){\n\t\t\t\t\treturn obj[attr];\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn \"\";\n\t\t}\n\n\t},\n\tgetUrlVars: function(string) {\n\t\tvar str,\n\t\t\tvars = [],\n\t\t\thash,\n\t\t\thashes;\n\n\t\tstr = string.toString();\n\n\t\tif (str.match('&#038;')) {\n\t\t\tstr = str.replace(\"&#038;\", \"&\");\n\t\t} else if (str.match('&#38;')) {\n\t\t\tstr = str.replace(\"&#38;\", \"&\");\n\t\t} else if (str.match('&amp;')) {\n\t\t\tstr = str.replace(\"&amp;\", \"&\");\n\t\t}\n\n\t\thashes = str.slice(str.indexOf('?') + 1).split('&');\n\n\t\tfor(var i = 0; i < hashes.length; i++) {\n\t\t\thash = hashes[i].split('=');\n\t\t\tvars.push(hash[0]);\n\t\t\tvars[hash[0]] = hash[1];\n\t\t}\n\n\n\t\treturn vars;\n\t},\n /**\n * Remove any leading or trailing whitespace from the given string.\n * If `str` is undefined or does not have a `replace` function, return\n * an empty string.\n */\n\ttrim: function(str) {\n if (str && typeof(str.replace) == 'function') {\n return str.replace(/^\\s+|\\s+$/g, '');\n }\n return \"\";\n\t},\n\n\tslugify: function(str) {\n\t\t// borrowed from http://stackoverflow.com/a/5782563/102476\n\t\tstr = TL.Util.trim(str);\n\t\tstr = str.toLowerCase();\n\n\t\t// remove accents, swap ñ for n, etc\n\t\tvar from = \"ãàáäâẽèéëêìíïîõòóöôùúüûñç·/_,:;\";\n\t\tvar to = \"aaaaaeeeeeiiiiooooouuuunc------\";\n\t\tfor (var i=0, l=from.length ; i 1) {\n\t\t\t\tvar top = stack[stack.length - 1]\n\t\t\t\tvar bottom_idx = -1;\n\t\t\t\tfor (var j = 0; j < stack.length - 1; j++) {\n\t\t\t\t\tif (stack[j][1] < top[0]) {\n\t\t\t\t\t\tbottom_idx = j;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tif (bottom_idx >= 0) {\n\t\t\t\t\tstack = stack.slice(bottom_idx + 1);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (stack.length > max_depth) {\n\t\t\t\tmax_depth = stack.length;\n\t\t\t}\n\t\t};\n\t\treturn max_depth;\n\t},\n\n\tpad: function (val, len) {\n\t\tval = String(val);\n\t\tlen = len || 2;\n\t\twhile (val.length < len) val = \"0\" + val;\n\t\treturn val;\n\t},\n\tintToHexString: function(i) {\n\t\treturn TL.Util.pad(parseInt(i,10).toString(16));\n\t},\n findNextGreater: function(list, current, default_value) {\n // given a sorted list and a current value which *might* be in the list,\n // return the next greatest value if the current value is >= the last item in the list, return default,\n // or if default is undefined, return input value\n for (var i = 0; i < list.length; i++) {\n if (current < list[i]) {\n return list[i];\n }\n }\n\n return (default_value) ? default_value : current;\n },\n\n findNextLesser: function(list, current, default_value) {\n // given a sorted list and a current value which *might* be in the list,\n // return the next lesser value if the current value is <= the last item in the list, return default,\n // or if default is undefined, return input value\n for (var i = list.length - 1; i >= 0; i--) {\n if (current > list[i]) {\n return list[i];\n }\n }\n\n return (default_value) ? default_value : current;\n },\n\n\tisEmptyObject: function(o) {\n\t\tvar properties = []\n\t\tif (Object.keys) {\n\t\t\tproperties = Object.keys(o);\n\t\t} else { // all this to support IE 8\n\t\t for (var p in o) if (Object.prototype.hasOwnProperty.call(o,p)) properties.push(p);\n }\n\t\tfor (var i = 0; i < properties.length; i++) {\n\t\t\tvar k = properties[i];\n\t\t\tif (o[k] != null && typeof o[k] != \"string\") return false;\n\t\t\tif (TL.Util.trim(o[k]).length != 0) return false;\n\t\t}\n\t\treturn true;\n\t},\n\tparseYouTubeTime: function(s) {\n\t // given a YouTube start time string in a reasonable format, reduce it to a number of seconds as an integer.\n\t\tif (typeof(s) == 'string') {\n\t\t\tparts = s.match(/^\\s*(\\d+h)?(\\d+m)?(\\d+s)?\\s*/i);\n\t\t\tif (parts) {\n\t\t\t\tvar hours = parseInt(parts[1]) || 0;\n\t\t\t\tvar minutes = parseInt(parts[2]) || 0;\n\t\t\t\tvar seconds = parseInt(parts[3]) || 0;\n\t\t\t\treturn seconds + (minutes * 60) + (hours * 60 * 60);\n\t\t\t}\n\t\t} else if (typeof(s) == 'number') {\n\t\t\treturn s;\n\t\t}\n\t\treturn 0;\n\t},\n\t/**\n\t * Try to make seamless the process of interpreting a URL to a web page which embeds an image for sharing purposes\n\t * as a direct image link. Some services have predictable transformations we can use rather than explain to people\n\t * this subtlety.\n\t */\n\ttransformImageURL: function(url) {\n\t\treturn url.replace(/(.*)www.dropbox.com\\/(.*)/, '$1dl.dropboxusercontent.com/$2')\n\t},\n\n\tbase58: (function(alpha) {\n\t var alphabet = alpha || '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ',\n\t base = alphabet.length;\n\t return {\n\t encode: function(enc) {\n\t if(typeof enc!=='number' || enc !== parseInt(enc))\n\t throw '\"encode\" only accepts integers.';\n\t var encoded = '';\n\t while(enc) {\n\t var remainder = enc % base;\n\t enc = Math.floor(enc / base);\n\t encoded = alphabet[remainder].toString() + encoded;\n\t }\n\t return encoded;\n\t },\n\t decode: function(dec) {\n\t if(typeof dec!=='string')\n\t throw '\"decode\" only accepts strings.';\n\t var decoded = 0;\n\t while(dec) {\n\t var alphabetPosition = alphabet.indexOf(dec[0]);\n\t if (alphabetPosition < 0)\n\t throw '\"decode\" can\\'t find \"' + dec[0] + '\" in the alphabet: \"' + alphabet + '\"';\n\t var powerOf = dec.length - 1;\n\t decoded += alphabetPosition * (Math.pow(base, powerOf));\n\t dec = dec.substring(1);\n\t }\n\t return decoded;\n\t }\n\t };\n\t})()\n\n};\n\n\n/* **********************************************\n Begin TL.Data.js\n********************************************** */\n\n// Expects TL to be visible in scope\n\n;(function(TL){\n /* Zepto v1.1.2-15-g59d3fe5 - zepto event ajax form ie - zeptojs.com/license */\n\n var Zepto = (function() {\n var undefined, key, $, classList, emptyArray = [], slice = emptyArray.slice, filter = emptyArray.filter,\n document = window.document,\n elementDisplay = {}, classCache = {},\n cssNumber = { 'column-count': 1, 'columns': 1, 'font-weight': 1, 'line-height': 1,'opacity': 1, 'z-index': 1, 'zoom': 1 },\n fragmentRE = /^\\s*<(\\w+|!)[^>]*>/,\n singleTagRE = /^<(\\w+)\\s*\\/?>(?:<\\/\\1>|)$/,\n tagExpanderRE = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/ig,\n rootNodeRE = /^(?:body|html)$/i,\n capitalRE = /([A-Z])/g,\n\n // special attributes that should be get/set via method calls\n methodAttributes = ['val', 'css', 'html', 'text', 'data', 'width', 'height', 'offset'],\n\n adjacencyOperators = [ 'after', 'prepend', 'before', 'append' ],\n table = document.createElement('table'),\n tableRow = document.createElement('tr'),\n containers = {\n 'tr': document.createElement('tbody'),\n 'tbody': table, 'thead': table, 'tfoot': table,\n 'td': tableRow, 'th': tableRow,\n '*': document.createElement('div')\n },\n readyRE = /complete|loaded|interactive/,\n classSelectorRE = /^\\.([\\w-]+)$/,\n idSelectorRE = /^#([\\w-]*)$/,\n simpleSelectorRE = /^[\\w-]*$/,\n class2type = {},\n toString = class2type.toString,\n zepto = {},\n camelize, uniq,\n tempParent = document.createElement('div'),\n propMap = {\n 'tabindex': 'tabIndex',\n 'readonly': 'readOnly',\n 'for': 'htmlFor',\n 'class': 'className',\n 'maxlength': 'maxLength',\n 'cellspacing': 'cellSpacing',\n 'cellpadding': 'cellPadding',\n 'rowspan': 'rowSpan',\n 'colspan': 'colSpan',\n 'usemap': 'useMap',\n 'frameborder': 'frameBorder',\n 'contenteditable': 'contentEditable'\n },\n isArray = Array.isArray ||\n function(object){ return object instanceof Array }\n\n zepto.matches = function(element, selector) {\n if (!selector || !element || element.nodeType !== 1) return false\n var matchesSelector = element.webkitMatchesSelector || element.mozMatchesSelector ||\n element.oMatchesSelector || element.matchesSelector\n if (matchesSelector) return matchesSelector.call(element, selector)\n // fall back to performing a selector:\n var match, parent = element.parentNode, temp = !parent\n if (temp) (parent = tempParent).appendChild(element)\n match = ~zepto.qsa(parent, selector).indexOf(element)\n temp && tempParent.removeChild(element)\n return match\n }\n\n function type(obj) {\n return obj == null ? String(obj) :\n class2type[toString.call(obj)] || \"object\"\n }\n\n function isFunction(value) { return type(value) == \"function\" }\n function isWindow(obj) { return obj != null && obj == obj.window }\n function isDocument(obj) { return obj != null && obj.nodeType == obj.DOCUMENT_NODE }\n function isObject(obj) { return type(obj) == \"object\" }\n function isPlainObject(obj) {\n return isObject(obj) && !isWindow(obj) && Object.getPrototypeOf(obj) == Object.prototype\n }\n function likeArray(obj) { return typeof obj.length == 'number' }\n\n function compact(array) { return filter.call(array, function(item){ return item != null }) }\n function flatten(array) { return array.length > 0 ? $.fn.concat.apply([], array) : array }\n camelize = function(str){ return str.replace(/-+(.)?/g, function(match, chr){ return chr ? chr.toUpperCase() : '' }) }\n function dasherize(str) {\n return str.replace(/::/g, '/')\n .replace(/([A-Z]+)([A-Z][a-z])/g, '$1_$2')\n .replace(/([a-z\\d])([A-Z])/g, '$1_$2')\n .replace(/_/g, '-')\n .toLowerCase()\n }\n uniq = function(array){ return filter.call(array, function(item, idx){ return array.indexOf(item) == idx }) }\n\n function classRE(name) {\n return name in classCache ?\n classCache[name] : (classCache[name] = new RegExp('(^|\\\\s)' + name + '(\\\\s|$)'))\n }\n\n function maybeAddPx(name, value) {\n return (typeof value == \"number\" && !cssNumber[dasherize(name)]) ? value + \"px\" : value\n }\n\n function defaultDisplay(nodeName) {\n var element, display\n if (!elementDisplay[nodeName]) {\n element = document.createElement(nodeName)\n document.body.appendChild(element)\n display = getComputedStyle(element, '').getPropertyValue(\"display\")\n element.parentNode.removeChild(element)\n display == \"none\" && (display = \"block\")\n elementDisplay[nodeName] = display\n }\n return elementDisplay[nodeName]\n }\n\n function children(element) {\n return 'children' in element ?\n slice.call(element.children) :\n $.map(element.childNodes, function(node){ if (node.nodeType == 1) return node })\n }\n\n // `$.zepto.fragment` takes a html string and an optional tag name\n // to generate DOM nodes nodes from the given html string.\n // The generated DOM nodes are returned as an array.\n // This function can be overriden in plugins for example to make\n // it compatible with browsers that don't support the DOM fully.\n zepto.fragment = function(html, name, properties) {\n var dom, nodes, container\n\n // A special case optimization for a single tag\n if (singleTagRE.test(html)) dom = $(document.createElement(RegExp.$1))\n\n if (!dom) {\n if (html.replace) html = html.replace(tagExpanderRE, \"<$1>\")\n if (name === undefined) name = fragmentRE.test(html) && RegExp.$1\n if (!(name in containers)) name = '*'\n\n container = containers[name]\n container.innerHTML = '' + html\n dom = $.each(slice.call(container.childNodes), function(){\n container.removeChild(this)\n })\n }\n\n if (isPlainObject(properties)) {\n nodes = $(dom)\n $.each(properties, function(key, value) {\n if (methodAttributes.indexOf(key) > -1) nodes[key](value)\n else nodes.attr(key, value)\n })\n }\n\n return dom\n }\n\n // `$.zepto.Z` swaps out the prototype of the given `dom` array\n // of nodes with `$.fn` and thus supplying all the Zepto functions\n // to the array. Note that `__proto__` is not supported on Internet\n // Explorer. This method can be overriden in plugins.\n zepto.Z = function(dom, selector) {\n dom = dom || []\n dom.__proto__ = $.fn\n dom.selector = selector || ''\n return dom\n }\n\n // `$.zepto.isZ` should return `true` if the given object is a Zepto\n // collection. This method can be overriden in plugins.\n zepto.isZ = function(object) {\n return object instanceof zepto.Z\n }\n\n // `$.zepto.init` is Zepto's counterpart to jQuery's `$.fn.init` and\n // takes a CSS selector and an optional context (and handles various\n // special cases).\n // This method can be overriden in plugins.\n zepto.init = function(selector, context) {\n var dom\n // If nothing given, return an empty Zepto collection\n if (!selector) return zepto.Z()\n // Optimize for string selectors\n else if (typeof selector == 'string') {\n selector = selector.trim()\n // If it's a html fragment, create nodes from it\n // Note: In both Chrome 21 and Firefox 15, DOM error 12\n // is thrown if the fragment doesn't begin with <\n if (selector[0] == '<' && fragmentRE.test(selector))\n dom = zepto.fragment(selector, RegExp.$1, context), selector = null\n // If there's a context, create a collection on that context first, and select\n // nodes from there\n else if (context !== undefined) return $(context).find(selector)\n // If it's a CSS selector, use it to select nodes.\n else dom = zepto.qsa(document, selector)\n }\n // If a function is given, call it when the DOM is ready\n else if (isFunction(selector)) return $(document).ready(selector)\n // If a Zepto collection is given, just return it\n else if (zepto.isZ(selector)) return selector\n else {\n // normalize array if an array of nodes is given\n if (isArray(selector)) dom = compact(selector)\n // Wrap DOM nodes.\n else if (isObject(selector))\n dom = [selector], selector = null\n // If it's a html fragment, create nodes from it\n else if (fragmentRE.test(selector))\n dom = zepto.fragment(selector.trim(), RegExp.$1, context), selector = null\n // If there's a context, create a collection on that context first, and select\n // nodes from there\n else if (context !== undefined) return $(context).find(selector)\n // And last but no least, if it's a CSS selector, use it to select nodes.\n else dom = zepto.qsa(document, selector)\n }\n // create a new Zepto collection from the nodes found\n return zepto.Z(dom, selector)\n }\n\n // `$` will be the base `Zepto` object. When calling this\n // function just call `$.zepto.init, which makes the implementation\n // details of selecting nodes and creating Zepto collections\n // patchable in plugins.\n $ = function(selector, context){\n return zepto.init(selector, context)\n }\n\n function extend(target, source, deep) {\n for (key in source)\n if (deep && (isPlainObject(source[key]) || isArray(source[key]))) {\n if (isPlainObject(source[key]) && !isPlainObject(target[key]))\n target[key] = {}\n if (isArray(source[key]) && !isArray(target[key]))\n target[key] = []\n extend(target[key], source[key], deep)\n }\n else if (source[key] !== undefined) target[key] = source[key]\n }\n\n // Copy all but undefined properties from one or more\n // objects to the `target` object.\n $.extend = function(target){\n var deep, args = slice.call(arguments, 1)\n if (typeof target == 'boolean') {\n deep = target\n target = args.shift()\n }\n args.forEach(function(arg){ extend(target, arg, deep) })\n return target\n }\n\n // `$.zepto.qsa` is Zepto's CSS selector implementation which\n // uses `document.querySelectorAll` and optimizes for some special cases, like `#id`.\n // This method can be overriden in plugins.\n zepto.qsa = function(element, selector){\n var found,\n maybeID = selector[0] == '#',\n maybeClass = !maybeID && selector[0] == '.',\n nameOnly = maybeID || maybeClass ? selector.slice(1) : selector, // Ensure that a 1 char tag name still gets checked\n isSimple = simpleSelectorRE.test(nameOnly)\n return (isDocument(element) && isSimple && maybeID) ?\n ( (found = element.getElementById(nameOnly)) ? [found] : [] ) :\n (element.nodeType !== 1 && element.nodeType !== 9) ? [] :\n slice.call(\n isSimple && !maybeID ?\n maybeClass ? element.getElementsByClassName(nameOnly) : // If it's simple, it could be a class\n element.getElementsByTagName(selector) : // Or a tag\n element.querySelectorAll(selector) // Or it's not simple, and we need to query all\n )\n }\n\n function filtered(nodes, selector) {\n return selector == null ? $(nodes) : $(nodes).filter(selector)\n }\n\n $.contains = function(parent, node) {\n return parent !== node && parent.contains(node)\n }\n\n function funcArg(context, arg, idx, payload) {\n return isFunction(arg) ? arg.call(context, idx, payload) : arg\n }\n\n function setAttribute(node, name, value) {\n value == null ? node.removeAttribute(name) : node.setAttribute(name, value)\n }\n\n // access className property while respecting SVGAnimatedString\n function className(node, value){\n var klass = node.className,\n svg = klass && klass.baseVal !== undefined\n\n if (value === undefined) return svg ? klass.baseVal : klass\n svg ? (klass.baseVal = value) : (node.className = value)\n }\n\n // \"true\" => true\n // \"false\" => false\n // \"null\" => null\n // \"42\" => 42\n // \"42.5\" => 42.5\n // \"08\" => \"08\"\n // JSON => parse if valid\n // String => self\n function deserializeValue(value) {\n var num\n try {\n return value ?\n value == \"true\" ||\n ( value == \"false\" ? false :\n value == \"null\" ? null :\n !/^0/.test(value) && !isNaN(num = Number(value)) ? num :\n /^[\\[\\{]/.test(value) ? $.parseJSON(value) :\n value )\n : value\n } catch(e) {\n return value\n }\n }\n\n $.type = type\n $.isFunction = isFunction\n $.isWindow = isWindow\n $.isArray = isArray\n $.isPlainObject = isPlainObject\n\n $.isEmptyObject = function(obj) {\n var name\n for (name in obj) return false\n return true\n }\n\n $.inArray = function(elem, array, i){\n return emptyArray.indexOf.call(array, elem, i)\n }\n\n $.camelCase = camelize\n $.trim = function(str) {\n return str == null ? \"\" : String.prototype.trim.call(str)\n }\n\n // plugin compatibility\n $.uuid = 0\n $.support = { }\n $.expr = { }\n\n $.map = function(elements, callback){\n var value, values = [], i, key\n if (likeArray(elements))\n for (i = 0; i < elements.length; i++) {\n value = callback(elements[i], i)\n if (value != null) values.push(value)\n }\n else\n for (key in elements) {\n value = callback(elements[key], key)\n if (value != null) values.push(value)\n }\n return flatten(values)\n }\n\n $.each = function(elements, callback){\n var i, key\n if (likeArray(elements)) {\n for (i = 0; i < elements.length; i++)\n if (callback.call(elements[i], i, elements[i]) === false) return elements\n } else {\n for (key in elements)\n if (callback.call(elements[key], key, elements[key]) === false) return elements\n }\n\n return elements\n }\n\n $.grep = function(elements, callback){\n return filter.call(elements, callback)\n }\n\n if (window.JSON) $.parseJSON = JSON.parse\n\n // Populate the class2type map\n $.each(\"Boolean Number String Function Array Date RegExp Object Error\".split(\" \"), function(i, name) {\n class2type[ \"[object \" + name + \"]\" ] = name.toLowerCase()\n })\n\n // Define methods that will be available on all\n // Zepto collections\n $.fn = {\n // Because a collection acts like an array\n // copy over these useful array functions.\n forEach: emptyArray.forEach,\n reduce: emptyArray.reduce,\n push: emptyArray.push,\n sort: emptyArray.sort,\n indexOf: emptyArray.indexOf,\n concat: emptyArray.concat,\n\n // `map` and `slice` in the jQuery API work differently\n // from their array counterparts\n map: function(fn){\n return $($.map(this, function(el, i){ return fn.call(el, i, el) }))\n },\n slice: function(){\n return $(slice.apply(this, arguments))\n },\n\n ready: function(callback){\n // need to check if document.body exists for IE as that browser reports\n // document ready when it hasn't yet created the body element\n if (readyRE.test(document.readyState) && document.body) callback($)\n else document.addEventListener('DOMContentLoaded', function(){ callback($) }, false)\n return this\n },\n get: function(idx){\n return idx === undefined ? slice.call(this) : this[idx >= 0 ? idx : idx + this.length]\n },\n toArray: function(){ return this.get() },\n size: function(){\n return this.length\n },\n remove: function(){\n return this.each(function(){\n if (this.parentNode != null)\n this.parentNode.removeChild(this)\n })\n },\n each: function(callback){\n emptyArray.every.call(this, function(el, idx){\n return callback.call(el, idx, el) !== false\n })\n return this\n },\n filter: function(selector){\n if (isFunction(selector)) return this.not(this.not(selector))\n return $(filter.call(this, function(element){\n return zepto.matches(element, selector)\n }))\n },\n add: function(selector,context){\n return $(uniq(this.concat($(selector,context))))\n },\n is: function(selector){\n return this.length > 0 && zepto.matches(this[0], selector)\n },\n not: function(selector){\n var nodes=[]\n if (isFunction(selector) && selector.call !== undefined)\n this.each(function(idx){\n if (!selector.call(this,idx)) nodes.push(this)\n })\n else {\n var excludes = typeof selector == 'string' ? this.filter(selector) :\n (likeArray(selector) && isFunction(selector.item)) ? slice.call(selector) : $(selector)\n this.forEach(function(el){\n if (excludes.indexOf(el) < 0) nodes.push(el)\n })\n }\n return $(nodes)\n },\n has: function(selector){\n return this.filter(function(){\n return isObject(selector) ?\n $.contains(this, selector) :\n $(this).find(selector).size()\n })\n },\n eq: function(idx){\n return idx === -1 ? this.slice(idx) : this.slice(idx, + idx + 1)\n },\n first: function(){\n var el = this[0]\n return el && !isObject(el) ? el : $(el)\n },\n last: function(){\n var el = this[this.length - 1]\n return el && !isObject(el) ? el : $(el)\n },\n find: function(selector){\n var result, $this = this\n if (typeof selector == 'object')\n result = $(selector).filter(function(){\n var node = this\n return emptyArray.some.call($this, function(parent){\n return $.contains(parent, node)\n })\n })\n else if (this.length == 1) result = $(zepto.qsa(this[0], selector))\n else result = this.map(function(){ return zepto.qsa(this, selector) })\n return result\n },\n closest: function(selector, context){\n var node = this[0], collection = false\n if (typeof selector == 'object') collection = $(selector)\n while (node && !(collection ? collection.indexOf(node) >= 0 : zepto.matches(node, selector)))\n node = node !== context && !isDocument(node) && node.parentNode\n return $(node)\n },\n parents: function(selector){\n var ancestors = [], nodes = this\n while (nodes.length > 0)\n nodes = $.map(nodes, function(node){\n if ((node = node.parentNode) && !isDocument(node) && ancestors.indexOf(node) < 0) {\n ancestors.push(node)\n return node\n }\n })\n return filtered(ancestors, selector)\n },\n parent: function(selector){\n return filtered(uniq(this.pluck('parentNode')), selector)\n },\n children: function(selector){\n return filtered(this.map(function(){ return children(this) }), selector)\n },\n contents: function() {\n return this.map(function() { return slice.call(this.childNodes) })\n },\n siblings: function(selector){\n return filtered(this.map(function(i, el){\n return filter.call(children(el.parentNode), function(child){ return child!==el })\n }), selector)\n },\n empty: function(){\n return this.each(function(){ this.innerHTML = '' })\n },\n // `pluck` is borrowed from Prototype.js\n pluck: function(property){\n return $.map(this, function(el){ return el[property] })\n },\n show: function(){\n return this.each(function(){\n this.style.display == \"none\" && (this.style.display = '')\n if (getComputedStyle(this, '').getPropertyValue(\"display\") == \"none\")\n this.style.display = defaultDisplay(this.nodeName)\n })\n },\n replaceWith: function(newContent){\n return this.before(newContent).remove()\n },\n wrap: function(structure){\n var func = isFunction(structure)\n if (this[0] && !func)\n var dom = $(structure).get(0),\n clone = dom.parentNode || this.length > 1\n\n return this.each(function(index){\n $(this).wrapAll(\n func ? structure.call(this, index) :\n clone ? dom.cloneNode(true) : dom\n )\n })\n },\n wrapAll: function(structure){\n if (this[0]) {\n $(this[0]).before(structure = $(structure))\n var children\n // drill down to the inmost element\n while ((children = structure.children()).length) structure = children.first()\n $(structure).append(this)\n }\n return this\n },\n wrapInner: function(structure){\n var func = isFunction(structure)\n return this.each(function(index){\n var self = $(this), contents = self.contents(),\n dom = func ? structure.call(this, index) : structure\n contents.length ? contents.wrapAll(dom) : self.append(dom)\n })\n },\n unwrap: function(){\n this.parent().each(function(){\n $(this).replaceWith($(this).children())\n })\n return this\n },\n clone: function(){\n return this.map(function(){ return this.cloneNode(true) })\n },\n hide: function(){\n return this.css(\"display\", \"none\")\n },\n toggle: function(setting){\n return this.each(function(){\n var el = $(this)\n ;(setting === undefined ? el.css(\"display\") == \"none\" : setting) ? el.show() : el.hide()\n })\n },\n prev: function(selector){ return $(this.pluck('previousElementSibling')).filter(selector || '*') },\n next: function(selector){ return $(this.pluck('nextElementSibling')).filter(selector || '*') },\n html: function(html){\n return arguments.length === 0 ?\n (this.length > 0 ? this[0].innerHTML : null) :\n this.each(function(idx){\n var originHtml = this.innerHTML\n $(this).empty().append( funcArg(this, html, idx, originHtml) )\n })\n },\n text: function(text){\n return arguments.length === 0 ?\n (this.length > 0 ? this[0].textContent : null) :\n this.each(function(){ this.textContent = (text === undefined) ? '' : ''+text })\n },\n attr: function(name, value){\n var result\n return (typeof name == 'string' && value === undefined) ?\n (this.length == 0 || this[0].nodeType !== 1 ? undefined :\n (name == 'value' && this[0].nodeName == 'INPUT') ? this.val() :\n (!(result = this[0].getAttribute(name)) && name in this[0]) ? this[0][name] : result\n ) :\n this.each(function(idx){\n if (this.nodeType !== 1) return\n if (isObject(name)) for (key in name) setAttribute(this, key, name[key])\n else setAttribute(this, name, funcArg(this, value, idx, this.getAttribute(name)))\n })\n },\n removeAttr: function(name){\n return this.each(function(){ this.nodeType === 1 && setAttribute(this, name) })\n },\n prop: function(name, value){\n name = propMap[name] || name\n return (value === undefined) ?\n (this[0] && this[0][name]) :\n this.each(function(idx){\n this[name] = funcArg(this, value, idx, this[name])\n })\n },\n data: function(name, value){\n var data = this.attr('data-' + name.replace(capitalRE, '-$1').toLowerCase(), value)\n return data !== null ? deserializeValue(data) : undefined\n },\n val: function(value){\n return arguments.length === 0 ?\n (this[0] && (this[0].multiple ?\n $(this[0]).find('option').filter(function(){ return this.selected }).pluck('value') :\n this[0].value)\n ) :\n this.each(function(idx){\n this.value = funcArg(this, value, idx, this.value)\n })\n },\n offset: function(coordinates){\n if (coordinates) return this.each(function(index){\n var $this = $(this),\n coords = funcArg(this, coordinates, index, $this.offset()),\n parentOffset = $this.offsetParent().offset(),\n props = {\n top: coords.top - parentOffset.top,\n left: coords.left - parentOffset.left\n }\n\n if ($this.css('position') == 'static') props['position'] = 'relative'\n $this.css(props)\n })\n if (this.length==0) return null\n var obj = this[0].getBoundingClientRect()\n return {\n left: obj.left + window.pageXOffset,\n top: obj.top + window.pageYOffset,\n width: Math.round(obj.width),\n height: Math.round(obj.height)\n }\n },\n css: function(property, value){\n if (arguments.length < 2) {\n var element = this[0], computedStyle = getComputedStyle(element, '')\n if(!element) return\n if (typeof property == 'string')\n return element.style[camelize(property)] || computedStyle.getPropertyValue(property)\n else if (isArray(property)) {\n var props = {}\n $.each(isArray(property) ? property: [property], function(_, prop){\n props[prop] = (element.style[camelize(prop)] || computedStyle.getPropertyValue(prop))\n })\n return props\n }\n }\n\n var css = ''\n if (type(property) == 'string') {\n if (!value && value !== 0)\n this.each(function(){ this.style.removeProperty(dasherize(property)) })\n else\n css = dasherize(property) + \":\" + maybeAddPx(property, value)\n } else {\n for (key in property)\n if (!property[key] && property[key] !== 0)\n this.each(function(){ this.style.removeProperty(dasherize(key)) })\n else\n css += dasherize(key) + ':' + maybeAddPx(key, property[key]) + ';'\n }\n\n return this.each(function(){ this.style.cssText += ';' + css })\n },\n index: function(element){\n return element ? this.indexOf($(element)[0]) : this.parent().children().indexOf(this[0])\n },\n hasClass: function(name){\n if (!name) return false\n return emptyArray.some.call(this, function(el){\n return this.test(className(el))\n }, classRE(name))\n },\n addClass: function(name){\n if (!name) return this\n return this.each(function(idx){\n classList = []\n var cls = className(this), newName = funcArg(this, name, idx, cls)\n newName.split(/\\s+/g).forEach(function(klass){\n if (!$(this).hasClass(klass)) classList.push(klass)\n }, this)\n classList.length && className(this, cls + (cls ? \" \" : \"\") + classList.join(\" \"))\n })\n },\n removeClass: function(name){\n return this.each(function(idx){\n if (name === undefined) return className(this, '')\n classList = className(this)\n funcArg(this, name, idx, classList).split(/\\s+/g).forEach(function(klass){\n classList = classList.replace(classRE(klass), \" \")\n })\n className(this, classList.trim())\n })\n },\n toggleClass: function(name, when){\n if (!name) return this\n return this.each(function(idx){\n var $this = $(this), names = funcArg(this, name, idx, className(this))\n names.split(/\\s+/g).forEach(function(klass){\n (when === undefined ? !$this.hasClass(klass) : when) ?\n $this.addClass(klass) : $this.removeClass(klass)\n })\n })\n },\n scrollTop: function(value){\n if (!this.length) return\n var hasScrollTop = 'scrollTop' in this[0]\n if (value === undefined) return hasScrollTop ? this[0].scrollTop : this[0].pageYOffset\n return this.each(hasScrollTop ?\n function(){ this.scrollTop = value } :\n function(){ this.scrollTo(this.scrollX, value) })\n },\n scrollLeft: function(value){\n if (!this.length) return\n var hasScrollLeft = 'scrollLeft' in this[0]\n if (value === undefined) return hasScrollLeft ? this[0].scrollLeft : this[0].pageXOffset\n return this.each(hasScrollLeft ?\n function(){ this.scrollLeft = value } :\n function(){ this.scrollTo(value, this.scrollY) })\n },\n position: function() {\n if (!this.length) return\n\n var elem = this[0],\n // Get *real* offsetParent\n offsetParent = this.offsetParent(),\n // Get correct offsets\n offset = this.offset(),\n parentOffset = rootNodeRE.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset()\n\n // Subtract element margins\n // note: when an element has margin: auto the offsetLeft and marginLeft\n // are the same in Safari causing offset.left to incorrectly be 0\n offset.top -= parseFloat( $(elem).css('margin-top') ) || 0\n offset.left -= parseFloat( $(elem).css('margin-left') ) || 0\n\n // Add offsetParent borders\n parentOffset.top += parseFloat( $(offsetParent[0]).css('border-top-width') ) || 0\n parentOffset.left += parseFloat( $(offsetParent[0]).css('border-left-width') ) || 0\n\n // Subtract the two offsets\n return {\n top: offset.top - parentOffset.top,\n left: offset.left - parentOffset.left\n }\n },\n offsetParent: function() {\n return this.map(function(){\n var parent = this.offsetParent || document.body\n while (parent && !rootNodeRE.test(parent.nodeName) && $(parent).css(\"position\") == \"static\")\n parent = parent.offsetParent\n return parent\n })\n }\n }\n\n // for now\n $.fn.detach = $.fn.remove\n\n // Generate the `width` and `height` functions\n ;['width', 'height'].forEach(function(dimension){\n var dimensionProperty =\n dimension.replace(/./, function(m){ return m[0].toUpperCase() })\n\n $.fn[dimension] = function(value){\n var offset, el = this[0]\n if (value === undefined) return isWindow(el) ? el['inner' + dimensionProperty] :\n isDocument(el) ? el.documentElement['scroll' + dimensionProperty] :\n (offset = this.offset()) && offset[dimension]\n else return this.each(function(idx){\n el = $(this)\n el.css(dimension, funcArg(this, value, idx, el[dimension]()))\n })\n }\n })\n\n function traverseNode(node, fun) {\n fun(node)\n for (var key in node.childNodes) traverseNode(node.childNodes[key], fun)\n }\n\n // Generate the `after`, `prepend`, `before`, `append`,\n // `insertAfter`, `insertBefore`, `appendTo`, and `prependTo` methods.\n adjacencyOperators.forEach(function(operator, operatorIndex) {\n var inside = operatorIndex % 2 //=> prepend, append\n\n $.fn[operator] = function(){\n // arguments can be nodes, arrays of nodes, Zepto objects and HTML strings\n var argType, nodes = $.map(arguments, function(arg) {\n argType = type(arg)\n return argType == \"object\" || argType == \"array\" || arg == null ?\n arg : zepto.fragment(arg)\n }),\n parent, copyByClone = this.length > 1\n if (nodes.length < 1) return this\n\n return this.each(function(_, target){\n parent = inside ? target : target.parentNode\n\n // convert all methods to a \"before\" operation\n target = operatorIndex == 0 ? target.nextSibling :\n operatorIndex == 1 ? target.firstChild :\n operatorIndex == 2 ? target :\n null\n\n nodes.forEach(function(node){\n if (copyByClone) node = node.cloneNode(true)\n else if (!parent) return $(node).remove()\n\n traverseNode(parent.insertBefore(node, target), function(el){\n if (el.nodeName != null && el.nodeName.toUpperCase() === 'SCRIPT' &&\n (!el.type || el.type === 'text/javascript') && !el.src)\n window['eval'].call(window, el.innerHTML)\n })\n })\n })\n }\n\n // after => insertAfter\n // prepend => prependTo\n // before => insertBefore\n // append => appendTo\n $.fn[inside ? operator+'To' : 'insert'+(operatorIndex ? 'Before' : 'After')] = function(html){\n $(html)[operator](this)\n return this\n }\n })\n\n zepto.Z.prototype = $.fn\n\n // Export internal API functions in the `$.zepto` namespace\n zepto.uniq = uniq\n zepto.deserializeValue = deserializeValue\n $.zepto = zepto\n\n return $\n })()\n\n window.Zepto = Zepto\n window.$ === undefined && (window.$ = Zepto)\n\n ;(function($){\n var $$ = $.zepto.qsa, _zid = 1, undefined,\n slice = Array.prototype.slice,\n isFunction = $.isFunction,\n isString = function(obj){ return typeof obj == 'string' },\n handlers = {},\n specialEvents={},\n focusinSupported = 'onfocusin' in window,\n focus = { focus: 'focusin', blur: 'focusout' },\n hover = { mouseenter: 'mouseover', mouseleave: 'mouseout' }\n\n specialEvents.click = specialEvents.mousedown = specialEvents.mouseup = specialEvents.mousemove = 'MouseEvents'\n\n function zid(element) {\n return element._zid || (element._zid = _zid++)\n }\n function findHandlers(element, event, fn, selector) {\n event = parse(event)\n if (event.ns) var matcher = matcherFor(event.ns)\n return (handlers[zid(element)] || []).filter(function(handler) {\n return handler\n && (!event.e || handler.e == event.e)\n && (!event.ns || matcher.test(handler.ns))\n && (!fn || zid(handler.fn) === zid(fn))\n && (!selector || handler.sel == selector)\n })\n }\n function parse(event) {\n var parts = ('' + event).split('.')\n return {e: parts[0], ns: parts.slice(1).sort().join(' ')}\n }\n function matcherFor(ns) {\n return new RegExp('(?:^| )' + ns.replace(' ', ' .* ?') + '(?: |$)')\n }\n\n function eventCapture(handler, captureSetting) {\n return handler.del &&\n (!focusinSupported && (handler.e in focus)) ||\n !!captureSetting\n }\n\n function realEvent(type) {\n return hover[type] || (focusinSupported && focus[type]) || type\n }\n\n function add(element, events, fn, data, selector, delegator, capture){\n var id = zid(element), set = (handlers[id] || (handlers[id] = []))\n events.split(/\\s/).forEach(function(event){\n if (event == 'ready') return $(document).ready(fn)\n var handler = parse(event)\n handler.fn = fn\n handler.sel = selector\n // emulate mouseenter, mouseleave\n if (handler.e in hover) fn = function(e){\n var related = e.relatedTarget\n if (!related || (related !== this && !$.contains(this, related)))\n return handler.fn.apply(this, arguments)\n }\n handler.del = delegator\n var callback = delegator || fn\n handler.proxy = function(e){\n e = compatible(e)\n if (e.isImmediatePropagationStopped()) return\n e.data = data\n var result = callback.apply(element, e._args == undefined ? [e] : [e].concat(e._args))\n if (result === false) e.preventDefault(), e.stopPropagation()\n return result\n }\n handler.i = set.length\n set.push(handler)\n if ('addEventListener' in element)\n element.addEventListener(realEvent(handler.e), handler.proxy, eventCapture(handler, capture))\n })\n }\n function remove(element, events, fn, selector, capture){\n var id = zid(element)\n ;(events || '').split(/\\s/).forEach(function(event){\n findHandlers(element, event, fn, selector).forEach(function(handler){\n delete handlers[id][handler.i]\n if ('removeEventListener' in element)\n element.removeEventListener(realEvent(handler.e), handler.proxy, eventCapture(handler, capture))\n })\n })\n }\n\n $.event = { add: add, remove: remove }\n\n $.proxy = function(fn, context) {\n if (isFunction(fn)) {\n var proxyFn = function(){ return fn.apply(context, arguments) }\n proxyFn._zid = zid(fn)\n return proxyFn\n } else if (isString(context)) {\n return $.proxy(fn[context], fn)\n } else {\n throw new TypeError(\"expected function\")\n }\n }\n\n $.fn.bind = function(event, data, callback){\n return this.on(event, data, callback)\n }\n $.fn.unbind = function(event, callback){\n return this.off(event, callback)\n }\n $.fn.one = function(event, selector, data, callback){\n return this.on(event, selector, data, callback, 1)\n }\n\n var returnTrue = function(){return true},\n returnFalse = function(){return false},\n ignoreProperties = /^([A-Z]|returnValue$|layer[XY]$)/,\n eventMethods = {\n preventDefault: 'isDefaultPrevented',\n stopImmediatePropagation: 'isImmediatePropagationStopped',\n stopPropagation: 'isPropagationStopped'\n }\n\n function compatible(event, source) {\n if (source || !event.isDefaultPrevented) {\n source || (source = event)\n\n $.each(eventMethods, function(name, predicate) {\n var sourceMethod = source[name]\n event[name] = function(){\n this[predicate] = returnTrue\n return sourceMethod && sourceMethod.apply(source, arguments)\n }\n event[predicate] = returnFalse\n })\n\n if (source.defaultPrevented !== undefined ? source.defaultPrevented :\n 'returnValue' in source ? source.returnValue === false :\n source.getPreventDefault && source.getPreventDefault())\n event.isDefaultPrevented = returnTrue\n }\n return event\n }\n\n function createProxy(event) {\n var key, proxy = { originalEvent: event }\n for (key in event)\n if (!ignoreProperties.test(key) && event[key] !== undefined) proxy[key] = event[key]\n\n return compatible(proxy, event)\n }\n\n $.fn.delegate = function(selector, event, callback){\n return this.on(event, selector, callback)\n }\n $.fn.undelegate = function(selector, event, callback){\n return this.off(event, selector, callback)\n }\n\n $.fn.live = function(event, callback){\n $(document.body).delegate(this.selector, event, callback)\n return this\n }\n $.fn.die = function(event, callback){\n $(document.body).undelegate(this.selector, event, callback)\n return this\n }\n\n $.fn.on = function(event, selector, data, callback, one){\n var autoRemove, delegator, $this = this\n if (event && !isString(event)) {\n $.each(event, function(type, fn){\n $this.on(type, selector, data, fn, one)\n })\n return $this\n }\n\n if (!isString(selector) && !isFunction(callback) && callback !== false)\n callback = data, data = selector, selector = undefined\n if (isFunction(data) || data === false)\n callback = data, data = undefined\n\n if (callback === false) callback = returnFalse\n\n return $this.each(function(_, element){\n if (one) autoRemove = function(e){\n remove(element, e.type, callback)\n return callback.apply(this, arguments)\n }\n\n if (selector) delegator = function(e){\n var evt, match = $(e.target).closest(selector, element).get(0)\n if (match && match !== element) {\n evt = $.extend(createProxy(e), {currentTarget: match, liveFired: element})\n return (autoRemove || callback).apply(match, [evt].concat(slice.call(arguments, 1)))\n }\n }\n\n add(element, event, callback, data, selector, delegator || autoRemove)\n })\n }\n $.fn.off = function(event, selector, callback){\n var $this = this\n if (event && !isString(event)) {\n $.each(event, function(type, fn){\n $this.off(type, selector, fn)\n })\n return $this\n }\n\n if (!isString(selector) && !isFunction(callback) && callback !== false)\n callback = selector, selector = undefined\n\n if (callback === false) callback = returnFalse\n\n return $this.each(function(){\n remove(this, event, callback, selector)\n })\n }\n\n $.fn.trigger = function(event, args){\n event = (isString(event) || $.isPlainObject(event)) ? $.Event(event) : compatible(event)\n event._args = args\n return this.each(function(){\n // items in the collection might not be DOM elements\n if('dispatchEvent' in this) this.dispatchEvent(event)\n else $(this).triggerHandler(event, args)\n })\n }\n\n // triggers event handlers on current element just as if an event occurred,\n // doesn't trigger an actual event, doesn't bubble\n $.fn.triggerHandler = function(event, args){\n var e, result\n this.each(function(i, element){\n e = createProxy(isString(event) ? $.Event(event) : event)\n e._args = args\n e.target = element\n $.each(findHandlers(element, event.type || event), function(i, handler){\n result = handler.proxy(e)\n if (e.isImmediatePropagationStopped()) return false\n })\n })\n return result\n }\n\n // shortcut methods for `.bind(event, fn)` for each event type\n ;('focusin focusout load resize scroll unload click dblclick '+\n 'mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave '+\n 'change select keydown keypress keyup error').split(' ').forEach(function(event) {\n $.fn[event] = function(callback) {\n return callback ?\n this.bind(event, callback) :\n this.trigger(event)\n }\n })\n\n ;['focus', 'blur'].forEach(function(name) {\n $.fn[name] = function(callback) {\n if (callback) this.bind(name, callback)\n else this.each(function(){\n try { this[name]() }\n catch(e) {}\n })\n return this\n }\n })\n\n $.Event = function(type, props) {\n if (!isString(type)) props = type, type = props.type\n var event = document.createEvent(specialEvents[type] || 'Events'), bubbles = true\n if (props) for (var name in props) (name == 'bubbles') ? (bubbles = !!props[name]) : (event[name] = props[name])\n event.initEvent(type, bubbles, true)\n return compatible(event)\n }\n\n })(Zepto)\n\n ;(function($){\n var jsonpID = 0,\n document = window.document,\n key,\n name,\n rscript = /)<[^<]*)*<\\/script>/gi,\n scriptTypeRE = /^(?:text|application)\\/javascript/i,\n xmlTypeRE = /^(?:text|application)\\/xml/i,\n jsonType = 'application/json',\n htmlType = 'text/html',\n blankRE = /^\\s*$/\n\n // trigger a custom event and return false if it was cancelled\n function triggerAndReturn(context, eventName, data) {\n var event = $.Event(eventName)\n $(context).trigger(event, data)\n return !event.isDefaultPrevented()\n }\n\n // trigger an Ajax \"global\" event\n function triggerGlobal(settings, context, eventName, data) {\n if (settings.global) return triggerAndReturn(context || document, eventName, data)\n }\n\n // Number of active Ajax requests\n $.active = 0\n\n function ajaxStart(settings) {\n if (settings.global && $.active++ === 0) triggerGlobal(settings, null, 'ajaxStart')\n }\n function ajaxStop(settings) {\n if (settings.global && !(--$.active)) triggerGlobal(settings, null, 'ajaxStop')\n }\n\n // triggers an extra global event \"ajaxBeforeSend\" that's like \"ajaxSend\" but cancelable\n function ajaxBeforeSend(xhr, settings) {\n var context = settings.context\n if (settings.beforeSend.call(context, xhr, settings) === false ||\n triggerGlobal(settings, context, 'ajaxBeforeSend', [xhr, settings]) === false)\n return false\n\n triggerGlobal(settings, context, 'ajaxSend', [xhr, settings])\n }\n function ajaxSuccess(data, xhr, settings, deferred) {\n var context = settings.context, status = 'success'\n settings.success.call(context, data, status, xhr)\n if (deferred) deferred.resolveWith(context, [data, status, xhr])\n triggerGlobal(settings, context, 'ajaxSuccess', [xhr, settings, data])\n ajaxComplete(status, xhr, settings)\n }\n // type: \"timeout\", \"error\", \"abort\", \"parsererror\"\n function ajaxError(error, type, xhr, settings, deferred) {\n var context = settings.context\n settings.error.call(context, xhr, type, error)\n if (deferred) deferred.rejectWith(context, [xhr, type, error])\n triggerGlobal(settings, context, 'ajaxError', [xhr, settings, error || type])\n ajaxComplete(type, xhr, settings)\n }\n // status: \"success\", \"notmodified\", \"error\", \"timeout\", \"abort\", \"parsererror\"\n function ajaxComplete(status, xhr, settings) {\n var context = settings.context\n settings.complete.call(context, xhr, status)\n triggerGlobal(settings, context, 'ajaxComplete', [xhr, settings])\n ajaxStop(settings)\n }\n\n // Empty function, used as default callback\n function empty() {}\n\n $.ajaxJSONP = function(options, deferred){\n if (!('type' in options)) return $.ajax(options)\n\n var _callbackName = options.jsonpCallback,\n callbackName = ($.isFunction(_callbackName) ?\n _callbackName() : _callbackName) || ('jsonp' + (++jsonpID)),\n script = document.createElement('script'),\n originalCallback = window[callbackName],\n responseData,\n abort = function(errorType) {\n $(script).triggerHandler('error', errorType || 'abort')\n },\n xhr = { abort: abort }, abortTimeout\n\n if (deferred) deferred.promise(xhr)\n\n $(script).on('load error', function(e, errorType){\n clearTimeout(abortTimeout)\n $(script).off().remove()\n\n if (e.type == 'error' || !responseData) {\n ajaxError(null, errorType || 'error', xhr, options, deferred)\n } else {\n ajaxSuccess(responseData[0], xhr, options, deferred)\n }\n\n window[callbackName] = originalCallback\n if (responseData && $.isFunction(originalCallback))\n originalCallback(responseData[0])\n\n originalCallback = responseData = undefined\n })\n\n if (ajaxBeforeSend(xhr, options) === false) {\n abort('abort')\n return xhr\n }\n\n window[callbackName] = function(){\n responseData = arguments\n }\n\n script.src = options.url.replace(/\\?(.+)=\\?/, '?$1=' + callbackName)\n document.head.appendChild(script)\n\n if (options.timeout > 0) abortTimeout = setTimeout(function(){\n abort('timeout')\n }, options.timeout)\n\n return xhr\n }\n\n $.ajaxSettings = {\n // Default type of request\n type: 'GET',\n // Callback that is executed before request\n beforeSend: empty,\n // Callback that is executed if the request succeeds\n success: empty,\n // Callback that is executed the the server drops error\n error: empty,\n // Callback that is executed on request complete (both: error and success)\n complete: empty,\n // The context for the callbacks\n context: null,\n // Whether to trigger \"global\" Ajax events\n global: true,\n // Transport\n xhr: function () {\n return new window.XMLHttpRequest()\n },\n // MIME types mapping\n // IIS returns Javascript as \"application/x-javascript\"\n accepts: {\n script: 'text/javascript, application/javascript, application/x-javascript',\n json: jsonType,\n xml: 'application/xml, text/xml',\n html: htmlType,\n text: 'text/plain'\n },\n // Whether the request is to another domain\n crossDomain: false,\n // Default timeout\n timeout: 0,\n // Whether data should be serialized to string\n processData: true,\n // Whether the browser should be allowed to cache GET responses\n cache: true\n }\n\n function mimeToDataType(mime) {\n if (mime) mime = mime.split(';', 2)[0]\n return mime && ( mime == htmlType ? 'html' :\n mime == jsonType ? 'json' :\n scriptTypeRE.test(mime) ? 'script' :\n xmlTypeRE.test(mime) && 'xml' ) || 'text'\n }\n\n function appendQuery(url, query) {\n if (query == '') return url\n return (url + '&' + query).replace(/[&?]{1,2}/, '?')\n }\n\n // serialize payload and append it to the URL for GET requests\n function serializeData(options) {\n if (options.processData && options.data && $.type(options.data) != \"string\")\n options.data = $.param(options.data, options.traditional)\n if (options.data && (!options.type || options.type.toUpperCase() == 'GET'))\n options.url = appendQuery(options.url, options.data), options.data = undefined\n }\n\n $.ajax = function(options){\n var settings = $.extend({}, options || {}),\n deferred = $.Deferred && $.Deferred()\n for (key in $.ajaxSettings) if (settings[key] === undefined) settings[key] = $.ajaxSettings[key]\n\n ajaxStart(settings)\n\n if (!settings.crossDomain) settings.crossDomain = /^([\\w-]+:)?\\/\\/([^\\/]+)/.test(settings.url) &&\n RegExp.$2 != window.location.host\n\n if (!settings.url) settings.url = window.location.toString()\n serializeData(settings)\n if (settings.cache === false) settings.url = appendQuery(settings.url, '_=' + Date.now())\n\n var dataType = settings.dataType, hasPlaceholder = /\\?.+=\\?/.test(settings.url)\n if (dataType == 'jsonp' || hasPlaceholder) {\n if (!hasPlaceholder)\n settings.url = appendQuery(settings.url,\n settings.jsonp ? (settings.jsonp + '=?') : settings.jsonp === false ? '' : 'callback=?')\n return $.ajaxJSONP(settings, deferred)\n }\n\n var mime = settings.accepts[dataType],\n headers = { },\n setHeader = function(name, value) { headers[name.toLowerCase()] = [name, value] },\n protocol = /^([\\w-]+:)\\/\\//.test(settings.url) ? RegExp.$1 : window.location.protocol,\n xhr = settings.xhr(),\n nativeSetHeader = xhr.setRequestHeader,\n abortTimeout\n\n if (deferred) deferred.promise(xhr)\n\n if (!settings.crossDomain) setHeader('X-Requested-With', 'XMLHttpRequest')\n setHeader('Accept', mime || '*/*')\n if (mime = settings.mimeType || mime) {\n if (mime.indexOf(',') > -1) mime = mime.split(',', 2)[0]\n xhr.overrideMimeType && xhr.overrideMimeType(mime)\n }\n if (settings.contentType || (settings.contentType !== false && settings.data && settings.type.toUpperCase() != 'GET'))\n setHeader('Content-Type', settings.contentType || 'application/x-www-form-urlencoded')\n\n if (settings.headers) for (name in settings.headers) setHeader(name, settings.headers[name])\n xhr.setRequestHeader = setHeader\n\n xhr.onreadystatechange = function(){\n if (xhr.readyState == 4) {\n xhr.onreadystatechange = empty\n clearTimeout(abortTimeout)\n var result, error = false\n if ((xhr.status >= 200 && xhr.status < 300) || xhr.status == 304 || (xhr.status == 0 && protocol == 'file:')) {\n dataType = dataType || mimeToDataType(settings.mimeType || xhr.getResponseHeader('content-type'))\n result = xhr.responseText\n\n try {\n // http://perfectionkills.com/global-eval-what-are-the-options/\n if (dataType == 'script') (1,eval)(result)\n else if (dataType == 'xml') result = xhr.responseXML\n else if (dataType == 'json') result = blankRE.test(result) ? null : $.parseJSON(result)\n } catch (e) { error = e }\n\n if (error) ajaxError(error, 'parsererror', xhr, settings, deferred)\n else ajaxSuccess(result, xhr, settings, deferred)\n } else {\n ajaxError(xhr.statusText || null, xhr.status ? 'error' : 'abort', xhr, settings, deferred)\n }\n }\n }\n\n if (ajaxBeforeSend(xhr, settings) === false) {\n xhr.abort()\n ajaxError(null, 'abort', xhr, settings, deferred)\n return xhr\n }\n\n if (settings.xhrFields) for (name in settings.xhrFields) xhr[name] = settings.xhrFields[name]\n\n var async = 'async' in settings ? settings.async : true\n xhr.open(settings.type, settings.url, async, settings.username, settings.password)\n\n for (name in headers) nativeSetHeader.apply(xhr, headers[name])\n\n if (settings.timeout > 0) abortTimeout = setTimeout(function(){\n xhr.onreadystatechange = empty\n xhr.abort()\n ajaxError(null, 'timeout', xhr, settings, deferred)\n }, settings.timeout)\n\n // avoid sending empty string (#319)\n xhr.send(settings.data ? settings.data : null)\n return xhr\n }\n\n // handle optional data/success arguments\n function parseArguments(url, data, success, dataType) {\n var hasData = !$.isFunction(data)\n return {\n url: url,\n data: hasData ? data : undefined,\n success: !hasData ? data : $.isFunction(success) ? success : undefined,\n dataType: hasData ? dataType || success : success\n }\n }\n\n $.get = function(url, data, success, dataType){\n return $.ajax(parseArguments.apply(null, arguments))\n }\n\n $.post = function(url, data, success, dataType){\n var options = parseArguments.apply(null, arguments)\n options.type = 'POST'\n return $.ajax(options)\n }\n\n $.getJSON = function(url, data, success){\n var options = parseArguments.apply(null, arguments)\n options.dataType = 'json'\n return $.ajax(options)\n }\n\n $.fn.load = function(url, data, success){\n if (!this.length) return this\n var self = this, parts = url.split(/\\s/), selector,\n options = parseArguments(url, data, success),\n callback = options.success\n if (parts.length > 1) options.url = parts[0], selector = parts[1]\n options.success = function(response){\n self.html(selector ?\n $('
').html(response.replace(rscript, \"\")).find(selector)\n : response)\n callback && callback.apply(self, arguments)\n }\n $.ajax(options)\n return this\n }\n\n var escape = encodeURIComponent\n\n function serialize(params, obj, traditional, scope){\n var type, array = $.isArray(obj), hash = $.isPlainObject(obj)\n $.each(obj, function(key, value) {\n type = $.type(value)\n if (scope) key = traditional ? scope :\n scope + '[' + (hash || type == 'object' || type == 'array' ? key : '') + ']'\n // handle data in serializeArray() format\n if (!scope && array) params.add(value.name, value.value)\n // recurse into nested objects\n else if (type == \"array\" || (!traditional && type == \"object\"))\n serialize(params, value, traditional, key)\n else params.add(key, value)\n })\n }\n\n $.param = function(obj, traditional){\n var params = []\n params.add = function(k, v){ this.push(escape(k) + '=' + escape(v)) }\n serialize(params, obj, traditional)\n return params.join('&').replace(/%20/g, '+')\n }\n })(Zepto)\n\n ;(function($){\n $.fn.serializeArray = function() {\n var result = [], el\n $([].slice.call(this.get(0).elements)).each(function(){\n el = $(this)\n var type = el.attr('type')\n if (this.nodeName.toLowerCase() != 'fieldset' &&\n !this.disabled && type != 'submit' && type != 'reset' && type != 'button' &&\n ((type != 'radio' && type != 'checkbox') || this.checked))\n result.push({\n name: el.attr('name'),\n value: el.val()\n })\n })\n return result\n }\n\n $.fn.serialize = function(){\n var result = []\n this.serializeArray().forEach(function(elm){\n result.push(encodeURIComponent(elm.name) + '=' + encodeURIComponent(elm.value))\n })\n return result.join('&')\n }\n\n $.fn.submit = function(callback) {\n if (callback) this.bind('submit', callback)\n else if (this.length) {\n var event = $.Event('submit')\n this.eq(0).trigger(event)\n if (!event.isDefaultPrevented()) this.get(0).submit()\n }\n return this\n }\n\n })(Zepto)\n\n ;(function($){\n // __proto__ doesn't exist on IE<11, so redefine\n // the Z function to use object extension instead\n if (!('__proto__' in {})) {\n $.extend($.zepto, {\n Z: function(dom, selector){\n dom = dom || []\n $.extend(dom, $.fn)\n dom.selector = selector || ''\n dom.__Z = true\n return dom\n },\n // this is a kludge but works\n isZ: function(object){\n return $.type(object) === 'array' && '__Z' in object\n }\n })\n }\n\n // getComputedStyle shouldn't freak out when called\n // without a valid element as argument\n try {\n getComputedStyle(undefined)\n } catch(e) {\n var nativeGetComputedStyle = getComputedStyle;\n window.getComputedStyle = function(element){\n try {\n return nativeGetComputedStyle(element)\n } catch(e) {\n return null\n }\n }\n }\n })(Zepto)\n\n\n TL.getJSON = Zepto.getJSON;\n\tTL.ajax = Zepto.ajax;\n})(TL)\n\n// Based on https://github.com/madrobby/zepto/blob/5585fe00f1828711c04208372265a5d71e3238d1/src/ajax.js\n// Zepto.js\n// (c) 2010-2012 Thomas Fuchs\n// Zepto.js may be freely distributed under the MIT license.\n/*\nCopyright (c) 2010-2012 Thomas Fuchs\nhttp://zeptojs.com\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*/\n\n\n/* **********************************************\n Begin TL.Class.js\n********************************************** */\n\n/*\tTL.Class\n\tClass powers the OOP facilities of the library.\n================================================== */\nTL.Class = function () {};\n\nTL.Class.extend = function (/*Object*/ props) /*-> Class*/ {\n \n\t// extended class with the new prototype\n\tvar NewClass = function () {\n\t\tif (this.initialize) {\n\t\t\tthis.initialize.apply(this, arguments);\n\t\t}\n\t};\n\n\t// instantiate class without calling constructor\n\tvar F = function () {};\n\tF.prototype = this.prototype;\n\tvar proto = new F();\n\n\tproto.constructor = NewClass;\n\tNewClass.prototype = proto;\n\n\t// add superclass access\n\tNewClass.superclass = this.prototype;\n\n\t// add class name\n\t//proto.className = props;\n\n\t//inherit parent's statics\n\tfor (var i in this) {\n\t\tif (this.hasOwnProperty(i) && i !== 'prototype' && i !== 'superclass') {\n\t\t\tNewClass[i] = this[i];\n\t\t}\n\t}\n\n\t// mix static properties into the class\n\tif (props.statics) {\n\t\tTL.Util.extend(NewClass, props.statics);\n\t\tdelete props.statics;\n\t}\n\n\t// mix includes into the prototype\n\tif (props.includes) {\n\t\tTL.Util.extend.apply(null, [proto].concat(props.includes));\n\t\tdelete props.includes;\n\t}\n\n\t// merge options\n\tif (props.options && proto.options) {\n\t\tprops.options = TL.Util.extend({}, proto.options, props.options);\n\t}\n\n\t// mix given properties into the prototype\n\tTL.Util.extend(proto, props);\n\n\t// allow inheriting further\n\tNewClass.extend = TL.Class.extend;\n\n\t// method for adding properties to prototype\n\tNewClass.include = function (props) {\n\t\tTL.Util.extend(this.prototype, props);\n\t};\n\n\treturn NewClass;\n};\n\n\n/* **********************************************\n Begin TL.Events.js\n********************************************** */\n\n/*\tTL.Events\n\tadds custom events functionality to TL classes\n================================================== */\nTL.Events = {\n\taddEventListener: function (/*String*/ type, /*Function*/ fn, /*(optional) Object*/ context) {\n\t\tvar events = this._tl_events = this._tl_events || {};\n\t\tevents[type] = events[type] || [];\n\t\tevents[type].push({\n\t\t\taction: fn,\n\t\t\tcontext: context || this\n\t\t});\n\t\treturn this;\n\t},\n\n\thasEventListeners: function (/*String*/ type) /*-> Boolean*/ {\n\t\tvar k = '_tl_events';\n\t\treturn (k in this) && (type in this[k]) && (this[k][type].length > 0);\n\t},\n\n\tremoveEventListener: function (/*String*/ type, /*Function*/ fn, /*(optional) Object*/ context) {\n\t\tif (!this.hasEventListeners(type)) {\n\t\t\treturn this;\n\t\t}\n\n\t\tfor (var i = 0, events = this._tl_events, len = events[type].length; i < len; i++) {\n\t\t\tif (\n\t\t\t\t(events[type][i].action === fn) &&\n\t\t\t\t(!context || (events[type][i].context === context))\n\t\t\t) {\n\t\t\t\tevents[type].splice(i, 1);\n\t\t\t\treturn this;\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t},\n\n\tfireEvent: function (/*String*/ type, /*(optional) Object*/ data) {\n\t\tif (!this.hasEventListeners(type)) {\n\t\t\treturn this;\n\t\t}\n\n\t\tvar event = TL.Util.mergeData({\n\t\t\ttype: type,\n\t\t\ttarget: this\n\t\t}, data);\n\n\t\tvar listeners = this._tl_events[type].slice();\n\n\t\tfor (var i = 0, len = listeners.length; i < len; i++) {\n\t\t\tlisteners[i].action.call(listeners[i].context || this, event);\n\t\t}\n\n\t\treturn this;\n\t}\n};\n\nTL.Events.on\t= TL.Events.addEventListener;\nTL.Events.off\t= TL.Events.removeEventListener;\nTL.Events.fire = TL.Events.fireEvent;\n\n\n/* **********************************************\n Begin TL.Browser.js\n********************************************** */\n\n/*\n\tBased on Leaflet Browser\n\tTL.Browser handles different browser and feature detections for internal use.\n*/\n\n\n(function() {\n\n\tvar ua = navigator.userAgent.toLowerCase(),\n\t\tdoc = document.documentElement,\n\n\t\tie = 'ActiveXObject' in window,\n\n\t\twebkit = ua.indexOf('webkit') !== -1,\n\t\tphantomjs = ua.indexOf('phantom') !== -1,\n\t\tandroid23 = ua.search('android [23]') !== -1,\n\n\t\tmobile = typeof orientation !== 'undefined',\n\t\tmsPointer = navigator.msPointerEnabled && navigator.msMaxTouchPoints && !window.PointerEvent,\n\t\tpointer = (window.PointerEvent && navigator.pointerEnabled && navigator.maxTouchPoints) || msPointer,\n\n\t\tie3d = ie && ('transition' in doc.style),\n\t\twebkit3d = ('WebKitCSSMatrix' in window) && ('m11' in new window.WebKitCSSMatrix()) && !android23,\n\t\tgecko3d = 'MozPerspective' in doc.style,\n\t\topera3d = 'OTransition' in doc.style,\n\t\topera = window.opera;\n\n\n\tvar retina = 'devicePixelRatio' in window && window.devicePixelRatio > 1;\n\n\tif (!retina && 'matchMedia' in window) {\n\t\tvar matches = window.matchMedia('(min-resolution:144dpi)');\n\t\tretina = matches && matches.matches;\n\t}\n\n\tvar touch = !window.L_NO_TOUCH && !phantomjs && (pointer || 'ontouchstart' in window || (window.DocumentTouch && document instanceof window.DocumentTouch));\n\n\tTL.Browser = {\n\t\tie: ie,\n\t\tua: ua,\n\t\tie9: Boolean(ie && ua.match(/MSIE 9/i)),\n\t\tielt9: ie && !document.addEventListener,\n\t\twebkit: webkit,\n\t\t//gecko: (ua.indexOf('gecko') !== -1) && !webkit && !window.opera && !ie,\n\t\tfirefox: (ua.indexOf('gecko') !== -1) && !webkit && !window.opera && !ie,\n\t\tandroid: ua.indexOf('android') !== -1,\n\t\tandroid23: android23,\n\t\tchrome: ua.indexOf('chrome') !== -1,\n\t\tedge: ua.indexOf('edge/') !== -1,\n\n\t\tie3d: ie3d,\n\t\twebkit3d: webkit3d,\n\t\tgecko3d: gecko3d,\n\t\topera3d: opera3d,\n\t\tany3d: !window.L_DISABLE_3D && (ie3d || webkit3d || gecko3d || opera3d) && !phantomjs,\n\n\t\tmobile: mobile,\n\t\tmobileWebkit: mobile && webkit,\n\t\tmobileWebkit3d: mobile && webkit3d,\n\t\tmobileOpera: mobile && window.opera,\n\n\t\ttouch: !! touch,\n\t\tmsPointer: !! msPointer,\n\t\tpointer: !! pointer,\n\n\t\tretina: !! retina,\n\t\torientation: function() {\n\t\t\tvar w = window.innerWidth,\n\t\t\t\th = window.innerHeight,\n\t\t\t\t_orientation = \"portrait\";\n\n\t\t\tif (w > h) {\n\t\t\t\t_orientation = \"landscape\";\n\t\t\t}\n\t\t\tif (Math.abs(window.orientation) == 90) {\n\t\t\t\t//_orientation = \"landscape\";\n\t\t\t}\n\t\t\ttrace(_orientation);\n\t\t\treturn _orientation;\n\t\t}\n\t};\n\n}());\n\n\n/* **********************************************\n Begin TL.Load.js\n********************************************** */\n\n/*\tTL.Load\n\tLoads External Javascript and CSS\n================================================== */\n\nTL.Load = (function (doc) {\n\tvar loaded\t= [];\n\t\n\tfunction isLoaded(url) {\n\t\t\n\t\tvar i\t\t\t= 0,\n\t\t\thas_loaded\t= false;\n\t\t\n\t\tfor (i = 0; i < loaded.length; i++) {\n\t\t\tif (loaded[i] == url) {\n\t\t\t\thas_loaded = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (has_loaded) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tloaded.push(url);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}\n\t\n\treturn {\n\t\t\n\t\tcss: function (urls, callback, obj, context) {\n\t\t\tif (!isLoaded(urls)) {\n\t\t\t\tTL.LoadIt.css(urls, callback, obj, context);\n\t\t\t} else {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t},\n\n\t\tjs: function (urls, callback, obj, context) {\n\t\t\tif (!isLoaded(urls)) {\n\t\t\t\tTL.LoadIt.js(urls, callback, obj, context);\n\t\t\t} else {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t}\n };\n\t\n})(this.document);\n\n\n/*jslint browser: true, eqeqeq: true, bitwise: true, newcap: true, immed: true, regexp: false */\n\n/*\nLazyLoad makes it easy and painless to lazily load one or more external\nJavaScript or CSS files on demand either during or after the rendering of a web\npage.\n\nSupported browsers include Firefox 2+, IE6+, Safari 3+ (including Mobile\nSafari), Google Chrome, and Opera 9+. Other browsers may or may not work and\nare not officially supported.\n\nVisit https://github.com/rgrove/lazyload/ for more info.\n\nCopyright (c) 2011 Ryan Grove \nAll rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the 'Software'), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject 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, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n@module lazyload\n@class LazyLoad\n@static\n@version 2.0.3 (git)\n*/\n\nTL.LoadIt = (function (doc) {\n // -- Private Variables ------------------------------------------------------\n\n // User agent and feature test information.\n var env,\n\n // Reference to the element (populated lazily).\n head,\n\n // Requests currently in progress, if any.\n pending = {},\n\n // Number of times we've polled to check whether a pending stylesheet has\n // finished loading. If this gets too high, we're probably stalled.\n pollCount = 0,\n\n // Queued requests.\n queue = {css: [], js: []},\n\n // Reference to the browser's list of stylesheets.\n styleSheets = doc.styleSheets;\n\n // -- Private Methods --------------------------------------------------------\n\n /**\n Creates and returns an HTML element with the specified name and attributes.\n\n @method createNode\n @param {String} name element name\n @param {Object} attrs name/value mapping of element attributes\n @return {HTMLElement}\n @private\n */\n function createNode(name, attrs) {\n var node = doc.createElement(name), attr;\n\n for (attr in attrs) {\n if (attrs.hasOwnProperty(attr)) {\n node.setAttribute(attr, attrs[attr]);\n }\n }\n\n return node;\n }\n\n /**\n Called when the current pending resource of the specified type has finished\n loading. Executes the associated callback (if any) and loads the next\n resource in the queue.\n\n @method finish\n @param {String} type resource type ('css' or 'js')\n @private\n */\n function finish(type) {\n var p = pending[type],\n callback,\n urls;\n\n if (p) {\n callback = p.callback;\n urls = p.urls;\n\n urls.shift();\n pollCount = 0;\n\n // If this is the last of the pending URLs, execute the callback and\n // start the next request in the queue (if any).\n if (!urls.length) {\n callback && callback.call(p.context, p.obj);\n pending[type] = null;\n queue[type].length && load(type);\n }\n }\n }\n\n /**\n Populates the env variable with user agent and feature test\n information.\n\n @method getEnv\n @private\n */\n function getEnv() {\n var ua = navigator.userAgent;\n\n env = {\n // True if this browser supports disabling async mode on dynamically\n // created script nodes. See\n // http://wiki.whatwg.org/wiki/Dynamic_Script_Execution_Order\n async: doc.createElement('script').async === true\n };\n\n (env.webkit = /AppleWebKit\\//.test(ua))\n || (env.ie = /MSIE/.test(ua))\n || (env.opera = /Opera/.test(ua))\n || (env.gecko = /Gecko\\//.test(ua))\n || (env.unknown = true);\n }\n\n /**\n Loads the specified resources, or the next resource of the specified type\n in the queue if no resources are specified. If a resource of the specified\n type is already being loaded, the new request will be queued until the\n first request has been finished.\n\n When an array of resource URLs is specified, those URLs will be loaded in\n parallel if it is possible to do so while preserving execution order. All\n browsers support parallel loading of CSS, but only Firefox and Opera\n support parallel loading of scripts. In other browsers, scripts will be\n queued and loaded one at a time to ensure correct execution order.\n\n @method load\n @param {String} type resource type ('css' or 'js')\n @param {String|Array} urls (optional) URL or array of URLs to load\n @param {Function} callback (optional) callback function to execute when the\n resource is loaded\n @param {Object} obj (optional) object to pass to the callback function\n @param {Object} context (optional) if provided, the callback function will\n be executed in this object's context\n @private\n */\n function load(type, urls, callback, obj, context) {\n var _finish = function () { finish(type); },\n isCSS = type === 'css',\n nodes = [],\n i, len, node, p, pendingUrls, url;\n\n env || getEnv();\n\n if (urls) {\n // If urls is a string, wrap it in an array. Otherwise assume it's an\n // array and create a copy of it so modifications won't be made to the\n // original.\n urls = typeof urls === 'string' ? [urls] : urls.concat();\n\n // Create a request object for each URL. If multiple URLs are specified,\n // the callback will only be executed after all URLs have been loaded.\n //\n // Sadly, Firefox and Opera are the only browsers capable of loading\n // scripts in parallel while preserving execution order. In all other\n // browsers, scripts must be loaded sequentially.\n //\n // All browsers respect CSS specificity based on the order of the link\n // elements in the DOM, regardless of the order in which the stylesheets\n // are actually downloaded.\n if (isCSS || env.async || env.gecko || env.opera) {\n // Load in parallel.\n queue[type].push({\n urls : urls,\n callback: callback,\n obj : obj,\n context : context\n });\n } else {\n // Load sequentially.\n for (i = 0, len = urls.length; i < len; ++i) {\n queue[type].push({\n urls : [urls[i]],\n callback: i === len - 1 ? callback : null, // callback is only added to the last URL\n obj : obj,\n context : context\n });\n }\n }\n }\n\n // If a previous load request of this type is currently in progress, we'll\n // wait our turn. Otherwise, grab the next item in the queue.\n if (pending[type] || !(p = pending[type] = queue[type].shift())) {\n return;\n }\n\n head || (head = doc.head || doc.getElementsByTagName('head')[0]);\n pendingUrls = p.urls;\n\n for (i = 0, len = pendingUrls.length; i < len; ++i) {\n url = pendingUrls[i];\n\n if (isCSS) {\n node = env.gecko ? createNode('style') : createNode('link', {\n href: url,\n rel : 'stylesheet'\n });\n } else {\n node = createNode('script', {src: url});\n node.async = false;\n }\n\n node.className = 'lazyload';\n node.setAttribute('charset', 'utf-8');\n\n if (env.ie && !isCSS) {\n node.onreadystatechange = function () {\n if (/loaded|complete/.test(node.readyState)) {\n node.onreadystatechange = null;\n _finish();\n }\n };\n } else if (isCSS && (env.gecko || env.webkit)) {\n // Gecko and WebKit don't support the onload event on link nodes.\n if (env.webkit) {\n // In WebKit, we can poll for changes to document.styleSheets to\n // figure out when stylesheets have loaded.\n p.urls[i] = node.href; // resolve relative URLs (or polling won't work)\n pollWebKit();\n } else {\n // In Gecko, we can import the requested URL into a