{ // 获取包含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":"{'content_hash': 'a172cfc3208a32492d821e9e778a4364', 'timestamp': '', 'source': 'github', 'line_count': 126, 'max_line_length': 147, 'avg_line_length': 33.76984126984127, 'alnum_prop': 0.6129259694477086, 'repo_name': 'jasonwee/videoOnCloud', 'id': '7890b9af293e3a59869750058ceec5345afe8565', 'size': '4255', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'pmd/pmd-doc-5.5.1/testapidocs/net/sourceforge/pmd/cli/package-use.html', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '116270'}, {'name': 'C', 'bytes': '2209717'}, {'name': 'C++', 'bytes': '375267'}, {'name': 'CSS', 'bytes': '1134648'}, {'name': 'Dockerfile', 'bytes': '1656'}, {'name': 'HTML', 'bytes': '306558398'}, {'name': 'Java', 'bytes': '1465506'}, {'name': 'JavaScript', 'bytes': '9028509'}, {'name': 'Jupyter Notebook', 'bytes': '30907'}, {'name': 'Less', 'bytes': '107003'}, {'name': 'PHP', 'bytes': '856'}, {'name': 'PowerShell', 'bytes': '77807'}, {'name': 'Pug', 'bytes': '2968'}, {'name': 'Python', 'bytes': '1001861'}, {'name': 'R', 'bytes': '7390'}, {'name': 'Roff', 'bytes': '3553'}, {'name': 'Shell', 'bytes': '206191'}, {'name': 'Thrift', 'bytes': '80564'}, {'name': 'XSLT', 'bytes': '4740'}]}"}}},{"rowIdx":849116,"cells":{"text":{"kind":"string","value":"\n\n\n\n\n\nMavenArtifactRepository (Gradle API 2.13)\n\n\n\n\n\n\n\n\n
\n\n\n\n
\n\n
\n
\n
    \n
  • Summary: 
  • \n
  • Nested | 
  • \n
  • Field | 
  • \n
  • Constr | 
  • \n
  • Method
  • \n
\n
    \n
  • Detail: 
  • \n
  • Field | 
  • \n
  • Constr | 
  • \n
  • Method
  • \n
\n
\n\n\n
\n\n\n
\n
org.gradle.api.artifacts.repositories
\n

Interface MavenArtifactRepository

\n
\n
\n
\n\n
\n
\n\n
\n
\n
    \n
  • \n\n
      \n
    • \n\n\n

      Method Detail

      \n\n\n\n
        \n
      • \n

        getUrl

        \n
        URI getUrl()
        \n
        The base URL of this repository. This URL is used to find both POMs and artifact files. You can add additional URLs to use to look for artifact files, such as jars, using setArtifactUrls(Iterable).
        \n
        Returns:
        The URL.
        \n
      • \n
      \n\n\n\n
        \n
      • \n

        setUrl

        \n
        void setUrl(Object url)
        \n
        Sets the base URL of this repository. This URL is used to find both POMs and artifact files. You can add additional URLs to use to look for artifact files, such as jars, using setArtifactUrls(Iterable).\n\n

        The provided value is evaluated as per Project.uri(Object). This means, for example, you can pass in a File object, or a relative path to be evaluated relative\n to the project directory.

        \n
        Parameters:
        url - The base URL.
        \n
      • \n
      \n\n\n\n
        \n
      • \n

        getArtifactUrls

        \n
        Set<URI> getArtifactUrls()
        \n
        Returns the additional URLs to use to find artifact files. Note that these URLs are not used to find POM files.
        \n
        Returns:
        The additional URLs. Returns an empty list if there are no such URLs.
        \n
      • \n
      \n\n\n\n
        \n
      • \n

        artifactUrls

        \n
        void artifactUrls(Object... urls)
        \n
        Adds some additional URLs to use to find artifact files. Note that these URLs are not used to find POM files.\n\n

        The provided values are evaluated as per Project.uri(Object). This means, for example, you can pass in a File object, or a relative path to be evaluated\n relative to the project directory.

        \n
        Parameters:
        urls - The URLs to add.
        \n
      • \n
      \n\n\n\n
        \n
      • \n

        setArtifactUrls

        \n
        void setArtifactUrls(Iterable<?> urls)
        \n
        Sets the additional URLs to use to find artifact files. Note that these URLs are not used to find POM files.\n\n

        The provided values are evaluated as per Project.uri(Object). This means, for example, you can pass in a File object, or a relative path to be evaluated\n relative to the project directory.

        \n
        Parameters:
        urls - The URLs.
        \n
      • \n
      \n
    • \n
    \n
  • \n
\n
\n
\n\n\n\n
\n\n\n\n
\n\n
\n
\n
    \n
  • Summary: 
  • \n
  • Nested | 
  • \n
  • Field | 
  • \n
  • Constr | 
  • \n
  • Method
  • \n
\n
    \n
  • Detail: 
  • \n
  • Field | 
  • \n
  • Constr | 
  • \n
  • Method
  • \n
\n
\n\n\n
\n\n\n\n"},"meta":{"kind":"string","value":"{'content_hash': '9fe486609981ead49c7225bf8e0199b2', 'timestamp': '', 'source': 'github', 'line_count': 308, 'max_line_length': 879, 'avg_line_length': 53.314935064935064, 'alnum_prop': 0.6816880823335972, 'repo_name': 'HenryHarper/Acquire-Reboot', 'id': '2374267c81cda1bc66b8ccedd5fcd9526e2633b3', 'size': '16421', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'gradle/docs/javadoc/org/gradle/api/artifacts/repositories/MavenArtifactRepository.html', 'mode': '33188', 'license': 'mit', 'language': []}"}}},{"rowIdx":849117,"cells":{"text":{"kind":"string","value":"package org.openprovenance.prov.xml;\n\nimport javax.xml.bind.annotation.adapters.XmlAdapter;\n\nimport org.openprovenance.prov.model.DOMProcessing;\nimport org.openprovenance.prov.model.QualifiedName;\nimport org.w3c.dom.Element;\n\npublic class KeyAdapter extends XmlAdapter {\n\n \n final org.openprovenance.prov.model.ProvFactory pFactory;\n final ValueConverter vconv;\n final private DOMProcessing domProcessor;\n final QualifiedName qname_PROV_KEY;\n\n public KeyAdapter() {\n\tpFactory= new ProvFactory();\n\tdomProcessor=new DOMProcessing(pFactory);\n\tqname_PROV_KEY = pFactory.getName().PROV_KEY;\n\tvconv=new ValueConverter(pFactory);\n }\n\n\n public KeyAdapter(org.openprovenance.prov.model.ProvFactory pFactory) {\n\tthis.pFactory=pFactory;\n\tdomProcessor=new DOMProcessing(pFactory);\n\tqname_PROV_KEY = pFactory.getName().PROV_KEY;\n\n\tvconv=new ValueConverter(pFactory);\n }\n\n\n @Override\n public Element marshal(TypedValue value) throws Exception {\n //System.out.println(\"==> KeyAdapter marshalling for \" + value);\n\treturn DOMProcessing.marshalTypedValue(value,qname_PROV_KEY);\n }\n\n @Override\n public TypedValue unmarshal(Element el) throws Exception {\n //System.out.println(\"==> KeyAdapter unmarshalling for \" + el);\n //TODO: make sure I construct a typedvalue. Update newAttribute in xml.ProvFactory.\n return (TypedValue) domProcessor.unmarshallAttribute(el,pFactory,vconv);\n }\n\n}\n"},"meta":{"kind":"string","value":"{'content_hash': 'f32361ef309609e67a3029c23e403342', 'timestamp': '', 'source': 'github', 'line_count': 47, 'max_line_length': 92, 'avg_line_length': 31.127659574468087, 'alnum_prop': 0.7450444292549556, 'repo_name': 'dtm/ProvToolbox', 'id': 'e0d31569286dc99d24bb30e270f5231ac6f426a0', 'size': '1463', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'prov-xml/src/main/java/org/openprovenance/prov/xml/KeyAdapter.java', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'GAP', 'bytes': '20710'}, {'name': 'Java', 'bytes': '2010160'}, {'name': 'JavaScript', 'bytes': '25608'}, {'name': 'Makefile', 'bytes': '10746'}, {'name': 'Shell', 'bytes': '554'}]}"}}},{"rowIdx":849118,"cells":{"text":{"kind":"string","value":"\n\nRedirecting...\n\n\n

Redirecting...

\nClick here if you are not redirected.\n\n"},"meta":{"kind":"string","value":"{'content_hash': 'b7e6ceb61d878971d9affe9ae9c80cb2', 'timestamp': '', 'source': 'github', 'line_count': 8, 'max_line_length': 67, 'avg_line_length': 38.5, 'alnum_prop': 0.6785714285714286, 'repo_name': 'hochanh/hochanh.github.io', 'id': '4d75be73bfc17ebbcf71ee26d2c214a3dd078dbb', 'size': '316', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'rtk/v4/1397.html', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '6969'}, {'name': 'JavaScript', 'bytes': '5041'}]}"}}},{"rowIdx":849119,"cells":{"text":{"kind":"string","value":"\"\"\"\n:copyright: (c) 2014 Building Energy Inc\n:license: see LICENSE for more details.\n\"\"\"\nimport boto.elasticache\nimport boto.cloudformation\nimport boto.ec2\nimport boto.exception\nimport os\n\nAWS_REGION = os.environ.get('AWS_REGION', 'us-east-1')\n\ntry:\n ec2 = boto.ec2.connect_to_region(AWS_REGION)\n elasticache = boto.elasticache.connect_to_region(AWS_REGION)\n cloudformation = boto.cloudformation.connect_to_region(AWS_REGION)\nexcept boto.exception.NoAuthHandlerFound:\n print 'Looks like we are not on an AWS stack this module will not function'\n\n\ndef get_stack_outputs():\n if not AWS_REGION or 'STACK_NAME' not in os.environ:\n return {}\n return {\n output.key: output.value for output in (\n cloudformation.describe_stacks(os.environ['STACK_NAME'])[0].outputs\n )\n }\n\n\ndef get_cache_endpoint():\n outputs = get_stack_outputs()\n if not outputs or 'CacheClusterID' not in outputs:\n return None\n cluster = elasticache.describe_cache_clusters(\n outputs['CacheClusterID'], show_cache_node_info=True\n )\n return (\n cluster['DescribeCacheClustersResponse']['DescribeCacheClustersResult']\n ['CacheClusters'][0]['CacheNodes'][0]['Endpoint']\n )\n\nif __name__ == '__main__':\n print get_cache_endpoint()['Address']\n"},"meta":{"kind":"string","value":"{'content_hash': '80a3da01a667ee957095e1444a904fd6', 'timestamp': '', 'source': 'github', 'line_count': 44, 'max_line_length': 79, 'avg_line_length': 29.522727272727273, 'alnum_prop': 0.6843725943033102, 'repo_name': 'buildingenergy/buildingenergy-platform', 'id': '509f042a1f9092f9d1a5a6ef997068013c048c21', 'size': '1299', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'BE/settings/aws/aws.py', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '41308'}, {'name': 'JavaScript', 'bytes': '410448'}, {'name': 'Python', 'bytes': '2737347'}, {'name': 'Shell', 'bytes': '12179'}]}"}}},{"rowIdx":849120,"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 \n compartment \n k1 \n S1 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n compartment \n k2 \n S2 \n \n \n \n \n \n \n\n"},"meta":{"kind":"string","value":"{'content_hash': 'cf8bd2e0c4ea23d81750ad54e751d410', 'timestamp': '', 'source': 'github', 'line_count': 54, 'max_line_length': 110, 'avg_line_length': 35.333333333333336, 'alnum_prop': 0.5571278825995807, 'repo_name': 'stanleygu/sbmltest2archive', 'id': 'd1a25b284b07a6c890388fd6734260a8fbd01a75', 'size': '1908', 'binary': False, 'copies': '3', 'ref': 'refs/heads/master', 'path': 'sbml-test-cases/cases/semantic/00002/00002-sbml-l2v2.xml', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'M', 'bytes': '12509'}, {'name': 'Mathematica', 'bytes': '721776'}, {'name': 'Matlab', 'bytes': '1729754'}, {'name': 'Objective-C', 'bytes': '144988'}]}"}}},{"rowIdx":849121,"cells":{"text":{"kind":"string","value":"\n\n\n\n\n \n \n \n \n \n\n Proteak\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
  1. \n
  2. \n
  3. \n
  4. \n
\n \n\n \n
\n
\n \n
\n
\n \"\"\n

PRIMER PLANTA PRODUCTORA

\n

DE MDF EN MÉXICO

\n

\n \n
\n
\n
\n \n
\n
\n \"\"\n

LA ESPERA HA TERMINADO,

\n

INICIAMOS OPERACIONES

\n

\n \n
\n
\n
\n \n
\n
\n \"\"\n

YA ESTAMOS PRODUCIENDO LOS PRIMEROS TABLEROS

\n

DE MDF EN MÉXICO

\n

\n \n
\n
\n
\n \n
\n
\n \"\"\n

ESPERA MUY PRONTO

\n

LAS MEJORES SOLUCIONES EN MDF

\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

CARACTERÍSTICAS

\n \n
\n

Proyecto verticalmente integrado que asegura la calidad de nuestros tableros en el mercado nacional e internacional.

\n
\n
\n
\n
\n
\n
\n \"\"\n

Ubicación en Huimanguillo Tabasco

\n
\n
\n \"\"\n

Inversión de 220 mdd

\n
\n
\n \"\"\n

Lo último en tecnología alemana

\n
\n
\n \"\"\n

Capacidad de producción 280 mil m3

\n
\n
\n \"\"\n

Control de materia prima (del árbol al tablero)

\n
\n
\n \"\"\n

Línea de ciclo corto para aplicación de maleninas

\n
\n
\n\n
\n\n\n \n
\n
\n
\n
\n \"\"\n

CARACTERÍSTICAS

\n \n
\n

Proyecto verticalmente integrado que asegura la calidad de nuestros tableros en el mercado nacional e internacional.

\n
\n
\n
\n
\n
\n
\n \"\"\n

Ubicación en Huimanguillo Tabasco

\n
\n
\n \"\"\n

Inversión de 220 mdd

\n
\n
\n \"\"\n

Lo último en tecnología alemana

\n
\n
\n
\n
\n \"\"\n

Capacidad de producción 280 mil m3

\n
\n
\n \"\"\n

Control de materia prima (del árbol al tablero)

\n
\n
\n \"\"\n

Línea de ciclo corto para aplicación de maleninas

\n
\n
\n\n
\n
\n \"\"\n
\n \n\n
\n
\n
\n
\n \"\"\n

INDUSTRIA SUSTENTABLE

\n \n
\n

Producción 100% sustentable y una apuesta firme en innovación de productos.

\n
\n
\n
\n
\n
\n
\n \"\"\n 10,000 has de Eucalipto sustentables suministran a la planta de materia prima\n \n

Eucalito sustentable

\n
\n
\n \"\"\n Tableros certificados bajo estándares internacionales \n \n

Tableros certificados

\n
\n
\n \"\"\n Producimos nuestra propia energía con una planta de cogeneración eléctrica\n \n

Producimos nuestra energía

\n
\n \n
\n \"\"\n Empresa 100% mexicana\n \n

Empresa 100% mexicana

\n
\n
\n \"\"\n Generamos empleo\n \n

Generamos empleo

\n
\n
\n \"\"\n Apoyamos al desarrollo de las comunidades en donde trabajamos\n \n

Desarrollo de comunidades

\n
\n
\n
\n\n\n\n
\n
\n
\n
\n \"\"\n

INDUSTRIA SUSTENTABLE

\n \n
\n

Producción 100% sustentable y una apuesta firme en innovación de productos.

\n
\n
\n
\n
\n
\n
\n \"\"\n 10,000 has de Eucalipto sustentables suministran a la planta de materia prima\n \n

Eucalito sustentable

\n
\n
\n \"\"\n Tableros certificados bajo estándares internacionales \n \n

Tableros certificados

\n
\n
\n \"\"\n Producimos nuestra propia energía con una planta de cogeneración eléctrica\n \n

Producimos nuestra energía

\n
\n
\n
\n
\n \"\"\n Empresa 100% mexicana\n \n

Empresa 100% mexicana

\n
\n
\n \"\"\n Generamos empleo\n \n

Generamos empleo

\n
\n
\n \"\"\n Apoyamos al desarrollo de las comunidades en donde trabajamos\n \n

Desarrollo de comunidades

\n
\n
\n
\n
\n \"\"\n
\n \n
\n
\n
\n \"\"\n

VISIÓN EMPRENDEDORA

\n \n
\n

La sinergia de nuestra experiencia en el desarrollo forestal, una planta de MDF de vanguardia y el control de materia prima certificada, nos permite ofrecer al mercado productos de valor agregado, especializados, innovadores y 100% mexicanos.

\n
\n
\n
\n
\n \n
\n \n
\n
\n
\n
\n
\n \"\"\n

DIVISIÓN FORESTAL

\n \n
\n

Creamos bosques para que puedas tener buena madera en tu vida.

\n
\n
\n
\n
\n
\n \n
\n
\n \n
\n \n

\n \n \n ×\n \n
    \n \n
    \n
    \n
    \n
    \n \n

    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n \"\"\n \n
    \n
    \n \n \"\"\n \n
    \n
    \n \n \"\"\n \n
    \n
    \n \n \"\"\n \n
    \n
    \n \n \"\"\n \n
    \n
    \n \n \"\"\n \n
    \n
    \n \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

    MANTÉNTE EN CONTACTO

    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n \n
    \n \n
    \n
    \n
    \n
    \n
    \n

    © 2015 PROTEAK. Términos y Condiciones Privacidad Mapa de Sitio Contacto

    \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"},"meta":{"kind":"string","value":"{'content_hash': '810a686fd89586e9dbd296eea3f4ea8c', 'timestamp': '', 'source': 'github', 'line_count': 561, 'max_line_length': 275, 'avg_line_length': 46.54188948306595, 'alnum_prop': 0.515396399846802, 'repo_name': 'jorgerubik/proteak', 'id': 'c50d37cba346cf791101ad7a102546248cd3248f', 'size': '26164', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'index-old.html', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '16836'}, {'name': 'HTML', 'bytes': '107829'}, {'name': 'JavaScript', 'bytes': '74199'}, {'name': 'PHP', 'bytes': '856'}]}"}}},{"rowIdx":849122,"cells":{"text":{"kind":"string","value":"\n\n \n \n \n metacoq-safechecker: Not compatible 👼\n \n \n \n \n \n \n \n \n \n \n
    \n \n
    \n
    \n
    \n « Up\n

    \n metacoq-safechecker\n \n 1.0~alpha2+8.11\n Not compatible 👼\n \n

    \n

    📅 (2022-06-03 10:36:19 UTC)

    \n

    Context

    \n
    # Packages matching: installed\n# Name              # Installed # Synopsis\nbase-bigarray       base\nbase-threads        base\nbase-unix           base\ncamlp5              7.14        Preprocessor-pretty-printer of OCaml\nconf-findutils      1           Virtual package relying on findutils\nconf-perl           2           Virtual package relying on perl\ncoq                 8.7.1+2     Formal proof management system\nnum                 1.4         The legacy Num library for arbitrary-precision integer and rational arithmetic\nocaml               4.08.1      The OCaml compiler (virtual package)\nocaml-base-compiler 4.08.1      Official release 4.08.1\nocaml-config        1           OCaml Switch Configuration\nocamlfind           1.9.3       A library manager for OCaml\n# opam file:\nopam-version: "2.0"\nmaintainer: "matthieu.sozeau@inria.fr"\nhomepage: "https://metacoq.github.io/metacoq"\ndev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.11"\nbug-reports: "https://github.com/MetaCoq/metacoq/issues"\nauthors: ["Abhishek Anand <aa755@cs.cornell.edu>"\n          "Simon Boulier <simon.boulier@inria.fr>"\n          "Cyril Cohen <cyril.cohen@inria.fr>"\n          "Yannick Forster <forster@ps.uni-saarland.de>"\n          "Fabian Kunze <fkunze@fakusb.de>"\n          "Gregory Malecha <gmalecha@gmail.com>"\n          "Matthieu Sozeau <matthieu.sozeau@inria.fr>"\n          "Nicolas Tabareau <nicolas.tabareau@inria.fr>"\n          "Théo Winterhalter <theo.winterhalter@inria.fr>"\n]\nlicense: "MIT"\nbuild: [\n  ["sh" "./configure.sh"]\n  [make "-j%{jobs}%" "-C" "safechecker"]\n]\ninstall: [\n  [make "-C" "safechecker" "install"]\n]\ndepends: [\n  "ocaml" {>= "4.07.1"}\n  "coq" {>= "8.11" & < "8.12~"}\n  "coq-metacoq-template" {= version}\n  "coq-metacoq-checker" {= version}\n  "coq-metacoq-pcuic" {= version}\n]\nsynopsis: "Implementation and verification of safe conversion and typechecking algorithms for Coq"\ndescription: """\nMetaCoq is a meta-programming framework for Coq.\nThe SafeChecker modules provides a correct implementation of\nweak-head reduction, conversion and typechecking of Coq definitions and global environments.\n"""\nurl {\n  src: "https://github.com/MetaCoq/metacoq/archive/v1.0-alpha2-8.11.tar.gz"\n  checksum: "sha256=8f1d2b42ad97d7c8660a57aabe53ddcc7b1645ced43386a1d2bef428b20d6b42"\n}\n
    \n

    Lint

    \n
    \n
    Command
    \n
    true
    \n
    Return code
    \n
    0
    \n
    \n

    Dry install 🏜️

    \n

    Dry install with the current Coq version:

    \n
    \n
    Command
    \n
    opam install -y --show-action coq-metacoq-safechecker.1.0~alpha2+8.11 coq.8.7.1+2
    \n
    Return code
    \n
    5120
    \n
    Output
    \n
    [NOTE] Package coq is already installed (current version is 8.7.1+2).\nThe following dependencies couldn't be met:\n  - coq-metacoq-safechecker -> coq >= 8.11\nYour request can't be satisfied:\n  - No available version of coq satisfies the constraints\nNo solution found, exiting\n
    \n
    \n

    Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:

    \n
    \n
    Command
    \n
    opam remove -y coq; opam install -y --show-action --unlock-base coq-metacoq-safechecker.1.0~alpha2+8.11
    \n
    Return code
    \n
    0
    \n
    \n

    Install dependencies

    \n
    \n
    Command
    \n
    true
    \n
    Return code
    \n
    0
    \n
    Duration
    \n
    0 s
    \n
    \n

    Install 🚀

    \n
    \n
    Command
    \n
    true
    \n
    Return code
    \n
    0
    \n
    Duration
    \n
    0 s
    \n
    \n

    Installation size

    \n

    No files were installed.

    \n

    Uninstall 🧹

    \n
    \n
    Command
    \n
    true
    \n
    Return code
    \n
    0
    \n
    Missing removes
    \n
    \n none\n
    \n
    Wrong removes
    \n
    \n none\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n

    \n Sources are on GitHub © Guillaume Claret 🐣\n

    \n
    \n
    \n \n \n \n\n"},"meta":{"kind":"string","value":"{'content_hash': 'a0018fe9ee07665fe8d098e9c1bee28d', 'timestamp': '', 'source': 'github', 'line_count': 181, 'max_line_length': 159, 'avg_line_length': 42.70718232044199, 'alnum_prop': 0.559379042690815, 'repo_name': 'coq-bench/coq-bench.github.io', 'id': '01005e35bf9529a91ef793e7daa898dfb0139c08', 'size': '7756', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'clean/Linux-x86_64-4.08.1-2.0.5/released/8.7.1+2/metacoq-safechecker/1.0~alpha2+8.11.html', 'mode': '33188', 'license': 'mit', 'language': []}"}}},{"rowIdx":849123,"cells":{"text":{"kind":"string","value":"from tools.load import LoadMatrix\nfrom sg import sg\nlm=LoadMatrix()\n\ntraindat=lm.load_numbers('../data/fm_train_real.dat')\ntestdat=lm.load_numbers('../data/fm_test_real.dat')\nparameter_list=[[traindat,testdat],[traindat,testdat]]\n\ndef distance_chebyshew (fm_train_real=traindat,fm_test_real=testdat):\n\tsg('set_distance', 'CHEBYSHEW', 'REAL')\n\tsg('set_features', 'TRAIN', fm_train_real)\n\tdm=sg('get_distance_matrix', 'TRAIN')\n\tsg('set_features', 'TEST', fm_test_real)\n\tdm=sg('get_distance_matrix', 'TEST')\n\treturn dm\n\nif __name__=='__main__':\n\tprint('ChebyshewMetric')\n\tdistance_chebyshew(*parameter_list[0])\n"},"meta":{"kind":"string","value":"{'content_hash': '7352a8bf770a2ffe6363576badf5e07c', 'timestamp': '', 'source': 'github', 'line_count': 19, 'max_line_length': 69, 'avg_line_length': 32.0, 'alnum_prop': 0.7105263157894737, 'repo_name': 'Saurabh7/shogun', 'id': 'f9d85f9b18fd1311deb5eb930ee2b06227349edf', 'size': '608', 'binary': False, 'copies': '22', 'ref': 'refs/heads/master', 'path': 'examples/undocumented/python_static/distance_chebyshew.py', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'C', 'bytes': '104870'}, {'name': 'C++', 'bytes': '11435353'}, {'name': 'CMake', 'bytes': '213091'}, {'name': 'Lua', 'bytes': '1204'}, {'name': 'M', 'bytes': '10020'}, {'name': 'Makefile', 'bytes': '452'}, {'name': 'Matlab', 'bytes': '66047'}, {'name': 'Perl', 'bytes': '31939'}, {'name': 'Perl6', 'bytes': '15714'}, {'name': 'Protocol Buffer', 'bytes': '1476'}, {'name': 'Python', 'bytes': '431160'}, {'name': 'R', 'bytes': '53362'}, {'name': 'Ruby', 'bytes': '59'}, {'name': 'Shell', 'bytes': '17074'}]}"}}},{"rowIdx":849124,"cells":{"text":{"kind":"string","value":"\n\npackage com.microsoft.azure.management.containerregistry.v2018_09_01.implementation;\n\nimport com.microsoft.azure.management.containerregistry.v2018_09_01.RegistryListCredentialsResult;\nimport com.microsoft.azure.arm.model.implementation.WrapperImpl;\nimport java.util.List;\nimport com.microsoft.azure.management.containerregistry.v2018_09_01.RegistryPassword;\n\nclass RegistryListCredentialsResultImpl extends WrapperImpl implements RegistryListCredentialsResult {\n private final ContainerRegistryManager manager;\n RegistryListCredentialsResultImpl(RegistryListCredentialsResultInner inner, ContainerRegistryManager manager) {\n super(inner);\n this.manager = manager;\n }\n\n @Override\n public ContainerRegistryManager manager() {\n return this.manager;\n }\n\n @Override\n public List passwords() {\n return this.inner().passwords();\n }\n\n @Override\n public String username() {\n return this.inner().username();\n }\n\n}\n"},"meta":{"kind":"string","value":"{'content_hash': 'f271e571b4ebbe6f16dbe654aeb02c97', 'timestamp': '', 'source': 'github', 'line_count': 32, 'max_line_length': 138, 'avg_line_length': 32.25, 'alnum_prop': 0.7693798449612403, 'repo_name': 'navalev/azure-sdk-for-java', 'id': '22b1714e3c9e4aecbc5a163771b03412d771ad09', 'size': '1262', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'sdk/containerregistry/mgmt-v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/RegistryListCredentialsResultImpl.java', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Batchfile', 'bytes': '7230'}, {'name': 'CSS', 'bytes': '5411'}, {'name': 'Groovy', 'bytes': '1570436'}, {'name': 'HTML', 'bytes': '29221'}, {'name': 'Java', 'bytes': '250218562'}, {'name': 'JavaScript', 'bytes': '15605'}, {'name': 'PowerShell', 'bytes': '30924'}, {'name': 'Python', 'bytes': '42119'}, {'name': 'Shell', 'bytes': '1408'}]}"}}},{"rowIdx":849125,"cells":{"text":{"kind":"string","value":"\n\n//\n// This code is part of the XPCOM extensions for Python.\n//\n// Written May 2000 by Mark Hammond.\n//\n// Based heavily on the Python COM support, which is\n// (c) Mark Hammond and Greg Stein.\n//\n// (c) 2000, ActiveState corp.\n\n#include \"PyXPCOM_std.h\"\n#include \"nsISupportsPrimitives.h\"\n\nstatic PRInt32 cInterfaces=0;\nstatic PyObject *g_obFuncMakeInterfaceCount = NULL; // XXX - never released!!!\n\n#ifdef VBOX_DEBUG_LIFETIMES\n# include \n# include \n\n/*static*/ RTLISTNODE Py_nsISupports::g_List;\n/*static*/ RTONCE Py_nsISupports::g_Once = RTONCE_INITIALIZER;\n/*static*/ RTCRITSECT Py_nsISupports::g_CritSect;\n\n/*static*/ DECLCALLBACK(int32_t)\nPy_nsISupports::initOnceCallback(void *pvUser1)\n{\n NOREF(pvUser1);\n RTListInit(&g_List);\n return RTCritSectInit(&g_CritSect);\n}\n\n/*static*/ void\nPy_nsISupports::dumpList(void)\n{\n RTOnce(&g_Once, initOnceCallback, NULL);\n RTCritSectEnter(&g_CritSect);\n\n uint32_t i = 0;\n Py_nsISupports *pCur;\n RTListForEach(&g_List, pCur, Py_nsISupports, m_ListEntry)\n {\n\tnsISupports *pISup = pCur->m_obj;\n\tPyXPCOM_LogWarning(\"#%u: %p iid=%RTuuid obj=%p\", i, pCur, &pCur->m_iid, pISup);\n\ti++;\n }\n\n RTCritSectLeave(&g_CritSect);\n}\n\n/*static*/ void\nPy_nsISupports::dumpListToStdOut()\n{\n RTOnce(&g_Once, initOnceCallback, NULL);\n RTCritSectEnter(&g_CritSect);\n\n uint32_t i = 0;\n Py_nsISupports *pCur;\n RTListForEach(&g_List, pCur, Py_nsISupports, m_ListEntry)\n {\n\tnsISupports *pISup = pCur->m_obj;\n\tRTPrintf(\"#%u: %p iid=%RTuuid obj=%p\\n\", i, pCur, &pCur->m_iid, pISup);\n\ti++;\n }\n\n RTCritSectLeave(&g_CritSect);\n}\n\nPRInt32\n_PyXPCOM_DumpInterfaces(void)\n{\n\tPy_nsISupports::dumpListToStdOut();\n\treturn NS_OK;\n}\n\n#endif /* _DEBUG_LIFETIMES */\n\n\n\nPyObject *PyObject_FromNSInterface( nsISupports *aInterface,\n const nsIID &iid,\n PRBool bMakeNicePyObject /*= PR_TRUE */)\n{\n\treturn Py_nsISupports::PyObjectFromInterface(aInterface, iid,\n\t bMakeNicePyObject);\n}\n\nPRInt32\n_PyXPCOM_GetInterfaceCount(void)\n{\n\treturn cInterfaces;\n}\n\nPy_nsISupports::Py_nsISupports(nsISupports *punk, const nsIID &iid, PyTypeObject *this_type)\n{\n\tob_type = this_type;\n\tm_obj = punk;\n\tm_iid = iid;\n\t// refcnt of object managed by caller.\n\tPR_AtomicIncrement(&cInterfaces);\n\tPyXPCOM_DLLAddRef();\n\t_Py_NewReference(this);\n\n#ifdef VBOX_DEBUG_LIFETIMES\n RTOnce(&g_Once, initOnceCallback, NULL);\n RTCritSectEnter(&g_CritSect);\n RTListAppend(&g_List, &m_ListEntry);\n RTCritSectLeave(&g_CritSect);\n\tPyXPCOM_LogWarning(\"Creating %p: iid=%RTuuid obj=%p\", this, &m_iid, punk);\n#endif\n}\n\nPy_nsISupports::~Py_nsISupports()\n{\n#ifdef VBOX_DEBUG_LIFETIMES\n\tRTCritSectEnter(&g_CritSect);\n\tnsISupports *punk = m_obj;\n\tRTListNodeRemove(&m_ListEntry);\n\tRTCritSectLeave(&g_CritSect);\n\tPyXPCOM_LogWarning(\"Destroying %p: iid=%RTuuid obj=%p\", this, &m_iid, punk);\n#endif\n\n\tSafeRelease(this);\n\tPR_AtomicDecrement(&cInterfaces);\n\tPyXPCOM_DLLRelease();\n}\n\n/*static*/ nsISupports *\nPy_nsISupports::GetI(PyObject *self, nsIID *ret_iid)\n{\n\tif (self==NULL) {\n\t\tPyErr_SetString(PyExc_ValueError, \"The Python object is invalid\");\n\t\treturn NULL;\n\t}\n\tPy_nsISupports *pis = (Py_nsISupports *)self;\n\tif (pis->m_obj==NULL) {\n\t\t// This should never be able to happen.\n\t\tPyErr_SetString(PyExc_ValueError, \"Internal Error - The XPCOM object has been released.\");\n\t\treturn NULL;\n\t}\n\tif (ret_iid)\n\t\t*ret_iid = pis->m_iid;\n\treturn pis->m_obj;\n}\n\n/*static*/ void\nPy_nsISupports::SafeRelease(Py_nsISupports *ob)\n{\n\tif (!ob)\n\t\treturn;\n\tif (ob->m_obj)\n\t{\n\t\tPy_BEGIN_ALLOW_THREADS;\n\t\tob->m_obj = nsnull;\n\t\tPy_END_ALLOW_THREADS;\n\t}\n}\n\n/* virtual */ PyObject *\nPy_nsISupports::getattr(const char *name)\n{\n\tif (strcmp(name, \"IID\")==0)\n\t\treturn Py_nsIID::PyObjectFromIID( m_iid );\n\n\t// Support for __unicode__ until we get a tp_unicode slot.\n\tif (strcmp(name, \"__unicode__\")==0) {\n\t\tnsresult rv;\n\t\tPRUnichar *val = NULL;\n\t\tPy_BEGIN_ALLOW_THREADS;\n\t\t{ // scope to kill pointer while thread-lock released.\n\t\tnsCOMPtr ss( do_QueryInterface(m_obj, &rv ));\n\t\tif (NS_SUCCEEDED(rv))\n\t\t\trv = ss->ToString(&val);\n\t\t} // end-scope\n\t\tPy_END_ALLOW_THREADS;\n\t\tPyObject *ret = NS_FAILED(rv) ?\n\t\t\tPyXPCOM_BuildPyException(rv) :\n\t\t\tPyObject_FromNSString(val);\n\t\tif (val) nsMemory::Free(val);\n\t\treturn ret;\n\t}\n\tPyXPCOM_TypeObject *this_type = (PyXPCOM_TypeObject *)ob_type;\n\treturn Py_FindMethodInChain(&this_type->chain, this, (char *)name);\n}\n\n/* virtual */ int\nPy_nsISupports::setattr(const char *name, PyObject *v)\n{\n\tchar buf[128];\n#ifdef VBOX\n\tsnprintf(buf, sizeof(buf), \"%s has read-only attributes\", ob_type->tp_name );\n#else\n\tsprintf(buf, \"%s has read-only attributes\", ob_type->tp_name );\n#endif\n\tPyErr_SetString(PyExc_TypeError, buf);\n\treturn -1;\n}\n\n/*static*/ Py_nsISupports *\nPy_nsISupports::Constructor(nsISupports *pInitObj, const nsIID &iid)\n{\n\treturn new Py_nsISupports(pInitObj,\n\t\t\t\t iid,\n\t\t\t\t type);\n}\n\nPRBool\nPy_nsISupports::InterfaceFromPyISupports(PyObject *ob,\n const nsIID &iid,\n nsISupports **ppv)\n{\n\tnsISupports *pis;\n\tPRBool rc = PR_FALSE;\n\tif ( !Check(ob) )\n\t{\n\t\tPyErr_Format(PyExc_TypeError, \"Objects of type '%s' can not be used as COM objects\", ob->ob_type->tp_name);\n\t\tgoto done;\n\t}\n\tnsIID already_iid;\n\tpis = GetI(ob, &already_iid);\n\tif ( !pis )\n\t\tgoto done;\t/* exception was set by GetI() */\n\t/* note: we don't (yet) explicitly hold a reference to pis */\n\tif (iid.Equals(Py_nsIID_NULL)) {\n\t\t// a bit of a hack - we are asking for the arbitary interface\n\t\t// wrapped by this object, not some other specific interface -\n\t\t// so no QI, just an AddRef();\n\t\tPy_BEGIN_ALLOW_THREADS\n\t\tpis->AddRef();\n\t\tPy_END_ALLOW_THREADS\n\t\t*ppv = pis;\n\t} else {\n\t\t// specific interface requested - if it is not already the\n\t\t// specific interface, QI for it and discard pis.\n\t\tif (iid.Equals(already_iid)) {\n\t\t\t*ppv = pis;\n\t\t\tpis->AddRef();\n\t\t} else {\n\t\t\tnsresult r;\n\t\t\tPy_BEGIN_ALLOW_THREADS\n\t\t\tr = pis->QueryInterface(iid, (void **)ppv);\n\t\t\tPy_END_ALLOW_THREADS\n\t\t\tif ( NS_FAILED(r) )\n\t\t\t{\n\t\t\t\tPyXPCOM_BuildPyException(r);\n\t\t\t\tgoto done;\n\t\t\t}\n\t\t\t/* note: the QI added a ref for the return value */\n\t\t}\n\t}\n\trc = PR_TRUE;\ndone:\n\treturn rc;\n}\n\nPRBool\nPy_nsISupports::InterfaceFromPyObject(PyObject *ob,\n\t\t\t\t\t const nsIID &iid,\n\t\t\t\t\t nsISupports **ppv,\n\t\t\t\t\t PRBool bNoneOK,\n\t\t\t\t\t PRBool bTryAutoWrap /* = PR_TRUE */)\n{\n\tif ( ob == NULL )\n\t{\n\t\t// don't overwrite an error message\n\t\tif ( !PyErr_Occurred() )\n\t\t\tPyErr_SetString(PyExc_TypeError, \"The Python object is invalid\");\n\t\treturn PR_FALSE;\n\t}\n\tif ( ob == Py_None )\n\t{\n\t\tif ( bNoneOK )\n\t\t{\n\t\t\t*ppv = NULL;\n\t\t\treturn PR_TRUE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tPyErr_SetString(PyExc_TypeError, \"None is not a invalid interface object in this context\");\n\t\t\treturn PR_FALSE;\n\t\t}\n\t}\n\n\t// support nsIVariant\n\tif (iid.Equals(NS_GET_IID(nsIVariant)) || iid.Equals(NS_GET_IID(nsIWritableVariant))) {\n\t\t// Check it is not already nsIVariant\n\t\tif (PyObject_HasAttrString(ob, \"__class__\")) {\n\t\t\tPyObject *sub_ob = PyObject_GetAttrString(ob, \"_comobj_\");\n\t\t\tif (sub_ob==NULL) {\n\t\t\t\tPyErr_Clear();\n\t\t\t} else {\n\t\t\t\tif (InterfaceFromPyISupports(sub_ob, iid, ppv)) {\n\t\t\t\t\tPy_DECREF(sub_ob);\n\t\t\t\t\treturn PR_TRUE;\n\t\t\t\t}\n\t\t\t\tPyErr_Clear();\n\t\t\t\tPy_DECREF(sub_ob);\n\t\t\t}\n\t\t}\n\t\tnsresult nr = PyObject_AsVariant(ob, (nsIVariant **)ppv);\n\t\tif (NS_FAILED(nr)) {\n\t\t\tPyXPCOM_BuildPyException(nr);\n\t\t\treturn PR_FALSE;\n\t\t}\n\t\tNS_ASSERTION(ppv != nsnull, \"PyObject_AsVariant worked but gave null!\");\n\t\treturn PR_TRUE;\n\t}\n\t// end of variant support.\n\n\tif (PyObject_HasAttrString(ob, \"__class__\")) {\n\t\t// Get the _comobj_ attribute\n\t\tPyObject *use_ob = PyObject_GetAttrString(ob, \"_comobj_\");\n\t\tif (use_ob==NULL) {\n\t\t\tPyErr_Clear();\n\t\t\tif (bTryAutoWrap)\n\t\t\t\t// Try and auto-wrap it - errors will leave Py exception set,\n\t\t\t\treturn PyXPCOM_XPTStub::AutoWrapPythonInstance(ob, iid, ppv);\n\t\t\tPyErr_SetString(PyExc_TypeError, \"The Python instance can not be converted to an XPCOM object\");\n\t\t\treturn PR_FALSE;\n\t\t} else\n\t\t\tob = use_ob;\n\n\t} else {\n\t\tPy_INCREF(ob);\n\t}\n\tPRBool rc = InterfaceFromPyISupports(ob, iid, ppv);\n\tPy_DECREF(ob);\n\treturn rc;\n}\n\n\n// Interface conversions\n/*static*/void\nPy_nsISupports::RegisterInterface( const nsIID &iid, PyTypeObject *t)\n{\n\tif (mapIIDToType==NULL)\n\t\tmapIIDToType = PyDict_New();\n\n\tif (mapIIDToType) {\n\t\tPyObject *key = Py_nsIID::PyObjectFromIID(iid);\n\t\tif (key)\n\t\t\tPyDict_SetItem(mapIIDToType, key, (PyObject *)t);\n\t\tPy_XDECREF(key);\n\t}\n}\n\n/*static */PyObject *\nPy_nsISupports::PyObjectFromInterface(nsISupports *pis,\n\t\t\t\t const nsIID &riid,\n\t\t\t\t PRBool bMakeNicePyObject, /* = PR_TRUE */\n\t\t\t\t PRBool bIsInternalCall /* = PR_FALSE */)\n{\n\t// Quick exit.\n\tif (pis==NULL) {\n\t\tPy_INCREF(Py_None);\n\t\treturn Py_None;\n\t}\n\n\tif (!bIsInternalCall) {\n#ifdef NS_DEBUG\n\t\tnsISupports *queryResult = nsnull;\n\t\tPy_BEGIN_ALLOW_THREADS;\n\t\tpis->QueryInterface(riid, (void **)&queryResult);\n\t\tPy_END_ALLOW_THREADS;\n\t\tNS_ASSERTION(queryResult == pis, \"QueryInterface needed\");\n\t\tNS_IF_RELEASE(queryResult);\n#endif\n\t}\n\n\tPyTypeObject *createType = NULL;\n\t// If the IID is for nsISupports, dont bother with\n\t// a map lookup as we know the type!\n\tif (!riid.Equals(NS_GET_IID(nsISupports))) {\n\t\t// Look up the map\n\t\tPyObject *obiid = Py_nsIID::PyObjectFromIID(riid);\n\t\tif (!obiid) return NULL;\n\n\t\tif (mapIIDToType != NULL)\n\t\t\tcreateType = (PyTypeObject *)PyDict_GetItem(mapIIDToType, obiid);\n\t\tPy_DECREF(obiid);\n\t}\n\tif (createType==NULL)\n\t\tcreateType = Py_nsISupports::type;\n\t// Check it is indeed one of our types.\n\tif (!PyXPCOM_TypeObject::IsType(createType)) {\n\t\tPyErr_SetString(PyExc_RuntimeError, \"The type map is invalid\");\n\t\treturn NULL;\n\t}\n\t// we can now safely cast the thing to a PyComTypeObject and use it\n\tPyXPCOM_TypeObject *myCreateType = (PyXPCOM_TypeObject *)createType;\n\tif (myCreateType->ctor==NULL) {\n\t\tPyErr_SetString(PyExc_TypeError, \"The type does not declare a PyCom constructor\");\n\t\treturn NULL;\n\t}\n\n\tPy_nsISupports *ret = (*myCreateType->ctor)(pis, riid);\n#ifdef _DEBUG_LIFETIMES\n\tPyXPCOM_LogF(\"XPCOM Object created at 0x%0xld, nsISupports at 0x%0xld\",\n\t\tret, ret->m_obj);\n#endif\n\tif (ret && bMakeNicePyObject)\n\t\treturn MakeDefaultWrapper(ret, riid);\n\treturn ret;\n}\n\n// Call back into Python, passing a raw nsIInterface object, getting back\n// the object to actually pass to Python.\nPyObject *\nPy_nsISupports::MakeDefaultWrapper(PyObject *pyis,\n\t\t\t const nsIID &iid)\n{\n\tNS_PRECONDITION(pyis, \"NULL pyobject!\");\n\tPyObject *obIID = NULL;\n\tPyObject *args = NULL;\n\tPyObject *mod = NULL;\n\tPyObject *ret = NULL;\n\n\tobIID = Py_nsIID::PyObjectFromIID(iid);\n\tif (obIID==NULL)\n\t\tgoto done;\n\n\tif (g_obFuncMakeInterfaceCount==NULL) {\n\t\tPyObject *mod = PyImport_ImportModule(\"xpcom.client\");\n\t\tif (mod)\n\t\t\tg_obFuncMakeInterfaceCount = PyObject_GetAttrString(mod, \"MakeInterfaceResult\");\n\t\tPy_XDECREF(mod);\n\t}\n\tif (g_obFuncMakeInterfaceCount==NULL) goto done;\n\n\targs = Py_BuildValue(\"OO\", pyis, obIID);\n\tif (args==NULL) goto done;\n\tret = PyEval_CallObject(g_obFuncMakeInterfaceCount, args);\ndone:\n\tif (PyErr_Occurred()) {\n\t\tNS_ABORT_IF_FALSE(ret==NULL, \"Have an error, but also a return val!\");\n\t\tPyXPCOM_LogError(\"Creating an interface object to be used as a result failed\\n\");\n\t\tPyErr_Clear();\n\t}\n\tPy_XDECREF(mod);\n\tPy_XDECREF(args);\n\tPy_XDECREF(obIID);\n\tif (ret==NULL) // eek - error - return the original with no refcount mod.\n\t\tret = pyis;\n\telse\n\t\t// no error - decref the old object\n\t\tPy_DECREF(pyis);\n\t// return our obISupports. If NULL, we are really hosed and nothing we can do.\n\treturn ret;\n}\n\n// @pymethod |Py_nsISupports|QueryInterface|Queries an object for a specific interface.\nPyObject *\nPy_nsISupports::QueryInterface(PyObject *self, PyObject *args)\n{\n\tPyObject *obiid;\n\tint bWrap = 1;\n\t// @pyparm IID|iid||The IID requested.\n\t// @rdesc The result is always a object.\n\t// Any error (including E_NOINTERFACE) will generate a exception.\n\tif (!PyArg_ParseTuple(args, \"O|i:QueryInterface\", &obiid, &bWrap))\n\t\treturn NULL;\n\n\tnsIID\tiid;\n\tif (!Py_nsIID::IIDFromPyObject(obiid, &iid))\n\t\treturn NULL;\n\n\tnsISupports *pMyIS = GetI(self);\n\tif (pMyIS==NULL) return NULL;\n\n\t// Optimization, If we already wrap the IID, just return\n\t// ourself.\n\tif (!bWrap && iid.Equals(((Py_nsISupports *)self)->m_iid)) {\n\t\tPy_INCREF(self);\n\t\treturn self;\n\t}\n\n\tnsCOMPtr pis;\n\tnsresult r;\n\tPy_BEGIN_ALLOW_THREADS;\n\tr = pMyIS->QueryInterface(iid, getter_AddRefs(pis));\n\tPy_END_ALLOW_THREADS;\n\n\t/* Note that this failure may include E_NOINTERFACE */\n\tif ( NS_FAILED(r) )\n\t\treturn PyXPCOM_BuildPyException(r);\n\n\t/* Return a type based on the IID (with no extra ref) */\n\treturn ((Py_nsISupports *)self)->MakeInterfaceResult(pis, iid, (PRBool)bWrap);\n}\n\n\n#ifdef VBOX\nstatic PyObject *\nQueryErrorObject(PyObject *self, PyObject *args)\n{\n\tnsresult rc = 0;\n\n\tif (!PyArg_ParseTuple(args, \"i\", &rc))\n\t\treturn NULL;\n\n return PyXPCOM_BuildErrorMessage(rc);\n}\n#endif\n\n// @object Py_nsISupports|The base object for all PythonCOM objects. Wraps a COM nsISupports interface.\n/*static*/ struct PyMethodDef\nPy_nsISupports::methods[] =\n{\n\t{ \"queryInterface\", Py_nsISupports::QueryInterface, 1, \"Queries the object for an interface.\"},\n\t{ \"QueryInterface\", Py_nsISupports::QueryInterface, 1, \"An alias for queryInterface.\"},\n#ifdef VBOX\n { \"QueryErrorObject\", QueryErrorObject, 1, \"Query an error object for given status code.\"},\n#endif\n\t{NULL}\n};\n\n/*static*/void Py_nsISupports::InitType(void)\n{\n\ttype = new PyXPCOM_TypeObject(\n\t\t\"nsISupports\",\n\t\tNULL,\n\t\tsizeof(Py_nsISupports),\n\t\tmethods,\n\t\tConstructor);\n}\n\nPyXPCOM_TypeObject *Py_nsISupports::type = NULL;\nPyObject *Py_nsISupports::mapIIDToType = NULL;\n"},"meta":{"kind":"string","value":"{'content_hash': '4c2f6db380c23b6a2ddbb412ac283e40', 'timestamp': '', 'source': 'github', 'line_count': 530, 'max_line_length': 109, 'avg_line_length': 26.039622641509435, 'alnum_prop': 0.6710383305557568, 'repo_name': 'egraba/vbox_openbsd', 'id': 'f848dff705ce95ec73a5c8c19aa4fed0862f0670', 'size': '15567', 'binary': False, 'copies': '8', 'ref': 'refs/heads/master', 'path': 'VirtualBox-5.0.0/src/libs/xpcom18a4/python/src/PyISupports.cpp', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Ada', 'bytes': '88714'}, {'name': 'Assembly', 'bytes': '4303680'}, {'name': 'AutoIt', 'bytes': '2187'}, {'name': 'Batchfile', 'bytes': '95534'}, {'name': 'C', 'bytes': '192632221'}, {'name': 'C#', 'bytes': '64255'}, {'name': 'C++', 'bytes': '83842667'}, {'name': 'CLIPS', 'bytes': '5291'}, {'name': 'CMake', 'bytes': '6041'}, {'name': 'CSS', 'bytes': '26756'}, {'name': 'D', 'bytes': '41844'}, {'name': 'DIGITAL Command Language', 'bytes': '56579'}, {'name': 'DTrace', 'bytes': '1466646'}, {'name': 'GAP', 'bytes': '350327'}, {'name': 'Groff', 'bytes': '298540'}, {'name': 'HTML', 'bytes': '467691'}, {'name': 'IDL', 'bytes': '106734'}, {'name': 'Java', 'bytes': '261605'}, {'name': 'JavaScript', 'bytes': '80927'}, {'name': 'Lex', 'bytes': '25122'}, {'name': 'Logos', 'bytes': '4941'}, {'name': 'Makefile', 'bytes': '426902'}, {'name': 'Module Management System', 'bytes': '2707'}, {'name': 'NSIS', 'bytes': '177212'}, {'name': 'Objective-C', 'bytes': '5619792'}, {'name': 'Objective-C++', 'bytes': '81554'}, {'name': 'PHP', 'bytes': '58585'}, {'name': 'Pascal', 'bytes': '69941'}, {'name': 'Perl', 'bytes': '240063'}, {'name': 'PowerShell', 'bytes': '10664'}, {'name': 'Python', 'bytes': '9094160'}, {'name': 'QMake', 'bytes': '3055'}, {'name': 'R', 'bytes': '21094'}, {'name': 'SAS', 'bytes': '1847'}, {'name': 'Shell', 'bytes': '1460572'}, {'name': 'SourcePawn', 'bytes': '4139'}, {'name': 'TypeScript', 'bytes': '142342'}, {'name': 'Visual Basic', 'bytes': '7161'}, {'name': 'XSLT', 'bytes': '1034475'}, {'name': 'Yacc', 'bytes': '22312'}]}"}}},{"rowIdx":849126,"cells":{"text":{"kind":"string","value":"\n\n \n \n \n Coq bench\n \n \n \n \n \n \n \n \n \n
    \n
    \n
    \n
    \n \n Coq bench\n
    \n \n
    \n
    \n
    \n
    \n
    \n « Up\n

    \n contrib:orb-stab\n \n dev\n Error\n \n

    \n

    (2014-12-17 15:25:52 UTC)

    \n

    Lint

    \n
    \n
    Command
    \n
    ruby lint.rb unstable ../unstable/packages/coq:contrib:orb-stab/coq:contrib:orb-stab.dev
    \n
    Return code
    \n
    0
    \n
    Duration
    \n
    0 s
    \n
    Output
    \n
    The package is valid.\n
    \n
    \n

    Dry install

    \n

    Dry install with the current Coq version:

    \n
    \n
    Command
    \n
    opam install -y --dry-run coq:contrib:orb-stab.dev coq.hott
    \n
    Return code
    \n
    0
    \n
    Duration
    \n
    1 s
    \n
    Output
    \n
    [NOTE] Package coq is already installed (current version is hott).\nThe following actions will be performed:\n - install   coq:contrib:orb-stab.dev\n=== 1 to install ===\n=-=- Synchronizing package archives -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n=-=- Installing packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\nBuilding coq:contrib:orb-stab.dev:\n  coq_makefile -f Make -o Makefile\n  make -j4\n  make install\nInstalling coq:contrib:orb-stab.dev.\n
    \n
    \n

    Dry install without Coq, to test if the problem was incompatibility with the current Coq version:

    \n
    \n
    Command
    \n
    true
    \n
    Return code
    \n
    0
    \n
    Duration
    \n
    0 s
    \n
    \n

    Install dependencies

    \n
    \n
    Command
    \n
    opam install -y --deps-only coq:contrib:orb-stab.dev
    \n
    Return code
    \n
    0
    \n
    Duration
    \n
    2 s
    \n
    \n

    Install

    \n
    \n
    Command
    \n
    opam install -y --verbose coq:contrib:orb-stab.dev
    \n
    Return code
    \n
    1024
    \n
    Duration
    \n
    2 s
    \n
    Output
    \n
    The following actions will be performed:\n - install   coq:contrib:orb-stab.dev\n=== 1 to install ===\n=-=- Synchronizing package archives -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n[coq:contrib:orb-stab] Fetching https://gforge.inria.fr/git/coq-contribs/orb-stab.git#trunk\nInitialized empty Git repository in /home/bench/.opam/packages.dev/coq:contrib:orb-stab.dev/.git/\n[master (root-commit) 90a6b13] opam-git-init\nFrom https://gforge.inria.fr/git/coq-contribs/orb-stab\n * [new branch]      trunk      -> opam-ref\n * [new branch]      trunk      -> origin/trunk\nCOPYING\nCOPYING.LESSER\nMake\nMakefile\ndescription\norbstab.v\nHEAD is now at 19f68b7 Revert "Regenerating Makefiles." We will be able to do so when we have access\n=-=- Installing packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\nBuilding coq:contrib:orb-stab.dev:\n  coq_makefile -f Make -o Makefile\n  make -j4\n  make install\nWarning: in option -R, ../../Nijmegen/LinAlg is not a subdirectory of the current directory\nWarning: install rule assumes that -R/-Q . _ is the only -R/-Q optionWarning: install rule assumes that -R/-Q . _ is the only -R/-Q optionWarning: -R/-Q options don't have a correct common prefix,\n install-doc will put anything in $INSTALLDEFAULTROOT\n"coqdep" -c -R "../../Nijmegen/LinAlg" LinAlg -R "../../Sophia-Antipolis/Algebra" Algebra -R "." OrbStab "orbstab.v" > "orbstab.v.d" || ( RV=$?; rm -f "orbstab.v.d"; exit ${RV} )\ncoqdep: "opendir" failed on "../../Nijmegen/LinAlg": No such file or directory\n"coqc"  -q  -R "../../Nijmegen/LinAlg" LinAlg -R "../../Sophia-Antipolis/Algebra" Algebra -R "." OrbStab   orbstab\nWarning: Cannot open ../../Nijmegen/LinAlg\nWarning: Cannot open ../../Sophia-Antipolis/Algebra\nFile "./orbstab.v", line 21, characters 0-26:\nError: Cannot find library Group_util in loadpath\nmake: *** [orbstab.vo] Error 1\nMakefile:228: recipe for target 'orbstab.vo' failed\n[ERROR] The compilation of coq:contrib:orb-stab.dev failed.\nRemoving coq:contrib:orb-stab.dev.\n  rm -R /home/bench/.opam/system/lib/coq/user-contrib/orb-stab\nrm: cannot remove '/home/bench/.opam/system/lib/coq/user-contrib/orb-stab': No such file or directory\n#=== ERROR while installing coq:contrib:orb-stab.dev ==========================#\n# opam-version         1.2.0\n# os                   linux\n# command              make -j4\n# path                 /home/bench/.opam/system/build/coq:contrib:orb-stab.dev\n# compiler             system (4.02.1)\n# exit-code            2\n# env-file             /home/bench/.opam/system/build/coq:contrib:orb-stab.dev/coq:contrib:orb-stab-22794-d2c37b.env\n# stdout-file          /home/bench/.opam/system/build/coq:contrib:orb-stab.dev/coq:contrib:orb-stab-22794-d2c37b.out\n# stderr-file          /home/bench/.opam/system/build/coq:contrib:orb-stab.dev/coq:contrib:orb-stab-22794-d2c37b.err\n### stdout ###\n# "coqdep" -c -R "../../Nijmegen/LinAlg" LinAlg -R "../../Sophia-Antipolis/Algebra" Algebra -R "." OrbStab "orbstab.v" > "orbstab.v.d" || ( RV=$?; rm -f "orbstab.v.d"; exit ${RV} )\n# "coqc"  -q  -R "../../Nijmegen/LinAlg" LinAlg -R "../../Sophia-Antipolis/Algebra" Algebra -R "." OrbStab   orbstab\n# Makefile:228: recipe for target 'orbstab.vo' failed\n### stderr ###\n# Warning: in option -R, ../../Nijmegen/LinAlg is not a subdirectory of the current directory\n# Warning: install rule assumes that -R/-Q . _ is the only -R/-Q optionWarning: install rule assumes that -R/-Q . _ is the only -R/-Q optionWarning: -R/-Q options don't have a correct common prefix,\n#  install-doc will put anything in $INSTALLDEFAULTROOT\n# coqdep: "opendir" failed on "../../Nijmegen/LinAlg": No such file or directory\n# Warning: Cannot open ../../Nijmegen/LinAlg\n# Warning: Cannot open ../../Sophia-Antipolis/Algebra\n# File "./orbstab.v", line 21, characters 0-26:\n# Error: Cannot find library Group_util in loadpath\n# make: *** [orbstab.vo] Error 1\n'opam install -y --verbose coq:contrib:orb-stab.dev' failed.\n
    \n
    \n

    Installation size

    \n

    No files were installed.

    \n

    Uninstall

    \n
    \n
    Command
    \n
    true
    \n
    Return code
    \n
    0
    \n
    Duration
    \n
    0 s
    \n
    Missing removes
    \n
    \n none\n
    \n
    Wrong removes
    \n
    \n none\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n

    \n Sources are on GitHub. © Guillaume Claret.\n

    \n
    \n
    \n \n \n \n"},"meta":{"kind":"string","value":"{'content_hash': '7e7fd17516b9d0179d83299f497d276f', 'timestamp': '', 'source': 'github', 'line_count': 214, 'max_line_length': 253, 'avg_line_length': 47.83644859813084, 'alnum_prop': 0.5609065155807366, 'repo_name': 'coq-bench/coq-bench.github.io-old', 'id': 'd42af6df86c8f1413957e757136e3ced387194b6', 'size': '10239', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'clean/Linux-x86_64-4.02.1-1.2.0/unstable/hott/contrib:orb-stab/dev/2014-12-17_15-25-52.html', 'mode': '33188', 'license': 'mit', 'language': []}"}}},{"rowIdx":849127,"cells":{"text":{"kind":"string","value":"////////////////////////////////////////////////////////////////////////////////\n/// DISCLAIMER\n///\n/// Copyright 2016 ArangoDB GmbH, Cologne, Germany\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/// Copyright holder is ArangoDB GmbH, Cologne, Germany\n///\n/// @author Jan Steemann\n////////////////////////////////////////////////////////////////////////////////\n\n#include \"ViewTypesFeature.h\"\n\n#include \"ApplicationFeatures/ApplicationServer.h\"\n#include \"Basics/StaticStrings.h\"\n#include \"Basics/VelocyPackHelper.h\"\n#include \"FeaturePhases/BasicFeaturePhaseServer.h\"\n#include \"ProgramOptions/ProgramOptions.h\"\n#include \"ProgramOptions/Section.h\"\n#include \"RestServer/BootstrapFeature.h\"\n#include \"Utils/Events.h\"\n\nnamespace {\n\nstruct InvalidViewFactory : public arangodb::ViewFactory {\n virtual arangodb::Result create(arangodb::LogicalView::ptr&, TRI_vocbase_t& vocbase,\n arangodb::velocypack::Slice const& definition) const override {\n std::string name;\n if (definition.isObject()) {\n name = arangodb::basics::VelocyPackHelper::getStringValue(\n definition, arangodb::StaticStrings::DataSourceName, \"\");\n }\n arangodb::events::CreateView(vocbase.name(), name, TRI_ERROR_INTERNAL);\n return arangodb::Result(\n TRI_ERROR_BAD_PARAMETER,\n std::string(\n \"invalid type provided to create view with definition: \") +\n definition.toString());\n }\n\n virtual arangodb::Result instantiate(arangodb::LogicalView::ptr&, TRI_vocbase_t&,\n arangodb::velocypack::Slice const& definition,\n uint64_t) const override {\n return arangodb::Result(\n TRI_ERROR_BAD_PARAMETER,\n std::string(\n \"invalid type provided to instantiate view with definition: \") +\n definition.toString());\n }\n};\n\nstd::string const FEATURE_NAME(\"ViewTypes\");\nInvalidViewFactory const INVALID;\n\n} // namespace\n\nnamespace arangodb {\n\nViewTypesFeature::ViewTypesFeature(application_features::ApplicationServer& server)\n : application_features::ApplicationFeature(server, ViewTypesFeature::name()) {\n setOptional(false);\n startsAfter();\n}\n\nResult ViewTypesFeature::emplace(LogicalDataSource::Type const& type,\n ViewFactory const& factory) {\n\n // ensure new factories are not added at runtime since that would require\n // additional locks\n if (server().hasFeature()) {\n auto& bootstrapFeature = server().getFeature();\n if (bootstrapFeature.isReady()) {\n return arangodb::Result(TRI_ERROR_INTERNAL,\n std::string(\"view factory registration is only \"\n \"allowed during server startup\"));\n }\n }\n\n if (!isEnabled()) { // should not be called\n TRI_ASSERT(false);\n return arangodb::Result();\n }\n \n if (!_factories.emplace(&type, &factory).second) {\n return arangodb::Result(TRI_ERROR_ARANGO_DUPLICATE_IDENTIFIER, std::string(\"view factory previously registered during view factory \"\n \"registration for view type '\") +\n type.name() +\n \"'\");\n }\n\n return arangodb::Result();\n}\n\nViewFactory const& ViewTypesFeature::factory(LogicalDataSource::Type const& type) const noexcept {\n auto itr = _factories.find(&type);\n TRI_ASSERT(itr == _factories.end() || false == !(itr->second)); // ViewTypesFeature::emplace(...)\n // inserts non-nullptr\n\n return itr == _factories.end() ? INVALID : *(itr->second);\n}\n\n/*static*/ std::string const& ViewTypesFeature::name() { return FEATURE_NAME; }\n\nvoid ViewTypesFeature::prepare() {}\n\nvoid ViewTypesFeature::unprepare() { _factories.clear(); }\n\n} // namespace arangodb\n\n// -----------------------------------------------------------------------------\n// --SECTION-- END-OF-FILE\n// -----------------------------------------------------------------------------\n"},"meta":{"kind":"string","value":"{'content_hash': 'a2f1e46335a945a180aec402bb9cb746', 'timestamp': '', 'source': 'github', 'line_count': 123, 'max_line_length': 136, 'avg_line_length': 39.3089430894309, 'alnum_prop': 0.5838676318510858, 'repo_name': 'fceller/arangodb', 'id': 'e19cab3ba5de2368471d85afa4f48708bddd7547', 'size': '4835', 'binary': False, 'copies': '1', 'ref': 'refs/heads/devel', 'path': 'arangod/RestServer/ViewTypesFeature.cpp', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Ada', 'bytes': '89080'}, {'name': 'AppleScript', 'bytes': '1429'}, {'name': 'Assembly', 'bytes': '142084'}, {'name': 'Batchfile', 'bytes': '9073'}, {'name': 'C', 'bytes': '1938354'}, {'name': 'C#', 'bytes': '55625'}, {'name': 'C++', 'bytes': '79379178'}, {'name': 'CLIPS', 'bytes': '5291'}, {'name': 'CMake', 'bytes': '109718'}, {'name': 'CSS', 'bytes': '1341035'}, {'name': 'CoffeeScript', 'bytes': '94'}, {'name': 'DIGITAL Command Language', 'bytes': '27303'}, {'name': 'Emacs Lisp', 'bytes': '15477'}, {'name': 'Go', 'bytes': '1018005'}, {'name': 'Groff', 'bytes': '263567'}, {'name': 'HTML', 'bytes': '459886'}, {'name': 'JavaScript', 'bytes': '55446690'}, {'name': 'LLVM', 'bytes': '39361'}, {'name': 'Lua', 'bytes': '16189'}, {'name': 'Makefile', 'bytes': '178253'}, {'name': 'Module Management System', 'bytes': '1545'}, {'name': 'NSIS', 'bytes': '26909'}, {'name': 'Objective-C', 'bytes': '4430'}, {'name': 'Objective-C++', 'bytes': '1857'}, {'name': 'Pascal', 'bytes': '145262'}, {'name': 'Perl', 'bytes': '227308'}, {'name': 'Protocol Buffer', 'bytes': '5837'}, {'name': 'Python', 'bytes': '3563935'}, {'name': 'Ruby', 'bytes': '1000962'}, {'name': 'SAS', 'bytes': '1847'}, {'name': 'Scheme', 'bytes': '19885'}, {'name': 'Shell', 'bytes': '488846'}, {'name': 'VimL', 'bytes': '4075'}, {'name': 'Yacc', 'bytes': '36950'}]}"}}},{"rowIdx":849128,"cells":{"text":{"kind":"string","value":"getSheetIndex()) {\n $orientation = ($this->spreadsheet->getSheet(0)->getPageSetup()->getOrientation()\n == PageSetup::ORIENTATION_LANDSCAPE) ? 'L' : 'P';\n $printPaperSize = $this->spreadsheet->getSheet(0)->getPageSetup()->getPaperSize();\n } else {\n $orientation = ($this->spreadsheet->getSheet($this->getSheetIndex())->getPageSetup()->getOrientation()\n == PageSetup::ORIENTATION_LANDSCAPE) ? 'L' : 'P';\n $printPaperSize = $this->spreadsheet->getSheet($this->getSheetIndex())->getPageSetup()->getPaperSize();\n }\n $this->setOrientation($orientation);\n\n // Override Page Orientation\n if (null !== $this->getOrientation()) {\n $orientation = ($this->getOrientation() == PageSetup::ORIENTATION_DEFAULT)\n ? PageSetup::ORIENTATION_PORTRAIT\n : $this->getOrientation();\n }\n $orientation = strtoupper($orientation);\n\n // Override Paper Size\n if (null !== $this->getPaperSize()) {\n $printPaperSize = $this->getPaperSize();\n }\n\n if (isset(self::$paperSizes[$printPaperSize])) {\n $paperSize = self::$paperSizes[$printPaperSize];\n }\n\n // Create PDF\n $config = ['tempDir' => $this->tempDir];\n $pdf = $this->createExternalWriterInstance($config);\n $ortmp = $orientation;\n $pdf->_setPageSize(strtoupper($paperSize), $ortmp);\n $pdf->DefOrientation = $orientation;\n $pdf->AddPageByArray([\n 'orientation' => $orientation,\n 'margin-left' => $this->inchesToMm($this->spreadsheet->getActiveSheet()->getPageMargins()->getLeft()),\n 'margin-right' => $this->inchesToMm($this->spreadsheet->getActiveSheet()->getPageMargins()->getRight()),\n 'margin-top' => $this->inchesToMm($this->spreadsheet->getActiveSheet()->getPageMargins()->getTop()),\n 'margin-bottom' => $this->inchesToMm($this->spreadsheet->getActiveSheet()->getPageMargins()->getBottom()),\n ]);\n\n // Document info\n $pdf->SetTitle($this->spreadsheet->getProperties()->getTitle());\n $pdf->SetAuthor($this->spreadsheet->getProperties()->getCreator());\n $pdf->SetSubject($this->spreadsheet->getProperties()->getSubject());\n $pdf->SetKeywords($this->spreadsheet->getProperties()->getKeywords());\n $pdf->SetCreator($this->spreadsheet->getProperties()->getCreator());\n\n $pdf->WriteHTML($this->generateHTMLHeader(false));\n $html = $this->generateSheetData();\n foreach (\\array_chunk(\\explode(PHP_EOL, $html), 1000) as $lines) {\n $pdf->WriteHTML(\\implode(PHP_EOL, $lines));\n }\n $pdf->WriteHTML($this->generateHTMLFooter());\n\n // Write to file\n fwrite($fileHandle, $pdf->Output('', 'S'));\n\n parent::restoreStateAfterSave($fileHandle);\n }\n\n /**\n * Convert inches to mm.\n *\n * @param float $inches\n *\n * @return float\n */\n private function inchesToMm($inches)\n {\n return $inches * 25.4;\n }\n}\n"},"meta":{"kind":"string","value":"{'content_hash': 'cd7830f77277964f3eb6b49db10a5597', 'timestamp': '', 'source': 'github', 'line_count': 112, 'max_line_length': 118, 'avg_line_length': 37.107142857142854, 'alnum_prop': 0.6003368623676613, 'repo_name': 'vthawat/study_outside', 'id': 'fd2664a8238db3780f70ce3292cd9fb1026e8045', 'size': '4156', 'binary': False, 'copies': '59', 'ref': 'refs/heads/master', 'path': 'vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Pdf/Mpdf.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '899744'}, {'name': 'HTML', 'bytes': '5633'}, {'name': 'Hack', 'bytes': '687'}, {'name': 'JavaScript', 'bytes': '3264011'}, {'name': 'PHP', 'bytes': '2042320'}]}"}}},{"rowIdx":849129,"cells":{"text":{"kind":"string","value":"\n\n\n\n\n\nUses of Class org.cloudbus.cloudsim.power.models.PowerModelSqrt (cloudsim 3.0.3 API)\n\n\n\n\n\n\n\n\n
    \n
      \n
    • Prev
    • \n
    • Next
    • \n
    \n\n\n
    \n\n
    \n\n\n
    \n\n
    \n

    Uses of Class
    org.cloudbus.cloudsim.power.models.PowerModelSqrt

    \n
    \n
    No usage of org.cloudbus.cloudsim.power.models.PowerModelSqrt
    \n\n\n
    \n
      \n
    • Prev
    • \n
    • Next
    • \n
    \n\n\n
    \n\n
    \n\n\n
    \n\n

    Copyright © 2013 The Cloud Computing and Distributed Systems (CLOUDS) Laboratory, The University of Melbourne. All Rights Reserved.

    \n\n\n"},"meta":{"kind":"string","value":"{'content_hash': '7d27bdcdef2db8acbd9dc04fca1eb634', 'timestamp': '', 'source': 'github', 'line_count': 117, 'max_line_length': 211, 'avg_line_length': 39.598290598290596, 'alnum_prop': 0.6229225124109649, 'repo_name': 'bikash/NashBargaining', 'id': '20d3c0e793415b22986b365e2a22fe52f0920bd4', 'size': '4633', 'binary': False, 'copies': '17', 'ref': 'refs/heads/master', 'path': 'cloudsim-3.0.3/docs/org/cloudbus/cloudsim/power/models/class-use/PowerModelSqrt.html', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '22278'}, {'name': 'HTML', 'bytes': '53422849'}, {'name': 'Java', 'bytes': '1463140'}, {'name': 'R', 'bytes': '148'}]}"}}},{"rowIdx":849130,"cells":{"text":{"kind":"string","value":"package collector_mongod\n\nimport (\n\t\"time\"\n\n\t\"github.com/prometheus/client_golang/prometheus\"\n\t\"github.com/prometheus/common/log\"\n\t\"gopkg.in/mgo.v2\"\n\t\"gopkg.in/mgo.v2/bson\"\n)\n\nvar (\n\tinstanceUptimeSeconds = prometheus.NewCounter(prometheus.CounterOpts{\n\t\tNamespace: Namespace,\n\t\tSubsystem: \"instance\",\n\t\tName: \"uptime_seconds\",\n\t\tHelp: \"The value of the uptime field corresponds to the number of seconds that the mongos or mongod process has been active.\",\n\t})\n\tinstanceUptimeEstimateSeconds = prometheus.NewCounter(prometheus.CounterOpts{\n\t\tNamespace: Namespace,\n\t\tSubsystem: \"instance\",\n\t\tName: \"uptime_estimate_seconds\",\n\t\tHelp: \"uptimeEstimate provides the uptime as calculated from MongoDB's internal course-grained time keeping system.\",\n\t})\n\tinstanceLocalTime = prometheus.NewCounter(prometheus.CounterOpts{\n\t\tNamespace: Namespace,\n\t\tSubsystem: \"instance\",\n\t\tName: \"local_time\",\n\t\tHelp: \"The localTime value is the current time, according to the server, in UTC specified in an ISODate format.\",\n\t})\n)\n\n// ServerStatus keeps the data returned by the serverStatus() method.\ntype ServerStatus struct {\n\tUptime float64 `bson:\"uptime\"`\n\tUptimeEstimate float64 `bson:\"uptimeEstimate\"`\n\tLocalTime time.Time `bson:\"localTime\"`\n\n\tAsserts *AssertsStats `bson:\"asserts\"`\n\n\tDur *DurStats `bson:\"dur\"`\n\n\tBackgroundFlushing *FlushStats `bson:\"backgroundFlushing\"`\n\n\tConnections *ConnectionStats `bson:\"connections\"`\n\n\tExtraInfo *ExtraInfo `bson:\"extra_info\"`\n\n\tGlobalLock *GlobalLockStats `bson:\"globalLock\"`\n\n\tIndexCounter *IndexCounterStats `bson:\"indexCounters\"`\n\n\tLocks LockStatsMap `bson:\"locks,omitempty\"`\n\n\tNetwork *NetworkStats `bson:\"network\"`\n\n\tOpcounters *OpcountersStats `bson:\"opcounters\"`\n\tOpcountersRepl *OpcountersReplStats `bson:\"opcountersRepl\"`\n\tMem *MemStats `bson:\"mem\"`\n\tMetrics *MetricsStats `bson:\"metrics\"`\n\n\tCursors *Cursors `bson:\"cursors\"`\n\n\tStorageEngine *StorageEngineStats `bson:\"storageEngine\"`\n\tInMemory *WiredTigerStats `bson:\"inMemory\"`\n\tRocksDb *RocksDbStats `bson:\"rocksdb\"`\n\tWiredTiger *WiredTigerStats `bson:\"wiredTiger\"`\n}\n\n// Export exports the server status to be consumed by prometheus.\nfunc (status *ServerStatus) Export(ch chan<- prometheus.Metric) {\n\tinstanceUptimeSeconds.Set(status.Uptime)\n\tinstanceUptimeEstimateSeconds.Set(status.Uptime)\n\tinstanceLocalTime.Set(float64(status.LocalTime.Unix()))\n\tinstanceUptimeSeconds.Collect(ch)\n\tinstanceUptimeEstimateSeconds.Collect(ch)\n\tinstanceLocalTime.Collect(ch)\n\n\tif status.Asserts != nil {\n\t\tstatus.Asserts.Export(ch)\n\t}\n\tif status.Dur != nil {\n\t\tstatus.Dur.Export(ch)\n\t}\n\tif status.BackgroundFlushing != nil {\n\t\tstatus.BackgroundFlushing.Export(ch)\n\t}\n\tif status.Connections != nil {\n\t\tstatus.Connections.Export(ch)\n\t}\n\tif status.ExtraInfo != nil {\n\t\tstatus.ExtraInfo.Export(ch)\n\t}\n\tif status.GlobalLock != nil {\n\t\tstatus.GlobalLock.Export(ch)\n\t}\n\tif status.IndexCounter != nil {\n\t\tstatus.IndexCounter.Export(ch)\n\t}\n\tif status.Network != nil {\n\t\tstatus.Network.Export(ch)\n\t}\n\tif status.Opcounters != nil {\n\t\tstatus.Opcounters.Export(ch)\n\t}\n\tif status.OpcountersRepl != nil {\n\t\tstatus.OpcountersRepl.Export(ch)\n\t}\n\tif status.Mem != nil {\n\t\tstatus.Mem.Export(ch)\n\t}\n\tif status.Locks != nil {\n\t\tstatus.Locks.Export(ch)\n\t}\n\tif status.Metrics != nil {\n\t\tstatus.Metrics.Export(ch)\n\t}\n\tif status.Cursors != nil {\n\t\tstatus.Cursors.Export(ch)\n\t}\n\tif status.InMemory != nil {\n\t\tstatus.InMemory.Export(ch)\n\t}\n\tif status.RocksDb != nil {\n\t\tstatus.RocksDb.Export(ch)\n\t}\n\tif status.WiredTiger != nil {\n\t\tstatus.WiredTiger.Export(ch)\n\t}\n\n\t// If db.serverStatus().storageEngine does not exist (3.0+ only) and status.BackgroundFlushing does (MMAPv1 only), default to mmapv1\n\t// https://docs.mongodb.com/v3.0/reference/command/serverStatus/#storageengine\n\tif status.StorageEngine == nil && status.BackgroundFlushing != nil {\n\t\tstatus.StorageEngine = &StorageEngineStats{\n\t\t\tName: \"mmapv1\",\n\t\t}\n\t}\n\tif status.StorageEngine != nil {\n\t\tstatus.StorageEngine.Export(ch)\n\t}\n}\n\n// Describe describes the server status for prometheus.\nfunc (status *ServerStatus) Describe(ch chan<- *prometheus.Desc) {\n\tinstanceUptimeSeconds.Describe(ch)\n\tinstanceUptimeEstimateSeconds.Describe(ch)\n\tinstanceLocalTime.Describe(ch)\n\n\tif status.Asserts != nil {\n\t\tstatus.Asserts.Describe(ch)\n\t}\n\tif status.Dur != nil {\n\t\tstatus.Dur.Describe(ch)\n\t}\n\tif status.BackgroundFlushing != nil {\n\t\tstatus.BackgroundFlushing.Describe(ch)\n\t}\n\tif status.Connections != nil {\n\t\tstatus.Connections.Describe(ch)\n\t}\n\tif status.ExtraInfo != nil {\n\t\tstatus.ExtraInfo.Describe(ch)\n\t}\n\tif status.GlobalLock != nil {\n\t\tstatus.GlobalLock.Describe(ch)\n\t}\n\tif status.IndexCounter != nil {\n\t\tstatus.IndexCounter.Describe(ch)\n\t}\n\tif status.Network != nil {\n\t\tstatus.Network.Describe(ch)\n\t}\n\tif status.Opcounters != nil {\n\t\tstatus.Opcounters.Describe(ch)\n\t}\n\tif status.OpcountersRepl != nil {\n\t\tstatus.OpcountersRepl.Describe(ch)\n\t}\n\tif status.Mem != nil {\n\t\tstatus.Mem.Describe(ch)\n\t}\n\tif status.Locks != nil {\n\t\tstatus.Locks.Describe(ch)\n\t}\n\tif status.Metrics != nil {\n\t\tstatus.Metrics.Describe(ch)\n\t}\n\tif status.Cursors != nil {\n\t\tstatus.Cursors.Describe(ch)\n\t}\n\tif status.StorageEngine != nil {\n\t\tstatus.StorageEngine.Describe(ch)\n\t}\n\tif status.InMemory != nil {\n\t\tstatus.InMemory.Describe(ch)\n\t}\n\tif status.RocksDb != nil {\n\t\tstatus.RocksDb.Describe(ch)\n\t}\n\tif status.WiredTiger != nil {\n\t\tstatus.WiredTiger.Describe(ch)\n\t}\n}\n\n// GetServerStatus returns the server status info.\nfunc GetServerStatus(session *mgo.Session) *ServerStatus {\n\tresult := &ServerStatus{}\n\terr := session.DB(\"admin\").Run(bson.D{{\"serverStatus\", 1}, {\"recordStats\", 0}}, result)\n\tif err != nil {\n\t\tlog.Error(\"Failed to get server status.\")\n\t\treturn nil\n\t}\n\n\treturn result\n}\n"},"meta":{"kind":"string","value":"{'content_hash': '8b2fc31cf33394eb8240a2e61ab16ac3', 'timestamp': '', 'source': 'github', 'line_count': 215, 'max_line_length': 133, 'avg_line_length': 26.906976744186046, 'alnum_prop': 0.7177182368193604, 'repo_name': 'timvaillancourt/mongodb_exporter', 'id': '234a8ae73d46bf61b723268435c82178f57ccb1c', 'size': '6372', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'collector/mongod/server_status.go', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Go', 'bytes': '198602'}, {'name': 'Makefile', 'bytes': '2253'}]}"}}},{"rowIdx":849131,"cells":{"text":{"kind":"string","value":"using System;\nusing System.ComponentModel;\n\nnamespace Azure.ResourceManager.DataMigration.Models\n{\n /// Current state of migration. \n public readonly partial struct MigrationState : IEquatable\n {\n private readonly string _value;\n\n /// Initializes a new instance of . \n /// is null. \n public MigrationState(string value)\n {\n _value = value ?? throw new ArgumentNullException(nameof(value));\n }\n\n private const string NoneValue = \"None\";\n private const string InProgressValue = \"InProgress\";\n private const string FailedValue = \"Failed\";\n private const string WarningValue = \"Warning\";\n private const string CompletedValue = \"Completed\";\n private const string SkippedValue = \"Skipped\";\n private const string StoppedValue = \"Stopped\";\n\n /// None. \n public static MigrationState None { get; } = new MigrationState(NoneValue);\n /// InProgress. \n public static MigrationState InProgress { get; } = new MigrationState(InProgressValue);\n /// Failed. \n public static MigrationState Failed { get; } = new MigrationState(FailedValue);\n /// Warning. \n public static MigrationState Warning { get; } = new MigrationState(WarningValue);\n /// Completed. \n public static MigrationState Completed { get; } = new MigrationState(CompletedValue);\n /// Skipped. \n public static MigrationState Skipped { get; } = new MigrationState(SkippedValue);\n /// Stopped. \n public static MigrationState Stopped { get; } = new MigrationState(StoppedValue);\n /// Determines if two values are the same. \n public static bool operator ==(MigrationState left, MigrationState right) => left.Equals(right);\n /// Determines if two values are not the same. \n public static bool operator !=(MigrationState left, MigrationState right) => !left.Equals(right);\n /// Converts a string to a . \n public static implicit operator MigrationState(string value) => new MigrationState(value);\n\n /// \n [EditorBrowsable(EditorBrowsableState.Never)]\n public override bool Equals(object obj) => obj is MigrationState other && Equals(other);\n /// \n public bool Equals(MigrationState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);\n\n /// \n [EditorBrowsable(EditorBrowsableState.Never)]\n public override int GetHashCode() => _value?.GetHashCode() ?? 0;\n /// \n public override string ToString() => _value;\n }\n}\n"},"meta":{"kind":"string","value":"{'content_hash': 'df8109279db0a05ed4cb37a601ce0947', 'timestamp': '', 'source': 'github', 'line_count': 59, 'max_line_length': 133, 'avg_line_length': 52.847457627118644, 'alnum_prop': 0.6638871071199487, 'repo_name': 'Azure/azure-sdk-for-net', 'id': 'cdb5947fd649544a886e3632f91016bedafa957d', 'size': '3256', 'binary': False, 'copies': '1', 'ref': 'refs/heads/main', 'path': 'sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/Models/MigrationState.cs', 'mode': '33188', 'license': 'mit', 'language': []}"}}},{"rowIdx":849132,"cells":{"text":{"kind":"string","value":"FROM balenalib/jetson-nano-alpine:3.10-run\n\n# remove several traces of python\nRUN apk del python*\n\n# http://bugs.python.org/issue19846\n# > At the moment, setting \"LANG=C\" on a Linux system *fundamentally breaks Python 3*, and that's not OK.\nENV LANG C.UTF-8\n\n# install python dependencies\nRUN apk add --no-cache ca-certificates libffi \\\n\t&& apk add --no-cache libssl1.0 || apk add --no-cache libssl1.1\n\n# key 63C7CC90: public key \"Simon McVittie \" imported\n# key 3372DCFA: public key \"Donald Stufft (dstufft) \" imported\nRUN gpg --keyserver keyring.debian.org --recv-keys 4DE8FF2A63C7CC90 \\\n\t&& gpg --keyserver keyserver.ubuntu.com --recv-key 6E3CBCE93372DCFA \\\n\t&& gpg --keyserver keyserver.ubuntu.com --recv-keys 0x52a43a1e4b77b059\n\n# point Python at a system-provided certificate database. Otherwise, we might hit CERTIFICATE_VERIFY_FAILED.\n# https://www.python.org/dev/peps/pep-0476/#trust-database\nENV SSL_CERT_FILE /etc/ssl/certs/ca-certificates.crt\n\nENV PYTHON_VERSION 3.9.1\n\n# if this is called \"PIP_VERSION\", pip explodes with \"ValueError: invalid truth value ''\"\nENV PYTHON_PIP_VERSION 20.3.1\n\nENV SETUPTOOLS_VERSION 51.0.0\n\nRUN set -x \\\n\t&& buildDeps=' \\\n\t\tcurl \\\n\t\tgnupg \\\n\t' \\\n\t&& apk add --no-cache --virtual .build-deps $buildDeps \\\n\t&& curl -SLO \"http://resin-packages.s3.amazonaws.com/python/v$PYTHON_VERSION/Python-$PYTHON_VERSION.linux-alpine-aarch64-openssl1.1.tar.gz\" \\\n\t&& echo \"6df986081a736672ebcce32ac3109bd22330933334b87e7edcca64e5df7f1b1d Python-$PYTHON_VERSION.linux-alpine-aarch64-openssl1.1.tar.gz\" | sha256sum -c - \\\n\t&& tar -xzf \"Python-$PYTHON_VERSION.linux-alpine-aarch64-openssl1.1.tar.gz\" --strip-components=1 \\\n\t&& rm -rf \"Python-$PYTHON_VERSION.linux-alpine-aarch64-openssl1.1.tar.gz\" \\\n\t&& if [ ! -e /usr/local/bin/pip3 ]; then : \\\n\t\t&& curl -SLO \"https://raw.githubusercontent.com/pypa/get-pip/430ba37776ae2ad89f794c7a43b90dc23bac334c/get-pip.py\" \\\n\t\t&& echo \"19dae841a150c86e2a09d475b5eb0602861f2a5b7761ec268049a662dbd2bd0c get-pip.py\" | sha256sum -c - \\\n\t\t&& python3 get-pip.py \\\n\t\t&& rm get-pip.py \\\n\t; fi \\\n\t&& pip3 install --no-cache-dir --upgrade --force-reinstall pip==\"$PYTHON_PIP_VERSION\" setuptools==\"$SETUPTOOLS_VERSION\" \\\n\t&& find /usr/local \\\n\t\t\\( -type d -a -name test -o -name tests \\) \\\n\t\t-o \\( -type f -a -name '*.pyc' -o -name '*.pyo' \\) \\\n\t\t-exec rm -rf '{}' + \\\n\t&& cd / \\\n\t&& rm -rf /usr/src/python ~/.cache\n\n# make some useful symlinks that are expected to exist\nRUN cd /usr/local/bin \\\n\t&& ln -sf pip3 pip \\\n\t&& { [ -e easy_install ] || ln -s easy_install-* easy_install; } \\\n\t&& ln -sf idle3 idle \\\n\t&& ln -sf pydoc3 pydoc \\\n\t&& ln -sf python3 python \\\n\t&& ln -sf python3-config python-config\n\nCMD [\"echo\",\"'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs\"]\n\n RUN curl -SLO \"https://raw.githubusercontent.com/balena-io-library/base-images/8accad6af708fca7271c5c65f18a86782e19f877/scripts/assets/tests/test-stack@python.sh\" \\\n && echo \"Running test-stack@python\" \\\n && chmod +x test-stack@python.sh \\\n && bash test-stack@python.sh \\\n && rm -rf test-stack@python.sh \n\nRUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo $'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \\nArchitecture: ARM v8 \\nOS: Alpine Linux 3.10 \\nVariant: run variant \\nDefault variable(s): UDEV=off \\nThe following software stack is preinstalled: \\nPython v3.9.1, Pip v20.3.1, Setuptools v51.0.0 \\nExtra features: \\n- Easy way to install packages with `install_packages ` command \\n- Run anywhere with cross-build feature (for ARM only) \\n- Keep the container idling with `balena-idle` command \\n- Show base image details with `balena-info` command' > /.balena/messages/image-info\n\nRUN echo $'#!/bin/bash\\nbalena-info\\nbusybox ln -sf /bin/busybox /bin/sh\\n/bin/sh \"$@\"' > /bin/sh-shim \\\n\t&& chmod +x /bin/sh-shim \\\n\t&& ln -f /bin/sh /bin/sh.real \\\n\t&& ln -f /bin/sh-shim /bin/sh"},"meta":{"kind":"string","value":"{'content_hash': '0be1e2801dbc662f46167ce1efe3f1b2', 'timestamp': '', 'source': 'github', 'line_count': 77, 'max_line_length': 713, 'avg_line_length': 53.37662337662338, 'alnum_prop': 0.7119221411192214, 'repo_name': 'nghiant2710/base-images', 'id': 'c4a33e07d2ca44aa868b4aa62ee14f896d478678', 'size': '4131', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'balena-base-images/python/jetson-nano/alpine/3.10/3.9.1/run/Dockerfile', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Dockerfile', 'bytes': '144558581'}, {'name': 'JavaScript', 'bytes': '16316'}, {'name': 'Shell', 'bytes': '368690'}]}"}}},{"rowIdx":849133,"cells":{"text":{"kind":"string","value":"from .devebec import devebec\n"},"meta":{"kind":"string","value":"{'content_hash': '32bfe8de2de7072158f89b3571287dc5', 'timestamp': '', 'source': 'github', 'line_count': 1, 'max_line_length': 28, 'avg_line_length': 29.0, 'alnum_prop': 0.8275862068965517, 'repo_name': 'tatsy/hydra', 'id': '4f638f15f4d8c53153616c2dd141aa0dd0ccb886', 'size': '29', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'hydra/gen/__init__.py', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Python', 'bytes': '33466'}]}"}}},{"rowIdx":849134,"cells":{"text":{"kind":"string","value":"\npackage com.amazonaws.services.quicksight.model.transform;\n\nimport java.math.*;\n\nimport javax.annotation.Generated;\n\nimport com.amazonaws.services.quicksight.model.*;\nimport com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;\nimport com.amazonaws.transform.*;\n\nimport com.fasterxml.jackson.core.JsonToken;\nimport static com.fasterxml.jackson.core.JsonToken.*;\n\n/**\n * GroupMember JSON Unmarshaller\n */\n@Generated(\"com.amazonaws:aws-java-sdk-code-generator\")\npublic class GroupMemberJsonUnmarshaller implements Unmarshaller {\n\n public GroupMember unmarshall(JsonUnmarshallerContext context) throws Exception {\n GroupMember groupMember = new GroupMember();\n\n int originalDepth = context.getCurrentDepth();\n String currentParentElement = context.getCurrentParentElement();\n int targetDepth = originalDepth + 1;\n\n JsonToken token = context.getCurrentToken();\n if (token == null)\n token = context.nextToken();\n if (token == VALUE_NULL) {\n return null;\n }\n\n while (true) {\n if (token == null)\n break;\n\n if (token == FIELD_NAME || token == START_OBJECT) {\n if (context.testExpression(\"Arn\", targetDepth)) {\n context.nextToken();\n groupMember.setArn(context.getUnmarshaller(String.class).unmarshall(context));\n }\n if (context.testExpression(\"MemberName\", targetDepth)) {\n context.nextToken();\n groupMember.setMemberName(context.getUnmarshaller(String.class).unmarshall(context));\n }\n } else if (token == END_ARRAY || token == END_OBJECT) {\n if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {\n if (context.getCurrentDepth() <= originalDepth)\n break;\n }\n }\n token = context.nextToken();\n }\n\n return groupMember;\n }\n\n private static GroupMemberJsonUnmarshaller instance;\n\n public static GroupMemberJsonUnmarshaller getInstance() {\n if (instance == null)\n instance = new GroupMemberJsonUnmarshaller();\n return instance;\n }\n}\n"},"meta":{"kind":"string","value":"{'content_hash': 'fb5a803ffcdb23ae107c1acef504e18d', 'timestamp': '', 'source': 'github', 'line_count': 67, 'max_line_length': 136, 'avg_line_length': 34.95522388059702, 'alnum_prop': 0.6293766011955594, 'repo_name': 'aws/aws-sdk-java', 'id': 'd920f8dc4dc3354efbd8411635c5f07dfdac2879', 'size': '2922', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/transform/GroupMemberJsonUnmarshaller.java', 'mode': '33188', 'license': 'apache-2.0', 'language': []}"}}},{"rowIdx":849135,"cells":{"text":{"kind":"string","value":"/**\n * @fileOverview canvasinput compiled from typescript\n * @author {@link mailto:rashwell@gmail.com|Richard F. Ashwell III}\n * @version 1.0.0\n * @see The original inspiration for this project {@link http://goldfirestudios.com/blog/108/CanvasInput-HTML5-Canvas-Text-Input|CanvusInput HTML5 Canvas Text Input}\n * @license MIT\n * @example\n * var input = new CanvasInput({\n * canvas: document.getElementById('canvasid'),\n * onsubmit: function() { alert(this.value); }\n * });\n */\n\n/**\n * Class for the CanvasInput object\n * @class CanvasInput \n */\nclass CanvasInput {\n static inputs: CanvasInput[] = [];\n static _inputsIndex: number = 0;\n _canvas: HTMLCanvasElement = null;\n _renderCanvas: HTMLCanvasElement = null;\n _shadowCanvas: HTMLCanvasElement = null;\n _hiddenInput: HTMLInputElement;\n _ctx: any = null;\n _renderCtx: any = null;\n _shadowCtx: any = null;\n _x: number = 0;\n _y: number = 0;\n _extraX: number = 0;\n _extraY: number = 0;\n _fontSize: number = 14;\n _fontFamily: string = 'Arial';\n _fontColor: string = '#000';\n _placeHolderColor: string = '#bfbebd';\n _fontWeight: string = 'normal';\n _fontStyle: string = 'normal';\n _readonly: boolean = false;\n _maxlength: any = null;\n _width: number = 150;\n _height: number = 14;\n _padding: number = 5;\n _borderWidth: number = 1;\n _borderColor: string = '#959595';\n _borderRadius: number = 3;\n _backgroundImage: string = '';\n _backgroundColor: any;\n _boxShadow: string = '1px 1px 0px rgba(255, 255, 255, 1)';\n _boxShadowObj: any = null;\n _innerShadow: string = '0px 0px 4px rgba(0, 0, 0, 0.4)';\n _selectionColor: string = 'rgba(179, 212, 253, 0.8)';\n _placeHolder: string = '';\n _value: string = '';\n _onsubmit: any;\n _onkeydown: any;\n _onkeyup: any;\n _onfocus: any;\n _onblur: any;\n _cursor: boolean = false;\n _cursorPos: number = 0;\n _hasFocus: boolean = false;\n _selection: number[] = [0, 0];\n _wasOver: boolean = false;\n _mouseDown: boolean = false;\n _renderType: string = '2d';\n\n shadowL: number = 0;\n shadowR: number = 0;\n shadowT: number = 0;\n shadowB: number = 0;\n shadowH: number = 0;\n shadowW: number = 0;\n outerW: number = 0;\n outerH: number = 0;\n\n constructor(options?: any) {\n // Set the context for the attached canvas\n if (options.canvas) { this._canvas = options.canvas; }\n\n if (this._canvas) {\n // For Testing check to see if default is forced back to 2d\n if (this._renderType === '2d') {\n this._ctx = this._canvas.getContext('2d');\n } else {\n if ('WebGLRenderingContext' in window) {\n // Browser doesn't support webgl so only try for 2d context\n this._ctx = this._canvas.getContext('2d');\n this._renderType = '2d';\n } else {\n var testctx = this._canvas.getContext('webgl') || this._canvas.getContext('experimental-webgl');\n if (testctx !== undefined) {\n // browser supports webgl, however can't be setup on this graphics combination\n this._ctx = this._canvas.getContext('2d');\n this._renderType = '2d';\n } else {\n this._ctx = this._canvas.getContext('webgl') || this._canvas.getContext('experimental-webgl');\n }\n }\n }\n // Some sort of sanity check here because if we have a canvas without context we should abort\n }\n\n if (options.x) { this._x = options.x; }\n if (options.y) { this._y = options.y; }\n if (options.extraX) { this._extraX = options.extraX; }\n if (options.extraY) { this._extraY = options.extraY; }\n if (options.fontSize) { this._fontSize = options.fontSize; }\n if (options.fontFamily) { this._fontFamily = options.fontFamily; }\n if (options.fontColor) { this._fontColor = options.fontColor; }\n if (options.placeHolderColor) { this._placeHolderColor = options.placeHolderColor; }\n if (options.fontWeight) { this._fontWeight = options.fontWeight; }\n if (options.fontStyle) { this._fontStyle = options.fontStyle; }\n if (options.readonly) { this._readonly = options.readonly; }\n if (options.maxlength) { this._maxlength = options.maxlength; }\n if (options.width) { this._width = options.width; }\n if (options.height) { this._height = options.height; } // default set to height of font in orig and above\n if (options.padding) { if (options.padding >= 0) { this._padding = options.padding; } }\n if (options.borderWidth) { if (options.borderWidth >= 0) { this._borderWidth = options.borderWidth; } }\n if (options.borderColor) { this._borderColor = options.borderColor; }\n if (options.borderRadius) { if (options.borderRadius >= 0) { this._borderRadius = options.borderRadius; } }\n if (options.backgroundImage) { this._backgroundImage = options.backgroundImage; }\n if (options.boxShadow) { this._boxShadow = options.boxShadow; }\n if (options.innerShadow) { this._innerShadow = options.innerShadow; }\n if (options.selectionColor) { this._selectionColor = options.selectionColor; }\n if (options.placeHolder) { this._placeHolder = options.placeHolder; }\n if (options.value) { this._value = (options.value || this._placeHolder) + ''; }\n if (options.onsubmit) { this._onsubmit = options.onsubmit; } else { this._onsubmit = function() {}; }\n if (options.onkeydown) { this._onkeydown = options.onkeydown; } else { this._onkeydown = function() {}; }\n if (options.onkeyup) { this._onkeyup = options.onkeyup; } else { this._onkeyup = function() {}; }\n if (options.onfocus) { this._onfocus = options.onfocus; } else { this._onfocus = function() {}; }\n if (options.onblur) { this._onblur = options.onblur; } else { this._onblur = function() {}; }\n\n // parse box shadow\n this.boxShadow(this._boxShadow, true);\n\n // calculate the full width and height with padding, borders and shadows\n this._calcWH();\n\n // setup the off-DOM canvas\n this._renderCanvas = document.createElement('canvas');\n this._renderCanvas.setAttribute('width', this.outerW.toString());\n this._renderCanvas.setAttribute('height', this.outerH.toString());\n if (this._renderType === '2d') {\n this._renderCtx = this._renderCanvas.getContext('2d');\n } else {\n this._renderCtx = this._renderCanvas.getContext('webgl') || this._renderCanvas.getContext('experimental-webgl');\n }\n\n // setup another off-DOM canvas for inner-shadows\n this._shadowCanvas = document.createElement('canvas');\n this._shadowCanvas.setAttribute('width', (this._width + this._padding * 2).toString());\n this._shadowCanvas.setAttribute('height', (this._height + this._padding * 2).toString());\n if (this._renderType === '2d') {\n this._shadowCtx = this._shadowCanvas.getContext('2d');\n } else {\n this._shadowCtx = this._shadowCanvas.getContext('webgl') || this._shadowCanvas.getContext('experimental-webgl');\n }\n\n // setup the background color or gradient\n if (typeof options.backgroundGradient !== 'undefined') {\n this._backgroundColor = this._renderCtx.createLinearGradient(\n 0,\n 0,\n 0,\n this.outerH\n );\n this._backgroundColor.addColorStop(0, options.backgroundGradient[0]);\n\n this._backgroundColor.addColorStop(1, options.backgroundGradient[1]);\n } else {\n this._backgroundColor = options.backgroundColor || '#fff';\n }\n\n // setup main canvas events\n if (this._canvas) {\n var _this = this;\n this._canvas.addEventListener('mousemove', function(ev: MouseEvent) {\n var e = ev || window.event;\n _this.mousemove(e, _this);\n }, false);\n\n this._canvas.addEventListener('mousedown', function(ev: MouseEvent) {\n var e = ev || window.event;\n _this.mousedown(e, _this);\n }, false);\n\n this._canvas.addEventListener('mouseup', function(ev: MouseEvent) {\n var e = ev || window.event;\n _this.mouseup(e, _this);\n }, false);\n }\n\n // setup a global mouseup to blur the input outside of the canvas\n var _this = this;\n window.addEventListener('mouseup', function(ev: MouseEvent) {\n var e = ev || window.event;\n if (_this._hasFocus && !_this._mouseDown) {\n _this.blur();\n }\n }, true);\n\n // create the hidden input element\n this._hiddenInput = document.createElement('input');\n this._hiddenInput.type = 'text';\n this._hiddenInput.style.position = 'absolute';\n this._hiddenInput.style.opacity = '0';\n this._hiddenInput.style.pointerEvents = 'none';\n this._hiddenInput.style.left = (this._x + this._extraX + (this._canvas ? this._canvas.offsetLeft : 0)) + 'px';\n this._hiddenInput.style.top = (this._y + this._extraY + (this._canvas ? this._canvas.offsetTop : 0)) + 'px';\n this._hiddenInput.style.width = this._width + 'px';\n this._hiddenInput.style.height = this._height + 'px';\n this._hiddenInput.style.zIndex = '0';\n if (this._maxlength) {\n this._hiddenInput.maxLength = this._maxlength;\n }\n document.body.appendChild(this._hiddenInput);\n this._hiddenInput.value = this._value;\n\n // setup the keydown listener\n var _this = this;\n this._hiddenInput.addEventListener('keydown', function(ev: KeyboardEvent) {\n var e = ev || window.event;\n if (_this._hasFocus) {\n _this.keydown(e, _this);\n }\n });\n\n // setup the keyup listener\n this._hiddenInput.addEventListener('keyup', function(ev: KeyboardEvent) {\n var e = ev || window.event;\n // update the canvas input state information from the hidden input\n _this._value = _this._hiddenInput.value;\n _this._cursorPos = _this._hiddenInput.selectionStart;\n _this.render();\n\n if (_this._hasFocus) {\n _this._onkeyup(e, _this);\n }\n });\n\n // add this to the buffer\n CanvasInput.inputs.push(this);\n CanvasInput._inputsIndex = CanvasInput.inputs.length - 1;\n\n // draw the text box\n this.render();\n}\n\n// Setters and Getters for properties that can be changed after the fact\n// Wrote these depending on ECMAScript 5 so tsc needs --target ES5\n// public get name():string { return this._name; }\n// public set name(value: string) { this._name = value; }\n\n/** \n * Canvas getter. \n * @method canvas\n * @return Returns the current canvas that the CanvasInput object is rendering too.\n */\n/**\n * Canvas setter.\n * @method canvas\n * @param canvas object\n */\npublic get canvas():any { return this._canvas; }\npublic set canvas(value: any) {\n if (typeof value !== undefined) {\n this._canvas = value;\n\n // Recheck here in case the new canvas is switched between 2d and webgl\n if ('WebGLRenderingContext' in window) {\n // Browser doesn't support webgl so only try for 2d context\n this._ctx = this._canvas.getContext('2d');\n this._renderType = '2d';\n } else {\n var testctx = this._canvas.getContext('webgl') || this._canvas.getContext('experimental-webgl');\n if (testctx !== undefined) {\n // browser supports webgl, however can't be setup on this graphics combination with this canvas\n this._ctx = this._canvas.getContext('2d');\n this._renderType = '2d';\n } else {\n this._ctx = this._canvas.getContext('webgl') || this._canvas.getContext('experimental-webgl');\n }\n }\n // Most like the offscreen canvas and shadow canvas if set prior can remain unchanged.\n this.render();\n } else {\n // setting shouldn't return a value this might break current usage which should use\n // the getter to retrieve canvas all of the elses in the setters below will\n // be removed just to get rid of clutter. This remains just to remind of the potential\n // breakage.\n // return this._canvas;\n }\n}\n\n// X and Y location on Canvas\npublic get x():number { return this._x; }\npublic set x(value: number) {\n if (typeof value !== 'undefined') {\n this._x = value;\n this.render();\n }\n}\n\npublic get y():number { return this._y; }\npublic set y(value: number) {\n if (typeof value !== 'undefined') {\n this._y = value;\n this.render();\n }\n}\n\n// extraX and extraY location on Canvas\npublic get extraX():number { return this._extraX; }\npublic set extraX(value: number) {\n if (typeof value !== 'undefined') {\n this._extraX = value;\n this.render();\n }\n}\n\npublic get extraY():number { return this._extraY; }\npublic set extraY(value: number) {\n if (typeof value !== 'undefined') {\n this._extraY = value;\n this.render();\n }\n}\n\n// font setters and getters\n// TODO: Potentially constrain font size to limits of field height etc to maintain sanity\npublic get fontSize():number { return this._fontSize; }\npublic set fontSize(value: number) {\n if (typeof value !== 'undefined') {\n this._fontSize = value;\n this.render();\n }\n}\n\npublic get fontFamily():string { return this._fontFamily; }\npublic set fontFamily(value: string) {\n if (typeof value !== 'undefined') {\n this._fontFamily = value;\n this.render();\n }\n}\n\npublic get fontColor():string { return this._fontColor; }\npublic set fontColor(value: string) {\n if (typeof value !== 'undefined') {\n this._fontColor = value;\n this.render();\n }\n}\n\npublic get placeHolderColor():string { return this._placeHolderColor; }\npublic set placeHolderColor(value: string) {\n if (typeof value !== 'undefined') {\n this._placeHolderColor = value;\n this.render();\n }\n}\n\npublic get fontWeight():string { return this._fontWeight; }\npublic set fontWeight(value: string) {\n if (typeof value !== 'undefined') {\n this._fontWeight = value;\n this.render();\n }\n}\n\npublic get fontStyle():string { return this._fontStyle; }\npublic set fontStyle(value: string) {\n if (typeof value !== 'undefined') {\n this._fontStyle = value;\n this.render();\n }\n}\n\n// size setters and getters\npublic get width():number { return this._width; }\npublic set width(value: number) {\n if (typeof value !== 'undefined') {\n this._width = value;\n this._calcWH();\n this._updateCanvasWH();\n this.render();\n }\n}\n\n\npublic get height():number { return this._height; }\npublic set height(value: number) {\n if (typeof value !== 'undefined') {\n this._height = value;\n this._calcWH();\n this._updateCanvasWH();\n this.render();\n }\n}\n\npublic get padding():number { return this._padding; }\npublic set padding(value: number) {\n if (typeof value !== 'undefined') {\n this._padding = value;\n this._calcWH();\n this._updateCanvasWH();\n this.render();\n }\n}\n\npublic get borderWidth():number { return this._borderWidth; }\npublic set borderWidth(value: number) {\n if (typeof value !== 'undefined') {\n this._borderWidth = value;\n this._calcWH();\n this._updateCanvasWH();\n this.render();\n }\n}\n\npublic get borderColor():string { return this._borderColor; }\npublic set borderColor(value: string) {\n if (typeof value !== 'undefined') {\n this._borderColor = value;\n this.render();\n }\n}\n\npublic get borderRadius():number { return this._borderRadius; }\npublic set borderRadius(value: number) {\n if (typeof value !== 'undefined') {\n this._borderRadius = value;\n this.render();\n }\n}\n\npublic get backgroundColor():string { return this._backgroundColor; }\npublic set backgroundColor(value: string) {\n if (typeof value !== 'undefined') {\n this._backgroundColor = value;\n this.render();\n }\n}\n\npublic get backgroundGradient():any { return this._backgroundColor; }\npublic set backgroundGradient(value: any) {\n if (typeof value !== 'undefined') {\n this._backgroundColor = this._renderCtx.createLinearGradient(\n 0,\n 0,\n 0,\n this.outerH\n );\n this._backgroundColor.addColorStop(0, value[0]);\n this._backgroundColor.addColorStop(1, value[1]);\n\n this.render();\n }\n}\n\n/**\n * Internal boxShadow setup parse only creating private setter no get/set for now\n * mainly because the return on the set is required during constructor\n * @method boxShadow\n * @param {string} data\n * @param {boolean} doReturn\n * @inner\n * @todo Potentially create seperate internal function for construction and standard get/set\n */\nprivate boxShadow(data: string, doReturn: boolean): any {\n if (typeof data !== 'undefined') {\n // parse box shadow\n var boxShadow = data.split('px ');\n this._boxShadowObj = {\n x: this._boxShadow === 'none' ? 0 : parseInt(boxShadow[0], 10),\n y: this._boxShadow === 'none' ? 0 : parseInt(boxShadow[1], 10),\n blur: this._boxShadow === 'none' ? 0 : parseInt(boxShadow[2], 10),\n color: this._boxShadow === 'none' ? '' : boxShadow[3]\n };\n\n // take into account the shadow and its direction\n if (this._boxShadowObj.x < 0) {\n this.shadowL = Math.abs(this._boxShadowObj.x) + this._boxShadowObj.blur;\n this.shadowR = this._boxShadowObj.blur + this._boxShadowObj.x;\n } else {\n this.shadowL = Math.abs(this._boxShadowObj.blur - this._boxShadowObj.x);\n this.shadowR = this._boxShadowObj.blur + this._boxShadowObj.x;\n }\n if (this._boxShadowObj.y < 0) {\n this.shadowT = Math.abs(this._boxShadowObj.y) + this._boxShadowObj.blur;\n this.shadowB = this._boxShadowObj.blur + this._boxShadowObj.y;\n } else {\n this.shadowT = Math.abs(this._boxShadowObj.blur - this._boxShadowObj.y);\n this.shadowB = this._boxShadowObj.blur + this._boxShadowObj.y;\n }\n\n this.shadowW = this.shadowL + this.shadowR;\n this.shadowH = this.shadowT + this.shadowB;\n\n this._calcWH();\n\n if (!doReturn) {\n this._updateCanvasWH();\n\n return this.render();\n }\n } else {\n return this._boxShadow;\n }\n}\n\npublic get innerShadow():string { return this._innerShadow; }\npublic set innerShadow(value: string) {\n if (typeof value !== 'undefined') {\n this._innerShadow = value;\n this.render();\n }\n}\n\npublic get selectionColor():string { return this._selectionColor; }\npublic set selectionColor(value: string) {\n if (typeof value !== 'undefined') {\n this._selectionColor = value;\n this.render();\n }\n}\n\npublic get placeHolder():string { return this._placeHolder; }\npublic set placeHolder(value: string) {\n if (typeof value !== 'undefined') {\n this._placeHolder = value;\n this.render();\n }\n}\n\npublic get value():string { return (this._value === this._placeHolder) ? '' : this._value; }\npublic set value(data: string) {\n if (typeof data !== 'undefined') {\n this._value = data + '';\n this._hiddenInput.value = data + '';\n this._cursorPos = this._clipText().length;\n this.render();\n }\n}\n\npublic get onsubmit():any { return this._onsubmit; }\npublic set onsubmit(fn: any) {\n if (typeof fn !== 'undefined') {\n this._onsubmit = fn;\n }\n}\n\npublic get onkeydown():any { return this._onkeydown; }\npublic set onkeydown(fn: any) {\n if (typeof fn !== 'undefined') {\n this._onkeydown = fn;\n }\n}\n\npublic get onkeyup():any { return this._onkeyup; }\npublic set onkeyup(fn: any) {\n if (typeof fn !== 'undefined') {\n this._onkeyup = fn;\n }\n}\n\npublic focus = function(pos?: number):any {\n\n // only fire the focus event when going from unfocussed\n if (!this._hasFocus) {\n this._onfocus(this);\n\n // remove focus from all other inputs\n for (var i = 0; i < CanvasInput.inputs.length; i++) {\n if (CanvasInput.inputs[i]._hasFocus) {\n CanvasInput.inputs[i].blur();\n }\n }\n }\n\n // remove selection\n if (!this._selectionUpdated) {\n this._selection = [0, 0];\n } else {\n delete this._selectionUpdated;\n }\n\n // if this is readonly, don't allow it to get focus\n this._hasFocus = true;\n if (this._readonly) {\n this._hiddenInput.readOnly = true;\n return;\n } else {\n this._hiddenInput.readOnly = false;\n }\n\n // update the cursor position\n this._cursorPos = (typeof pos === 'number') ? pos : this._clipText().length;\n\n // clear the place holder\n if (this._placeHolder === this._value) {\n this._value = '';\n this._hiddenInput.value = '';\n }\n\n this._cursor = true;\n\n // setup cursor interval\n if (this._cursorInterval) {\n clearInterval(this._cursorInterval);\n }\n var _this = this;\n this._cursorInterval = setInterval(function() {\n _this._cursor = !_this._cursor;\n _this.render();\n }, 500);\n\n // move the real focus to the hidden input\n var hasSelection = (this._selection[0] > 0 || this._selection[1] > 0);\n this._hiddenInput.focus();\n this._hiddenInput.selectionStart = hasSelection ? this._selection[0] : this._cursorPos;\n this._hiddenInput.selectionEnd = hasSelection ? this._selection[1] : this._cursorPos;\n\n return this.render();\n}\n\npublic blur = function(cinput?:any) {\n var _this = cinput || this;\n\n _this._onblur(_this);\n\n if (_this._cursorInterval) {\n clearInterval(_this._cursorInterval);\n }\n _this._hasFocus = false;\n _this._cursor = false;\n _this._selection = [0, 0];\n _this._hiddenInput.blur();\n\n // fill the place holder\n if (_this._value === '') {\n _this._value = _this._placeHolder;\n }\n\n return this.render();\n}\n\nprivate keydown = function(e: any, _this: any):any {\n var keyCode = e.which,\n isShift = e.shiftKey,\n key = null,\n startText, endText;\n\n // make sure the correct text field is being updated\n if (this._readonly || !this._hasFocus) {\n return;\n }\n\n // fire custom user event\n this._onkeydown(e, this);\n\n // add support for Ctrl/Cmd+A selection\n if (keyCode === 65 && (e.ctrlKey || e.metaKey)) {\n this.selectText();\n e.preventDefault();\n return this.render();\n }\n\n // block keys that shouldn't be processed\n if (keyCode === 17 || e.metaKey || e.ctrlKey) {\n return this;\n }\n\n if (keyCode === 13) { // enter key\n e.preventDefault();\n this._onsubmit(e, this);\n } else if (keyCode === 9) { // tab key\n e.preventDefault();\n if (CanvasInput.inputs.length > 1) {\n var next = (CanvasInput.inputs[this._inputsIndex + 1]) ? this._inputsIndex + 1 : 0;\n this.blur();\n setTimeout(function() {\n CanvasInput.inputs[next].focus();\n }, 10);\n }\n }\n\n // update the canvas input state information from the hidden input\n this._value = this._hiddenInput.value;\n this._cursorPos = this._hiddenInput.selectionStart;\n this._selection = [0, 0];\n\n return this.render();\n}\n\nprivate click = function(e: any, _this: any):any {\n var mouse = _this._mousePos(e),\n x = mouse.x,\n y = mouse.y;\n\n if (_this._endSelection) {\n delete _this._endSelection;\n delete _this._selectionUpdated;\n return;\n }\n\n if (_this._canvas && _this._overInput(x, y) || !_this._canvas) {\n if (_this._mouseDown) {\n _this._mouseDown = false;\n _this.click(e, _this);\n return _this.focus(_this._clickPos(x, y));\n }\n } else {\n return _this.blur();\n }\n}\n\nprivate mousemove = function(e: any, _this):any {\n var mouse = _this._mousePos(e),\n x = mouse.x,\n y = mouse.y,\n isOver = _this._overInput(x, y);\n\n if (isOver && _this._canvas) {\n _this._canvas.style.cursor = 'text';\n _this._wasOver = true;\n } else if (_this._wasOver && _this._canvas) {\n _this._canvas.style.cursor = 'default';\n _this._wasOver = false;\n }\n\n if (_this._hasFocus && _this._selectionStart >= 0) {\n var curPos = _this._clickPos(x, y),\n start = Math.min(_this._selectionStart, curPos),\n end = Math.max(_this._selectionStart, curPos);\n\n if (!isOver) {\n _this._selectionUpdated = true;\n _this._endSelection = true;\n delete _this._selectionStart;\n _this.render();\n return;\n }\n\n if (_this._selection[0] !== start || _this._selection[1] !== end) {\n _this._selection = [start, end];\n _this.render();\n }\n }\n}\n\nprivate mousedown = function(e: any, _this: any) {\n var mouse = _this._mousePos(e),\n x = mouse.x,\n y = mouse.y,\n isOver = _this._overInput(x, y);\n\n // setup the 'click' event\n _this._mouseDown = isOver;\n\n // start the selection drag if inside the input\n if (_this._hasFocus && isOver) {\n _this._selectionStart = _this._clickPos(x, y);\n }\n}\n\nprivate mouseup = function(e: any, _this: any) {\n var mouse = _this._mousePos(e),\n x = mouse.x,\n y = mouse.y;\n\n // update selection if a drag has happened\n var isSelection = _this._clickPos(x, y) !== _this._selectionStart;\n if (_this._hasFocus && _this._selectionStart >= 0 && _this._overInput(x, y) && isSelection) {\n _this._selectionUpdated = true;\n delete _this._selectionStart;\n _this.render();\n } else {\n delete _this._selectionStart;\n }\n _this.click(e, _this);\n}\n\nprivate selectText = function(range?: number[]):any {\n var _range = range || [0, this._value.length];\n\n // select the range of text specified (or all if none specified)\n setTimeout(function() {\n this._selection = [_range[0], _range[1]];\n this._hiddenInput.selectionStart = _range[0];\n this._hiddenInput.selectionEnd = _range[1];\n this.render();\n }, 1);\n\n return this;\n}\n\npublic get renderCanvas():HTMLCanvasElement {\n return this._renderCanvas;\n}\n\npublic destroy = function() {\n // pull from the inputs array\n var index = CanvasInput.inputs.indexOf(this);\n if (index) {\n CanvasInput.inputs.splice(index, 1);\n }\n\n // remove focus\n if (this._hasFocus) {\n this.blur();\n }\n\n // remove the hidden input box\n document.body.removeChild(this._hiddenInput);\n\n // remove off-DOM canvas\n this._renderCanvas = null;\n this._shadowCanvas = null;\n this._renderCtx = null;\n}\n\nprivate _textWidth = function(text: string): number {\n var ctx = this._renderCtx;\n\n ctx.font = this._fontStyle + ' ' + this._fontWeight + ' ' + this._fontSize + 'px ' + this._fontFamily;\n ctx.textAlign = 'left';\n\n return ctx.measureText(text).width;\n}\n\n\n\nprivate _clipText = function(value?: string): string {\n value = (typeof value === 'undefined') ? this._value : value;\n\n var textWidth = this._textWidth(value),\n fillPer = textWidth / (this._width - this._padding),\n text = fillPer > 1 ? value.substr(-1 * Math.floor(value.length / fillPer)) : value;\n\n return text + '';\n}\n\nprivate _overInput = function(x: number, y: number): boolean {\n var xLeft = x >= this._x + this._extraX,\n xRight = x <= this._x + this._extraX + this._width + this._padding * 2,\n yTop = y >= this._y + this._extraY,\n yBottom = y <= this._y + this._extraY + this._height + this._padding * 2;\n\n return xLeft && xRight && yTop && yBottom;\n}\n\n private _clickPos = function(x: number, y: number): number {\n var value = this._value;\n\n // don't count placeholder text in this\n if (this._value === this._placeHolder) {\n value = '';\n }\n\n // determine where the click was made along the string\n var text = this._clipText(value),\n totalW = 0,\n pos = text.length;\n\n if (x - (this._x + this._extraX) < this._textWidth(text)) {\n // loop through each character to identify the position\n for (var i=0; i= x - (this._x + this._extraX)) {\n pos = i;\n break;\n }\n }\n }\n\n return pos;\n }\n\n\nprivate _drawTextBox = function(fn: any) {\n var ctx = this._renderCtx,\n w = this.outerW,\n h = this.outerH,\n br = this._borderRadius,\n bw = this._borderWidth,\n sw = this.shadowW,\n sh = this.shadowH;\n\n // only draw the background shape if no image is being used\n if (this._backgroundImage === '') {\n ctx.fillStyle = this._backgroundColor;\n this._roundedRect(ctx, bw + this.shadowL, bw + this.shadowT, w - bw * 2 - sw, h - bw * 2 - sh, br);\n ctx.fill();\n\n fn();\n } else {\n var img = new Image();\n img.src = this._backgroundImage;\n img.onload = function() {\n ctx.drawImage(img, 0, 0, img.width, img.height, bw + this.shadowL, bw + this.shadowT, w, h);\n\n fn();\n };\n }\n}\n\nprivate _roundedRect = function(ctx, x, y, w, h, r) {\n if (w < 2 * r) r = w / 2;\n if (h < 2 * r) r = h / 2;\n\n ctx.beginPath();\n\n ctx.moveTo(x + r, y);\n ctx.lineTo(x + w - r, y);\n ctx.quadraticCurveTo(x + w, y, x + w, y + r);\n ctx.lineTo(x + w, y + h - r);\n ctx.quadraticCurveTo(x + w, y + h, x + w - r, y + h);\n ctx.lineTo(x + r, y + h);\n ctx.quadraticCurveTo(x, y + h, x, y + h - r);\n ctx.lineTo(x, y + r);\n ctx.quadraticCurveTo(x, y, x + r, y);\n\n ctx.closePath();\n}\n\nprivate _clearSelection = function(): boolean {\n\n if (this._selection[1] > 0) {\n // clear the selected contents\n var start = this._selection[0],\n end = this._selection[1];\n\n this._value = this._value.substr(0, start) + this._value.substr(end);\n this._cursorPos = start;\n this._cursorPos = (this._cursorPos < 0) ? 0 : this._cursorPos;\n this._selection = [0, 0];\n\n return true;\n }\n\n return false;\n}\n\n\nprivate _mousePos(e: any):any {\n var elm = e.target,\n style = document.defaultView.getComputedStyle(elm, undefined),\n paddingLeft = parseInt(style['paddingLeft'], 10) || 0,\n paddingTop = parseInt(style['paddingLeft'], 10) || 0,\n borderLeft = parseInt(style['borderLeftWidth'], 10) || 0,\n borderTop = parseInt(style['borderLeftWidth'], 10) || 0,\n offsetX = 0,\n offsetY = 0,\n htmlTop = 0,\n htmlLeft = 0,\n x, y;\n\n // TODO: This needs to be retested but the original\n // document.body.parentNode.offsetTop throws errors\n var htmlrec = document.body.getBoundingClientRect();\n htmlTop = htmlrec.top || 0;\n htmlLeft = htmlrec.left || 0;\n\n // calculate the total offset\n if (typeof elm.offsetParent !== 'undefined') {\n do {\n offsetX += elm.offsetLeft;\n offsetY += elm.offsetTop;\n } while ((elm = elm.offsetParent));\n }\n\n // take into account borders and padding\n offsetX += paddingLeft + borderLeft + htmlLeft;\n offsetY += paddingTop + borderTop + htmlTop;\n\n return {\n x: e.pageX - offsetX,\n y: e.pageY - offsetY\n };\n}\n\nprivate _calcWH = function () {\n // calculate the full width and height with padding, borders and shadows\n this.outerW = this._width + this._padding * 2 + this._borderWidth * 2 + this.shadowW;\n this.outerH = this._height + this._padding * 2 + this._borderWidth * 2 + this.shadowH;\n};\n\nprivate _updateCanvasWH = function() {\n var oldW = this._renderCanvas.width;\n var oldH = this._renderCanvas.height;\n\n // update off-DOM canvas\n this._renderCanvas.setAttribute('width', this.outerW);\n this._renderCanvas.setAttribute('height', this.outerH);\n this._shadowCanvas.setAttribute('width', this._width + this._padding * 2);\n this._shadowCanvas.setAttribute('height', this._height + this._padding * 2);\n\n // clear the main canvas\n if (this._ctx) {\n if (this._renderType === '2d') {\n this._ctx.clearRect(this._x, this._y, oldW, oldH);\n } else {\n // Possibly create a webgl clearRect here\n }\n }\n};\n\npublic render = function(): any {\n var ctx = this._renderCtx,\n w = this.outerW,\n h = this.outerH,\n br = this._borderRadius,\n bw = this._borderWidth,\n sw = this.shadowW,\n sh = this.shadowH;\n\n if (!ctx) {\n return;\n }\n\n // clear the canvas\n ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);\n\n // setup the box shadow\n ctx.shadowOffsetX = this._boxShadow.x;\n ctx.shadowOffsetY = this._boxShadow.y;\n ctx.shadowBlur = this._boxShadow.blur;\n ctx.shadowColor = this._boxShadow.color;\n\n // draw the border\n if (this._borderWidth > 0) {\n ctx.fillStyle = this._borderColor;\n this._roundedRect(ctx, this.shadowL, this.shadowT, w - sw, h - sh, br);\n ctx.fill();\n\n ctx.shadowOffsetX = 0;\n ctx.shadowOffsetY = 0;\n ctx.shadowBlur = 0;\n }\n\n // draw the text box background\n var _this = this;\n this._drawTextBox(function() {\n // make sure all shadows are reset\n ctx.shadowOffsetX = 0;\n ctx.shadowOffsetY = 0;\n ctx.shadowBlur = 0;\n\n // clip the text so that it fits within the box\n var text = _this._clipText();\n\n // draw the selection\n var paddingBorder = _this._padding + _this._borderWidth + _this.shadowT;\n if (_this._selection[1] > 0) {\n var selectOffset = _this._textWidth(text.substring(0, _this._selection[0])),\n selectWidth = _this._textWidth(text.substring(_this._selection[0], _this._selection[1]));\n\n ctx.fillStyle = _this._selectionColor;\n ctx.fillRect(paddingBorder + selectOffset, paddingBorder, selectWidth, _this._height);\n }\n\n // draw the cursor\n if (_this._cursor) {\n var cursorOffset = _this._textWidth(text.substring(0, _this._cursorPos));\n ctx.fillStyle = _this._fontColor;\n ctx.fillRect(paddingBorder + cursorOffset, paddingBorder, 1, _this._height);\n }\n\n // draw the text\n var textX = _this._padding + _this._borderWidth + _this.shadowL,\n textY = Math.round(paddingBorder + _this._height / 2);\n\n // only remove the placeholder text if they have typed something\n text = (text === '' && _this._placeHolder) ? _this._placeHolder : text;\n\n ctx.fillStyle = (_this._value !== '' && _this._value !== _this._placeHolder) ? _this._fontColor : _this._placeHolderColor;\n ctx.font = _this._fontStyle + ' ' + _this._fontWeight + ' ' + _this._fontSize + 'px ' + _this._fontFamily;\n ctx.textAlign = 'left';\n ctx.textBaseline = 'middle';\n ctx.fillText(text, textX, textY);\n\n // parse inner shadow\n var innerShadow = _this._innerShadow.split('px '),\n isOffsetX = _this._innerShadow === 'none' ? 0 : parseInt(innerShadow[0], 10),\n isOffsetY = _this._innerShadow === 'none' ? 0 : parseInt(innerShadow[1], 10),\n isBlur = _this._innerShadow === 'none' ? 0 : parseInt(innerShadow[2], 10),\n isColor = _this._innerShadow === 'none' ? '' : innerShadow[3];\n\n // draw the inner-shadow (damn you canvas, this should be easier than this...)\n if (isBlur > 0) {\n var shadowCtx = _this._shadowCtx,\n scw = shadowCtx.canvas.width,\n sch = shadowCtx.canvas.height;\n\n shadowCtx.clearRect(0, 0, scw, sch);\n shadowCtx.shadowBlur = isBlur;\n shadowCtx.shadowColor = isColor;\n\n // top shadow\n shadowCtx.shadowOffsetX = 0;\n shadowCtx.shadowOffsetY = isOffsetY;\n shadowCtx.fillRect(-1 * w, -100, 3 * w, 100);\n\n // right shadow\n shadowCtx.shadowOffsetX = isOffsetX;\n shadowCtx.shadowOffsetY = 0;\n shadowCtx.fillRect(scw, -1 * h, 100, 3 * h);\n\n // bottom shadow\n shadowCtx.shadowOffsetX = 0;\n shadowCtx.shadowOffsetY = isOffsetY;\n shadowCtx.fillRect(-1 * w, sch, 3 * w, 100);\n\n // left shadow\n shadowCtx.shadowOffsetX = isOffsetX;\n shadowCtx.shadowOffsetY = 0;\n shadowCtx.fillRect(-100, -1 * h, 100, 3 * h);\n\n // create a clipping mask on the main canvas\n _this._roundedRect(ctx, bw + _this.shadowL, bw + _this.shadowT, w - bw * 2 - sw, h - bw * 2 - sh, br);\n ctx.clip();\n\n // draw the inner-shadow from the off-DOM canvas\n ctx.drawImage(_this._shadowCanvas, 0, 0, scw, sch, bw + _this.shadowL, bw + _this.shadowT, scw, sch);\n }\n\n // draw to the visible canvas\n if (_this._ctx) {\n _this._ctx.clearRect(_this._x, _this._y, ctx.canvas.width, ctx.canvas.height);\n _this._ctx.drawImage(_this._renderCanvas, _this._x, _this._y);\n }\n\n return _this;\n });\n};\n}\n"},"meta":{"kind":"string","value":"{'content_hash': '580611d57cab2856f4090f2daae836c4', 'timestamp': '', 'source': 'github', 'line_count': 1137, 'max_line_length': 165, 'avg_line_length': 33.373790677220754, 'alnum_prop': 0.5758182680651452, 'repo_name': 'rashwell/canvasinput', 'id': 'ccdc65d7a9c713c55a6fddeca89ea561776b0094', 'size': '37946', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'ts/canvasinput.ts', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '651'}, {'name': 'HTML', 'bytes': '6821'}, {'name': 'JavaScript', 'bytes': '47530'}, {'name': 'TypeScript', 'bytes': '37946'}]}"}}},{"rowIdx":849136,"cells":{"text":{"kind":"string","value":"KERNEL_OBJECTS = $(build/_entry.o)\n\nKERNEL_ASM_SOURCES = $(wildcard kernel/*.asm)\nKERNEL_ASM_SOURCES += $(wildcard kernel/*/*.asm)\nKERNEL_OBJECTS += $(patsubst kernel/%.asm, build/%.o, $(KERNEL_ASM_SOURCES))\n\nKERNEL_C_SOURCES = $(wildcard kernel/*.c)\nKERNEL_C_SOURCES += $(wildcard kernel/*/*.c)\nKERNEL_OBJECTS += $(patsubst kernel/%.c, build/%.o, $(KERNEL_C_SOURCES))\n\nall: vermilion.iso\n\nbuild/%.o: kernel/%.c\n\tmkdir -p build\n\tmkdir -p build/drivers\n\tgcc -fno-stack-protector -ffreestanding -std=c99 -m32 -Wall -Werror -c $< -o $@\n\nbuild/%.o: kernel/%.asm\n\tmkdir -p build\n\tmkdir -p build/drivers\n\tnasm $^ -f elf32 -o $@\n\nvermilion.bin: ${KERNEL_OBJECTS}\n\tld -m elf_i386 --script linker.ld -o $@ $^\n\n.PHONY: run\nrun: vermilion.bin\n\tqemu-system-i386 -kernel vermilion.bin\n\n.PHONY: clean\nclean:\n\trm -rf build iso/boot/vermilion.bin vermilion.iso\n"},"meta":{"kind":"string","value":"{'content_hash': '79ac5ff705f22f2b3e5c2c452a983ed8', 'timestamp': '', 'source': 'github', 'line_count': 32, 'max_line_length': 80, 'avg_line_length': 26.40625, 'alnum_prop': 0.6792899408284023, 'repo_name': 'campaul/vermilion', 'id': 'dddfd62b0ee3372a8e0b3b437c6fae8e87e29117', 'size': '845', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'Makefile', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Assembly', 'bytes': '1740'}, {'name': 'C', 'bytes': '4404'}, {'name': 'C++', 'bytes': '64'}, {'name': 'Makefile', 'bytes': '845'}]}"}}},{"rowIdx":849137,"cells":{"text":{"kind":"string","value":"

    Viewing #id; ?>

    \n\n

    \n\tName:\n\tname; ?>

    \n

    \n\tPc name:\n\tpc_name; ?>

    \n

    \n\tProcessor key:\n\tprocessor_key; ?>

    \n

    \n\tImage layout:\n\timage_layout; ?>

    \n

    \n\tLocation id:\n\tlocation_id; ?>

    \n\nid, 'Edit'); ?> |\n"},"meta":{"kind":"string","value":"{'content_hash': 'dd3f7e23ae2dbd7d3d68c8bc724fa5ce', 'timestamp': '', 'source': 'github', 'line_count': 20, 'max_line_length': 82, 'avg_line_length': 29.05, 'alnum_prop': 0.6368330464716007, 'repo_name': 'AfterCursor/restaurant-pos-backend', 'id': '7801bed1b251db186ea6a26ca649906a51001ddc', 'size': '581', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'fuel/app/views/admin/workstations/view.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'ApacheConf', 'bytes': '1860'}, {'name': 'C', 'bytes': '30103'}, {'name': 'HTML', 'bytes': '1878'}, {'name': 'PHP', 'bytes': '3023488'}]}"}}},{"rowIdx":849138,"cells":{"text":{"kind":"string","value":"SYNONYM\n\n#### According to\nThe Catalogue of Life, 3rd January 2011\n\n#### Published in\nin Saccardo, Syll. fung. (Abellini) 15: 94 (1901)\n\n#### Original name\nAgaricus undulatus Hoffm., 1797\n\n### Remarks\nnull"},"meta":{"kind":"string","value":"{'content_hash': 'a09a9324c397c4f760823e26b988d9d8', 'timestamp': '', 'source': 'github', 'line_count': 13, 'max_line_length': 49, 'avg_line_length': 15.76923076923077, 'alnum_prop': 0.7024390243902439, 'repo_name': 'mdoering/backbone', 'id': 'aba7bf29d761ec2fa6f4588395105a126376f352', 'size': '268', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'life/Fungi/Basidiomycota/Agaricomycetes/Agaricales/Entolomataceae/Rhodocybe/Rhodocybe hirneola/ Syn. Clitocybe undulata/README.md', 'mode': '33188', 'license': 'apache-2.0', 'language': []}"}}},{"rowIdx":849139,"cells":{"text":{"kind":"string","value":"object = new City;\n }\n\n /**\n * Tears down the fixture, for example, closes a network connection.\n * This method is called after a test is executed.\n */\n protected function tearDown() {\n \n }\n\n /**\n * @covers RandData\\Set\\ru_RU\\City::get\n * @covers RandData\\Set\\ru_RU\\City::getList\n */\n public function testGet() {\n $pattern = \"/^[АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя\\w\\s-]+$/\";\n\n for ($i=1; $i <= 10; $i++) {\n $this->assertRegExp($pattern, $this->object->get());\n }\n }\n}\n"},"meta":{"kind":"string","value":"{'content_hash': 'b6764a609edc235b7ebed86ca89e6845', 'timestamp': '', 'source': 'github', 'line_count': 42, 'max_line_length': 100, 'avg_line_length': 23.785714285714285, 'alnum_prop': 0.5905905905905906, 'repo_name': 'KonstantinFilin/RandData', 'id': 'f3058e00834df2ac59f8530ae1f63450dba5f9a8', 'size': '1065', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'tests/src/RandData/Set/ru_RU/CityTest.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '1835'}, {'name': 'HTML', 'bytes': '2860879'}, {'name': 'PHP', 'bytes': '286270'}]}"}}},{"rowIdx":849140,"cells":{"text":{"kind":"string","value":"module Cyclid\n # Module for the Cyclid API\n module API\n # Some constants to identify types of API operation\n module Operations\n # Read operations\n READ = 1\n # Write (Create, Update, Delete) operations\n WRITE = 2\n # Administrator operations\n ADMIN = 3\n end\n\n # Sinatra Warden AuthN/AuthZ helpers\n module AuthHelpers\n # Return an HTTP error with a RESTful JSON response\n # XXX Should probably be in ApiHelpers?\n def halt_with_json_response(error, id, description)\n halt error, json_response(id, description)\n end\n\n # Call the Warden authenticate! method\n def authenticate!\n env['warden'].authenticate!\n end\n\n # Authenticate the user, then ensure that the user is authorized for\n # the given organization and operation\n def authorized_for!(org_name, operation)\n authenticate!\n\n user = current_user\n\n # Promote the organization to 'admins' if the user is a SuperAdmin\n org_name = 'admins' if super_admin?(user)\n\n begin\n organization = user.organizations.find_by(name: org_name)\n halt_with_json_response(401, Errors::HTTPErrors::AUTH_FAILURE, 'unauthorized') \\\n if organization.nil?\n Cyclid.logger.debug \"authorized_for! organization: #{organization.name}\"\n\n # Check what Permissions are applied to the user for this Org & match\n # against operation\n permissions = user.userpermissions.find_by(organization: organization)\n Cyclid.logger.debug \"authorized_for! #{permissions.inspect}\"\n\n # Admins have full authority, regardless of the operation\n return true if permissions.admin\n return true if operation == Operations::WRITE && permissions.write\n return true if operation == Operations::READ && (permissions.write || permissions.read)\n\n Cyclid.logger.info \"user #{user.username} is not authorized for operation #{operation}\"\n\n halt_with_json_response(401, Errors::HTTPErrors::AUTH_FAILURE, 'unauthorized')\n rescue StandardError => ex # XXX: Use a more specific rescue\n Cyclid.logger.info \"authorization failed: #{ex}\"\n halt_with_json_response(401, Errors::HTTPErrors::AUTH_FAILURE, 'unauthorized')\n end\n end\n\n # Authenticate the user, then ensure that the user is an admin and\n # authorized for the resource for the given username & operation\n def authorized_admin!(operation)\n authorized_for!('admins', operation)\n end\n\n # Authenticate the user, then ensure that the user is authorized for the\n # resource for the given username & operation\n def authorized_as!(username, operation)\n authenticate!\n\n user = current_user\n\n # Users are always authorized for any operation on their own data\n return true if user.username == username\n\n # Super Admins may be authorized, depending on the operation\n if super_admin?(user)\n begin\n organization = user.organizations.find_by(name: 'admins')\n permissions = user.userpermissions.find_by(organization: organization)\n Cyclid.logger.debug permissions\n\n # Admins have full authority, regardless of the operation\n return true if permissions.admin\n return true if operation == Operations::WRITE && permissions.write\n return true if operation == Operations::READ && (permissions.write || permissions.read)\n rescue StandardError => ex # XXX: Use a more specific rescue\n Cyclid.logger.info \"authorization failed: #{ex}\"\n halt_with_json_response(401, Errors::HTTPErrors::AUTH_FAILURE, 'unauthorized')\n end\n\n end\n\n halt_with_json_response(401, Errors::HTTPErrors::AUTH_FAILURE, 'unauthorized')\n end\n\n # Check if the given user is a Super Admin; any user that belongs to the\n # 'admins' organization is a super admin\n def super_admin?(user)\n user.organizations.exists?(name: 'admins')\n end\n\n # Current User object from the session\n def current_user\n env['warden'].user\n end\n end\n end\nend\n"},"meta":{"kind":"string","value":"{'content_hash': '1a3688cf608ab3b917b79dee4280a062', 'timestamp': '', 'source': 'github', 'line_count': 111, 'max_line_length': 99, 'avg_line_length': 37.86486486486486, 'alnum_prop': 0.6531049250535332, 'repo_name': 'Liqwyd/Cyclid', 'id': '13ccfecc0a406ae8b65cc41a64cfc03c9edfbc7e', 'size': '4854', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'app/cyclid/sinatra/auth_helpers.rb', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'HTML', 'bytes': '1788'}, {'name': 'Ruby', 'bytes': '367000'}]}"}}},{"rowIdx":849141,"cells":{"text":{"kind":"string","value":"\n\npackage ariba.util.log;\n\nimport java.util.Enumeration;\n\nimport org.apache.log4j.Appender;\nimport org.apache.log4j.helpers.AppenderAttachableImpl;\nimport org.apache.log4j.helpers.BoundedFIFO;\nimport org.apache.log4j.helpers.LogLog;\nimport org.apache.log4j.spi.LoggingEvent;\n\nimport ariba.util.core.FastStringBuffer;\nimport ariba.util.core.SystemUtil;\n\n/**\n Basically cloned from log4j's AsyncAppender in log4j 1.2.8. Unfortunately\n that class was not designed to be overridden from outside its package, so\n it had to be duplicated.\n\n Key differences to provide robustness and error accounting:\n\n 1) The Dispatcher call to appendLoopOnAppenders(event) is now in a try/catch\n block so if an exception occurs in the filtering or appending (processing)\n of the event it doesn't kill the dispatcher.\n\n 2) When the exceptions mentioned in (1) occur, they are captured by\n AsyncAppender and available externally (see the xxxMessage(s) methods,\n below).\n\n @see org.apache.log4j.AsyncAppender\n @aribaapi private\n*/\npublic class AsyncAppender extends org.apache.log4j.AppenderSkeleton\n{\n\n /**\n The default buffer size is set to 128 events.\n */\n public static final int DEFAULT_BUFFER_SIZE = 128;\n\n BoundedFIFO bf = new BoundedFIFO(DEFAULT_BUFFER_SIZE);\n\n AppenderAttachableImpl aai;\n\n Dispatcher dispatcher;\n\n boolean locationInfo = false;\n\n boolean interruptedWarningMessage = false;\n\n boolean isConsoleWriteSuspended;\n private static final String PREFIX = \"(IMPORTANT) Async appender \";\n\n private boolean _closed;\n\n public AsyncAppender (boolean isConsoleWriteSuspended)\n {\n // Note: The dispatcher code assumes that the aai is set once and\n // for all.\n this.isConsoleWriteSuspended = isConsoleWriteSuspended;\n aai = new AppenderAttachableImpl();\n dispatcher = new Dispatcher(bf, this);\n dispatcher.start();\n }\n\n public void addAppender (Appender newAppender)\n {\n synchronized (aai) {\n aai.addAppender(newAppender);\n }\n }\n\n public void append (LoggingEvent event)\n {\n // If appender was closed, don't accept any more logging events, so we\n // avoid a NPE on 'bf' below.\n if (_closed) {\n return;\n }\n \n // Set the NDC and thread name for the calling thread as these\n // LoggingEvent fields were not set at event creation time.\n event.getNDC();\n event.getThreadName();\n // Get a copy of this thread's MDC.\n event.getMDCCopy();\n if (locationInfo) {\n event.getLocationInformation();\n }\n synchronized (bf) {\n /**\n If low level Logger debugging is on, send messages\n whenever we start with the buffer full.\n @see Logger#isDebugging\n */\n if (bf.isFull() && Logger.isDebugging()) {\n printMessage(\"full buffer.\", this, bf, null);\n }\n while (bf.isFull()) {\n try {\n bf.wait();\n }\n catch (InterruptedException e) {\n if (!interruptedWarningMessage) {\n interruptedWarningMessage = true;\n LogLog.warn(\"AsyncAppender interrupted.\", e);\n }\n else {\n LogLog.warn(\"AsyncAppender interrupted again.\");\n }\n }\n }\n\n bf.put(event);\n bf.notify();\n }\n }\n\n /**\n Close this AsyncAppender by interrupting the\n dispatcher thread which will process all pending events before\n exiting.\n */\n public void close ()\n {\n synchronized(this) {\n // avoid multiple close, otherwise one gets NullPointerException\n if (_closed) {\n return;\n }\n _closed = true;\n }\n\n // The following cannot be synchronized on \"this\" because the\n // dispatcher synchronizes with \"this\" in its while loop. If we\n // did synchronize we would systematically get deadlocks when\n // close was called.\n dispatcher.close();\n try {\n dispatcher.join();\n }\n catch (InterruptedException e) {\n LogLog.error(\"Got an InterruptedException while waiting for the \" +\n \"dispatcher to finish.\", e);\n }\n dispatcher = null;\n bf = null;\n \n // Unregister this so it doesn't get polled for messages.\n Logger.unregisterAsyncAppender(this);\n }\n\n public Enumeration getAllAppenders ()\n {\n synchronized (aai) {\n return aai.getAllAppenders();\n }\n }\n\n public Appender getAppender (String name)\n {\n synchronized (aai) {\n return aai.getAppender(name);\n }\n }\n\n /**\n Returns the current value of the LocationInfo option.\n */\n public boolean getLocationInfo ()\n {\n return locationInfo;\n }\n \n /**\n Is the appender passed as parameter attached to this category?\n */\n public boolean isAttached (Appender appender)\n {\n return aai.isAttached(appender);\n }\n\n /**\n The AsyncAppender does not require a layout. Hence,\n this method always returns false.\n */\n public boolean requiresLayout ()\n {\n return false;\n }\n\n public void removeAllAppenders ()\n {\n synchronized (aai) {\n aai.removeAllAppenders();\n }\n }\n\n public void removeAppender (Appender appender)\n {\n synchronized (aai) {\n aai.removeAppender(appender);\n }\n }\n\n public void removeAppender (String name)\n {\n synchronized (aai) {\n aai.removeAppender(name);\n }\n }\n\n /**\n The LocationInfo option takes a boolean value. By default,\n it is set to false which means there will be no effort to extract\n the location information related to the event. As a result, the\n event that will be ultimately logged will likely to contain the\n wrong location information (if present in the log format).\n\n

    Location information extraction is comparatively very slow and\n should be avoided unless performance is not a concern.\n */\n public void setLocationInfo (boolean flag)\n {\n locationInfo = flag;\n }\n\n /**\n The BufferSize option takes a non-negative integer value.\n This integer value determines the maximum size of the bounded\n buffer. Increasing the size of the buffer is always\n safe. However, if an existing buffer holds unwritten elements,\n then decreasing the buffer size will result in event\n loss. Nevertheless, while script configuring the\n AsyncAppender, it is safe to set a buffer size smaller than the\n {@link #DEFAULT_BUFFER_SIZE default buffer size} because\n configurators guarantee that an appender cannot be used before\n being completely configured.\n */\n public void setBufferSize (int size)\n {\n bf.resize(size);\n }\n\n /**\n Returns the current value of the BufferSize option.\n */\n public int getBufferSize ()\n {\n return bf.getMaxSize();\n }\n\n /**\n Print an error or debug message standard out.\n\n @aribaapi private\n */\n void printMessage(String s, AsyncAppender app, BoundedFIFO buff,\n Throwable th)\n {\n if (!isConsoleWriteSuspended) {\n FastStringBuffer b = new FastStringBuffer(PREFIX);\n b.append(s);\n b.append(\" Appender: \");\n b.append(app.getName());\n b.append('/');\n b.append(app);\n b.append(\", buffer: \");\n b.append(buff);\n if (th != null) {\n b.append('\\n');\n b.append(SystemUtil.stackTrace(th));\n }\n SystemUtil.out().println(b);\n SystemUtil.flushOutput();\n }\n }\n\n}\n\n// ------------------------------------------------------------------------------\n// ------------------------------------------------------------------------------\n// ----------------------------------------------------------------------------\n\nclass Dispatcher extends Thread\n{\n\n BoundedFIFO bf;\n\n AppenderAttachableImpl aai;\n\n boolean interrupted = false;\n\n AsyncAppender container;\n\n Dispatcher (BoundedFIFO bf, AsyncAppender container)\n {\n this.bf = bf;\n this.container = container;\n this.aai = container.aai;\n // It is the user's responsibility to close appenders before\n // exiting.\n this.setDaemon(true);\n // set the dispatcher priority to lowest possible value\n this.setPriority(Thread.MIN_PRIORITY);\n // set name based on creating thread so that way if the appender\n // is not closed out the creator can be id'ed\n this.setName(Thread.currentThread().getName()+\"-Dispatcher-\" + getName());\n\n // set the dispatcher priority to MIN_PRIORITY plus or minus 2\n // depending on the direction of MIN to MAX_PRIORITY.\n //+ (Thread.MAX_PRIORITY > Thread.MIN_PRIORITY ? 1 : -1)*2);\n\n }\n\n void close ()\n {\n synchronized (bf) {\n interrupted = true;\n // We have a waiting dispacther if and only if bf.length is\n // zero. In that case, we need to give it a death kiss.\n bf.notify();\n }\n }\n\n /**\n The dispatching strategy is to wait until there are events in the\n buffer to process. After having processed an event, we release\n the monitor (variable bf) so that new events can be placed in the\n buffer, instead of keeping the monitor and processing the remaining\n events in the buffer.\n\n

    Other approaches might yield better results.\n\n */\n public void run ()\n {\n\n //Category cat = Category.getInstance(Dispatcher.class.getName());\n\n LoggingEvent event;\n\n while (true) {\n synchronized (bf) {\n if (bf.length() == 0) {\n // Exit loop if interrupted but only if the the buffer is empty.\n if (interrupted) {\n break;\n }\n try {\n bf.wait();\n }\n catch (InterruptedException e) {\n LogLog.error(\"The dispatcher should not be interrupted.\");\n break;\n }\n }\n event = bf.get();\n bf.notify();\n } // synchronized\n\n // The synchronization on parent is necessary to protect against\n // operations on the aai object of the parent\n synchronized (container.aai) {\n if (aai != null && event != null) {\n // This is a key difference from the log4j code--we\n // enclose the appending call in a try catch block\n // so that event processing errors don't bring down\n // the dispatcher thread.\n try {\n aai.appendLoopOnAppenders(event);\n }\n catch (Throwable t) { // OK\n // Post a message to the container indicating\n // that we had a problem appending the event\n // to one or more appender.\n container.printMessage(\"dispatcher exception.\",\n container, bf, t);\n }\n }\n }\n } // while\n\n // close and remove all appenders\n aai.removeAllAppenders();\n }\n}\n"},"meta":{"kind":"string","value":"{'content_hash': 'f63943bb0983e907f4b78df3404944ad', 'timestamp': '', 'source': 'github', 'line_count': 388, 'max_line_length': 84, 'avg_line_length': 30.693298969072163, 'alnum_prop': 0.5585691493828198, 'repo_name': 'pascalrobert/aribaweb', 'id': 'f67b5b1d92aa78bd46a7d7008059a42b971341f8', 'size': '12586', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'src/util/src/main/java/ariba/util/log/AsyncAppender.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '4662'}, {'name': 'CSS', 'bytes': '159681'}, {'name': 'Groovy', 'bytes': '97320'}, {'name': 'HTML', 'bytes': '77555'}, {'name': 'Java', 'bytes': '9376986'}, {'name': 'JavaScript', 'bytes': '1067701'}, {'name': 'Lex', 'bytes': '5128'}, {'name': 'PHP', 'bytes': '491'}, {'name': 'Shell', 'bytes': '5719'}]}"}}},{"rowIdx":849142,"cells":{"text":{"kind":"string","value":" 255],\n [['status_id'], 'exist', 'skipOnError' => true, 'targetClass' => RefStatus::className(), 'targetAttribute' => ['status_id' => 'id']],\n ];\n }\n\n /**\n * @inheritdoc\n */\n public function attributeLabels()\n {\n return [\n 'id' => Yii::t('app', 'ID'),\n 'hex_code' => Yii::t('app', 'Hex Code'),\n 'name' => Yii::t('app', 'Name'),\n 'description' => Yii::t('app', 'Description'),\n 'sort_order' => Yii::t('app', 'Sort Order'),\n 'status_id' => Yii::t('app', 'Status ID'),\n 'created_at' => Yii::t('app', 'Created At'),\n 'updated_at' => Yii::t('app', 'Updated At'),\n 'created_by' => Yii::t('app', 'Created By'),\n 'updated_by' => Yii::t('app', 'Updated By'),\n ];\n }\n\n \n\n /**\n * @return \\yii\\db\\ActiveQuery\n */\n public function getStatus()\n {\n return $this->hasOne(RefStatus::className(), ['id' => 'status_id']);\n }\n}\n"},"meta":{"kind":"string","value":"{'content_hash': '8de86a2e3cb29cd06e3af09341620666', 'timestamp': '', 'source': 'github', 'line_count': 75, 'max_line_length': 145, 'avg_line_length': 26.973333333333333, 'alnum_prop': 0.5244686109738013, 'repo_name': 'spiro-stathakis/projects', 'id': 'dbea4df0af764a19386ee43b4f8f4d5eaaae910c', 'size': '2023', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'common/models/Palette.php', 'mode': '33188', 'license': 'bsd-3-clause', 'language': [{'name': 'ApacheConf', 'bytes': '201'}, {'name': 'Batchfile', 'bytes': '1541'}, {'name': 'CSS', 'bytes': '36068'}, {'name': 'JavaScript', 'bytes': '632845'}, {'name': 'PHP', 'bytes': '815205'}, {'name': 'SQLPL', 'bytes': '24096'}, {'name': 'Shell', 'bytes': '307'}]}"}}},{"rowIdx":849143,"cells":{"text":{"kind":"string","value":"Kabam-plugin-private-message\n===========================\n\nKabam plugin for sending and recieving private message\n\n[![Build Status](https://travis-ci.org/mykabam/kabam-plugin-private-message.png)](https://travis-ci.org/mykabam/kabam-plugin-private-message)\n\n\nIt exposes 3 routes\n\nGET /api/messages?limit=10&offset=0\n==========================\n\nGet all recent messages for current authenticated user, in reverse\nchronological order - the most recent messages on top.\nLimit and offset can be ommited.\n\n\nGET /api/messages/:username?limit=10&offset=0\n==========================\n\nGet all recent messages of dialog between current authenticated user and other one\nwith :username. Messages are sorted in chronological order - the most recent on top.\nLimit and offset can be ommited.\n\nPOST /api/messages/:username\n==========================\n\nSends the message to :username.\nMandatory parameters are `username` (string) and `message` (string).\nOptional parameter is `title` (string)\n\n\nWhen user receives message, the kabamKernel emits event.\n\nSee example\n\n```javascript\nMWC.on('notify:pm',function(pm){\n console.log('Sendind email to '+pm.user.username+' with text \"' + pm.message+'\" from user \"'+pm.from.username+'\"');\n});\n\n```\n"},"meta":{"kind":"string","value":"{'content_hash': 'c42e2592870fa6e666ebcb69deda1777', 'timestamp': '', 'source': 'github', 'line_count': 43, 'max_line_length': 141, 'avg_line_length': 28.46511627906977, 'alnum_prop': 0.6928104575163399, 'repo_name': 'kabam-archived/kabam-plugin-private-message', 'id': '2e28c10d18d2d109408e853f780468817aad7b11', 'size': '1224', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'README.md', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'JavaScript', 'bytes': '10045'}]}"}}},{"rowIdx":849144,"cells":{"text":{"kind":"string","value":"\n\n#pragma once\n\n// ensure the MCU series is correct\n#ifndef STM32PLUS_F1\n#error This class can only be used with the STM32F1 series\n#endif\n\n\nnamespace stm32plus {\n\n /*\n * Forward declare the IRQ handler names\n */\n\n extern \"C\" void EXTI0_IRQHandler();\n extern \"C\" void EXTI1_IRQHandler();\n extern \"C\" void EXTI2_IRQHandler();\n extern \"C\" void EXTI3_IRQHandler();\n extern \"C\" void EXTI4_IRQHandler();\n extern \"C\" void EXTI9_5_IRQHandler();\n extern \"C\" void EXTI15_10_IRQHandler();\n extern \"C\" void PVD_IRQHandler();\n extern \"C\" void RTCAlarm_IRQHandler();\n extern \"C\" void USBWakeUp_IRQHandler();\n extern \"C\" void ETH_WKUP_IRQHandler();\n extern \"C\" void OTG_FS_WKUP_IRQHandler();\n\n\n /**\n * Helper class to enable only the desired interrupts in the NVIC. This will\n * be fully specialised for each EXTI peripheral\n * @tparam TExtiNumber The number of the Exti peripheral (0..19 | 22)\n */\n\n template\n class ExtiInterruptEnabler {\n\n private:\n typedef void (*FPTR)(); // this trick will force the linker to include the ISR\n static FPTR _forceLinkage;\n\n public:\n static void enable();\n };\n\n\n /**\n * Enabler specialisations for F1\n */\n\n template<>\n inline void ExtiInterruptEnabler<0>::enable() {\n _forceLinkage=&EXTI0_IRQHandler;\n Nvic::configureIrq(EXTI0_IRQn);\n }\n\n template<>\n inline void ExtiInterruptEnabler<1>::enable() {\n _forceLinkage=&EXTI1_IRQHandler;\n Nvic::configureIrq(EXTI1_IRQn);\n }\n\n template<>\n inline void ExtiInterruptEnabler<2>::enable() {\n _forceLinkage=&EXTI2_IRQHandler;\n Nvic::configureIrq(EXTI2_IRQn);\n }\n\n template<>\n inline void ExtiInterruptEnabler<3>::enable() {\n _forceLinkage=&EXTI3_IRQHandler;\n Nvic::configureIrq(EXTI3_IRQn);\n }\n\n template<>\n inline void ExtiInterruptEnabler<4>::enable() {\n _forceLinkage=&EXTI4_IRQHandler;\n Nvic::configureIrq(EXTI4_IRQn);\n }\n\n /**\n * 5 through 9 are on a shared IRQ\n */\n\n template<>\n inline void ExtiInterruptEnabler<5>::enable() {\n _forceLinkage=&EXTI9_5_IRQHandler;\n Nvic::configureIrq(EXTI9_5_IRQn);\n }\n\n /**\n * 10 through 15 are on a shared IRQ\n */\n\n template<>\n inline void ExtiInterruptEnabler<10>::enable() {\n _forceLinkage=&EXTI15_10_IRQHandler;\n Nvic::configureIrq(EXTI15_10_IRQn);\n }\n\n /**\n * Non-GPIO EXTI lines\n */\n\n template<>\n inline void ExtiInterruptEnabler<16>::enable() {\n _forceLinkage=&PVD_IRQHandler;\n Nvic::configureIrq(PVD_IRQn);\n }\n\n template<>\n inline void ExtiInterruptEnabler<17>::enable() {\n _forceLinkage=&RTCAlarm_IRQHandler;\n Nvic::configureIrq(RTCAlarm_IRQn);\n }\n\n#if defined(STM32PLUS_F1_CL)\n\n template<>\n inline void ExtiInterruptEnabler<18>::enable() {\n _forceLinkage=&OTG_FS_WKUP_IRQHandler;\n Nvic::configureIrq(OTG_FS_WKUP_IRQn);\n }\n\n#else\n\n#if !defined(STM32PLUS_F1_MD_VL)\n\n template<>\n inline void ExtiInterruptEnabler<18>::enable() {\n _forceLinkage=&USBWakeUp_IRQHandler;\n Nvic::configureIrq(USBWakeUp_IRQn);\n }\n\n#endif\n\n#endif\n\n /**\n * Ethernet EXTI is available on the F107\n */\n\n#if defined(STM32PLUS_F1_CL_E)\n\n template<>\n inline void ExtiInterruptEnabler<19>::enable() {\n _forceLinkage=&ETH_WKUP_IRQHandler;\n Nvic::configureIrq(ETH_WKUP_IRQn);\n }\n#endif\n}\n"},"meta":{"kind":"string","value":"{'content_hash': 'e79894e25eb8318146ac7ee552463db1', 'timestamp': '', 'source': 'github', 'line_count': 153, 'max_line_length': 92, 'avg_line_length': 21.398692810457515, 'alnum_prop': 0.6728772144166157, 'repo_name': '0x00f/stm32plus', 'id': 'f5fb75500ea8630677c67b9205eb3f81df79bcee', 'size': '3454', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'lib/include/exti/f1/ExtiInterruptEnabler.h', 'mode': '33188', 'license': 'bsd-3-clause', 'language': []}"}}},{"rowIdx":849145,"cells":{"text":{"kind":"string","value":"FROM java:8\nMAINTAINER Sebastian Göndör\n\n# Install maven\n#RUN apt-get update\n#RUN apt-get install -y maven\n\nWORKDIR /build\n\n# Compile and package jar\n#ADD pom.xml /build/pom.xml\n#ADD src /build/src\n#RUN [\"mvn\", \"clean\"]\n#RUN [\"mvn\", \"install\"]\n\n# Dependencies\nADD target/gsls-0.2.5.jar gsls-0.2.5.jar\n\nEXPOSE 4001\nEXPOSE 4002\n\nENTRYPOINT [\"java\", \"-jar\", \"gsls-0.2.5.jar\"]\n"},"meta":{"kind":"string","value":"{'content_hash': '85b1e67623530c76cd13886cfe447384', 'timestamp': '', 'source': 'github', 'line_count': 22, 'max_line_length': 45, 'avg_line_length': 16.954545454545453, 'alnum_prop': 0.6997319034852547, 'repo_name': 'sgoendoer/gsls', 'id': '225e69b8ad9192e3475d36ac443d3522d029d9b5', 'size': '375', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'Dockerfile', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Java', 'bytes': '60623'}]}"}}},{"rowIdx":849146,"cells":{"text":{"kind":"string","value":"class Model;\n\nclass ModelNode : public NodeLink {\npublic:\n\tModelType getType() const;\n\n\tModelNode( Model* const );\n\t~ModelNode();\n\nprivate:\n\tModelType type;\n};"},"meta":{"kind":"string","value":"{'content_hash': '15d08b2354a58ca240b34f8f9208c9f1', 'timestamp': '', 'source': 'github', 'line_count': 12, 'max_line_length': 43, 'avg_line_length': 13.916666666666666, 'alnum_prop': 0.7065868263473054, 'repo_name': 'Norseman055/WorldShaper', 'id': '0aa975c7cfa699ed3a11d6e61bf5daa6651a6fc4', 'size': '228', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'ModelManager/ModelNode.h', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Batchfile', 'bytes': '683'}, {'name': 'C', 'bytes': '1507658'}, {'name': 'C++', 'bytes': '68402'}, {'name': 'GLSL', 'bytes': '2258'}, {'name': 'Objective-C', 'bytes': '10437'}]}"}}},{"rowIdx":849147,"cells":{"text":{"kind":"string","value":"namespace Js\n{\nclass PropertyString : public JavascriptString\n{\nprotected:\n Field(PropertyRecordUsageCache) propertyRecordUsageCache;\n\n DEFINE_VTABLE_CTOR(PropertyString, JavascriptString);\n\n PropertyString(StaticType* type, const Js::PropertyRecord* propertyRecord);\npublic:\n virtual void GetPropertyRecord(_Out_ PropertyRecord const** propertyRecord, bool dontLookupFromDictionary = false) override\n {\n *propertyRecord = this->propertyRecordUsageCache.GetPropertyRecord();\n }\n\n Js::PropertyId GetPropertyId()\n {\n return this->propertyRecordUsageCache.GetPropertyRecord()->GetPropertyId();\n }\n\n PolymorphicInlineCache * GetLdElemInlineCache() const;\n PolymorphicInlineCache * GetStElemInlineCache() const;\n PropertyRecordUsageCache * GetPropertyRecordUsageCache();\n\n bool TrySetPropertyFromCache(\n _In_ RecyclableObject *const object,\n _In_ Var propertyValue,\n _In_ ScriptContext *const requestContext,\n const PropertyOperationFlags propertyOperationFlags,\n _Inout_ PropertyValueInfo *const propertyValueInfo);\n\n\n template \n bool TryGetPropertyFromCache(\n Var const instance,\n RecyclableObject *const object,\n Var *const propertyValue,\n ScriptContext *const requestContext,\n PropertyValueInfo *const propertyValueInfo);\n\n static PropertyString* New(StaticType* type, const Js::PropertyRecord* propertyRecord, Recycler *recycler);\n\n virtual void const * GetOriginalStringReference() override;\n virtual RecyclableObject * CloneToScriptContext(ScriptContext* requestContext) override;\n\n static uint32 GetOffsetOfLdElemInlineCache() { return offsetof(PropertyString, propertyRecordUsageCache) + PropertyRecordUsageCache::GetOffsetOfLdElemInlineCache(); }\n static uint32 GetOffsetOfStElemInlineCache() { return offsetof(PropertyString, propertyRecordUsageCache) + PropertyRecordUsageCache::GetOffsetOfStElemInlineCache(); }\n static uint32 GetOffsetOfHitRate() { return offsetof(PropertyString, propertyRecordUsageCache) + PropertyRecordUsageCache::GetOffsetOfHitRate(); }\n static bool Is(Var var);\n static bool Is(RecyclableObject * var);\n\n template static PropertyString* TryFromVar(T var);\n static PropertyString* UnsafeFromVar(Var aValue);\n\n#if ENABLE_TTD\n //Get the associated property id for this string if there is on (e.g. it is a propertystring otherwise return Js::PropertyIds::_none)\n virtual Js::PropertyId TryGetAssociatedPropertyId() const override { return this->propertyRecordUsageCache.GetPropertyRecord()->GetPropertyId(); }\n#endif\npublic:\n virtual VTableValue DummyVirtualFunctionToHinderLinkerICF()\n {\n return VTableValue::VtablePropertyString;\n }\n};\n\n// Templated so that the Is call dispatchs to different function depending\n// on if argument is already a RecyclableObject* or only known to be a Var\n//\n// In case it is known to be a RecyclableObject*, the Is call skips that check\ntemplate inline\nPropertyString * PropertyString::TryFromVar(T var)\n{\n return PropertyString::Is(var)\n ? reinterpret_cast(var)\n : nullptr;\n}\n\ntemplate inline\nbool PropertyString::TryGetPropertyFromCache(\n Var const instance,\n RecyclableObject *const object,\n Var *const propertyValue,\n ScriptContext *const requestContext,\n PropertyValueInfo *const propertyValueInfo)\n{\n return this->propertyRecordUsageCache.TryGetPropertyFromCache(instance, object, propertyValue, requestContext, propertyValueInfo, this);\n}\n\n} // namespace Js\n"},"meta":{"kind":"string","value":"{'content_hash': '920ff55fbf3c974a5cd3196fb9cad13a', 'timestamp': '', 'source': 'github', 'line_count': 90, 'max_line_length': 170, 'avg_line_length': 40.53333333333333, 'alnum_prop': 0.7637061403508771, 'repo_name': 'mrkmarron/ChakraCore', 'id': 'f9e73f62fb30c86527d5228198d53168466b37a2', 'size': '4029', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'lib/Runtime/Library/PropertyString.h', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Assembly', 'bytes': '198181'}, {'name': 'Batchfile', 'bytes': '95342'}, {'name': 'C', 'bytes': '1639946'}, {'name': 'C++', 'bytes': '35896762'}, {'name': 'CMake', 'bytes': '85334'}, {'name': 'CSS', 'bytes': '1575'}, {'name': 'Groovy', 'bytes': '13787'}, {'name': 'HTML', 'bytes': '1137'}, {'name': 'JavaScript', 'bytes': '49110930'}, {'name': 'Objective-C', 'bytes': '3162832'}, {'name': 'Perl', 'bytes': '29562'}, {'name': 'PowerShell', 'bytes': '50433'}, {'name': 'Python', 'bytes': '74730'}, {'name': 'Roff', 'bytes': '161911'}, {'name': 'Shell', 'bytes': '52452'}, {'name': 'WebAssembly', 'bytes': '2781609'}]}"}}},{"rowIdx":849148,"cells":{"text":{"kind":"string","value":"using System.Reflection;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\n\n// General Information about an assembly is controlled through the following \n// set of attributes. Change these attribute values to modify the information\n// associated with an assembly.\n[assembly: AssemblyTitle(\"HybridWebApp.Framework.Test1\")]\n[assembly: AssemblyDescription(\"\")]\n[assembly: AssemblyConfiguration(\"\")]\n[assembly: AssemblyCompany(\"\")]\n[assembly: AssemblyProduct(\"HybridWebApp.Framework.Test1\")]\n[assembly: AssemblyCopyright(\"Copyright © 2015\")]\n[assembly: AssemblyTrademark(\"\")]\n[assembly: AssemblyCulture(\"\")]\n[assembly: AssemblyMetadata(\"TargetPlatform\",\"UAP\")]\n\n// Version information for an assembly consists of the following four values:\n//\n// Major Version\n// Minor Version \n// Build Number\n// Revision\n//\n// You can specify all the values or you can default the Build and Revision Numbers \n// by using the '*' as shown below:\n// [assembly: AssemblyVersion(\"1.0.*\")]\n[assembly: AssemblyVersion(\"1.0.0.0\")]\n[assembly: AssemblyFileVersion(\"1.0.0.0\")]\n[assembly: ComVisible(false)]"},"meta":{"kind":"string","value":"{'content_hash': 'e355f28fb82a3873fd60c726817cbb97', 'timestamp': '', 'source': 'github', 'line_count': 30, 'max_line_length': 84, 'avg_line_length': 37.53333333333333, 'alnum_prop': 0.7468916518650088, 'repo_name': 'craigomatic/HybridWebApp-Framework', 'id': 'be85c4b1db2590caea959fe9ff4088a377d92078', 'size': '1129', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'test/HybridWebApp.Framework.Test/Properties/AssemblyInfo.cs', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'C#', 'bytes': '98380'}, {'name': 'JavaScript', 'bytes': '5032'}]}"}}},{"rowIdx":849149,"cells":{"text":{"kind":"string","value":"routable = true;\n $this->taxonomy = array();\n $this->process = $config->get('system.pages.process');\n $this->published = true;\n }\n\n /**\n * Initializes the page instance variables based on a file\n *\n * @param \\SplFileInfo $file The file information for the .md file that the page represents\n * @return void\n */\n public function init(\\SplFileInfo $file)\n {\n $this->filePath($file->getPathName());\n $this->modified($file->getMTime());\n $this->id($this->modified().md5($this->filePath()));\n $this->header();\n $this->date();\n $this->metadata();\n $this->url();\n $this->visible();\n $this->modularTwig($this->slug[0] == '_');\n\n // Handle publishing dates if no explict published option set\n if (self::getGrav()['config']->get('system.pages.publish_dates') && !isset($this->header->published)) {\n // unpublish if required, if not clear cache right before page should be unpublished\n if ($this->unpublishDate()) {\n if ($this->unpublishDate() < time()) {\n $this->published(false);\n } else {\n $this->published();\n self::getGrav()['cache']->setLifeTime($this->unpublishDate());\n }\n }\n // publish if required, if not clear cache right before page is published\n if ($this->publishDate() != $this->modified() && $this->publishDate() > time()) {\n $this->published(false);\n self::getGrav()['cache']->setLifeTime($this->publishDate());\n }\n }\n $this->published();\n }\n\n /**\n * Gets and Sets the raw data\n *\n * @param string $var Raw content string\n * @return Object Raw content string\n */\n public function raw($var = null)\n {\n $file = $this->file();\n\n if ($var) {\n // First update file object.\n if ($file) {\n $file->raw($var);\n }\n\n // Reset header and content.\n $this->modified = time();\n $this->id($this->modified().md5($this->filePath()));\n $this->header = null;\n $this->content = null;\n $this->summary = null;\n }\n return $file ? $file->raw() : '';\n }\n\n public function frontmatter($var = null)\n {\n\n if ($var) {\n $this->frontmatter = (string) $var;\n\n // Update also file object.\n $file = $this->file();\n if ($file) {\n $file->frontmatter((string) $var);\n }\n\n // Force content re-processing.\n $this->id(time().md5($this->filePath()));\n }\n if (!$this->frontmatter) {\n $this->header();\n }\n return $this->frontmatter;\n }\n\n /**\n * Gets and Sets the header based on the YAML configuration at the top of the .md file\n *\n * @param object|array $var a YAML object representing the configuration for the file\n * @return object the current YAML configuration\n */\n public function header($var = null)\n {\n if ($var) {\n $this->header = (object) $var;\n\n // Update also file object.\n $file = $this->file();\n if ($file) {\n $file->header((array) $var);\n }\n\n // Force content re-processing.\n $this->id(time().md5($this->filePath()));\n }\n if (!$this->header) {\n $file = $this->file();\n if ($file) {\n $this->raw_content = $file->markdown();\n $this->frontmatter = $file->frontmatter();\n $this->header = (object) $file->header();\n\n $var = true;\n }\n }\n\n if ($var) {\n if (isset($this->header->slug)) {\n $this->slug = trim($this->header->slug);\n }\n if (isset($this->header->routes)) {\n $this->routes = (array)($this->header->routes);\n }\n if (isset($this->header->title)) {\n $this->title = trim($this->header->title);\n }\n if (isset($this->header->template)) {\n $this->template = trim($this->header->template);\n }\n if (isset($this->header->menu)) {\n $this->menu = trim($this->header->menu);\n }\n if (isset($this->header->routable)) {\n $this->routable = $this->header->routable;\n }\n if (isset($this->header->visible)) {\n $this->visible = $this->header->visible;\n }\n if (isset($this->header->order_dir)) {\n $this->order_dir = trim($this->header->order_dir);\n }\n if (isset($this->header->order_by)) {\n $this->order_by = trim($this->header->order_by);\n }\n if (isset($this->header->order_manual)) {\n $this->order_manual = (array)$this->header->order_manual;\n }\n if (isset($this->header->date)) {\n $this->date = strtotime($this->header->date);\n }\n if (isset($this->header->markdown_extra)) {\n $this->markdown_extra = (bool)$this->header->markdown_extra;\n }\n if (isset($this->header->taxonomy)) {\n foreach ($this->header->taxonomy as $taxonomy => $taxitems) {\n $this->taxonomy[$taxonomy] = (array)$taxitems;\n }\n }\n if (isset($this->header->max_count)) {\n $this->max_count = intval($this->header->max_count);\n }\n if (isset($this->header->process)) {\n foreach ($this->header->process as $process => $status) {\n $this->process[$process] = $status;\n }\n }\n if (isset($this->header->published)) {\n $this->published = $this->header->published;\n }\n if (isset($this->header->publish_date)) {\n $this->publish_date = strtotime($this->header->publish_date);\n }\n if (isset($this->header->unpublish_date)) {\n $this->unpublish_date = strtotime($this->header->unpublish_date);\n }\n if (isset($this->header->expires)) {\n $this->expires = intval($this->header->expires);\n }\n if (isset($this->header->etag)) {\n $this->etag = (bool)$this->header->etag;\n }\n if (isset($this->header->last_modified)) {\n $this->last_modified = (bool)$this->header->last_modified;\n }\n\n }\n\n return $this->header;\n }\n\n /**\n * Modify a header value directly\n *\n * @param $key\n * @param $value\n */\n public function modifyHeader($key, $value)\n {\n $this->header->$key = $value;\n }\n\n /**\n * Get the summary.\n *\n * @param int $size Max summary size.\n * @return string\n */\n public function summary($size = null)\n {\n /** @var Config $config */\n $config = self::getGrav()['config']->get('site.summary');\n if (isset($this->header->summary)) {\n $config = array_merge($config, $this->header->summary);\n }\n\n // Return summary based on settings in site config file\n if (!$config['enabled']) {\n return $content;\n }\n\n // Set up variables to process summary from page or from custom summary\n if ($this->summary === null) {\n $content = $this->content();\n $summary_size = $this->summary_size;\n } else {\n $content = $this->summary;\n $summary_size = mb_strlen($this->summary);\n }\n\n // Return calculated summary based on summary divider's position\n $format = $config['format'];\n // Return entire page content on wrong/ unknown format\n if (!in_array($format, array('short', 'long'))) {\n return $content;\n } elseif (($format === 'short') && isset($summary_size)) {\n return mb_substr($content, 0, $summary_size);\n }\n\n // Get summary size from site config's file\n if (is_null($size)) {\n $size = $config['size'];\n }\n\n // If the size is zero, return the entire page content\n if ($size === 0) {\n return $content;\n // Return calculated summary based on defaults\n } elseif (!is_numeric($size) || ($size < 0)) {\n $size = 300;\n }\n\n return Utils::truncateHTML($content, $size);\n }\n\n /**\n * Sets the summary of the page\n *\n * @param string $var Summary\n */\n public function setSummary($summary)\n {\n $this->summary = $summary;\n }\n\n /**\n * Gets and Sets the content based on content portion of the .md file\n *\n * @param string $var Content\n * @return string Content\n */\n public function content($var = null)\n {\n if ($var !== null) {\n $this->raw_content = $var;\n\n // Update file object.\n $file = $this->file();\n if ($file) {\n $file->markdown($var);\n }\n\n // Force re-processing.\n $this->id(time().md5($this->filePath()));\n $this->content = null;\n }\n // If no content, process it\n if ($this->content === null) {\n // Get media\n $this->media();\n\n // Load cached content\n /** @var Cache $cache */\n $cache = self::getGrav()['cache'];\n $cache_id = md5('page'.$this->id());\n $this->content = $cache->fetch($cache_id);\n\n $process_markdown = $this->shouldProcess('markdown');\n $process_twig = $this->shouldProcess('twig');\n $cache_twig = isset($this->header->cache_enable) ? $this->header->cache_enable : true;\n $twig_first = isset($this->header->twig_first) ? $this->header->twig_first : false;\n $twig_already_processed = false;\n\n // if no cached-content run everything\n if ($this->content === false) {\n $this->content = $this->raw_content;\n self::getGrav()->fireEvent('onPageContentRaw', new Event(['page' => $this]));\n\n if ($twig_first) {\n if ($process_twig) {\n $this->processTwig();\n $twig_already_processed = true;\n }\n if ($process_markdown) {\n $this->processMarkdown();\n }\n if ($cache_twig) {\n $this->cachePageContent();\n }\n } else {\n if ($process_markdown) {\n $this->processMarkdown();\n }\n if (!$cache_twig) {\n $this->cachePageContent();\n }\n if ($process_twig) {\n $this->processTwig();\n $twig_already_processed = true;\n }\n if ($cache_twig) {\n $this->cachePageContent();\n }\n }\n // content cached, but twig cache off\n }\n\n // only markdown content cached, process twig if required and not already processed\n if ($process_twig && !$cache_twig && !$twig_already_processed) {\n $this->processTwig();\n }\n\n // Handle summary divider\n $delimiter = self::getGrav()['config']->get('site.summary.delimiter', '===');\n $divider_pos = strpos($this->content, \"

    {$delimiter}

    \");\n if ($divider_pos !== false) {\n $this->summary_size = $divider_pos;\n $this->content = str_replace(\"

    {$delimiter}

    \", '', $this->content);\n }\n\n }\n\n return $this->content;\n }\n\n /**\n * Process the Markdown content. Uses Parsedown or Parsedown Extra depending on configuration\n */\n protected function processMarkdown()\n {\n /** @var Config $config */\n $config = self::getGrav()['config'];\n\n $defaults = (array) $config->get('system.pages.markdown');\n if (isset($this->header()->markdown)) {\n $defaults = array_merge($defaults, $this->header()->markdown);\n }\n\n // pages.markdown_extra is deprecated, but still check it...\n if (isset($this->markdown_extra) || $config->get('system.pages.markdown_extra') !== null) {\n $defaults['extra'] = $this->markdown_extra ?: $config->get('system.pages.markdown_extra');\n }\n\n // Initialize the preferred variant of Parsedown\n if ($defaults['extra']) {\n $parsedown = new ParsedownExtra($this, $defaults);\n } else {\n $parsedown = new Parsedown($this, $defaults);\n }\n\n $this->content = $parsedown->text($this->content);\n }\n\n\n /**\n * Process the Twig page content.\n */\n private function processTwig()\n {\n $twig = self::getGrav()['twig'];\n $this->content = $twig->processPage($this, $this->content);\n }\n\n /**\n * Fires the onPageContentProcessed event, and caches the page content using a unique ID for the page\n */\n private function cachePageContent()\n {\n $cache = self::getGrav()['cache'];\n $cache_id = md5('page'.$this->id());\n\n self::getGrav()->fireEvent('onPageContentProcessed', new Event(['page' => $this]));\n $cache->save($cache_id, $this->content);\n }\n\n /**\n * Needed by the onPageContentProcessed event to get the raw page content\n *\n * @return string the current page content\n */\n public function getRawContent()\n {\n return $this->content;\n }\n\n /**\n * Needed by the onPageContentProcessed event to set the raw page content\n *\n * @param $content\n */\n public function setRawContent($content)\n {\n $this->content = $content;\n }\n\n /**\n * Get value from a page variable (used mostly for creating edit forms).\n *\n * @param string $name Variable name.\n * @param mixed $default\n * @return mixed\n */\n public function value($name, $default = null)\n {\n if ($name == 'content') {\n return $this->raw_content;\n }\n if ($name == 'route') {\n return dirname($this->route());\n }\n if ($name == 'order') {\n $order = $this->order();\n return $order ? (int) $this->order() : '';\n }\n if ($name == 'folder') {\n $regex = '/^[0-9]+\\./u';\n return preg_replace($regex, '', $this->folder);\n }\n if ($name == 'type') {\n return basename($this->name(), '.md');\n }\n if ($name == 'media') {\n return $this->media()->all();\n }\n if ($name == 'media.file') {\n return $this->media()->files();\n }\n if ($name == 'media.video') {\n return $this->media()->videos();\n }\n if ($name == 'media.image') {\n return $this->media()->images();\n }\n if ($name == 'media.audio') {\n return $this->media()->audios();\n }\n\n $path = explode('.', $name);\n $scope = array_shift($path);\n\n if ($name == 'frontmatter') {\n return $this->frontmatter;\n }\n\n if ($scope == 'header') {\n $current = $this->header();\n foreach ($path as $field) {\n if (is_object($current) && isset($current->{$field})) {\n $current = $current->{$field};\n } elseif (is_array($current) && isset($current[$field])) {\n $current = $current[$field];\n } else {\n return $default;\n }\n }\n\n return $current;\n }\n\n return $default;\n }\n\n public function rawMarkdown($var = null)\n {\n if ($var !== null) {\n $this->raw_content = $var;\n }\n\n return $this->raw_content;\n }\n\n /**\n * Get file object to the page.\n *\n * @return MarkdownFile|null\n */\n public function file()\n {\n if ($this->name) {\n // TODO: use CompiledMarkdownFile after fixing issues in it.\n return MarkdownFile::instance($this->filePath());\n }\n return null;\n }\n\n /**\n * Get page extension\n *\n * @param $var\n *\n * @return mixed\n */\n public function extension($var = null)\n {\n if ($var !== null) {\n $this->extension = $var;\n }\n\n return $this->extension;\n }\n\n /**\n * Save page if there's a file assigned to it.\n * @param bool $reorder Internal use.\n */\n public function save($reorder = true)\n {\n // Perform move, copy or reordering if needed.\n $this->doRelocation($reorder);\n\n $file = $this->file();\n if ($file) {\n $file->filename($this->filePath());\n $file->header((array) $this->header());\n $file->markdown($this->raw_content);\n $file->save();\n }\n }\n\n /**\n * Prepare move page to new location. Moves also everything that's under the current page.\n *\n * You need to call $this->save() in order to perform the move.\n *\n * @param Page $parent New parent page.\n * @return Page\n */\n public function move(Page $parent)\n {\n $clone = clone $this;\n $clone->_action = 'move';\n $clone->_original = $this;\n $clone->parent($parent);\n $clone->id(time().md5($clone->filePath()));\n // TODO: make sure that the path is in user context.\n if ($parent->path()) {\n $clone->path($parent->path() . '/' . $clone->folder());\n }\n // TODO: make sure we always have the route.\n if ($parent->route()) {\n $clone->route($parent->route() . '/'. $clone->slug());\n }\n\n return $clone;\n }\n\n /**\n * Prepare a copy from the page. Copies also everything that's under the current page.\n *\n * Returns a new Page object for the copy.\n * You need to call $this->save() in order to perform the move.\n *\n * @param Page $parent New parent page.\n * @return Page\n */\n public function copy($parent)\n {\n $clone = $this->move($parent);\n $clone->_action = 'copy';\n\n return $clone;\n }\n\n /**\n * Get blueprints for the page.\n *\n * @return Blueprint\n */\n public function blueprints()\n {\n /** @var Pages $pages */\n $pages = self::getGrav()['pages'];\n\n return $pages->blueprints($this->template());\n }\n\n /**\n * Validate page header.\n *\n * @throws \\Exception\n */\n public function validate()\n {\n $blueprints = $this->blueprints();\n $blueprints->validate($this->toArray());\n }\n\n /**\n * Filter page header from illegal contents.\n */\n public function filter()\n {\n $blueprints = $this->blueprints();\n $values = $blueprints->filter($this->toArray());\n $this->header($values['header']);\n }\n\n /**\n * Get unknown header variables.\n *\n * @return array\n */\n public function extra()\n {\n $blueprints = $this->blueprints();\n return $blueprints->extra($this->toArray(), 'header.');\n }\n\n /**\n * Convert page to an array.\n *\n * @return array\n */\n public function toArray()\n {\n return array(\n 'header' => (array) $this->header(),\n 'content' => (string) $this->value('content')\n );\n }\n\n /**\n * Convert page to YAML encoded string.\n *\n * @return string\n */\n public function toYaml()\n {\n return Yaml::dump($this->toArray(), 10);\n }\n\n /**\n * Convert page to JSON encoded string.\n *\n * @return string\n */\n public function toJson()\n {\n return json_encode($this->toArray());\n }\n\n /**\n * Gets and sets the associated media as found in the page folder.\n *\n * @param Media $var Representation of associated media.\n * @return Media Representation of associated media.\n */\n public function media($var = null)\n {\n /** @var Cache $cache */\n $cache = self::getGrav()['cache'];\n\n if ($var) {\n $this->media = $var;\n }\n if ($this->media === null) {\n // Use cached media if possible.\n $media_cache_id = md5('media'.$this->id());\n if (!$media = $cache->fetch($media_cache_id)) {\n $media = new Media($this->path());\n $cache->save($media_cache_id, $media);\n }\n $this->media = $media;\n }\n return $this->media;\n }\n\n /**\n * Gets and sets the name field. If no name field is set, it will return 'default.md'.\n *\n * @param string $var The name of this page.\n * @return string The name of this page.\n */\n public function name($var = null)\n {\n if ($var !== null) {\n $this->name = $var;\n }\n return empty($this->name) ? 'default.md' : $this->name;\n }\n\n /**\n * Returns child page type.\n *\n * @return string\n */\n public function childType()\n {\n return isset($this->header->child_type) ? (string) $this->header->child_type : 'default';\n }\n\n /**\n * Gets and sets the template field. This is used to find the correct Twig template file to render.\n * If no field is set, it will return the name without the .md extension\n *\n * @param string $var the template name\n * @return string the template name\n */\n public function template($var = null)\n {\n if ($var !== null) {\n $this->template = $var;\n }\n if (empty($this->template)) {\n $this->template = ($this->modular() ? 'modular/' : '') . str_replace($this->extension, '', $this->name());\n }\n return $this->template;\n }\n\n /**\n * Gets and sets the expires field. If not set will return the default\n *\n * @param string $var The name of this page.\n * @return string The name of this page.\n */\n public function expires($var = null)\n {\n if ($var !== null) {\n $this->expires = $var;\n }\n return empty($this->expires) ? self::getGrav()['config']->get('system.pages.expires') : $this->expires;\n }\n\n /**\n * Gets and sets the title for this Page. If no title is set, it will use the slug() to get a name\n *\n * @param string $var the title of the Page\n * @return string the title of the Page\n */\n public function title($var = null)\n {\n if ($var !== null) {\n $this->title = $var;\n }\n if (empty($this->title)) {\n $this->title = ucfirst($this->slug());\n }\n return $this->title;\n }\n\n /**\n * Gets and sets the menu name for this Page. This is the text that can be used specifically for navigation.\n * If no menu field is set, it will use the title()\n *\n * @param string $var the menu field for the page\n * @return string the menu field for the page\n */\n public function menu($var = null)\n {\n if ($var !== null) {\n $this->menu = $var;\n }\n if (empty($this->menu)) {\n $this->menu = $this->title();\n }\n return $this->menu;\n }\n\n /**\n * Gets and Sets whether or not this Page is visible for navigation\n *\n * @param bool $var true if the page is visible\n * @return bool true if the page is visible\n */\n public function visible($var = null)\n {\n if ($var !== null) {\n $this->visible = (bool) $var;\n }\n\n if ($this->visible === null) {\n // Set item visibility in menu if folder is different from slug\n // eg folder = 01.Home and slug = Home\n $regex = '/^[0-9]+\\./u';\n if (preg_match($regex, $this->folder)) {\n $this->visible = true;\n } else {\n $this->visible = false;\n }\n }\n return $this->visible;\n }\n\n /**\n * Gets and Sets whether or not this Page is considered published\n *\n * @param bool $var true if the page is published\n * @return bool true if the page is published\n */\n public function published($var = null)\n {\n if ($var !== null) {\n $this->published = (bool) $var;\n }\n\n // If not published, should not be visible in menus either\n if ($this->published === false) {\n $this->visible = false;\n }\n\n return $this->published;\n }\n\n /**\n * Gets and Sets the Page publish date\n *\n * @param string $var string representation of a date\n * @return int unix timestamp representation of the date\n */\n public function publishDate($var = null)\n {\n if ($var !== null) {\n $this->publish_date = strtotime($var);\n }\n\n if ($this->publish_date === null) {\n $this->publish_date = $this->date();\n }\n\n return $this->publish_date;\n }\n\n /**\n * Gets and Sets the Page unpublish date\n *\n * @param string $var string representation of a date\n * @return int|null unix timestamp representation of the date\n */\n public function unpublishDate($var = null)\n {\n if ($var !== null) {\n $this->unpublish_date = strtotime($var);\n }\n\n return $this->unpublish_date;\n }\n\n /**\n * Gets and Sets whether or not this Page is routable, ie you can reach it\n * via a URL\n *\n * @param bool $var true if the page is routable\n * @return bool true if the page is routable\n */\n public function routable($var = null)\n {\n if ($var !== null) {\n $this->routable = (bool) $var;\n }\n return $this->routable;\n }\n\n /**\n * Gets and Sets the process setup for this Page. This is multi-dimensional array that consists of\n * a simple array of arrays with the form array(\"markdown\"=>true) for example\n *\n * @param array $var an Array of name value pairs where the name is the process and value is true or false\n * @return array an Array of name value pairs where the name is the process and value is true or false\n */\n public function process($var = null)\n {\n if ($var !== null) {\n $this->process = (array) $var;\n }\n return $this->process;\n }\n\n /**\n * Function to merge page metadata tags and build an array of Metadata objects\n * that can then be rendered in the page.\n *\n * @param array $var an Array of metadata values to set\n * @return array an Array of metadata values for the page\n */\n public function metadata($var = null)\n {\n if ($var !== null) {\n $this->metadata = (array) $var;\n }\n\n // if not metadata yet, process it.\n if (null === $this->metadata) {\n $header_tag_http_equivs = ['content-type', 'default-style', 'refresh'];\n $this->metadata = array();\n $page_header = $this->header;\n\n // Set the Generator tag\n $this->metadata['generator'] = array('name'=>'generator', 'content'=>'GravCMS ' . GRAV_VERSION);\n\n // Safety check to ensure we have a header\n if ($page_header) {\n // Merge any site.metadata settings in with page metadata\n $defaults = (array) self::getGrav()['config']->get('site.metadata');\n\n if (isset($page_header->metadata)) {\n $page_header->metadata = array_merge($defaults, $page_header->metadata);\n } else {\n $page_header->metadata = $defaults;\n }\n\n // Build an array of meta objects..\n foreach ((array)$page_header->metadata as $key => $value) {\n // If this is a property type metadata: \"og\", \"twitter\", \"facebook\" etc\n if (is_array($value)) {\n foreach ($value as $property => $prop_value) {\n $prop_key = $key.\":\".$property;\n $this->metadata[$prop_key] = array('property'=>$prop_key, 'content'=>htmlspecialchars($prop_value, ENT_QUOTES));\n }\n // If it this is a standard meta data type\n } else {\n if (in_array($key, $header_tag_http_equivs)) {\n $this->metadata[$key] = array('http_equiv'=>$key, 'content'=>htmlspecialchars($value, ENT_QUOTES));\n } else {\n $this->metadata[$key] = array('name'=>$key, 'content'=>htmlspecialchars($value, ENT_QUOTES));\n }\n }\n }\n }\n }\n\n return $this->metadata;\n }\n\n /**\n * Gets and Sets the slug for the Page. The slug is used in the URL routing. If not set it uses\n * the parent folder from the path\n *\n * @param string $var the slug, e.g. 'my-blog'\n * @return string the slug\n */\n public function slug($var = null)\n {\n if ($var !== null) {\n $this->slug = $var;\n }\n\n if (empty($this->slug)) {\n $regex = '/^[0-9]+\\./u';\n $this->slug = preg_replace($regex, '', $this->folder);\n }\n\n return $this->slug;\n }\n\n /**\n * Get/set order number of this page.\n *\n * @param int $var\n * @return int|bool\n */\n public function order($var = null)\n {\n $regex = '/^[0-9]+\\./u';\n if ($var !== null) {\n $order = !empty($var) ? sprintf('%02d.', (int) $var) : '';\n $slug = preg_replace($regex, '', $this->folder);\n $this->folder($order.$slug);\n }\n preg_match($regex, $this->folder, $order);\n return isset($order[0]) ? $order[0] : false;\n }\n\n /**\n * Gets the URL with host information, aka Permalink.\n * @return string The permalink.\n */\n public function permalink()\n {\n return $this->url(true);\n }\n\n /**\n * Gets the URL for a page - alias of url().\n *\n * @param bool $include_host\n * @return string the permalink\n */\n public function link($include_host = false)\n {\n return $this->url($include_host);\n }\n\n /**\n * Gets the url for the Page.\n *\n * @param bool $include_host Defaults false, but true would include http://yourhost.com\n * @param bool $canonical true to return the canonical URL\n *\n * @return string The url.\n */\n public function url($include_host = false, $canonical = false)\n {\n\n /** @var Pages $pages */\n $pages = self::getGrav()['pages'];\n\n /** @var Language $language */\n $language = self::getGrav()['language'];\n\n // get pre-route\n $pre_route = $language->enabled() && $language->getActive() ? '/'.$language->getActive() : '';\n\n // get canonical route if requested\n if ($canonical) {\n $route = $pre_route . $this->routeCanonical();\n } else {\n $route = $pre_route . $this->route();\n }\n\n /** @var Uri $uri */\n $uri = self::getGrav()['uri'];\n\n $rootUrl = $uri->rootUrl($include_host) . $pages->base();\n\n $url = $rootUrl.'/'.trim($route, '/');\n\n // trim trailing / if not root\n if ($url !== '/') {\n $url = rtrim($url, '/');\n }\n\n return $url;\n }\n\n /**\n * Gets the route for the page based on the route headers if available, else from\n * the parents route and the current Page's slug.\n *\n * @param string $var Set new default route.\n *\n * @return string The route for the Page.\n */\n public function route($var = null)\n {\n if ($var !== null) {\n $this->route = $var;\n }\n\n if (empty($this->route)) {\n // calculate route based on parent slugs\n $baseRoute = $this->parent ? (string) $this->parent()->route() : null;\n $this->route = isset($baseRoute) ? $baseRoute . '/'. $this->slug() : null;\n\n if (!empty($this->routes) && isset($this->routes['default'])) {\n $this->routes['aliases'][] = $this->route;\n $this->route = $this->routes['default'];\n return $this->route;\n }\n }\n\n return $this->route;\n }\n\n public function rawRoute($var = null)\n {\n if ($var !== null) {\n $this->raw_route = $var;\n }\n\n if (empty($this->raw_route)) {\n $baseRoute = $this->parent ? (string) $this->parent()->rawRoute() : null;\n\n $regex = '/^[0-9]+\\./u';\n $slug = preg_replace($regex, '', $this->folder);\n\n $this->raw_route = isset($baseRoute) ? $baseRoute . '/'. $slug : null;\n }\n\n return $this->raw_route;\n }\n\n /**\n * Gets the route aliases for the page based on page headers.\n *\n * @param array $var list of route aliases\n *\n * @return array The route aliases for the Page.\n */\n public function routeAliases($var = null)\n {\n if ($var !== null) {\n $this->routes['aliases'] = (array) $var;\n }\n\n if (!empty($this->routes) && isset($this->routes['aliases'])) {\n return $this->routes['aliases'];\n } else {\n return [];\n }\n }\n\n /**\n * Gets the canonical route for this page if its set. If provided it will use\n * that value, else if it's `true` it will use the default route.\n *\n * @param null $var\n *\n * @return bool|string\n */\n public function routeCanonical($var = null)\n {\n if ($var !== null) {\n $this->routes['canonical'] = (array)$var;\n }\n\n if (!empty($this->routes) && isset($this->routes['canonical'])) {\n return $this->routes['canonical'];\n }\n\n return $this->route();\n }\n\n /**\n * Gets and sets the identifier for this Page object.\n *\n * @param string $var the identifier\n * @return string the identifier\n */\n public function id($var = null)\n {\n if ($var !== null) {\n $this->id = $var;\n }\n return $this->id;\n }\n\n /**\n * Gets and sets the modified timestamp.\n *\n * @param int $var modified unix timestamp\n * @return int modified unix timestamp\n */\n public function modified($var = null)\n {\n if ($var !== null) {\n $this->modified = $var;\n }\n return $this->modified;\n }\n\n /**\n * Gets and sets the option to show the etag header for the page.\n *\n * @param boolean $var show etag header\n * @return boolean show etag header\n */\n public function eTag($var = null)\n {\n if ($var !== null) {\n $this->etag = $var;\n }\n if (!isset($this->etag)) {\n $this->etag = (bool) self::getGrav()['config']->get('system.pages.etag');\n }\n return $this->etag;\n }\n\n /**\n * Gets and sets the option to show the last_modified header for the page.\n *\n * @param boolean $var show last_modified header\n * @return boolean show last_modified header\n */\n public function lastModified($var = null)\n {\n if ($var !== null) {\n $this->last_modified = $var;\n }\n if (!isset($this->last_modified)) {\n $this->last_modified = (bool) self::getGrav()['config']->get('system.pages.last_modified');\n }\n return $this->last_modified;\n }\n\n /**\n * Gets and sets the path to the .md file for this Page object.\n *\n * @param string $var the file path\n * @return string|null the file path\n */\n public function filePath($var = null)\n {\n if ($var !== null) {\n // Filename of the page.\n $this->name = basename($var);\n // Folder of the page.\n $this->folder = basename(dirname($var));\n // Path to the page.\n $this->path = dirname(dirname($var));\n }\n return $this->path . '/' . $this->folder . '/' . ($this->name ?: '');\n }\n\n /**\n * Gets the relative path to the .md file\n *\n * @return string The relative file path\n */\n public function filePathClean()\n {\n return str_replace(ROOT_DIR, '', $this->filePath());\n }\n\n /**\n * Gets and sets the path to the folder where the .md for this Page object resides.\n * This is equivalent to the filePath but without the filename.\n *\n * @param string $var the path\n * @return string|null the path\n */\n public function path($var = null)\n {\n if ($var !== null) {\n // Folder of the page.\n $this->folder = basename($var);\n // Path to the page.\n $this->path = dirname($var);\n }\n return $this->path ? $this->path . '/' . $this->folder : null;\n }\n\n /**\n * Get/set the folder.\n *\n * @param string $var Optional path\n * @return string|null\n */\n public function folder($var = null)\n {\n if ($var !== null) {\n $this->folder = $var;\n }\n return $this->folder;\n }\n\n /**\n * Gets and sets the date for this Page object. This is typically passed in via the page headers\n *\n * @param string $var string representation of a date\n * @return int unix timestamp representation of the date\n */\n public function date($var = null)\n {\n if ($var !== null) {\n $this->date = strtotime($var);\n }\n\n if (!$this->date) {\n $this->date = $this->modified;\n }\n\n return $this->date;\n }\n\n /**\n * Gets and sets the order by which any sub-pages should be sorted.\n * @param string $var the order, either \"asc\" or \"desc\"\n * @return string the order, either \"asc\" or \"desc\"\n */\n public function orderDir($var = null)\n {\n if ($var !== null) {\n $this->order_dir = $var;\n }\n if (empty($this->order_dir)) {\n $this->order_dir = 'asc';\n }\n return $this->order_dir;\n }\n\n /**\n * Gets and sets the order by which the sub-pages should be sorted.\n *\n * default - is the order based on the file system, ie 01.Home before 02.Advark\n * title - is the order based on the title set in the pages\n * date - is the order based on the date set in the pages\n * folder - is the order based on the name of the folder with any numerics omitted\n *\n * @param string $var supported options include \"default\", \"title\", \"date\", and \"folder\"\n * @return string supported options include \"default\", \"title\", \"date\", and \"folder\"\n */\n public function orderBy($var = null)\n {\n if ($var !== null) {\n $this->order_by = $var;\n }\n return $this->order_by;\n }\n\n /**\n * Gets the manual order set in the header.\n *\n * @param string $var supported options include \"default\", \"title\", \"date\", and \"folder\"\n * @return array\n */\n public function orderManual($var = null)\n {\n if ($var !== null) {\n $this->order_manual = $var;\n }\n return (array) $this->order_manual;\n }\n\n /**\n * Gets and sets the maxCount field which describes how many sub-pages should be displayed if the\n * sub_pages header property is set for this page object.\n *\n * @param int $var the maximum number of sub-pages\n * @return int the maximum number of sub-pages\n */\n public function maxCount($var = null)\n {\n if ($var !== null) {\n $this->max_count = (int) $var;\n }\n if (empty($this->max_count)) {\n /** @var Config $config */\n $config = self::getGrav()['config'];\n $this->max_count = (int) $config->get('system.pages.list.count');\n }\n return $this->max_count;\n }\n\n /**\n * Gets and sets the taxonomy array which defines which taxonomies this page identifies itself with.\n *\n * @param array $var an array of taxonomies\n * @return array an array of taxonomies\n */\n public function taxonomy($var = null)\n {\n if ($var !== null) {\n $this->taxonomy = $var;\n }\n return $this->taxonomy;\n }\n\n /**\n * Gets and sets the modular var that helps identify this parent page contains modular pages.\n *\n * @param bool $var true if modular_twig\n * @return bool true if modular_twig\n */\n public function modular($var = null)\n {\n return $this->modularTwig($var);\n }\n\n /**\n * Gets and sets the modular_twig var that helps identify this page as a modular page that will need\n * twig processing handled differently from a regular page.\n *\n * @param bool $var true if modular_twig\n * @return bool true if modular_twig\n */\n public function modularTwig($var = null)\n {\n if ($var !== null) {\n $this->modular_twig = (bool) $var;\n if ($var) {\n $this->process['twig'] = true;\n $this->visible(false);\n }\n }\n return $this->modular_twig;\n }\n\n /**\n * Gets the configured state of the processing method.\n *\n * @param string $process the process, eg \"twig\" or \"markdown\"\n * @return bool whether or not the processing method is enabled for this Page\n */\n public function shouldProcess($process)\n {\n return isset($this->process[$process]) ? (bool) $this->process[$process] : false;\n }\n\n /**\n * Gets and Sets the parent object for this page\n *\n * @param Page $var the parent page object\n * @return Page|null the parent page object if it exists.\n */\n public function parent(Page $var = null)\n {\n if ($var) {\n $this->parent = $var->path();\n return $var;\n }\n\n /** @var Pages $pages */\n $pages = self::getGrav()['pages'];\n\n return $pages->get($this->parent);\n }\n\n /**\n * Returns children of this page.\n *\n * @return \\Grav\\Common\\Page\\Collection\n */\n public function children()\n {\n /** @var Pages $pages */\n $pages = self::getGrav()['pages'];\n return $pages->children($this->path());\n }\n\n\n /**\n * Check to see if this item is the first in an array of sub-pages.\n *\n * @return boolean True if item is first.\n */\n public function isFirst()\n {\n $collection = $this->parent()->collection('content', false);\n return $collection->isFirst($this->path());\n }\n\n /**\n * Check to see if this item is the last in an array of sub-pages.\n *\n * @return boolean True if item is last\n */\n public function isLast()\n {\n $collection = $this->parent()->collection('content', false);\n return $collection->isLast($this->path());\n }\n\n /**\n * Gets the previous sibling based on current position.\n *\n * @return Page the previous Page item\n */\n public function prevSibling()\n {\n return $this->adjacentSibling(-1);\n }\n\n /**\n * Gets the next sibling based on current position.\n *\n * @return Page the next Page item\n */\n public function nextSibling()\n {\n return $this->adjacentSibling(1);\n }\n\n /**\n * Returns the adjacent sibling based on a direction.\n *\n * @param integer $direction either -1 or +1\n * @return Page the sibling page\n */\n public function adjacentSibling($direction = 1)\n {\n $collection = $this->parent()->collection('content', false);\n return $collection->adjacentSibling($this->path(), $direction);\n }\n\n /**\n * Returns whether or not this page is the currently active page requested via the URL.\n *\n * @return bool True if it is active\n */\n public function active()\n {\n $uri_path = self::getGrav()['uri']->path();\n $routes = self::getGrav()['pages']->routes();\n\n if (isset($routes[$uri_path])) {\n if ($routes[$uri_path] == $this->path()) {\n return true;\n }\n\n }\n return false;\n }\n\n /**\n * Returns whether or not this URI's URL contains the URL of the active page.\n * Or in other words, is this page's URL in the current URL\n *\n * @return bool True if active child exists\n */\n public function activeChild()\n {\n $uri = self::getGrav()['uri'];\n $pages = self::getGrav()['pages'];\n $uri_path = $uri->path();\n $routes = self::getGrav()['pages']->routes();\n\n if (isset($routes[$uri_path])) {\n $child_page = $pages->dispatch($uri->route())->parent();\n while (!$child_page->root()) {\n if ($this->path() == $child_page->path()) {\n return true;\n }\n $child_page = $child_page->parent();\n }\n }\n\n return false;\n }\n\n /**\n * Returns whether or not this page is the currently configured home page.\n *\n * @return bool True if it is the homepage\n */\n public function home()\n {\n return $this->find('/') == $this;\n }\n\n /**\n * Returns whether or not this page is the root node of the pages tree.\n *\n * @return bool True if it is the root\n */\n public function root()\n {\n if (!$this->parent && !$this->name && !$this->visible) {\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * Helper method to return a page.\n *\n * @param string $url the url of the page\n * @param bool $all\n *\n * @return \\Grav\\Common\\Page\\Page page you were looking for if it exists\n * @deprecated\n */\n public function find($url, $all = false)\n {\n /** @var Pages $pages */\n $pages = self::getGrav()['pages'];\n return $pages->dispatch($url, $all);\n }\n\n /**\n * Get a collection of pages in the current context.\n *\n * @param string|array $params\n * @param boolean $pagination\n * @return Collection\n * @throws \\InvalidArgumentException\n */\n public function collection($params = 'content', $pagination = true)\n {\n if (is_string($params)) {\n $params = (array) $this->value('header.'.$params);\n } elseif (!is_array($params)) {\n throw new \\InvalidArgumentException('Argument should be either header variable name or array of parameters');\n }\n\n if (!isset($params['items'])) {\n return array();\n }\n\n $collection = $this->evaluate($params['items']);\n if (!$collection instanceof Collection) {\n $collection = new Collection();\n }\n $collection->setParams($params);\n\n // TODO: MOVE THIS INTO SOMEWHERE ELSE?\n /** @var Uri $uri */\n $uri = self::getGrav()['uri'];\n /** @var Config $config */\n $config = self::getGrav()['config'];\n\n foreach ((array) $config->get('site.taxonomies') as $taxonomy) {\n if ($uri->param($taxonomy)) {\n $items = explode(',', $uri->param($taxonomy));\n $collection->setParams(['taxonomies' => [$taxonomy => $items]]);\n\n foreach ($collection as $page) {\n if ($page->modular()) {\n continue;\n }\n foreach ($items as $item) {\n if (empty($page->taxonomy[$taxonomy])\n || !in_array($item, $page->taxonomy[$taxonomy])) {\n $collection->remove();\n }\n }\n }\n }\n }\n // TODO: END OF MOVE\n\n if (isset($params['dateRange'])) {\n $start = isset($params['dateRange']['start']) ? $params['dateRange']['start'] : 0;\n $end = isset($params['dateRange']['end']) ? $params['dateRange']['end'] : false;\n $collection->dateRange($start, $end);\n }\n\n if (isset($params['order'])) {\n $by = isset($params['order']['by']) ? $params['order']['by'] : 'default';\n $dir = isset($params['order']['dir']) ? $params['order']['dir'] : 'asc';\n $custom = isset($params['order']['custom']) ? $params['order']['custom'] : null;\n $collection->order($by, $dir, $custom);\n }\n\n /** @var Grav $grav */\n $grav = self::getGrav()['grav'];\n\n // New Custom event to handle things like pagination.\n $grav->fireEvent('onCollectionProcessed', new Event(['collection' => $collection]));\n\n // Slice and dice the collection if pagination is required\n if ($pagination) {\n $params = $collection->params();\n\n $limit = isset($params['limit']) ? $params['limit'] : 0;\n $start = !empty($params['pagination']) ? ($uri->currentPage() - 1) * $limit : 0;\n\n if ($limit && $collection->count() > $limit) {\n $collection->slice($start, $limit);\n }\n }\n\n return $collection;\n }\n\n /**\n * @param string $value\n *\n * @return mixed\n * @internal\n */\n protected function evaluate($value)\n {\n // Parse command.\n if (is_string($value)) {\n // Format: @command.param\n $cmd = $value;\n $params = array();\n } elseif (is_array($value) && count($value) == 1) {\n // Format: @command.param: { attr1: value1, attr2: value2 }\n $cmd = (string) key($value);\n $params = (array) current($value);\n } else {\n return $value;\n }\n\n // We only evaluate commands which start with @\n if (empty($cmd) || $cmd[0] != '@') {\n return $value;\n }\n\n $parts = explode('.', $cmd);\n $current = array_shift($parts);\n\n $results = null;\n switch ($current) {\n case '@self':\n if (!empty($parts)) {\n switch ($parts[0]) {\n case 'modular':\n $results = $this->children()->modular()->published();\n break;\n case 'children':\n $results = $this->children()->nonModular()->published();\n break;\n }\n }\n break;\n\n case '@page':\n if (!empty($params)) {\n $page = $this->find($params[0]);\n if ($page) {\n $results = $page->children()->nonModular()->published();\n }\n }\n break;\n\n case '@taxonomy':\n // Gets a collection of pages by using one of the following formats:\n // @taxonomy.category: blog\n // @taxonomy.category: [ blog, featured ]\n // @taxonomy: { category: [ blog, featured ], level: 1 }\n\n /** @var Taxonomy $taxonomy_map */\n $taxonomy_map = self::getGrav()['taxonomy'];\n\n if (!empty($parts)) {\n $params = [implode('.', $parts) => $params];\n }\n $results = $taxonomy_map->findTaxonomy($params);\n break;\n }\n\n return $results;\n }\n\n /**\n * Returns whether or not this Page object has a .md file associated with it or if its just a directory.\n *\n * @return bool True if its a page with a .md file associated\n */\n public function isPage()\n {\n if ($this->name) {\n return true;\n }\n return false;\n }\n\n /**\n * Returns whether or not this Page object is a directory or a page.\n *\n * @return bool True if its a directory\n */\n public function isDir()\n {\n return !$this->isPage();\n }\n\n /**\n * Returns whether the page exists in the filesystem.\n *\n * @return bool\n */\n public function exists()\n {\n $file = $this->file();\n return $file && $file->exists();\n }\n\n /**\n * Cleans the path.\n *\n * @param string $path the path\n * @return string the path\n */\n protected function cleanPath($path)\n {\n $lastchunk = strrchr($path, DS);\n if (strpos($lastchunk, ':') !== false) {\n $path = str_replace($lastchunk, '', $path);\n }\n return $path;\n }\n\n /**\n * Moves or copies the page in filesystem.\n *\n * @internal\n */\n protected function doRelocation($reorder)\n {\n if (empty($this->_original)) {\n return;\n }\n\n // Do reordering.\n if ($reorder && $this->order() != $this->_original->order()) {\n /** @var Pages $pages */\n $pages = self::getGrav()['pages'];\n\n $parent = $this->parent();\n\n // Extract visible children from the parent page.\n $list = array();\n /** @var Page $page */\n foreach ($parent->children()->visible() as $page) {\n if ($page->order()) {\n $list[$page->slug] = $page->path();\n }\n }\n\n // If page was moved, take it out of the list.\n if ($this->_action == 'move') {\n unset($list[$this->slug()]);\n }\n\n $list = array_values($list);\n\n // Then add it back to the new location (if needed).\n if ($this->order()) {\n array_splice($list, min($this->order()-1, count($list)), 0, array($this->path()));\n }\n\n // Reorder all moved pages.\n foreach ($list as $order => $path) {\n if ($path == $this->path()) {\n // Handle current page; we do want to change ordering number, but nothing else.\n $this->order($order+1);\n } else {\n // Handle all the other pages.\n $page = $pages->get($path);\n\n if ($page && $page->exists() && $page->order() != $order+1) {\n $page = $page->move($parent);\n $page->order($order+1);\n $page->save(false);\n }\n }\n }\n }\n if ($this->_action == 'move' && $this->_original->exists()) {\n Folder::move($this->_original->path(), $this->path());\n }\n if ($this->_action == 'copy' && $this->_original->exists()) {\n Folder::copy($this->_original->path(), $this->path());\n }\n\n if ($this->name() != $this->_original->name()) {\n $path = $this->path();\n if (is_file($path . '/' . $this->_original->name())) {\n rename($path . '/' . $this->_original->name(), $path . '/' . $this->name());\n }\n }\n\n $this->_action = null;\n $this->_original = null;\n }\n\n\n}\n"},"meta":{"kind":"string","value":"{'content_hash': 'd72cac8d49fff524753e9f46c89c96af', 'timestamp': '', 'source': 'github', 'line_count': 1965, 'max_line_length': 140, 'avg_line_length': 29.63002544529262, 'alnum_prop': 0.4973979355237621, 'repo_name': 'pbwebdev/peterbui', 'id': 'f65df331d07aca09feb35152479d067077a9523f', 'size': '58224', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'system/src/Grav/Common/Page/Page.php', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'ApacheConf', 'bytes': '2190'}, {'name': 'CSS', 'bytes': '118976'}, {'name': 'HTML', 'bytes': '26069'}, {'name': 'JavaScript', 'bytes': '6479'}, {'name': 'Nginx', 'bytes': '1696'}, {'name': 'PHP', 'bytes': '569824'}, {'name': 'Shell', 'bytes': '32'}]}"}}},{"rowIdx":849150,"cells":{"text":{"kind":"string","value":"statusbarpanel {\n border-style: none;\n border: 0px;\n}\n\n#accountbuttonid , #filterbuttonid {\n\tmargin-bottom:8px;\n}\n\n.toolbarbutton-text {\n\tpadding-top:2px;\n}\n\n#speechheaderid {\n\tborder:1px solid #515151;\n\tbackground-color:#666; \n\tbackground-image:url(chrome://buzzbird/skin/images/speech-toolbar-background.png);\n\tbackground-repeat:repeat-x;\n\tcolor:#fff;\n\theight:32px;\n\tmargin-left:4px;\n\tmargin-right:4px;\n\tpadding:0 1px 0 1px;\n}\n\n#postbuttonid {\n\tcolor:#eee;\n\tfont-size:12px;\n\tpadding:0 4px 3px 0;\n\twidth:50px; \n}\n\n#statusid {\n \tcolor:#eee;\n margin-top:6px;\t\n}\n\n.post-toolbar-button {\n}\n\n#textboxid {\n\tmargin-top:0px;\n\toverflow:auto;\n}\n\n#accountbuttonid, #filterbuttonid, #listbuttonid {\n font-size:0.9em;\n}\n"},"meta":{"kind":"string","value":"{'content_hash': 'fc5046aca952aba9a1a26b097a71a812', 'timestamp': '', 'source': 'github', 'line_count': 48, 'max_line_length': 83, 'avg_line_length': 14.895833333333334, 'alnum_prop': 0.7020979020979021, 'repo_name': 'mdesjardins/buzzbird', 'id': 'dfda574b662edbde846f1034b08afe4ee7c7a294', 'size': '716', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'chrome/skin/classic-win/main.css', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'Batchfile', 'bytes': '991'}, {'name': 'C++', 'bytes': '18109'}, {'name': 'CSS', 'bytes': '58165'}, {'name': 'HTML', 'bytes': '29446'}, {'name': 'Java', 'bytes': '2831'}, {'name': 'JavaScript', 'bytes': '238150'}, {'name': 'Shell', 'bytes': '12963'}]}"}}},{"rowIdx":849151,"cells":{"text":{"kind":"string","value":".ButtonBarMarkupHint {\n /* color: black; */\n font-size: 11px;\n}\n\n#DiscussionForm .ButtonBar {\n margin-bottom: -6px;\n}\n\n#DiscussionForm .ButtonBarMarkupHint {\n margin-top: -6px;\n}\n\n.BarWrap {\n background: #fafafa;\n border: 1px solid #aaa;\n margin: 0 0 -1px;\n line-height: 0.1;\n}\n\n.ButtonBar .ButtonWrap {\n background-color: white;\n background-position: 50% 50%;\n background-repeat: no-repeat;\n border-right: 1px solid #eee;\n height: 24px;\n width: 24px;\n z-index: 50;\n display: inline-block;\n}\n\n/** This causes clearing problems when the panel is taller than the content\n#DiscussionForm .TextBoxWrapper,\n.CommentForm .TextBoxWrapper {\n clear: left;\n}\n*/\n.ButtonBar .ButtonWrap:hover {\n background-color: #f8f8f8;\n cursor: pointer;\n}\n\n.ButtonBar .ButtonWrap span {\n display: none;\n}\n\n.ButtonBar .ButtonOff {\n display: none;\n cursor: auto;\n opacity: 0.3;\n}\n\n.ButtonBar .ButtonOff:hover {\n background-color: white;\n}\n\n.ButtonBar .ButtonWrap {\n background: transparent url('images/sprites.png') no-repeat 0 0;\n}\n\n.ButtonBar .ButtonBarBold {\n background-position: 0px 0px;\n}\n\n.ButtonBar .ButtonBarItalic {\n background-position: 0px -24px;\n}\n\n.ButtonBar .ButtonBarUnderline {\n background-position: 0px -48px;\n}\n\n.ButtonBar .ButtonBarStrike {\n background-position: 0px -72px;\n}\n\n.ButtonBar .ButtonBarCode {\n background-position: 0px -96px;\n}\n\n.ButtonBar .ButtonBarImage {\n background-position: 0px -120px;\n}\n\n.ButtonBar .ButtonBarUrl {\n background-position: 0px -144px;\n}\n\n.ButtonBar .ButtonBarQuote {\n background-position: 0px -168px;\n}\n\n.ButtonBar .ButtonBarSpoiler {\n background-position: 0px -192px;\n}\n"},"meta":{"kind":"string","value":"{'content_hash': '72720fc6209b4c381b92cd5588606bd2', 'timestamp': '', 'source': 'github', 'line_count': 95, 'max_line_length': 75, 'avg_line_length': 17.873684210526317, 'alnum_prop': 0.6784452296819788, 'repo_name': 'evanilsonsilva/gabweb', 'id': '6a8a171e753b975a6f26a69f584c35057dcc843f', 'size': '1698', 'binary': False, 'copies': '23', 'ref': 'refs/heads/master', 'path': 'forum/plugins/ButtonBar/design/buttonbar.css', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'ApacheConf', 'bytes': '1807'}, {'name': 'CSS', 'bytes': '1114972'}, {'name': 'HTML', 'bytes': '546840'}, {'name': 'JavaScript', 'bytes': '1650460'}, {'name': 'PHP', 'bytes': '6435070'}, {'name': 'Smarty', 'bytes': '24905'}]}"}}},{"rowIdx":849152,"cells":{"text":{"kind":"string","value":"@interface ComGoogleCommonCacheLongAdder : ComGoogleCommonCacheStriped64 < JavaIoSerializable, ComGoogleCommonCacheLongAddable >\n\n#pragma mark Public\n\n- (instancetype)init;\n\n- (void)addWithLong:(jlong)x;\n\n- (void)decrement;\n\n- (jdouble)doubleValue;\n\n- (jfloat)floatValue;\n\n- (void)increment;\n\n- (jint)intValue;\n\n- (jlong)longLongValue;\n\n- (void)reset;\n\n- (jlong)sum;\n\n- (jlong)sumThenReset;\n\n- (NSString *)description;\n\n#pragma mark Package-Private\n\n- (jlong)fnWithLong:(jlong)v\n withLong:(jlong)x;\n\n@end\n\nJ2OBJC_EMPTY_STATIC_INIT(ComGoogleCommonCacheLongAdder)\n\nFOUNDATION_EXPORT void ComGoogleCommonCacheLongAdder_init(ComGoogleCommonCacheLongAdder *self);\n\nFOUNDATION_EXPORT ComGoogleCommonCacheLongAdder *new_ComGoogleCommonCacheLongAdder_init() NS_RETURNS_RETAINED;\n\nJ2OBJC_TYPE_LITERAL_HEADER(ComGoogleCommonCacheLongAdder)\n\n#endif\n\n#pragma pop_macro(\"ComGoogleCommonCacheLongAdder_INCLUDE_ALL\")\n"},"meta":{"kind":"string","value":"{'content_hash': '0f8c1bd064e4dbeff6b6dc7376933bf7', 'timestamp': '', 'source': 'github', 'line_count': 46, 'max_line_length': 128, 'avg_line_length': 19.82608695652174, 'alnum_prop': 0.7872807017543859, 'repo_name': 'benf1977/j2objc-serialization-example', 'id': '0fff06e4184382d1f88fa4a64f3b3dec88979c06', 'size': '1943', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'j2objc/include/com/google/common/cache/LongAdder.h', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'C', 'bytes': '6216'}, {'name': 'C++', 'bytes': '50169'}, {'name': 'Groff', 'bytes': '5681'}, {'name': 'Java', 'bytes': '2156'}, {'name': 'Objective-C', 'bytes': '10210534'}, {'name': 'Shell', 'bytes': '4566'}]}"}}},{"rowIdx":849153,"cells":{"text":{"kind":"string","value":"// Copyright (c) 2017 Andrey Ushkalov\n\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nusing System.Collections.Generic;\nusing System.Globalization;\n\nnamespace ResourceProvider.Tests\n{\n /// \n /// Константы, использующиеся в тестах провайдера ресурсов\n /// \n\tinternal static class Constants\n {\n /// \n /// Ключ первого значения из словаря\n /// \n\t\tpublic const string DictionaryKey1 = \"FirstValue\";\n\n /// \n /// Ключ второго значения из словаря\n /// \n public const string DictionaryKey2 = \"SecondValue\";\n\n /// \n /// Константы дефолтных тестовых словарей\n /// \n public static class Default\n {\n /// \n /// Путь ко второму словарю\n /// \n public const string Dictionary2Path = \"pack://application:,,,/ResourceProvider.Tests;component/TestDictionaries/Dictionary2.xaml\";\n\n /// \n /// Первое значение второго словаря\n /// \n public const string Dictionary2Value1 = \"значение1\";\n\n /// \n /// Второе значение второго словаря\n /// \n public const string Dictionary2Value2 = \"значение2\";\n }\n\n /// \n /// Константы тестовых словарей ru-RU\n /// \n public static class RuRu\n {\n /// \n /// Путь к первому словарю\n /// \n public const string Dictionary1Path = \"pack://application:,,,/ResourceProvider.Tests;component/TestDictionaries/ru-RU/Dictionary1.xaml\";\n\n /// \n /// Первое значение первого словаря\n /// \n public const string Dictionary1Value1 = \"Первое значение\";\n }\n\n /// \n /// Константы тестовых словарей en-US\n /// \n public static class EnUs\n {\n /// \n /// Путь к первому словарю\n /// \n public const string Dictionary1Path = \"pack://application:,,,/ResourceProvider.Tests;component/TestDictionaries/en-US/Dictionary1.xaml\";\n\n /// \n /// Первое значение первого словаря\n /// \n public const string Dictionary1Value1 = \"First Value\";\n }\n\n /// \n /// Первый словарь (с поддержкой локализации)\n /// \n public static readonly ResourceDictionaryInfo Dictionary1 = new ResourceDictionaryInfo(\"DICTIONARY1\",\n CultureInfo.GetCultureInfo(\"ru-RU\"),\n new Dictionary\n {\n {CultureInfo.GetCultureInfo(\"ru-RU\"), RuRu.Dictionary1Path},\n {CultureInfo.GetCultureInfo(\"en-US\"), EnUs.Dictionary1Path}\n });\n\n /// \n /// Второй словарь (без поддержки локализации)\n /// \n public static readonly ResourceDictionaryInfo Dictionary2 = new ResourceDictionaryInfo(\"DICTIONARY2\", Default.Dictionary2Path);\n\n /// \n /// Имя третьего (несуществующего) словаря\n /// \n public const string Dictionary3Name = \"DICTIONARY3\";\n }\n}\n"},"meta":{"kind":"string","value":"{'content_hash': '819c87905ec598ac85128a7dbbfd946c', 'timestamp': '', 'source': 'github', 'line_count': 115, 'max_line_length': 148, 'avg_line_length': 37.99130434782609, 'alnum_prop': 0.6216525520714122, 'repo_name': 'AndreyUshkalov/ResourceProvider', 'id': 'dd6db90e6bbc584ca53140926a82993d8c60bc23', 'size': '4863', 'binary': False, 'copies': '1', 'ref': 'refs/heads/develop', 'path': 'ResourceProvider.Tests/Constants.cs', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'C#', 'bytes': '75689'}]}"}}},{"rowIdx":849154,"cells":{"text":{"kind":"string","value":"SYNONYM\n\n#### According to\nThe Catalogue of Life, 3rd January 2011\n\n#### Published in\nnull\n\n#### Original name\nnull\n\n### Remarks\nnull"},"meta":{"kind":"string","value":"{'content_hash': 'bd5ec00aecaa6ebcd02a51949d44ad04', 'timestamp': '', 'source': 'github', 'line_count': 13, 'max_line_length': 39, 'avg_line_length': 10.23076923076923, 'alnum_prop': 0.6917293233082706, 'repo_name': 'mdoering/backbone', 'id': '58471e8a05950b7ff13a6deaafa6e2cb6a3f33c6', 'size': '180', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'life/Plantae/Magnoliophyta/Liliopsida/Asparagales/Orchidaceae/Hylaeorchis/Hylaeorchis petiolaris/ Syn. Bifrenaria minuta/README.md', 'mode': '33188', 'license': 'apache-2.0', 'language': []}"}}},{"rowIdx":849155,"cells":{"text":{"kind":"string","value":"import os\nimport os.path\n\nlistfile = os.listdir(\"/mnt/work\")\nfor filename in listfile:\n\tif len(filename) > 20:\n\t\tshellcmd0 = \"./nglog \" + filename + \" pv\" + \" uv\"\n\t\tos.system(shellcmd0)\n\t\tprint shellcmd0 \n\t\tshellcmd1 = \"wc -l \" + filename + \" | awk '{print $1 }'\" + \" >> \" + filename + \".pvuv\"\n\t\tos.system(shellcmd1)\n\t\t\n\t\tprint shellcmd1\n\t\tshellcmd2 = \"cat pv | grep apk | grep android | awk '{print $2}'| wc -l >> \" + filename + \".pvuv\" \n\t\tprint shellcmd2\n\t\tos.system(shellcmd2)\n\n shellcmd3 = \"cat uv | grep android | awk '{print $2}' | sort | uniq | wc -l >> \" + filename + \".pvuv\"\n print shellcmd3\n os.system(shellcmd3)\n shellcmd4 = \"cat uv | grep ios | awk '{print $2}' | sort | uniq | wc -l >> \" + filename + \".pvuv\"\n print shellcmd4\n os.system(shellcmd4)\n shellcmd5 = \"cat uv | grep windows | awk '{print $2}' | sort | uniq | wc -l >> \" + filename + \".pvuv\"\n print shellcmd5\n os.system(shellcmd5)\n\t#break\n"},"meta":{"kind":"string","value":"{'content_hash': '0eaf8f8aaea732a22cc0a5da22cd9e45', 'timestamp': '', 'source': 'github', 'line_count': 27, 'max_line_length': 118, 'avg_line_length': 38.81481481481482, 'alnum_prop': 0.5353053435114504, 'repo_name': 'pepfi/pvuvshow', 'id': 'a3d1d7cdeeccfacd6b097b2facce9a2463938324', 'size': '1083', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'python/result.py', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'ApacheConf', 'bytes': '240'}, {'name': 'CSS', 'bytes': '14680'}, {'name': 'HTML', 'bytes': '8091362'}, {'name': 'JavaScript', 'bytes': '3732313'}, {'name': 'PHP', 'bytes': '1733018'}, {'name': 'Python', 'bytes': '5070'}]}"}}},{"rowIdx":849156,"cells":{"text":{"kind":"string","value":"\n.note-editor {\n /* Allow for input prepend/append in search forms */\n\n /* White icons with optional class, or on hover/focus/active states of certain elements */\n\n /* move down carets for tabs */\n\n}\n.note-editor .clearfix {\n *zoom: 1;\n}\n.note-editor .clearfix:before,\n.note-editor .clearfix:after {\n display: table;\n content: \"\";\n line-height: 0;\n}\n.note-editor .clearfix:after {\n clear: both;\n}\n.note-editor .hide-text {\n font: 0/0 a;\n color: transparent;\n text-shadow: none;\n background-color: transparent;\n border: 0;\n}\n.note-editor .input-block-level {\n display: block;\n width: 100%;\n min-height: 30px;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.note-editor article,\n.note-editor aside,\n.note-editor details,\n.note-editor figcaption,\n.note-editor figure,\n.note-editor footer,\n.note-editor header,\n.note-editor hgroup,\n.note-editor nav,\n.note-editor section {\n display: block;\n}\n.note-editor audio,\n.note-editor canvas,\n.note-editor video {\n display: inline-block;\n *display: inline;\n *zoom: 1;\n}\n.note-editor audio:not([controls]) {\n display: none;\n}\n.note-editor html {\n font-size: 100%;\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n}\n.note-editor a:focus {\n outline: thin dotted #333;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\n.note-editor a:hover,\n.note-editor a:active {\n outline: 0;\n}\n.note-editor sub,\n.note-editor sup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\n.note-editor sup {\n top: -0.5em;\n}\n.note-editor sub {\n bottom: -0.25em;\n}\n.note-editor img {\n /* Responsive images (ensure images don't scale beyond their parents) */\n\n max-width: 100%;\n /* Part 1: Set a maxium relative to the parent */\n\n width: auto\\9;\n /* IE7-8 need help adjusting responsive images */\n\n height: auto;\n /* Part 2: Scale the height according to the width, otherwise you get stretching */\n\n vertical-align: middle;\n border: 0;\n -ms-interpolation-mode: bicubic;\n}\n.note-editor #map_canvas img,\n.note-editor .google-maps img {\n max-width: none;\n}\n.note-editor button,\n.note-editor input,\n.note-editor select,\n.note-editor textarea {\n margin: 0;\n font-size: 100%;\n vertical-align: middle;\n}\n.note-editor button,\n.note-editor input {\n *overflow: visible;\n line-height: normal;\n}\n.note-editor button::-moz-focus-inner,\n.note-editor input::-moz-focus-inner {\n padding: 0;\n border: 0;\n}\n.note-editor button,\n.note-editor html input[type=\"button\"],\n.note-editor input[type=\"reset\"],\n.note-editor input[type=\"submit\"] {\n -webkit-appearance: button;\n cursor: pointer;\n}\n.note-editor label,\n.note-editor select,\n.note-editor button,\n.note-editor input[type=\"button\"],\n.note-editor input[type=\"reset\"],\n.note-editor input[type=\"submit\"],\n.note-editor input[type=\"radio\"],\n.note-editor input[type=\"checkbox\"] {\n cursor: pointer;\n}\n.note-editor input[type=\"search\"] {\n -webkit-box-sizing: content-box;\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n -webkit-appearance: textfield;\n}\n.note-editor input[type=\"search\"]::-webkit-search-decoration,\n.note-editor input[type=\"search\"]::-webkit-search-cancel-button {\n -webkit-appearance: none;\n}\n.note-editor textarea {\n overflow: auto;\n vertical-align: top;\n}\n@media print {\n .note-editor * {\n text-shadow: none !important;\n color: #000 !important;\n background: transparent !important;\n box-shadow: none !important;\n }\n .note-editor a,\n .note-editor a:visited {\n text-decoration: underline;\n }\n .note-editor a[href]:after {\n content: \" (\" attr(href) \")\";\n }\n .note-editor abbr[title]:after {\n content: \" (\" attr(title) \")\";\n }\n .note-editor .ir a:after,\n .note-editor a[href^=\"javascript:\"]:after,\n .note-editor a[href^=\"#\"]:after {\n content: \"\";\n }\n .note-editor pre,\n .note-editor blockquote {\n border: 1px solid #999;\n page-break-inside: avoid;\n }\n .note-editor thead {\n display: table-header-group;\n }\n .note-editor tr,\n .note-editor img {\n page-break-inside: avoid;\n }\n .note-editor img {\n max-width: 100% !important;\n }\n @page {\n margin: 0.5cm;\n }\n .note-editor p,\n .note-editor h2,\n .note-editor h3 {\n orphans: 3;\n widows: 3;\n }\n .note-editor h2,\n .note-editor h3 {\n page-break-after: avoid;\n }\n}\n.note-editor body {\n margin: 0;\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n font-size: 14px;\n line-height: 20px;\n color: #333333;\n background-color: #ffffff;\n}\n.note-editor a {\n color: #0088cc;\n text-decoration: none;\n}\n.note-editor a:hover,\n.note-editor a:focus {\n color: #005580;\n text-decoration: underline;\n}\n.note-editor .img-rounded {\n -webkit-border-radius: 6px;\n -moz-border-radius: 6px;\n border-radius: 6px;\n}\n.note-editor .img-polaroid {\n padding: 4px;\n background-color: #fff;\n border: 1px solid #ccc;\n border: 1px solid rgba(0, 0, 0, 0.2);\n -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n}\n.note-editor .img-circle {\n -webkit-border-radius: 500px;\n -moz-border-radius: 500px;\n border-radius: 500px;\n}\n.note-editor .row {\n margin-left: -20px;\n *zoom: 1;\n}\n.note-editor .row:before,\n.note-editor .row:after {\n display: table;\n content: \"\";\n line-height: 0;\n}\n.note-editor .row:after {\n clear: both;\n}\n.note-editor [class*=\"span\"] {\n float: left;\n min-height: 1px;\n margin-left: 20px;\n}\n.note-editor .container,\n.note-editor .navbar-static-top .container,\n.note-editor .navbar-fixed-top .container,\n.note-editor .navbar-fixed-bottom .container {\n width: 940px;\n}\n.note-editor .span12 {\n width: 940px;\n}\n.note-editor .span11 {\n width: 860px;\n}\n.note-editor .span10 {\n width: 780px;\n}\n.note-editor .span9 {\n width: 700px;\n}\n.note-editor .span8 {\n width: 620px;\n}\n.note-editor .span7 {\n width: 540px;\n}\n.note-editor .span6 {\n width: 460px;\n}\n.note-editor .span5 {\n width: 380px;\n}\n.note-editor .span4 {\n width: 300px;\n}\n.note-editor .span3 {\n width: 220px;\n}\n.note-editor .span2 {\n width: 140px;\n}\n.note-editor .span1 {\n width: 60px;\n}\n.note-editor .offset12 {\n margin-left: 980px;\n}\n.note-editor .offset11 {\n margin-left: 900px;\n}\n.note-editor .offset10 {\n margin-left: 820px;\n}\n.note-editor .offset9 {\n margin-left: 740px;\n}\n.note-editor .offset8 {\n margin-left: 660px;\n}\n.note-editor .offset7 {\n margin-left: 580px;\n}\n.note-editor .offset6 {\n margin-left: 500px;\n}\n.note-editor .offset5 {\n margin-left: 420px;\n}\n.note-editor .offset4 {\n margin-left: 340px;\n}\n.note-editor .offset3 {\n margin-left: 260px;\n}\n.note-editor .offset2 {\n margin-left: 180px;\n}\n.note-editor .offset1 {\n margin-left: 100px;\n}\n.note-editor .row-fluid {\n width: 100%;\n *zoom: 1;\n}\n.note-editor .row-fluid:before,\n.note-editor .row-fluid:after {\n display: table;\n content: \"\";\n line-height: 0;\n}\n.note-editor .row-fluid:after {\n clear: both;\n}\n.note-editor .row-fluid [class*=\"span\"] {\n display: block;\n width: 100%;\n min-height: 30px;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n float: left;\n margin-left: 2.127659574468085%;\n *margin-left: 2.074468085106383%;\n}\n.note-editor .row-fluid [class*=\"span\"]:first-child {\n margin-left: 0;\n}\n.note-editor .row-fluid .controls-row [class*=\"span\"] + [class*=\"span\"] {\n margin-left: 2.127659574468085%;\n}\n.note-editor .row-fluid .span12 {\n width: 100%;\n *width: 99.94680851063829%;\n}\n.note-editor .row-fluid .span11 {\n width: 91.48936170212765%;\n *width: 91.43617021276594%;\n}\n.note-editor .row-fluid .span10 {\n width: 82.97872340425532%;\n *width: 82.92553191489361%;\n}\n.note-editor .row-fluid .span9 {\n width: 74.46808510638297%;\n *width: 74.41489361702126%;\n}\n.note-editor .row-fluid .span8 {\n width: 65.95744680851064%;\n *width: 65.90425531914893%;\n}\n.note-editor .row-fluid .span7 {\n width: 57.44680851063829%;\n *width: 57.39361702127659%;\n}\n.note-editor .row-fluid .span6 {\n width: 48.93617021276595%;\n *width: 48.88297872340425%;\n}\n.note-editor .row-fluid .span5 {\n width: 40.42553191489362%;\n *width: 40.37234042553192%;\n}\n.note-editor .row-fluid .span4 {\n width: 31.914893617021278%;\n *width: 31.861702127659576%;\n}\n.note-editor .row-fluid .span3 {\n width: 23.404255319148934%;\n *width: 23.351063829787233%;\n}\n.note-editor .row-fluid .span2 {\n width: 14.893617021276595%;\n *width: 14.840425531914894%;\n}\n.note-editor .row-fluid .span1 {\n width: 6.382978723404255%;\n *width: 6.329787234042553%;\n}\n.note-editor .row-fluid .offset12 {\n margin-left: 104.25531914893617%;\n *margin-left: 104.14893617021275%;\n}\n.note-editor .row-fluid .offset12:first-child {\n margin-left: 102.12765957446808%;\n *margin-left: 102.02127659574467%;\n}\n.note-editor .row-fluid .offset11 {\n margin-left: 95.74468085106382%;\n *margin-left: 95.6382978723404%;\n}\n.note-editor .row-fluid .offset11:first-child {\n margin-left: 93.61702127659574%;\n *margin-left: 93.51063829787232%;\n}\n.note-editor .row-fluid .offset10 {\n margin-left: 87.23404255319149%;\n *margin-left: 87.12765957446807%;\n}\n.note-editor .row-fluid .offset10:first-child {\n margin-left: 85.1063829787234%;\n *margin-left: 84.99999999999999%;\n}\n.note-editor .row-fluid .offset9 {\n margin-left: 78.72340425531914%;\n *margin-left: 78.61702127659572%;\n}\n.note-editor .row-fluid .offset9:first-child {\n margin-left: 76.59574468085106%;\n *margin-left: 76.48936170212764%;\n}\n.note-editor .row-fluid .offset8 {\n margin-left: 70.2127659574468%;\n *margin-left: 70.10638297872339%;\n}\n.note-editor .row-fluid .offset8:first-child {\n margin-left: 68.08510638297872%;\n *margin-left: 67.9787234042553%;\n}\n.note-editor .row-fluid .offset7 {\n margin-left: 61.70212765957446%;\n *margin-left: 61.59574468085106%;\n}\n.note-editor .row-fluid .offset7:first-child {\n margin-left: 59.574468085106375%;\n *margin-left: 59.46808510638297%;\n}\n.note-editor .row-fluid .offset6 {\n margin-left: 53.191489361702125%;\n *margin-left: 53.085106382978715%;\n}\n.note-editor .row-fluid .offset6:first-child {\n margin-left: 51.063829787234035%;\n *margin-left: 50.95744680851063%;\n}\n.note-editor .row-fluid .offset5 {\n margin-left: 44.68085106382979%;\n *margin-left: 44.57446808510638%;\n}\n.note-editor .row-fluid .offset5:first-child {\n margin-left: 42.5531914893617%;\n *margin-left: 42.4468085106383%;\n}\n.note-editor .row-fluid .offset4 {\n margin-left: 36.170212765957444%;\n *margin-left: 36.06382978723405%;\n}\n.note-editor .row-fluid .offset4:first-child {\n margin-left: 34.04255319148936%;\n *margin-left: 33.93617021276596%;\n}\n.note-editor .row-fluid .offset3 {\n margin-left: 27.659574468085104%;\n *margin-left: 27.5531914893617%;\n}\n.note-editor .row-fluid .offset3:first-child {\n margin-left: 25.53191489361702%;\n *margin-left: 25.425531914893618%;\n}\n.note-editor .row-fluid .offset2 {\n margin-left: 19.148936170212764%;\n *margin-left: 19.04255319148936%;\n}\n.note-editor .row-fluid .offset2:first-child {\n margin-left: 17.02127659574468%;\n *margin-left: 16.914893617021278%;\n}\n.note-editor .row-fluid .offset1 {\n margin-left: 10.638297872340425%;\n *margin-left: 10.53191489361702%;\n}\n.note-editor .row-fluid .offset1:first-child {\n margin-left: 8.51063829787234%;\n *margin-left: 8.404255319148938%;\n}\n.note-editor [class*=\"span\"].hide,\n.note-editor .row-fluid [class*=\"span\"].hide {\n display: none;\n}\n.note-editor [class*=\"span\"].pull-right,\n.note-editor .row-fluid [class*=\"span\"].pull-right {\n float: right;\n}\n.note-editor .container {\n margin-right: auto;\n margin-left: auto;\n *zoom: 1;\n}\n.note-editor .container:before,\n.note-editor .container:after {\n display: table;\n content: \"\";\n line-height: 0;\n}\n.note-editor .container:after {\n clear: both;\n}\n.note-editor .container-fluid {\n padding-right: 20px;\n padding-left: 20px;\n *zoom: 1;\n}\n.note-editor .container-fluid:before,\n.note-editor .container-fluid:after {\n display: table;\n content: \"\";\n line-height: 0;\n}\n.note-editor .container-fluid:after {\n clear: both;\n}\n.note-editor p {\n margin: 0 0 10px;\n}\n.note-editor .lead {\n margin-bottom: 20px;\n font-size: 21px;\n font-weight: 200;\n line-height: 30px;\n}\n.note-editor small {\n font-size: 85%;\n}\n.note-editor strong {\n font-weight: bold;\n}\n.note-editor em {\n font-style: italic;\n}\n.note-editor cite {\n font-style: normal;\n}\n.note-editor .muted {\n color: #999999;\n}\n.note-editor a.muted:hover,\n.note-editor a.muted:focus {\n color: #808080;\n}\n.note-editor .text-warning {\n color: #c09853;\n}\n.note-editor a.text-warning:hover,\n.note-editor a.text-warning:focus {\n color: #a47e3c;\n}\n.note-editor .text-error {\n color: #b94a48;\n}\n.note-editor a.text-error:hover,\n.note-editor a.text-error:focus {\n color: #953b39;\n}\n.note-editor .text-info {\n color: #3a87ad;\n}\n.note-editor a.text-info:hover,\n.note-editor a.text-info:focus {\n color: #2d6987;\n}\n.note-editor .text-success {\n color: #468847;\n}\n.note-editor a.text-success:hover,\n.note-editor a.text-success:focus {\n color: #356635;\n}\n.note-editor .text-left {\n text-align: left;\n}\n.note-editor .text-right {\n text-align: right;\n}\n.note-editor .text-center {\n text-align: center;\n}\n.note-editor h1,\n.note-editor h2,\n.note-editor h3,\n.note-editor h4,\n.note-editor h5,\n.note-editor h6 {\n margin: 10px 0;\n font-family: inherit;\n font-weight: bold;\n line-height: 20px;\n color: inherit;\n text-rendering: optimizelegibility;\n}\n.note-editor h1 small,\n.note-editor h2 small,\n.note-editor h3 small,\n.note-editor h4 small,\n.note-editor h5 small,\n.note-editor h6 small {\n font-weight: normal;\n line-height: 1;\n color: #999999;\n}\n.note-editor h1,\n.note-editor h2,\n.note-editor h3 {\n line-height: 40px;\n}\n.note-editor h1 {\n font-size: 38.5px;\n}\n.note-editor h2 {\n font-size: 31.5px;\n}\n.note-editor h3 {\n font-size: 24.5px;\n}\n.note-editor h4 {\n font-size: 17.5px;\n}\n.note-editor h5 {\n font-size: 14px;\n}\n.note-editor h6 {\n font-size: 11.9px;\n}\n.note-editor h1 small {\n font-size: 24.5px;\n}\n.note-editor h2 small {\n font-size: 17.5px;\n}\n.note-editor h3 small {\n font-size: 14px;\n}\n.note-editor h4 small {\n font-size: 14px;\n}\n.note-editor .page-header {\n padding-bottom: 9px;\n margin: 20px 0 30px;\n border-bottom: 1px solid #eeeeee;\n}\n.note-editor ul,\n.note-editor ol {\n padding: 0;\n margin: 0 0 10px 25px;\n}\n.note-editor ul ul,\n.note-editor ul ol,\n.note-editor ol ol,\n.note-editor ol ul {\n margin-bottom: 0;\n}\n.note-editor li {\n line-height: 20px;\n}\n.note-editor ul.unstyled,\n.note-editor ol.unstyled {\n margin-left: 0;\n list-style: none;\n}\n.note-editor ul.inline,\n.note-editor ol.inline {\n margin-left: 0;\n list-style: none;\n}\n.note-editor ul.inline > li,\n.note-editor ol.inline > li {\n display: inline-block;\n *display: inline;\n /* IE7 inline-block hack */\n\n *zoom: 1;\n padding-left: 5px;\n padding-right: 5px;\n}\n.note-editor dl {\n margin-bottom: 20px;\n}\n.note-editor dt,\n.note-editor dd {\n line-height: 20px;\n}\n.note-editor dt {\n font-weight: bold;\n}\n.note-editor dd {\n margin-left: 10px;\n}\n.note-editor .dl-horizontal {\n *zoom: 1;\n}\n.note-editor .dl-horizontal:before,\n.note-editor .dl-horizontal:after {\n display: table;\n content: \"\";\n line-height: 0;\n}\n.note-editor .dl-horizontal:after {\n clear: both;\n}\n.note-editor .dl-horizontal dt {\n float: left;\n width: 160px;\n clear: left;\n text-align: right;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.note-editor .dl-horizontal dd {\n margin-left: 180px;\n}\n.note-editor hr {\n margin: 20px 0;\n border: 0;\n border-top: 1px solid #eeeeee;\n border-bottom: 1px solid #ffffff;\n}\n.note-editor abbr[title],\n.note-editor abbr[data-original-title] {\n cursor: help;\n border-bottom: 1px dotted #999999;\n}\n.note-editor abbr.initialism {\n font-size: 90%;\n text-transform: uppercase;\n}\n.note-editor blockquote {\n padding: 0 0 0 15px;\n margin: 0 0 20px;\n border-left: 5px solid #eeeeee;\n}\n.note-editor blockquote p {\n margin-bottom: 0;\n font-size: 17.5px;\n font-weight: 300;\n line-height: 1.25;\n}\n.note-editor blockquote small {\n display: block;\n line-height: 20px;\n color: #999999;\n}\n.note-editor blockquote small:before {\n content: '\\2014 \\00A0';\n}\n.note-editor blockquote.pull-right {\n float: right;\n padding-right: 15px;\n padding-left: 0;\n border-right: 5px solid #eeeeee;\n border-left: 0;\n}\n.note-editor blockquote.pull-right p,\n.note-editor blockquote.pull-right small {\n text-align: right;\n}\n.note-editor blockquote.pull-right small:before {\n content: '';\n}\n.note-editor blockquote.pull-right small:after {\n content: '\\00A0 \\2014';\n}\n.note-editor q:before,\n.note-editor q:after,\n.note-editor blockquote:before,\n.note-editor blockquote:after {\n content: \"\";\n}\n.note-editor address {\n display: block;\n margin-bottom: 20px;\n font-style: normal;\n line-height: 20px;\n}\n.note-editor code,\n.note-editor pre {\n padding: 0 3px 2px;\n font-family: Monaco, Menlo, Consolas, \"Courier New\", monospace;\n font-size: 12px;\n color: #333333;\n -webkit-border-radius: 3px;\n -moz-border-radius: 3px;\n border-radius: 3px;\n}\n.note-editor code {\n padding: 2px 4px;\n color: #d14;\n background-color: #f7f7f9;\n border: 1px solid #e1e1e8;\n white-space: nowrap;\n}\n.note-editor pre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 20px;\n word-break: break-all;\n word-wrap: break-word;\n white-space: pre;\n white-space: pre-wrap;\n background-color: #f5f5f5;\n border: 1px solid #ccc;\n border: 1px solid rgba(0, 0, 0, 0.15);\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n}\n.note-editor pre.prettyprint {\n margin-bottom: 20px;\n}\n.note-editor pre code {\n padding: 0;\n color: inherit;\n white-space: pre;\n white-space: pre-wrap;\n background-color: transparent;\n border: 0;\n}\n.note-editor .pre-scrollable {\n max-height: 340px;\n overflow-y: scroll;\n}\n.note-editor form {\n margin: 0 0 20px;\n}\n.note-editor fieldset {\n padding: 0;\n margin: 0;\n border: 0;\n}\n.note-editor legend {\n display: block;\n width: 100%;\n padding: 0;\n margin-bottom: 20px;\n font-size: 21px;\n line-height: 40px;\n color: #333333;\n border: 0;\n border-bottom: 1px solid #e5e5e5;\n}\n.note-editor legend small {\n font-size: 15px;\n color: #999999;\n}\n.note-editor label,\n.note-editor input,\n.note-editor button,\n.note-editor select,\n.note-editor textarea {\n font-size: 14px;\n font-weight: normal;\n line-height: 20px;\n}\n.note-editor input,\n.note-editor button,\n.note-editor select,\n.note-editor textarea {\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n}\n.note-editor label {\n display: block;\n margin-bottom: 5px;\n}\n.note-editor select,\n.note-editor textarea,\n.note-editor input[type=\"text\"],\n.note-editor input[type=\"password\"],\n.note-editor input[type=\"datetime\"],\n.note-editor input[type=\"datetime-local\"],\n.note-editor input[type=\"date\"],\n.note-editor input[type=\"month\"],\n.note-editor input[type=\"time\"],\n.note-editor input[type=\"week\"],\n.note-editor input[type=\"number\"],\n.note-editor input[type=\"email\"],\n.note-editor input[type=\"url\"],\n.note-editor input[type=\"search\"],\n.note-editor input[type=\"tel\"],\n.note-editor input[type=\"color\"],\n.note-editor .uneditable-input {\n display: inline-block;\n height: 20px;\n padding: 4px 6px;\n margin-bottom: 10px;\n font-size: 14px;\n line-height: 20px;\n color: #555555;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n vertical-align: middle;\n}\n.note-editor input,\n.note-editor textarea,\n.note-editor .uneditable-input {\n width: 206px;\n}\n.note-editor textarea {\n height: auto;\n}\n.note-editor textarea,\n.note-editor input[type=\"text\"],\n.note-editor input[type=\"password\"],\n.note-editor input[type=\"datetime\"],\n.note-editor input[type=\"datetime-local\"],\n.note-editor input[type=\"date\"],\n.note-editor input[type=\"month\"],\n.note-editor input[type=\"time\"],\n.note-editor input[type=\"week\"],\n.note-editor input[type=\"number\"],\n.note-editor input[type=\"email\"],\n.note-editor input[type=\"url\"],\n.note-editor input[type=\"search\"],\n.note-editor input[type=\"tel\"],\n.note-editor input[type=\"color\"],\n.note-editor .uneditable-input {\n background-color: #ffffff;\n border: 1px solid #cccccc;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n -webkit-transition: border linear .2s, box-shadow linear .2s;\n -moz-transition: border linear .2s, box-shadow linear .2s;\n -o-transition: border linear .2s, box-shadow linear .2s;\n transition: border linear .2s, box-shadow linear .2s;\n}\n.note-editor textarea:focus,\n.note-editor input[type=\"text\"]:focus,\n.note-editor input[type=\"password\"]:focus,\n.note-editor input[type=\"datetime\"]:focus,\n.note-editor input[type=\"datetime-local\"]:focus,\n.note-editor input[type=\"date\"]:focus,\n.note-editor input[type=\"month\"]:focus,\n.note-editor input[type=\"time\"]:focus,\n.note-editor input[type=\"week\"]:focus,\n.note-editor input[type=\"number\"]:focus,\n.note-editor input[type=\"email\"]:focus,\n.note-editor input[type=\"url\"]:focus,\n.note-editor input[type=\"search\"]:focus,\n.note-editor input[type=\"tel\"]:focus,\n.note-editor input[type=\"color\"]:focus,\n.note-editor .uneditable-input:focus {\n border-color: rgba(82, 168, 236, 0.8);\n outline: 0;\n outline: thin dotted \\9;\n /* IE6-9 */\n\n -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);\n -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);\n box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);\n}\n.note-editor input[type=\"radio\"],\n.note-editor input[type=\"checkbox\"] {\n margin: 4px 0 0;\n *margin-top: 0;\n /* IE7 */\n\n margin-top: 1px \\9;\n /* IE8-9 */\n\n line-height: normal;\n}\n.note-editor input[type=\"file\"],\n.note-editor input[type=\"image\"],\n.note-editor input[type=\"submit\"],\n.note-editor input[type=\"reset\"],\n.note-editor input[type=\"button\"],\n.note-editor input[type=\"radio\"],\n.note-editor input[type=\"checkbox\"] {\n width: auto;\n}\n.note-editor select,\n.note-editor input[type=\"file\"] {\n height: 30px;\n /* In IE7, the height of the select element cannot be changed by height, only font-size */\n\n *margin-top: 4px;\n /* For IE7, add top margin to align select with labels */\n\n line-height: 30px;\n}\n.note-editor select {\n width: 220px;\n border: 1px solid #cccccc;\n background-color: #ffffff;\n}\n.note-editor select[multiple],\n.note-editor select[size] {\n height: auto;\n}\n.note-editor select:focus,\n.note-editor input[type=\"file\"]:focus,\n.note-editor input[type=\"radio\"]:focus,\n.note-editor input[type=\"checkbox\"]:focus {\n outline: thin dotted #333;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\n.note-editor .uneditable-input,\n.note-editor .uneditable-textarea {\n color: #999999;\n background-color: #fcfcfc;\n border-color: #cccccc;\n -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);\n -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);\n cursor: not-allowed;\n}\n.note-editor .uneditable-input {\n overflow: hidden;\n white-space: nowrap;\n}\n.note-editor .uneditable-textarea {\n width: auto;\n height: auto;\n}\n.note-editor input:-moz-placeholder,\n.note-editor textarea:-moz-placeholder {\n color: #999999;\n}\n.note-editor input:-ms-input-placeholder,\n.note-editor textarea:-ms-input-placeholder {\n color: #999999;\n}\n.note-editor input::-webkit-input-placeholder,\n.note-editor textarea::-webkit-input-placeholder {\n color: #999999;\n}\n.note-editor .radio,\n.note-editor .checkbox {\n min-height: 20px;\n padding-left: 20px;\n}\n.note-editor .radio input[type=\"radio\"],\n.note-editor .checkbox input[type=\"checkbox\"] {\n float: left;\n margin-left: -20px;\n}\n.note-editor .controls > .radio:first-child,\n.note-editor .controls > .checkbox:first-child {\n padding-top: 5px;\n}\n.note-editor .radio.inline,\n.note-editor .checkbox.inline {\n display: inline-block;\n padding-top: 5px;\n margin-bottom: 0;\n vertical-align: middle;\n}\n.note-editor .radio.inline + .radio.inline,\n.note-editor .checkbox.inline + .checkbox.inline {\n margin-left: 10px;\n}\n.note-editor .input-mini {\n width: 60px;\n}\n.note-editor .input-small {\n width: 90px;\n}\n.note-editor .input-medium {\n width: 150px;\n}\n.note-editor .input-large {\n width: 210px;\n}\n.note-editor .input-xlarge {\n width: 270px;\n}\n.note-editor .input-xxlarge {\n width: 530px;\n}\n.note-editor input[class*=\"span\"],\n.note-editor select[class*=\"span\"],\n.note-editor textarea[class*=\"span\"],\n.note-editor .uneditable-input[class*=\"span\"],\n.note-editor .row-fluid input[class*=\"span\"],\n.note-editor .row-fluid select[class*=\"span\"],\n.note-editor .row-fluid textarea[class*=\"span\"],\n.note-editor .row-fluid .uneditable-input[class*=\"span\"] {\n float: none;\n margin-left: 0;\n}\n.note-editor .input-append input[class*=\"span\"],\n.note-editor .input-append .uneditable-input[class*=\"span\"],\n.note-editor .input-prepend input[class*=\"span\"],\n.note-editor .input-prepend .uneditable-input[class*=\"span\"],\n.note-editor .row-fluid input[class*=\"span\"],\n.note-editor .row-fluid select[class*=\"span\"],\n.note-editor .row-fluid textarea[class*=\"span\"],\n.note-editor .row-fluid .uneditable-input[class*=\"span\"],\n.note-editor .row-fluid .input-prepend [class*=\"span\"],\n.note-editor .row-fluid .input-append [class*=\"span\"] {\n display: inline-block;\n}\n.note-editor input,\n.note-editor textarea,\n.note-editor .uneditable-input {\n margin-left: 0;\n}\n.note-editor .controls-row [class*=\"span\"] + [class*=\"span\"] {\n margin-left: 20px;\n}\n.note-editor input.span12,\n.note-editor textarea.span12,\n.note-editor .uneditable-input.span12 {\n width: 926px;\n}\n.note-editor input.span11,\n.note-editor textarea.span11,\n.note-editor .uneditable-input.span11 {\n width: 846px;\n}\n.note-editor input.span10,\n.note-editor textarea.span10,\n.note-editor .uneditable-input.span10 {\n width: 766px;\n}\n.note-editor input.span9,\n.note-editor textarea.span9,\n.note-editor .uneditable-input.span9 {\n width: 686px;\n}\n.note-editor input.span8,\n.note-editor textarea.span8,\n.note-editor .uneditable-input.span8 {\n width: 606px;\n}\n.note-editor input.span7,\n.note-editor textarea.span7,\n.note-editor .uneditable-input.span7 {\n width: 526px;\n}\n.note-editor input.span6,\n.note-editor textarea.span6,\n.note-editor .uneditable-input.span6 {\n width: 446px;\n}\n.note-editor input.span5,\n.note-editor textarea.span5,\n.note-editor .uneditable-input.span5 {\n width: 366px;\n}\n.note-editor input.span4,\n.note-editor textarea.span4,\n.note-editor .uneditable-input.span4 {\n width: 286px;\n}\n.note-editor input.span3,\n.note-editor textarea.span3,\n.note-editor .uneditable-input.span3 {\n width: 206px;\n}\n.note-editor input.span2,\n.note-editor textarea.span2,\n.note-editor .uneditable-input.span2 {\n width: 126px;\n}\n.note-editor input.span1,\n.note-editor textarea.span1,\n.note-editor .uneditable-input.span1 {\n width: 46px;\n}\n.note-editor .controls-row {\n *zoom: 1;\n}\n.note-editor .controls-row:before,\n.note-editor .controls-row:after {\n display: table;\n content: \"\";\n line-height: 0;\n}\n.note-editor .controls-row:after {\n clear: both;\n}\n.note-editor .controls-row [class*=\"span\"],\n.note-editor .row-fluid .controls-row [class*=\"span\"] {\n float: left;\n}\n.note-editor .controls-row .checkbox[class*=\"span\"],\n.note-editor .controls-row .radio[class*=\"span\"] {\n padding-top: 5px;\n}\n.note-editor input[disabled],\n.note-editor select[disabled],\n.note-editor textarea[disabled],\n.note-editor input[readonly],\n.note-editor select[readonly],\n.note-editor textarea[readonly] {\n cursor: not-allowed;\n background-color: #eeeeee;\n}\n.note-editor input[type=\"radio\"][disabled],\n.note-editor input[type=\"checkbox\"][disabled],\n.note-editor input[type=\"radio\"][readonly],\n.note-editor input[type=\"checkbox\"][readonly] {\n background-color: transparent;\n}\n.note-editor .control-group.warning .control-label,\n.note-editor .control-group.warning .help-block,\n.note-editor .control-group.warning .help-inline {\n color: #c09853;\n}\n.note-editor .control-group.warning .checkbox,\n.note-editor .control-group.warning .radio,\n.note-editor .control-group.warning input,\n.note-editor .control-group.warning select,\n.note-editor .control-group.warning textarea {\n color: #c09853;\n}\n.note-editor .control-group.warning input,\n.note-editor .control-group.warning select,\n.note-editor .control-group.warning textarea {\n border-color: #c09853;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.note-editor .control-group.warning input:focus,\n.note-editor .control-group.warning select:focus,\n.note-editor .control-group.warning textarea:focus {\n border-color: #a47e3c;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e;\n -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e;\n}\n.note-editor .control-group.warning .input-prepend .add-on,\n.note-editor .control-group.warning .input-append .add-on {\n color: #c09853;\n background-color: #fcf8e3;\n border-color: #c09853;\n}\n.note-editor .control-group.error .control-label,\n.note-editor .control-group.error .help-block,\n.note-editor .control-group.error .help-inline {\n color: #b94a48;\n}\n.note-editor .control-group.error .checkbox,\n.note-editor .control-group.error .radio,\n.note-editor .control-group.error input,\n.note-editor .control-group.error select,\n.note-editor .control-group.error textarea {\n color: #b94a48;\n}\n.note-editor .control-group.error input,\n.note-editor .control-group.error select,\n.note-editor .control-group.error textarea {\n border-color: #b94a48;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.note-editor .control-group.error input:focus,\n.note-editor .control-group.error select:focus,\n.note-editor .control-group.error textarea:focus {\n border-color: #953b39;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;\n -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;\n}\n.note-editor .control-group.error .input-prepend .add-on,\n.note-editor .control-group.error .input-append .add-on {\n color: #b94a48;\n background-color: #f2dede;\n border-color: #b94a48;\n}\n.note-editor .control-group.success .control-label,\n.note-editor .control-group.success .help-block,\n.note-editor .control-group.success .help-inline {\n color: #468847;\n}\n.note-editor .control-group.success .checkbox,\n.note-editor .control-group.success .radio,\n.note-editor .control-group.success input,\n.note-editor .control-group.success select,\n.note-editor .control-group.success textarea {\n color: #468847;\n}\n.note-editor .control-group.success input,\n.note-editor .control-group.success select,\n.note-editor .control-group.success textarea {\n border-color: #468847;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.note-editor .control-group.success input:focus,\n.note-editor .control-group.success select:focus,\n.note-editor .control-group.success textarea:focus {\n border-color: #356635;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b;\n -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b;\n}\n.note-editor .control-group.success .input-prepend .add-on,\n.note-editor .control-group.success .input-append .add-on {\n color: #468847;\n background-color: #dff0d8;\n border-color: #468847;\n}\n.note-editor .control-group.info .control-label,\n.note-editor .control-group.info .help-block,\n.note-editor .control-group.info .help-inline {\n color: #3a87ad;\n}\n.note-editor .control-group.info .checkbox,\n.note-editor .control-group.info .radio,\n.note-editor .control-group.info input,\n.note-editor .control-group.info select,\n.note-editor .control-group.info textarea {\n color: #3a87ad;\n}\n.note-editor .control-group.info input,\n.note-editor .control-group.info select,\n.note-editor .control-group.info textarea {\n border-color: #3a87ad;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n}\n.note-editor .control-group.info input:focus,\n.note-editor .control-group.info select:focus,\n.note-editor .control-group.info textarea:focus {\n border-color: #2d6987;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3;\n -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3;\n}\n.note-editor .control-group.info .input-prepend .add-on,\n.note-editor .control-group.info .input-append .add-on {\n color: #3a87ad;\n background-color: #d9edf7;\n border-color: #3a87ad;\n}\n.note-editor input:focus:invalid,\n.note-editor textarea:focus:invalid,\n.note-editor select:focus:invalid {\n color: #b94a48;\n border-color: #ee5f5b;\n}\n.note-editor input:focus:invalid:focus,\n.note-editor textarea:focus:invalid:focus,\n.note-editor select:focus:invalid:focus {\n border-color: #e9322d;\n -webkit-box-shadow: 0 0 6px #f8b9b7;\n -moz-box-shadow: 0 0 6px #f8b9b7;\n box-shadow: 0 0 6px #f8b9b7;\n}\n.note-editor .form-actions {\n padding: 19px 20px 20px;\n margin-top: 20px;\n margin-bottom: 20px;\n background-color: #f5f5f5;\n border-top: 1px solid #e5e5e5;\n *zoom: 1;\n}\n.note-editor .form-actions:before,\n.note-editor .form-actions:after {\n display: table;\n content: \"\";\n line-height: 0;\n}\n.note-editor .form-actions:after {\n clear: both;\n}\n.note-editor .help-block,\n.note-editor .help-inline {\n color: #595959;\n}\n.note-editor .help-block {\n display: block;\n margin-bottom: 10px;\n}\n.note-editor .help-inline {\n display: inline-block;\n *display: inline;\n /* IE7 inline-block hack */\n\n *zoom: 1;\n vertical-align: middle;\n padding-left: 5px;\n}\n.note-editor .input-append,\n.note-editor .input-prepend {\n display: inline-block;\n margin-bottom: 10px;\n vertical-align: middle;\n font-size: 0;\n white-space: nowrap;\n}\n.note-editor .input-append input,\n.note-editor .input-prepend input,\n.note-editor .input-append select,\n.note-editor .input-prepend select,\n.note-editor .input-append .uneditable-input,\n.note-editor .input-prepend .uneditable-input,\n.note-editor .input-append .dropdown-menu,\n.note-editor .input-prepend .dropdown-menu,\n.note-editor .input-append .popover,\n.note-editor .input-prepend .popover {\n font-size: 14px;\n}\n.note-editor .input-append input,\n.note-editor .input-prepend input,\n.note-editor .input-append select,\n.note-editor .input-prepend select,\n.note-editor .input-append .uneditable-input,\n.note-editor .input-prepend .uneditable-input {\n position: relative;\n margin-bottom: 0;\n *margin-left: 0;\n vertical-align: top;\n -webkit-border-radius: 0 4px 4px 0;\n -moz-border-radius: 0 4px 4px 0;\n border-radius: 0 4px 4px 0;\n}\n.note-editor .input-append input:focus,\n.note-editor .input-prepend input:focus,\n.note-editor .input-append select:focus,\n.note-editor .input-prepend select:focus,\n.note-editor .input-append .uneditable-input:focus,\n.note-editor .input-prepend .uneditable-input:focus {\n z-index: 2;\n}\n.note-editor .input-append .add-on,\n.note-editor .input-prepend .add-on {\n display: inline-block;\n width: auto;\n height: 20px;\n min-width: 16px;\n padding: 4px 5px;\n font-size: 14px;\n font-weight: normal;\n line-height: 20px;\n text-align: center;\n text-shadow: 0 1px 0 #ffffff;\n background-color: #eeeeee;\n border: 1px solid #ccc;\n}\n.note-editor .input-append .add-on,\n.note-editor .input-prepend .add-on,\n.note-editor .input-append .btn,\n.note-editor .input-prepend .btn,\n.note-editor .input-append .btn-group > .dropdown-toggle,\n.note-editor .input-prepend .btn-group > .dropdown-toggle {\n vertical-align: top;\n -webkit-border-radius: 0;\n -moz-border-radius: 0;\n border-radius: 0;\n}\n.note-editor .input-append .active,\n.note-editor .input-prepend .active {\n background-color: #a9dba9;\n border-color: #46a546;\n}\n.note-editor .input-prepend .add-on,\n.note-editor .input-prepend .btn {\n margin-right: -1px;\n}\n.note-editor .input-prepend .add-on:first-child,\n.note-editor .input-prepend .btn:first-child {\n -webkit-border-radius: 4px 0 0 4px;\n -moz-border-radius: 4px 0 0 4px;\n border-radius: 4px 0 0 4px;\n}\n.note-editor .input-append input,\n.note-editor .input-append select,\n.note-editor .input-append .uneditable-input {\n -webkit-border-radius: 4px 0 0 4px;\n -moz-border-radius: 4px 0 0 4px;\n border-radius: 4px 0 0 4px;\n}\n.note-editor .input-append input + .btn-group .btn:last-child,\n.note-editor .input-append select + .btn-group .btn:last-child,\n.note-editor .input-append .uneditable-input + .btn-group .btn:last-child {\n -webkit-border-radius: 0 4px 4px 0;\n -moz-border-radius: 0 4px 4px 0;\n border-radius: 0 4px 4px 0;\n}\n.note-editor .input-append .add-on,\n.note-editor .input-append .btn,\n.note-editor .input-append .btn-group {\n margin-left: -1px;\n}\n.note-editor .input-append .add-on:last-child,\n.note-editor .input-append .btn:last-child,\n.note-editor .input-append .btn-group:last-child > .dropdown-toggle {\n -webkit-border-radius: 0 4px 4px 0;\n -moz-border-radius: 0 4px 4px 0;\n border-radius: 0 4px 4px 0;\n}\n.note-editor .input-prepend.input-append input,\n.note-editor .input-prepend.input-append select,\n.note-editor .input-prepend.input-append .uneditable-input {\n -webkit-border-radius: 0;\n -moz-border-radius: 0;\n border-radius: 0;\n}\n.note-editor .input-prepend.input-append input + .btn-group .btn,\n.note-editor .input-prepend.input-append select + .btn-group .btn,\n.note-editor .input-prepend.input-append .uneditable-input + .btn-group .btn {\n -webkit-border-radius: 0 4px 4px 0;\n -moz-border-radius: 0 4px 4px 0;\n border-radius: 0 4px 4px 0;\n}\n.note-editor .input-prepend.input-append .add-on:first-child,\n.note-editor .input-prepend.input-append .btn:first-child {\n margin-right: -1px;\n -webkit-border-radius: 4px 0 0 4px;\n -moz-border-radius: 4px 0 0 4px;\n border-radius: 4px 0 0 4px;\n}\n.note-editor .input-prepend.input-append .add-on:last-child,\n.note-editor .input-prepend.input-append .btn:last-child {\n margin-left: -1px;\n -webkit-border-radius: 0 4px 4px 0;\n -moz-border-radius: 0 4px 4px 0;\n border-radius: 0 4px 4px 0;\n}\n.note-editor .input-prepend.input-append .btn-group:first-child {\n margin-left: 0;\n}\n.note-editor input.search-query {\n padding-right: 14px;\n padding-right: 4px \\9;\n padding-left: 14px;\n padding-left: 4px \\9;\n /* IE7-8 doesn't have border-radius, so don't indent the padding */\n\n margin-bottom: 0;\n -webkit-border-radius: 15px;\n -moz-border-radius: 15px;\n border-radius: 15px;\n}\n.note-editor .form-search .input-append .search-query,\n.note-editor .form-search .input-prepend .search-query {\n -webkit-border-radius: 0;\n -moz-border-radius: 0;\n border-radius: 0;\n}\n.note-editor .form-search .input-append .search-query {\n -webkit-border-radius: 14px 0 0 14px;\n -moz-border-radius: 14px 0 0 14px;\n border-radius: 14px 0 0 14px;\n}\n.note-editor .form-search .input-append .btn {\n -webkit-border-radius: 0 14px 14px 0;\n -moz-border-radius: 0 14px 14px 0;\n border-radius: 0 14px 14px 0;\n}\n.note-editor .form-search .input-prepend .search-query {\n -webkit-border-radius: 0 14px 14px 0;\n -moz-border-radius: 0 14px 14px 0;\n border-radius: 0 14px 14px 0;\n}\n.note-editor .form-search .input-prepend .btn {\n -webkit-border-radius: 14px 0 0 14px;\n -moz-border-radius: 14px 0 0 14px;\n border-radius: 14px 0 0 14px;\n}\n.note-editor .form-search input,\n.note-editor .form-inline input,\n.note-editor .form-horizontal input,\n.note-editor .form-search textarea,\n.note-editor .form-inline textarea,\n.note-editor .form-horizontal textarea,\n.note-editor .form-search select,\n.note-editor .form-inline select,\n.note-editor .form-horizontal select,\n.note-editor .form-search .help-inline,\n.note-editor .form-inline .help-inline,\n.note-editor .form-horizontal .help-inline,\n.note-editor .form-search .uneditable-input,\n.note-editor .form-inline .uneditable-input,\n.note-editor .form-horizontal .uneditable-input,\n.note-editor .form-search .input-prepend,\n.note-editor .form-inline .input-prepend,\n.note-editor .form-horizontal .input-prepend,\n.note-editor .form-search .input-append,\n.note-editor .form-inline .input-append,\n.note-editor .form-horizontal .input-append {\n display: inline-block;\n *display: inline;\n /* IE7 inline-block hack */\n\n *zoom: 1;\n margin-bottom: 0;\n vertical-align: middle;\n}\n.note-editor .form-search .hide,\n.note-editor .form-inline .hide,\n.note-editor .form-horizontal .hide {\n display: none;\n}\n.note-editor .form-search label,\n.note-editor .form-inline label,\n.note-editor .form-search .btn-group,\n.note-editor .form-inline .btn-group {\n display: inline-block;\n}\n.note-editor .form-search .input-append,\n.note-editor .form-inline .input-append,\n.note-editor .form-search .input-prepend,\n.note-editor .form-inline .input-prepend {\n margin-bottom: 0;\n}\n.note-editor .form-search .radio,\n.note-editor .form-search .checkbox,\n.note-editor .form-inline .radio,\n.note-editor .form-inline .checkbox {\n padding-left: 0;\n margin-bottom: 0;\n vertical-align: middle;\n}\n.note-editor .form-search .radio input[type=\"radio\"],\n.note-editor .form-search .checkbox input[type=\"checkbox\"],\n.note-editor .form-inline .radio input[type=\"radio\"],\n.note-editor .form-inline .checkbox input[type=\"checkbox\"] {\n float: left;\n margin-right: 3px;\n margin-left: 0;\n}\n.note-editor .control-group {\n margin-bottom: 10px;\n}\n.note-editor legend + .control-group {\n margin-top: 20px;\n -webkit-margin-top-collapse: separate;\n}\n.note-editor .form-horizontal .control-group {\n margin-bottom: 20px;\n *zoom: 1;\n}\n.note-editor .form-horizontal .control-group:before,\n.note-editor .form-horizontal .control-group:after {\n display: table;\n content: \"\";\n line-height: 0;\n}\n.note-editor .form-horizontal .control-group:after {\n clear: both;\n}\n.note-editor .form-horizontal .control-label {\n float: left;\n width: 160px;\n padding-top: 5px;\n text-align: right;\n}\n.note-editor .form-horizontal .controls {\n *display: inline-block;\n *padding-left: 20px;\n margin-left: 180px;\n *margin-left: 0;\n}\n.note-editor .form-horizontal .controls:first-child {\n *padding-left: 180px;\n}\n.note-editor .form-horizontal .help-block {\n margin-bottom: 0;\n}\n.note-editor .form-horizontal input + .help-block,\n.note-editor .form-horizontal select + .help-block,\n.note-editor .form-horizontal textarea + .help-block,\n.note-editor .form-horizontal .uneditable-input + .help-block,\n.note-editor .form-horizontal .input-prepend + .help-block,\n.note-editor .form-horizontal .input-append + .help-block {\n margin-top: 10px;\n}\n.note-editor .form-horizontal .form-actions {\n padding-left: 180px;\n}\n.note-editor table {\n max-width: 100%;\n background-color: transparent;\n border-collapse: collapse;\n border-spacing: 0;\n}\n.note-editor .table {\n width: 100%;\n margin-bottom: 20px;\n}\n.note-editor .table th,\n.note-editor .table td {\n padding: 8px;\n line-height: 20px;\n text-align: left;\n vertical-align: top;\n border-top: 1px solid #dddddd;\n}\n.note-editor .table th {\n font-weight: bold;\n}\n.note-editor .table thead th {\n vertical-align: bottom;\n}\n.note-editor .table caption + thead tr:first-child th,\n.note-editor .table caption + thead tr:first-child td,\n.note-editor .table colgroup + thead tr:first-child th,\n.note-editor .table colgroup + thead tr:first-child td,\n.note-editor .table thead:first-child tr:first-child th,\n.note-editor .table thead:first-child tr:first-child td {\n border-top: 0;\n}\n.note-editor .table tbody + tbody {\n border-top: 2px solid #dddddd;\n}\n.note-editor .table .table {\n background-color: #ffffff;\n}\n.note-editor .table-condensed th,\n.note-editor .table-condensed td {\n padding: 4px 5px;\n}\n.note-editor .table-bordered {\n border: 1px solid #dddddd;\n border-collapse: separate;\n *border-collapse: collapse;\n border-left: 0;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n}\n.note-editor .table-bordered th,\n.note-editor .table-bordered td {\n border-left: 1px solid #dddddd;\n}\n.note-editor .table-bordered caption + thead tr:first-child th,\n.note-editor .table-bordered caption + tbody tr:first-child th,\n.note-editor .table-bordered caption + tbody tr:first-child td,\n.note-editor .table-bordered colgroup + thead tr:first-child th,\n.note-editor .table-bordered colgroup + tbody tr:first-child th,\n.note-editor .table-bordered colgroup + tbody tr:first-child td,\n.note-editor .table-bordered thead:first-child tr:first-child th,\n.note-editor .table-bordered tbody:first-child tr:first-child th,\n.note-editor .table-bordered tbody:first-child tr:first-child td {\n border-top: 0;\n}\n.note-editor .table-bordered thead:first-child tr:first-child > th:first-child,\n.note-editor .table-bordered tbody:first-child tr:first-child > td:first-child,\n.note-editor .table-bordered tbody:first-child tr:first-child > th:first-child {\n -webkit-border-top-left-radius: 4px;\n -moz-border-radius-topleft: 4px;\n border-top-left-radius: 4px;\n}\n.note-editor .table-bordered thead:first-child tr:first-child > th:last-child,\n.note-editor .table-bordered tbody:first-child tr:first-child > td:last-child,\n.note-editor .table-bordered tbody:first-child tr:first-child > th:last-child {\n -webkit-border-top-right-radius: 4px;\n -moz-border-radius-topright: 4px;\n border-top-right-radius: 4px;\n}\n.note-editor .table-bordered thead:last-child tr:last-child > th:first-child,\n.note-editor .table-bordered tbody:last-child tr:last-child > td:first-child,\n.note-editor .table-bordered tbody:last-child tr:last-child > th:first-child,\n.note-editor .table-bordered tfoot:last-child tr:last-child > td:first-child,\n.note-editor .table-bordered tfoot:last-child tr:last-child > th:first-child {\n -webkit-border-bottom-left-radius: 4px;\n -moz-border-radius-bottomleft: 4px;\n border-bottom-left-radius: 4px;\n}\n.note-editor .table-bordered thead:last-child tr:last-child > th:last-child,\n.note-editor .table-bordered tbody:last-child tr:last-child > td:last-child,\n.note-editor .table-bordered tbody:last-child tr:last-child > th:last-child,\n.note-editor .table-bordered tfoot:last-child tr:last-child > td:last-child,\n.note-editor .table-bordered tfoot:last-child tr:last-child > th:last-child {\n -webkit-border-bottom-right-radius: 4px;\n -moz-border-radius-bottomright: 4px;\n border-bottom-right-radius: 4px;\n}\n.note-editor .table-bordered tfoot + tbody:last-child tr:last-child td:first-child {\n -webkit-border-bottom-left-radius: 0;\n -moz-border-radius-bottomleft: 0;\n border-bottom-left-radius: 0;\n}\n.note-editor .table-bordered tfoot + tbody:last-child tr:last-child td:last-child {\n -webkit-border-bottom-right-radius: 0;\n -moz-border-radius-bottomright: 0;\n border-bottom-right-radius: 0;\n}\n.note-editor .table-bordered caption + thead tr:first-child th:first-child,\n.note-editor .table-bordered caption + tbody tr:first-child td:first-child,\n.note-editor .table-bordered colgroup + thead tr:first-child th:first-child,\n.note-editor .table-bordered colgroup + tbody tr:first-child td:first-child {\n -webkit-border-top-left-radius: 4px;\n -moz-border-radius-topleft: 4px;\n border-top-left-radius: 4px;\n}\n.note-editor .table-bordered caption + thead tr:first-child th:last-child,\n.note-editor .table-bordered caption + tbody tr:first-child td:last-child,\n.note-editor .table-bordered colgroup + thead tr:first-child th:last-child,\n.note-editor .table-bordered colgroup + tbody tr:first-child td:last-child {\n -webkit-border-top-right-radius: 4px;\n -moz-border-radius-topright: 4px;\n border-top-right-radius: 4px;\n}\n.note-editor .table-striped tbody > tr:nth-child(odd) > td,\n.note-editor .table-striped tbody > tr:nth-child(odd) > th {\n background-color: #f9f9f9;\n}\n.note-editor .table-hover tbody tr:hover > td,\n.note-editor .table-hover tbody tr:hover > th {\n background-color: #f5f5f5;\n}\n.note-editor table td[class*=\"span\"],\n.note-editor table th[class*=\"span\"],\n.note-editor .row-fluid table td[class*=\"span\"],\n.note-editor .row-fluid table th[class*=\"span\"] {\n display: table-cell;\n float: none;\n margin-left: 0;\n}\n.note-editor .table td.span1,\n.note-editor .table th.span1 {\n float: none;\n width: 44px;\n margin-left: 0;\n}\n.note-editor .table td.span2,\n.note-editor .table th.span2 {\n float: none;\n width: 124px;\n margin-left: 0;\n}\n.note-editor .table td.span3,\n.note-editor .table th.span3 {\n float: none;\n width: 204px;\n margin-left: 0;\n}\n.note-editor .table td.span4,\n.note-editor .table th.span4 {\n float: none;\n width: 284px;\n margin-left: 0;\n}\n.note-editor .table td.span5,\n.note-editor .table th.span5 {\n float: none;\n width: 364px;\n margin-left: 0;\n}\n.note-editor .table td.span6,\n.note-editor .table th.span6 {\n float: none;\n width: 444px;\n margin-left: 0;\n}\n.note-editor .table td.span7,\n.note-editor .table th.span7 {\n float: none;\n width: 524px;\n margin-left: 0;\n}\n.note-editor .table td.span8,\n.note-editor .table th.span8 {\n float: none;\n width: 604px;\n margin-left: 0;\n}\n.note-editor .table td.span9,\n.note-editor .table th.span9 {\n float: none;\n width: 684px;\n margin-left: 0;\n}\n.note-editor .table td.span10,\n.note-editor .table th.span10 {\n float: none;\n width: 764px;\n margin-left: 0;\n}\n.note-editor .table td.span11,\n.note-editor .table th.span11 {\n float: none;\n width: 844px;\n margin-left: 0;\n}\n.note-editor .table td.span12,\n.note-editor .table th.span12 {\n float: none;\n width: 924px;\n margin-left: 0;\n}\n.note-editor .table tbody tr.success > td {\n background-color: #dff0d8;\n}\n.note-editor .table tbody tr.error > td {\n background-color: #f2dede;\n}\n.note-editor .table tbody tr.warning > td {\n background-color: #fcf8e3;\n}\n.note-editor .table tbody tr.info > td {\n background-color: #d9edf7;\n}\n.note-editor .table-hover tbody tr.success:hover > td {\n background-color: #d0e9c6;\n}\n.note-editor .table-hover tbody tr.error:hover > td {\n background-color: #ebcccc;\n}\n.note-editor .table-hover tbody tr.warning:hover > td {\n background-color: #faf2cc;\n}\n.note-editor .table-hover tbody tr.info:hover > td {\n background-color: #c4e3f3;\n}\n.note-editor [class^=\"icon-\"],\n.note-editor [class*=\" icon-\"] {\n display: inline-block;\n width: 14px;\n height: 14px;\n *margin-right: .3em;\n line-height: 14px;\n vertical-align: text-top;\n background-image: url(\"../images/glyphicons-halflings.png\");\n background-position: 14px 14px;\n background-repeat: no-repeat;\n margin-top: 1px;\n}\n.note-editor .icon-white,\n.note-editor .nav-pills > .active > a > [class^=\"icon-\"],\n.note-editor .nav-pills > .active > a > [class*=\" icon-\"],\n.note-editor .nav-list > .active > a > [class^=\"icon-\"],\n.note-editor .nav-list > .active > a > [class*=\" icon-\"],\n.note-editor .navbar-inverse .nav > .active > a > [class^=\"icon-\"],\n.note-editor .navbar-inverse .nav > .active > a > [class*=\" icon-\"],\n.note-editor .dropdown-menu > li > a:hover > [class^=\"icon-\"],\n.note-editor .dropdown-menu > li > a:focus > [class^=\"icon-\"],\n.note-editor .dropdown-menu > li > a:hover > [class*=\" icon-\"],\n.note-editor .dropdown-menu > li > a:focus > [class*=\" icon-\"],\n.note-editor .dropdown-menu > .active > a > [class^=\"icon-\"],\n.note-editor .dropdown-menu > .active > a > [class*=\" icon-\"],\n.note-editor .dropdown-submenu:hover > a > [class^=\"icon-\"],\n.note-editor .dropdown-submenu:focus > a > [class^=\"icon-\"],\n.note-editor .dropdown-submenu:hover > a > [class*=\" icon-\"],\n.note-editor .dropdown-submenu:focus > a > [class*=\" icon-\"] {\n background-image: url(\"../images/glyphicons-halflings-white.png\");\n}\n.note-editor .icon-glass {\n background-position: 0 0;\n}\n.note-editor .icon-music {\n background-position: -24px 0;\n}\n.note-editor .icon-search {\n background-position: -48px 0;\n}\n.note-editor .icon-envelope {\n background-position: -72px 0;\n}\n.note-editor .icon-heart {\n background-position: -96px 0;\n}\n.note-editor .icon-star {\n background-position: -120px 0;\n}\n.note-editor .icon-star-empty {\n background-position: -144px 0;\n}\n.note-editor .icon-user {\n background-position: -168px 0;\n}\n.note-editor .icon-film {\n background-position: -192px 0;\n}\n.note-editor .icon-th-large {\n background-position: -216px 0;\n}\n.note-editor .icon-th {\n background-position: -240px 0;\n}\n.note-editor .icon-th-list {\n background-position: -264px 0;\n}\n.note-editor .icon-ok {\n background-position: -288px 0;\n}\n.note-editor .icon-remove {\n background-position: -312px 0;\n}\n.note-editor .icon-zoom-in {\n background-position: -336px 0;\n}\n.note-editor .icon-zoom-out {\n background-position: -360px 0;\n}\n.note-editor .icon-off {\n background-position: -384px 0;\n}\n.note-editor .icon-signal {\n background-position: -408px 0;\n}\n.note-editor .icon-cog {\n background-position: -432px 0;\n}\n.note-editor .icon-trash {\n background-position: -456px 0;\n}\n.note-editor .icon-home {\n background-position: 0 -24px;\n}\n.note-editor .icon-file {\n background-position: -24px -24px;\n}\n.note-editor .icon-time {\n background-position: -48px -24px;\n}\n.note-editor .icon-road {\n background-position: -72px -24px;\n}\n.note-editor .icon-download-alt {\n background-position: -96px -24px;\n}\n.note-editor .icon-download {\n background-position: -120px -24px;\n}\n.note-editor .icon-upload {\n background-position: -144px -24px;\n}\n.note-editor .icon-inbox {\n background-position: -168px -24px;\n}\n.note-editor .icon-play-circle {\n background-position: -192px -24px;\n}\n.note-editor .icon-repeat {\n background-position: -216px -24px;\n}\n.note-editor .icon-refresh {\n background-position: -240px -24px;\n}\n.note-editor .icon-list-alt {\n background-position: -264px -24px;\n}\n.note-editor .icon-lock {\n background-position: -287px -24px;\n}\n.note-editor .icon-flag {\n background-position: -312px -24px;\n}\n.note-editor .icon-headphones {\n background-position: -336px -24px;\n}\n.note-editor .icon-volume-off {\n background-position: -360px -24px;\n}\n.note-editor .icon-volume-down {\n background-position: -384px -24px;\n}\n.note-editor .icon-volume-up {\n background-position: -408px -24px;\n}\n.note-editor .icon-qrcode {\n background-position: -432px -24px;\n}\n.note-editor .icon-barcode {\n background-position: -456px -24px;\n}\n.note-editor .icon-tag {\n background-position: 0 -48px;\n}\n.note-editor .icon-tags {\n background-position: -25px -48px;\n}\n.note-editor .icon-book {\n background-position: -48px -48px;\n}\n.note-editor .icon-bookmark {\n background-position: -72px -48px;\n}\n.note-editor .icon-print {\n background-position: -96px -48px;\n}\n.note-editor .icon-camera {\n background-position: -120px -48px;\n}\n.note-editor .icon-font {\n background-position: -144px -48px;\n}\n.note-editor .icon-bold {\n background-position: -167px -48px;\n}\n.note-editor .icon-italic {\n background-position: -192px -48px;\n}\n.note-editor .icon-text-height {\n background-position: -216px -48px;\n}\n.note-editor .icon-text-width {\n background-position: -240px -48px;\n}\n.note-editor .icon-align-left {\n background-position: -264px -48px;\n}\n.note-editor .icon-align-center {\n background-position: -288px -48px;\n}\n.note-editor .icon-align-right {\n background-position: -312px -48px;\n}\n.note-editor .icon-align-justify {\n background-position: -336px -48px;\n}\n.note-editor .icon-list {\n background-position: -360px -48px;\n}\n.note-editor .icon-indent-left {\n background-position: -384px -48px;\n}\n.note-editor .icon-indent-right {\n background-position: -408px -48px;\n}\n.note-editor .icon-facetime-video {\n background-position: -432px -48px;\n}\n.note-editor .icon-picture {\n background-position: -456px -48px;\n}\n.note-editor .icon-pencil {\n background-position: 0 -72px;\n}\n.note-editor .icon-map-marker {\n background-position: -24px -72px;\n}\n.note-editor .icon-adjust {\n background-position: -48px -72px;\n}\n.note-editor .icon-tint {\n background-position: -72px -72px;\n}\n.note-editor .icon-edit {\n background-position: -96px -72px;\n}\n.note-editor .icon-share {\n background-position: -120px -72px;\n}\n.note-editor .icon-check {\n background-position: -144px -72px;\n}\n.note-editor .icon-move {\n background-position: -168px -72px;\n}\n.note-editor .icon-step-backward {\n background-position: -192px -72px;\n}\n.note-editor .icon-fast-backward {\n background-position: -216px -72px;\n}\n.note-editor .icon-backward {\n background-position: -240px -72px;\n}\n.note-editor .icon-play {\n background-position: -264px -72px;\n}\n.note-editor .icon-pause {\n background-position: -288px -72px;\n}\n.note-editor .icon-stop {\n background-position: -312px -72px;\n}\n.note-editor .icon-forward {\n background-position: -336px -72px;\n}\n.note-editor .icon-fast-forward {\n background-position: -360px -72px;\n}\n.note-editor .icon-step-forward {\n background-position: -384px -72px;\n}\n.note-editor .icon-eject {\n background-position: -408px -72px;\n}\n.note-editor .icon-chevron-left {\n background-position: -432px -72px;\n}\n.note-editor .icon-chevron-right {\n background-position: -456px -72px;\n}\n.note-editor .icon-plus-sign {\n background-position: 0 -96px;\n}\n.note-editor .icon-minus-sign {\n background-position: -24px -96px;\n}\n.note-editor .icon-remove-sign {\n background-position: -48px -96px;\n}\n.note-editor .icon-ok-sign {\n background-position: -72px -96px;\n}\n.note-editor .icon-question-sign {\n background-position: -96px -96px;\n}\n.note-editor .icon-info-sign {\n background-position: -120px -96px;\n}\n.note-editor .icon-screenshot {\n background-position: -144px -96px;\n}\n.note-editor .icon-remove-circle {\n background-position: -168px -96px;\n}\n.note-editor .icon-ok-circle {\n background-position: -192px -96px;\n}\n.note-editor .icon-ban-circle {\n background-position: -216px -96px;\n}\n.note-editor .icon-arrow-left {\n background-position: -240px -96px;\n}\n.note-editor .icon-arrow-right {\n background-position: -264px -96px;\n}\n.note-editor .icon-arrow-up {\n background-position: -289px -96px;\n}\n.note-editor .icon-arrow-down {\n background-position: -312px -96px;\n}\n.note-editor .icon-share-alt {\n background-position: -336px -96px;\n}\n.note-editor .icon-resize-full {\n background-position: -360px -96px;\n}\n.note-editor .icon-resize-small {\n background-position: -384px -96px;\n}\n.note-editor .icon-plus {\n background-position: -408px -96px;\n}\n.note-editor .icon-minus {\n background-position: -433px -96px;\n}\n.note-editor .icon-asterisk {\n background-position: -456px -96px;\n}\n.note-editor .icon-exclamation-sign {\n background-position: 0 -120px;\n}\n.note-editor .icon-gift {\n background-position: -24px -120px;\n}\n.note-editor .icon-leaf {\n background-position: -48px -120px;\n}\n.note-editor .icon-fire {\n background-position: -72px -120px;\n}\n.note-editor .icon-eye-open {\n background-position: -96px -120px;\n}\n.note-editor .icon-eye-close {\n background-position: -120px -120px;\n}\n.note-editor .icon-warning-sign {\n background-position: -144px -120px;\n}\n.note-editor .icon-plane {\n background-position: -168px -120px;\n}\n.note-editor .icon-calendar {\n background-position: -192px -120px;\n}\n.note-editor .icon-random {\n background-position: -216px -120px;\n width: 16px;\n}\n.note-editor .icon-comment {\n background-position: -240px -120px;\n}\n.note-editor .icon-magnet {\n background-position: -264px -120px;\n}\n.note-editor .icon-chevron-up {\n background-position: -288px -120px;\n}\n.note-editor .icon-chevron-down {\n background-position: -313px -119px;\n}\n.note-editor .icon-retweet {\n background-position: -336px -120px;\n}\n.note-editor .icon-shopping-cart {\n background-position: -360px -120px;\n}\n.note-editor .icon-folder-close {\n background-position: -384px -120px;\n width: 16px;\n}\n.note-editor .icon-folder-open {\n background-position: -408px -120px;\n width: 16px;\n}\n.note-editor .icon-resize-vertical {\n background-position: -432px -119px;\n}\n.note-editor .icon-resize-horizontal {\n background-position: -456px -118px;\n}\n.note-editor .icon-hdd {\n background-position: 0 -144px;\n}\n.note-editor .icon-bullhorn {\n background-position: -24px -144px;\n}\n.note-editor .icon-bell {\n background-position: -48px -144px;\n}\n.note-editor .icon-certificate {\n background-position: -72px -144px;\n}\n.note-editor .icon-thumbs-up {\n background-position: -96px -144px;\n}\n.note-editor .icon-thumbs-down {\n background-position: -120px -144px;\n}\n.note-editor .icon-hand-right {\n background-position: -144px -144px;\n}\n.note-editor .icon-hand-left {\n background-position: -168px -144px;\n}\n.note-editor .icon-hand-up {\n background-position: -192px -144px;\n}\n.note-editor .icon-hand-down {\n background-position: -216px -144px;\n}\n.note-editor .icon-circle-arrow-right {\n background-position: -240px -144px;\n}\n.note-editor .icon-circle-arrow-left {\n background-position: -264px -144px;\n}\n.note-editor .icon-circle-arrow-up {\n background-position: -288px -144px;\n}\n.note-editor .icon-circle-arrow-down {\n background-position: -312px -144px;\n}\n.note-editor .icon-globe {\n background-position: -336px -144px;\n}\n.note-editor .icon-wrench {\n background-position: -360px -144px;\n}\n.note-editor .icon-tasks {\n background-position: -384px -144px;\n}\n.note-editor .icon-filter {\n background-position: -408px -144px;\n}\n.note-editor .icon-briefcase {\n background-position: -432px -144px;\n}\n.note-editor .icon-fullscreen {\n background-position: -456px -144px;\n}\n.note-editor .dropup,\n.note-editor .dropdown {\n position: relative;\n}\n.note-editor .dropdown-toggle {\n *margin-bottom: -3px;\n}\n.note-editor .dropdown-toggle:active,\n.note-editor .open .dropdown-toggle {\n outline: 0;\n}\n.note-editor .caret {\n display: inline-block;\n width: 0;\n height: 0;\n vertical-align: top;\n border-top: 4px solid #000000;\n border-right: 4px solid transparent;\n border-left: 4px solid transparent;\n content: \"\";\n}\n.note-editor .dropdown .caret {\n margin-top: 8px;\n margin-left: 2px;\n}\n.note-editor .dropdown-menu {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1000;\n display: none;\n float: left;\n min-width: 160px;\n padding: 5px 0;\n margin: 2px 0 0;\n list-style: none;\n background-color: #ffffff;\n border: 1px solid #ccc;\n border: 1px solid rgba(0, 0, 0, 0.2);\n *border-right-width: 2px;\n *border-bottom-width: 2px;\n -webkit-border-radius: 6px;\n -moz-border-radius: 6px;\n border-radius: 6px;\n -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n -webkit-background-clip: padding-box;\n -moz-background-clip: padding;\n background-clip: padding-box;\n}\n.note-editor .dropdown-menu.pull-right {\n right: 0;\n left: auto;\n}\n.note-editor .dropdown-menu .divider {\n *width: 100%;\n height: 1px;\n margin: 9px 1px;\n *margin: -5px 0 5px;\n overflow: hidden;\n background-color: #e5e5e5;\n border-bottom: 1px solid #ffffff;\n}\n.note-editor .dropdown-menu > li > a {\n display: block;\n padding: 3px 20px;\n clear: both;\n font-weight: normal;\n line-height: 20px;\n color: #333333;\n white-space: nowrap;\n}\n.note-editor .dropdown-menu > li > a:hover,\n.note-editor .dropdown-menu > li > a:focus,\n.note-editor .dropdown-submenu:hover > a,\n.note-editor .dropdown-submenu:focus > a {\n text-decoration: none;\n color: #ffffff;\n background-color: #0081c2;\n background-image: -moz-linear-gradient(top, #0088cc, #0077b3);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));\n background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);\n background-image: -o-linear-gradient(top, #0088cc, #0077b3);\n background-image: linear-gradient(to bottom, #0088cc, #0077b3);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);\n}\n.note-editor .dropdown-menu > .active > a,\n.note-editor .dropdown-menu > .active > a:hover,\n.note-editor .dropdown-menu > .active > a:focus {\n color: #ffffff;\n text-decoration: none;\n outline: 0;\n background-color: #0081c2;\n background-image: -moz-linear-gradient(top, #0088cc, #0077b3);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));\n background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);\n background-image: -o-linear-gradient(top, #0088cc, #0077b3);\n background-image: linear-gradient(to bottom, #0088cc, #0077b3);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);\n}\n.note-editor .dropdown-menu > .disabled > a,\n.note-editor .dropdown-menu > .disabled > a:hover,\n.note-editor .dropdown-menu > .disabled > a:focus {\n color: #999999;\n}\n.note-editor .dropdown-menu > .disabled > a:hover,\n.note-editor .dropdown-menu > .disabled > a:focus {\n text-decoration: none;\n background-color: transparent;\n background-image: none;\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n cursor: default;\n}\n.note-editor .open {\n *z-index: 1000;\n}\n.note-editor .open > .dropdown-menu {\n display: block;\n}\n.note-editor .dropdown-backdrop {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n z-index: 990;\n}\n.note-editor .pull-right > .dropdown-menu {\n right: 0;\n left: auto;\n}\n.note-editor .dropup .caret,\n.note-editor .navbar-fixed-bottom .dropdown .caret {\n border-top: 0;\n border-bottom: 4px solid #000000;\n content: \"\";\n}\n.note-editor .dropup .dropdown-menu,\n.note-editor .navbar-fixed-bottom .dropdown .dropdown-menu {\n top: auto;\n bottom: 100%;\n margin-bottom: 1px;\n}\n.note-editor .dropdown-submenu {\n position: relative;\n}\n.note-editor .dropdown-submenu > .dropdown-menu {\n top: 0;\n left: 100%;\n margin-top: -6px;\n margin-left: -1px;\n -webkit-border-radius: 0 6px 6px 6px;\n -moz-border-radius: 0 6px 6px 6px;\n border-radius: 0 6px 6px 6px;\n}\n.note-editor .dropdown-submenu:hover > .dropdown-menu {\n display: block;\n}\n.note-editor .dropup .dropdown-submenu > .dropdown-menu {\n top: auto;\n bottom: 0;\n margin-top: 0;\n margin-bottom: -2px;\n -webkit-border-radius: 5px 5px 5px 0;\n -moz-border-radius: 5px 5px 5px 0;\n border-radius: 5px 5px 5px 0;\n}\n.note-editor .dropdown-submenu > a:after {\n display: block;\n content: \" \";\n float: right;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px 0 5px 5px;\n border-left-color: #cccccc;\n margin-top: 5px;\n margin-right: -10px;\n}\n.note-editor .dropdown-submenu:hover > a:after {\n border-left-color: #ffffff;\n}\n.note-editor .dropdown-submenu.pull-left {\n float: none;\n}\n.note-editor .dropdown-submenu.pull-left > .dropdown-menu {\n left: -100%;\n margin-left: 10px;\n -webkit-border-radius: 6px 0 6px 6px;\n -moz-border-radius: 6px 0 6px 6px;\n border-radius: 6px 0 6px 6px;\n}\n.note-editor .dropdown .dropdown-menu .nav-header {\n padding-left: 20px;\n padding-right: 20px;\n}\n.note-editor .typeahead {\n z-index: 1051;\n margin-top: 2px;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n}\n.note-editor .well {\n min-height: 20px;\n padding: 19px;\n margin-bottom: 20px;\n background-color: #f5f5f5;\n border: 1px solid #e3e3e3;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n}\n.note-editor .well blockquote {\n border-color: #ddd;\n border-color: rgba(0, 0, 0, 0.15);\n}\n.note-editor .well-large {\n padding: 24px;\n -webkit-border-radius: 6px;\n -moz-border-radius: 6px;\n border-radius: 6px;\n}\n.note-editor .well-small {\n padding: 9px;\n -webkit-border-radius: 3px;\n -moz-border-radius: 3px;\n border-radius: 3px;\n}\n.note-editor .fade {\n opacity: 0;\n -webkit-transition: opacity 0.15s linear;\n -moz-transition: opacity 0.15s linear;\n -o-transition: opacity 0.15s linear;\n transition: opacity 0.15s linear;\n}\n.note-editor .fade.in {\n opacity: 1;\n}\n.note-editor .collapse {\n position: relative;\n height: 0;\n overflow: hidden;\n -webkit-transition: height 0.35s ease;\n -moz-transition: height 0.35s ease;\n -o-transition: height 0.35s ease;\n transition: height 0.35s ease;\n}\n.note-editor .collapse.in {\n height: auto;\n}\n.note-editor .close {\n float: right;\n font-size: 20px;\n font-weight: bold;\n line-height: 20px;\n color: #000000;\n text-shadow: 0 1px 0 #ffffff;\n opacity: 0.2;\n filter: alpha(opacity=20);\n}\n.note-editor .close:hover,\n.note-editor .close:focus {\n color: #000000;\n text-decoration: none;\n cursor: pointer;\n opacity: 0.4;\n filter: alpha(opacity=40);\n}\n.note-editor button.close {\n padding: 0;\n cursor: pointer;\n background: transparent;\n border: 0;\n -webkit-appearance: none;\n}\n.note-editor .btn {\n display: inline-block;\n *display: inline;\n /* IE7 inline-block hack */\n\n *zoom: 1;\n padding: 4px 12px;\n margin-bottom: 0;\n font-size: 14px;\n line-height: 20px;\n text-align: center;\n vertical-align: middle;\n cursor: pointer;\n color: #333333;\n text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);\n background-color: #f5f5f5;\n background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));\n background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);\n background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);\n background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);\n border-color: #e6e6e6 #e6e6e6 #bfbfbf;\n border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n *background-color: #e6e6e6;\n /* Darken IE7 buttons by default so they stand out more given they won't have borders */\n\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n border: 1px solid #cccccc;\n *border: 0;\n border-bottom-color: #b3b3b3;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n *margin-left: .3em;\n -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);\n -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);\n box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);\n}\n.note-editor .btn:hover,\n.note-editor .btn:focus,\n.note-editor .btn:active,\n.note-editor .btn.active,\n.note-editor .btn.disabled,\n.note-editor .btn[disabled] {\n color: #333333;\n background-color: #e6e6e6;\n *background-color: #d9d9d9;\n}\n.note-editor .btn:active,\n.note-editor .btn.active {\n background-color: #cccccc \\9;\n}\n.note-editor .btn:first-child {\n *margin-left: 0;\n}\n.note-editor .btn:hover,\n.note-editor .btn:focus {\n color: #333333;\n text-decoration: none;\n background-position: 0 -15px;\n -webkit-transition: background-position 0.1s linear;\n -moz-transition: background-position 0.1s linear;\n -o-transition: background-position 0.1s linear;\n transition: background-position 0.1s linear;\n}\n.note-editor .btn:focus {\n outline: thin dotted #333;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: -2px;\n}\n.note-editor .btn.active,\n.note-editor .btn:active {\n background-image: none;\n outline: 0;\n -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);\n -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);\n box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);\n}\n.note-editor .btn.disabled,\n.note-editor .btn[disabled] {\n cursor: default;\n background-image: none;\n opacity: 0.65;\n filter: alpha(opacity=65);\n -webkit-box-shadow: none;\n -moz-box-shadow: none;\n box-shadow: none;\n}\n.note-editor .btn-large {\n padding: 11px 19px;\n font-size: 17.5px;\n -webkit-border-radius: 6px;\n -moz-border-radius: 6px;\n border-radius: 6px;\n}\n.note-editor .btn-large [class^=\"icon-\"],\n.note-editor .btn-large [class*=\" icon-\"] {\n margin-top: 4px;\n}\n.note-editor .btn-small {\n padding: 2px 10px;\n font-size: 11.9px;\n -webkit-border-radius: 3px;\n -moz-border-radius: 3px;\n border-radius: 3px;\n}\n.note-editor .btn-small [class^=\"icon-\"],\n.note-editor .btn-small [class*=\" icon-\"] {\n margin-top: 0;\n}\n.note-editor .btn-mini [class^=\"icon-\"],\n.note-editor .btn-mini [class*=\" icon-\"] {\n margin-top: -1px;\n}\n.note-editor .btn-mini {\n padding: 0 6px;\n font-size: 10.5px;\n -webkit-border-radius: 3px;\n -moz-border-radius: 3px;\n border-radius: 3px;\n}\n.note-editor .btn-block {\n display: block;\n width: 100%;\n padding-left: 0;\n padding-right: 0;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.note-editor .btn-block + .btn-block {\n margin-top: 5px;\n}\n.note-editor input[type=\"submit\"].btn-block,\n.note-editor input[type=\"reset\"].btn-block,\n.note-editor input[type=\"button\"].btn-block {\n width: 100%;\n}\n.note-editor .btn-primary.active,\n.note-editor .btn-warning.active,\n.note-editor .btn-danger.active,\n.note-editor .btn-success.active,\n.note-editor .btn-info.active,\n.note-editor .btn-inverse.active {\n color: rgba(255, 255, 255, 0.75);\n}\n.note-editor .btn-primary {\n color: #ffffff;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n background-color: #006dcc;\n background-image: -moz-linear-gradient(top, #0088cc, #0044cc);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));\n background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);\n background-image: -o-linear-gradient(top, #0088cc, #0044cc);\n background-image: linear-gradient(to bottom, #0088cc, #0044cc);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0);\n border-color: #0044cc #0044cc #002a80;\n border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n *background-color: #0044cc;\n /* Darken IE7 buttons by default so they stand out more given they won't have borders */\n\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n}\n.note-editor .btn-primary:hover,\n.note-editor .btn-primary:focus,\n.note-editor .btn-primary:active,\n.note-editor .btn-primary.active,\n.note-editor .btn-primary.disabled,\n.note-editor .btn-primary[disabled] {\n color: #ffffff;\n background-color: #0044cc;\n *background-color: #003bb3;\n}\n.note-editor .btn-primary:active,\n.note-editor .btn-primary.active {\n background-color: #003399 \\9;\n}\n.note-editor .btn-warning {\n color: #ffffff;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n background-color: #faa732;\n background-image: -moz-linear-gradient(top, #fbb450, #f89406);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));\n background-image: -webkit-linear-gradient(top, #fbb450, #f89406);\n background-image: -o-linear-gradient(top, #fbb450, #f89406);\n background-image: linear-gradient(to bottom, #fbb450, #f89406);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);\n border-color: #f89406 #f89406 #ad6704;\n border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n *background-color: #f89406;\n /* Darken IE7 buttons by default so they stand out more given they won't have borders */\n\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n}\n.note-editor .btn-warning:hover,\n.note-editor .btn-warning:focus,\n.note-editor .btn-warning:active,\n.note-editor .btn-warning.active,\n.note-editor .btn-warning.disabled,\n.note-editor .btn-warning[disabled] {\n color: #ffffff;\n background-color: #f89406;\n *background-color: #df8505;\n}\n.note-editor .btn-warning:active,\n.note-editor .btn-warning.active {\n background-color: #c67605 \\9;\n}\n.note-editor .btn-danger {\n color: #ffffff;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n background-color: #da4f49;\n background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));\n background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f);\n background-image: -o-linear-gradient(top, #ee5f5b, #bd362f);\n background-image: linear-gradient(to bottom, #ee5f5b, #bd362f);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0);\n border-color: #bd362f #bd362f #802420;\n border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n *background-color: #bd362f;\n /* Darken IE7 buttons by default so they stand out more given they won't have borders */\n\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n}\n.note-editor .btn-danger:hover,\n.note-editor .btn-danger:focus,\n.note-editor .btn-danger:active,\n.note-editor .btn-danger.active,\n.note-editor .btn-danger.disabled,\n.note-editor .btn-danger[disabled] {\n color: #ffffff;\n background-color: #bd362f;\n *background-color: #a9302a;\n}\n.note-editor .btn-danger:active,\n.note-editor .btn-danger.active {\n background-color: #942a25 \\9;\n}\n.note-editor .btn-success {\n color: #ffffff;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n background-color: #5bb75b;\n background-image: -moz-linear-gradient(top, #62c462, #51a351);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));\n background-image: -webkit-linear-gradient(top, #62c462, #51a351);\n background-image: -o-linear-gradient(top, #62c462, #51a351);\n background-image: linear-gradient(to bottom, #62c462, #51a351);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff51a351', GradientType=0);\n border-color: #51a351 #51a351 #387038;\n border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n *background-color: #51a351;\n /* Darken IE7 buttons by default so they stand out more given they won't have borders */\n\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n}\n.note-editor .btn-success:hover,\n.note-editor .btn-success:focus,\n.note-editor .btn-success:active,\n.note-editor .btn-success.active,\n.note-editor .btn-success.disabled,\n.note-editor .btn-success[disabled] {\n color: #ffffff;\n background-color: #51a351;\n *background-color: #499249;\n}\n.note-editor .btn-success:active,\n.note-editor .btn-success.active {\n background-color: #408140 \\9;\n}\n.note-editor .btn-info {\n color: #ffffff;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n background-color: #49afcd;\n background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4));\n background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4);\n background-image: -o-linear-gradient(top, #5bc0de, #2f96b4);\n background-image: linear-gradient(to bottom, #5bc0de, #2f96b4);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2f96b4', GradientType=0);\n border-color: #2f96b4 #2f96b4 #1f6377;\n border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n *background-color: #2f96b4;\n /* Darken IE7 buttons by default so they stand out more given they won't have borders */\n\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n}\n.note-editor .btn-info:hover,\n.note-editor .btn-info:focus,\n.note-editor .btn-info:active,\n.note-editor .btn-info.active,\n.note-editor .btn-info.disabled,\n.note-editor .btn-info[disabled] {\n color: #ffffff;\n background-color: #2f96b4;\n *background-color: #2a85a0;\n}\n.note-editor .btn-info:active,\n.note-editor .btn-info.active {\n background-color: #24748c \\9;\n}\n.note-editor .btn-inverse {\n color: #ffffff;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n background-color: #363636;\n background-image: -moz-linear-gradient(top, #444444, #222222);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222));\n background-image: -webkit-linear-gradient(top, #444444, #222222);\n background-image: -o-linear-gradient(top, #444444, #222222);\n background-image: linear-gradient(to bottom, #444444, #222222);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444', endColorstr='#ff222222', GradientType=0);\n border-color: #222222 #222222 #000000;\n border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n *background-color: #222222;\n /* Darken IE7 buttons by default so they stand out more given they won't have borders */\n\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n}\n.note-editor .btn-inverse:hover,\n.note-editor .btn-inverse:focus,\n.note-editor .btn-inverse:active,\n.note-editor .btn-inverse.active,\n.note-editor .btn-inverse.disabled,\n.note-editor .btn-inverse[disabled] {\n color: #ffffff;\n background-color: #222222;\n *background-color: #151515;\n}\n.note-editor .btn-inverse:active,\n.note-editor .btn-inverse.active {\n background-color: #080808 \\9;\n}\n.note-editor button.btn,\n.note-editor input[type=\"submit\"].btn {\n *padding-top: 3px;\n *padding-bottom: 3px;\n}\n.note-editor button.btn::-moz-focus-inner,\n.note-editor input[type=\"submit\"].btn::-moz-focus-inner {\n padding: 0;\n border: 0;\n}\n.note-editor button.btn.btn-large,\n.note-editor input[type=\"submit\"].btn.btn-large {\n *padding-top: 7px;\n *padding-bottom: 7px;\n}\n.note-editor button.btn.btn-small,\n.note-editor input[type=\"submit\"].btn.btn-small {\n *padding-top: 3px;\n *padding-bottom: 3px;\n}\n.note-editor button.btn.btn-mini,\n.note-editor input[type=\"submit\"].btn.btn-mini {\n *padding-top: 1px;\n *padding-bottom: 1px;\n}\n.note-editor .btn-link,\n.note-editor .btn-link:active,\n.note-editor .btn-link[disabled] {\n background-color: transparent;\n background-image: none;\n -webkit-box-shadow: none;\n -moz-box-shadow: none;\n box-shadow: none;\n}\n.note-editor .btn-link {\n border-color: transparent;\n cursor: pointer;\n color: #0088cc;\n -webkit-border-radius: 0;\n -moz-border-radius: 0;\n border-radius: 0;\n}\n.note-editor .btn-link:hover,\n.note-editor .btn-link:focus {\n color: #005580;\n text-decoration: underline;\n background-color: transparent;\n}\n.note-editor .btn-link[disabled]:hover,\n.note-editor .btn-link[disabled]:focus {\n color: #333333;\n text-decoration: none;\n}\n.note-editor .btn-group {\n position: relative;\n display: inline-block;\n *display: inline;\n /* IE7 inline-block hack */\n\n *zoom: 1;\n font-size: 0;\n vertical-align: middle;\n white-space: nowrap;\n *margin-left: .3em;\n}\n.note-editor .btn-group:first-child {\n *margin-left: 0;\n}\n.note-editor .btn-group + .btn-group {\n margin-left: 5px;\n}\n.note-editor .btn-toolbar {\n font-size: 0;\n margin-top: 10px;\n margin-bottom: 10px;\n}\n.note-editor .btn-toolbar > .btn + .btn,\n.note-editor .btn-toolbar > .btn-group + .btn,\n.note-editor .btn-toolbar > .btn + .btn-group {\n margin-left: 5px;\n}\n.note-editor .btn-group > .btn {\n position: relative;\n -webkit-border-radius: 0;\n -moz-border-radius: 0;\n border-radius: 0;\n}\n.note-editor .btn-group > .btn + .btn {\n margin-left: -1px;\n}\n.note-editor .btn-group > .btn,\n.note-editor .btn-group > .dropdown-menu,\n.note-editor .btn-group > .popover {\n font-size: 14px;\n}\n.note-editor .btn-group > .btn-mini {\n font-size: 10.5px;\n}\n.note-editor .btn-group > .btn-small {\n font-size: 11.9px;\n}\n.note-editor .btn-group > .btn-large {\n font-size: 17.5px;\n}\n.note-editor .btn-group > .btn:first-child {\n margin-left: 0;\n -webkit-border-top-left-radius: 4px;\n -moz-border-radius-topleft: 4px;\n border-top-left-radius: 4px;\n -webkit-border-bottom-left-radius: 4px;\n -moz-border-radius-bottomleft: 4px;\n border-bottom-left-radius: 4px;\n}\n.note-editor .btn-group > .btn:last-child,\n.note-editor .btn-group > .dropdown-toggle {\n -webkit-border-top-right-radius: 4px;\n -moz-border-radius-topright: 4px;\n border-top-right-radius: 4px;\n -webkit-border-bottom-right-radius: 4px;\n -moz-border-radius-bottomright: 4px;\n border-bottom-right-radius: 4px;\n}\n.note-editor .btn-group > .btn.large:first-child {\n margin-left: 0;\n -webkit-border-top-left-radius: 6px;\n -moz-border-radius-topleft: 6px;\n border-top-left-radius: 6px;\n -webkit-border-bottom-left-radius: 6px;\n -moz-border-radius-bottomleft: 6px;\n border-bottom-left-radius: 6px;\n}\n.note-editor .btn-group > .btn.large:last-child,\n.note-editor .btn-group > .large.dropdown-toggle {\n -webkit-border-top-right-radius: 6px;\n -moz-border-radius-topright: 6px;\n border-top-right-radius: 6px;\n -webkit-border-bottom-right-radius: 6px;\n -moz-border-radius-bottomright: 6px;\n border-bottom-right-radius: 6px;\n}\n.note-editor .btn-group > .btn:hover,\n.note-editor .btn-group > .btn:focus,\n.note-editor .btn-group > .btn:active,\n.note-editor .btn-group > .btn.active {\n z-index: 2;\n}\n.note-editor .btn-group .dropdown-toggle:active,\n.note-editor .btn-group.open .dropdown-toggle {\n outline: 0;\n}\n.note-editor .btn-group > .btn + .dropdown-toggle {\n padding-left: 8px;\n padding-right: 8px;\n -webkit-box-shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);\n -moz-box-shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);\n box-shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);\n *padding-top: 5px;\n *padding-bottom: 5px;\n}\n.note-editor .btn-group > .btn-mini + .dropdown-toggle {\n padding-left: 5px;\n padding-right: 5px;\n *padding-top: 2px;\n *padding-bottom: 2px;\n}\n.note-editor .btn-group > .btn-small + .dropdown-toggle {\n *padding-top: 5px;\n *padding-bottom: 4px;\n}\n.note-editor .btn-group > .btn-large + .dropdown-toggle {\n padding-left: 12px;\n padding-right: 12px;\n *padding-top: 7px;\n *padding-bottom: 7px;\n}\n.note-editor .btn-group.open .dropdown-toggle {\n background-image: none;\n -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);\n -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);\n box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);\n}\n.note-editor .btn-group.open .btn.dropdown-toggle {\n background-color: #e6e6e6;\n}\n.note-editor .btn-group.open .btn-primary.dropdown-toggle {\n background-color: #0044cc;\n}\n.note-editor .btn-group.open .btn-warning.dropdown-toggle {\n background-color: #f89406;\n}\n.note-editor .btn-group.open .btn-danger.dropdown-toggle {\n background-color: #bd362f;\n}\n.note-editor .btn-group.open .btn-success.dropdown-toggle {\n background-color: #51a351;\n}\n.note-editor .btn-group.open .btn-info.dropdown-toggle {\n background-color: #2f96b4;\n}\n.note-editor .btn-group.open .btn-inverse.dropdown-toggle {\n background-color: #222222;\n}\n.note-editor .btn .caret {\n margin-top: 8px;\n margin-left: 0;\n}\n.note-editor .btn-large .caret {\n margin-top: 6px;\n}\n.note-editor .btn-large .caret {\n border-left-width: 5px;\n border-right-width: 5px;\n border-top-width: 5px;\n}\n.note-editor .btn-mini .caret,\n.note-editor .btn-small .caret {\n margin-top: 8px;\n}\n.note-editor .dropup .btn-large .caret {\n border-bottom-width: 5px;\n}\n.note-editor .btn-primary .caret,\n.note-editor .btn-warning .caret,\n.note-editor .btn-danger .caret,\n.note-editor .btn-info .caret,\n.note-editor .btn-success .caret,\n.note-editor .btn-inverse .caret {\n border-top-color: #ffffff;\n border-bottom-color: #ffffff;\n}\n.note-editor .btn-group-vertical {\n display: inline-block;\n *display: inline;\n /* IE7 inline-block hack */\n\n *zoom: 1;\n}\n.note-editor .btn-group-vertical > .btn {\n display: block;\n float: none;\n max-width: 100%;\n -webkit-border-radius: 0;\n -moz-border-radius: 0;\n border-radius: 0;\n}\n.note-editor .btn-group-vertical > .btn + .btn {\n margin-left: 0;\n margin-top: -1px;\n}\n.note-editor .btn-group-vertical > .btn:first-child {\n -webkit-border-radius: 4px 4px 0 0;\n -moz-border-radius: 4px 4px 0 0;\n border-radius: 4px 4px 0 0;\n}\n.note-editor .btn-group-vertical > .btn:last-child {\n -webkit-border-radius: 0 0 4px 4px;\n -moz-border-radius: 0 0 4px 4px;\n border-radius: 0 0 4px 4px;\n}\n.note-editor .btn-group-vertical > .btn-large:first-child {\n -webkit-border-radius: 6px 6px 0 0;\n -moz-border-radius: 6px 6px 0 0;\n border-radius: 6px 6px 0 0;\n}\n.note-editor .btn-group-vertical > .btn-large:last-child {\n -webkit-border-radius: 0 0 6px 6px;\n -moz-border-radius: 0 0 6px 6px;\n border-radius: 0 0 6px 6px;\n}\n.note-editor .alert {\n padding: 8px 35px 8px 14px;\n margin-bottom: 20px;\n text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);\n background-color: #fcf8e3;\n border: 1px solid #fbeed5;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n}\n.note-editor .alert,\n.note-editor .alert h4 {\n color: #c09853;\n}\n.note-editor .alert h4 {\n margin: 0;\n}\n.note-editor .alert .close {\n position: relative;\n top: -2px;\n right: -21px;\n line-height: 20px;\n}\n.note-editor .alert-success {\n background-color: #dff0d8;\n border-color: #d6e9c6;\n color: #468847;\n}\n.note-editor .alert-success h4 {\n color: #468847;\n}\n.note-editor .alert-danger,\n.note-editor .alert-error {\n background-color: #f2dede;\n border-color: #eed3d7;\n color: #b94a48;\n}\n.note-editor .alert-danger h4,\n.note-editor .alert-error h4 {\n color: #b94a48;\n}\n.note-editor .alert-info {\n background-color: #d9edf7;\n border-color: #bce8f1;\n color: #3a87ad;\n}\n.note-editor .alert-info h4 {\n color: #3a87ad;\n}\n.note-editor .alert-block {\n padding-top: 14px;\n padding-bottom: 14px;\n}\n.note-editor .alert-block > p,\n.note-editor .alert-block > ul {\n margin-bottom: 0;\n}\n.note-editor .alert-block p + p {\n margin-top: 5px;\n}\n.note-editor .nav {\n margin-left: 0;\n margin-bottom: 20px;\n list-style: none;\n}\n.note-editor .nav > li > a {\n display: block;\n}\n.note-editor .nav > li > a:hover,\n.note-editor .nav > li > a:focus {\n text-decoration: none;\n background-color: #eeeeee;\n}\n.note-editor .nav > li > a > img {\n max-width: none;\n}\n.note-editor .nav > .pull-right {\n float: right;\n}\n.note-editor .nav-header {\n display: block;\n padding: 3px 15px;\n font-size: 11px;\n font-weight: bold;\n line-height: 20px;\n color: #999999;\n text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);\n text-transform: uppercase;\n}\n.note-editor .nav li + .nav-header {\n margin-top: 9px;\n}\n.note-editor .nav-list {\n padding-left: 15px;\n padding-right: 15px;\n margin-bottom: 0;\n}\n.note-editor .nav-list > li > a,\n.note-editor .nav-list .nav-header {\n margin-left: -15px;\n margin-right: -15px;\n text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);\n}\n.note-editor .nav-list > li > a {\n padding: 3px 15px;\n}\n.note-editor .nav-list > .active > a,\n.note-editor .nav-list > .active > a:hover,\n.note-editor .nav-list > .active > a:focus {\n color: #ffffff;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);\n background-color: #0088cc;\n}\n.note-editor .nav-list [class^=\"icon-\"],\n.note-editor .nav-list [class*=\" icon-\"] {\n margin-right: 2px;\n}\n.note-editor .nav-list .divider {\n *width: 100%;\n height: 1px;\n margin: 9px 1px;\n *margin: -5px 0 5px;\n overflow: hidden;\n background-color: #e5e5e5;\n border-bottom: 1px solid #ffffff;\n}\n.note-editor .nav-tabs,\n.note-editor .nav-pills {\n *zoom: 1;\n}\n.note-editor .nav-tabs:before,\n.note-editor .nav-pills:before,\n.note-editor .nav-tabs:after,\n.note-editor .nav-pills:after {\n display: table;\n content: \"\";\n line-height: 0;\n}\n.note-editor .nav-tabs:after,\n.note-editor .nav-pills:after {\n clear: both;\n}\n.note-editor .nav-tabs > li,\n.note-editor .nav-pills > li {\n float: left;\n}\n.note-editor .nav-tabs > li > a,\n.note-editor .nav-pills > li > a {\n padding-right: 12px;\n padding-left: 12px;\n margin-right: 2px;\n line-height: 14px;\n}\n.note-editor .nav-tabs {\n border-bottom: 1px solid #ddd;\n}\n.note-editor .nav-tabs > li {\n margin-bottom: -1px;\n}\n.note-editor .nav-tabs > li > a {\n padding-top: 8px;\n padding-bottom: 8px;\n line-height: 20px;\n border: 1px solid transparent;\n -webkit-border-radius: 4px 4px 0 0;\n -moz-border-radius: 4px 4px 0 0;\n border-radius: 4px 4px 0 0;\n}\n.note-editor .nav-tabs > li > a:hover,\n.note-editor .nav-tabs > li > a:focus {\n border-color: #eeeeee #eeeeee #dddddd;\n}\n.note-editor .nav-tabs > .active > a,\n.note-editor .nav-tabs > .active > a:hover,\n.note-editor .nav-tabs > .active > a:focus {\n color: #555555;\n background-color: #ffffff;\n border: 1px solid #ddd;\n border-bottom-color: transparent;\n cursor: default;\n}\n.note-editor .nav-pills > li > a {\n padding-top: 8px;\n padding-bottom: 8px;\n margin-top: 2px;\n margin-bottom: 2px;\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n border-radius: 5px;\n}\n.note-editor .nav-pills > .active > a,\n.note-editor .nav-pills > .active > a:hover,\n.note-editor .nav-pills > .active > a:focus {\n color: #ffffff;\n background-color: #0088cc;\n}\n.note-editor .nav-stacked > li {\n float: none;\n}\n.note-editor .nav-stacked > li > a {\n margin-right: 0;\n}\n.note-editor .nav-tabs.nav-stacked {\n border-bottom: 0;\n}\n.note-editor .nav-tabs.nav-stacked > li > a {\n border: 1px solid #ddd;\n -webkit-border-radius: 0;\n -moz-border-radius: 0;\n border-radius: 0;\n}\n.note-editor .nav-tabs.nav-stacked > li:first-child > a {\n -webkit-border-top-right-radius: 4px;\n -moz-border-radius-topright: 4px;\n border-top-right-radius: 4px;\n -webkit-border-top-left-radius: 4px;\n -moz-border-radius-topleft: 4px;\n border-top-left-radius: 4px;\n}\n.note-editor .nav-tabs.nav-stacked > li:last-child > a {\n -webkit-border-bottom-right-radius: 4px;\n -moz-border-radius-bottomright: 4px;\n border-bottom-right-radius: 4px;\n -webkit-border-bottom-left-radius: 4px;\n -moz-border-radius-bottomleft: 4px;\n border-bottom-left-radius: 4px;\n}\n.note-editor .nav-tabs.nav-stacked > li > a:hover,\n.note-editor .nav-tabs.nav-stacked > li > a:focus {\n border-color: #ddd;\n z-index: 2;\n}\n.note-editor .nav-pills.nav-stacked > li > a {\n margin-bottom: 3px;\n}\n.note-editor .nav-pills.nav-stacked > li:last-child > a {\n margin-bottom: 1px;\n}\n.note-editor .nav-tabs .dropdown-menu {\n -webkit-border-radius: 0 0 6px 6px;\n -moz-border-radius: 0 0 6px 6px;\n border-radius: 0 0 6px 6px;\n}\n.note-editor .nav-pills .dropdown-menu {\n -webkit-border-radius: 6px;\n -moz-border-radius: 6px;\n border-radius: 6px;\n}\n.note-editor .nav .dropdown-toggle .caret {\n border-top-color: #0088cc;\n border-bottom-color: #0088cc;\n margin-top: 6px;\n}\n.note-editor .nav .dropdown-toggle:hover .caret,\n.note-editor .nav .dropdown-toggle:focus .caret {\n border-top-color: #005580;\n border-bottom-color: #005580;\n}\n.note-editor .nav-tabs .dropdown-toggle .caret {\n margin-top: 8px;\n}\n.note-editor .nav .active .dropdown-toggle .caret {\n border-top-color: #fff;\n border-bottom-color: #fff;\n}\n.note-editor .nav-tabs .active .dropdown-toggle .caret {\n border-top-color: #555555;\n border-bottom-color: #555555;\n}\n.note-editor .nav > .dropdown.active > a:hover,\n.note-editor .nav > .dropdown.active > a:focus {\n cursor: pointer;\n}\n.note-editor .nav-tabs .open .dropdown-toggle,\n.note-editor .nav-pills .open .dropdown-toggle,\n.note-editor .nav > li.dropdown.open.active > a:hover,\n.note-editor .nav > li.dropdown.open.active > a:focus {\n color: #ffffff;\n background-color: #999999;\n border-color: #999999;\n}\n.note-editor .nav li.dropdown.open .caret,\n.note-editor .nav li.dropdown.open.active .caret,\n.note-editor .nav li.dropdown.open a:hover .caret,\n.note-editor .nav li.dropdown.open a:focus .caret {\n border-top-color: #ffffff;\n border-bottom-color: #ffffff;\n opacity: 1;\n filter: alpha(opacity=100);\n}\n.note-editor .tabs-stacked .open > a:hover,\n.note-editor .tabs-stacked .open > a:focus {\n border-color: #999999;\n}\n.note-editor .tabbable {\n *zoom: 1;\n}\n.note-editor .tabbable:before,\n.note-editor .tabbable:after {\n display: table;\n content: \"\";\n line-height: 0;\n}\n.note-editor .tabbable:after {\n clear: both;\n}\n.note-editor .tab-content {\n overflow: auto;\n}\n.note-editor .tabs-below > .nav-tabs,\n.note-editor .tabs-right > .nav-tabs,\n.note-editor .tabs-left > .nav-tabs {\n border-bottom: 0;\n}\n.note-editor .tab-content > .tab-pane,\n.note-editor .pill-content > .pill-pane {\n display: none;\n}\n.note-editor .tab-content > .active,\n.note-editor .pill-content > .active {\n display: block;\n}\n.note-editor .tabs-below > .nav-tabs {\n border-top: 1px solid #ddd;\n}\n.note-editor .tabs-below > .nav-tabs > li {\n margin-top: -1px;\n margin-bottom: 0;\n}\n.note-editor .tabs-below > .nav-tabs > li > a {\n -webkit-border-radius: 0 0 4px 4px;\n -moz-border-radius: 0 0 4px 4px;\n border-radius: 0 0 4px 4px;\n}\n.note-editor .tabs-below > .nav-tabs > li > a:hover,\n.note-editor .tabs-below > .nav-tabs > li > a:focus {\n border-bottom-color: transparent;\n border-top-color: #ddd;\n}\n.note-editor .tabs-below > .nav-tabs > .active > a,\n.note-editor .tabs-below > .nav-tabs > .active > a:hover,\n.note-editor .tabs-below > .nav-tabs > .active > a:focus {\n border-color: transparent #ddd #ddd #ddd;\n}\n.note-editor .tabs-left > .nav-tabs > li,\n.note-editor .tabs-right > .nav-tabs > li {\n float: none;\n}\n.note-editor .tabs-left > .nav-tabs > li > a,\n.note-editor .tabs-right > .nav-tabs > li > a {\n min-width: 74px;\n margin-right: 0;\n margin-bottom: 3px;\n}\n.note-editor .tabs-left > .nav-tabs {\n float: left;\n margin-right: 19px;\n border-right: 1px solid #ddd;\n}\n.note-editor .tabs-left > .nav-tabs > li > a {\n margin-right: -1px;\n -webkit-border-radius: 4px 0 0 4px;\n -moz-border-radius: 4px 0 0 4px;\n border-radius: 4px 0 0 4px;\n}\n.note-editor .tabs-left > .nav-tabs > li > a:hover,\n.note-editor .tabs-left > .nav-tabs > li > a:focus {\n border-color: #eeeeee #dddddd #eeeeee #eeeeee;\n}\n.note-editor .tabs-left > .nav-tabs .active > a,\n.note-editor .tabs-left > .nav-tabs .active > a:hover,\n.note-editor .tabs-left > .nav-tabs .active > a:focus {\n border-color: #ddd transparent #ddd #ddd;\n *border-right-color: #ffffff;\n}\n.note-editor .tabs-right > .nav-tabs {\n float: right;\n margin-left: 19px;\n border-left: 1px solid #ddd;\n}\n.note-editor .tabs-right > .nav-tabs > li > a {\n margin-left: -1px;\n -webkit-border-radius: 0 4px 4px 0;\n -moz-border-radius: 0 4px 4px 0;\n border-radius: 0 4px 4px 0;\n}\n.note-editor .tabs-right > .nav-tabs > li > a:hover,\n.note-editor .tabs-right > .nav-tabs > li > a:focus {\n border-color: #eeeeee #eeeeee #eeeeee #dddddd;\n}\n.note-editor .tabs-right > .nav-tabs .active > a,\n.note-editor .tabs-right > .nav-tabs .active > a:hover,\n.note-editor .tabs-right > .nav-tabs .active > a:focus {\n border-color: #ddd #ddd #ddd transparent;\n *border-left-color: #ffffff;\n}\n.note-editor .nav > .disabled > a {\n color: #999999;\n}\n.note-editor .nav > .disabled > a:hover,\n.note-editor .nav > .disabled > a:focus {\n text-decoration: none;\n background-color: transparent;\n cursor: default;\n}\n.note-editor .navbar {\n overflow: visible;\n margin-bottom: 20px;\n *position: relative;\n *z-index: 2;\n}\n.note-editor .navbar-inner {\n min-height: 40px;\n padding-left: 20px;\n padding-right: 20px;\n background-color: #fafafa;\n background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f2f2f2));\n background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2);\n background-image: -o-linear-gradient(top, #ffffff, #f2f2f2);\n background-image: linear-gradient(to bottom, #ffffff, #f2f2f2);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);\n border: 1px solid #d4d4d4;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);\n -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);\n *zoom: 1;\n}\n.note-editor .navbar-inner:before,\n.note-editor .navbar-inner:after {\n display: table;\n content: \"\";\n line-height: 0;\n}\n.note-editor .navbar-inner:after {\n clear: both;\n}\n.note-editor .navbar .container {\n width: auto;\n}\n.note-editor .nav-collapse.collapse {\n height: auto;\n overflow: visible;\n}\n.note-editor .navbar .brand {\n float: left;\n display: block;\n padding: 10px 20px 10px;\n margin-left: -20px;\n font-size: 20px;\n font-weight: 200;\n color: #777777;\n text-shadow: 0 1px 0 #ffffff;\n}\n.note-editor .navbar .brand:hover,\n.note-editor .navbar .brand:focus {\n text-decoration: none;\n}\n.note-editor .navbar-text {\n margin-bottom: 0;\n line-height: 40px;\n color: #777777;\n}\n.note-editor .navbar-link {\n color: #777777;\n}\n.note-editor .navbar-link:hover,\n.note-editor .navbar-link:focus {\n color: #333333;\n}\n.note-editor .navbar .divider-vertical {\n height: 40px;\n margin: 0 9px;\n border-left: 1px solid #f2f2f2;\n border-right: 1px solid #ffffff;\n}\n.note-editor .navbar .btn,\n.note-editor .navbar .btn-group {\n margin-top: 5px;\n}\n.note-editor .navbar .btn-group .btn,\n.note-editor .navbar .input-prepend .btn,\n.note-editor .navbar .input-append .btn,\n.note-editor .navbar .input-prepend .btn-group,\n.note-editor .navbar .input-append .btn-group {\n margin-top: 0;\n}\n.note-editor .navbar-form {\n margin-bottom: 0;\n *zoom: 1;\n}\n.note-editor .navbar-form:before,\n.note-editor .navbar-form:after {\n display: table;\n content: \"\";\n line-height: 0;\n}\n.note-editor .navbar-form:after {\n clear: both;\n}\n.note-editor .navbar-form input,\n.note-editor .navbar-form select,\n.note-editor .navbar-form .radio,\n.note-editor .navbar-form .checkbox {\n margin-top: 5px;\n}\n.note-editor .navbar-form input,\n.note-editor .navbar-form select,\n.note-editor .navbar-form .btn {\n display: inline-block;\n margin-bottom: 0;\n}\n.note-editor .navbar-form input[type=\"image\"],\n.note-editor .navbar-form input[type=\"checkbox\"],\n.note-editor .navbar-form input[type=\"radio\"] {\n margin-top: 3px;\n}\n.note-editor .navbar-form .input-append,\n.note-editor .navbar-form .input-prepend {\n margin-top: 5px;\n white-space: nowrap;\n}\n.note-editor .navbar-form .input-append input,\n.note-editor .navbar-form .input-prepend input {\n margin-top: 0;\n}\n.note-editor .navbar-search {\n position: relative;\n float: left;\n margin-top: 5px;\n margin-bottom: 0;\n}\n.note-editor .navbar-search .search-query {\n margin-bottom: 0;\n padding: 4px 14px;\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n font-size: 13px;\n font-weight: normal;\n line-height: 1;\n -webkit-border-radius: 15px;\n -moz-border-radius: 15px;\n border-radius: 15px;\n}\n.note-editor .navbar-static-top {\n position: static;\n margin-bottom: 0;\n}\n.note-editor .navbar-static-top .navbar-inner {\n -webkit-border-radius: 0;\n -moz-border-radius: 0;\n border-radius: 0;\n}\n.note-editor .navbar-fixed-top,\n.note-editor .navbar-fixed-bottom {\n position: fixed;\n right: 0;\n left: 0;\n z-index: 1030;\n margin-bottom: 0;\n}\n.note-editor .navbar-fixed-top .navbar-inner,\n.note-editor .navbar-static-top .navbar-inner {\n border-width: 0 0 1px;\n}\n.note-editor .navbar-fixed-bottom .navbar-inner {\n border-width: 1px 0 0;\n}\n.note-editor .navbar-fixed-top .navbar-inner,\n.note-editor .navbar-fixed-bottom .navbar-inner {\n padding-left: 0;\n padding-right: 0;\n -webkit-border-radius: 0;\n -moz-border-radius: 0;\n border-radius: 0;\n}\n.note-editor .navbar-static-top .container,\n.note-editor .navbar-fixed-top .container,\n.note-editor .navbar-fixed-bottom .container {\n width: 940px;\n}\n.note-editor .navbar-fixed-top {\n top: 0;\n}\n.note-editor .navbar-fixed-top .navbar-inner,\n.note-editor .navbar-static-top .navbar-inner {\n -webkit-box-shadow: 0 1px 10px rgba(0,0,0,.1);\n -moz-box-shadow: 0 1px 10px rgba(0,0,0,.1);\n box-shadow: 0 1px 10px rgba(0,0,0,.1);\n}\n.note-editor .navbar-fixed-bottom {\n bottom: 0;\n}\n.note-editor .navbar-fixed-bottom .navbar-inner {\n -webkit-box-shadow: 0 -1px 10px rgba(0,0,0,.1);\n -moz-box-shadow: 0 -1px 10px rgba(0,0,0,.1);\n box-shadow: 0 -1px 10px rgba(0,0,0,.1);\n}\n.note-editor .navbar .nav {\n position: relative;\n left: 0;\n display: block;\n float: left;\n margin: 0 10px 0 0;\n}\n.note-editor .navbar .nav.pull-right {\n float: right;\n margin-right: 0;\n}\n.note-editor .navbar .nav > li {\n float: left;\n}\n.note-editor .navbar .nav > li > a {\n float: none;\n padding: 10px 15px 10px;\n color: #777777;\n text-decoration: none;\n text-shadow: 0 1px 0 #ffffff;\n}\n.note-editor .navbar .nav .dropdown-toggle .caret {\n margin-top: 8px;\n}\n.note-editor .navbar .nav > li > a:focus,\n.note-editor .navbar .nav > li > a:hover {\n background-color: transparent;\n color: #333333;\n text-decoration: none;\n}\n.note-editor .navbar .nav > .active > a,\n.note-editor .navbar .nav > .active > a:hover,\n.note-editor .navbar .nav > .active > a:focus {\n color: #555555;\n text-decoration: none;\n background-color: #e5e5e5;\n -webkit-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);\n -moz-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);\n box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);\n}\n.note-editor .navbar .btn-navbar {\n display: none;\n float: right;\n padding: 7px 10px;\n margin-left: 5px;\n margin-right: 5px;\n color: #ffffff;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n background-color: #ededed;\n background-image: -moz-linear-gradient(top, #f2f2f2, #e5e5e5);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f2f2f2), to(#e5e5e5));\n background-image: -webkit-linear-gradient(top, #f2f2f2, #e5e5e5);\n background-image: -o-linear-gradient(top, #f2f2f2, #e5e5e5);\n background-image: linear-gradient(to bottom, #f2f2f2, #e5e5e5);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2f2f2', endColorstr='#ffe5e5e5', GradientType=0);\n border-color: #e5e5e5 #e5e5e5 #bfbfbf;\n border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n *background-color: #e5e5e5;\n /* Darken IE7 buttons by default so they stand out more given they won't have borders */\n\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075);\n -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075);\n box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075);\n}\n.note-editor .navbar .btn-navbar:hover,\n.note-editor .navbar .btn-navbar:focus,\n.note-editor .navbar .btn-navbar:active,\n.note-editor .navbar .btn-navbar.active,\n.note-editor .navbar .btn-navbar.disabled,\n.note-editor .navbar .btn-navbar[disabled] {\n color: #ffffff;\n background-color: #e5e5e5;\n *background-color: #d9d9d9;\n}\n.note-editor .navbar .btn-navbar:active,\n.note-editor .navbar .btn-navbar.active {\n background-color: #cccccc \\9;\n}\n.note-editor .navbar .btn-navbar .icon-bar {\n display: block;\n width: 18px;\n height: 2px;\n background-color: #f5f5f5;\n -webkit-border-radius: 1px;\n -moz-border-radius: 1px;\n border-radius: 1px;\n -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);\n -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);\n}\n.note-editor .btn-navbar .icon-bar + .icon-bar {\n margin-top: 3px;\n}\n.note-editor .navbar .nav > li > .dropdown-menu:before {\n content: '';\n display: inline-block;\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-bottom: 7px solid #ccc;\n border-bottom-color: rgba(0, 0, 0, 0.2);\n position: absolute;\n top: -7px;\n left: 9px;\n}\n.note-editor .navbar .nav > li > .dropdown-menu:after {\n content: '';\n display: inline-block;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-bottom: 6px solid #ffffff;\n position: absolute;\n top: -6px;\n left: 10px;\n}\n.note-editor .navbar-fixed-bottom .nav > li > .dropdown-menu:before {\n border-top: 7px solid #ccc;\n border-top-color: rgba(0, 0, 0, 0.2);\n border-bottom: 0;\n bottom: -7px;\n top: auto;\n}\n.note-editor .navbar-fixed-bottom .nav > li > .dropdown-menu:after {\n border-top: 6px solid #ffffff;\n border-bottom: 0;\n bottom: -6px;\n top: auto;\n}\n.note-editor .navbar .nav li.dropdown > a:hover .caret,\n.note-editor .navbar .nav li.dropdown > a:focus .caret {\n border-top-color: #333333;\n border-bottom-color: #333333;\n}\n.note-editor .navbar .nav li.dropdown.open > .dropdown-toggle,\n.note-editor .navbar .nav li.dropdown.active > .dropdown-toggle,\n.note-editor .navbar .nav li.dropdown.open.active > .dropdown-toggle {\n background-color: #e5e5e5;\n color: #555555;\n}\n.note-editor .navbar .nav li.dropdown > .dropdown-toggle .caret {\n border-top-color: #777777;\n border-bottom-color: #777777;\n}\n.note-editor .navbar .nav li.dropdown.open > .dropdown-toggle .caret,\n.note-editor .navbar .nav li.dropdown.active > .dropdown-toggle .caret,\n.note-editor .navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {\n border-top-color: #555555;\n border-bottom-color: #555555;\n}\n.note-editor .navbar .pull-right > li > .dropdown-menu,\n.note-editor .navbar .nav > li > .dropdown-menu.pull-right {\n left: auto;\n right: 0;\n}\n.note-editor .navbar .pull-right > li > .dropdown-menu:before,\n.note-editor .navbar .nav > li > .dropdown-menu.pull-right:before {\n left: auto;\n right: 12px;\n}\n.note-editor .navbar .pull-right > li > .dropdown-menu:after,\n.note-editor .navbar .nav > li > .dropdown-menu.pull-right:after {\n left: auto;\n right: 13px;\n}\n.note-editor .navbar .pull-right > li > .dropdown-menu .dropdown-menu,\n.note-editor .navbar .nav > li > .dropdown-menu.pull-right .dropdown-menu {\n left: auto;\n right: 100%;\n margin-left: 0;\n margin-right: -1px;\n -webkit-border-radius: 6px 0 6px 6px;\n -moz-border-radius: 6px 0 6px 6px;\n border-radius: 6px 0 6px 6px;\n}\n.note-editor .navbar-inverse .navbar-inner {\n background-color: #1b1b1b;\n background-image: -moz-linear-gradient(top, #222222, #111111);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#222222), to(#111111));\n background-image: -webkit-linear-gradient(top, #222222, #111111);\n background-image: -o-linear-gradient(top, #222222, #111111);\n background-image: linear-gradient(to bottom, #222222, #111111);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff222222', endColorstr='#ff111111', GradientType=0);\n border-color: #252525;\n}\n.note-editor .navbar-inverse .brand,\n.note-editor .navbar-inverse .nav > li > a {\n color: #999999;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.note-editor .navbar-inverse .brand:hover,\n.note-editor .navbar-inverse .nav > li > a:hover,\n.note-editor .navbar-inverse .brand:focus,\n.note-editor .navbar-inverse .nav > li > a:focus {\n color: #ffffff;\n}\n.note-editor .navbar-inverse .brand {\n color: #999999;\n}\n.note-editor .navbar-inverse .navbar-text {\n color: #999999;\n}\n.note-editor .navbar-inverse .nav > li > a:focus,\n.note-editor .navbar-inverse .nav > li > a:hover {\n background-color: transparent;\n color: #ffffff;\n}\n.note-editor .navbar-inverse .nav .active > a,\n.note-editor .navbar-inverse .nav .active > a:hover,\n.note-editor .navbar-inverse .nav .active > a:focus {\n color: #ffffff;\n background-color: #111111;\n}\n.note-editor .navbar-inverse .navbar-link {\n color: #999999;\n}\n.note-editor .navbar-inverse .navbar-link:hover,\n.note-editor .navbar-inverse .navbar-link:focus {\n color: #ffffff;\n}\n.note-editor .navbar-inverse .divider-vertical {\n border-left-color: #111111;\n border-right-color: #222222;\n}\n.note-editor .navbar-inverse .nav li.dropdown.open > .dropdown-toggle,\n.note-editor .navbar-inverse .nav li.dropdown.active > .dropdown-toggle,\n.note-editor .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle {\n background-color: #111111;\n color: #ffffff;\n}\n.note-editor .navbar-inverse .nav li.dropdown > a:hover .caret,\n.note-editor .navbar-inverse .nav li.dropdown > a:focus .caret {\n border-top-color: #ffffff;\n border-bottom-color: #ffffff;\n}\n.note-editor .navbar-inverse .nav li.dropdown > .dropdown-toggle .caret {\n border-top-color: #999999;\n border-bottom-color: #999999;\n}\n.note-editor .navbar-inverse .nav li.dropdown.open > .dropdown-toggle .caret,\n.note-editor .navbar-inverse .nav li.dropdown.active > .dropdown-toggle .caret,\n.note-editor .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle .caret {\n border-top-color: #ffffff;\n border-bottom-color: #ffffff;\n}\n.note-editor .navbar-inverse .navbar-search .search-query {\n color: #ffffff;\n background-color: #515151;\n border-color: #111111;\n -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15);\n -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15);\n box-shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15);\n -webkit-transition: none;\n -moz-transition: none;\n -o-transition: none;\n transition: none;\n}\n.note-editor .navbar-inverse .navbar-search .search-query:-moz-placeholder {\n color: #cccccc;\n}\n.note-editor .navbar-inverse .navbar-search .search-query:-ms-input-placeholder {\n color: #cccccc;\n}\n.note-editor .navbar-inverse .navbar-search .search-query::-webkit-input-placeholder {\n color: #cccccc;\n}\n.note-editor .navbar-inverse .navbar-search .search-query:focus,\n.note-editor .navbar-inverse .navbar-search .search-query.focused {\n padding: 5px 15px;\n color: #333333;\n text-shadow: 0 1px 0 #ffffff;\n background-color: #ffffff;\n border: 0;\n -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);\n -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);\n box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);\n outline: 0;\n}\n.note-editor .navbar-inverse .btn-navbar {\n color: #ffffff;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n background-color: #0e0e0e;\n background-image: -moz-linear-gradient(top, #151515, #040404);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#151515), to(#040404));\n background-image: -webkit-linear-gradient(top, #151515, #040404);\n background-image: -o-linear-gradient(top, #151515, #040404);\n background-image: linear-gradient(to bottom, #151515, #040404);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff151515', endColorstr='#ff040404', GradientType=0);\n border-color: #040404 #040404 #000000;\n border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n *background-color: #040404;\n /* Darken IE7 buttons by default so they stand out more given they won't have borders */\n\n filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);\n}\n.note-editor .navbar-inverse .btn-navbar:hover,\n.note-editor .navbar-inverse .btn-navbar:focus,\n.note-editor .navbar-inverse .btn-navbar:active,\n.note-editor .navbar-inverse .btn-navbar.active,\n.note-editor .navbar-inverse .btn-navbar.disabled,\n.note-editor .navbar-inverse .btn-navbar[disabled] {\n color: #ffffff;\n background-color: #040404;\n *background-color: #000000;\n}\n.note-editor .navbar-inverse .btn-navbar:active,\n.note-editor .navbar-inverse .btn-navbar.active {\n background-color: #000000 \\9;\n}\n.note-editor .breadcrumb {\n padding: 8px 15px;\n margin: 0 0 20px;\n list-style: none;\n background-color: #f5f5f5;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n}\n.note-editor .breadcrumb > li {\n display: inline-block;\n *display: inline;\n /* IE7 inline-block hack */\n\n *zoom: 1;\n text-shadow: 0 1px 0 #ffffff;\n}\n.note-editor .breadcrumb > li > .divider {\n padding: 0 5px;\n color: #ccc;\n}\n.note-editor .breadcrumb > .active {\n color: #999999;\n}\n.note-editor .pagination {\n margin: 20px 0;\n}\n.note-editor .pagination ul {\n display: inline-block;\n *display: inline;\n /* IE7 inline-block hack */\n\n *zoom: 1;\n margin-left: 0;\n margin-bottom: 0;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n}\n.note-editor .pagination ul > li {\n display: inline;\n}\n.note-editor .pagination ul > li > a,\n.note-editor .pagination ul > li > span {\n float: left;\n padding: 4px 12px;\n line-height: 20px;\n text-decoration: none;\n background-color: #ffffff;\n border: 1px solid #dddddd;\n border-left-width: 0;\n}\n.note-editor .pagination ul > li > a:hover,\n.note-editor .pagination ul > li > a:focus,\n.note-editor .pagination ul > .active > a,\n.note-editor .pagination ul > .active > span {\n background-color: #f5f5f5;\n}\n.note-editor .pagination ul > .active > a,\n.note-editor .pagination ul > .active > span {\n color: #999999;\n cursor: default;\n}\n.note-editor .pagination ul > .disabled > span,\n.note-editor .pagination ul > .disabled > a,\n.note-editor .pagination ul > .disabled > a:hover,\n.note-editor .pagination ul > .disabled > a:focus {\n color: #999999;\n background-color: transparent;\n cursor: default;\n}\n.note-editor .pagination ul > li:first-child > a,\n.note-editor .pagination ul > li:first-child > span {\n border-left-width: 1px;\n -webkit-border-top-left-radius: 4px;\n -moz-border-radius-topleft: 4px;\n border-top-left-radius: 4px;\n -webkit-border-bottom-left-radius: 4px;\n -moz-border-radius-bottomleft: 4px;\n border-bottom-left-radius: 4px;\n}\n.note-editor .pagination ul > li:last-child > a,\n.note-editor .pagination ul > li:last-child > span {\n -webkit-border-top-right-radius: 4px;\n -moz-border-radius-topright: 4px;\n border-top-right-radius: 4px;\n -webkit-border-bottom-right-radius: 4px;\n -moz-border-radius-bottomright: 4px;\n border-bottom-right-radius: 4px;\n}\n.note-editor .pagination-centered {\n text-align: center;\n}\n.note-editor .pagination-right {\n text-align: right;\n}\n.note-editor .pagination-large ul > li > a,\n.note-editor .pagination-large ul > li > span {\n padding: 11px 19px;\n font-size: 17.5px;\n}\n.note-editor .pagination-large ul > li:first-child > a,\n.note-editor .pagination-large ul > li:first-child > span {\n -webkit-border-top-left-radius: 6px;\n -moz-border-radius-topleft: 6px;\n border-top-left-radius: 6px;\n -webkit-border-bottom-left-radius: 6px;\n -moz-border-radius-bottomleft: 6px;\n border-bottom-left-radius: 6px;\n}\n.note-editor .pagination-large ul > li:last-child > a,\n.note-editor .pagination-large ul > li:last-child > span {\n -webkit-border-top-right-radius: 6px;\n -moz-border-radius-topright: 6px;\n border-top-right-radius: 6px;\n -webkit-border-bottom-right-radius: 6px;\n -moz-border-radius-bottomright: 6px;\n border-bottom-right-radius: 6px;\n}\n.note-editor .pagination-mini ul > li:first-child > a,\n.note-editor .pagination-small ul > li:first-child > a,\n.note-editor .pagination-mini ul > li:first-child > span,\n.note-editor .pagination-small ul > li:first-child > span {\n -webkit-border-top-left-radius: 3px;\n -moz-border-radius-topleft: 3px;\n border-top-left-radius: 3px;\n -webkit-border-bottom-left-radius: 3px;\n -moz-border-radius-bottomleft: 3px;\n border-bottom-left-radius: 3px;\n}\n.note-editor .pagination-mini ul > li:last-child > a,\n.note-editor .pagination-small ul > li:last-child > a,\n.note-editor .pagination-mini ul > li:last-child > span,\n.note-editor .pagination-small ul > li:last-child > span {\n -webkit-border-top-right-radius: 3px;\n -moz-border-radius-topright: 3px;\n border-top-right-radius: 3px;\n -webkit-border-bottom-right-radius: 3px;\n -moz-border-radius-bottomright: 3px;\n border-bottom-right-radius: 3px;\n}\n.note-editor .pagination-small ul > li > a,\n.note-editor .pagination-small ul > li > span {\n padding: 2px 10px;\n font-size: 11.9px;\n}\n.note-editor .pagination-mini ul > li > a,\n.note-editor .pagination-mini ul > li > span {\n padding: 0 6px;\n font-size: 10.5px;\n}\n.note-editor .pager {\n margin: 20px 0;\n list-style: none;\n text-align: center;\n *zoom: 1;\n}\n.note-editor .pager:before,\n.note-editor .pager:after {\n display: table;\n content: \"\";\n line-height: 0;\n}\n.note-editor .pager:after {\n clear: both;\n}\n.note-editor .pager li {\n display: inline;\n}\n.note-editor .pager li > a,\n.note-editor .pager li > span {\n display: inline-block;\n padding: 5px 14px;\n background-color: #fff;\n border: 1px solid #ddd;\n -webkit-border-radius: 15px;\n -moz-border-radius: 15px;\n border-radius: 15px;\n}\n.note-editor .pager li > a:hover,\n.note-editor .pager li > a:focus {\n text-decoration: none;\n background-color: #f5f5f5;\n}\n.note-editor .pager .next > a,\n.note-editor .pager .next > span {\n float: right;\n}\n.note-editor .pager .previous > a,\n.note-editor .pager .previous > span {\n float: left;\n}\n.note-editor .pager .disabled > a,\n.note-editor .pager .disabled > a:hover,\n.note-editor .pager .disabled > a:focus,\n.note-editor .pager .disabled > span {\n color: #999999;\n background-color: #fff;\n cursor: default;\n}\n.modal-backdrop {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1040;\n background-color: #000000;\n}\n.modal-backdrop.fade {\n opacity: 0;\n}\n.modal-backdrop,\n.modal-backdrop.fade.in {\n opacity: 0.8;\n filter: alpha(opacity=80);\n}\n.note-editor .modal {\n position: fixed;\n top: 10%;\n left: 50%;\n z-index: 1050;\n width: 560px;\n margin-left: -280px;\n background-color: #ffffff;\n border: 1px solid #999;\n border: 1px solid rgba(0, 0, 0, 0.3);\n *border: 1px solid #999;\n /* IE6-7 */\n\n -webkit-border-radius: 6px;\n -moz-border-radius: 6px;\n border-radius: 6px;\n -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);\n -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);\n box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);\n -webkit-background-clip: padding-box;\n -moz-background-clip: padding-box;\n background-clip: padding-box;\n outline: none;\n}\n.note-editor .modal.fade {\n -webkit-transition: opacity .3s linear, top .3s ease-out;\n -moz-transition: opacity .3s linear, top .3s ease-out;\n -o-transition: opacity .3s linear, top .3s ease-out;\n transition: opacity .3s linear, top .3s ease-out;\n top: -25%;\n}\n.note-editor .modal.fade.in {\n top: 10%;\n}\n.note-editor .modal-header {\n padding: 9px 15px;\n border-bottom: 1px solid #eee;\n}\n.note-editor .modal-header .close {\n margin-top: 2px;\n}\n.note-editor .modal-header h3 {\n margin: 0;\n line-height: 30px;\n}\n.note-editor .modal-body {\n position: relative;\n overflow-y: auto;\n max-height: 400px;\n padding: 15px;\n}\n.note-editor .modal-form {\n margin-bottom: 0;\n}\n.note-editor .modal-footer {\n padding: 14px 15px 15px;\n margin-bottom: 0;\n text-align: right;\n background-color: #f5f5f5;\n border-top: 1px solid #ddd;\n -webkit-border-radius: 0 0 6px 6px;\n -moz-border-radius: 0 0 6px 6px;\n border-radius: 0 0 6px 6px;\n -webkit-box-shadow: inset 0 1px 0 #ffffff;\n -moz-box-shadow: inset 0 1px 0 #ffffff;\n box-shadow: inset 0 1px 0 #ffffff;\n *zoom: 1;\n}\n.note-editor .modal-footer:before,\n.note-editor .modal-footer:after {\n display: table;\n content: \"\";\n line-height: 0;\n}\n.note-editor .modal-footer:after {\n clear: both;\n}\n.note-editor .modal-footer .btn + .btn {\n margin-left: 5px;\n margin-bottom: 0;\n}\n.note-editor .modal-footer .btn-group .btn + .btn {\n margin-left: -1px;\n}\n.note-editor .modal-footer .btn-block + .btn-block {\n margin-left: 0;\n}\n.tooltip {\n position: absolute;\n z-index: 1030;\n display: block;\n visibility: visible;\n font-size: 11px;\n line-height: 1.4;\n opacity: 0;\n filter: alpha(opacity=0);\n}\n.tooltip.in {\n opacity: 0.8;\n filter: alpha(opacity=80);\n}\n.tooltip.top {\n margin-top: -3px;\n padding: 5px 0;\n}\n.tooltip.right {\n margin-left: 3px;\n padding: 0 5px;\n}\n.tooltip.bottom {\n margin-top: 3px;\n padding: 5px 0;\n}\n.tooltip.left {\n margin-left: -3px;\n padding: 0 5px;\n}\n.tooltip-inner {\n max-width: 200px;\n padding: 8px;\n color: #ffffff;\n text-align: center;\n text-decoration: none;\n background-color: #000000;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n}\n.tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n.tooltip.top .tooltip-arrow {\n bottom: 0;\n left: 50%;\n margin-left: -5px;\n border-width: 5px 5px 0;\n border-top-color: #000000;\n}\n.tooltip.right .tooltip-arrow {\n top: 50%;\n left: 0;\n margin-top: -5px;\n border-width: 5px 5px 5px 0;\n border-right-color: #000000;\n}\n.tooltip.left .tooltip-arrow {\n top: 50%;\n right: 0;\n margin-top: -5px;\n border-width: 5px 0 5px 5px;\n border-left-color: #000000;\n}\n.tooltip.bottom .tooltip-arrow {\n top: 0;\n left: 50%;\n margin-left: -5px;\n border-width: 0 5px 5px;\n border-bottom-color: #000000;\n}\n.note-editor .popover {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1010;\n display: none;\n max-width: 276px;\n padding: 1px;\n text-align: left;\n background-color: #ffffff;\n -webkit-background-clip: padding-box;\n -moz-background-clip: padding;\n background-clip: padding-box;\n border: 1px solid #ccc;\n border: 1px solid rgba(0, 0, 0, 0.2);\n -webkit-border-radius: 6px;\n -moz-border-radius: 6px;\n border-radius: 6px;\n -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);\n white-space: normal;\n}\n.note-editor .popover.top {\n margin-top: -10px;\n}\n.note-editor .popover.right {\n margin-left: 10px;\n}\n.note-editor .popover.bottom {\n margin-top: 10px;\n}\n.note-editor .popover.left {\n margin-left: -10px;\n}\n.note-editor .popover-title {\n margin: 0;\n padding: 8px 14px;\n font-size: 14px;\n font-weight: normal;\n line-height: 18px;\n background-color: #f7f7f7;\n border-bottom: 1px solid #ebebeb;\n -webkit-border-radius: 5px 5px 0 0;\n -moz-border-radius: 5px 5px 0 0;\n border-radius: 5px 5px 0 0;\n}\n.note-editor .popover-title:empty {\n display: none;\n}\n.note-editor .popover-content {\n padding: 9px 14px;\n}\n.note-editor .popover .arrow,\n.note-editor .popover .arrow:after {\n position: absolute;\n display: block;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n.note-editor .popover .arrow {\n border-width: 11px;\n}\n.note-editor .popover .arrow:after {\n border-width: 10px;\n content: \"\";\n}\n.note-editor .popover.top .arrow {\n left: 50%;\n margin-left: -11px;\n border-bottom-width: 0;\n border-top-color: #999;\n border-top-color: rgba(0, 0, 0, 0.25);\n bottom: -11px;\n}\n.note-editor .popover.top .arrow:after {\n bottom: 1px;\n margin-left: -10px;\n border-bottom-width: 0;\n border-top-color: #ffffff;\n}\n.note-editor .popover.right .arrow {\n top: 50%;\n left: -11px;\n margin-top: -11px;\n border-left-width: 0;\n border-right-color: #999;\n border-right-color: rgba(0, 0, 0, 0.25);\n}\n.note-editor .popover.right .arrow:after {\n left: 1px;\n bottom: -10px;\n border-left-width: 0;\n border-right-color: #ffffff;\n}\n.note-editor .popover.bottom .arrow {\n left: 50%;\n margin-left: -11px;\n border-top-width: 0;\n border-bottom-color: #999;\n border-bottom-color: rgba(0, 0, 0, 0.25);\n top: -11px;\n}\n.note-editor .popover.bottom .arrow:after {\n top: 1px;\n margin-left: -10px;\n border-top-width: 0;\n border-bottom-color: #ffffff;\n}\n.note-editor .popover.left .arrow {\n top: 50%;\n right: -11px;\n margin-top: -11px;\n border-right-width: 0;\n border-left-color: #999;\n border-left-color: rgba(0, 0, 0, 0.25);\n}\n.note-editor .popover.left .arrow:after {\n right: 1px;\n border-right-width: 0;\n border-left-color: #ffffff;\n bottom: -10px;\n}\n.note-editor .thumbnails {\n margin-left: -20px;\n list-style: none;\n *zoom: 1;\n}\n.note-editor .thumbnails:before,\n.note-editor .thumbnails:after {\n display: table;\n content: \"\";\n line-height: 0;\n}\n.note-editor .thumbnails:after {\n clear: both;\n}\n.note-editor .row-fluid .thumbnails {\n margin-left: 0;\n}\n.note-editor .thumbnails > li {\n float: left;\n margin-bottom: 20px;\n margin-left: 20px;\n}\n.note-editor .thumbnail {\n display: block;\n padding: 4px;\n line-height: 20px;\n border: 1px solid #ddd;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055);\n -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055);\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055);\n -webkit-transition: all 0.2s ease-in-out;\n -moz-transition: all 0.2s ease-in-out;\n -o-transition: all 0.2s ease-in-out;\n transition: all 0.2s ease-in-out;\n}\n.note-editor a.thumbnail:hover,\n.note-editor a.thumbnail:focus {\n border-color: #0088cc;\n -webkit-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);\n -moz-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);\n box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);\n}\n.note-editor .thumbnail > img {\n display: block;\n max-width: 100%;\n margin-left: auto;\n margin-right: auto;\n}\n.note-editor .thumbnail .caption {\n padding: 9px;\n color: #555555;\n}\n.note-editor .media,\n.note-editor .media-body {\n overflow: hidden;\n *overflow: visible;\n zoom: 1;\n}\n.note-editor .media,\n.note-editor .media .media {\n margin-top: 15px;\n}\n.note-editor .media:first-child {\n margin-top: 0;\n}\n.note-editor .media-object {\n display: block;\n}\n.note-editor .media-heading {\n margin: 0 0 5px;\n}\n.note-editor .media > .pull-left {\n margin-right: 10px;\n}\n.note-editor .media > .pull-right {\n margin-left: 10px;\n}\n.note-editor .media-list {\n margin-left: 0;\n list-style: none;\n}\n.note-editor .label,\n.note-editor .badge {\n display: inline-block;\n padding: 2px 4px;\n font-size: 11.844px;\n font-weight: bold;\n line-height: 14px;\n color: #ffffff;\n vertical-align: baseline;\n white-space: nowrap;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n background-color: #999999;\n}\n.note-editor .label {\n -webkit-border-radius: 3px;\n -moz-border-radius: 3px;\n border-radius: 3px;\n}\n.note-editor .badge {\n padding-left: 9px;\n padding-right: 9px;\n -webkit-border-radius: 9px;\n -moz-border-radius: 9px;\n border-radius: 9px;\n}\n.note-editor .label:empty,\n.note-editor .badge:empty {\n display: none;\n}\n.note-editor a.label:hover,\n.note-editor a.label:focus,\n.note-editor a.badge:hover,\n.note-editor a.badge:focus {\n color: #ffffff;\n text-decoration: none;\n cursor: pointer;\n}\n.note-editor .label-important,\n.note-editor .badge-important {\n background-color: #b94a48;\n}\n.note-editor .label-important[href],\n.note-editor .badge-important[href] {\n background-color: #953b39;\n}\n.note-editor .label-warning,\n.note-editor .badge-warning {\n background-color: #f89406;\n}\n.note-editor .label-warning[href],\n.note-editor .badge-warning[href] {\n background-color: #c67605;\n}\n.note-editor .label-success,\n.note-editor .badge-success {\n background-color: #468847;\n}\n.note-editor .label-success[href],\n.note-editor .badge-success[href] {\n background-color: #356635;\n}\n.note-editor .label-info,\n.note-editor .badge-info {\n background-color: #3a87ad;\n}\n.note-editor .label-info[href],\n.note-editor .badge-info[href] {\n background-color: #2d6987;\n}\n.note-editor .label-inverse,\n.note-editor .badge-inverse {\n background-color: #333333;\n}\n.note-editor .label-inverse[href],\n.note-editor .badge-inverse[href] {\n background-color: #1a1a1a;\n}\n.note-editor .btn .label,\n.note-editor .btn .badge {\n position: relative;\n top: -1px;\n}\n.note-editor .btn-mini .label,\n.note-editor .btn-mini .badge {\n top: 0;\n}\n@-webkit-keyframes progress-bar-stripes {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n@-moz-keyframes progress-bar-stripes {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n@-ms-keyframes progress-bar-stripes {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n@-o-keyframes progress-bar-stripes {\n from {\n background-position: 0 0;\n }\n to {\n background-position: 40px 0;\n }\n}\n@keyframes progress-bar-stripes {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n.note-editor .progress {\n overflow: hidden;\n height: 20px;\n margin-bottom: 20px;\n background-color: #f7f7f7;\n background-image: -moz-linear-gradient(top, #f5f5f5, #f9f9f9);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9));\n background-image: -webkit-linear-gradient(top, #f5f5f5, #f9f9f9);\n background-image: -o-linear-gradient(top, #f5f5f5, #f9f9f9);\n background-image: linear-gradient(to bottom, #f5f5f5, #f9f9f9);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0);\n -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);\n -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n}\n.note-editor .progress .bar {\n width: 0%;\n height: 100%;\n color: #ffffff;\n float: left;\n font-size: 12px;\n text-align: center;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n background-color: #0e90d2;\n background-image: -moz-linear-gradient(top, #149bdf, #0480be);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be));\n background-image: -webkit-linear-gradient(top, #149bdf, #0480be);\n background-image: -o-linear-gradient(top, #149bdf, #0480be);\n background-image: linear-gradient(to bottom, #149bdf, #0480be);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0);\n -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);\n -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);\n box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-transition: width 0.6s ease;\n -moz-transition: width 0.6s ease;\n -o-transition: width 0.6s ease;\n transition: width 0.6s ease;\n}\n.note-editor .progress .bar + .bar {\n -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15);\n -moz-box-shadow: inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15);\n box-shadow: inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15);\n}\n.note-editor .progress-striped .bar {\n background-color: #149bdf;\n background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n -webkit-background-size: 40px 40px;\n -moz-background-size: 40px 40px;\n -o-background-size: 40px 40px;\n background-size: 40px 40px;\n}\n.note-editor .progress.active .bar {\n -webkit-animation: progress-bar-stripes 2s linear infinite;\n -moz-animation: progress-bar-stripes 2s linear infinite;\n -ms-animation: progress-bar-stripes 2s linear infinite;\n -o-animation: progress-bar-stripes 2s linear infinite;\n animation: progress-bar-stripes 2s linear infinite;\n}\n.note-editor .progress-danger .bar,\n.note-editor .progress .bar-danger {\n background-color: #dd514c;\n background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#c43c35));\n background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35);\n background-image: -o-linear-gradient(top, #ee5f5b, #c43c35);\n background-image: linear-gradient(to bottom, #ee5f5b, #c43c35);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffc43c35', GradientType=0);\n}\n.note-editor .progress-danger.progress-striped .bar,\n.note-editor .progress-striped .bar-danger {\n background-color: #ee5f5b;\n background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.note-editor .progress-success .bar,\n.note-editor .progress .bar-success {\n background-color: #5eb95e;\n background-image: -moz-linear-gradient(top, #62c462, #57a957);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#57a957));\n background-image: -webkit-linear-gradient(top, #62c462, #57a957);\n background-image: -o-linear-gradient(top, #62c462, #57a957);\n background-image: linear-gradient(to bottom, #62c462, #57a957);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff57a957', GradientType=0);\n}\n.note-editor .progress-success.progress-striped .bar,\n.note-editor .progress-striped .bar-success {\n background-color: #62c462;\n background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.note-editor .progress-info .bar,\n.note-editor .progress .bar-info {\n background-color: #4bb1cf;\n background-image: -moz-linear-gradient(top, #5bc0de, #339bb9);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#339bb9));\n background-image: -webkit-linear-gradient(top, #5bc0de, #339bb9);\n background-image: -o-linear-gradient(top, #5bc0de, #339bb9);\n background-image: linear-gradient(to bottom, #5bc0de, #339bb9);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff339bb9', GradientType=0);\n}\n.note-editor .progress-info.progress-striped .bar,\n.note-editor .progress-striped .bar-info {\n background-color: #5bc0de;\n background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.note-editor .progress-warning .bar,\n.note-editor .progress .bar-warning {\n background-color: #faa732;\n background-image: -moz-linear-gradient(top, #fbb450, #f89406);\n background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));\n background-image: -webkit-linear-gradient(top, #fbb450, #f89406);\n background-image: -o-linear-gradient(top, #fbb450, #f89406);\n background-image: linear-gradient(to bottom, #fbb450, #f89406);\n background-repeat: repeat-x;\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);\n}\n.note-editor .progress-warning.progress-striped .bar,\n.note-editor .progress-striped .bar-warning {\n background-color: #fbb450;\n background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));\n background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);\n}\n.note-editor .accordion {\n margin-bottom: 20px;\n}\n.note-editor .accordion-group {\n margin-bottom: 2px;\n border: 1px solid #e5e5e5;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n}\n.note-editor .accordion-heading {\n border-bottom: 0;\n}\n.note-editor .accordion-heading .accordion-toggle {\n display: block;\n padding: 8px 15px;\n}\n.note-editor .accordion-toggle {\n cursor: pointer;\n}\n.note-editor .accordion-inner {\n padding: 9px 15px;\n border-top: 1px solid #e5e5e5;\n}\n.note-editor .carousel {\n position: relative;\n margin-bottom: 20px;\n line-height: 1;\n}\n.note-editor .carousel-inner {\n overflow: hidden;\n width: 100%;\n position: relative;\n}\n.note-editor .carousel-inner > .item {\n display: none;\n position: relative;\n -webkit-transition: 0.6s ease-in-out left;\n -moz-transition: 0.6s ease-in-out left;\n -o-transition: 0.6s ease-in-out left;\n transition: 0.6s ease-in-out left;\n}\n.note-editor .carousel-inner > .item > img,\n.note-editor .carousel-inner > .item > a > img {\n display: block;\n line-height: 1;\n}\n.note-editor .carousel-inner > .active,\n.note-editor .carousel-inner > .next,\n.note-editor .carousel-inner > .prev {\n display: block;\n}\n.note-editor .carousel-inner > .active {\n left: 0;\n}\n.note-editor .carousel-inner > .next,\n.note-editor .carousel-inner > .prev {\n position: absolute;\n top: 0;\n width: 100%;\n}\n.note-editor .carousel-inner > .next {\n left: 100%;\n}\n.note-editor .carousel-inner > .prev {\n left: -100%;\n}\n.note-editor .carousel-inner > .next.left,\n.note-editor .carousel-inner > .prev.right {\n left: 0;\n}\n.note-editor .carousel-inner > .active.left {\n left: -100%;\n}\n.note-editor .carousel-inner > .active.right {\n left: 100%;\n}\n.note-editor .carousel-control {\n position: absolute;\n top: 40%;\n left: 15px;\n width: 40px;\n height: 40px;\n margin-top: -20px;\n font-size: 60px;\n font-weight: 100;\n line-height: 30px;\n color: #ffffff;\n text-align: center;\n background: #222222;\n border: 3px solid #ffffff;\n -webkit-border-radius: 23px;\n -moz-border-radius: 23px;\n border-radius: 23px;\n opacity: 0.5;\n filter: alpha(opacity=50);\n}\n.note-editor .carousel-control.right {\n left: auto;\n right: 15px;\n}\n.note-editor .carousel-control:hover,\n.note-editor .carousel-control:focus {\n color: #ffffff;\n text-decoration: none;\n opacity: 0.9;\n filter: alpha(opacity=90);\n}\n.note-editor .carousel-indicators {\n position: absolute;\n top: 15px;\n right: 15px;\n z-index: 5;\n margin: 0;\n list-style: none;\n}\n.note-editor .carousel-indicators li {\n display: block;\n float: left;\n width: 10px;\n height: 10px;\n margin-left: 5px;\n text-indent: -999px;\n background-color: #ccc;\n background-color: rgba(255, 255, 255, 0.25);\n border-radius: 5px;\n}\n.note-editor .carousel-indicators .active {\n background-color: #fff;\n}\n.note-editor .carousel-caption {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n padding: 15px;\n background: #333333;\n background: rgba(0, 0, 0, 0.75);\n}\n.note-editor .carousel-caption h4,\n.note-editor .carousel-caption p {\n color: #ffffff;\n line-height: 20px;\n}\n.note-editor .carousel-caption h4 {\n margin: 0 0 5px;\n}\n.note-editor .carousel-caption p {\n margin-bottom: 0;\n}\n.note-editor .hero-unit {\n padding: 60px;\n margin-bottom: 30px;\n font-size: 18px;\n font-weight: 200;\n line-height: 30px;\n color: inherit;\n background-color: #eeeeee;\n -webkit-border-radius: 6px;\n -moz-border-radius: 6px;\n border-radius: 6px;\n}\n.note-editor .hero-unit h1 {\n margin-bottom: 0;\n font-size: 60px;\n line-height: 1;\n color: inherit;\n letter-spacing: -1px;\n}\n.note-editor .hero-unit li {\n line-height: 30px;\n}\n.note-editor .pull-right {\n float: right;\n}\n.note-editor .pull-left {\n float: left;\n}\n.note-editor .hide {\n display: none;\n}\n.note-editor .show {\n display: block;\n}\n.note-editor .invisible {\n visibility: hidden;\n}\n.note-editor .affix {\n position: fixed;\n}\n"},"meta":{"kind":"string","value":"{'content_hash': '7e6cce481c4a1665e92e1b4fddb53de4', 'timestamp': '', 'source': 'github', 'line_count': 5260, 'max_line_length': 304, 'avg_line_length': 27.881368821292774, 'alnum_prop': 0.6892864935631682, 'repo_name': 'k-int/ClaimShibIdenentity', 'id': 'eb7fa9481474791727ef80894f0a4ff29db1d098', 'size': '146888', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'claimIdentity/grails-app/assets/stylesheets/summernote-bs2.css', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'CSS', 'bytes': '373820'}, {'name': 'Groovy', 'bytes': '23582'}, {'name': 'JavaScript', 'bytes': '548'}, {'name': 'Shell', 'bytes': '15576'}]}"}}},{"rowIdx":849157,"cells":{"text":{"kind":"string","value":"\n\n\n\nLogin Page - Photon Admin Panel Theme\n\n\n\n \n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    \n
    \n
    \n\n
    \n
    \n
    \n\n\n\n"},"meta":{"kind":"string","value":"{'content_hash': '4f4640a5c0fb3d6d4d6bf673cd617a6f', 'timestamp': '', 'source': 'github', 'line_count': 182, 'max_line_length': 208, 'avg_line_length': 78.24725274725274, 'alnum_prop': 0.7345692016010111, 'repo_name': 'user-tony/photon-rails', 'id': '8c6eecace33da7ced17844ace282ff123bf4368a', 'size': '14241', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'lib/assets/images/photon/plugins/elrte/js/bootstrap/images/photon/css/css_compiled/js/plugins/jquery.mockjax.js.html', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'HTML', 'bytes': '291750913'}, {'name': 'JavaScript', 'bytes': '59305'}, {'name': 'Ruby', 'bytes': '203'}, {'name': 'Shell', 'bytes': '99'}]}"}}},{"rowIdx":849158,"cells":{"text":{"kind":"string","value":"title = BTreeInorder\n\nall: $(title).java\n\tjavac $(title).java\n\nagain:\n\tjavac $(title).java\n\nrun: $(title).class\n\tjava $(title)\n"},"meta":{"kind":"string","value":"{'content_hash': '45c1a3881749ff82a06e09679b66d0ad', 'timestamp': '', 'source': 'github', 'line_count': 10, 'max_line_length': 20, 'avg_line_length': 12.7, 'alnum_prop': 0.6614173228346457, 'repo_name': 'shaotao/Leetcode', 'id': '2a7d890891612f4d2b185858b9166b165eaff66f', 'size': '127', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'algorithm/btree_inorder/Makefile', 'mode': '33261', 'license': 'mit', 'language': [{'name': 'Java', 'bytes': '1050349'}, {'name': 'Makefile', 'bytes': '82241'}, {'name': 'Python', 'bytes': '1266'}, {'name': 'SQLPL', 'bytes': '266'}, {'name': 'Shell', 'bytes': '1060'}]}"}}},{"rowIdx":849159,"cells":{"text":{"kind":"string","value":"cask \"font-source-code-pro-for-powerline\" do\n version :latest\n sha256 :no_check\n\n url \"https://github.com/powerline/fonts/trunk/SourceCodePro\",\n using: :svn\n name \"Source Code Pro for Powerline\"\n homepage \"https://github.com/powerline/fonts/tree/master/SourceCodePro\"\n\n font \"Source Code Pro Black for Powerline.otf\"\n font \"Source Code Pro Bold for Powerline.otf\"\n font \"Source Code Pro ExtraLight for Powerline.otf\"\n font \"Source Code Pro Light for Powerline.otf\"\n font \"Source Code Pro Medium for Powerline.otf\"\n font \"Source Code Pro Powerline BlackItalic.otf\"\n font \"Source Code Pro Powerline BoldItalic.otf\"\n font \"Source Code Pro Powerline ExtraLightItalic.otf\"\n font \"Source Code Pro Powerline Italic.otf\"\n font \"Source Code Pro Powerline LightItalic.otf\"\n font \"Source Code Pro Powerline MediumItalic.otf\"\n font \"Source Code Pro Powerline SemiboldItalic.otf\"\n font \"Source Code Pro Semibold for Powerline.otf\"\n font \"Source Code Pro for Powerline.otf\"\nend\n"},"meta":{"kind":"string","value":"{'content_hash': '77f6286be949d008ec1c96ba00c9402e', 'timestamp': '', 'source': 'github', 'line_count': 24, 'max_line_length': 73, 'avg_line_length': 41.166666666666664, 'alnum_prop': 0.7631578947368421, 'repo_name': 'alerque/homebrew-fonts', 'id': 'f23b044cd07437335922dae11e37a5ae2d7c4d8f', 'size': '988', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'Casks/font-source-code-pro-for-powerline.rb', 'mode': '33188', 'license': 'bsd-2-clause', 'language': [{'name': 'Python', 'bytes': '8143'}, {'name': 'Ruby', 'bytes': '1069262'}]}"}}},{"rowIdx":849160,"cells":{"text":{"kind":"string","value":"(function (window) {\n\n // STEP 3: Create an object, called 'helloSpeaker' to which you will attach\n // the \"speak\" method and which you will expose to the global context\n // See Lecture 52, part 1\n // var helloSpeaker =\n\n var helloSpeaker = {};\n // DO NOT attach the speakWord variable to the 'helloSpeaker' object.\n var speakWord = \"Hello\";\n\n // STEP 4: Rewrite the 'speak' function such that it is attached to the\n // helloSpeaker object instead of being a standalone function.\n // See Lecture 52, part 2\n\n helloSpeaker.speak = function (name) {\n console.log(speakWord + \" \" + name);\n }\n\n // STEP 5: Expose the 'helloSpeaker' object to the global scope. Name it\n // 'helloSpeaker' on the global scope as well.\n // See Lecture 52, part 2\n // (Note, Step 6 will be done in the SpeakGoodBye.js file.)\n // xxxx.xxxx = helloSpeaker;\n\n window.helloSpeaker = helloSpeaker;\n\n})(window);\n"},"meta":{"kind":"string","value":"{'content_hash': 'cff094ffb50e9b0d600dfd7bc3dcf6c7', 'timestamp': '', 'source': 'github', 'line_count': 28, 'max_line_length': 77, 'avg_line_length': 32.214285714285715, 'alnum_prop': 0.6851441241685144, 'repo_name': 'LucasAntognoni/Web_Development', 'id': 'da6313c0485c6ba1d6a2a61501553cb2f91f93a2', 'size': '1000', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'module_4_solution/SpeakHello.js', 'mode': '33188', 'license': 'mit', 'language': [{'name': 'CSS', 'bytes': '9731'}, {'name': 'HTML', 'bytes': '16748'}, {'name': 'JavaScript', 'bytes': '18401'}]}"}}},{"rowIdx":849161,"cells":{"text":{"kind":"string","value":"\n\npackage org.apache.ignite.internal.cache.query.index.sorted.inline;\n\nimport java.util.UUID;\nimport java.util.concurrent.atomic.AtomicBoolean;\nimport org.apache.ignite.IgniteCheckedException;\nimport org.apache.ignite.IgniteException;\nimport org.apache.ignite.failure.FailureContext;\nimport org.apache.ignite.internal.cache.query.index.AbstractIndex;\nimport org.apache.ignite.internal.cache.query.index.Index;\nimport org.apache.ignite.internal.cache.query.index.SingleCursor;\nimport org.apache.ignite.internal.cache.query.index.sorted.DurableBackgroundCleanupIndexTreeTaskV2;\nimport org.apache.ignite.internal.cache.query.index.sorted.IndexKeyTypeSettings;\nimport org.apache.ignite.internal.cache.query.index.sorted.IndexRow;\nimport org.apache.ignite.internal.cache.query.index.sorted.IndexRowImpl;\nimport org.apache.ignite.internal.cache.query.index.sorted.IndexValueCursor;\nimport org.apache.ignite.internal.cache.query.index.sorted.InlineIndexRowHandler;\nimport org.apache.ignite.internal.cache.query.index.sorted.SortedIndexDefinition;\nimport org.apache.ignite.internal.cache.query.index.sorted.ThreadLocalRowHandlerHolder;\nimport org.apache.ignite.internal.metric.IoStatisticsHolderIndex;\nimport org.apache.ignite.internal.processors.cache.GridCacheContext;\nimport org.apache.ignite.internal.processors.cache.mvcc.MvccSnapshot;\nimport org.apache.ignite.internal.processors.cache.persistence.CacheDataRow;\nimport org.apache.ignite.internal.processors.cache.persistence.metastorage.pendingtask.DurableBackgroundTask;\nimport org.apache.ignite.internal.util.lang.GridCursor;\nimport org.apache.ignite.internal.util.typedef.internal.U;\nimport org.apache.ignite.spi.indexing.IndexingQueryCacheFilter;\nimport org.jetbrains.annotations.Nullable;\n\nimport static org.apache.ignite.cluster.ClusterState.INACTIVE;\nimport static org.apache.ignite.failure.FailureType.CRITICAL_ERROR;\n\n/**\n * Sorted index implementation.\n */\npublic class InlineIndexImpl extends AbstractIndex implements InlineIndex {\n /** Unique ID. */\n private final UUID id = UUID.randomUUID();\n\n /** Segments. */\n private final InlineIndexTree[] segments;\n\n /** Index function. */\n private final SortedIndexDefinition def;\n\n /** Name of underlying tree name. */\n private final String treeName;\n\n /** Cache context. */\n private final GridCacheContext cctx;\n\n /** */\n private final IoStatisticsHolderIndex stats;\n\n /** Row handler. */\n private final InlineIndexRowHandler rowHnd;\n\n /** Constructor. */\n public InlineIndexImpl(GridCacheContext cctx, SortedIndexDefinition def, InlineIndexTree[] segments,\n IoStatisticsHolderIndex stats) {\n this.cctx = cctx;\n this.segments = segments.clone();\n this.def = def;\n treeName = def.treeName();\n this.stats = stats;\n rowHnd = segments[0].rowHandler();\n }\n\n /** {@inheritDoc} */\n @Override public GridCursor find(IndexRow lower, IndexRow upper, int segment) throws IgniteCheckedException {\n return find(lower, upper, segment, null);\n }\n\n /** {@inheritDoc} */\n @Override public GridCursor find(\n IndexRow lower,\n IndexRow upper,\n int segment,\n IndexQueryContext qryCtx\n ) throws IgniteCheckedException {\n InlineTreeFilterClosure closure = filterClosure(qryCtx);\n\n // If it is known that only one row will be returned an optimization is employed\n if (isSingleRowLookup(lower, upper)) {\n IndexRowImpl row = segments[segment].findOne(lower, closure, null);\n\n if (row == null || isExpired(row))\n return IndexValueCursor.EMPTY;\n\n return new SingleCursor<>(row);\n }\n\n return segments[segment].find(lower, upper, closure, null);\n }\n\n /** {@inheritDoc} */\n @Override public long count(int segment) throws IgniteCheckedException {\n return segments[segment].size();\n }\n\n /** {@inheritDoc} */\n @Override public long count(int segment, IndexQueryContext qryCtx) throws IgniteCheckedException {\n return segments[segment].size(filterClosure(qryCtx));\n }\n\n /**\n * Returns number of elements in the tree by scanning pages of the bottom (leaf) level.\n *\n * @return Number of elements in the tree.\n * @throws IgniteCheckedException If failed.\n */\n @Override public long totalCount() throws IgniteCheckedException {\n long ret = 0;\n\n for (int i = 0; i < segmentsCount(); i++)\n ret += segments[i].size();\n\n return ret;\n }\n\n /** */\n private boolean isSingleRowLookup(IndexRow lower, IndexRow upper) throws IgniteCheckedException {\n return !cctx.mvccEnabled() && def.primary() && lower != null && isFullSchemaSearch(lower) && checkRowsTheSame(lower, upper);\n }\n\n /**\n * If {@code true} then length of keys for search must be equal to length of schema, so use full\n * schema to search. If {@code false} then it's possible to use only part of schema for search.\n */\n private boolean isFullSchemaSearch(IndexRow key) {\n int schemaLength = def.indexKeyDefinitions().size();\n\n for (int i = 0; i < schemaLength; i++) {\n // Java null means that column is not specified in a search row, for SQL NULL a special constant is used\n if (key.key(i) == null)\n return false;\n }\n\n return true;\n }\n\n /**\n * Checks both rows are the same.\n *

    \n * Primarly used to verify if the single row lookup optimization can be applied.\n *\n * @param r1 The first row.\n * @param r2 Another row.\n * @return {@code true} in case both rows are efficiently the same, {@code false} otherwise.\n */\n private boolean checkRowsTheSame(IndexRow r1, IndexRow r2) throws IgniteCheckedException {\n if (r1 == r2)\n return true;\n\n if (!(r1 != null && r2 != null))\n return false;\n\n int keysLen = def.indexKeyDefinitions().size();\n\n for (int i = 0; i < keysLen; i++) {\n Object v1 = r1.key(i);\n Object v2 = r2.key(i);\n\n if (v1 == null && v2 == null)\n continue;\n\n if (!(v1 != null && v2 != null))\n return false;\n\n if (def.rowComparator().compareKey((IndexRow) r1, (IndexRow) r2, i) != 0)\n return false;\n }\n\n return true;\n }\n\n /** {@inheritDoc} */\n @Override public GridCursor findFirst(int segment, IndexQueryContext qryCtx) throws IgniteCheckedException {\n InlineTreeFilterClosure closure = filterClosure(qryCtx);\n\n IndexRow found = segments[segment].findFirst(closure);\n\n if (found == null || isExpired(found))\n return IndexValueCursor.EMPTY;\n\n return new SingleCursor<>(found);\n }\n\n /** {@inheritDoc} */\n @Override public GridCursor findLast(int segment, IndexQueryContext qryCtx) throws IgniteCheckedException {\n InlineTreeFilterClosure closure = filterClosure(qryCtx);\n\n IndexRow found = segments[segment].findLast(closure);\n\n if (found == null || isExpired(found))\n return IndexValueCursor.EMPTY;\n\n return new SingleCursor<>(found);\n }\n\n /** {@inheritDoc} */\n @Override public UUID id() {\n return id;\n }\n\n /** {@inheritDoc} */\n @Override public String name() {\n return def.idxName().idxName();\n }\n\n /** {@inheritDoc} */\n @Override public void onUpdate(@Nullable CacheDataRow oldRow, @Nullable CacheDataRow newRow,\n boolean prevRowAvailable) throws IgniteCheckedException {\n try {\n if (destroyed.get())\n return;\n\n ThreadLocalRowHandlerHolder.rowHandler(rowHnd);\n\n boolean replaced = false;\n\n // Create or Update.\n if (newRow != null) {\n int segment = segmentForRow(newRow);\n\n IndexRowImpl row0 = new IndexRowImpl(rowHnd, newRow);\n\n row0.prepareCache();\n\n // Validate all keys before an actual put. User may specify wrong data types for an insert query.\n for (int i = 0; i < def.indexKeyDefinitions().size(); ++i)\n row0.key(i);\n\n replaced = putx(row0, segment, prevRowAvailable && !rebuildInProgress());\n }\n\n // Delete.\n if (!replaced && oldRow != null)\n remove(oldRow);\n\n } finally {\n ThreadLocalRowHandlerHolder.clearRowHandler();\n }\n }\n\n /** */\n private boolean putx(IndexRowImpl idxRow, int segment, boolean flag) throws IgniteCheckedException {\n try {\n boolean replaced;\n\n if (flag)\n replaced = segments[segment].putx(idxRow);\n else {\n IndexRow prevRow0 = segments[segment].put(idxRow);\n\n replaced = prevRow0 != null;\n }\n\n return replaced;\n\n } catch (Throwable t) {\n cctx.kernalContext().failure().process(new FailureContext(CRITICAL_ERROR, t));\n\n throw t;\n }\n }\n\n /** */\n private void remove(CacheDataRow row) throws IgniteCheckedException {\n try {\n int segment = segmentForRow(row);\n\n IndexRowImpl idxRow = new IndexRowImpl(rowHnd, row);\n\n idxRow.prepareCache();\n\n segments[segment].removex(idxRow);\n\n } catch (Throwable t) {\n cctx.kernalContext().failure().process(new FailureContext(CRITICAL_ERROR, t));\n\n throw t;\n }\n }\n\n /**\n * Put index row to index. This method is for internal use only.\n *\n * @param row Index row.\n */\n public void putIndexRow(IndexRowImpl row) throws IgniteCheckedException {\n int segment = segmentForRow(row.cacheDataRow());\n\n try {\n ThreadLocalRowHandlerHolder.rowHandler(rowHnd);\n\n segments[segment].putx(row);\n }\n finally {\n ThreadLocalRowHandlerHolder.clearRowHandler();\n }\n }\n\n /** {@inheritDoc} */\n @Override public T unwrap(Class clazz) {\n if (clazz == null)\n return null;\n\n if (clazz.isAssignableFrom(getClass()))\n return clazz.cast(this);\n\n throw new IllegalArgumentException(\n String.format(\"Cannot unwrap [%s] to [%s]\", getClass().getName(), clazz.getName())\n );\n }\n\n /** {@inheritDoc} */\n @Override public int inlineSize() {\n return segments[0].inlineSize();\n }\n\n /** */\n public IndexKeyTypeSettings keyTypeSettings() {\n return rowHnd.indexKeyTypeSettings();\n }\n\n /** {@inheritDoc} */\n @Override public int segmentsCount() {\n return segments.length;\n }\n\n /**\n * @param row Сache row.\n * @return Segment ID for given key.\n */\n public int segmentForRow(CacheDataRow row) {\n return calculateSegment(segmentsCount(), segmentsCount() == 1 ? 0 : rowHnd.partition(row));\n }\n\n /**\n * @param segmentsCnt Сount of segments in cache.\n * @param part Partition.\n * @return Segment ID for given segment count and partition.\n */\n public static int calculateSegment(int segmentsCnt, int part) {\n return segmentsCnt == 1 ? 0 : (part % segmentsCnt);\n }\n\n /** */\n private InlineTreeFilterClosure filterClosure(IndexQueryContext qryCtx) {\n if (qryCtx == null)\n return null;\n\n IndexingQueryCacheFilter cacheFilter = qryCtx.filter() == null ? null\n : qryCtx.filter().forCache(cctx.cache().name());\n\n MvccSnapshot v = qryCtx.mvccSnapshot();\n\n assert !cctx.mvccEnabled() || v != null;\n\n if (cacheFilter == null && v == null)\n return null;\n\n return new InlineTreeFilterClosure(\n cacheFilter, v, cctx, cctx.kernalContext().config().getGridLogger());\n }\n\n /** {@inheritDoc} */\n @Override public boolean created() {\n assert segments != null;\n\n for (int i = 0; i < segments.length; i++) {\n try {\n InlineIndexTree segment = segments[i];\n\n if (segment.created())\n return true;\n }\n catch (Exception e) {\n throw new IgniteException(\"Failed to check index tree root page existence [cacheName=\" +\n cctx.name() + \", tblName=\" + def.idxName().tableName() + \", idxName=\" + def.idxName().idxName() +\n \", segment=\" + i + ']');\n }\n }\n\n return false;\n }\n\n /** {@inheritDoc} */\n @Override public InlineIndexTree segment(int segment) {\n return segments[segment];\n }\n\n /**\n * Determines if provided row can be treated as expired at the current moment.\n *\n * @param row row to check.\n * @throws NullPointerException if provided row is {@code null}.\n */\n private static boolean isExpired(IndexRow row) {\n return row.cacheDataRow().expireTime() > 0 && row.cacheDataRow().expireTime() <= U.currentTimeMillis();\n }\n\n /** If {code true} then this index is already marked as destroyed. */\n private final AtomicBoolean destroyed = new AtomicBoolean();\n\n /** {@inheritDoc} */\n @Override public void destroy(boolean softDel) {\n // Already destroyed.\n if (!destroyed.compareAndSet(false, true))\n return;\n\n if (cctx.affinityNode() && !softDel) {\n for (InlineIndexTree segment : segments) {\n segment.markDestroyed();\n\n segment.close();\n }\n\n cctx.kernalContext().metric().remove(stats.metricRegistryName());\n\n if (cctx.group().persistenceEnabled() ||\n cctx.shared().kernalContext().state().clusterState().state() != INACTIVE) {\n // Actual destroy index task.\n DurableBackgroundTask task = new DurableBackgroundCleanupIndexTreeTaskV2(\n cctx.group().name(),\n cctx.name(),\n def.idxName().idxName(),\n treeName,\n UUID.randomUUID().toString(),\n segments.length,\n segments\n );\n\n cctx.kernalContext().durableBackgroundTask().executeAsync(task, cctx.config());\n }\n }\n }\n\n /** {@inheritDoc} */\n @Override public boolean canHandle(CacheDataRow row) throws IgniteCheckedException {\n return cctx.kernalContext().query().belongsToTable(\n cctx, def.idxName().cacheName(), def.idxName().tableName(), row.key(), row.value());\n }\n}\n"},"meta":{"kind":"string","value":"{'content_hash': 'ec87b9c3daac553a33df2b934050853f', 'timestamp': '', 'source': 'github', 'line_count': 446, 'max_line_length': 132, 'avg_line_length': 32.90134529147982, 'alnum_prop': 0.6159193130707373, 'repo_name': 'ascherbakoff/ignite', 'id': 'd09b17ca4375ed735f67d46c5273fbe8c715d027', 'size': '15478', 'binary': False, 'copies': '2', 'ref': 'refs/heads/master', 'path': 'modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/inline/InlineIndexImpl.java', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Batchfile', 'bytes': '56885'}, {'name': 'C', 'bytes': '5348'}, {'name': 'C#', 'bytes': '7523662'}, {'name': 'C++', 'bytes': '4116111'}, {'name': 'CMake', 'bytes': '47973'}, {'name': 'Dockerfile', 'bytes': '11896'}, {'name': 'Groovy', 'bytes': '15081'}, {'name': 'HTML', 'bytes': '14341'}, {'name': 'Java', 'bytes': '43965611'}, {'name': 'JavaScript', 'bytes': '1085'}, {'name': 'Jinja', 'bytes': '25514'}, {'name': 'M4', 'bytes': '623'}, {'name': 'Makefile', 'bytes': '63439'}, {'name': 'PHP', 'bytes': '11079'}, {'name': 'PowerShell', 'bytes': '13092'}, {'name': 'Python', 'bytes': '298224'}, {'name': 'Scala', 'bytes': '1385840'}, {'name': 'Shell', 'bytes': '652485'}]}"}}},{"rowIdx":849162,"cells":{"text":{"kind":"string","value":"@import UIKit;\n\n@interface EssentialsGalleryFlowLayoutAppDelegate : UIResponder \n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n"},"meta":{"kind":"string","value":"{'content_hash': 'c5d679890bea7ccaabb765cf27652104', 'timestamp': '', 'source': 'github', 'line_count': 7, 'max_line_length': 87, 'avg_line_length': 22.714285714285715, 'alnum_prop': 0.8176100628930818, 'repo_name': 'shinobicontrols/play-essentials-gallery-flowlayout', 'id': '83d88bfb6a9332171cc50897d047798b85e53c78', 'size': '887', 'binary': False, 'copies': '1', 'ref': 'refs/heads/master', 'path': 'EssentialsGalleryFlowLayout/EssentialsGalleryFlowLayout/EssentialsGalleryFlowLayoutAppDelegate.h', 'mode': '33188', 'license': 'apache-2.0', 'language': [{'name': 'Objective-C', 'bytes': '18325'}, {'name': 'Ruby', 'bytes': '1535'}]}"}}},{"rowIdx":849163,"cells":{"text":{"kind":"string","value":"{% extends \"base.html\" %}\n\n{% block title %}Google+ response{% endblock %}\n\n{% block content %}\n

    Google+ response

    \n {% if response.error %}\n

    Error: {{ response.error }}

    \n {% elif response.code %}\n