{ // 获取包含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 >>> browser.open(\"http://localhost/manfred/@@drawing\")\n >>> print browser.contents\n \n \n

Hello World

\n

Nothing for the moment

\n \n \n\n\"\"\"\n\nimport grok\nfrom megrok import z3cpt\n\nclass Mammoth(grok.Model):\n pass\n\n\nclass Painting(grok.View):\n pass\n\npainting = z3cpt.PageTemplate(\"\"\"\n\n\n

Hello World

\n\n\n\"\"\")\n\nclass Drawing(grok.View):\n\n @property\n def description(self):\n return u'Nothing for the moment'\n\ndrawing = z3cpt.PageTemplate(\"\"\"\n\n\n

Hello World

\n

Description

\n\n\n\"\"\")\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2012,"string":"2,012"}}},{"rowIdx":40768,"cells":{"__id__":{"kind":"number","value":19284403194068,"string":"19,284,403,194,068"},"blob_id":{"kind":"string","value":"4eacc4a854557c1e2a117439cc6acd09853c4114"},"directory_id":{"kind":"string","value":"0646af845f4e388e3ce60fa9ec310af3e9befd60"},"path":{"kind":"string","value":"/rg_expert/rg_expert.py"},"content_id":{"kind":"string","value":"85a9de08f4ee598ec0cb2722d3c0d49e3053116c"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"repo_name":{"kind":"string","value":"NekoNe/Monitor"},"repo_url":{"kind":"string","value":"https://github.com/NekoNe/Monitor"},"snapshot_id":{"kind":"string","value":"4f11dad065b51d8169375ccafb0bafd018e77a32"},"revision_id":{"kind":"string","value":"96aec0af85051ada6f86c79266c0735cf1acd942"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2020-05-30T23:34:56.342824","string":"2020-05-30T23:34:56.342824"},"revision_date":{"kind":"timestamp","value":"2012-07-20T19:24:44","string":"2012-07-20T19:24:44"},"committer_date":{"kind":"timestamp","value":"2012-07-20T19:24:44","string":"2012-07-20T19:24:44"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"#coding: utf-8\n\nimport urllib\nimport urllib2\nimport zmq\nimport StringIO\nimport os\nimport time\nimport re\nimport zmq\nimport time\n\nfrom datetime import date\nfrom lxml import etree\n\nRESOURCE = \"http://www.rg.ru\"\n\nTOPICS =\\\n[\"tema/doc-fedzakon\", \"tema/doc-postanov\",\n\"tema/doc-ukaz/\", \"/tema/doc-prikaz\",\n\"tema/doc-soobshenie\", \"tema/doc-raspr\",\n\"tema/doc-zakonoproekt\"]\n\nENCODING = 'windows-1251'\n\nARCHIVE = \"json/archive_list\"\nFORMAT = \".json\"\nPRINTABLE = \"printable\"\nPATH = \"docums\"\nCHUNK_SIZE = 10\n\n\ndef pack(url):\n result = \"\"\"\n\n \n \n \n\"\"\" % url\n\n print result\n return result\n\n\ndef save_doc(topic, url, rel_url, refer, sender):\n\n time.sleep(0.01)\n\n print \">>> [ng_expert]: Document url: \", url\n\n error = False\n req = urllib2.Request(url)\n req.add_header('Referer', refer)\n\n try:\n r = urllib2.urlopen(req)\n except urllib2.HTTPError, e:\n try:\n r = urllib2.urlopen(refer)\n error = True\n except:\n print \">>> [ng_expert]: SOCKET ERROR\"\n return\n except urllib2.URLError, e:\n print \">>> [ng_expert]: FAILED TO REACH SERVER <<<\"\n print \">>> [ng_expert]: Reason:\", e.reason\n return\n\n html = r.read()\n html = html.decode(ENCODING)\n\n if (not error):\n content_regex = re.compile(u\"(.+?)>> [ng_expert]: !!! Unusual markup !!!\"\n content = html\n else:\n content = content.group(1)\n else:\n content = html\n\n begin = content.find(\"Опубликовано\")\n end = content[begin:].find(\"г.\") + begin\n\n published = content[begin + 12:end+2]\n published = published.replace(\"&nbsp;\", \" \")\n print \"Дата публикации: \", published\n\n begin = content.find(\"Вступает в силу\")\n end = content[begin:].find(\"г.\") + begin\n\n actual = content[begin + 16:end+2]\n actual = actual.replace(\"&nbsp;\", \" \")\n print \"Вступает в силу: \", actual\n\n # attach\n parser = etree.HTMLParser()\n try:\n doc = etree.parse(StringIO.StringIO(html), parser)\n except:\n print \">>> [rg_expert]: can not parse html.\"\n return\n\n a_list_builder = etree.XPath(\"//a[@href]\")\n a_list = a_list_builder(doc)\n\n for tag in a_list:\n if (tag.text == None): continue\n text = tag.text\n if (text.find(\"При\") != -1):\n for attr, val in tag.items():\n if (attr == \"href\"): print \"file\", val\n\n content_regex = re.compile(u\"(.+?)<\", re.IGNORECASE | re.DOTALL | re.UNICODE)\n title = content_regex.search(html)\n\n if (title != None):\n title = title.group(1)\n print \"Заголовок:\", title\n\n\n sub_path = rel_url[:rel_url.rfind(\"/\")]\n path = PATH + \"/\" + topic + sub_path\n\n #print sub_path\n #print path\n\n page = \"<doc><published>%s</published><source>%s</source><content>%s</content></doc>\" % (published, url, content)\n\n sender.send(pack(url));\n\n# saving docs\n if (not os.path.exists(path)): os.makedirs(path)\n file_name = path + rel_url[rel_url.rfind(\"/\"):]\n\n try:\n fp = open(file_name, 'w')\n fp.write(page)\n fp.close()\n except:\n return\n print \">>> doc: \\\"%s\\\" stored at \\\"%s\\\"\" % (url, file_name)\n\n\ndef parse_chunk(resource, topic, chank_size, doc_id, sender):\n\n url = resource + \"/\" + topic + \"/\" + ARCHIVE + \"/\" + str(chank_size) + \"/\" + doc_id + FORMAT\n\n print \">>> [ng_expert]: Chunk url: \", url\n\n time.sleep(0.01)\n try:\n socket = urllib.urlopen(url)\n html = socket.read()\n except:\n print \">>> [ng_expert]: SOCKET ERROR\"\n return\n\n socket.close()\n\n #html = html.decode(ENCODING)\n\n html = html[2:-2]\n\n parser = etree.HTMLParser()\n try:\n doc = etree.parse(StringIO.StringIO(html), parser)\n except:\n print \">>> [rg_expert]: can not parse html.\"\n return\n\n a_list_builder = etree.XPath(\"//a[@href]\")\n a_list = a_list_builder(doc)\n\n for tag in a_list:\n rel_url = tag.items()[0][1][2:-2]\n refer = RESOURCE + '/' + rel_url\n url = RESOURCE + '/' + PRINTABLE + rel_url\n print url\n save_doc(topic, url, rel_url, refer, sender)\n\n\ndef open_topic(resource, topic, sender):\n url = resource + \"/\" + topic\n\n print \">>> [ng_expert]: ng_topic url:\", url\n\n time.sleep(0.01)\n\n try:\n socket = urllib.urlopen(url)\n html = socket.read()\n except:\n print \">>> [ng_expert]: SOCKET ERROR\"\n return\n\n socket.close()\n\n html = html.decode(ENCODING)\n\n # getting ids\n ids_regex = re.compile(\"ids: \\[(.+?)\\]\", re.IGNORECASE | re.DOTALL | re.UNICODE)\n\n ids = ids_regex.search(html).group(1)\n ids = ids.split(',')\n\n # getting first document\n\n parser = etree.HTMLParser()\n try:\n doc = etree.parse(StringIO.StringIO(html), parser)\n except:\n print \">>> [rg_expert]: can not parse html.\"\n return\n\n a_list_builder = etree.XPath(u\"//div[@class='txt-np reddoc'][1]/a\")\n a_list = a_list_builder(doc)\n\n for tag in a_list:\n for attr, val in tag.items():\n rel_url = val\n refer = RESOURCE + '/' + rel_url\n url = RESOURCE + '/' + PRINTABLE + rel_url\n save_doc(topic, url, rel_url, refer, sender)\n # running through chunks\n i = 0\n while (i < len(ids)):\n id = ids[i]\n id = id.replace(\" \",\"\")\n if (id == \"\"): break\n parse_chunk(RESOURCE, topic, CHUNK_SIZE, id, sender)\n print ids[i][1:]\n i += CHUNK_SIZE\n\n\ndef full_load(sender):\n print \">>> [ng_expert]: Starting full_load\"\n for topic in TOPICS:\n open_topic(RESOURCE, topic, sender)\n\ndef update(sender):\n print \">>> [ng_expert]: Starting update\"\n\n today = date.today()\n\n day = str(today.day)\n month = str(today.month)\n year = str(today.year)\n\n if (len(month) == 1): month = \"0\" + month\n if (len(day) == 1): day = \"0\" + day\n\n print \">>> [ng_expert]: Date today (yyyy.mm.dd): %s.%s.%s\" % (year, month, day)\n additional_path = \"/\" + year + \"/\" + month + \"/\" + day\n\n for topic in TOPICS:\n open_topic(RESOURCE, topic + additional_path, sender)\n\ndef handler(request,sender):\n\n parser = etree.XMLParser()\n root = etree.XML(request, parser)\n\n tag = root.tag\n\n if (tag != \"request\"):\n print \">>> [ng_expert]: Unknown request\"\n return\n if (root.items() == None):\n print \">>> [ng_expert]: Wrong parametrs\"\n return\n\n attr = root.items()[0][0]\n val = root.items()[0][1]\n\n if ((attr == None) or (val == None)):\n print \">>> [ng_expert]: Wrong parametrs\"\n return\n\n if (attr != \"type\"):\n print \">>> [ng_expert]: Unknown attribue\"\n return\n\n if (val == \"update\"):\n update(sender)\n return\n if (val == \"full_load\"):\n full_load(sender)\n return\n\n print \">>> [ng_expert]: Unknown attribute value\"\n\ndef main():\n context = zmq.Context()\n\n sender = context.socket(zmq.PUSH)\n sender.connect(\"tcp://localhost:5569\")\n\n receiver = context.socket(zmq.PULL)\n receiver.connect(\"tcp://localhost:5559\")\n\n print \"test\"\n while (True):\n print \">>> [ng_expert]: Waiting for request...\"\n request = receiver.recv()\n print \">>> [ng_expert]: Request:\\n%s\" % request\n handler(request, sender)\n\n\nif (__name__ == \"__main__\"): main()\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2012,"string":"2,012"}}},{"rowIdx":40769,"cells":{"__id__":{"kind":"number","value":19696720047271,"string":"19,696,720,047,271"},"blob_id":{"kind":"string","value":"6f0327c6bedb1a06db92b849e157d4f1235b2798"},"directory_id":{"kind":"string","value":"d1ec20862b701a06e7994da8c530468882eedf4e"},"path":{"kind":"string","value":"/accountman/tests/test_cli.py"},"content_id":{"kind":"string","value":"6c4ecd15c46281f1978b19b7a293627f2159ec5d"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"repo_name":{"kind":"string","value":"jarrodmillman/accountman"},"repo_url":{"kind":"string","value":"https://github.com/jarrodmillman/accountman"},"snapshot_id":{"kind":"string","value":"4d6a7ae0e53bd1856b781ecce3c9cc4c7d764004"},"revision_id":{"kind":"string","value":"aeeb820a4d05dc01d9a323f65fddec0459c38494"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2021-01-02T23:07:18.374605","string":"2021-01-02T23:07:18.374605"},"revision_date":{"kind":"timestamp","value":"2010-10-18T08:42:52","string":"2010-10-18T08:42:52"},"committer_date":{"kind":"timestamp","value":"2010-10-18T14:23:50","string":"2010-10-18T14:23:50"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"import unittest\n\nclass testcli(unittest.TestCase):\n\n def test_load(self):\n pass\n \n def test_save(self):\n pass\n \n def test_new(self):\n pass\n \n def test_pprint(self):\n pass\n\nif __name__ == '__main__':\n unittest.main()\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2010,"string":"2,010"}}},{"rowIdx":40770,"cells":{"__id__":{"kind":"number","value":2353642128830,"string":"2,353,642,128,830"},"blob_id":{"kind":"string","value":"f0e83bae02c878952b96814737563db065912a28"},"directory_id":{"kind":"string","value":"3ecff544611bc81b1be3d1bb10a0ddf5752c4d53"},"path":{"kind":"string","value":"/Base_ROS_Vision/python/packet_utils.py"},"content_id":{"kind":"string","value":"63ad2cc5b9db83b48918ffdba0ad84855c33c8c9"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"repo_name":{"kind":"string","value":"SPARC-Auburn/IEEE-Southeast-2013"},"repo_url":{"kind":"string","value":"https://github.com/SPARC-Auburn/IEEE-Southeast-2013"},"snapshot_id":{"kind":"string","value":"87a7d83f49f9430905d8b46ea3f42dd60b699536"},"revision_id":{"kind":"string","value":"e0d3710bb52ccc4fc399334231ccee705c21d965"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2021-03-22T00:53:08.271054","string":"2021-03-22T00:53:08.271054"},"revision_date":{"kind":"timestamp","value":"2013-04-02T03:45:02","string":"2013-04-02T03:45:02"},"committer_date":{"kind":"timestamp","value":"2013-04-02T03:45:20","string":"2013-04-02T03:45:20"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"#!/usr/bin/env python\n\nimport packet_eater\n\n#TODO: change name to packet_utils\n\nNIBBLE_OFFSET = 4\nBYTE_OFFSET = 8\n\n#Length codes\nUNKNOWN_LENGTH_FORMAT = 0b0000\nFOUR_INCH_FORMAT = 0b0001\nTHREE_INCH_FORMAT = 0b0010\nTWO_INCH_FORMAT = 0b0011\n\nFOUR_INCH = 4\nTHREE_INCH = 3\nTWO_INCH = 2\n\n#Color codes\nUNKNOWN_COLOR_FORMAT = 0b0000\nYELLOW_FORMAT = 0b0001\nORANGE_FORMAT = 0b0010\nBROWN_FORMAT = 0b0011\nGREEN_FORMAT = 0b0100\nRED_FORMAT = 0b0101\nBLUE_FORMAT = 0b0110\n\ndef decode_length(binary_string, length_nibble_position):\n \"\"\" Decode length portion of the packet \"\"\"\n length_info = packet_eater.read_nibbles(binary_string, \n length_nibble_position)\n length_info = bin(int(length_info, 2))\n if length_info == bin(UNKNOWN_LENGTH_FORMAT):\n length = None\n elif length_info == bin(FOUR_INCH_FORMAT):\n length = 4\n elif length_info == bin(THREE_INCH_FORMAT):\n length = 3\n elif length_info == bin(TWO_INCH_FORMAT):\n length = 2\n \n return length\n\ndef decode_color(binary_string, color_nibble_position):\n \"\"\" Decode color portion of the packet \"\"\"\n\n color_info = packet_eater.read_nibbles(binary_string, \n color_nibble_position)\n color_info = bin(int(color_info, 2))\n if color_info == bin(UNKNOWN_COLOR_FORMAT):\n color = 'unknown'\n elif color_info == bin(YELLOW_FORMAT):\n color = 'yellow'\n elif color_info == bin(ORANGE_FORMAT):\n color = 'orange'\n elif color_info == bin(BROWN_FORMAT):\n color = 'brown'\n elif color_info == bin(GREEN_FORMAT):\n color = 'green'\n elif color_info == bin(BLUE_FORMAT):\n color = 'blue'\n elif color_info == bin(RED_FORMAT):\n color = 'red'\n\n return color\n\ndef encode_color(color):\n \"\"\" Encode color portion of block byte \"\"\"\n\n color_binary = \"\"\n \n #TODO: Determine input values\n\n if color == YELLOW_RANGE:\n color_binary = YELLOW_FORMAT\n elif color_binary == ORANGE_RANGE:\n color_binary = ORANGE_FORMAT\n elif color == BROWN_RANGE:\n color_binary = BROWN_FORMAT\n elif color == GREEN_RANGE:\n color_binary = GREEN_FORMAT\n elif color == RED_RANGE:\n color_binary = RED_FORMAT\n else:\n color_binary = UNKNOWN_COLOR_FORMAT\n\n return packet_eater.byte_to_string(color_binary)\n\ndef encode_length(length):\n \"\"\" Encode length portion of block byte \"\"\"\n \n length_binary = \"\"\n\n if length == FOUR_INCH:\n length_binary = FOUR_INCH_FORMAT\n elif length == THREE_INCH:\n length_binary = THREE_INCH_FORMAT\n elif length == TWO_INCH:\n length_binary = TWO_INCH_FORMAT\n else: \n length_binary = UNKNOWN_LENGTH_FORMAT\n \n return packet_eater.byte_to_string(length_binary)\n\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2013,"string":"2,013"}}},{"rowIdx":40771,"cells":{"__id__":{"kind":"number","value":16587163719003,"string":"16,587,163,719,003"},"blob_id":{"kind":"string","value":"63acb6813fc39a376206ebcdbcf45bce61966afe"},"directory_id":{"kind":"string","value":"7e8c72c099b231078a763ea7da6bba4bd6bac77b"},"path":{"kind":"string","value":"/other_projects/base_station_monitor/Goku/scripts/GokuCtrl/ipa4django/views/excel.py"},"content_id":{"kind":"string","value":"6cf4ceae1c27ce62a35da964f29abbee680130cf"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"repo_name":{"kind":"string","value":"github188/demodemo"},"repo_url":{"kind":"string","value":"https://github.com/github188/demodemo"},"snapshot_id":{"kind":"string","value":"fd910a340d5c5fbf4c8755580db8ab871759290b"},"revision_id":{"kind":"string","value":"96ed049eb398c4c188a688e9c1bc2fe8cd2dc80b"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2021-01-12T17:16:36.199708","string":"2021-01-12T17:16:36.199708"},"revision_date":{"kind":"timestamp","value":"2012-08-15T14:20:51","string":"2012-08-15T14:20:51"},"committer_date":{"kind":"timestamp","value":"2012-08-15T14:20:51","string":"2012-08-15T14:20:51"},"github_id":{"kind":"number","value":71537068,"string":"71,537,068"},"star_events_count":{"kind":"number","value":1,"string":"1"},"fork_events_count":{"kind":"number","value":2,"string":"2"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"bool","value":true,"string":"true"},"gha_event_created_at":{"kind":"timestamp","value":"2016-10-21T06:38:22","string":"2016-10-21T06:38:22"},"gha_created_at":{"kind":"timestamp","value":"2016-10-21T06:38:22","string":"2016-10-21T06:38:22"},"gha_updated_at":{"kind":"timestamp","value":"2015-10-05T04:12:38","string":"2015-10-05T04:12:38"},"gha_pushed_at":{"kind":"timestamp","value":"2015-10-05T04:13:25","string":"2015-10-05T04:13:25"},"gha_size":{"kind":"number","value":339228,"string":"339,228"},"gha_stargazers_count":{"kind":"number","value":0,"string":"0"},"gha_forks_count":{"kind":"number","value":0,"string":"0"},"gha_open_issues_count":{"kind":"number","value":0,"string":"0"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"from pyExcelerator import *\n\nclass ExcelSheet(object):\n def __init__(self, name, colums):\n self.name = name\n self.colums = colums\n self.cur_row = 0\n self.start_col = 0\n self.header_style = XFStyle()\n \n fnt = Font()\n fnt.name = 'Arial'\n fnt.outline = False\n fnt.bold = True\n fnt.height = 300\n \n self.header_style.font = fnt \n\n def init_sheet(self, book, data):\n self.sheet = book.add_sheet(self.name)\n \n def export_header(self, data):\n \n cur_row = self.next_row()\n \n cur_col = self.start_col\n for col in self.colums:\n col.col = cur_col\n self.sheet.write(cur_row, col.col, unicode(col.name), self.header_style)\n if col.width > 0:\n for i in range(col.cols):\n self.sheet.col(col.col + i).width = col.width * 300\n cur_col += col.cols\n \n def export_data(self, data):\n \n for row_data in data:\n cur_row = self.next_row()\n for col in self.colums:\n args = [cur_row, col.col, unicode(col.fetch_value(row_data))]\n style = col.fetch_style(row_data)\n if style: args.append(style)\n if col.cols == 1:\n self.sheet.write(*args)\n else:\n args.insert(1, cur_row)\n args.insert(3, col.col + col.cols - 1)\n self.sheet.write_merge(*args)\n\n\n def next_row(self, row=-1):\n if row != -1: \n self.cur_row = row\n else:\n self.cur_row += 1\n \n return self.cur_row\n \n# -*- coding: utf-8 -*-\n\nclass ExcelColumn():\n def __init__(self, name, attr_name, func=None, desc='', cols=1, width=0):\n self.col = 0\n self.cols = cols\n self.style = None\n self.name = name\n self.func = func\n self.attr_name = attr_name\n self.width = width\n if self.width == 0:\n self.width = len(self.name) + 2\n \n def fetch_value(self, data):\n if self.func is not None:\n return self.func(data)\n else:\n v = data\n for f in self.attr_name.split(\".\"):\n v = self._get_attr(v, f)\n if v is None: return u''\n return v\n \n def _get_attr(self, v, f):\n if isinstance(v, dict) or hasattr(v, \"__getitem__\"):\n return v[f]\n else:\n return getattr(v, f)\n \n def fetch_style(self, data):\n pass\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2012,"string":"2,012"}}},{"rowIdx":40772,"cells":{"__id__":{"kind":"number","value":11785390294026,"string":"11,785,390,294,026"},"blob_id":{"kind":"string","value":"d26c77015ba68e2bbcadf8be214cc6e3c7d86564"},"directory_id":{"kind":"string","value":"761deb35232b6f02edd24f6ec7214a3cf8ed5bff"},"path":{"kind":"string","value":"/level0/portfolio/admin.py"},"content_id":{"kind":"string","value":"9e53b1493deba8412a2fcf08776409a99c9ce8bb"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"repo_name":{"kind":"string","value":"dmeehan/douglasmeehan.com"},"repo_url":{"kind":"string","value":"https://github.com/dmeehan/douglasmeehan.com"},"snapshot_id":{"kind":"string","value":"4c1f79db5694e07e3c153116d6c975df804a7652"},"revision_id":{"kind":"string","value":"1c5f55e4619c0ad48c3b66262cf7bf35f6d8cb58"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2020-03-30T04:26:58.446207","string":"2020-03-30T04:26:58.446207"},"revision_date":{"kind":"timestamp","value":"2013-07-01T03:57:36","string":"2013-07-01T03:57:36"},"committer_date":{"kind":"timestamp","value":"2013-07-01T03:57:36","string":"2013-07-01T03:57:36"},"github_id":{"kind":"number","value":1369973,"string":"1,369,973"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"# portfolio/admin.py\n\nfrom django.contrib import admin\nfrom django import forms\n\nfrom level0.portfolio.models import *\nfrom level0.contacts.models import *\n#from level0.organize.models import *\n\nclass DisciplineInline(admin.TabularInline):\n model = Project.disciplines.through\n extra = 2\n verbose_name = \"discipline\"\n verbose_name_plural = \"disciplines\"\n \n # Grappelli options\n allow_add = True\n classes = ('collapse-closed',)\n \nclass ClientInline(admin.TabularInline):\n model = Client\n extra = 1\n \n # Grappelli options\n allow_add = True\n classes = ('collapse-closed',)\n sort_field_name = \"order\"\n \nclass CollaboratorInline(admin.TabularInline):\n model = Collaborator\n extra = 1\n \n # Grappelli options\n allow_add = True\n classes = ('collapse-closed',)\n sort_field_name = \"order\"\n\nclass FirmInline(admin.TabularInline):\n model = Firm\n extra = 1\n \n # Grappelli options\n allow_add = True\n classes = ('collapse-closed',)\n \n#class CategoryItemInline(generic.GenericTabularInline):\n #model = CategoryItem\n #extra = 1\n #verbose_name = \"category\"\n #verbose_name_plural = \"categories\"\n \n # Grappelli options\n #allow_add = True\n #classes = ('collapse-closed',)\n \nclass ProjectVisualInline(admin.TabularInline):\n model = ProjectVisual\n verbose_name = \"visual\"\n verbose_name_plural = \"visuals\"\n \n # Grappelli options\n allow_add = True\n classes = ('collapse-closed',)\n sort_field_name = \"order\"\n \nclass ProjectAudioInline(admin.TabularInline):\n model = ProjectAudio\n verbose_name = \"audio\"\n verbose_name_plural = \"audio\"\n \n # Grappelli options\n allow_add = True\n classes = ('collapse-closed',)\n sort_field_name = \"order\"\n\nclass ProjectDocumentInline(admin.TabularInline):\n model = ProjectDocument\n verbose_name = \"document\"\n verbose_name_plural = \"documents\"\n \n # Grappelli options\n allow_add = True\n classes = ('collapse-closed',)\n \nclass ProjectAdmin(admin.ModelAdmin):\n list_display = ('title', 'date', 'status', 'featured_home', 'featured_work', 'enable_comments', )\n prepopulated_fields = {'slug': ('title',)}\n list_editable = ('status', 'featured_home', 'featured_work', 'enable_comments', )\n \n fieldsets = (\n ('Content', {\n 'fields': ('title', 'context', 'date', 'description', 'external_url',)\n }),\n ('Meta', {\n 'classes': ('collapse-open',),\n 'fields': ('status', 'featured_home', 'featured_work', 'enable_comments', 'tags', 'slug',)\n }),\n ('Studio', {\n 'classes': ('collapse-closed',),\n 'fields': ('studio',)\n }),\n ('Competition', {\n 'classes': ('collapse-closed',),\n 'fields': ('competition',)\n }),\n )\n \n inlines = (DisciplineInline, CollaboratorInline, \n ClientInline, FirmInline, \n ProjectVisualInline, ProjectAudioInline, ProjectDocumentInline)\n \n # Grappelli options\n order = 0\n\n\nclass CompetitionAdmin(admin.ModelAdmin):\n prepopulated_fields = {'slug': ('name',)}\n \n # Grappelli options\n order = 4\n \nclass ProgramAdmin(admin.ModelAdmin):\n prepopulated_fields = {'slug': ('name',)}\n \n # Grappelli options\n order = 3\n \nclass StudioAdmin(admin.ModelAdmin):\n prepopulated_fields = {'slug': ('name',)}\n \n # Grappelli options\n order = 2\n \nclass DisciplineAdmin(admin.ModelAdmin):\n prepopulated_fields = {'slug': ('name',)}\n \n # Grappelli options\n order = 1\n\nclass ProjectVisualAdmin(admin.ModelAdmin):\n pass\n \n \nadmin.site.register(Discipline, DisciplineAdmin)\nadmin.site.register(Studio, StudioAdmin)\nadmin.site.register(Competition, CompetitionAdmin)\nadmin.site.register(Program, ProgramAdmin)\nadmin.site.register(Project, ProjectAdmin)\nadmin.site.register(ProjectVisual, ProjectVisualAdmin)\n\n\n\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2013,"string":"2,013"}}},{"rowIdx":40773,"cells":{"__id__":{"kind":"number","value":8486855392433,"string":"8,486,855,392,433"},"blob_id":{"kind":"string","value":"354178f6579b8055141a0d35142436c5b40d87ef"},"directory_id":{"kind":"string","value":"3b94bc467617a0272a80917abee39f37acd81a8b"},"path":{"kind":"string","value":"/rseqflow2/QC_SNP/read_distribution.py"},"content_id":{"kind":"string","value":"73f9d45cbefd0a7beeca00a1fed33cdb478ce6d7"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"repo_name":{"kind":"string","value":"falconer502/RseqFlow"},"repo_url":{"kind":"string","value":"https://github.com/falconer502/RseqFlow"},"snapshot_id":{"kind":"string","value":"b5f47ca2371b43798bf61be1de1d000010a0fde5"},"revision_id":{"kind":"string","value":"fcb94a6f4ae2e01b9759292a8f85d25503d7f99f"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2021-01-15T10:24:57.343473","string":"2021-01-15T10:24:57.343473"},"revision_date":{"kind":"timestamp","value":"2014-09-23T21:36:51","string":"2014-09-23T21:36:51"},"committer_date":{"kind":"timestamp","value":"2014-09-23T21:36:51","string":"2014-09-23T21:36:51"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"#!/usr/bin/env python\n'''-------------------------------------------------------------------------------------------------\nCheck reads distribution over exon, intron, UTR, intergenic ... etc\n-------------------------------------------------------------------------------------------------'''\n\n#import built-in modules\nimport os,sys\nimport re\nimport string\nimport optparse\nimport warnings\nimport string\nimport collections\nimport math\nimport sets\n\n#import third-party modules\nfrom bx.bitset import *\nfrom bx.bitset_builders import *\nfrom bx.intervals import *\n#from bx.binned_array import BinnedArray\nfrom bx_extras.fpconst import isNaN\nfrom bx.bitset_utils import *\n\nprog_base = os.path.split(sys.argv[0])[1]\nparser = optparse.OptionParser()\n\ndef cal_size(list):\n '''calcualte bed list total size'''\n size=0\n for l in list:\n size += l[2] - l[1]\n return size\n\ndef foundone(chrom,ranges, st, end):\n found = 0\n if chrom in ranges:\n found = len(ranges[chrom].find(st,end))\n return found\n\ndef build_bitsets(list):\n '''build intevalTree from list'''\n ranges={}\n for l in list:\n chrom =l[0].upper()\n st = int(l[1])\n end = int(l[2])\n if chrom not in ranges:\n ranges[chrom] = Intersecter()\n else:\n ranges[chrom].add_interval( Interval( st, end ) )\n return ranges\n\ndef list_from_file(fname):\n '''get list from input file'''\n ret_lst=[]\n bk=open(fname,'r')\n for line in bk.xreadlines():\n fields=line[0:-1].split('\\t')\n chrom=fields[0]\n start=int(fields[1])\n end=int(fields[2])\n ret_lst.append([chrom,start,end])\n bk.close()\n return ret_lst\n\ndef process_gene_model(cds_exon,intron,utr_3,utr_5,intergenic_up_1kb,intergenic_down_1kb,\\\n\t\t intergenic_up_5kb,intergenic_down_5kb,intergenic_up_10kb,intergenic_down_10kb):\n\tprint \"build intervalTree\"\n #build intervalTree\n cds_exon_ranges = build_bitsets(cds_exon)\n utr_5_ranges = build_bitsets(utr_5)\n utr_3_ranges = build_bitsets(utr_3)\n intron_ranges = build_bitsets(intron)\n interg_ranges_up_1kb_ranges = build_bitsets(intergenic_up_1kb)\n interg_ranges_up_5kb_ranges = build_bitsets(intergenic_up_5kb)\n interg_ranges_up_10kb_ranges = build_bitsets(intergenic_up_10kb)\n interg_ranges_down_1kb_ranges = build_bitsets(intergenic_down_1kb)\n interg_ranges_down_5kb_ranges = build_bitsets(intergenic_down_5kb)\n interg_ranges_down_10kb_ranges = build_bitsets(intergenic_down_10kb)\n\n exon_size = cal_size(cds_exon)\n intron_size = cal_size(intron)\n utr3_size = cal_size(utr_3)\n utr5_size = cal_size(utr_5)\n int_up1k_size = cal_size(intergenic_up_1kb)\n int_up5k_size = cal_size(intergenic_up_5kb)\n int_up10k_size = cal_size(intergenic_up_10kb)\n int_down1k_size = cal_size(intergenic_down_1kb)\n int_down5k_size = cal_size(intergenic_down_5kb)\n int_down10k_size = cal_size(intergenic_down_10kb)\n\n\n print \"Processing BED file Done\"\n return (cds_exon_ranges,intron_ranges,utr_5_ranges,utr_3_ranges,\\\n interg_ranges_up_1kb_ranges,interg_ranges_up_5kb_ranges,interg_ranges_up_10kb_ranges,\\\n interg_ranges_down_1kb_ranges,interg_ranges_down_5kb_ranges,interg_ranges_down_10kb_ranges,\\\n exon_size,intron_size,utr5_size,utr3_size,\\\n int_up1k_size,int_up5k_size,int_up10k_size,\\\n int_down1k_size,int_down5k_size,int_down10k_size)\ndef main():\n\n usage=\"%prog [options]\" + '\\n' + __doc__ + \"\\n\"\n #parser = OptionParser(usage,version=\"%prog \" + __version__)\n \tparser.add_option(\"-s\", \"--sam-file\", action = \"store\", type = \"string\", dest = \"sam_alignment_file\",\n help = \"Input alignment file in SAM format\")\n parser.add_option(\"-p\", \"--prefix\", action = \"store\", type = \"string\", dest = \"prefix_of_RegionFile\",\n help = \"prefix of input Region files: Exon Intron UTR3 UTR5\")\n parser.add_option(\"-o\", \"--output-prefix\", action = \"store\", type = \"string\", dest = \"output_prefix\",\n help = \"refix of output file(s). [required]\")\n (options,args)=parser.parse_args()\n\n if (options.sam_alignment_file is None or\n options.prefix_of_RegionFile is None or\n options.output_prefix is None ):\n print prog_base + \": error: missing required command-line argument.\"\n parser.print_help()\n sys.exit(0)\n\n fname_sam=options.sam_alignment_file\n\tbk_sam=open(fname_sam)\n fname_utr3=options.prefix_of_RegionFile+\".utr_3.txt\"\n fname_utr5=options.prefix_of_RegionFile+\".utr_5.txt\"\n fname_exon=options.prefix_of_RegionFile+\".cds_exon.txt\"\n fname_intron=options.prefix_of_RegionFile+\".intron.txt\"\n\tfname_int_up1k=options.prefix_of_RegionFile+\".intergenic_up_1kb.txt\"\n\tfname_int_down1k=options.prefix_of_RegionFile+\".intergenic_down_1kb.txt\"\n\tfname_int_up5k=options.prefix_of_RegionFile+\".intergenic_up_5kb.txt\"\n\tfname_int_down5k=options.prefix_of_RegionFile+\".intergenic_down_5kb.txt\"\n\tfname_int_up10k=options.prefix_of_RegionFile+\".intergenic_up_10kb.txt\"\n\tfname_int_down10k=options.prefix_of_RegionFile+\".intergenic_down_10kb.txt\"\n\n \n\n cds_exon_list=list_from_file(fname_exon)\n intron_list=list_from_file(fname_intron)\n utr_3_list=list_from_file(fname_utr3)\n utr_5_list=list_from_file(fname_utr5)\n\tint_up1k_list=list_from_file(fname_int_up1k)\n\tint_down1k_list=list_from_file(fname_int_down1k)\n\tint_up5k_list=list_from_file(fname_int_up5k)\n\tint_down5k_list=list_from_file(fname_int_down5k)\n\tint_up10k_list=list_from_file(fname_int_up10k)\n\tint_down10k_list=list_from_file(fname_int_down10k)\n\t\n print \"Processing BED file Done\"\n\t(cds_exon_r, intron_r, utr_5_r, utr_3_r,\\\n intergenic_up_1kb_r,intergenic_up_5kb_r,intergenic_up_10kb_r,\\\n intergenic_down_1kb_r,intergenic_down_5kb_r,intergenic_down_10kb_r,\\\n cds_exon_base,intron_base,utr_5_base,utr_3_base,\\\n intergenic_up1kb_base,intergenic_up5kb_base,intergenic_up10kb_base,\\\n intergenic_down1kb_base,intergenic_down5kb_base,intergenic_down10kb_base)\\\n = process_gene_model(cds_exon_list,intron_list,utr_3_list,utr_5_list,int_up1k_list,int_down1k_list,int_up5k_list,int_down5k_list,int_up10k_list,int_down10k_list)\n\t\n\tintron_read=0\n cds_exon_read=0\n utr_5_read=0\n utr_3_read=0\n\n intergenic_up1kb_read=0\n intergenic_down1kb_read=0\n intergenic_up5kb_read=0\n intergenic_down5kb_read=0\n intergenic_up10kb_read=0\n intergenic_down10kb_read=0\n\n totalReads=0\n totalFrags=0\n unAssignFrags=0\n\n R_qc_fail=0\n R_duplicate=0\n R_nonprimary=0\n R_unmap=0\n\n read_paired=1\n read_mapped=2\n read_unmapped=4\n mate_unmapped=8\n read_reverse=16\n mate_reverse=32\n is_read1=64\n is_read2=128\n secondary=256\n qc_fail=512\n duplicate=1024\n _cigar_split=re.compile(r'(\\d+)[M|N]')\n\t\n\tprint \"processing \" + fname_sam + \" ...\"\n for v in bk_sam.xreadlines():\n totalReads +=1\n fields=v.split('\\t')\n flag=int(fields[1])\n if flag&qc_fail: #skip QC fail read\n R_qc_fail +=1\n continue\n if flag&duplicate: #skip duplicate read\n R_duplicate +=1\n continue\n if flag&secondary: #skip non primary hit\n R_nonprimary +=1\n continue\n if flag&read_unmapped: #skip unmap read\n R_unmap +=1\n continue\n chrom = fields[2]\n chrom=chrom.upper()\n comb=[int(i) for i in _cigar_split.findall(fields[5])] #\"9M4721N63M3157N8M\" return ['9', '4721', '63', '3157', '8']\n #fragment_num += (len(comb) +1)/2\n #blockStart=[]\n #blockSize=[]\n chromStart=string.atoi(fields[3])-1\n exons=[]\n for i in range(0,len(comb),2):\n ex_start=chromStart + sum(comb[:i])\n ex_end=ex_start+comb[i]\n exons.append([chrom, ex_start, ex_end])\n\n #cigar_str = cigar.list2str(aligned_read.cigar)\n #exons = cigar.fetch_exon(chrom, aligned_read.pos, cigar_str)\n totalFrags += len(exons)\n\n\t\tfor exn in exons:\n #print chrom + '\\t' + str(exn[1]) + '\\t' + str(exn[2])\n mid = int(exn[1]) + int((int(exn[2]) - int(exn[1]))/2)\n if foundone(chrom,cds_exon_r,mid,mid) > 0:\n cds_exon_read += 1\n continue\n elif foundone(chrom,utr_5_r,mid,mid) >0 and foundone(chrom,utr_3_r,mid,mid) == 0:\n utr_5_read += 1\n continue\n elif foundone(chrom,utr_3_r,mid,mid) >0 and foundone(chrom,utr_5_r,mid,mid) == 0:\n utr_3_read += 1\n continue\n elif foundone(chrom,utr_3_r,mid,mid) >0 and foundone(chrom,utr_5_r,mid,mid) > 0:\n unAssignFrags +=1\n continue\n elif foundone(chrom,intron_r,mid,mid) > 0:\n intron_read += 1\n continue\n elif foundone(chrom,intergenic_up_10kb_r,mid,mid) >0 and foundone(chrom,intergenic_down_10kb_r,mid,mid) > 0:\n unAssignFrags +=1\n continue\n elif foundone(chrom,intergenic_up_1kb_r,mid,mid) >0:\n intergenic_up1kb_read += 1\n intergenic_up5kb_read += 1\n intergenic_up10kb_read += 1\n elif foundone(chrom,intergenic_up_5kb_r,mid,mid) >0:\n intergenic_up5kb_read += 1\n intergenic_up10kb_read += 1\n elif foundone(chrom,intergenic_up_10kb_r,mid,mid) >0:\n intergenic_up10kb_read += 1\n\n elif foundone(chrom,intergenic_down_1kb_r,mid,mid) >0:\n intergenic_down1kb_read += 1\n intergenic_down5kb_read += 1\n intergenic_down10kb_read += 1\n elif foundone(chrom,intergenic_down_5kb_r,mid,mid) >0:\n intergenic_down5kb_read += 1\n intergenic_down10kb_read += 1\n elif foundone(chrom,intergenic_down_10kb_r,mid,mid) >0:\n intergenic_down10kb_read += 1\n else:\n unAssignFrags +=1\n bk_sam.close()\n\t\n\tOUT=open(options.output_prefix+\".read_distribution.txt\",'w')\n total_AssignFrags=totalFrags-unAssignFrags\n print >>OUT,\"%-30s%.2f\" % (\"Percentage of Assigned Tags\",total_AssignFrags/float(totalFrags))\n print >>OUT,\"=====================================================================\"\n print >>OUT,\"%-20s%-20s\" % ('Region','Percentage of Tags')\n print >>OUT,\"%-10s%8.2f%%\" % ('Exons',(cds_exon_read+utr_5_read+utr_3_read)*100/float(total_AssignFrags))\n print >>OUT,\"%-10s%8.2f%%\" % (\"Introns\",intron_read*100/float(total_AssignFrags))\n\n print >>OUT,\"%-10s%8.2f%%\" % (\"TSS_up_1kb\",intergenic_up1kb_read*100/float(total_AssignFrags))\n print >>OUT,\"%-10s%8.2f%%\" % (\"TSS_up_5kb\",intergenic_up5kb_read*100/float(total_AssignFrags))\n print >>OUT,\"%-10s%8.2f%%\" % (\"TSS_up_10kb\",intergenic_up10kb_read*100/float(total_AssignFrags))\n print >>OUT,\"%-10s%8.2f%%\" % (\"TES_down_1kb\",intergenic_down1kb_read*100/float(total_AssignFrags))\n print >>OUT,\"%-10s%8.2f%%\" % (\"TES_down_5kb\",intergenic_down5kb_read*100/float(total_AssignFrags))\n print >>OUT,\"%-10s%8.2f%%\" % (\"TES_down_10kb\",intergenic_down10kb_read*100/float(total_AssignFrags))\n print >>OUT,\"=====================================================================\"\n\n print >>OUT,\"Note:\"\n print >>OUT,\"If reads spliced once, it will be counted as 2 tags\"\n print >>OUT,\"TSS= Transcription Start Site, TES=Transcription End Site, down=downstream, up=upstream\"\n\n OUT.close()\n\nif __name__ == '__main__':\n main()\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40774,"cells":{"__id__":{"kind":"number","value":11347303604382,"string":"11,347,303,604,382"},"blob_id":{"kind":"string","value":"e369d46c80579701beb0c5532514d35164908d27"},"directory_id":{"kind":"string","value":"d88c78d28405037a4362368599be8d9a7a67bfc8"},"path":{"kind":"string","value":"/b_1_variable_annuity.py"},"content_id":{"kind":"string","value":"4676eb7d324680734070dd39b540c981ce23fabe"},"detected_licenses":{"kind":"list like","value":["MIT"],"string":"[\n \"MIT\"\n]"},"license_type":{"kind":"string","value":"permissive"},"repo_name":{"kind":"string","value":"nicolasessisbreton/talks-2014-ssc-parallel-computing-method-for-variable-annuities"},"repo_url":{"kind":"string","value":"https://github.com/nicolasessisbreton/talks-2014-ssc-parallel-computing-method-for-variable-annuities"},"snapshot_id":{"kind":"string","value":"e04079804fb0140e5d8fde1ddd78ab151235a87d"},"revision_id":{"kind":"string","value":"7aa9f82e571c8a7ef32e3c46c1fa0ec92e49dcf3"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2016-09-23T21:08:30.035458","string":"2016-09-23T21:08:30.035458"},"revision_date":{"kind":"timestamp","value":"2014-05-30T12:33:20","string":"2014-05-30T12:33:20"},"committer_date":{"kind":"timestamp","value":"2014-05-30T12:33:20","string":"2014-05-30T12:33:20"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"from utils import *\n\ns = time()\n\nfile_name = 'b_1_variable_annuity'\n\n\nnb_year = 30\nnb_simulated_path = 5\nnb_period_per_year = 10\n\ninterval = 35 # draw a new frame every interval milliseconds, must be at least 35, as maximal web rate is 30 frame per second, which is 30/1e3 = draw frame every 33.33 milliseconds\nduration_of_one_contract_in_second = 5\n\nnb_frame_per_second = interval / 1e3\nmax_nb_frame_per_contract = duration_of_one_contract_in_second / nb_frame_per_second\nnb_frame_per_contract = nb_year * nb_period_per_year\nnb_of_points_per_interval = nb_frame_per_contract / max_nb_frame_per_contract\nnb_of_points_per_interval = int(np.ceil(nb_of_points_per_interval))\nnb_frame = int(np.ceil(max_nb_frame_per_contract * nb_simulated_path))\n\nrisk_free_rate = 0.03\nvolatility = 0.25\n\ntotal_nb_period = nb_year * nb_period_per_year\n\n\ndt = nb_year / float(total_nb_period)\nsqrt_dt = np.sqrt(dt)\nmu = dt * risk_free_rate\nsigma = sqrt_dt * volatility\nstock_move = np.random.lognormal(mu, sigma, (nb_simulated_path, total_nb_period+1))\n\neg = 1.03**dt\n\n\npath_ndx = 0\nperiod_ndx = 1\nstock_x = [1]\nstock_y = [1]\nbank_x = [1]\nbank_y = [1]\naccount_x = [1]\naccount_y = [1]\nstock_x_plotted = []\nstock_y_plotted = []\n\nmax_heigh = 10\nlinewidth = 10\n\ndef setup():\n global stock, bank, all_artist, account\n \n all_artist = []\n account, = plt.plot([1],[1], color = '#62f63c', linewidth=linewidth)\n bank, = plt.plot([1], [1], color = '#f1f91f', linestyle = '--', linewidth = linewidth)\n stock, = plt.plot([],[], color = '#f13632', linestyle = ':', linewidth = linewidth)\n all_artist.extend([account, stock, bank])\n \n lg = plt.legend( \n ('account','bank', 'stock'), \n scatterpoints = 4,\n labelspacing=0.1,\n borderpad = 0 , handlelength=1, handletextpad=0.1, borderaxespad=0, columnspacing=0,\n loc='upper center',\n ncol=3,\n bbox_to_anchor=(0.55, 1.12),\n )\n lg.draw_frame(False)\n \n plt.axis([-1,nb_year+1,0,max_heigh])\n \n return all_artist\n\ndef point_builder():\n global stock, bank, all_artist, stock, path_ndx, period_ndx, dt, stock_move\n global stock_x, stock_y, bank_x, bank_y, eg, account_x, account_y, account\n \n t = stock_x[period_ndx-1] + dt\n bank_point = bank_y[period_ndx-1] * eg\n stock_point = stock_y[period_ndx-1] * stock_move[path_ndx,period_ndx]\n stock_x.append(t)\n stock_y.append(stock_point)\n bank_x.append(t)\n bank_y.append(bank_point)\n account_x.append(t)\n account_y.append(np.maximum(bank_point, stock_point))\n \n stock.set_data(stock_x, stock_y)\n bank.set_data(bank_x, bank_y)\n account.set_data(account_x, account_y)\n \n \n if period_ndx +1 <= total_nb_period :\n period_ndx += 1\n \n else:\n stock_x = [1]\n stock_y = [1]\n bank_x = [1]\n bank_y = [1]\n account_x = [1]\n account_y = [1]\n stock_x_plotted = []\n stock_y_plotted = []\n period_ndx = 1\n\n if path_ndx + 1 < nb_simulated_path:\n path_ndx += 1\n else:\n path_ndx = 0\n \ndef update(frame_ndx):\n global all_artist\n \n for i in xrange(nb_of_points_per_interval): \n point_builder()\n \n return all_artist\n \n# running\ndef build_animation():\n fig, axes = plt.subplots()\n \n anim = animation.FuncAnimation(\n \tfig, update, frames = nb_frame, interval = interval, init_func = setup, blit=True\n )\n \n return anim, plt\n \nsave(build_animation, file_name, 1)\n\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40775,"cells":{"__id__":{"kind":"number","value":9491877732029,"string":"9,491,877,732,029"},"blob_id":{"kind":"string","value":"b8be28e0c3f53e5dd4a2f706c74cf37f9d414e39"},"directory_id":{"kind":"string","value":"477f3b3a9cec62b129b84a5616b8b02700512fad"},"path":{"kind":"string","value":"/mongoDB/update_preannotationDB_check.py"},"content_id":{"kind":"string","value":"ada15e980f4c61b2b88321bd8a0892dbfd8c96d7"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"repo_name":{"kind":"string","value":"gerikson/bioinformatics_scripts"},"repo_url":{"kind":"string","value":"https://github.com/gerikson/bioinformatics_scripts"},"snapshot_id":{"kind":"string","value":"c74cda6603310e21c0656195efd23901331b3731"},"revision_id":{"kind":"string","value":"5682f2176f8f445069179ebf2150a62fd818be24"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2020-05-18T13:31:09.109051","string":"2020-05-18T13:31:09.109051"},"revision_date":{"kind":"timestamp","value":"2014-11-13T23:49:35","string":"2014-11-13T23:49:35"},"committer_date":{"kind":"timestamp","value":"2014-11-13T23:49:35","string":"2014-11-13T23:49:35"},"github_id":{"kind":"number","value":10488305,"string":"10,488,305"},"star_events_count":{"kind":"number","value":1,"string":"1"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"import os, sys,math, time, pysam, pymongo,json,bson\n\nHG_PATH = os.environ['HG_PATH']\nSCHORK_HOME = os.environ['SCHORK_HOME']\n\n\nsys.path.append(SCHORK_HOME + \"biopython-1.54/\")\nfrom collections import defaultdict\n\nprint \"START: \"\nprint time.asctime( time.localtime(time.time()) )\n\"\"\"\ntakes to arguments:\n1.file to update the db\n2.file to extract non ascii variants\n\"\"\"\nvarfilename = str(sys.argv[1])\nCUR_CHROM ='chr1' \nnon_ascii=str(sys.argv[2])\n\nprint \"Chromosome is: \"+CUR_CHROM\n\nprint \"CHECKING FOR PRE-EXISTING VARIANTS: \", varfilename\n\ninserted_variants = 0\nskiped_var = 0\nnon_ascii_var = 0\ninvar = open(varfilename)\nline = invar.readline()\nascii = open(non_ascii, \"w\")\n\n'''\nQuerying mongo db, for now development\n'''\ncon = pymongo.Connection(host='10.128.128.60')#host='10.128.143.255')\n#a =eval(\"con.development.\"+str(CUR_CHROM))\na = eval(\"con.gerikson.\"+str(CUR_CHROM))\nPreAnnotationDB = a\n\nwhile line:\n lin = line.strip().split(\"\\t\")\n \n \"\"\"\n If this is the first line skip\n \"\"\" \n if (lin[0]==\"Haplotype\"):\n continue\n\n # make sure this is a chromosome string and if it's the same as the current chromosome\n if (lin[1] != CUR_CHROM and lin[1].find('chr') != -1):\n print \"new chromosome \" + lin[1]\n CUR_CHROM = lin[1]\n a = eval(\"con.gerikson.\"+str(CUR_CHROM))\n PreAnnotationDB = a\n \n beg = lin[2]\n end = lin[3]\n vartype = lin[4]\n ref = lin[5]\n obs = lin[6]\n annot = \"-\"\n for int in lin[8:]:\n annot=annot+\"@@\"+int\n \n '''\n verify is it's a valid annotation, mongo doesn't accept non usii carachters\n ''' \n try:\n annot.decode('ascii')\n except UnicodeDecodeError:\n # print \"it was not a ascii-encoded unicode string\"\n # print annot\n ascii.write(str(line)+\"\\n\")\n non_ascii_var = non_ascii_var + 1\n line = invar.readline() \n# continue \n \n \"\"\"\n First check if the variant is already present in the database, this step might be skipped if we get a file \n with only variants that weren't previously found in the preannotationDB\n \"\"\"\n variant_list = PreAnnotationDB.find_one({'beg':beg, 'end':end,'type':vartype ,'ref':ref,'alt':obs})\n \n \"\"\"\n If no variant was found, insert the variant into the db\n \"\"\"\n if str(variant_list) == \"None\":\n inserted_variants = inserted_variants + 1\n '''\n Variant not present in the preannotation db, update the database with the new variant\n '''\n # print \"Var not found, insert begin = \" + beg \n post = {'chr':CUR_CHROM,'beg':beg, 'end':end, 'type':vartype, 'ref':ref, 'alt':obs, 'annot':annot}\n PreAnnotationDB.insert(post)\n if (inserted_variants%1000 == 0):\n print inserted_variants\n print time.asctime( time.localtime(time.time()) )\n # continue\n else:\n skiped_var = skiped_var + 1\n if (skiped_var%500 == 0):\n print skiped_var\n print time.asctime( time.localtime(time.time()) )\n #continue\n line = invar.readline()\n\nprint \"END: \", time.asctime( time.localtime(time.time()) )\nprint \"Inserted var = \" + str(inserted_variants)\nprint \"skiped var = \" + str(skiped_var)\nprint \"non ascii var found = \" + str(non_ascii_var)\n\ninvar.close()\nsys.stdout.flush()\n\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40776,"cells":{"__id__":{"kind":"number","value":498216214316,"string":"498,216,214,316"},"blob_id":{"kind":"string","value":"a701b560b7161dc2b4780136d23212dc8bb24941"},"directory_id":{"kind":"string","value":"64dedd692081b51627d02b97c85cf8dd2a5af12f"},"path":{"kind":"string","value":"/Windoe"},"content_id":{"kind":"string","value":"9d6b2bfe09cf51f7e9435af82328136911cee0a2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"repo_name":{"kind":"string","value":"mcasman/Rssoppkey"},"repo_url":{"kind":"string","value":"https://github.com/mcasman/Rssoppkey"},"snapshot_id":{"kind":"string","value":"37fed3da3ebb912e6b6a4d4ca08cfea5aacababb"},"revision_id":{"kind":"string","value":"6acec3aaef9d515ed100f8aa5157643711d18b13"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2021-01-19T11:16:30.826233","string":"2021-01-19T11:16:30.826233"},"revision_date":{"kind":"timestamp","value":"2014-03-07T23:40:13","string":"2014-03-07T23:40:13"},"committer_date":{"kind":"timestamp","value":"2014-03-07T23:40:13","string":"2014-03-07T23:40:13"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"#!/usr/bin/env python\nfrom Tkinter import *\nimport sys, feedparser\n\nwindow = Tk()\nffeed = feedparser.parse(\"http://feeds.ign.com/ign/articles\")\n\ndef repop():\n #Buttons and configurations\n #Top level Label\n lbl = Label(window, text=\"Oppkey RSS feeds\").pack()\n #Facebook button\n btnf = Button(window, text=\"Facebook\", background= \"#3b5998\", command=fbfeed)\n btnf.pack(side=LEFT, fill=BOTH, expand=1)\n btnf.config(fg='white', bd=6)\n #Google+ button\n btng = Button(window, text=\"Google+\", background= \"#d34836\", command=gofeed)\n btng.pack(side=LEFT, fill=BOTH, expand=1)\n btng.config(fg='white', bd=6)\n #Twitter button\n btnt = Button(window, text=\"Twitter\", background= \"#4099FF\", command=twfeed)\n btnt.pack(side=LEFT, fill=BOTH, expand=1)\n btnt.config(fg='white', bd=6)\n\n\n\n#Feed description display function\ndef textdis():\n #ffeedd = ffeed.entries[:].description\n #ffeedtime = ffeed.entries[:].published\n #ffeedt = ffeed.entries[].title\n distext = Text(window)\n distext.pack()\n distext.insert(END, (ffeedtime, ffeedd))\n\n\n\n#Facebook feed function\ndef fbfeed():\n btng.pack_forget()\n btnt.pack_forget()\n btnf.pack_forget()\n fdis = Label(window, text=\"Now displaying the top 3 FB Feeds\")\n #backbtn = Button(window, text='Back').pack(side=LEFT, anchor=N)\n quitbtn = Button(window, text='Quit', command=window.quit).pack(side=RIGHT, anchor=N) \n for i in range(0,3):\n ffeedt = ffeed.entries[i].title\n entbtn = Button(window, text=ffeedt, wraplength=215, command=textdis)\n entbtn.pack()\n ffeedd = ffeed.entries[i].description\n ffeeddtime = ffeed.entries[i].published\n #destext = Text(window)\n #destext.pack()\n #destext.insert(END, (ffeedd))\n\n\n#Google feed function \ndef gofeed():\n gfeed = feedparser.parse(\"http://planetcallofduty.gamespy.com/show_rss.php\")\n print len(gfeed.entries)\n for i in range(0, 4):\n print \"\\n\" + gfeed.entries[i].title + \"\\n\"\n print gfeed.entries[i].link\n print gfeed.entries[i].description\n print i\n\n#Twitter feed function\ndef twfeed():\n tfeed = feedparser.parse(\"http://planetcallofduty.gamespy.com/show_rss.php\")\n print len(tfeed.entries)\n for i in range(0, 4):\n print \"\\n\" + tfeed.entries[i].title + \"\\n\"\n print tfeed.entries[i].link\n print tfeed.entries[i].description\n print i\n\n#Buttons and configurations\n #Top level Label\nlbl = Label(window, text=\"Oppkey RSS feeds\").pack()\n\n #Facebook button\nbtnf = Button(window, text=\"Facebook\", background= '#3b5998', command=fbfeed)\nbtnf.pack(side=LEFT, fill=BOTH, expand=1)\nbtnf.config(fg='white', bd=6)\n\n #Google+ button\nbtng = Button(window, text=\"Google+\", background= '#d34836', command=gofeed)\nbtng.pack(side=LEFT, fill=BOTH, expand=1)\nbtng.config(fg='white', bd=6)\n\n #Twitter button\nbtnt = Button(window, text=\"Twitter\", background= '#4099FF', command=twfeed)\nbtnt.pack(side=LEFT, fill=BOTH, expand=1)\nbtnt.config(fg='white', bd=6)\n\n #Parent Window and configurations\nwindow.title(\"Oppkey RSS Feeds\")\nwindow.geometry(\"320x455\")\nwindow.wm_iconbitmap('favicon.ico')\nwindow.mainloop()\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40777,"cells":{"__id__":{"kind":"number","value":11605001681117,"string":"11,605,001,681,117"},"blob_id":{"kind":"string","value":"2836df9611a4ba0b38f4b0239772b29824e556b9"},"directory_id":{"kind":"string","value":"5021037d4bf0fbacac18a6767e850a8a35a99d32"},"path":{"kind":"string","value":"/moses.py"},"content_id":{"kind":"string","value":"36ac3142df503f46d3d8aad23d710b7564b46bd8"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"repo_name":{"kind":"string","value":"angelinavj/CS-224N-Project-1"},"repo_url":{"kind":"string","value":"https://github.com/angelinavj/CS-224N-Project-1"},"snapshot_id":{"kind":"string","value":"8b95c974550689b639c86265ac1d1952219f4fa7"},"revision_id":{"kind":"string","value":"a985086e160c342c828bfc0d6776bfc0775731cb"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2016-09-05T09:33:18.027876","string":"2016-09-05T09:33:18.027876"},"revision_date":{"kind":"timestamp","value":"2012-10-10T07:36:35","string":"2012-10-10T07:36:35"},"committer_date":{"kind":"timestamp","value":"2012-10-10T07:36:35","string":"2012-10-10T07:36:35"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"#!/usr/bin/python\r\n\r\nimport sys\r\nimport os\r\nimport time\r\nimport subprocess\r\n\r\nHOME = \"/afs/ir/users/k/b/kbusch/cs224n/pa1-mt\"\r\nMOSES = \"/afs/ir/class/cs224n/bin/mosesdecoder\"\r\nGIZA = \"/afs/ir/class/cs224n/bin/giza-pp-read-only/external-bin-dir\"\r\n\r\nMERT = \"\"\r\nPRO = \"--pairwise-ranked\"\r\n\r\ndef run_command(name, command, stdin=None, stdout=None):\r\n\toutfile.write('Running %s\\n' %(name))\r\n\toutfile.write('Command: \\n %s' % (command))\r\n\toutfile.flush()\r\n\tstart = time.time()\r\n\tif stdin or stdout:\r\n\t\tsubprocess.call(command, stdin=stdin, stdout=stdout)\r\n\telse:\r\n\t\tos.system(command)\r\n\tend = time.time()\r\n\toutfile.write('\\nRuntime: %d\\n\\n'%(end - start))\r\n\toutfile.flush()\r\n\r\ndef gen_phrase_table(phrase_len):\r\n\tcommand = ('%s/scripts/training/train-model.perl --max-phrase-length %d '\r\n\t\t'--external-bin-dir %s --first-step 4 --last-step 9 '\r\n\t\t'-root-dir %s/train -corpus %s/training/corpus -f f -e e '\r\n\t\t'-alignment-file %s/training/corpus -alignment align '\r\n\t\t'-lm 0:3:\"%s\"/lm.bin:8' % \r\n\t\t(MOSES, phrase_len, GIZA, HOME, HOME, HOME, HOME) )\r\n\trun_command('generate phrase table', command)\r\n\r\ndef tune(dist_lim, alg, name):\r\n\tcommand = ('%s/scripts/training/mert-moses.pl '\r\n\t\t'--working-dir %s/tune-%s %s '\r\n\t\t'--decoder-flags=\"-distortion-limit %d -threads 4\" %s/mt-dev.fr '\r\n\t\t'%s/mt-dev.en %s/bin/moses %s/train/model/moses.ini '\r\n\t\t'--mertdir %s/bin/' %\r\n\t\t(MOSES, HOME, name, alg, dist_lim, HOME, HOME, MOSES, HOME, MOSES) )\r\n\trun_command(\"tuning\", command) \r\n\r\ndef decode(name):\r\n\tcommand = ['%s/bin/moses'%(MOSES), '-du',\r\n\t\t'-f', '%s/tune-%s/moses.ini'%(HOME, name)]\r\n\trun_command(\"decoding\", command, \r\n\t\tstdin=open('%s/mt-dev-test.fr'%(HOME)),\r\n\t\tstdout=open('%s/output/%s-test.out'%(HOME, name), 'w'))\r\n\r\n\tos.system(\"cp %s/tune-%s/moses.ini %s/output/%s-moses.ini\"%(HOME, \r\n\t\t\t\t\t\t\t\t name, HOME, name))\r\n\r\ndef eval(name):\r\n\tcommand = ['%s/scripts/generic/multi-bleu.perl'%(MOSES),\r\n\t \t'%s/mt-dev-test.en'%(HOME)]\r\n\r\n\toutput = run_command(\"evaluation\", command, \r\n\t\tstdin=open('%s/output/%s-test.out'%(HOME, name)),\r\n\t\tstdout=open('%s/output/%s-eval.out'%(HOME, name), 'w'))\r\n\r\ndef main(phrase_len, dist_lim):\r\n\tname = 'new_tune_s50000-%dpl-%ddl'%(phrase_len, dist_lim)\r\n\r\n\tgen_phrase_table(phrase_len)\r\n\r\n\t#MERT\t\t\r\n\toutfile.write('\\n\\nMERT:\\n')\r\n\ttune(dist_lim, MERT, name + '-mert')\r\n\tdecode(name + '-mert')\r\n\teval(name + '-mert')\r\n\r\n\t#PRO\r\n\toutfile.write('\\n\\nPRO:\\n')\r\n\ttune(dist_lim, PRO, name + '-pro')\r\n\tdecode(name + '-pro')\r\n\teval(name + '-pro')\r\n\r\nif __name__ == '__main__':\r\n\tif len(sys.argv) < 3:\r\n\t\tprint \"USAGE: moses.py [max phrase len] [dist lim] [path to home folder]\"\r\n\tphrase_len = int(sys.argv[1])\r\n\tdist_lim = int(sys.argv[2])\r\n\tif len(sys.argv) > 3:\r\n\t\tHOME = sys.argv[3]\r\n\toutfile = open('moses_new_tune_50k_%s_%s.out'%(phrase_len, dist_lim), 'w')\r\n\tmain(phrase_len, dist_lim)\r\n\toutfile.close()"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2012,"string":"2,012"}}},{"rowIdx":40778,"cells":{"__id__":{"kind":"number","value":3659312167723,"string":"3,659,312,167,723"},"blob_id":{"kind":"string","value":"a29f6b45274f3bc48c4117031de582de00170ff0"},"directory_id":{"kind":"string","value":"79a35dfcc3149c5ee4ab4117d61c35fcfb90acd6"},"path":{"kind":"string","value":"/web.py"},"content_id":{"kind":"string","value":"741765c863271998e280b9ae08ba4612c75c481d"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"repo_name":{"kind":"string","value":"rdcarter24/FoodTrucks"},"repo_url":{"kind":"string","value":"https://github.com/rdcarter24/FoodTrucks"},"snapshot_id":{"kind":"string","value":"4e3c39ba10ea490fe8967e1d3662a4748ae76c20"},"revision_id":{"kind":"string","value":"9d5587c27ca7ac87a69d9ae7420b06f738c13cc9"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2016-09-05T15:57:12.802170","string":"2016-09-05T15:57:12.802170"},"revision_date":{"kind":"timestamp","value":"2013-10-30T18:59:03","string":"2013-10-30T18:59:03"},"committer_date":{"kind":"timestamp","value":"2013-10-30T18:59:03","string":"2013-10-30T18:59:03"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"from flask import Flask, render_template\nimport foodtrucks\nimport json\n\napp = Flask(__name__)\napp.config['DEBUG'] = True\n\n@app.route(\"/\")\ndef map():\n # call function to scrape website and put in json format\n trucks_json = json.dumps(foodtrucks.get_closest_food_trucks())\n return render_template(\"map.html\", trucks=trucks_json)\n\nif __name__ == \"__main__\":\n app.run(debug=True)"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2013,"string":"2,013"}}},{"rowIdx":40779,"cells":{"__id__":{"kind":"number","value":14980845944791,"string":"14,980,845,944,791"},"blob_id":{"kind":"string","value":"c6396a705b2e0b3db9f9c303b3df8d520af66eb8"},"directory_id":{"kind":"string","value":"4bb7acc79d927edde0367ecae662cd5ce9149b64"},"path":{"kind":"string","value":"/phypno/datatype.py"},"content_id":{"kind":"string","value":"421038d7ba71aebbb6bab574640054a8e9ffb66b"},"detected_licenses":{"kind":"list like","value":["GPL-1.0-or-later","GPL-3.0-or-later","GPL-3.0-only","LicenseRef-scancode-other-copyleft","LicenseRef-scancode-warranty-disclaimer"],"string":"[\n \"GPL-1.0-or-later\",\n \"GPL-3.0-or-later\",\n \"GPL-3.0-only\",\n \"LicenseRef-scancode-other-copyleft\",\n \"LicenseRef-scancode-warranty-disclaimer\"\n]"},"license_type":{"kind":"string","value":"non_permissive"},"repo_name":{"kind":"string","value":"jburn/phypno"},"repo_url":{"kind":"string","value":"https://github.com/jburn/phypno"},"snapshot_id":{"kind":"string","value":"c72dcf3ffb03bb20f408c457dd02d1f7d158bf06"},"revision_id":{"kind":"string","value":"161d13ae1c0d9cef4f7fdfdca27bb6fe34960f73"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2017-10-07T01:37:40.092592","string":"2017-10-07T01:37:40.092592"},"revision_date":{"kind":"timestamp","value":"2014-10-15T17:15:23","string":"2014-10-15T17:15:23"},"committer_date":{"kind":"timestamp","value":"2014-10-15T17:15:23","string":"2014-10-15T17:15:23"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"\"\"\"Module contains the different types of data formats.\n\nThe main class is Data, all the other classes should depend on it. The other\nclasses are given only as convenience, but they should not overwride\nData.__call__, which needs to be very general.\n\n\"\"\"\nfrom logging import getLogger\nlg = getLogger('phypno')\n\nfrom collections import OrderedDict, Iterable\nfrom copy import deepcopy\n\nfrom numpy import arange, array, empty, ix_, NaN, squeeze, where\n\n\ndef _get_indices(values, selected, tolerance):\n \"\"\"Get indices based on user-selected values.\n\n Parameters\n ----------\n values : ndarray (any dtype)\n values present in the axis.\n selected : ndarray (any dtype) or tuple or list\n values selected by the user\n tolerance : float\n avoid rounding errors.\n\n Returns\n -------\n idx_data : list of int\n indices of row/column to select the data\n idx_output : list of int\n indices of row/column to copy into output\n\n Notes\n -----\n This function is probably not very fast, but it's pretty robust. It keeps\n the order, which is extremely important.\n\n If you use values in the self.axis, you don't need to specify tolerance.\n However, if you specify arbitrary points, floating point errors might\n affect the actual values. Of course, using tolerance is much slower.\n\n Maybe tolerance should be part of Select instead of here.\n\n \"\"\"\n idx_data = []\n idx_output = []\n for idx_of_selected, one_selected in enumerate(selected):\n\n if tolerance is None or values.dtype.kind == 'U':\n idx_of_data = where(values == one_selected)[0]\n else:\n idx_of_data = where(abs(values - one_selected) <= tolerance)[0] # actual use min\n\n if len(idx_of_data) > 0:\n idx_data.append(idx_of_data[0])\n idx_output.append(idx_of_selected)\n\n return idx_data, idx_output\n\n\nclass Data:\n \"\"\"General class containing recordings.\n\n Attributes\n ----------\n data : ndarray (dtype='O')\n the data as trials. Each trial is a ndarray (dtype='d' or 'f')\n axis : OrderedDict\n dictionary with axiss (standard names are 'chan', 'time', 'freq')\n start_time : instance of datetime.datetime\n the start time of the recording\n attr : dict\n contains additional information about the dataset, with keys:\n - surf\n - chan\n - scores\n\n Notes\n -----\n Something which is not immediately clear for chan. dtype='U' (meaning\n Unicode) actually creates string of type str\\_, while if you use dtype='S'\n (meaning String) it creates strings of type bytes\\_.\n\n \"\"\"\n def __init__(self):\n self.data = array([], dtype='O')\n self.axis = OrderedDict()\n self.start_time = None\n self.s_freq = None\n self.attr = {'surf': None,\n 'chan': None,\n 'scores': None,\n }\n\n def __call__(self, trial=None, tolerance=None, **axes):\n \"\"\"Return the recordings and their time stamps.\n\n Parameters\n ----------\n trial : list of int or ndarray (dtype='i') or int\n which trials you want (if it's one int, it returns the actual\n matrix).\n **axes\n Arbitrary axiss to select from. You specify the axis and\n the values as list or tuple of the values that you want.\n tolerance : float\n if one of the axiss is a number, it specifies the tolerance to\n consider one value as chosen (take into account floating-precision\n errors).\n\n Returns\n -------\n ndarray\n ndarray containing the data with the same number of axiss as\n the original data. The length of the axis is equal to the\n length of the data, UNLESS you specify an axis with values. In\n that case, the length is equal to the values that you want.\n\n If you specify only one trial (as int, not as tuple or list), then\n it returns the actual matrix. Otherwise, it returns a ndarray\n (dtype='O') of length equal to the trials.\n\n Notes\n -----\n You cannot specify intervals here, you can do it in Select.\n\n \"\"\"\n if trial is None:\n trial = range(self.number_of('trial'))\n\n squeeze_trial = False\n try:\n iter(trial)\n except TypeError: # 'int' object is not iterable\n trial = (trial, )\n squeeze_trial = True\n\n output = empty(len(trial), dtype='O')\n\n for cnt, i in enumerate(trial):\n\n output_shape = []\n idx_data = []\n idx_output = []\n squeeze_axis = []\n\n for axis, values in self.axis.items():\n if axis in axes.keys():\n selected_values = axes[axis]\n if (isinstance(selected_values, Iterable) and\n not isinstance(selected_values, str)):\n n_values = len(selected_values)\n else:\n n_values = 1\n selected_values = (selected_values, )\n squeeze_axis.append(self.index_of(axis))\n\n idx = _get_indices(values[i],\n selected_values,\n tolerance=tolerance)\n if len(idx[0]) == 0:\n lg.warning('No index was selected for ' + axis)\n\n idx_data.append(idx[0])\n idx_output.append(idx[1])\n else:\n n_values = len(values[i])\n idx_data.append(arange(n_values))\n idx_output.append(arange(n_values))\n\n output_shape.append(n_values)\n\n output[cnt] = empty(output_shape, dtype=self.data[i].dtype)\n output[cnt][:] = NaN\n\n if all([len(x) > 0 for x in idx_data]):\n ix_output = ix_(*idx_output)\n ix_data = ix_(*idx_data)\n output[cnt][ix_output] = self.data[i][ix_data]\n\n if len(squeeze_axis) > 0:\n output[cnt] = squeeze(output[cnt],\n axis=tuple(squeeze_axis))\n\n if squeeze_trial:\n output = output[0]\n\n return output\n\n @property\n def list_of_axes(self):\n \"\"\"Return the name of all the axes in the data.\"\"\"\n return tuple(self.axis.keys())\n\n def index_of(self, axis):\n \"\"\"Return the index of a axis.\n\n Parameters\n ----------\n axis : str\n Name of the axis (such as 'trial', 'time', etc)\n\n Returns\n -------\n int or ndarray (dtype='int')\n number of trial (as int) or number of element in the selected\n axis (if any of the other axiss) as 1d array.\n\n Raises\n ------\n ValueError\n If the requested axis is not in the data.\n\n \"\"\"\n return list(self.axis.keys()).index(axis)\n\n def number_of(self, axis):\n \"\"\"Return the number of in one axis, as generally as possible.\n\n Parameters\n ----------\n axis : str\n Name of the axis (such as 'trial', 'time', etc)\n\n Returns\n -------\n int or ndarray (dtype='int')\n number of trial (as int) or number of element in the selected\n axis (if any of the other axiss) as 1d array.\n\n Raises\n ------\n KeyError\n If the requested axis is not in the data.\n\n Notes\n -----\n or is it better to catch the exception?\n\n \"\"\"\n if axis == 'trial':\n return len(self.data)\n else:\n n_trial = self.number_of('trial')\n output = empty(n_trial, dtype='int')\n for i in range(n_trial):\n output[i] = len(self.axis[axis][i])\n\n return output\n\n def __iter__(self):\n \"\"\"Implement generator for each trial.\n\n The generator returns the data for each trial. This is of course really\n convenient for map and parallel processing.\n\n Examples\n --------\n >>> from phypno.trans import Math\n >>> take_mean = Math(operator_name='mean', axis='time')\n >>> for one_trial in iter(data):\n >>> one_mean = take_mean(one_trial)\n >>> print(one_mean.data[0])\n\n \"\"\"\n for trial in range(self.number_of('trial')):\n output = deepcopy(self)\n for one_axis in output.axis:\n output.axis[one_axis] = empty(1, dtype='O')\n output.data = empty(1, dtype='O')\n\n output.data[0] = self.data[trial]\n for one_axis in output.axis:\n output.axis[one_axis][0] = self.axis[one_axis][trial]\n\n yield output\n\n def export(self, filename, export_format='fieldtrip'):\n \"\"\"Export data in other formats.\n\n Parameters\n ----------\n filename : path to file\n file to write\n export_format : str, optional\n supported export format is currently only FieldTrip\n \"\"\"\n if export_format == 'fieldtrip':\n from .ioeeg import write_fieldtrip # avoid circular import\n\n write_fieldtrip(self, filename)\n\n\nclass ChanTime(Data):\n \"\"\"Specific class for chan-time recordings, with axes:\n\n chan : ndarray (dtype='O')\n for each trial, channels in the data (dtype='U')\n time : ndarray (dtype='O')\n for each trial, 1d matrix with the time stamp (dtype='f')\n\n \"\"\"\n def __init__(self):\n super().__init__()\n self.axis['chan'] = array([], dtype='O')\n self.axis['time'] = array([], dtype='O')\n\n\nclass ChanFreq(Data):\n \"\"\"Specific class for channel-frequency recordings, with axes:\n\n chan : ndarray (dtype='O')\n for each trial, channels in the data (dtype='U')\n freq : ndarray (dtype='O')\n for each trial, 1d matrix with the frequency (dtype='f')\n\n Notes\n -----\n Conceptually, it is reasonable that each trial has the same frequency band,\n so it might be more convenient to use only one array, but it can happen\n that different trials have different frequency bands, so we keep the format\n more open.\n\n \"\"\"\n def __init__(self):\n super().__init__()\n self.axis['chan'] = array([], dtype='O')\n self.axis['freq'] = array([], dtype='O')\n\n\nclass ChanTimeFreq(Data):\n \"\"\"Specific class for channel-time-frequency representation, with axes:\n\n chan : ndarray (dtype='O')\n for each trial, channels in the data (dtype='U')\n time : ndarray (dtype='O')\n for each trial, 1d matrix with the time stamp (dtype='f')\n freq : ndarray (dtype='O')\n for each trial, 1d matrix with the frequency (dtype='f')\n\n \"\"\"\n def __init__(self):\n super().__init__()\n self.axis['chan'] = array([], dtype='O')\n self.axis['time'] = array([], dtype='O')\n self.axis['freq'] = array([], dtype='O')\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40780,"cells":{"__id__":{"kind":"number","value":9199819993957,"string":"9,199,819,993,957"},"blob_id":{"kind":"string","value":"2fb7e07325ea0e2e69862ce8c6fe415c103ff9e4"},"directory_id":{"kind":"string","value":"c14d421ec63ff460b11caddec5626a74cd67486c"},"path":{"kind":"string","value":"/examples/workers.py"},"content_id":{"kind":"string","value":"9bc9522db0af494f2aa405da519f8b54f0f9f404"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"repo_name":{"kind":"string","value":"johnturner/glyph-rpc"},"repo_url":{"kind":"string","value":"https://github.com/johnturner/glyph-rpc"},"snapshot_id":{"kind":"string","value":"7390ee2c91674febf69ac368584f349255c336df"},"revision_id":{"kind":"string","value":"5bd495676b8c58fd71446f824279753730d80aa3"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2020-12-24T09:02:14.482791","string":"2020-12-24T09:02:14.482791"},"revision_date":{"kind":"timestamp","value":"2012-06-20T19:20:08","string":"2012-06-20T19:20:08"},"committer_date":{"kind":"timestamp","value":"2012-06-20T19:20:08","string":"2012-06-20T19:20:08"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"import glyph\nfrom time import sleep\n\ndef worker(endpoint, name):\n s = glyph.get(endpoint)\n\n print name\n queue = s.task_queue(name)\n print queue\n\n\n t = queue.task()\n print t\n while t:\n print 'working on ', t.name\n for s in range(t.steps):\n t.progress(s)\n sleep(1)\n t.complete()\n t = queue.task()\n\ndef queue():\n import collections\n\n tasks = list(\"abcdefghijklmnopqrstuvwxyz\")\n\n m = glyph.Router()\n\n @m.default()\n class Server(glyph.r):\n @glyph.redirect()\n def task_queue(self, worker_name):\n print worker_name\n return Queue(worker_name)\n\n @m.add()\n class Queue(glyph.r):\n def __init__(self, worker_name):\n self.worker_name = worker_name\n\n @glyph.redirect()\n def task(self):\n print self.worker_name\n return Task(self.worker_name, tasks.pop())\n\n @m.add()\n class Task(glyph.r):\n def __init__(self, _worker, name, steps=2):\n self._worker = _worker\n self.name = name\n self.steps = int(steps)\n\n def progress(self, msg):\n print self._worker, self.name, msg\n\n def complete(self):\n print self._worker, self.name, 'complete'\n\n s = glyph.Server(m)\n return s\n\n\nif __name__ == '__main__':\n s = queue()\n s.start()\n\n worker(s.url, 'client')\n\n s.stop()\n\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2012,"string":"2,012"}}},{"rowIdx":40781,"cells":{"__id__":{"kind":"number","value":4045859236392,"string":"4,045,859,236,392"},"blob_id":{"kind":"string","value":"e55895476a0419b09074bbe5a8cfe0348ac448e9"},"directory_id":{"kind":"string","value":"429f22ccf59abd83cadabf81ba12af3fce47b84e"},"path":{"kind":"string","value":"/pygmaps_ng/__init__.py"},"content_id":{"kind":"string","value":"b49df716c0e0c2ec41d3811af8d281e292457c2b"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"repo_name":{"kind":"string","value":"jashort/pygmaps-ng"},"repo_url":{"kind":"string","value":"https://github.com/jashort/pygmaps-ng"},"snapshot_id":{"kind":"string","value":"d3d23c38d347718f754c4f8522c585de47ef3672"},"revision_id":{"kind":"string","value":"620ebc35c4f7f238e9cfa98da3e9b0cc8066189f"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2020-12-25T02:30:32.718021","string":"2020-12-25T02:30:32.718021"},"revision_date":{"kind":"timestamp","value":"2014-07-08T06:22:35","string":"2014-07-08T06:22:35"},"committer_date":{"kind":"timestamp","value":"2014-07-08T06:22:35","string":"2014-07-08T06:22:35"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"from .pygmaps_ng import *\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40782,"cells":{"__id__":{"kind":"number","value":8418135943097,"string":"8,418,135,943,097"},"blob_id":{"kind":"string","value":"596766266e8af96eeca780653c92674d13919911"},"directory_id":{"kind":"string","value":"5657fc61c11cd1111fda7aa48ea9330ecb0e62b5"},"path":{"kind":"string","value":"/src/groups"},"content_id":{"kind":"string","value":"269cd61b2ebe5df2d5eaad299b2dbc7420761162"},"detected_licenses":{"kind":"list like","value":["GPL-2.0-only"],"string":"[\n \"GPL-2.0-only\"\n]"},"license_type":{"kind":"string","value":"non_permissive"},"repo_name":{"kind":"string","value":"carriercomm/pycoreutils"},"repo_url":{"kind":"string","value":"https://github.com/carriercomm/pycoreutils"},"snapshot_id":{"kind":"string","value":"da47a71b33c137bd3c004485e7858671c930ee0f"},"revision_id":{"kind":"string","value":"68ce1d9651dfb0f2f93377fa775490f593831493"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2021-01-14T12:35:53.850542","string":"2021-01-14T12:35:53.850542"},"revision_date":{"kind":"timestamp","value":"2011-04-07T17:13:26","string":"2011-04-07T17:13:26"},"committer_date":{"kind":"timestamp","value":"2011-04-07T17:28:02","string":"2011-04-07T17:28:02"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"#!/usr/bin/env python\n#\n# groups - groups(1) command written in Python\n# Copyright (C) 2007, 2008, 2009 David Cantrell <david.l.cantrell@gmail.com>\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software Foundation,\n# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n#\n\nver = (2, 0)\n\nimport getpass\nimport grp\nimport os\nimport pwd\nimport sys\n\ndef usage(cmd):\n sys.stdout.write(\"Usage: %s [OPTIONS]... [USERNAME]..n\\n\" % (cmd,))\n sys.stdout.write(\" --help display this help and exit\\n\")\n sys.stdout.write(\" --version output version information and exit\\n\\n\")\n sys.stdout.write(\"Same as id -Gn. If no USERNAME, user current process.\\n\")\n\ndef xgroups(userlist=[]):\n ret = {}\n groups = grp.getgrall()\n\n for user in userlist:\n try:\n pwent = pwd.getpwnam(user)\n except KeyError:\n sys.stderr.write(\"%s: %s: No such user\\n\" % \\\n (os.path.basename(sys.argv[0]), user,))\n else:\n ret[user] = []\n tmpGroups = set()\n\n for group in grp.getgrall():\n if user in group.gr_mem:\n tmpGroups.add(group.gr_name)\n\n ret[user] = list(tmpGroups)\n\n return ret\n\ndef main():\n prog = os.path.basename(sys.argv[0])\n\n if len(sys.argv) == 1:\n sys.argv.append(getpass.getuser())\n\n if sys.argv[1] == \"--help\":\n usage(prog)\n sys.exit(0)\n elif sys.argv[1] == \"--version\":\n sys.stdout.write(\"pycoreutils %s version %d.%d\\n\" % \\\n (prog, ver[0], ver[1],))\n sys.exit(0)\n else:\n userlist = sys.argv[1:]\n\n if len(userlist):\n grouplist = xgroups(userlist)\n\n if len(grouplist) == 1:\n (k, v) = grouplist.items()[0]\n sys.stdout.write(\"%s\\n\" % (\" \".join(v),))\n elif len(grouplist) > 1:\n for (k, v) in grouplist.items():\n sys.stdout.write(\"%s : %s\\n\" % (k, \" \".join(v),))\n\n sys.exit(0)\n\nif __name__ == \"__main__\":\n main()\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2011,"string":"2,011"}}},{"rowIdx":40783,"cells":{"__id__":{"kind":"number","value":4097398808792,"string":"4,097,398,808,792"},"blob_id":{"kind":"string","value":"94ad0567c9556bf60c381403ae3caa7eb7420020"},"directory_id":{"kind":"string","value":"a4af2c3bbfbaa9e43683927b0f700d55c7bad0c5"},"path":{"kind":"string","value":"/divergence.py"},"content_id":{"kind":"string","value":"142639eca0e5dc236c0cbda64559f1924437e1b4"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"repo_name":{"kind":"string","value":"ioana-andronescu/Identification-of-Keywords-in-Historical-Events"},"repo_url":{"kind":"string","value":"https://github.com/ioana-andronescu/Identification-of-Keywords-in-Historical-Events"},"snapshot_id":{"kind":"string","value":"81f33bf263a6440ef0e3fb0520253a32f62067bd"},"revision_id":{"kind":"string","value":"4adbb6b45cc97d2578126f7159c0ae30085cbe04"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2016-09-05T19:55:21.504021","string":"2016-09-05T19:55:21.504021"},"revision_date":{"kind":"timestamp","value":"2014-07-29T15:29:41","string":"2014-07-29T15:29:41"},"committer_date":{"kind":"timestamp","value":"2014-07-29T15:29:41","string":"2014-07-29T15:29:41"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"import math\n\n'''\n Kullback-Leibler divergence for initial distribution and approximate distribution (after applying peak detection algorithms)\n'''\n\nclass KullbackLeibler():\n\n def __init__(self, expected, model):\n self.expected = expected\n self.model = model\n self.max_range = 509\n self.relevance = 11\n\n def compute_divergence(self):\n p_expected = {k: 0 for k in range(self.relevance)}\n p_model = {k: 0 for k in range(self.relevance)}\n for t in range(self.max_range):\n p_expected[self.expected[t]] += 1\n p_model[self.model[t]] += 1\n\n for x in range(self.relevance):\n p_expected[x] = float(p_expected[x]) / self.max_range\n p_model[x] = float(p_model[x]) / self.max_range\n\n sum_probability = 0.0\n for x in range(self.relevance):\n if p_model[x] == 0 or p_expected[x] == 0:\n sum_probability += 0\n else:\n p = p_expected[x] / p_model[x]\n sum_probability += p_expected[x] * math.log(p)\n if sum_probability > 1:\n sum_probability = 1.0\n return (1.0 - sum_probability) * 100.0"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40784,"cells":{"__id__":{"kind":"number","value":2010044707610,"string":"2,010,044,707,610"},"blob_id":{"kind":"string","value":"b0ce5d60d3451eeaa5ba3a6059c6fa0db3783e80"},"directory_id":{"kind":"string","value":"a9890e6d9dc9bc96c78b424e29190388f699a14b"},"path":{"kind":"string","value":"/modules/shout.py"},"content_id":{"kind":"string","value":"65eee22b1ea81c4b7f04eb266c65b52f595d54d4"},"detected_licenses":{"kind":"list like","value":["WTFPL"],"string":"[\n \"WTFPL\"\n]"},"license_type":{"kind":"string","value":"permissive"},"repo_name":{"kind":"string","value":"onecoding1/raspibot"},"repo_url":{"kind":"string","value":"https://github.com/onecoding1/raspibot"},"snapshot_id":{"kind":"string","value":"189aa7753f3d623af4424e64abd754d1664de1ad"},"revision_id":{"kind":"string","value":"083d99b2598b1f17d624be86bf52a1623fb5fddf"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2021-05-28T06:32:39.936793","string":"2021-05-28T06:32:39.936793"},"revision_date":{"kind":"timestamp","value":"2013-04-16T16:28:24","string":"2013-04-16T16:28:24"},"committer_date":{"kind":"timestamp","value":"2013-04-16T16:28:24","string":"2013-04-16T16:28:24"},"github_id":{"kind":"number","value":9476493,"string":"9,476,493"},"star_events_count":{"kind":"number","value":1,"string":"1"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"#!/usr/bin/python\nimport os, sys, string, random\n\ntrigger=\"\"\n\n#if msg.upper() == msg:\n# print \"UPPERCASE\"\n#if msg2.upper() == msg2:\n# print \"UPPERCASE\"\t\n\ndef random_line(afile):\n line = next(afile)\n for num, aline in enumerate(afile):\n if random.randrange(num + 2): continue\n line = aline\n return line\n\ndef func(line):\n if line == line.upper() and len(line) > 10 and line != \"( ≖‿≖)\":\n f = open('data\\shout.txt', 'a')\n f.write(line+'\\n')\n f.close()\n \n f = open('data\\shout.txt', 'r')\n data = random_line(f)\n f.close()\n return data\n else:\n return \"\""},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2013,"string":"2,013"}}},{"rowIdx":40785,"cells":{"__id__":{"kind":"number","value":11433202952895,"string":"11,433,202,952,895"},"blob_id":{"kind":"string","value":"71124f2586c85e2a5488c15373923e735b5a00d3"},"directory_id":{"kind":"string","value":"3f284a3903050663d9d54dee1ef600486008fb65"},"path":{"kind":"string","value":"/proj/scheduler/views.py"},"content_id":{"kind":"string","value":"4df8313eafa15a9578063af1217a58def5abd1de"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"repo_name":{"kind":"string","value":"joselouiemark/project"},"repo_url":{"kind":"string","value":"https://github.com/joselouiemark/project"},"snapshot_id":{"kind":"string","value":"c91a8b7498736a307fb48929020af1937a029739"},"revision_id":{"kind":"string","value":"896f62925bdfc01a3994eab8c3d25fe0c8de7a1f"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2016-09-11T07:22:51.052521","string":"2016-09-11T07:22:51.052521"},"revision_date":{"kind":"timestamp","value":"2014-12-18T10:49:32","string":"2014-12-18T10:49:32"},"committer_date":{"kind":"timestamp","value":"2014-12-18T10:49:32","string":"2014-12-18T10:49:32"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"from django.http import HttpResponse\nfrom django.template.loader import get_template\nfrom django.shortcuts import render_to_response\nfrom django.shortcuts import get_object_or_404\nfrom django.template import Context\nfrom django.views.generic.base import TemplateView\nfrom scheduler.forms import ScheduleForm\nfrom scheduler.models import Schedule\nfrom django.http import HttpResponseRedirect\nfrom django.template import RequestContext\nfrom datetime import datetime\nfrom datetime import date\n\ndef schedules(request, stat=0, dfrom='', dto=''):\n\tif not request.user.is_authenticated():\n\t\treturn HttpResponseRedirect('/accounts/login/')\n\tif request.POST:\n\t\tsdate = request.POST.get('sdate', '')\n\t\tedate = request.POST.get('edate', '')\n\t\ttype = request.POST.get('type', 0)\n\t\t\n\t\treturn HttpResponseRedirect('/scheduler/all/'+type+'/'+datetime.strptime(sdate, '%Y-%m-%d' ).strftime('%Y%m%d')+'/'+datetime.strptime(edate, '%Y-%m-%d' ).strftime('%Y%m%d')+'/')\n\t\t\n\t\n\tallObjs = Schedule.objects.filter(owner=request.user.username);\n\tallObjs.filter(status=1).filter(date__lt=date.today()).update(date=date.today())\n\tstat = int(stat)\n\tif stat > 0 and stat < 4:\n\t\tallObjs = allObjs.filter(status=stat)\n\t\n\tif dfrom not in [None, ''] and dto not in [None, '']:\n\t\tallObjs = allObjs.filter(date__range=[ datetime.strptime(dfrom, '%Y%m%d' ),datetime.strptime(dto, '%Y%m%d' )])\n\n\treturn render_to_response('schedules.html',\n\t\t\t\t\t\t\t{'schedules':allObjs,'full_name': request.user.first_name +\" \" +request.user.last_name,\n\t\t\t\t\t\t\t'today':date.today()})\n\ndef create(request):\n\tif not request.user.is_authenticated():\n\t\treturn HttpResponseRedirect('/accounts/login/')\n\t\t\n\tif request.POST:\n\t\tform = ScheduleForm(request.POST)\n\t\tform.owner = request.user.username\n\t\tif form.is_valid():\n\t\t\tform.save()\n\t\t\t\n\t\t\treturn HttpResponseRedirect('/scheduler/all')\n\telse:\n\t\tform = ScheduleForm()\n\t\tform.owner = request.user.username\n\t\n\treturn render_to_response('create_schedule.html', {\n\t\t'form': form,\n\t\t'full_name': request.user.first_name +\" \" +request.user.last_name,\n\t\t}, context_instance=RequestContext(request))\n\ndef schedule(request, schedule_id = None):\n\tif not request.user.is_authenticated():\n\t\treturn HttpResponseRedirect('/accounts/login/')\n\t\t\n\tschedule = Schedule.objects.get(id=schedule_id)\n\tif request.POST:\n\t\tform = ScheduleForm(request.POST, instance=schedule)\n\t\tform.owner = request.user.username\n\t\tif form.is_valid():\n\t\t\tform.save()\n\t\t\t\n\t\t\treturn HttpResponseRedirect('/scheduler/all')\n\telse:\n\t\tform = ScheduleForm(instance=schedule)\n\t\tform.owner = request.user.username\n\t\n\treturn render_to_response('schedule.html', {\n\t\t'form': form,\n\t\t'full_name': request.user.first_name +\" \" +request.user.last_name\n\t\t}, context_instance=RequestContext(request))\n\t\ndef cancel_schedule(request, schedule_id):\n\tif not request.user.is_authenticated():\n\t\treturn HttpResponseRedirect('/accounts/login/')\n\t\t\n\tif schedule_id:\n\t\ta = Schedule.objects.get(id=schedule_id)\n\t\ta.status = 3\n\t\ta.save()\n\t\t\n\treturn HttpResponseRedirect('/scheduler/all')\n\ndef finish_schedule(request, schedule_id):\n\tif not request.user.is_authenticated():\n\t\treturn HttpResponseRedirect('/accounts/login/')\n\t\t\n\tif schedule_id:\n\t\ta = Schedule.objects.get(id=schedule_id)\n\t\ta.status = 2\n\t\ta.save()\n\t\t\n\treturn HttpResponseRedirect('/scheduler/all')\n\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40786,"cells":{"__id__":{"kind":"number","value":16673063074223,"string":"16,673,063,074,223"},"blob_id":{"kind":"string","value":"035959079a1769181bd2c16fa0dd7be289da03c5"},"directory_id":{"kind":"string","value":"d144ae6278b66788f380ab8a32e78745b9f4b025"},"path":{"kind":"string","value":"/karaage/software/views/user.py"},"content_id":{"kind":"string","value":"d7527cac58ccacfb45c9b0672d4a18ee4e138c1f"},"detected_licenses":{"kind":"list like","value":["GPL-3.0-only"],"string":"[\n \"GPL-3.0-only\"\n]"},"license_type":{"kind":"string","value":"non_permissive"},"repo_name":{"kind":"string","value":"NeCTAR-RC/karaage"},"repo_url":{"kind":"string","value":"https://github.com/NeCTAR-RC/karaage"},"snapshot_id":{"kind":"string","value":"e7f209345a54a2ea15a394343410d2e9c69618df"},"revision_id":{"kind":"string","value":"2843116a715d23b3cc2572a043ce51badbd6b5b0"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2021-05-01T16:25:32.981935","string":"2021-05-01T16:25:32.981935"},"revision_date":{"kind":"timestamp","value":"2014-01-30T06:37:53","string":"2014-01-30T06:37:53"},"committer_date":{"kind":"timestamp","value":"2014-01-31T00:20:52","string":"2014-01-31T00:20:52"},"github_id":{"kind":"number","value":16370364,"string":"16,370,364"},"star_events_count":{"kind":"number","value":1,"string":"1"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"# Copyright 2007-2013 VPAC\n#\n# This file is part of Karaage.\n#\n# Karaage is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version.\n#\n# Karaage is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with Karaage If not, see <http://www.gnu.org/licenses/>.\n\nfrom django.shortcuts import get_object_or_404, render_to_response\nfrom django.template import RequestContext\nfrom django.core.urlresolvers import reverse\nfrom django.http import HttpResponseRedirect, HttpResponse, Http404\nfrom django.template.defaultfilters import wordwrap\n\nimport datetime\n\nfrom karaage.common.decorators import login_required\nfrom karaage.software.models import Software, SoftwareLicenseAgreement\n\n\n@login_required\ndef add_package_list(request):\n\n person = request.user\n\n software_list = []\n for s in Software.objects.filter(softwarelicense__isnull=False).distinct():\n data = {'software': s}\n license_agreements = SoftwareLicenseAgreement.objects.filter(user=person, license__software=s)\n if license_agreements.count() > 0:\n la = license_agreements.latest()\n data['accepted'] = True\n data['accepted_date'] = la.date\n software_list.append(data)\n\n return render_to_response('software/add_package_list.html', locals(), context_instance=RequestContext(request))\n\n\n@login_required\ndef add_package(request, software_id):\n\n software = get_object_or_404(Software, pk=software_id)\n software_license = software.get_current_license()\n person = request.user\n\n if software_license is None:\n raise Http404(\"Package '%s' has no software license.\" % (software))\n\n if request.method == 'POST':\n\n if not software.restricted:\n SoftwareLicenseAgreement.objects.create(\n user=person,\n license=software_license,\n date=datetime.datetime.today(),\n )\n person.add_group(software.group)\n return HttpResponseRedirect(reverse('kg_user_profile_software'))\n\n return render_to_response('software/accept_license.html', locals(), context_instance=RequestContext(request))\n\n\n@login_required\ndef license_txt(request, software_id):\n\n software = get_object_or_404(Software, pk=software_id)\n software_license = software.get_current_license()\n\n return HttpResponse(wordwrap(software_license.text, 80), mimetype=\"text/plain\")\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40787,"cells":{"__id__":{"kind":"number","value":6030134114757,"string":"6,030,134,114,757"},"blob_id":{"kind":"string","value":"682e9dc3e39e03003eac2c92459aaa30e0e58b77"},"directory_id":{"kind":"string","value":"5b8332d985540aada63f6348a8760598c87796b3"},"path":{"kind":"string","value":"/src/python/Pipeline.py"},"content_id":{"kind":"string","value":"28a62a2468dee43d839ae37af5df73a7bf2ec063"},"detected_licenses":{"kind":"list like","value":["BSD-2-Clause"],"string":"[\n \"BSD-2-Clause\"\n]"},"license_type":{"kind":"string","value":"permissive"},"repo_name":{"kind":"string","value":"boratonAJ/ngs-pipeline"},"repo_url":{"kind":"string","value":"https://github.com/boratonAJ/ngs-pipeline"},"snapshot_id":{"kind":"string","value":"1b296d2556d31395f43cd409200ac9e0f1c33eb6"},"revision_id":{"kind":"string","value":"2d972f2fe4c265727b15a85b8422118653a88e77"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2020-12-11T09:27:33.777319","string":"2020-12-11T09:27:33.777319"},"revision_date":{"kind":"timestamp","value":"2011-06-14T04:32:59","string":"2011-06-14T04:32:59"},"committer_date":{"kind":"timestamp","value":"2011-06-14T04:32:59","string":"2011-06-14T04:32:59"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"from os.path import (split, splitext, join, exists)\nfrom os import (system, remove, mkdir)\nfrom Logger import (logInfo, logWarn)\nfrom sys import exit\nfrom shutil import copy\n\ndef mkOutputDir(dir):\n def tryMakeDir(dir):\n if not exists(dir):\n logInfo('Creating folder %s' % dir)\n try:\n mkdir(dir, '0777')\n except IOError, e:\n exit('%s\\nFailed to make directory %s' % (e, dir))\n tryMakeDir(dir)\n tryMakeDir(os.path.join(dir, 'Binary'))\n\ndef runCommand(msg, cmd):\n logInfo(msg)\n logInfo(command)\n status = system(command)\n if status != 0:\n logWarn(\"command '%s' returned non-zero status: %d'\" % (command, status))\n return status\n\ndef align(algorithm, threadFlags, dir, reference, sequence):\n (root, ext) = splitext(sequence)\n if ext != \".fastq\":\n exit(\"align: sequence file %s does not have .fastq extension\" % sequence)\n alignmentFile = root + \".sai\"\n command = \"bwa %s -t %s %s %s > %s\" % (algorithm, threadFlags, reference, sequence, alignmentFile)\n runCommand (\"Running Alignment\", command)\n return alignment\n\ndef align2Sam (flags, reference, sequence, alignment):\n (root, ext) = splitext(alignment)\n if ext != \".sai\":\n exit(\"align2Sam: alignment file %s does not have .sai extension\" % alignment)\n samfile = root + \".sam\"\n command = \"bwa %s %s %s %s > %s\" % (flags, reference, alignment, sequence, samfile)\n runCommand(\"Converting alignment to SAM format\", command)\n return samfile\n\ndef ills2FastQs(sequences):\n return map(illumina2FastQ, sequences)\n\ndef illumina2FastQ(file):\n (root, ext) = split(file)\n sangerFile = root + \".fastq\"\n if ext == \".fastq\":\n logInfo(\"illumina2FastQ: file %s already in Standard/Sanger FASTQ Format\" % file)\n elif ext == \".txt\":\n command = \"maq ill2sanger %s %s\" % (file, sangerFile)\n runCommand(\"Converting illumina file to Standard/Sanger FASTQ Format\", command)\n else:\n exit(\"sequence file %s not in illumina (.txt) or sanger (.fastq) format\" % file)\n return sangerFile\n\n# create reference database\ndef mkRefDataBase(reference, indexFlags):\n refDatabase = referenece + \".bwt\"\n if exists(refDatabase) \n logInfo(\"Reference database already exists: using %s\" % refDatabase)\n else:\n command = \"bwa index %s %s\" % (indexFlags, reference)\n runCommand(\"Creating Reference Database\", command)\n return refDatabase \n\n# index the reference\ndef indexReference(reference):\n referenceIndex = reference + .\".fai\"\n if exists(referenceIndex):\n logInfo(\"Reflist already exists: using %s\" % referenceIndex)\n else:\n command = \"samtools faidx %s\" % reference\n runCommand(\"Creating Reflist\", command)\n return referenceIndex\n\ndef mergeBamsAndIndex(dir, bamFiles):\n bamAlignFile = dir + \"Binary/all_reads_aligned.bam\"\n numBams = len(bamFiles);\n # If there is more than one BAM file then merge them.\n if numBams > 1:\n command = \"samtools merge %s %s\" % (bamAlignFile, ' '.join(bamFiles))\n runCommand (\"Merging Bam files\", command)\n elif numBams == 1:\n copy(bamfiles[0], bamAlignFile)\n else:\n exit(\"Attempt to merge and index zero BAM files\")\n command = \"samtools index %s\" % bamAlignFile\n runCommand(\"Indexing Alignment File\", command)\n return bamAlignFile\n\ndef pileup(dir, pileupFlags, reference, bamAlignFile):\n pileupFile = dir + \"reads_aligned.pileup\"\n command = \"samtools pileup %s -f %s %s > %s\" % (pileupFlags, reference, bamAlignFile, pileupFile)\n runCommand(\"Constructing Pileup File\", command)\n return pileupFile\n\n# Convert SAM to BAM\n# Assumes the Binary directory has been created already.\ndef sam2Bam(vregion, viewFlag, reference, samFile):\n (root, base) = split(samFile)\n (name, ext) = splitext(base)\n if ext != \".sam\":\n exit(\"sam2Bam: file %s does not end in .sam extension\" % samFile)\n bamAlignFile = os.path.join(root + \"Binary\", name + \".bam\")\n command = \"samtools view $VIEWFLAG -t $REFERENCE.fai -o $BAMALIGN $SAMFILE @VREGION\";\n faiFile = reference + \".fai\"\n command = \"samtools view %s -t %s -o %s %s %s\" % (viewFlag, faiFile, bamAlignFile, samFile, vregion) \n runCommand(\"Converting to BAM\", command)\n return bamAlignFile\n\n# Sort a BAM file\ndef sortBam(bamAlignFile, sortFlags):\n (root, ext) = splitext(bamAlignFile)\n sortedBamFile = root + \".sorted\"\n command = \"samtools sort %s %s %s\" % (sortFlags, bamAlignFile, sortedBamFile)\n runCommand(\"Sorting Bam alignments\", command)\n # I think we should leave the decision to remove the BAM file to the\n # caller of this function.\n #remove(bamAlignFile)\n return sortedBamFile + \".bam\"\n\n# run the variations filter\ndef varFilter(varFilterFlags, pileupFile, outputExtension):\n snpsFile = pileupFile + outputExtension\n command = \"samtools.pl varFilter $VARFILTERFLAGS $PILEUPFILE &> $SNPSFILE\";\n command = \"samtools.pl varFilter %s %s &> %s\" % (varFilterFlags, pileupFile, snpsFile)\n runCommand(\"Running Variations Filter\", command)\n return snpsFile \n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2011,"string":"2,011"}}},{"rowIdx":40788,"cells":{"__id__":{"kind":"number","value":15212774169891,"string":"15,212,774,169,891"},"blob_id":{"kind":"string","value":"9b5da255b90d5810ab71aee729cf22a8231d1844"},"directory_id":{"kind":"string","value":"d5577c9ac9ec64aa75b75aa3fabb5a8e08550829"},"path":{"kind":"string","value":"/lib/scavenger/policy/plugins/trap.py"},"content_id":{"kind":"string","value":"b3fa946fad823eb6d2ca2c98d2eb3a8024380199"},"detected_licenses":{"kind":"list like","value":["AGPL-3.0-only"],"string":"[\n \"AGPL-3.0-only\"\n]"},"license_type":{"kind":"string","value":"non_permissive"},"repo_name":{"kind":"string","value":"digideskio/scavengerexa"},"repo_url":{"kind":"string","value":"https://github.com/digideskio/scavengerexa"},"snapshot_id":{"kind":"string","value":"b36fe50894ea9b2ebcd166742b7696cc95041e9c"},"revision_id":{"kind":"string","value":"8db7bd4417f2c1847c50127829eca03e20d0a77e"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2020-06-13T15:51:16.106427","string":"2020-06-13T15:51:16.106427"},"revision_date":{"kind":"timestamp","value":"2010-11-25T12:19:47","string":"2010-11-25T12:19:47"},"committer_date":{"kind":"timestamp","value":"2010-11-25T12:19:47","string":"2010-11-25T12:19:47"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"# a plugin which detect email which were only created to collect spam\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2010,"string":"2,010"}}},{"rowIdx":40789,"cells":{"__id__":{"kind":"number","value":9122510554354,"string":"9,122,510,554,354"},"blob_id":{"kind":"string","value":"74054362d7aa7ed4e111d5f7c5d0ebbb7ce94556"},"directory_id":{"kind":"string","value":"0688f5858bdbfc475b2f00ac77040686e905189c"},"path":{"kind":"string","value":"/tupan/__init__.py"},"content_id":{"kind":"string","value":"e51f2e317f4b0383beb99741b7287784e6c425ec"},"detected_licenses":{"kind":"list like","value":["MIT"],"string":"[\n \"MIT\"\n]"},"license_type":{"kind":"string","value":"permissive"},"repo_name":{"kind":"string","value":"ggf84/tupan"},"repo_url":{"kind":"string","value":"https://github.com/ggf84/tupan"},"snapshot_id":{"kind":"string","value":"a059da8425b745be0bf1be22b7cbf7de06301153"},"revision_id":{"kind":"string","value":"67d3aa103d77248a04e8f112930ba7bdb55024b2"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2021-01-23T15:17:59.850456","string":"2021-01-23T15:17:59.850456"},"revision_date":{"kind":"timestamp","value":"2014-02-15T18:57:54","string":"2014-02-15T18:57:54"},"committer_date":{"kind":"timestamp","value":"2014-02-15T18:57:54","string":"2014-02-15T18:57:54"},"github_id":{"kind":"number","value":988037,"string":"988,037"},"star_events_count":{"kind":"number","value":1,"string":"1"},"fork_events_count":{"kind":"number","value":4,"string":"4"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"# -*- coding: utf-8 -*-\n#\n\n\"\"\"\nA Python Toolkit for Astrophysical N-Body Simulations.\n\"\"\"\n\n\nimport os\nimport logging\nimport tempfile\n\n# set up logging to file\nLOG_FILENAME = os.path.join(tempfile.gettempdir(), \"tupan.log\")\nLOG_FORMAT = \"%(asctime)s - %(name)s - %(levelname)s - %(message)s\"\nlogging.basicConfig(level=logging.DEBUG,\n format=LOG_FORMAT,\n filename=LOG_FILENAME,\n filemode=\"w\",\n )\n\n## set up logging to console\n#console = logging.StreamHandler()\n#console.setLevel(logging.INFO)\n#\n## set a simpler format for console use\n#formatter = logging.Formatter(\"# %(name)s - %(levelname)s - %(message)s\")\n#console.setFormatter(formatter)\n#\n## add the handler to the root logger\n#logging.getLogger(\"\").addHandler(console)\n\n\n########## end of file ##########\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40790,"cells":{"__id__":{"kind":"number","value":3710851746579,"string":"3,710,851,746,579"},"blob_id":{"kind":"string","value":"ad67067384cb33ebde9a634ea1b35fd706dd6e98"},"directory_id":{"kind":"string","value":"6f72fa12770dce74e183774aaf30fc77835550e3"},"path":{"kind":"string","value":"/utils/writetoexcel.py"},"content_id":{"kind":"string","value":"8a62228f99adf4a0bc248ea9b56c3cd5b7f3f87e"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"repo_name":{"kind":"string","value":"MinHuZ/FrameworkForAndroidTest"},"repo_url":{"kind":"string","value":"https://github.com/MinHuZ/FrameworkForAndroidTest"},"snapshot_id":{"kind":"string","value":"7a7582e0880d5767868d648099cacc40c88de29e"},"revision_id":{"kind":"string","value":"b6a98af2bd9bb92a4e8e4260b9771660b1a26798"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2020-01-31T11:24:37.073956","string":"2020-01-31T11:24:37.073956"},"revision_date":{"kind":"timestamp","value":"2014-08-16T12:03:28","string":"2014-08-16T12:03:28"},"committer_date":{"kind":"timestamp","value":"2014-08-16T12:03:28","string":"2014-08-16T12:03:28"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"# -*- coding: utf-8 -*-\n__author__ = 'dongdaqing'\n\nimport os,time,codecs\nfrom pyExcelerator import *\n\nclass WritetoExcel(object):\n def __init__(self,filename):\n self.root_path = os.path.dirname(filename)\n\n #设置边框\n borders = Borders()\n borders.left = 1\n borders.right = 1\n borders.top = 1\n borders.bottom = 1\n\n #水平向左,垂直居中对齐\n al1 = Alignment()\n al1.horz = Alignment.HORZ_LEFT\n al1.vert = Alignment.VERT_CENTER\n al1.wrap = Alignment.WRAP_AT_RIGHT\n\n #excel颜色定义\n #绿色\n self.style_green = XFStyle()\n self.pattern = Pattern()\n self.pattern.pattern_back_colour = 0x11\n self.pattern.pattern_fore_colour = 0x11\n self.pattern.pattern = self.pattern.SOLID_PATTERN\n self.style_green.pattern = self.pattern\n\n #红色\n self.style_red = XFStyle()\n self.pattern = Pattern()\n self.pattern.pattern_back_colour = 0x0a\n self.pattern.pattern_fore_colour = 0x0a\n self.pattern.pattern = self.pattern.SOLID_PATTERN\n self.style_red.pattern = self.pattern\n\n #普通\n self.style_basic = XFStyle()\n self.style_basic.alignment = al1\n self.style_basic.borders = borders\n\n def txtToExcel(self,flag):\n \"\"\"\n 将txt文件写入excel\n \"\"\"\n root_path = self.root_path\n assert os.path.exists(root_path)\n w=Workbook()\n os.chdir(root_path)\n\n file_names = os.listdir('.')\n for file_name in file_names:\n if file_name.find(flag) != -1:\n file_path = os.path.join(root_path,file_name)\n ws = w.add_sheet(flag)\n try:\n f = codecs.open(file_path,'r','utf-8')\n except IOError:\n sys.exit('Failed to open')\n else:\n lines = f.readlines()\n finally:\n f.close()\n for i in range(0,len(lines)):\n line = lines[i].split('\\t')\n for j in range(0,len(line)):\n b=line[j].strip()\n if b == 'Failed':\n ws.write(i,j,b,self.style_red)\n elif b == 'Passed':\n ws.write(i,j,b,self.style_green)\n else:\n ws.write(i,j,b)\n save_path=os.path.join(root_path,flag+'.xls')\n if os.path.exists(save_path):\n os.remove(save_path)\n w.save(save_path)\n\n def basicToExcel(self,ws,row,col,src):\n \"\"\"\n 将dict,str写入excel\n \"\"\"\n ws.write(row,col,src,self.style_basic)\n\n\n\nif __name__ == '__main__':\n filename = 'D:\\\\svn\\\\repos\\\\AutomatedTesting\\\\DailyBuild\\\\uitest\\\\temp\\\\20130701175043\\\\caseresult.txt'\n WritetoExcel(filename).txtToExcel('caseresult')\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40791,"cells":{"__id__":{"kind":"number","value":3229815438781,"string":"3,229,815,438,781"},"blob_id":{"kind":"string","value":"1be11e52fdb197213a8bdbaa706bb575baaa4d3e"},"directory_id":{"kind":"string","value":"3c1c146817cb41c4273f437584b6681a2aa3efa0"},"path":{"kind":"string","value":"/app/ui/mainwindow.py"},"content_id":{"kind":"string","value":"85c762953f7fc255c762c53aa5bd8d28e9859e35"},"detected_licenses":{"kind":"list like","value":["LicenseRef-scancode-proprietary-license","GPL-2.0-only"],"string":"[\n \"LicenseRef-scancode-proprietary-license\",\n \"GPL-2.0-only\"\n]"},"license_type":{"kind":"string","value":"non_permissive"},"repo_name":{"kind":"string","value":"towle-lab/electrode-registration-app"},"repo_url":{"kind":"string","value":"https://github.com/towle-lab/electrode-registration-app"},"snapshot_id":{"kind":"string","value":"a38159d72b2892f1eee78c0319d1212cfba9a4b1"},"revision_id":{"kind":"string","value":"bbdfaa500cef02c7121b5c70d15aef6e9c41020f"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2016-09-03T07:33:01.427709","string":"2016-09-03T07:33:01.427709"},"revision_date":{"kind":"timestamp","value":"2014-08-05T23:18:19","string":"2014-08-05T23:18:19"},"committer_date":{"kind":"timestamp","value":"2014-08-05T23:18:19","string":"2014-08-05T23:18:19"},"github_id":{"kind":"number","value":18225314,"string":"18,225,314"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":1,"string":"1"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"# -*- coding: utf-8 -*-\n\n# Form implementation generated from reading ui file 'app/ui/mainwindow.ui'\n#\n# Created: Tue Aug 5 17:31:33 2014\n# by: pyside-uic 0.2.15 running on PySide 1.2.1\n#\n# WARNING! All changes made in this file will be lost!\n\nfrom PySide import QtCore, QtGui\n\nclass Ui_MainWindow(object):\n def setupUi(self, MainWindow):\n MainWindow.setObjectName(\"MainWindow\")\n MainWindow.resize(1000, 645)\n MainWindow.setStyleSheet(\"QMenuBar { \\n\"\n\" background-color: rgb(197, 197, 197);\\n\"\n\"}\\n\"\n\"\\n\"\n\"QMenuBar::item {\\n\"\n\" background-color: rgb(197, 197, 197);\\n\"\n\" color: black;\\n\"\n\"}\")\n self.centralwidget = QtGui.QWidget(MainWindow)\n self.centralwidget.setObjectName(\"centralwidget\")\n self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)\n self.horizontalLayout.setObjectName(\"horizontalLayout\")\n MainWindow.setCentralWidget(self.centralwidget)\n self.menubar = QtGui.QMenuBar(MainWindow)\n self.menubar.setGeometry(QtCore.QRect(0, 0, 1000, 25))\n self.menubar.setAutoFillBackground(False)\n self.menubar.setNativeMenuBar(False)\n self.menubar.setObjectName(\"menubar\")\n self.menuFile = QtGui.QMenu(self.menubar)\n self.menuFile.setObjectName(\"menuFile\")\n self.menuHelp = QtGui.QMenu(self.menubar)\n self.menuHelp.setObjectName(\"menuHelp\")\n self.menuView = QtGui.QMenu(self.menubar)\n self.menuView.setObjectName(\"menuView\")\n self.menuAdvanced = QtGui.QMenu(self.menubar)\n self.menuAdvanced.setObjectName(\"menuAdvanced\")\n MainWindow.setMenuBar(self.menubar)\n self.dockWidget = QtGui.QDockWidget(MainWindow)\n self.dockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable)\n self.dockWidget.setAllowedAreas(QtCore.Qt.LeftDockWidgetArea|QtCore.Qt.RightDockWidgetArea)\n self.dockWidget.setObjectName(\"dockWidget\")\n self.dockWidgetContents = QtGui.QWidget()\n self.dockWidgetContents.setObjectName(\"dockWidgetContents\")\n self.verticalLayout_3 = QtGui.QVBoxLayout(self.dockWidgetContents)\n self.verticalLayout_3.setContentsMargins(5, 5, 5, 5)\n self.verticalLayout_3.setObjectName(\"verticalLayout_3\")\n self.tabWidget = QtGui.QTabWidget(self.dockWidgetContents)\n self.tabWidget.setTabPosition(QtGui.QTabWidget.North)\n self.tabWidget.setTabShape(QtGui.QTabWidget.Rounded)\n self.tabWidget.setMovable(True)\n self.tabWidget.setObjectName(\"tabWidget\")\n self.tab_segment = QtGui.QWidget()\n self.tab_segment.setObjectName(\"tab_segment\")\n self.verticalLayout_7 = QtGui.QVBoxLayout(self.tab_segment)\n self.verticalLayout_7.setObjectName(\"verticalLayout_7\")\n self.pushButton_open_ct_dura = QtGui.QPushButton(self.tab_segment)\n self.pushButton_open_ct_dura.setAutoDefault(False)\n self.pushButton_open_ct_dura.setDefault(False)\n self.pushButton_open_ct_dura.setObjectName(\"pushButton_open_ct_dura\")\n self.verticalLayout_7.addWidget(self.pushButton_open_ct_dura)\n self.frame_segment = QtGui.QFrame(self.tab_segment)\n self.frame_segment.setEnabled(False)\n self.frame_segment.setFrameShape(QtGui.QFrame.StyledPanel)\n self.frame_segment.setFrameShadow(QtGui.QFrame.Raised)\n self.frame_segment.setLineWidth(2)\n self.frame_segment.setObjectName(\"frame_segment\")\n self.verticalLayout = QtGui.QVBoxLayout(self.frame_segment)\n self.verticalLayout.setObjectName(\"verticalLayout\")\n self.groupBox = QtGui.QGroupBox(self.frame_segment)\n self.groupBox.setObjectName(\"groupBox\")\n self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox)\n self.horizontalLayout_2.setObjectName(\"horizontalLayout_2\")\n self.horizontalSlider_threshold = QtGui.QSlider(self.groupBox)\n self.horizontalSlider_threshold.setOrientation(QtCore.Qt.Horizontal)\n self.horizontalSlider_threshold.setObjectName(\"horizontalSlider_threshold\")\n self.horizontalLayout_2.addWidget(self.horizontalSlider_threshold)\n self.spinBox_threshold = QtGui.QSpinBox(self.groupBox)\n self.spinBox_threshold.setObjectName(\"spinBox_threshold\")\n self.horizontalLayout_2.addWidget(self.spinBox_threshold)\n self.verticalLayout.addWidget(self.groupBox)\n self.pushButton_preview_threshold = QtGui.QPushButton(self.frame_segment)\n self.pushButton_preview_threshold.setObjectName(\"pushButton_preview_threshold\")\n self.verticalLayout.addWidget(self.pushButton_preview_threshold)\n self.pushButton_hide_preview = QtGui.QPushButton(self.frame_segment)\n self.pushButton_hide_preview.setEnabled(False)\n self.pushButton_hide_preview.setObjectName(\"pushButton_hide_preview\")\n self.verticalLayout.addWidget(self.pushButton_hide_preview)\n self.verticalLayout_7.addWidget(self.frame_segment)\n self.frame_segment_config = QtGui.QFrame(self.tab_segment)\n self.frame_segment_config.setEnabled(False)\n self.frame_segment_config.setFrameShape(QtGui.QFrame.StyledPanel)\n self.frame_segment_config.setFrameShadow(QtGui.QFrame.Raised)\n self.frame_segment_config.setObjectName(\"frame_segment_config\")\n self.verticalLayout_6 = QtGui.QVBoxLayout(self.frame_segment_config)\n self.verticalLayout_6.setObjectName(\"verticalLayout_6\")\n self.groupBox_heuristic_distance = QtGui.QGroupBox(self.frame_segment_config)\n self.groupBox_heuristic_distance.setObjectName(\"groupBox_heuristic_distance\")\n self.horizontalLayout_3 = QtGui.QHBoxLayout(self.groupBox_heuristic_distance)\n self.horizontalLayout_3.setObjectName(\"horizontalLayout_3\")\n self.horizontalSlider_distance = QtGui.QSlider(self.groupBox_heuristic_distance)\n self.horizontalSlider_distance.setOrientation(QtCore.Qt.Horizontal)\n self.horizontalSlider_distance.setInvertedControls(False)\n self.horizontalSlider_distance.setTickPosition(QtGui.QSlider.NoTicks)\n self.horizontalSlider_distance.setObjectName(\"horizontalSlider_distance\")\n self.horizontalLayout_3.addWidget(self.horizontalSlider_distance)\n self.doubleSpinBox_distance = QtGui.QDoubleSpinBox(self.groupBox_heuristic_distance)\n self.doubleSpinBox_distance.setObjectName(\"doubleSpinBox_distance\")\n self.horizontalLayout_3.addWidget(self.doubleSpinBox_distance)\n self.label = QtGui.QLabel(self.groupBox_heuristic_distance)\n self.label.setObjectName(\"label\")\n self.horizontalLayout_3.addWidget(self.label)\n self.verticalLayout_6.addWidget(self.groupBox_heuristic_distance)\n self.groupBox_heuristic_size = QtGui.QGroupBox(self.frame_segment_config)\n self.groupBox_heuristic_size.setObjectName(\"groupBox_heuristic_size\")\n self.horizontalLayout_4 = QtGui.QHBoxLayout(self.groupBox_heuristic_size)\n self.horizontalLayout_4.setObjectName(\"horizontalLayout_4\")\n self.horizontalSlider_size = QtGui.QSlider(self.groupBox_heuristic_size)\n self.horizontalSlider_size.setOrientation(QtCore.Qt.Horizontal)\n self.horizontalSlider_size.setObjectName(\"horizontalSlider_size\")\n self.horizontalLayout_4.addWidget(self.horizontalSlider_size)\n self.doubleSpinBox_size = QtGui.QDoubleSpinBox(self.groupBox_heuristic_size)\n self.doubleSpinBox_size.setObjectName(\"doubleSpinBox_size\")\n self.horizontalLayout_4.addWidget(self.doubleSpinBox_size)\n self.label_2 = QtGui.QLabel(self.groupBox_heuristic_size)\n self.label_2.setTextFormat(QtCore.Qt.RichText)\n self.label_2.setObjectName(\"label_2\")\n self.horizontalLayout_4.addWidget(self.label_2)\n self.verticalLayout_6.addWidget(self.groupBox_heuristic_size)\n self.verticalLayout_7.addWidget(self.frame_segment_config)\n self.pushButton_segment = QtGui.QPushButton(self.tab_segment)\n self.pushButton_segment.setEnabled(False)\n self.pushButton_segment.setObjectName(\"pushButton_segment\")\n self.verticalLayout_7.addWidget(self.pushButton_segment)\n spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)\n self.verticalLayout_7.addItem(spacerItem)\n self.tabWidget.addTab(self.tab_segment, \"\")\n self.tab_edit = QtGui.QWidget()\n self.tab_edit.setEnabled(False)\n self.tab_edit.setObjectName(\"tab_edit\")\n self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab_edit)\n self.verticalLayout_2.setObjectName(\"verticalLayout_2\")\n self.treeView_edit = QtGui.QTreeView(self.tab_edit)\n self.treeView_edit.setAlternatingRowColors(True)\n self.treeView_edit.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)\n self.treeView_edit.setObjectName(\"treeView_edit\")\n self.verticalLayout_2.addWidget(self.treeView_edit)\n self.horizontalLayout_9 = QtGui.QHBoxLayout()\n self.horizontalLayout_9.setObjectName(\"horizontalLayout_9\")\n spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)\n self.horizontalLayout_9.addItem(spacerItem1)\n self.label_edit_select_count = QtGui.QLabel(self.tab_edit)\n sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)\n sizePolicy.setHorizontalStretch(0)\n sizePolicy.setVerticalStretch(0)\n sizePolicy.setHeightForWidth(self.label_edit_select_count.sizePolicy().hasHeightForWidth())\n self.label_edit_select_count.setSizePolicy(sizePolicy)\n self.label_edit_select_count.setObjectName(\"label_edit_select_count\")\n self.horizontalLayout_9.addWidget(self.label_edit_select_count)\n self.label_6 = QtGui.QLabel(self.tab_edit)\n self.label_6.setObjectName(\"label_6\")\n self.horizontalLayout_9.addWidget(self.label_6)\n self.verticalLayout_2.addLayout(self.horizontalLayout_9)\n self.horizontalLayout_7 = QtGui.QHBoxLayout()\n self.horizontalLayout_7.setObjectName(\"horizontalLayout_7\")\n self.label_edit_electrode_count = QtGui.QLabel(self.tab_edit)\n sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)\n sizePolicy.setHorizontalStretch(0)\n sizePolicy.setVerticalStretch(0)\n sizePolicy.setHeightForWidth(self.label_edit_electrode_count.sizePolicy().hasHeightForWidth())\n self.label_edit_electrode_count.setSizePolicy(sizePolicy)\n self.label_edit_electrode_count.setText(\"\")\n self.label_edit_electrode_count.setObjectName(\"label_edit_electrode_count\")\n self.horizontalLayout_7.addWidget(self.label_edit_electrode_count)\n self.label_7 = QtGui.QLabel(self.tab_edit)\n self.label_7.setObjectName(\"label_7\")\n self.horizontalLayout_7.addWidget(self.label_7)\n spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)\n self.horizontalLayout_7.addItem(spacerItem2)\n self.label_component_count = QtGui.QLabel(self.tab_edit)\n sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)\n sizePolicy.setHorizontalStretch(0)\n sizePolicy.setVerticalStretch(0)\n sizePolicy.setHeightForWidth(self.label_component_count.sizePolicy().hasHeightForWidth())\n self.label_component_count.setSizePolicy(sizePolicy)\n self.label_component_count.setText(\"\")\n self.label_component_count.setObjectName(\"label_component_count\")\n self.horizontalLayout_7.addWidget(self.label_component_count)\n self.label_5 = QtGui.QLabel(self.tab_edit)\n self.label_5.setObjectName(\"label_5\")\n self.horizontalLayout_7.addWidget(self.label_5)\n self.verticalLayout_2.addLayout(self.horizontalLayout_7)\n self.line = QtGui.QFrame(self.tab_edit)\n self.line.setFrameShape(QtGui.QFrame.HLine)\n self.line.setFrameShadow(QtGui.QFrame.Sunken)\n self.line.setObjectName(\"line\")\n self.verticalLayout_2.addWidget(self.line)\n self.pushButton_add = QtGui.QPushButton(self.tab_edit)\n self.pushButton_add.setCheckable(True)\n self.pushButton_add.setObjectName(\"pushButton_add\")\n self.verticalLayout_2.addWidget(self.pushButton_add)\n self.pushButton_import_point_set = QtGui.QPushButton(self.tab_edit)\n self.pushButton_import_point_set.setObjectName(\"pushButton_import_point_set\")\n self.verticalLayout_2.addWidget(self.pushButton_import_point_set)\n self.horizontalLayout_10 = QtGui.QHBoxLayout()\n self.horizontalLayout_10.setObjectName(\"horizontalLayout_10\")\n self.pushButton_remove = QtGui.QPushButton(self.tab_edit)\n self.pushButton_remove.setObjectName(\"pushButton_remove\")\n self.horizontalLayout_10.addWidget(self.pushButton_remove)\n self.pushButton_restore = QtGui.QPushButton(self.tab_edit)\n self.pushButton_restore.setObjectName(\"pushButton_restore\")\n self.horizontalLayout_10.addWidget(self.pushButton_restore)\n self.verticalLayout_2.addLayout(self.horizontalLayout_10)\n self.horizontalLayout_5 = QtGui.QHBoxLayout()\n self.horizontalLayout_5.setObjectName(\"horizontalLayout_5\")\n self.label_3 = QtGui.QLabel(self.tab_edit)\n self.label_3.setObjectName(\"label_3\")\n self.horizontalLayout_5.addWidget(self.label_3)\n self.spinBox_split = QtGui.QSpinBox(self.tab_edit)\n sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)\n sizePolicy.setHorizontalStretch(1)\n sizePolicy.setVerticalStretch(0)\n sizePolicy.setHeightForWidth(self.spinBox_split.sizePolicy().hasHeightForWidth())\n self.spinBox_split.setSizePolicy(sizePolicy)\n self.spinBox_split.setMinimum(2)\n self.spinBox_split.setObjectName(\"spinBox_split\")\n self.horizontalLayout_5.addWidget(self.spinBox_split)\n self.pushButton_split = QtGui.QPushButton(self.tab_edit)\n self.pushButton_split.setObjectName(\"pushButton_split\")\n self.horizontalLayout_5.addWidget(self.pushButton_split)\n self.verticalLayout_2.addLayout(self.horizontalLayout_5)\n self.pushButton_clear = QtGui.QPushButton(self.tab_edit)\n self.pushButton_clear.setObjectName(\"pushButton_clear\")\n self.verticalLayout_2.addWidget(self.pushButton_clear)\n self.tabWidget.addTab(self.tab_edit, \"\")\n self.tab_label = QtGui.QWidget()\n self.tab_label.setEnabled(False)\n self.tab_label.setObjectName(\"tab_label\")\n self.verticalLayout_5 = QtGui.QVBoxLayout(self.tab_label)\n self.verticalLayout_5.setObjectName(\"verticalLayout_5\")\n self.tableView_label = QtGui.QTableView(self.tab_label)\n self.tableView_label.setAlternatingRowColors(True)\n self.tableView_label.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)\n self.tableView_label.setSortingEnabled(True)\n self.tableView_label.setObjectName(\"tableView_label\")\n self.verticalLayout_5.addWidget(self.tableView_label)\n self.horizontalLayout_12 = QtGui.QHBoxLayout()\n self.horizontalLayout_12.setObjectName(\"horizontalLayout_12\")\n spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)\n self.horizontalLayout_12.addItem(spacerItem3)\n self.label_label_select_count = QtGui.QLabel(self.tab_label)\n sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)\n sizePolicy.setHorizontalStretch(0)\n sizePolicy.setVerticalStretch(0)\n sizePolicy.setHeightForWidth(self.label_label_select_count.sizePolicy().hasHeightForWidth())\n self.label_label_select_count.setSizePolicy(sizePolicy)\n self.label_label_select_count.setObjectName(\"label_label_select_count\")\n self.horizontalLayout_12.addWidget(self.label_label_select_count)\n self.label_10 = QtGui.QLabel(self.tab_label)\n self.label_10.setObjectName(\"label_10\")\n self.horizontalLayout_12.addWidget(self.label_10)\n self.verticalLayout_5.addLayout(self.horizontalLayout_12)\n self.horizontalLayout_8 = QtGui.QHBoxLayout()\n self.horizontalLayout_8.setObjectName(\"horizontalLayout_8\")\n self.lineEdit_grid_label = QtGui.QLineEdit(self.tab_label)\n self.lineEdit_grid_label.setObjectName(\"lineEdit_grid_label\")\n self.horizontalLayout_8.addWidget(self.lineEdit_grid_label)\n self.pushButton_assign_grid_label = QtGui.QPushButton(self.tab_label)\n self.pushButton_assign_grid_label.setObjectName(\"pushButton_assign_grid_label\")\n self.horizontalLayout_8.addWidget(self.pushButton_assign_grid_label)\n self.verticalLayout_5.addLayout(self.horizontalLayout_8)\n self.pushButton_label_clear = QtGui.QPushButton(self.tab_label)\n self.pushButton_label_clear.setObjectName(\"pushButton_label_clear\")\n self.verticalLayout_5.addWidget(self.pushButton_label_clear)\n self.pushButton_export = QtGui.QPushButton(self.tab_label)\n self.pushButton_export.setObjectName(\"pushButton_export\")\n self.verticalLayout_5.addWidget(self.pushButton_export)\n self.tabWidget.addTab(self.tab_label, \"\")\n self.tab_register = QtGui.QWidget()\n self.tab_register.setEnabled(False)\n self.tab_register.setObjectName(\"tab_register\")\n self.verticalLayout_4 = QtGui.QVBoxLayout(self.tab_register)\n self.verticalLayout_4.setObjectName(\"verticalLayout_4\")\n self.listView_register = QtGui.QListView(self.tab_register)\n sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)\n sizePolicy.setHorizontalStretch(0)\n sizePolicy.setVerticalStretch(0)\n sizePolicy.setHeightForWidth(self.listView_register.sizePolicy().hasHeightForWidth())\n self.listView_register.setSizePolicy(sizePolicy)\n self.listView_register.setAlternatingRowColors(True)\n self.listView_register.setSelectionMode(QtGui.QAbstractItemView.MultiSelection)\n self.listView_register.setObjectName(\"listView_register\")\n self.verticalLayout_4.addWidget(self.listView_register)\n self.horizontalLayout_6 = QtGui.QHBoxLayout()\n self.horizontalLayout_6.setObjectName(\"horizontalLayout_6\")\n spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)\n self.horizontalLayout_6.addItem(spacerItem4)\n self.label_register_select_count = QtGui.QLabel(self.tab_register)\n sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)\n sizePolicy.setHorizontalStretch(0)\n sizePolicy.setVerticalStretch(0)\n sizePolicy.setHeightForWidth(self.label_register_select_count.sizePolicy().hasHeightForWidth())\n self.label_register_select_count.setSizePolicy(sizePolicy)\n self.label_register_select_count.setObjectName(\"label_register_select_count\")\n self.horizontalLayout_6.addWidget(self.label_register_select_count)\n self.label_8 = QtGui.QLabel(self.tab_register)\n self.label_8.setObjectName(\"label_8\")\n self.horizontalLayout_6.addWidget(self.label_8)\n self.verticalLayout_4.addLayout(self.horizontalLayout_6)\n self.horizontalLayout_11 = QtGui.QHBoxLayout()\n self.horizontalLayout_11.setObjectName(\"horizontalLayout_11\")\n self.label_register_complete_count = QtGui.QLabel(self.tab_register)\n sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)\n sizePolicy.setHorizontalStretch(0)\n sizePolicy.setVerticalStretch(0)\n sizePolicy.setHeightForWidth(self.label_register_complete_count.sizePolicy().hasHeightForWidth())\n self.label_register_complete_count.setSizePolicy(sizePolicy)\n self.label_register_complete_count.setObjectName(\"label_register_complete_count\")\n self.horizontalLayout_11.addWidget(self.label_register_complete_count)\n self.label_9 = QtGui.QLabel(self.tab_register)\n self.label_9.setObjectName(\"label_9\")\n self.horizontalLayout_11.addWidget(self.label_9)\n spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)\n self.horizontalLayout_11.addItem(spacerItem5)\n self.label_register_electrode_count = QtGui.QLabel(self.tab_register)\n self.label_register_electrode_count.setObjectName(\"label_register_electrode_count\")\n self.horizontalLayout_11.addWidget(self.label_register_electrode_count)\n self.label_4 = QtGui.QLabel(self.tab_register)\n self.label_4.setObjectName(\"label_4\")\n self.horizontalLayout_11.addWidget(self.label_4)\n self.verticalLayout_4.addLayout(self.horizontalLayout_11)\n self.gridLayout = QtGui.QGridLayout()\n self.gridLayout.setObjectName(\"gridLayout\")\n self.pushButton_svd = QtGui.QPushButton(self.tab_register)\n self.pushButton_svd.setObjectName(\"pushButton_svd\")\n self.gridLayout.addWidget(self.pushButton_svd, 1, 0, 1, 1)\n self.pushButton_manual = QtGui.QPushButton(self.tab_register)\n self.pushButton_manual.setCheckable(True)\n self.pushButton_manual.setChecked(False)\n self.pushButton_manual.setObjectName(\"pushButton_manual\")\n self.gridLayout.addWidget(self.pushButton_manual, 1, 1, 1, 1)\n self.pushButton_nearest = QtGui.QPushButton(self.tab_register)\n self.pushButton_nearest.setObjectName(\"pushButton_nearest\")\n self.gridLayout.addWidget(self.pushButton_nearest, 0, 1, 1, 1)\n self.pushButton_principal = QtGui.QPushButton(self.tab_register)\n self.pushButton_principal.setObjectName(\"pushButton_principal\")\n self.gridLayout.addWidget(self.pushButton_principal, 0, 0, 1, 1)\n self.pushButton_unregister = QtGui.QPushButton(self.tab_register)\n self.pushButton_unregister.setObjectName(\"pushButton_unregister\")\n self.gridLayout.addWidget(self.pushButton_unregister, 2, 0, 1, 2)\n self.verticalLayout_4.addLayout(self.gridLayout)\n self.pushButton_register_clear = QtGui.QPushButton(self.tab_register)\n self.pushButton_register_clear.setObjectName(\"pushButton_register_clear\")\n self.verticalLayout_4.addWidget(self.pushButton_register_clear)\n self.tabWidget.addTab(self.tab_register, \"\")\n self.verticalLayout_3.addWidget(self.tabWidget)\n self.dockWidget.setWidget(self.dockWidgetContents)\n MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockWidget)\n self.actionOpen = QtGui.QAction(MainWindow)\n self.actionOpen.setObjectName(\"actionOpen\")\n self.actionOpenProject = QtGui.QAction(MainWindow)\n self.actionOpenProject.setObjectName(\"actionOpenProject\")\n self.actionSaveProject = QtGui.QAction(MainWindow)\n self.actionSaveProject.setObjectName(\"actionSaveProject\")\n self.actionRecentProjects = QtGui.QAction(MainWindow)\n self.actionRecentProjects.setObjectName(\"actionRecentProjects\")\n self.actionAbout = QtGui.QAction(MainWindow)\n self.actionAbout.setObjectName(\"actionAbout\")\n self.actionSaveProjectAs = QtGui.QAction(MainWindow)\n self.actionSaveProjectAs.setObjectName(\"actionSaveProjectAs\")\n self.actionOpenPial = QtGui.QAction(MainWindow)\n self.actionOpenPial.setObjectName(\"actionOpenPial\")\n self.actionShowPial = QtGui.QAction(MainWindow)\n self.actionShowPial.setCheckable(True)\n self.actionShowPial.setObjectName(\"actionShowPial\")\n self.actionHideThresholdingPreview = QtGui.QAction(MainWindow)\n self.actionHideThresholdingPreview.setObjectName(\"actionHideThresholdingPreview\")\n self.actionExport_segmentation_dataset = QtGui.QAction(MainWindow)\n self.actionExport_segmentation_dataset.setObjectName(\"actionExport_segmentation_dataset\")\n self.actionShow_Electrode_ID = QtGui.QAction(MainWindow)\n self.actionShow_Electrode_ID.setCheckable(True)\n self.actionShow_Electrode_ID.setObjectName(\"actionShow_Electrode_ID\")\n self.actionAbout_Qt = QtGui.QAction(MainWindow)\n self.actionAbout_Qt.setObjectName(\"actionAbout_Qt\")\n self.actionReport_an_issue = QtGui.QAction(MainWindow)\n self.actionReport_an_issue.setObjectName(\"actionReport_an_issue\")\n self.actionDocumentation = QtGui.QAction(MainWindow)\n self.actionDocumentation.setObjectName(\"actionDocumentation\")\n self.actionSource_Repository = QtGui.QAction(MainWindow)\n self.actionSource_Repository.setObjectName(\"actionSource_Repository\")\n self.actionLicense = QtGui.QAction(MainWindow)\n self.actionLicense.setObjectName(\"actionLicense\")\n self.menuFile.addAction(self.actionOpen)\n self.menuFile.addAction(self.actionOpenPial)\n self.menuFile.addAction(self.actionOpenProject)\n self.menuFile.addAction(self.actionSaveProject)\n self.menuFile.addAction(self.actionSaveProjectAs)\n self.menuFile.addAction(self.actionRecentProjects)\n self.menuHelp.addAction(self.actionReport_an_issue)\n self.menuHelp.addAction(self.actionDocumentation)\n self.menuHelp.addAction(self.actionAbout)\n self.menuHelp.addAction(self.actionAbout_Qt)\n self.menuHelp.addAction(self.actionSource_Repository)\n self.menuHelp.addAction(self.actionLicense)\n self.menuView.addAction(self.actionShowPial)\n self.menuView.addAction(self.actionHideThresholdingPreview)\n self.menuView.addAction(self.actionShow_Electrode_ID)\n self.menuAdvanced.addAction(self.actionExport_segmentation_dataset)\n self.menubar.addAction(self.menuFile.menuAction())\n self.menubar.addAction(self.menuView.menuAction())\n self.menubar.addAction(self.menuAdvanced.menuAction())\n self.menubar.addAction(self.menuHelp.menuAction())\n\n self.retranslateUi(MainWindow)\n self.tabWidget.setCurrentIndex(0)\n QtCore.QObject.connect(self.horizontalSlider_threshold, QtCore.SIGNAL(\"sliderMoved(int)\"), self.spinBox_threshold.setValue)\n QtCore.QObject.connect(self.pushButton_open_ct_dura, QtCore.SIGNAL(\"clicked()\"), self.actionOpen.trigger)\n QtCore.QObject.connect(self.spinBox_threshold, QtCore.SIGNAL(\"valueChanged(int)\"), self.horizontalSlider_threshold.setValue)\n QtCore.QObject.connect(self.pushButton_hide_preview, QtCore.SIGNAL(\"clicked()\"), self.actionHideThresholdingPreview.trigger)\n QtCore.QObject.connect(self.pushButton_clear, QtCore.SIGNAL(\"clicked()\"), self.treeView_edit.clearSelection)\n QtCore.QObject.connect(self.pushButton_register_clear, QtCore.SIGNAL(\"clicked()\"), self.listView_register.clearSelection)\n QtCore.QObject.connect(self.pushButton_label_clear, QtCore.SIGNAL(\"clicked()\"), self.tableView_label.clearSelection)\n QtCore.QObject.connect(self.lineEdit_grid_label, QtCore.SIGNAL(\"returnPressed()\"), self.pushButton_assign_grid_label.click)\n QtCore.QMetaObject.connectSlotsByName(MainWindow)\n\n def retranslateUi(self, MainWindow):\n MainWindow.setWindowTitle(QtGui.QApplication.translate(\"MainWindow\", \"Interactive Electrode Registration\", None, QtGui.QApplication.UnicodeUTF8))\n self.menuFile.setTitle(QtGui.QApplication.translate(\"MainWindow\", \"File\", None, QtGui.QApplication.UnicodeUTF8))\n self.menuHelp.setTitle(QtGui.QApplication.translate(\"MainWindow\", \"Help\", None, QtGui.QApplication.UnicodeUTF8))\n self.menuView.setTitle(QtGui.QApplication.translate(\"MainWindow\", \"View\", None, QtGui.QApplication.UnicodeUTF8))\n self.menuAdvanced.setTitle(QtGui.QApplication.translate(\"MainWindow\", \"Advanced\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_open_ct_dura.setText(QtGui.QApplication.translate(\"MainWindow\", \"Open CT and Dura...\", None, QtGui.QApplication.UnicodeUTF8))\n self.groupBox.setToolTip(QtGui.QApplication.translate(\"MainWindow\", \"lower bound on a connected component\\'s CT intensity\", None, QtGui.QApplication.UnicodeUTF8))\n self.groupBox.setTitle(QtGui.QApplication.translate(\"MainWindow\", \"Threshold\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_preview_threshold.setText(QtGui.QApplication.translate(\"MainWindow\", \"Preview Thresholding\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_hide_preview.setText(QtGui.QApplication.translate(\"MainWindow\", \"Hide Preview\", None, QtGui.QApplication.UnicodeUTF8))\n self.groupBox_heuristic_distance.setToolTip(QtGui.QApplication.translate(\"MainWindow\", \"upper bound on a connected component\\'s distance to dura\", None, QtGui.QApplication.UnicodeUTF8))\n self.groupBox_heuristic_distance.setTitle(QtGui.QApplication.translate(\"MainWindow\", \"Distance\", None, QtGui.QApplication.UnicodeUTF8))\n self.label.setText(QtGui.QApplication.translate(\"MainWindow\", \"mm\", None, QtGui.QApplication.UnicodeUTF8))\n self.groupBox_heuristic_size.setToolTip(QtGui.QApplication.translate(\"MainWindow\", \"lower bound on a connected component\\'s size\", None, QtGui.QApplication.UnicodeUTF8))\n self.groupBox_heuristic_size.setTitle(QtGui.QApplication.translate(\"MainWindow\", \"Size\", None, QtGui.QApplication.UnicodeUTF8))\n self.label_2.setText(QtGui.QApplication.translate(\"MainWindow\", \"mm<sup>3</sup>\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_segment.setText(QtGui.QApplication.translate(\"MainWindow\", \"Segment\", None, QtGui.QApplication.UnicodeUTF8))\n self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_segment), QtGui.QApplication.translate(\"MainWindow\", \"Segment\", None, QtGui.QApplication.UnicodeUTF8))\n self.label_edit_select_count.setText(QtGui.QApplication.translate(\"MainWindow\", \"0\", None, QtGui.QApplication.UnicodeUTF8))\n self.label_6.setText(QtGui.QApplication.translate(\"MainWindow\", \"Selected\", None, QtGui.QApplication.UnicodeUTF8))\n self.label_7.setText(QtGui.QApplication.translate(\"MainWindow\", \"Electrodes \", None, QtGui.QApplication.UnicodeUTF8))\n self.label_5.setText(QtGui.QApplication.translate(\"MainWindow\", \"Components\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_add.setText(QtGui.QApplication.translate(\"MainWindow\", \"&Add\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_add.setShortcut(QtGui.QApplication.translate(\"MainWindow\", \"A\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_import_point_set.setText(QtGui.QApplication.translate(\"MainWindow\", \"&Import from Point Set...\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_import_point_set.setShortcut(QtGui.QApplication.translate(\"MainWindow\", \"I\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_remove.setText(QtGui.QApplication.translate(\"MainWindow\", \"Remove\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_remove.setShortcut(QtGui.QApplication.translate(\"MainWindow\", \"Del\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_restore.setText(QtGui.QApplication.translate(\"MainWindow\", \"Restore\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_restore.setShortcut(QtGui.QApplication.translate(\"MainWindow\", \"Shift+Del\", None, QtGui.QApplication.UnicodeUTF8))\n self.label_3.setText(QtGui.QApplication.translate(\"MainWindow\", \"Pieces\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_split.setText(QtGui.QApplication.translate(\"MainWindow\", \"&Split\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_split.setShortcut(QtGui.QApplication.translate(\"MainWindow\", \"S\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_clear.setText(QtGui.QApplication.translate(\"MainWindow\", \"&Clear Selection\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_clear.setShortcut(QtGui.QApplication.translate(\"MainWindow\", \"C\", None, QtGui.QApplication.UnicodeUTF8))\n self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_edit), QtGui.QApplication.translate(\"MainWindow\", \"Edit\", None, QtGui.QApplication.UnicodeUTF8))\n self.label_label_select_count.setText(QtGui.QApplication.translate(\"MainWindow\", \"0\", None, QtGui.QApplication.UnicodeUTF8))\n self.label_10.setText(QtGui.QApplication.translate(\"MainWindow\", \"Selected\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_assign_grid_label.setText(QtGui.QApplication.translate(\"MainWindow\", \"&Assign Grid Label\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_assign_grid_label.setShortcut(QtGui.QApplication.translate(\"MainWindow\", \"A\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_label_clear.setText(QtGui.QApplication.translate(\"MainWindow\", \"&Clear Selection\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_label_clear.setShortcut(QtGui.QApplication.translate(\"MainWindow\", \"C\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_export.setText(QtGui.QApplication.translate(\"MainWindow\", \"&Export...\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_export.setShortcut(QtGui.QApplication.translate(\"MainWindow\", \"E\", None, QtGui.QApplication.UnicodeUTF8))\n self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_label), QtGui.QApplication.translate(\"MainWindow\", \"Label\", None, QtGui.QApplication.UnicodeUTF8))\n self.label_register_select_count.setText(QtGui.QApplication.translate(\"MainWindow\", \"0\", None, QtGui.QApplication.UnicodeUTF8))\n self.label_8.setText(QtGui.QApplication.translate(\"MainWindow\", \"Selected\", None, QtGui.QApplication.UnicodeUTF8))\n self.label_register_complete_count.setText(QtGui.QApplication.translate(\"MainWindow\", \"0\", None, QtGui.QApplication.UnicodeUTF8))\n self.label_9.setText(QtGui.QApplication.translate(\"MainWindow\", \"Registered\", None, QtGui.QApplication.UnicodeUTF8))\n self.label_register_electrode_count.setText(QtGui.QApplication.translate(\"MainWindow\", \"0\", None, QtGui.QApplication.UnicodeUTF8))\n self.label_4.setText(QtGui.QApplication.translate(\"MainWindow\", \"Electrodes\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_svd.setText(QtGui.QApplication.translate(\"MainWindow\", \"&Best-fit Plane\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_svd.setShortcut(QtGui.QApplication.translate(\"MainWindow\", \"B\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_manual.setToolTip(QtGui.QApplication.translate(\"MainWindow\", \"right click to register; only supports single selection\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_manual.setText(QtGui.QApplication.translate(\"MainWindow\", \"&Manual\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_manual.setShortcut(QtGui.QApplication.translate(\"MainWindow\", \"M\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_nearest.setText(QtGui.QApplication.translate(\"MainWindow\", \"&Nearest Vertex\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_nearest.setShortcut(QtGui.QApplication.translate(\"MainWindow\", \"N\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_principal.setText(QtGui.QApplication.translate(\"MainWindow\", \"&Principal Axis\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_principal.setShortcut(QtGui.QApplication.translate(\"MainWindow\", \"P\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_unregister.setText(QtGui.QApplication.translate(\"MainWindow\", \"&Unregister\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_unregister.setShortcut(QtGui.QApplication.translate(\"MainWindow\", \"U\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_register_clear.setText(QtGui.QApplication.translate(\"MainWindow\", \"&Clear Selection\", None, QtGui.QApplication.UnicodeUTF8))\n self.pushButton_register_clear.setShortcut(QtGui.QApplication.translate(\"MainWindow\", \"C\", None, QtGui.QApplication.UnicodeUTF8))\n self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_register), QtGui.QApplication.translate(\"MainWindow\", \"Register\", None, QtGui.QApplication.UnicodeUTF8))\n self.actionOpen.setText(QtGui.QApplication.translate(\"MainWindow\", \"Open CT/dura...\", None, QtGui.QApplication.UnicodeUTF8))\n self.actionOpenProject.setText(QtGui.QApplication.translate(\"MainWindow\", \"Open Project...\", None, QtGui.QApplication.UnicodeUTF8))\n self.actionSaveProject.setText(QtGui.QApplication.translate(\"MainWindow\", \"Save Project\", None, QtGui.QApplication.UnicodeUTF8))\n self.actionSaveProject.setShortcut(QtGui.QApplication.translate(\"MainWindow\", \"Ctrl+S\", None, QtGui.QApplication.UnicodeUTF8))\n self.actionRecentProjects.setText(QtGui.QApplication.translate(\"MainWindow\", \"Recent Projects\", None, QtGui.QApplication.UnicodeUTF8))\n self.actionAbout.setText(QtGui.QApplication.translate(\"MainWindow\", \"About\", None, QtGui.QApplication.UnicodeUTF8))\n self.actionSaveProjectAs.setText(QtGui.QApplication.translate(\"MainWindow\", \"Save Project As...\", None, QtGui.QApplication.UnicodeUTF8))\n self.actionOpenPial.setText(QtGui.QApplication.translate(\"MainWindow\", \"Open Pial...\", None, QtGui.QApplication.UnicodeUTF8))\n self.actionShowPial.setText(QtGui.QApplication.translate(\"MainWindow\", \"Show Pial\", None, QtGui.QApplication.UnicodeUTF8))\n self.actionHideThresholdingPreview.setText(QtGui.QApplication.translate(\"MainWindow\", \"Hide Thresholding Preview\", None, QtGui.QApplication.UnicodeUTF8))\n self.actionExport_segmentation_dataset.setText(QtGui.QApplication.translate(\"MainWindow\", \"Export Segmentation Dataset\", None, QtGui.QApplication.UnicodeUTF8))\n self.actionShow_Electrode_ID.setText(QtGui.QApplication.translate(\"MainWindow\", \"Show Electrode ID\", None, QtGui.QApplication.UnicodeUTF8))\n self.actionAbout_Qt.setText(QtGui.QApplication.translate(\"MainWindow\", \"About Qt\", None, QtGui.QApplication.UnicodeUTF8))\n self.actionReport_an_issue.setText(QtGui.QApplication.translate(\"MainWindow\", \"Report an Issue...\", None, QtGui.QApplication.UnicodeUTF8))\n self.actionDocumentation.setText(QtGui.QApplication.translate(\"MainWindow\", \"Documentation\", None, QtGui.QApplication.UnicodeUTF8))\n self.actionSource_Repository.setText(QtGui.QApplication.translate(\"MainWindow\", \"Source Repository\", None, QtGui.QApplication.UnicodeUTF8))\n self.actionLicense.setText(QtGui.QApplication.translate(\"MainWindow\", \"License\", None, QtGui.QApplication.UnicodeUTF8))\n\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40792,"cells":{"__id__":{"kind":"number","value":9345848872275,"string":"9,345,848,872,275"},"blob_id":{"kind":"string","value":"5ec6cde2a9f32099d636875c987dc38a99d103b0"},"directory_id":{"kind":"string","value":"68b0a7e4499df49b8647936131791b8b4ae4b5e2"},"path":{"kind":"string","value":"/trackvisualizer/ui/pluginsettings.py"},"content_id":{"kind":"string","value":"27d1cd4541967f9c067249e5b7266faff6121ef3"},"detected_licenses":{"kind":"list like","value":["GPL-3.0-only"],"string":"[\n \"GPL-3.0-only\"\n]"},"license_type":{"kind":"string","value":"non_permissive"},"repo_name":{"kind":"string","value":"Noneus/Track-Visualizer"},"repo_url":{"kind":"string","value":"https://github.com/Noneus/Track-Visualizer"},"snapshot_id":{"kind":"string","value":"4ce4e5bccd2f8ef941fb56ad157bf9d2d858031b"},"revision_id":{"kind":"string","value":"84312182f46bd16d8e86225dfe1d09bb894902eb"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2019-07-27T13:05:02.901259","string":"2019-07-27T13:05:02.901259"},"revision_date":{"kind":"timestamp","value":"2014-01-02T22:40:51","string":"2014-01-02T22:40:51"},"committer_date":{"kind":"timestamp","value":"2014-01-02T22:40:51","string":"2014-01-02T22:40:51"},"github_id":{"kind":"number","value":15719740,"string":"15,719,740"},"star_events_count":{"kind":"number","value":1,"string":"1"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\n########################################################################\n# #\n# This file is part of Gpx 2 Video. #\n# #\n# Gpx 2 Video is free software: you can redistribute it and/or modify #\n# it under the terms of the GNU General Public License as published by #\n# the Free Software Foundation, either version 3 of the License, or #\n# (at your option) any later version. #\n# #\n# Gpx 2 Video is distributed in the hope that it will be useful, #\n# but WITHOUT ANY WARRANTY; without even the implied warranty of #\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #\n# GNU General Public License for more details. #\n# #\n# You should have received a copy of the GNU General Public License #\n# along with Gpx 2 Video. If not, see <http://www.gnu.org/licenses/>. #\n# #\n########################################################################\n\nimport sys\n\nfrom gi.repository import Gtk\n\nfrom trackvisualizer.ui.assistant import Gps2VideoAssistantPage\n\n\n@Gps2VideoAssistantPage\nclass PluginSettings(object):\n \"\"\"\n Choose Plugin Page of Assistant\n \"\"\"\n def __init__(self, assistant):\n self._assistant = assistant\n\n self._vbox = Gtk.VBox()\n\n self._vbox.pack_start(Gtk.Label(), True, True, 0)\n\n @property\n def widget(self):\n #return the main container\n return self._vbox\n\n @property\n def pagetype(self):\n return Gtk.AssistantPageType.CONTENT\n\n @property\n def title(self):\n return 'Choose Function'\n\n def prepare(self):\n for widget in self._vbox.get_children():\n self._vbox.remove(widget)\n\n self._vbox.pack_start(\n self._assistant.plugin.create_widget(\n self._vbox, self._assistant), True, True, 0)\n self._assistant.assistant.show_all()\n\n return True\n\n def leave(self):\n pass\n\n#call trackvisualizer.main-function if script is called\nif __name__ == \"__main__\":\n from trackvisualizer.main import main\n sys.exit(main(sys.argv))\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40793,"cells":{"__id__":{"kind":"number","value":13073880498468,"string":"13,073,880,498,468"},"blob_id":{"kind":"string","value":"3e58f27d7f98040eaf8d3db3276304dd154f30c3"},"directory_id":{"kind":"string","value":"35f17edee2926b176f4b0148e313d4d95e5232e8"},"path":{"kind":"string","value":"/experiments/learn_semantic_network.py"},"content_id":{"kind":"string","value":"9a98141f49d1b2dd284affd1b33a8421a207c697"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"repo_name":{"kind":"string","value":"e2crawfo/cleanup-learning"},"repo_url":{"kind":"string","value":"https://github.com/e2crawfo/cleanup-learning"},"snapshot_id":{"kind":"string","value":"7dc3e29385daf98c1a565ec186fb295fc78bb339"},"revision_id":{"kind":"string","value":"ca7f92d19d860c3e00ead11e71cc45480ea728d6"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2021-01-19T07:40:43.762213","string":"2021-01-19T07:40:43.762213"},"revision_date":{"kind":"timestamp","value":"2014-02-05T01:17:06","string":"2014-02-05T01:17:06"},"committer_date":{"kind":"timestamp","value":"2014-02-05T01:17:06","string":"2014-02-05T01:17:06"},"github_id":{"kind":"number","value":14177265,"string":"14,177,265"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"import matplotlib.pyplot as plt\nimport numpy as np\nimport random\nfrom mytools import hrr, timed, fh, nf, extract_probe_data\nfrom build_semantic_network import build_semantic_network\nfrom learning_cleanup import build_and_run, plot\n\n@timed.namedtimer(\"extract_data\")\ndef extract_data(filename, sim, address_input_p, stored_input_p,\n pre_probes, cleanup_s, output_probes,\n address_vectors, stored_vectors, testing_vectors, correct_vectors,\n **kwargs):\n\n t = sim.trange()\n address_input, _ = extract_probe_data(t, sim, address_input_p)\n stored_input, _ = extract_probe_data(t, sim, stored_input_p)\n pre_decoded, _ = extract_probe_data(t, sim, pre_probes)\n cleanup_spikes, _ = extract_probe_data(t, sim, cleanup_s, spikes=True)\n output_decoded, _ = extract_probe_data(t, sim, output_probes)\n\n def make_sim_func(h):\n def sim(vec):\n return h.compare(hrr.HRR(data=vec))\n return sim\n\n print len(stored_vectors)\n print len(address_vectors)\n print address_vectors\n address_sim_funcs = [make_sim_func(hrr.HRR(data=h)) for h in address_vectors]\n stored_sim_funcs = [make_sim_func(hrr.HRR(data=h)) for h in stored_vectors]\n\n output_sim, _ = extract_probe_data(t, sim, output_probes, func=stored_sim_funcs)\n input_sim, _ = extract_probe_data(t, sim, address_input_p, func=address_sim_funcs)\n\n ret = dict(t=t, address_input=address_input, stored_input=stored_input,\n pre_decoded=pre_decoded, cleanup_spikes=cleanup_spikes,\n output_decoded=output_decoded,\n output_sim=output_sim, input_sim=input_sim,\n correct_vectors=correct_vectors, testing_vectors=testing_vectors)\n\n fh.npsave(filename, **ret)\n\n return ret\n\n\n#@timed.namedtimer(\"plot\")\n#def plot(filename, t, address_input, pre_decoded, cleanup_spikes,\n# output_decoded, output_sim, input_sim, **kwargs):\n#\n# num_plots = 6\n# offset = num_plots * 100 + 10 + 1\n#\n# ax, offset = nengo_plot_helper(offset, t, address_input)\n# ax, offset = nengo_plot_helper(offset, t, pre_decoded)\n# ax, offset = nengo_plot_helper(offset, t, cleanup_spikes, spikes=True)\n# ax, offset = nengo_plot_helper(offset, t, output_decoded)\n# ax, offset = nengo_plot_helper(offset, t, output_sim)\n# ax, offset = nengo_plot_helper(offset, t, input_sim)\n#\n# plt.savefig(filename)\n\ndef start():\n seed = 81223\n\n training_time = 1 #in seconds\n testing_time = 0.5\n\n DperE = 32\n dim = 32\n NperD = 30\n\n N = 5\n cleanup_n = N * 20\n\n num_tests = 5\n\n oja_scale = np.true_divide(2,1)\n oja_learning_rate = np.true_divide(1,50)\n pre_tau = 0.03\n post_tau = 0.03\n pes_learning_rate = np.true_divide(1,1)\n\n config = locals()\n\n #Don't put all parematers in config\n cleanup_params = {'radius':1.0,\n 'max_rates':[400],\n 'intercepts':[0.13]}\n\n ensemble_params = {'radius':1.0,\n 'max_rates':[400],\n 'intercepts':[0.1]}\n\n #intercepts actually matter quite a bit, so put them in the filename\n config['cint'] = cleanup_params['intercepts'][0]\n config['eint'] = ensemble_params['intercepts'][0]\n\n\n data_title = 'lsndata'\n directory = 'learning_sn_data'\n\n data_filename = fh.make_filename(data_title, directory=directory,\n config_dict=config, extension='.npz',\n use_time=False)\n\n data = fh.npload(data_filename)\n\n if data is None:\n #build the graph and get the vectors encoding it\n hrr_vectors, id_vectors, edge_vectors, G = build_semantic_network(dim, N, seed=seed)\n\n edges = random.sample(list(G.edges_iter(data=True)), num_tests)\n correct_vectors = [hrr_vectors[v] for u,v,d in edges]\n testing_vectors = [hrr_vectors[u].convolve(~edge_vectors[d['index']]) for u,v,d in edges]\n testing_vectors = map(lambda x: x.v, testing_vectors)\n\n hrr_vectors = map(lambda x: hrr_vectors[x].v, G.nodes_iter())\n id_vectors = map(lambda x: id_vectors[x].v, G.nodes_iter())\n\n results = build_and_run(address_vectors = id_vectors, stored_vectors=hrr_vectors,\n testing_vectors=testing_vectors, cleanup_params=cleanup_params,\n ensemble_params=ensemble_params, **config)\n\n data = extract_data(filename=data_filename, correct_vectors=correct_vectors, **results)\n\n do_plots = True\n if do_plots:\n plot_title = 'lsnplot'\n directory='learning_sn_plots'\n plot_filename = fh.make_filename(plot_title, directory=directory,\n config_dict=config, extension='.png')\n plot(filename=plot_filename, **data)\n plt.show()\n\nif __name__=='__main__':\n start()\n\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40794,"cells":{"__id__":{"kind":"number","value":9002251493835,"string":"9,002,251,493,835"},"blob_id":{"kind":"string","value":"c8095b0b1ae34742b650ff9b2b275ff80a66a22e"},"directory_id":{"kind":"string","value":"2464d1784de63fdfbd700c1c63861c354f87f6ae"},"path":{"kind":"string","value":"/Care4Care/C4CApplication/page_objects/FixedPage.py"},"content_id":{"kind":"string","value":"b031605f10271df8eaecb76bfaf167b7e00e859c"},"detected_licenses":{"kind":"list like","value":["AGPL-3.0-only"],"string":"[\n \"AGPL-3.0-only\"\n]"},"license_type":{"kind":"string","value":"non_permissive"},"repo_name":{"kind":"string","value":"dsarkozi/care4care-sdp-grp4"},"repo_url":{"kind":"string","value":"https://github.com/dsarkozi/care4care-sdp-grp4"},"snapshot_id":{"kind":"string","value":"ac3ddc3a5eb2ab5b88c40a8e3b644440674b5c3f"},"revision_id":{"kind":"string","value":"c78eefb964a98e9f1a5b68006b429151706f34be"},"branch_name":{"kind":"string","value":"HEAD"},"visit_date":{"kind":"timestamp","value":"2016-09-06T11:25:34.295790","string":"2016-09-06T11:25:34.295790"},"revision_date":{"kind":"timestamp","value":"2014-12-17T16:08:45","string":"2014-12-17T16:08:45"},"committer_date":{"kind":"timestamp","value":"2014-12-17T16:08:45","string":"2014-12-17T16:08:45"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"from C4CApplication.page_objects.Page import Page\r\nfrom selenium.webdriver.common.by import By\r\n\r\n\r\nclass FixedPage(Page):\r\n \r\n def __init__(self, driver):\r\n super().__init__(driver)\r\n self.home = self.driver.find_element(By.XPATH, '//a[@id=\"home\"]')\r\n self.branch_list = self.driver.find_element(By.XPATH, '//a[@id=\"branch_list\"]')\r\n \r\n def click_home(self):\r\n self.home.click()\r\n return self\r\n \r\n def click_on_care4care_branches(self):\r\n self.branch_list.click()\r\n return self\r\n \r\n def Jobs_at_Care4Care(self):\r\n pass"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40795,"cells":{"__id__":{"kind":"number","value":5128190967785,"string":"5,128,190,967,785"},"blob_id":{"kind":"string","value":"a62e74c0ded922850778a865d61c3a7c33670f29"},"directory_id":{"kind":"string","value":"63c89d672cb4df85e61d3ba9433f4c3ca39810c8"},"path":{"kind":"string","value":"/python/testdata/launchpad/lib/lp/registry/browser/tests/test_edit_permissions.py"},"content_id":{"kind":"string","value":"671991048cae82a56af1ee772d565c60f6e988b3"},"detected_licenses":{"kind":"list like","value":["AGPL-3.0-only","AGPL-3.0-or-later"],"string":"[\n \"AGPL-3.0-only\",\n \"AGPL-3.0-or-later\"\n]"},"license_type":{"kind":"string","value":"non_permissive"},"repo_name":{"kind":"string","value":"abramhindle/UnnaturalCodeFork"},"repo_url":{"kind":"string","value":"https://github.com/abramhindle/UnnaturalCodeFork"},"snapshot_id":{"kind":"string","value":"de32d2f31ed90519fd4918a48ce94310cef4be97"},"revision_id":{"kind":"string","value":"e205b94b2c66672d264a08a10bb7d94820c9c5ca"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2021-01-19T10:21:36.093911","string":"2021-01-19T10:21:36.093911"},"revision_date":{"kind":"timestamp","value":"2014-03-13T02:37:14","string":"2014-03-13T02:37:14"},"committer_date":{"kind":"timestamp","value":"2014-03-13T02:37:14","string":"2014-03-13T02:37:14"},"github_id":{"kind":"number","value":17692378,"string":"17,692,378"},"star_events_count":{"kind":"number","value":1,"string":"1"},"fork_events_count":{"kind":"number","value":3,"string":"3"},"gha_license_id":{"kind":"string","value":"AGPL-3.0"},"gha_fork":{"kind":"bool","value":false,"string":"false"},"gha_event_created_at":{"kind":"timestamp","value":"2020-07-24T05:39:10","string":"2020-07-24T05:39:10"},"gha_created_at":{"kind":"timestamp","value":"2014-03-13T02:52:20","string":"2014-03-13T02:52:20"},"gha_updated_at":{"kind":"timestamp","value":"2018-01-05T07:03:31","string":"2018-01-05T07:03:31"},"gha_pushed_at":{"kind":"timestamp","value":"2014-03-13T02:53:59","string":"2014-03-13T02:53:59"},"gha_size":{"kind":"number","value":24904,"string":"24,904"},"gha_stargazers_count":{"kind":"number","value":0,"string":"0"},"gha_forks_count":{"kind":"number","value":3,"string":"3"},"gha_open_issues_count":{"kind":"number","value":1,"string":"1"},"gha_language":{"kind":"string","value":"Python"},"gha_archived":{"kind":"bool","value":false,"string":"false"},"gha_disabled":{"kind":"bool","value":false,"string":"false"},"content":{"kind":"string","value":"# Copyright 2010 Canonical Ltd. This software is licensed under the\n# GNU Affero General Public License version 3 (see the file LICENSE).\n\n\"\"\"Test harness for edit view permissions unit tests.\"\"\"\n\n__metaclass__ = type\n\nfrom zope.component import getUtility\n\nfrom lp.app.interfaces.launchpad import ILaunchpadCelebrities\nfrom lp.registry.interfaces.distributionsourcepackage import (\n IDistributionSourcePackage,\n )\nfrom lp.registry.interfaces.person import IPersonSet\nfrom lp.services.webapp.authorization import check_permission\nfrom lp.services.webapp.servers import LaunchpadTestRequest\nfrom lp.testing import (\n ANONYMOUS,\n login,\n login_person,\n TestCaseWithFactory,\n )\nfrom lp.testing.layers import DatabaseFunctionalLayer\nfrom lp.testing.views import create_initialized_view\n\n\nclass EditViewPermissionBase(TestCaseWithFactory):\n \"\"\"Tests for permissions access the +edit page on the target.\"\"\"\n\n layer = DatabaseFunctionalLayer\n\n def setUp(self):\n super(EditViewPermissionBase, self).setUp()\n self.setupTarget()\n self.registry_admin = self.factory.makePerson(name='registry-admin')\n celebs = getUtility(ILaunchpadCelebrities)\n login_person(celebs.registry_experts.teamowner)\n celebs.registry_experts.addMember(self.registry_admin,\n self.registry_admin)\n self.request = LaunchpadTestRequest()\n\n def setupTarget(self):\n \"\"\"Set up the target context for the test suite.\"\"\"\n self.target = self.factory.makePerson(name='target-person')\n\n def test_anon_cannot_edit(self):\n login(ANONYMOUS)\n view = create_initialized_view(self.target, '+edit')\n self.assertFalse(check_permission('launchpad.Edit', view))\n\n def test_arbitrary_user_cannot_edit(self):\n person = self.factory.makePerson(name='the-dude')\n login_person(person)\n view = create_initialized_view(self.target, '+edit')\n self.assertFalse(check_permission('launchpad.Edit', view))\n\n def test_admin_can_edit(self):\n admin = getUtility(IPersonSet).getByEmail('foo.bar@canonical.com')\n login_person(admin)\n view = create_initialized_view(self.target, '+edit')\n if IDistributionSourcePackage.providedBy(self.target):\n self.assertTrue(check_permission('launchpad.BugSupervisor', view))\n else:\n self.assertTrue(check_permission('launchpad.Edit', view))\n\n def test_registry_expert_cannot_edit(self):\n login_person(self.registry_admin)\n view = create_initialized_view(self.target, '+edit')\n self.assertFalse(check_permission('launchpad.Edit', view))\n\n\nclass PersonEditViewPermissionTestCase(EditViewPermissionBase):\n \"\"\"Tests for permissions to access person +edit page.\"\"\"\n def test_arbitrary_user_can_edit_her_own_data(self):\n login_person(self.target)\n view = create_initialized_view(self.target, '+edit')\n self.assertTrue(check_permission('launchpad.Edit', view))\n\n\nclass ProductEditViewPermissionTestCase(EditViewPermissionBase):\n \"\"\"Tests for permissions to access product +edit page.\"\"\"\n def setupTarget(self):\n self.target = self.factory.makeProduct()\n\n\nclass ProjectEditViewPermissionTestCase(EditViewPermissionBase):\n \"\"\"Tests for permissions to access product +edit page.\"\"\"\n def setupTarget(self):\n self.target = self.factory.makeProject()\n\n\nclass DistributionEditViewPermissionTestCase(EditViewPermissionBase):\n \"\"\"Tests for permissions to access product +edit page.\"\"\"\n def setupTarget(self):\n self.target = self.factory.makeDistribution()\n\n\nclass DistroSourcePackageEditViewPermissionTestCase(EditViewPermissionBase):\n \"\"\"Test for permissions to access a distribution source package\n +edit page.\"\"\"\n\n def setupTarget(self):\n self.d_owner = self.factory.makePerson()\n login_person(self.d_owner)\n self.distro = self.factory.makeDistribution(\n name='youbuntu', owner=self.d_owner)\n self.target = self.factory.makeDistributionSourcePackage(\n distribution=self.distro)\n self.supervisor_team = self.factory.makeTeam(owner=self.d_owner)\n self.supervisor_member = self.factory.makePerson()\n self.supervisor_team.addMember(\n self.supervisor_member, self.d_owner)\n self.distro.bug_supervisor = self.supervisor_team\n\n def test_bug_supervisor_can_edit(self):\n login_person(self.supervisor_member)\n view = create_initialized_view(self.target, '+edit')\n self.assertTrue(check_permission('launchpad.BugSupervisor', view))\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40796,"cells":{"__id__":{"kind":"number","value":14516989470675,"string":"14,516,989,470,675"},"blob_id":{"kind":"string","value":"397214e68b25be5eff5c88c07c84be19e67bde6c"},"directory_id":{"kind":"string","value":"8ea6cdcf12e38ce62fe366a15bdd3a8625895ac8"},"path":{"kind":"string","value":"/dash/lib/events/editor.py"},"content_id":{"kind":"string","value":"97aec94c708299f112b81b944f47be56b9c4aa29"},"detected_licenses":{"kind":"list like","value":["MIT"],"string":"[\n \"MIT\"\n]"},"license_type":{"kind":"string","value":"permissive"},"repo_name":{"kind":"string","value":"wjwwood/open-robotics-platform"},"repo_url":{"kind":"string","value":"https://github.com/wjwwood/open-robotics-platform"},"snapshot_id":{"kind":"string","value":"2c3acdf022038ab833ba4273351b5ae6ad975c07"},"revision_id":{"kind":"string","value":"c417f1e4e381cdbbe88ba9ad4dea3bdf9840d3d5"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2020-05-18T02:29:29.272833","string":"2020-05-18T02:29:29.272833"},"revision_date":{"kind":"timestamp","value":"2010-04-07T04:15:01","string":"2010-04-07T04:15:01"},"committer_date":{"kind":"timestamp","value":"2010-04-07T04:15:01","string":"2010-04-07T04:15:01"},"github_id":{"kind":"number","value":32115704,"string":"32,115,704"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"#!/usr/bin/env python -OO\n# encoding: utf-8\n\n###########\n# ORP - Open Robotics Platform\n# \n# Copyright (c) 2010 John Harrison, William Woodall\n# \n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n# copies of the Software, and to permit persons to whom the Software is\n# furnished to do so, subject to the following conditions:\n# \n# The above copyright notice and this permission notice shall be included in\n# all copies or substantial portions of the Software.\n# \n# THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n# THE SOFTWARE.\n##########\n\n\"\"\"\neditor.py - Contains events and callbacks related to the editor\n\nCreated by William Woodall on 2010-11-08.\n\"\"\"\n__author__ = \"William Woodall\"\n__copyright__ = \"Copyright (c) 2010 John Harrison, William Woodall\"\n\n### Imports ###\n\n# Standard Python Libraries\nimport sys\nimport os\n\n# Other libraries\nimport lib.elements as elements\nfrom lib.builders.editor import Editor\n\n### Functions ###\n\ndef newFile(event, title=None, text=\"\", file_type=None):\n \"\"\"Opens a new window in the editor\"\"\"\n editor = Editor(elements.MAIN, elements.MAIN._mgr, title=title, text=text, file_type=file_type)\n editor.Show()\n \ndef openFile(event, file=None):\n \"\"\"Opens a file, if the file isn't given, prompts the user\"\"\"\n pass\n \ndef save(event):\n \"\"\"Saves the currently selected file in the editor\"\"\"\n pass\n \ndef close(event):\n \"\"\"Closes the currently selected file int he editor\"\"\"\n child = elements.MAIN.GetActiveChild()\n if child != None:\n child.Close(True)"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2010,"string":"2,010"}}},{"rowIdx":40797,"cells":{"__id__":{"kind":"number","value":11570641936529,"string":"11,570,641,936,529"},"blob_id":{"kind":"string","value":"9123f01295a4fe11711ca8fd35336f5378c5e199"},"directory_id":{"kind":"string","value":"806b05b16a1035ba0ff95671beac268eac2156ad"},"path":{"kind":"string","value":"/links.py"},"content_id":{"kind":"string","value":"3d64befff4fe516abe54a714b10919b91e3dd1a4"},"detected_licenses":{"kind":"list like","value":["MIT"],"string":"[\n \"MIT\"\n]"},"license_type":{"kind":"string","value":"permissive"},"repo_name":{"kind":"string","value":"Brickstertwo/pretty-markdown"},"repo_url":{"kind":"string","value":"https://github.com/Brickstertwo/pretty-markdown"},"snapshot_id":{"kind":"string","value":"041e21eed580a188273aeb98a2ba6ecf27b9e3cd"},"revision_id":{"kind":"string","value":"bce94c2fa4dbb38868270cbd1d8027f1fd0ec8ad"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2020-05-18T16:00:00.249723","string":"2020-05-18T16:00:00.249723"},"revision_date":{"kind":"timestamp","value":"2014-08-25T02:21:43","string":"2014-08-25T02:21:43"},"committer_date":{"kind":"timestamp","value":"2014-08-25T02:21:43","string":"2014-08-25T02:21:43"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"from utils import link_utils\n\nimport pretty_markdown\n\n\nclass FormatLinkReferenceDefinitionsCommand(pretty_markdown.PrettyMarkdownCommand):\n def modify(self, text):\n \"\"\"Formats groups of link reference definitions so that their links all line up.\"\"\"\n\n return link_utils.format_link_reference_definitions(text)\n\n\nclass DiscoverMissingLinksCommand(pretty_markdown.PrettyMarkdownCommand):\n def modify(self, text):\n \"\"\"Adds empty link definitions for reference links.\"\"\"\n\n default_definition = pretty_markdown.settings().get('default_missing_link_definition')\n return link_utils.discover_missing_links(text, default_definition=default_definition)\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40798,"cells":{"__id__":{"kind":"number","value":5085241324603,"string":"5,085,241,324,603"},"blob_id":{"kind":"string","value":"43580de9eabae3e6574fe6202fe895a1b9780abd"},"directory_id":{"kind":"string","value":"e20ad48bedb899855b565d20b6573ef08d0eb041"},"path":{"kind":"string","value":"/Twitter4AP/stream/__init__.py"},"content_id":{"kind":"string","value":"4be93a724bd6bce09ad525dfce7224b5522c2b79"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"repo_name":{"kind":"string","value":"officialpatterson/Twitter-Library"},"repo_url":{"kind":"string","value":"https://github.com/officialpatterson/Twitter-Library"},"snapshot_id":{"kind":"string","value":"d06039c0cf29ab2d61bb85138d2353bfd7019d83"},"revision_id":{"kind":"string","value":"14b122ccf66fa9b5833f17cc8e622e856afda8f7"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2021-01-11T10:48:08.199716","string":"2021-01-11T10:48:08.199716"},"revision_date":{"kind":"timestamp","value":"2014-10-27T18:34:43","string":"2014-10-27T18:34:43"},"committer_date":{"kind":"timestamp","value":"2014-10-27T18:34:43","string":"2014-10-27T18:34:43"},"github_id":{"kind":"number","value":20705940,"string":"20,705,940"},"star_events_count":{"kind":"number","value":1,"string":"1"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"from .twitterstream import TwitterStream"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2014,"string":"2,014"}}},{"rowIdx":40799,"cells":{"__id__":{"kind":"number","value":10960756570409,"string":"10,960,756,570,409"},"blob_id":{"kind":"string","value":"64662b6f11874ca1b4801b898352dd63d223e479"},"directory_id":{"kind":"string","value":"2bcf18252fa9144ece3e824834ac0e117ad0bdf3"},"path":{"kind":"string","value":"/zpt/trunk/site-packages/zpt/_pytz/zoneinfo/Etc/GMT_minus_1.py"},"content_id":{"kind":"string","value":"66af904ffa97865f9f23a9ec9ec4cd64841e1ee0"},"detected_licenses":{"kind":"list like","value":["MIT","ZPL-2.1"],"string":"[\n \"MIT\",\n \"ZPL-2.1\"\n]"},"license_type":{"kind":"string","value":"permissive"},"repo_name":{"kind":"string","value":"chadwhitacre/public"},"repo_url":{"kind":"string","value":"https://github.com/chadwhitacre/public"},"snapshot_id":{"kind":"string","value":"32f65ba8e35d38c69ed4d0edd333283a239c5e1d"},"revision_id":{"kind":"string","value":"0c67fd7ec8bce1d8c56c7ff3506f31a99362b502"},"branch_name":{"kind":"string","value":"refs/heads/master"},"visit_date":{"kind":"timestamp","value":"2021-05-10T14:32:03.016683","string":"2021-05-10T14:32:03.016683"},"revision_date":{"kind":"timestamp","value":"2010-05-13T18:24:20","string":"2010-05-13T18:24:20"},"committer_date":{"kind":"timestamp","value":"2010-05-13T18:24:20","string":"2010-05-13T18:24:20"},"github_id":{"kind":"null"},"star_events_count":{"kind":"number","value":0,"string":"0"},"fork_events_count":{"kind":"number","value":0,"string":"0"},"gha_license_id":{"kind":"null"},"gha_fork":{"kind":"null"},"gha_event_created_at":{"kind":"null"},"gha_created_at":{"kind":"null"},"gha_updated_at":{"kind":"null"},"gha_pushed_at":{"kind":"null"},"gha_size":{"kind":"null"},"gha_stargazers_count":{"kind":"null"},"gha_forks_count":{"kind":"null"},"gha_open_issues_count":{"kind":"null"},"gha_language":{"kind":"null"},"gha_archived":{"kind":"null"},"gha_disabled":{"kind":"null"},"content":{"kind":"string","value":"'''tzinfo timezone information for Etc/GMT_minus_1.'''\nfrom zpt._pytz.tzinfo import StaticTzInfo\nfrom zpt._pytz.tzinfo import memorized_timedelta as timedelta\n\nclass GMT_minus_1(StaticTzInfo):\n '''Etc/GMT_minus_1 timezone definition. See datetime.tzinfo for details'''\n zone = 'Etc/GMT_minus_1'\n _utcoffset = timedelta(seconds=3600)\n _tzname = 'GMT-1'\n\nGMT_minus_1 = GMT_minus_1()\n\n"},"src_encoding":{"kind":"string","value":"UTF-8"},"language":{"kind":"string","value":"Python"},"is_vendor":{"kind":"bool","value":false,"string":"false"},"is_generated":{"kind":"bool","value":false,"string":"false"},"year":{"kind":"number","value":2010,"string":"2,010"}}}],"truncated":false,"partial":false},"paginationData":{"pageIndex":407,"numItemsPerPage":100,"numTotalItems":42509,"offset":40700,"length":100}},"jwt":"eyJhbGciOiJFZERTQSJ9.eyJyZWFkIjp0cnVlLCJwZXJtaXNzaW9ucyI6eyJyZXBvLmNvbnRlbnQucmVhZCI6dHJ1ZX0sImlhdCI6MTc1NzU2MTg3MCwic3ViIjoiL2RhdGFzZXRzL2xvdWJuYWJubC9vbGRfcHl0aG9uIiwiZXhwIjoxNzU3NTY1NDcwLCJpc3MiOiJodHRwczovL2h1Z2dpbmdmYWNlLmNvIn0.iLlljyPzndeqw0JVfyuSSv2MhylQ1Ofb-W0I5DlsfobjDDFr4xeDibAfF0PQ9HwnqFU3o5KcLmjgwglGsxqeAg","displayUrls":true},"discussionsStats":{"closed":0,"open":1,"total":1},"fullWidth":true,"hasGatedAccess":true,"hasFullAccess":true,"isEmbedded":false,"savedQueries":{"community":[],"user":[]}}"><div><header class="bg-linear-to-t border-b border-gray-100 pt-4 xl:pt-0 from-purple-500/8 dark:from-purple-500/20 to-white to-70% dark:to-gray-950"><div class="mx-4 relative flex flex-col xl:flex-row"><h1 class="flex flex-wrap items-center max-md:leading-tight gap-y-1 text-lg xl:flex-none"><a href="/datasets" class="group flex items-center"><svg class="sm:mr-1 -mr-1 text-gray-400" style="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 25 25"><ellipse cx="12.5" cy="5" fill="currentColor" fill-opacity="0.25" rx="7.5" ry="2"></ellipse><path d="M12.5 15C16.6421 15 20 14.1046 20 13V20C20 21.1046 16.6421 22 12.5 22C8.35786 22 5 21.1046 5 20V13C5 14.1046 8.35786 15 12.5 15Z" fill="currentColor" opacity="0.5"></path><path d="M12.5 7C16.6421 7 20 6.10457 20 5V11.5C20 12.6046 16.6421 13.5 12.5 13.5C8.35786 13.5 5 12.6046 5 11.5V5C5 6.10457 8.35786 7 12.5 7Z" fill="currentColor" opacity="0.5"></path><path d="M5.23628 12C5.08204 12.1598 5 12.8273 5 13C5 14.1046 8.35786 15 12.5 15C16.6421 15 20 14.1046 20 13C20 12.8273 19.918 12.1598 19.7637 12C18.9311 12.8626 15.9947 13.5 12.5 13.5C9.0053 13.5 6.06886 12.8626 5.23628 12Z" fill="currentColor"></path></svg> <span class="mr-2.5 font-semibold text-gray-400 group-hover:text-gray-500 max-sm:hidden">Datasets:</span></a> <hr class="mx-1.5 h-2 translate-y-px rounded-sm border-r dark:border-gray-600 sm:hidden"> <div class="group flex flex-none items-center"><div class="relative mr-1 flex items-center"> <span class="inline-block "><span class="contents"><a href="/loubnabnl" class="text-gray-400 hover:text-blue-600"><img alt="" class="size-3.5 rounded-full flex-none" src="https://aifasthub.com/avatars/v1/production/uploads/61c141342aac764ce1654e43/81AwoT5IQ_Xdw0OVw7TKu.jpeg" crossorigin="anonymous"></a></span> </span></div> <span class="inline-block "><span class="contents"><a href="/loubnabnl" class="text-gray-400 hover:text-blue-600">loubnabnl</a></span> </span> <div class="mx-0.5 text-gray-300">/</div></div> <div class="max-w-full xl:flex xl:min-w-0 xl:flex-nowrap xl:items-center xl:gap-x-1"><a class="break-words font-mono font-semibold hover:text-blue-600 text-[1.07rem] xl:truncate" href="/datasets/loubnabnl/old_python">old_python</a> <button class="text-xs mr-3 focus:outline-hidden inline-flex cursor-pointer items-center text-sm mx-0.5 text-gray-600 " title="Copy dataset name to clipboard" type="button"><svg class="" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg> </button></div> <div class="inline-flex items-center overflow-hidden whitespace-nowrap rounded-md border bg-white text-sm leading-none text-gray-500 mr-2"><button class="relative flex items-center overflow-hidden from-red-50 to-transparent dark:from-red-900 px-1.5 py-1 hover:bg-linear-to-t focus:outline-hidden" title="Like"><svg class="left-1.5 absolute" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32" fill="currentColor"><path d="M22.45,6a5.47,5.47,0,0,1,3.91,1.64,5.7,5.7,0,0,1,0,8L16,26.13,5.64,15.64a5.7,5.7,0,0,1,0-8,5.48,5.48,0,0,1,7.82,0L16,10.24l2.53-2.58A5.44,5.44,0,0,1,22.45,6m0-2a7.47,7.47,0,0,0-5.34,2.24L16,7.36,14.89,6.24a7.49,7.49,0,0,0-10.68,0,7.72,7.72,0,0,0,0,10.82L16,29,27.79,17.06a7.72,7.72,0,0,0,0-10.82A7.49,7.49,0,0,0,22.45,4Z"></path></svg> <span class="ml-4 pl-0.5 ">like</span></button> <button class="focus:outline-hidden flex items-center border-l px-1.5 py-1 text-gray-400 hover:bg-gray-50 focus:bg-gray-100 dark:hover:bg-gray-900 dark:focus:bg-gray-800" title="See users who liked this repository">0</button></div> </h1> <div class="flex flex-col-reverse gap-x-2 sm:flex-row sm:items-center sm:justify-between xl:ml-auto"><div class="-mb-px flex h-12 items-center overflow-x-auto overflow-y-hidden "> <a class="tab-alternate" href="/datasets/loubnabnl/old_python"><svg class="mr-1.5 text-gray-400 flex-none" style="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path class="uim-quaternary" d="M20.23 7.24L12 12L3.77 7.24a1.98 1.98 0 0 1 .7-.71L11 2.76c.62-.35 1.38-.35 2 0l6.53 3.77c.29.173.531.418.7.71z" opacity=".25" fill="currentColor"></path><path class="uim-tertiary" d="M12 12v9.5a2.09 2.09 0 0 1-.91-.21L4.5 17.48a2.003 2.003 0 0 1-1-1.73v-7.5a2.06 2.06 0 0 1 .27-1.01L12 12z" opacity=".5" fill="currentColor"></path><path class="uim-primary" d="M20.5 8.25v7.5a2.003 2.003 0 0 1-1 1.73l-6.62 3.82c-.275.13-.576.198-.88.2V12l8.23-4.76c.175.308.268.656.27 1.01z" fill="currentColor"></path></svg> Dataset card </a><a class="tab-alternate active" href="/datasets/loubnabnl/old_python/viewer/"><svg class="mr-1.5 text-gray-400 flex-none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill="currentColor" d="M2.5 2h7a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Zm0 2v2h3V4h-3Zm4 0v2h3V4h-3Zm-4 3v2h3V7h-3Zm4 0v2h3V7h-3Z"></path></svg> Data Studio </a><a class="tab-alternate" href="/datasets/loubnabnl/old_python/tree/main"><svg class="mr-1.5 text-gray-400 flex-none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path class="uim-tertiary" d="M21 19h-8a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2zm0-4h-8a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2zm0-8h-8a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2zm0 4h-8a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2z" opacity=".5" fill="currentColor"></path><path class="uim-primary" d="M9 19a1 1 0 0 1-1-1V6a1 1 0 0 1 2 0v12a1 1 0 0 1-1 1zm-6-4.333a1 1 0 0 1-.64-1.769L3.438 12l-1.078-.898a1 1 0 0 1 1.28-1.538l2 1.667a1 1 0 0 1 0 1.538l-2 1.667a.999.999 0 0 1-.64.231z" fill="currentColor"></path></svg> <span class="xl:hidden">Files</span> <span class="hidden xl:inline">Files and versions</span> <span class="inline-block "><span class="contents"><div slot="anchor" class="shadow-purple-500/10 ml-2 inline-flex -translate-y-px items-center gap-0.5 rounded-md border bg-white px-1 py-0.5 align-middle text-xs font-semibold leading-none text-gray-800 shadow-sm dark:border-gray-700 dark:bg-gradient-to-b dark:from-gray-925 dark:to-gray-925 dark:text-gray-300"><svg class="size-3 " xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.14 3.64 5.1 4.92 2.98 2.28h2.06l1.1 1.36Zm0 4.72-1.1 1.36H2.98l2.13-2.64 1.03 1.28Zm4.9 1.36L8.03 6l3-3.72H8.96L5.97 6l3 3.72h2.06Z" fill="#7875FF"></path><path d="M4.24 6 2.6 8.03.97 6 2.6 3.97 4.24 6Z" fill="#FF7F41" opacity="1"></path></svg> <span>xet</span> </div></span> </span> </a><a class="tab-alternate" href="/datasets/loubnabnl/old_python/discussions"><svg class="mr-1.5 text-gray-400 flex-none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M20.6081 3C21.7684 3 22.8053 3.49196 23.5284 4.38415C23.9756 4.93678 24.4428 5.82749 24.4808 7.16133C24.9674 7.01707 25.4353 6.93643 25.8725 6.93643C26.9833 6.93643 27.9865 7.37587 28.696 8.17411C29.6075 9.19872 30.0124 10.4579 29.8361 11.7177C29.7523 12.3177 29.5581 12.8555 29.2678 13.3534C29.8798 13.8646 30.3306 14.5763 30.5485 15.4322C30.719 16.1032 30.8939 17.5006 29.9808 18.9403C30.0389 19.0342 30.0934 19.1319 30.1442 19.2318C30.6932 20.3074 30.7283 21.5229 30.2439 22.6548C29.5093 24.3704 27.6841 25.7219 24.1397 27.1727C21.9347 28.0753 19.9174 28.6523 19.8994 28.6575C16.9842 29.4379 14.3477 29.8345 12.0653 29.8345C7.87017 29.8345 4.8668 28.508 3.13831 25.8921C0.356375 21.6797 0.754104 17.8269 4.35369 14.1131C6.34591 12.058 7.67023 9.02782 7.94613 8.36275C8.50224 6.39343 9.97271 4.20438 12.4172 4.20438H12.4179C12.6236 4.20438 12.8314 4.2214 13.0364 4.25468C14.107 4.42854 15.0428 5.06476 15.7115 6.02205C16.4331 5.09583 17.134 4.359 17.7682 3.94323C18.7242 3.31737 19.6794 3 20.6081 3ZM20.6081 5.95917C20.2427 5.95917 19.7963 6.1197 19.3039 6.44225C17.7754 7.44319 14.8258 12.6772 13.7458 14.7131C13.3839 15.3952 12.7655 15.6837 12.2086 15.6837C11.1036 15.6837 10.2408 14.5497 12.1076 13.1085C14.9146 10.9402 13.9299 7.39584 12.5898 7.1776C12.5311 7.16799 12.4731 7.16355 12.4172 7.16355C11.1989 7.16355 10.6615 9.33114 10.6615 9.33114C10.6615 9.33114 9.0863 13.4148 6.38031 16.206C3.67434 18.998 3.5346 21.2388 5.50675 24.2246C6.85185 26.2606 9.42666 26.8753 12.0653 26.8753C14.8021 26.8753 17.6077 26.2139 19.1799 25.793C19.2574 25.7723 28.8193 22.984 27.6081 20.6107C27.4046 20.212 27.0693 20.0522 26.6471 20.0522C24.9416 20.0522 21.8393 22.6726 20.5057 22.6726C20.2076 22.6726 19.9976 22.5416 19.9116 22.222C19.3433 20.1173 28.552 19.2325 27.7758 16.1839C27.639 15.6445 27.2677 15.4256 26.746 15.4263C24.4923 15.4263 19.4358 19.5181 18.3759 19.5181C18.2949 19.5181 18.2368 19.4937 18.2053 19.4419C17.6743 18.557 17.9653 17.9394 21.7082 15.6009C25.4511 13.2617 28.0783 11.8545 26.5841 10.1752C26.4121 9.98141 26.1684 9.8956 25.8725 9.8956C23.6001 9.89634 18.2311 14.9403 18.2311 14.9403C18.2311 14.9403 16.7821 16.496 15.9057 16.496C15.7043 16.496 15.533 16.4139 15.4169 16.2112C14.7956 15.1296 21.1879 10.1286 21.5484 8.06535C21.7928 6.66715 21.3771 5.95917 20.6081 5.95917Z" fill="#FF9D00"></path><path d="M5.50686 24.2246C3.53472 21.2387 3.67446 18.9979 6.38043 16.206C9.08641 13.4147 10.6615 9.33111 10.6615 9.33111C10.6615 9.33111 11.2499 6.95933 12.59 7.17757C13.93 7.39581 14.9139 10.9401 12.1069 13.1084C9.29997 15.276 12.6659 16.7489 13.7459 14.713C14.8258 12.6772 17.7747 7.44316 19.304 6.44221C20.8326 5.44128 21.9089 6.00204 21.5484 8.06532C21.188 10.1286 14.795 15.1295 15.4171 16.2118C16.0391 17.2934 18.2312 14.9402 18.2312 14.9402C18.2312 14.9402 25.0907 8.49588 26.5842 10.1752C28.0776 11.8545 25.4512 13.2616 21.7082 15.6008C17.9646 17.9393 17.6744 18.557 18.2054 19.4418C18.7372 20.3266 26.9998 13.1351 27.7759 16.1838C28.5513 19.2324 19.3434 20.1173 19.9117 22.2219C20.48 24.3274 26.3979 18.2382 27.6082 20.6107C28.8193 22.9839 19.2574 25.7722 19.18 25.7929C16.0914 26.62 8.24723 28.3726 5.50686 24.2246Z" fill="#FFD21E"></path></svg> Community <div class="ml-1.5 flex h-4 min-w-[1rem] items-center justify-center rounded px-1 text-xs leading-none shadow-sm bg-black text-white dark:bg-gray-800 dark:text-gray-200">1</div> </a></div> </div></div></header> </div> <div class="flex flex-col w-full"> <div class="flex h-full flex-1"> <div class="flex flex-1 flex-col overflow-hidden " style="height: calc(100vh - 48px)"><div class="flex flex-col overflow-hidden h-full "> <div class="flex flex-1 flex-col overflow-hidden "><div class="flex flex-1 flex-col overflow-hidden"><div class="flex min-h-0 flex-1"><div class="flex flex-1 flex-col overflow-hidden"><div class="md:shadow-xs dark:border-gray-800 md:my-4 md:ml-4 md:rounded-lg md:border flex min-w-0 flex-wrap "><div class="flex min-w-0 flex-1 flex-wrap"><div class="grid flex-1 grid-cols-1 overflow-hidden text-sm md:grid-cols-2 md:place-content-center md:rounded-lg"><label class="relative block flex-1 px-3 py-2 hover:bg-gray-50 dark:border-gray-850 dark:hover:bg-gray-950 md:border-r md:border-r-0 hidden" title="default"><span class="text-gray-500">Subset (1)</span> <div class="flex items-center whitespace-nowrap"><span class="truncate">default</span> <span class="mx-2 text-gray-500">·</span> <span class="text-gray-500">42.5k rows</span> <svg class="ml-auto min-w-6 pl-2" width="1em" height="1em" viewBox="0 0 12 7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="currentColor"></path></svg></div> <select class="absolute inset-0 z-10 w-full cursor-pointer border-0 bg-white text-base opacity-0"><optgroup label="Subset (1)"><option value="default" selected>default (42.5k rows)</option></optgroup></select></label> <label class="relative block flex-1 px-3 py-2 hover:bg-gray-50 dark:border-gray-850 dark:hover:bg-gray-900 md:border-r md:border-r" title="train"><div class="text-gray-500">Split (1)</div> <div class="flex items-center overflow-hidden whitespace-nowrap"><span class="truncate">train</span> <span class="mx-2 text-gray-500">·</span> <span class="text-gray-500">42.5k rows</span> <svg class="ml-auto min-w-6 pl-2" width="1em" height="1em" viewBox="0 0 12 7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="currentColor"></path></svg></div> <select class="absolute inset-0 z-10 w-full cursor-pointer border-0 bg-white text-base opacity-0"><optgroup label="Split (1)"><option value="train" selected>train (42.5k rows)</option></optgroup></select></label></div></div> <div class="hidden flex-none flex-col items-center gap-0.5 border-l px-1 md:flex justify-end"> <span class="inline-block "><span class="contents"><div slot="anchor"><button class="group text-gray-500 hover:text-gray-700" aria-label="Hide sidepanel"><div class="rounded-xs flex size-4 items-center justify-center border border-gray-400 bg-gray-100 hover:border-gray-600 hover:bg-blue-50 dark:border-gray-600 dark:bg-gray-800 dark:hover:bg-gray-700 dark:group-hover:border-gray-400"><div class="float-left h-full w-[65%]"></div> <div class="float-right h-full w-[35%] bg-gray-400 group-hover:bg-gray-600 dark:bg-gray-600 dark:group-hover:bg-gray-400"></div></div></button></div></span> </span> <div class="relative "> <button class="btn px-0.5 py-0.5 " type="button"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="p-0.5" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><circle cx="16" cy="7" r="3" fill="currentColor"></circle><circle cx="16" cy="16" r="3" fill="currentColor"></circle><circle cx="16" cy="25" r="3" fill="currentColor"></circle></svg> </button> </div></div></div> <div class="flex min-h-0 flex-1 flex-col border dark:border-gray-800 md:mb-4 md:ml-4 md:rounded-lg"> <div class="bg-linear-to-r text-smd relative flex items-center dark:border-gray-900 dark:bg-gray-950 false rounded-t-lg [&:has(:focus)]:from-gray-50 [&:has(:focus)]:to-transparent [&:has(:focus)]:to-20% dark:[&:has(:focus)]:from-gray-900"><form class="flex-1"><svg class="absolute left-3 top-1/2 transform -translate-y-1/2 pointer-events-none text-gray-400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M30 28.59L22.45 21A11 11 0 1 0 21 22.45L28.59 30zM5 14a9 9 0 1 1 9 9a9 9 0 0 1-9-9z" fill="currentColor"></path></svg> <input disabled class="outline-hidden h-9 w-full border-none bg-transparent px-1 pl-9 pr-3 placeholder:text-gray-400 " placeholder="Search this dataset" dir="auto"></form> <div class="flex items-center gap-2 px-2 py-1"><button type="button" class="hover:bg-yellow-200/70 flex items-center gap-1 rounded-md border border-yellow-200 bg-yellow-100 pl-0.5 pr-1 text-[.8rem] leading-normal text-gray-700 dark:border-orange-500/25 dark:bg-orange-500/20 dark:text-gray-300 dark:hover:brightness-110 md:hidden"><div class="rounded-sm bg-yellow-300 px-1 font-mono text-[.7rem] font-bold text-black dark:bg-yellow-700 dark:text-gray-200">SQL </div> Console </button></div></div> <div class="flex flex-1 flex-col overflow-hidden min-h-64 flex w-full flex-col border-t md:rounded-b-lg md:shadow-lg"> <div class="flex-1 relative overflow-auto"><table class="w-full table-auto rounded-lg font-mono text-xs text-gray-900"><thead class="shadow-xs sticky left-0 right-0 top-0 z-1 bg-white align-top"><tr class="space-y-54 h-full min-w-fit divide-x border-b text-left"><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">__id__ <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>int64</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="0" y="0.4912202711713718" width="11.2" height="29.508779728828628" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="13.2" y="0.0231162480551248" width="11.2" height="29.976883751944875" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="26.4" y="0.6645921315847971" width="11.2" height="29.335407868415203" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="39.599999999999994" y="0.45076683707490517" width="11.2" height="29.549233162925095" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="52.8" y="1.1904867748388526" width="11.2" height="28.809513225161147" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="66" y="0" width="11.2" height="30" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="79.19999999999999" y="0.3987552789508797" width="11.2" height="29.60124472104912" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="92.39999999999999" y="1.0228939764392102" width="11.2" height="28.97710602356079" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="105.6" y="3.554123138475216" width="11.2" height="26.445876861524784" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="118.8" y="6.54189819959991" width="11.2" height="23.45810180040009" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="12.2" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="25.4" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="38.599999999999994" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="51.8" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="65" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="78.19999999999999" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="91.39999999999999" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="104.6" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="117.8" y="0" width="13.2" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 60px">3.09k</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 0px; max-width: 60px">19,722B</div> </div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">blob_id <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>string</span><span class="italic text-gray-400 before:mx-1 before:content-['·']">lengths</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="0" y="0" width="130" height="30" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="132" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 60px">40</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 0px; max-width: 60px">40</div> </div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">directory_id <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>string</span><span class="italic text-gray-400 before:mx-1 before:content-['·']">lengths</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="0" y="0" width="130" height="30" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="132" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 60px">40</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 0px; max-width: 60px">40</div> </div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">path <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>string</span><span class="italic text-gray-400 before:mx-1 before:content-['·']">lengths</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="0" y="0" width="11.2" height="30" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="13.2" y="13.074141722891117" width="11.2" height="16.925858277108883" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="26.4" y="24.148879859842694" width="11.2" height="5.851120140157304" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="39.599999999999994" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="52.8" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="66" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="79.19999999999999" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="92.39999999999999" y="26" width="11.2" height="4" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="105.6" y="26" width="11.2" height="4" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="118.8" y="25" width="11.2" height="5" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="12.2" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="25.4" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="38.599999999999994" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="51.8" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="65" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="78.19999999999999" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="91.39999999999999" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="104.6" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="117.8" y="0" width="13.2" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 60px">2</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 0px; max-width: 60px">256</div> </div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">content_id <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>string</span><span class="italic text-gray-400 before:mx-1 before:content-['·']">lengths</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="0" y="0" width="130" height="30" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="132" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 60px">40</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 0px; max-width: 60px">40</div> </div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">detected_licenses <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>list</span></div></div> <div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">license_type <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>string</span><span class="italic text-gray-400 before:mx-1 before:content-['·']">classes</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><defs><clipPath id="rounded-bar"><rect x="0" y="0" width="130" height="8" rx="4"></rect></clipPath><pattern id="hatching" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-400 dark:stroke-gray-500/80" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern><pattern id="hatching-faded" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-100 dark:stroke-gray-500/20" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern></defs><g height="8" style="transform: translateY(20px)" clip-path="url(#rounded-bar)"><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g><rect class="fill-indigo-500 dark:fill-indigo-600/80" x="1" y="0" width="86.90423204497871" height="8" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" x="89.90423204497871" y="0" width="18.593756616245972" height="8" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" x="110.49798866122468" y="0" width="18.50201133877532" height="8" fill-opacity="1"></rect></g></g></g><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g><rect class="fill-white cursor-pointer" x="0" y="0" width="88.90423204497871" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="88.90423204497871" y="0" width="20.593756616245972" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="109.49798866122468" y="0" width="20.50201133877532" height="28" fill-opacity="0"></rect></g></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap">3 values</div></div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">repo_name <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>string</span><span class="italic text-gray-400 before:mx-1 before:content-['·']">lengths</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="0" y="16.10088927362871" width="11.2" height="13.899110726371292" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="13.2" y="0" width="11.2" height="30" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="26.4" y="19.3347761076572" width="11.2" height="10.665223892342803" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="39.599999999999994" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="52.8" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="66" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="79.19999999999999" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="92.39999999999999" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="105.6" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="118.8" y="25" width="11.2" height="5" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="12.2" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="25.4" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="38.599999999999994" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="51.8" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="65" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="78.19999999999999" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="91.39999999999999" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="104.6" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="117.8" y="0" width="13.2" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 60px">5</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 0px; max-width: 60px">109</div> </div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">repo_url <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>string</span><span class="italic text-gray-400 before:mx-1 before:content-['·']">lengths</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="0" y="16.10088927362871" width="11.2" height="13.899110726371292" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="13.2" y="0" width="11.2" height="30" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="26.4" y="19.3347761076572" width="11.2" height="10.665223892342803" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="39.599999999999994" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="52.8" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="66" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="79.19999999999999" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="92.39999999999999" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="105.6" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="118.8" y="25" width="11.2" height="5" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="12.2" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="25.4" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="38.599999999999994" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="51.8" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="65" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="78.19999999999999" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="91.39999999999999" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="104.6" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="117.8" y="0" width="13.2" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 60px">24</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 0px; max-width: 60px">128</div> </div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">snapshot_id <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>string</span><span class="italic text-gray-400 before:mx-1 before:content-['·']">lengths</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="0" y="0" width="130" height="30" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="132" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 60px">40</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 0px; max-width: 60px">40</div> </div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">revision_id <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>string</span><span class="italic text-gray-400 before:mx-1 before:content-['·']">lengths</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="0" y="0" width="130" height="30" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="132" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 60px">40</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 0px; max-width: 60px">40</div> </div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">branch_name <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>string</span><span class="italic text-gray-400 before:mx-1 before:content-['·']">lengths</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="0" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="13.2" y="26" width="11.2" height="4" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="26.4" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="39.599999999999994" y="0" width="11.2" height="30" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="52.8" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="66" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="79.19999999999999" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="92.39999999999999" y="26" width="11.2" height="4" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="105.6" y="26" width="11.2" height="4" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="118.8" y="25" width="11.2" height="5" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="12.2" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="25.4" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="38.599999999999994" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="51.8" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="65" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="78.19999999999999" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="91.39999999999999" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="104.6" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="117.8" y="0" width="13.2" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 60px">4</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 0px; max-width: 60px">42</div> </div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">visit_date <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>timestamp[ns]</span></div></div> <div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">revision_date <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>timestamp[ns]</span></div></div> <div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">committer_date <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>timestamp[ns]</span></div></div> <div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">github_id <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>int64</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="0" y="10.014137824474659" width="10" height="19.98586217552534" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="12" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="24" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="36" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="48" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="60" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="72" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="84" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="96" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="108" y="25" width="10" height="5" fill-opacity="1"></rect><rect class=" fill-gray-200 dark:fill-gray-500/80" rx="2" x="120" y="0" width="10" height="30" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="11" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="23" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="35" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="47" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="59" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="71" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="83" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="95" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="107" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-gray-200 cursor-pointer" x="119" y="0" width="12" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 54px">6.65k</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 12px; max-width: 54px">581M</div> <div class="absolute -translate-x-1/2" style="left: 125px">⌀</div></div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">star_events_count <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>int64</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="0" y="0" width="11.2" height="30" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="13.2" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="26.4" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="39.599999999999994" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="52.8" y="26" width="11.2" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="66" y="26" width="11.2" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="79.19999999999999" y="26" width="11.2" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="92.39999999999999" y="26" width="11.2" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="105.6" y="26" width="11.2" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="118.8" y="25" width="11.2" height="5" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="12.2" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="25.4" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="38.599999999999994" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="51.8" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="65" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="78.19999999999999" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="91.39999999999999" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="104.6" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="117.8" y="0" width="13.2" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 60px">0</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 0px; max-width: 60px">1.17k</div> </div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">fork_events_count <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>int64</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="0" y="0" width="11.2" height="30" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="13.2" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="26.4" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="39.599999999999994" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="52.8" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="66" y="26" width="11.2" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="79.19999999999999" y="26" width="11.2" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="92.39999999999999" y="26" width="11.2" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="105.6" y="26" width="11.2" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="118.8" y="25" width="11.2" height="5" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="12.2" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="25.4" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="38.599999999999994" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="51.8" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="65" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="78.19999999999999" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="91.39999999999999" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="104.6" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="117.8" y="0" width="13.2" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 60px">0</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 0px; max-width: 60px">154</div> </div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">gha_license_id <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>string</span><span class="italic text-gray-400 before:mx-1 before:content-['·']">classes</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><defs><clipPath id="rounded-bar"><rect x="0" y="0" width="130" height="8" rx="4"></rect></clipPath><pattern id="hatching" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-400 dark:stroke-gray-500/80" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern><pattern id="hatching-faded" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-100 dark:stroke-gray-500/20" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern></defs><g height="8" style="transform: translateY(20px)" clip-path="url(#rounded-bar)"><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g></g><g><rect class="fill-gray-200 dark:fill-gray-500/80" x="2.104001505563531" y="0" width="126.89599849443647" height="8" fill-opacity="1"></rect></g></g></g><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g><rect class="fill-white cursor-pointer" x="0" y="0" width="0.29358488790609044" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="0.29358488790609044" y="0" width="0.21713049001387943" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="0.5107153779199699" y="0" width="0.11621068479616081" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="0.6269260627161307" y="0" width="0.11009433296478392" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="0.7370203956809146" y="0" width="0.10397798113340705" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="0.8409983768143217" y="0" width="0.09786162930203017" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="0.9388600061163518" y="0" width="0.058105342398080406" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="0.9969653485144322" y="0" width="0.03363993507257287" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="1.030605283587005" y="0" width="0.024465407325507543" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="1.0550706909125125" y="0" width="0.015290879578442213" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="1.0703615704909546" y="0" width="0.012232703662753771" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="1.0825942741537085" y="0" width="0.006116351831376886" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="1.0887106259850854" y="0" width="0.006116351831376886" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="1.0948269778164623" y="0" width="0.003058175915688443" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="1.0978851537321508" y="0" width="0.003058175915688443" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="1.1009433296478393" y="0" width="0.003058175915688443" height="28" fill-opacity="0"></rect></g><g><rect class="fill-white cursor-pointer" x="1.1040015055635308" y="0" width="128.89599849443647" height="28" fill-opacity="0"></rect></g></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap">16 values</div></div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">gha_fork <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>bool</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><defs><clipPath id="rounded-bar"><rect x="0" y="0" width="130" height="8" rx="4"></rect></clipPath><pattern id="hatching" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-400 dark:stroke-gray-500/80" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern><pattern id="hatching-faded" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-100 dark:stroke-gray-500/20" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern></defs><g height="8" style="transform: translateY(20px)" clip-path="url(#rounded-bar)"><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g><rect class="fill-indigo-500 dark:fill-indigo-600/80" x="1" y="0" width="2.293678985626573" height="8" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" x="5.293678985626573" y="0" width="0.3853772142369851" height="8" fill-opacity="1"></rect></g><g><rect class="fill-gray-200 dark:fill-gray-500/80" x="7.6790561998635525" y="0" width="121.32094380013645" height="8" fill-opacity="1"></rect></g></g></g><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g><rect class="fill-white cursor-pointer" x="0" y="0" width="4.293678985626573" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="4.293678985626573" y="0" width="2.385377214236985" height="28" fill-opacity="0"></rect></g><g><rect class="fill-white cursor-pointer" x="6.6790561998635525" y="0" width="123.32094380013645" height="28" fill-opacity="0"></rect></g></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap">2 classes</div></div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">gha_event_created_at <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>timestamp[ns]</span></div></div> <div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">gha_created_at <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>timestamp[ns]</span></div></div> <div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">gha_updated_at <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>timestamp[ns]</span></div></div> <div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">gha_pushed_at <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>timestamp[ns]</span></div></div> <div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">gha_size <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>int64</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="0" y="24.61376317420955" width="10" height="5.386236825790452" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="12" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="24" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="36" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="48" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="60" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="72" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="84" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="96" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="108" y="25" width="10" height="5" fill-opacity="1"></rect><rect class=" fill-gray-200 dark:fill-gray-500/80" rx="2" x="120" y="0" width="10" height="30" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="11" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="23" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="35" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="47" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="59" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="71" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="83" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="95" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="107" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-gray-200 cursor-pointer" x="119" y="0" width="12" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 54px">0</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 12px; max-width: 54px">5.76M</div> <div class="absolute -translate-x-1/2" style="left: 125px">⌀</div></div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">gha_stargazers_count <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>int32</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="0" y="24.869593000393238" width="10" height="5.130406999606763" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="12" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="24" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="36" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="48" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="60" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="72" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="84" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="96" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="108" y="25" width="10" height="5" fill-opacity="1"></rect><rect class=" fill-gray-200 dark:fill-gray-500/80" rx="2" x="120" y="0" width="10" height="30" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="11" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="23" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="35" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="47" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="59" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="71" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="83" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="95" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="107" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-gray-200 cursor-pointer" x="119" y="0" width="12" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 54px">0</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 12px; max-width: 54px">407</div> <div class="absolute -translate-x-1/2" style="left: 125px">⌀</div></div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">gha_forks_count <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>int32</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="0" y="24.663181108605695" width="10" height="5.336818891394306" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="12" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="24" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="36" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="48" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="60" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="72" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="84" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="96" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="108" y="25" width="10" height="5" fill-opacity="1"></rect><rect class=" fill-gray-200 dark:fill-gray-500/80" rx="2" x="120" y="0" width="10" height="30" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="11" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="23" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="35" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="47" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="59" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="71" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="83" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="95" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="107" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-gray-200 cursor-pointer" x="119" y="0" width="12" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 54px">0</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 12px; max-width: 54px">119</div> <div class="absolute -translate-x-1/2" style="left: 125px">⌀</div></div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">gha_open_issues_count <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>int32</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="0" y="24.618083603835764" width="10" height="5.381916396164234" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="12" y="25" width="10" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="24" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="36" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="48" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="60" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="72" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="84" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="96" y="26" width="10" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="108" y="25" width="10" height="5" fill-opacity="1"></rect><rect class=" fill-gray-200 dark:fill-gray-500/80" rx="2" x="120" y="0" width="10" height="30" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="11" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="23" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="35" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="47" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="59" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="71" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="83" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="95" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="107" y="0" width="12" height="30" fill-opacity="0"></rect><rect class="fill-gray-200 cursor-pointer" x="119" y="0" width="12" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 54px">0</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 12px; max-width: 54px">640</div> <div class="absolute -translate-x-1/2" style="left: 125px">⌀</div></div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">gha_language <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>string</span><span class="italic text-gray-400 before:mx-1 before:content-['·']">lengths</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="0" y="25" width="12.666666666666666" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="14.666666666666666" y="25" width="12.666666666666666" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="29.333333333333332" y="25" width="12.666666666666666" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="44" y="25" width="12.666666666666666" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="58.666666666666664" y="25" width="12.666666666666666" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="73.33333333333333" y="25" width="12.666666666666666" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="88" y="26" width="12.666666666666666" height="4" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="102.66666666666666" y="25" width="12.666666666666666" height="5" fill-opacity="1"></rect><rect class=" fill-gray-200 dark:fill-gray-500/80" rx="2" x="117.33333333333333" y="0" width="12.666666666666666" height="30" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="13.666666666666666" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="28.333333333333332" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="43" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="57.666666666666664" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="72.33333333333333" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="87" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="101.66666666666666" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect><rect class="fill-gray-200 cursor-pointer" x="116.33333333333333" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 52.666666666666664px">1</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 14.666666666666666px; max-width: 52.666666666666664px">16</div> <div class="absolute -translate-x-1/2" style="left: 123.66666666666666px">⌀</div></div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">gha_archived <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>bool</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><defs><clipPath id="rounded-bar"><rect x="0" y="0" width="130" height="8" rx="4"></rect></clipPath><pattern id="hatching" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-400 dark:stroke-gray-500/80" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern><pattern id="hatching-faded" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-100 dark:stroke-gray-500/20" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern></defs><g height="8" style="transform: translateY(20px)" clip-path="url(#rounded-bar)"><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g><rect class="fill-indigo-500 dark:fill-indigo-600/80" x="1" y="0" width="0.4129007974781813" height="8" fill-opacity="1"></rect></g><g><rect class="fill-gray-200 dark:fill-gray-500/80" x="3.4159589733938702" y="0" width="125.58404102660613" height="8" fill-opacity="1"></rect></g></g></g><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g><rect class="fill-white cursor-pointer" x="0" y="0" width="2.4129007974781813" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="2.4129007974781813" y="0" width="0.003058175915688443" height="28" fill-opacity="0"></rect></g><g><rect class="fill-white cursor-pointer" x="2.4159589733938702" y="0" width="127.58404102660613" height="28" fill-opacity="0"></rect></g></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap">2 classes</div></div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">gha_disabled <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>bool</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><defs><clipPath id="rounded-bar"><rect x="0" y="0" width="130" height="8" rx="4"></rect></clipPath><pattern id="hatching" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-400 dark:stroke-gray-500/80" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern><pattern id="hatching-faded" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-100 dark:stroke-gray-500/20" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern></defs><g height="8" style="transform: translateY(20px)" clip-path="url(#rounded-bar)"><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g></g><g><rect class="fill-gray-200 dark:fill-gray-500/80" x="2.917476299136638" y="0" width="126.08252370086336" height="8" fill-opacity="1"></rect></g></g></g><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g><rect class="fill-white cursor-pointer" x="0" y="0" width="1.9174762991366534" height="28" fill-opacity="0"></rect></g><g><rect class="fill-white cursor-pointer" x="1.9174762991366379" y="0" width="128.08252370086336" height="28" fill-opacity="0"></rect></g></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap">1 class</div></div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">content <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>string</span><span class="italic text-gray-400 before:mx-1 before:content-['·']">lengths</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="0" y="0" width="11.2" height="30" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="13.2" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="26.4" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="39.599999999999994" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="52.8" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="66" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="79.19999999999999" y="26" width="11.2" height="4" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="92.39999999999999" y="25" width="11.2" height="5" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="105.6" y="26" width="11.2" height="4" fill-opacity="1"></rect><rect class="fill-gray-400 dark:fill-gray-500/80" rx="2" x="118.8" y="25" width="11.2" height="5" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="12.2" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="25.4" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="38.599999999999994" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="51.8" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="65" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="78.19999999999999" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="91.39999999999999" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="104.6" y="0" width="13.2" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="117.8" y="0" width="13.2" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 60px">9</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 0px; max-width: 60px">4.53M</div> </div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">src_encoding <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>string</span><span class="italic text-gray-400 before:mx-1 before:content-['·']">classes</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><defs><clipPath id="rounded-bar"><rect x="0" y="0" width="130" height="8" rx="4"></rect></clipPath><pattern id="hatching" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-400 dark:stroke-gray-500/80" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern><pattern id="hatching-faded" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-100 dark:stroke-gray-500/20" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern></defs><g height="8" style="transform: translateY(20px)" clip-path="url(#rounded-bar)"><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g><rect class="fill-indigo-500 dark:fill-indigo-600/80" x="1" y="0" width="127.5443317885624" height="8" fill-opacity="1"></rect></g></g></g><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g><rect class="fill-white cursor-pointer" x="0" y="0" width="129.5443317885624" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.5443317885624" y="0" width="0.1437342680373568" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.68806605659975" y="0" width="0.1376179162059799" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.82568397280573" y="0" width="0.05198899056670352" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.87767296337245" y="0" width="0.021407231409819098" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.89908019478227" y="0" width="0.021407231409819098" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.9204874261921" y="0" width="0.018349055494130653" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.93883648168622" y="0" width="0.009174527747065326" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.9480110094333" y="0" width="0.009174527747065326" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.95718553718035" y="0" width="0.006116351831376886" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.96330188901172" y="0" width="0.006116351831376886" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.96941824084308" y="0" width="0.006116351831376886" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.97553459267445" y="0" width="0.006116351831376886" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.98165094450582" y="0" width="0.006116351831376886" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.98776729633718" y="0" width="0.003058175915688443" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.99082547225288" y="0" width="0.003058175915688443" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.99388364816858" y="0" width="0.003058175915688443" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.99694182408427" y="0" width="0.003058175915688443" height="28" fill-opacity="0"></rect></g></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap">18 values</div></div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">language <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>string</span><span class="italic text-gray-400 before:mx-1 before:content-['·']">classes</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><defs><clipPath id="rounded-bar"><rect x="0" y="0" width="130" height="8" rx="4"></rect></clipPath><pattern id="hatching" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-400 dark:stroke-gray-500/80" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern><pattern id="hatching-faded" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-100 dark:stroke-gray-500/20" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern></defs><g height="8" style="transform: translateY(20px)" clip-path="url(#rounded-bar)"><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g><rect class="fill-indigo-500 dark:fill-indigo-600/80" x="1" y="0" width="128" height="8" fill-opacity="1"></rect></g></g></g><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g><rect class="fill-white cursor-pointer" x="0" y="0" width="130" height="28" fill-opacity="0"></rect></g></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap">1 value</div></div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">is_vendor <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>bool</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><defs><clipPath id="rounded-bar"><rect x="0" y="0" width="130" height="8" rx="4"></rect></clipPath><pattern id="hatching" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-400 dark:stroke-gray-500/80" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern><pattern id="hatching-faded" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-100 dark:stroke-gray-500/20" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern></defs><g height="8" style="transform: translateY(20px)" clip-path="url(#rounded-bar)"><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g><rect class="fill-indigo-500 dark:fill-indigo-600/80" x="1" y="0" width="127.813451269143" height="8" fill-opacity="1"></rect></g></g></g><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g><rect class="fill-white cursor-pointer" x="0" y="0" width="129.813451269143" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.813451269143" y="0" width="0.186548730856995" height="28" fill-opacity="0"></rect></g></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap">2 classes</div></div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">is_generated <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>bool</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><defs><clipPath id="rounded-bar"><rect x="0" y="0" width="130" height="8" rx="4"></rect></clipPath><pattern id="hatching" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-400 dark:stroke-gray-500/80" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern><pattern id="hatching-faded" patternUnits="userSpaceOnUse" patternTransform="rotate(-45)" height="1" width="5"><line y1="0" class="stroke-gray-100 dark:stroke-gray-500/20" stroke-width="3" y2="1" x1="2" x2="2"></line></pattern></defs><g height="8" style="transform: translateY(20px)" clip-path="url(#rounded-bar)"><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g><rect class="fill-indigo-500 dark:fill-indigo-600/80" x="1" y="0" width="127.95718553718035" height="8" fill-opacity="1"></rect></g></g></g><g style="transform: scaleX(1.0153846153846153) translateX(-1px)"><g><rect class="fill-white cursor-pointer" x="0" y="0" width="129.95718553718035" height="28" fill-opacity="0"></rect><rect class="fill-white cursor-pointer" x="129.95718553718035" y="0" width="0.042814462819638195" height="28" fill-opacity="0"></rect></g></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap">2 classes</div></div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th><th class="h-full max-w-sm p-2 text-left relative w-auto"><div class="flex h-full flex-col flex-nowrap justify-between"><div><div class="flex items-center justify-between">year <form class="flex flex-col"><button id="asc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="-rotate-180 transform text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button> <button id="desc" class="-mr-1 ml-2 h-[0.4rem] w-[0.8rem] transition ease-in-out"><svg class="text-gray-300 hover:text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 64 256 128" fill="currentColor" aria-hidden="true"><path d="M213.65674,101.657l-80,79.99976a7.99945,7.99945,0,0,1-11.31348,0l-80-79.99976A8,8,0,0,1,48,88H208a8,8,0,0,1,5.65674,13.657Z"></path></svg></button></form></div> <div class="mb-2 whitespace-nowrap text-xs font-normal text-gray-500"><span>int64</span></div></div> <div><div class="" style="height: 40px; padding-top: 2px"><svg width="130" height="28"><g><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="0" y="25" width="12.666666666666666" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="14.666666666666666" y="26" width="12.666666666666666" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="29.333333333333332" y="26" width="12.666666666666666" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="44" y="26" width="12.666666666666666" height="4" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="58.666666666666664" y="25" width="12.666666666666666" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="73.33333333333333" y="25" width="12.666666666666666" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="88" y="25" width="12.666666666666666" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="102.66666666666666" y="25" width="12.666666666666666" height="5" fill-opacity="1"></rect><rect class="fill-indigo-500 dark:fill-indigo-600/80" rx="2" x="117.33333333333333" y="0" width="12.666666666666666" height="30" fill-opacity="1"></rect></g><rect class="fill-white dark:fill-gray-900" x="0" y="26" width="130" height="2" stroke-opacity="1"></rect><line class="stroke-gray-100 dark:stroke-gray-500/20" x1="0" y1="27.5" x2="130" y2="27.5" stroke-opacity="1"></line><g><rect class="fill-indigo-500 cursor-pointer" x="-1" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="13.666666666666666" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="28.333333333333332" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="43" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="57.666666666666664" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="72.33333333333333" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="87" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="101.66666666666666" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect><rect class="fill-indigo-500 cursor-pointer" x="116.33333333333333" y="0" width="14.666666666666666" height="30" fill-opacity="0"></rect></g></svg> <div class="relative font-light text-gray-400" style="height: 10px; width: 130px;"><div class="absolute left-0 overflow-hidden text-ellipsis whitespace-nowrap" style="max-width: 60px">1.97k</div> <div class="absolute overflow-hidden text-ellipsis whitespace-nowrap" style="right: 0px; max-width: 60px">2.01k</div> </div></div></div></div> <div class="absolute right-0 top-0 z-10 h-full w-1 cursor-col-resize hover:bg-indigo-100 active:bg-indigo-500 dark:hover:bg-indigo-800 dark:active:bg-indigo-600/80"><div class="absolute right-0 top-0 h-full w-1"></div> </div> </th></tr></thead> <tbody class="h-16 overflow-scroll"><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40700"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">3,470,333,593,250</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a077d3e057d51be58df26fe8d02238814c26bd0a</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">dd9cdad3d267a00711758f2e1709c3fee646ddbe</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/init.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4fdf5ae3eafb384aca099d8967d8a899e6600298</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">pinventado/yolanda-infoclassifier</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/pinventado/yolanda-infoclassifier</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">94fbc429e5003915c90eed6813b5d3006f58b15f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">04295bc75df16c97c5c2058e5cdb2c2667ca3378</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-12-12T21:00:43.930284</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-12-16T03:05:48</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-12-16T03:05:48</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from gevent import monkey; monkey.patch_all() from TwitterAPI import TwitterAPI from classifier import ReliefClassifier import settings, json, redis, random, gevent, sys, traceback class TwitterListener: def __init__(self, redis_con, classifier): self.redis_con = redis_con self.classifier = classifier self.twitter = TwitterAPI(settings.CONSUMER_KEY, settings.CONSUMER_SECRET, settings.ACCESS_TOKEN, settings.ACCESS_TOKEN_SECRET) def run(self): req = self.twitter.request('statuses/filter',{'track':settings.TOPICS}) for tweet in req.get_iterator(): if "retweeted_status" in tweet: text = 'RT @'+tweet['retweeted_status']['user']['screen_name']+': '+tweet['retweeted_status']['text'] else: text = tweet['text'] sys.stdout.write(text+"\n") '''if(any([x.lower() in text.lower() for x in settings.AID_KEYWORDS])): label="A" else: label="NA" sys.stdout.write(label+"\n") sys.stdout.flush() self.classifier.addDocument(text,label)''' pred = self.classifier.predict([text]) if pred != -1: sys.stdout.write(str(pred[0])+"\n") tweet['label']=pred[0] self.redis_con.publish(settings.REDIS_CLASSIFIED_CHANNEL,json.dumps(tweet)) if pred[0]=='A': self.redis_con.publish(settings.REDIS_FILTERED_CHANNEL,json.dumps(tweet)) else: sys.stdout.write("No prediction") sys.stdout.flush() gevent.sleep(0) def start(self): gevent.spawn(self.run) class RedisListener: def __init__(self, redis_con, classifier): self.classifier = classifier self.redis_con=redis_con self.pubsub = self.redis_con.pubsub() self.pubsub.subscribe(settings.REDIS_TRAIN_CHANNEL) def run(self): for item in self.pubsub.listen(): if isinstance(item['data'],str): try: data = json.loads(item['data']) #print data['tweet'] #print data['label'] sys.stdout.write("Added doc: "+str(data['label'])+"\n") sys.stdout.flush() tweet = data['tweet'] if "retweeted_status" in tweet: text = 'RT @'+tweet['retweeted_status']['user']['screen_name']+': '+tweet['retweeted_status']['text'] else: text = tweet['text'] self.classifier.addDocument(text,data['label']) except: exc_type, exc_value, exc_traceback = sys.exc_info() traceback.print_exception(exc_type, exc_value, exc_traceback, file=sys.stdout) sys.stdout.flush() print "error in data: "+str(item) gevent.sleep(0) def start(self): gevent.spawn(self.run) if __name__ == "__main__": redis_con = redis.StrictRedis(settings.REDIS_HOST,settings.REDIS_PORT, password=settings.REDIS_PASSWORD) classifier = ReliefClassifier() t = TwitterListener(redis_con, classifier) r = RedisListener(redis_con, classifier) t.start() r.start() try: while(True): gevent.sleep(0) except KeyboardInterrupt: pass </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40701"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1,125,281,463,195</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b4151abcb5b4cca0868105a2ead81131c7f48b2f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">26bd81584983df4c1ac008737a727c26105b4a96</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/assembler.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">d0b9bc9335d3009c303bd60d7558ba433f4bffd1</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">jnwng/141L</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/jnwng/141L</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e3af7d62f808053a7044702bd6f4be3ae3f44270</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">0370a24a971533ae509c9879672dfe8654407843</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-20T07:46:34.656002</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-03-12T08:15:32</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-03-12T08:15:32</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/env python import re opcodes = { "res": 0, "add": 0, "load": 1, "store": 2, "jump": 3, "branch": 4, "epar": 5, "cpin": 7, "cpout": 7, "shift": 10, "halt": 11, } registers = { "$s0": 0, "$s1": 1, "$t0": 2, "$t1": 3, "$t2": 4, "$t3": 5, "$c1": 6, "$c2": 7, } labels = {} register_exp = r'(?P<reg>([0-8]|\$((t[0-3])|(s[0-1])|(c[1-2])|res|0)))' halt_regexp = re.compile(r'(?P<instr>(halt))') op_regexp = re.compile(r'(?P<instr>(add|shift|store|epar|cpin|cpout|jump|load))\s+((?P<flag>([01])),\s*)?' + register_exp) branch_regexp = re.compile(r'(?P<instr>(branch))\s+(?P<equals>[01])+(,\s*(?P<comp>[><]))*') res_regexp = re.compile(r'(?P<instr>(res))\s+((?P<offset>[-0-9]+)|(?P<label>\w+))') comment_regexp = re.compile(r'(^#|^\/{2})') label_regexp = re.compile(r'(?P<label>(\w+):)') def get_labels(infile): instruction_count = 0 for line in infile: comment = comment_regexp.match(line) label = label_regexp.match(line) if line != "\n" and line.strip(): if label: count = instruction_count strip_label = label.group('label').rstrip(':') print "Label: %(label)s @: %(count)s" % {'label': strip_label, 'count': count} labels[strip_label] = count elif comment: pass else: instruction_count += 1 def assemble(infile): instruction_count = 0 infile.seek(0) for line in infile: instr = None comment = comment_regexp.match(line) label = label_regexp.match(line) op = op_regexp.match(line) branch = branch_regexp.match(line) res = res_regexp.match(line) halt = halt_regexp.match(line) line = line.rstrip() if label: pass elif comment: print "Comment" elif halt: opcode = int(opcodes[halt.group('instr')]) instr = (1 << 4) ^ opcode instr <<= 4 print "HALT" elif op: opcode = int(opcodes[op.group('instr')]) flag = op.group('flag') reg = int(registers[op.group('reg')]) cpout = op.group('instr') == 'cpout' debug = "%(instr)s " instr = (1 << 4) ^ opcode instr <<= 1 if flag: debug += "%(flag)s, " if cpout: flag = 1 if flag or cpout: instr ^= int(flag) debug += "%(reg)s" instr = (instr << 3) ^ reg print debug % op.groupdict() print bin(instr) elif branch: opcode = int(opcodes[branch.group('instr')]) equals_flag = branch.group('equals') comp_flag = branch.group('comp') if comp_flag: comp_flag = 1 if comp_flag == '<' else 2 instr = (1 << 4) ^ opcode instr = (instr << 1) ^ int(equals_flag) branch_str = "%(instr)s %(equals)s" instr <<= 3 if comp_flag is not None: instr ^= int(comp_flag) branch_str += ", %(comp)s" print branch_str % branch.groupdict() print bin(instr) elif res: res_dict = res.groupdict() label = res_dict.get('label') offset = res_dict.get('offset') opcode = opcodes[res_dict['instr']] instr = 0 << 8 offset = int(offset) if offset else offset if label is not None: instr ^= labels[label] res_str = label else: if offset < 0: twos = (1<<8)-1 offset = (twos ^ offset) + 1 offset *= -1 instr ^= offset res_str = res_dict.get('offset') print "Res %s" % res_str print bin(instr) else: if len(line): print "INVALID INSTRUCTION: %s" % line if instr is not None: instruction_count += 1 write_str = (bin(instr)[2:] + "\n").zfill(10) outfile.write(write_str) instr = None if __name__ == "__main__": import sys try: filename = sys.argv[1] except Exception, e: print "You need to specify a file!" sys.exit() infile = open(filename) outfile = open(filename + '.hex', 'w') get_labels(infile) assemble(infile) infile.close() outfile.close() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40702"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">4,715,874,118,117</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">0485ff828b63415081b7848611ddab4a05d3818e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">6a1ee73433856f77a718206856b2091fd3a3cdf8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/app.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b6d34fa28e6064aba309473f4e4b5871122b57ea</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "GPL-3.0-or-later" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">fnstudio/DigiWebStats</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/fnstudio/DigiWebStats</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b79687e0777d67adf2fb7cbc51025b0b0d6abdfc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">18efe9d2524498608c4fcee868b875c3b23652d2</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-09-07T09:52:22.957546</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-02-22T23:44:34</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-02-22T23:44:34</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from datetime import date, datetime, timedelta from flask import \ Flask, request, session, redirect, url_for, abort, render_template from flaskext.csrf import csrf from database import engine import settings app = Flask(__name__) # Load settings app.config.from_object('settings') # Activate CSRF protection csrf(app) @app.route('/') def index(): """Show main page. Query the database and show data for selected date range. If no date range is selected, default to today. """ DATE_FORMAT = app.config['DATE_FORMAT'] # Require login if not 'logged_in' in session: return redirect(url_for('login')) # Get data from GET start_date = request.args.get('start_date', None) end_date = request.args.get('end_date', None) # If start_date is missing, default to today if not start_date: today = date.today().strftime(DATE_FORMAT) return redirect(url_for('index', start_date=today, end_date=today)) # If provided dates are not valid, raise 404 try: start_date = datetime.strptime(start_date, DATE_FORMAT).date() end_date = datetime.strptime(end_date, DATE_FORMAT).date() except ValueError: abort(404) query = settings.DB_QUERY % (start_date, end_date) data = engine.execute(query).fetchall() # Render the template return render_template( 'index.html', start_date = start_date, end_date = end_date, data = data ) @app.context_processor def inject_extra_context(): """Add some extra values to the context.""" # Some dates of interest day = timedelta(1) today = date.today() yesterday = today - day current_month_start = today.replace(day=1) last_month_end = current_month_start - day last_month_start = last_month_end.replace(day=1) temp = { 'today': today, 'yesterday': yesterday, 'current_month_start': current_month_start, 'last_month_start': last_month_start, 'last_month_end': last_month_end } # Convert date objects to strings DATE_FORMAT = app.config['DATE_FORMAT'] extra_context = {k: v.strftime(DATE_FORMAT) for (k, v) in temp.items()} return extra_context @app.route('/login/', methods=['GET', 'POST']) def login(): """Log a user in.""" error = None if request.method == 'POST': if request.form['username'] != app.config['USERNAME']: error = 'Invalid username' elif request.form['password'] != app.config['PASSWORD']: error = 'Invalid password' else: session['logged_in'] = True return redirect(url_for('index')) return render_template('login.html', error=error) @app.route('/logout/') def logout(): """Log a user out.""" session.pop('logged_in', None) return redirect(url_for('index')) if __name__ == '__main__': app.run() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40703"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">16,896,401,366,539</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e0ab130982d01be93488f9ecd4da478a3e6c9c16</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">f356efaea00e516cd355d5f9e32973abbc21f05c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/treeherder/model/tasks.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">8e9d2d4b141d409261cc224d3bfc5c13c5f81840</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "MPL-2.0" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">un33k/treeherder-service</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/un33k/treeherder-service</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">afd365d6d282fd4caf5771ec95cde81344c863bf</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">cda3c10da6c947e5e9c5f366ca034c7de0092413</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-12-30T22:55:38.536244</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-02-14T17:37:06</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-02-14T17:37:06</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">16,971,057</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from celery import task from treeherder.model.derived import JobsModel from treeherder.model.models import Datasource @task(name='process-objects') def process_objects(limit=None): """ Process a number of objects from the objectstore and load them to the jobs store """ # default limit to 100 limit = limit or 100 for ds in Datasource.objects.all(): jm = JobsModel(ds.project) try: jm.process_objects(limit) finally: jm.disconnect() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40704"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">13,469,017,483,446</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">52e6f5d0991fb8e7b984d5b0623bf54a8b857f6b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">127a9188e53461a177d52456f795ce04f25cc5cb</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/base/fs/partitions/msdos_swap.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4b1d1dc43d60e467fff8fd8a235a1d1ae0054634</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">bsdlp/bootstrap-vz</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/bsdlp/bootstrap-vz</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">59bb7a6cf801d7b2262ea182df9a9ba725d3539e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">29d4bdf70d062a221a9a344b4ac2e27cc928a41e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2019-07-13T11:47:38.958846</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-02-17T23:07:26</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-02-17T23:08:44</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from common.tools import log_check_call from msdos import MSDOSPartition class MSDOSSwapPartition(MSDOSPartition): def __init__(self, size, previous): super(MSDOSSwapPartition, self).__init__(size, 'swap', previous) def _before_format(self, e): log_check_call(['/sbin/mkswap', self.device_path]) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40705"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,095,944,064,170</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">0f2df1607b8f227358a573e65bede52dff25d7d4</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7b3fdc555c73a0c15e369f467291dc2329cade93</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/time-complexity/b3.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">f1fba7282516b96843745f929b8d653fbbf6bc7a</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "GPL-2.0-only" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">dbarenas/Katja-hop</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/dbarenas/Katja-hop</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">3e765324e4c5a9accd9f0029532102766c30c6bf</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">6f50aa57e26cac48fb50a77ab8966333457069db</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-02T09:38:12.584515</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-12-09T13:10:13</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-12-09T13:10:13</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "> #time complexity excersice # #logarithmic time # def logarithmic(N): result = 0 while(N > 1): N=N//2 result +=1 return result print logarithmic(20) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40706"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">3,350,074,520,583</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">9b1d2f7452152bd47a1068ec1c98291660d17bce</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">477c3cf24ec08745cc10fa5806ece5fbfa6465b7</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/agileHub/filem/tools.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e2e7931e943bed636761ef5fcf6044f4c0e8a66b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">guoylyy/AgileManagement</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/guoylyy/AgileManagement</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">2483203cb26a19dad76a4a8a3e92fdbe87c4bfa8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">bcb5b776cfd655d41e2a77a9bda31d1fcdbeb173</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2015-08-09T15:36:33.409752</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-02-07T18:25:48</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-02-07T18:25:48</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from filem.models import * from agileHub.settings import * import os def set_files_category(file_list): files = [] for f in file_list: f.category = get_file_category(f.name) #f.path = os.path.join(DOWNLOAD_ROOT,"/".join(f.path.split("/")[-2:])) files.append(f) return files def get_file_category(filename): table = {'jpg':['jpg','gif','png',''],\ 'doc':['doc','docx'],\ 'xsl':['xsl','xslx'],\ 'ppt':['ppt','pptx'],\ 'txt':['txt','md'],\ 'txt':['c','pl','py','go','java','jcl','php','js','css','html'],\ 'rar':['rar','zip'] } spices = filename.split(".") if len(spices) > 1: suffix = spices[-1] category = 'Unknown' for key in table.keys(): if suffix in table[key]: category = key break return category else: return 'Unknown'</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40707"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">8,272,107,019,937</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">baf7dc61fa7aa1e69fd5d0cef9544891f65ea77c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">0fa09f5df7540aa6991c836706dd18a922657bb8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/demo.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">40787b4fb31f5964da1707e7a9eed9f5d8a3b976</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">benersuay/MyDataScaler</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/benersuay/MyDataScaler</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">542fb02e236baa8d47bab27da012b983d26b6fc5</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5e5c9af6ac0b1c8ae7010e70118d6d30d3cb2dcc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-19T22:33:04.561644</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-01-07T19:54:18</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-01-07T19:54:18</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/env python # # Bener Suay # December 2013 # <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6604030803141513071f2611160f48030213">[email protected]</a> # # This script demonstrates the usage of MyDataScaler class. # The script is split into two function calls to show the possibility # of calling the scaler in two sessions: training and testing. # # The two function calls could be made in two separate files, and # scaling would work the same way. # # The intended usage of this class is to load a previously saved experiment data, # apply scaling for preprocessing (e.g. for machine learning), and save the data # in different formats. Keeping the scaler parameters in a file makes possible to # apply the same transform to your test data in the future when you need to. # # MyDataScaler depends on the following modules: # # 1) MyLibsvmLogger, and, # 2) MyCSVLogger # from MyDataScaler import * import numpy as np def generate_my_training_data(): return np.array([[1.0, -10.0, 20.0], [2.0, 0.0, 0.0], [-1.0, 10.0, -10.0]]) def generate_my_test_data(): return np.array([[0.0, 7.0, -5.0], [1.0, -2.4, -3.5]]) def process_my_training_data(data): # scale data s = MyDataScaler(0,1) s.data = data # do not scale the first column: # assume the first column has our data label s.scale(False) # save scaled training data in libsvm format s.save_libsvm("scaled_training_data") # save scaled training data in csv format s.save_csv("scaled_training_data") # save scaling parameters s.save_params("scaling_params") def process_my_test_data(data): # load scaling parameters s = MyDataScaler() s.load_params("scaling_params") s.data = data # scale data, do not scale the first column # assume the first column has our data label s.scale(False) # save scaled test data in libsvm format s.save_libsvm("scaled_test_data") # save scaled training data in csv format s.save_csv("scaled_test_data") if __name__ == "__main__": # Part 1: Training trainingData = generate_my_training_data() process_my_training_data(trainingData) # Part 2: Testing testData = generate_my_test_data() process_my_test_data(testData) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40708"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">11,252,814,329,025</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">04f106b452f4aa0e1e1ac45bb65428691a13e7fd</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">d7e8fd5c936138cbf00194d86c906c45778ae97c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/Software/Finger.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b745fb587c249e5511f24b3d1b100e5a7a0c344c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Obijuan/GodFinger</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/Obijuan/GodFinger</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">17d9f4f822884ec5f252a47bc0d9ea654709c317</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5e690386e980d3b31f6195b6e7b113e10d0bb98c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-09-10T22:39:43.574334</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-05-27T11:22:47</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-05-27T11:22:47</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/python # -*- coding: utf-8 -*- #----------------------------------------------------------------- #-- Finger class #-- Juan Gonzalez-Gomez (obijuan). May-2013 #----------------------------------------------------------------- #-- A finger2 is defined as a servo with only 2 positions: up and down #-- It can perform task such as tapping #----------------------------------------------------------------- from Servo import * class Finger(Servo): """Finger class. Controlling a servo in 2 position: up and down""" def __init__(self, sp, dir =0, up = 0, down = 10): """up: Angle for the not tapping pos down: Angle for tapping ttime: Tapping time""" super(Finger, self).__init__(sp, dir) self.up_ang = up self.down_ang = down def up(self): """Going to the upper position (not tapping)""" self.set_pos(self.up_ang) def down(self): """Going to the down position (tapping)""" self.set_pos(self.down_ang) def tap(self, ttime = 0.1): self.down() time.sleep(ttime) self.up() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40709"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">4,509,715,704,843</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">117998a8bce15d827f5231cbebea3fd105d68f72</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">f2cf31aa63edfcdcddabdba1152fb214fa0129f6</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/src/polygons/tests/views/test_create_plan.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b3e5e90a6ce6db3f53b6e973295e38c0046b10cb</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">casperchia/polygons</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/casperchia/polygons</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b68d1736fc5f6b6bb3331aeb967cc83f60e1e097</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e5bd07bb5832e127d092653867c13110256decd2</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-18T18:16:21.344812</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-10-28T23:38:57</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-10-28T23:38:57</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">32,439,842</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from django.test import TestCase from django.core.urlresolvers import reverse from polygons.models.Program_Plan import Program_Plan class Test_create_plan(TestCase): urls = 'comp4920.urls' fixtures = ['Acad_Obj_Group_Type.json', 'Acad_Obj_Group.json', 'Org_Unit_Type.json', 'Org_Unit.json', 'Career.json', 'Degree.json', 'Program.json', 'Program_Group_Member.json', 'Subject_Area.json', 'Subject.json', 'Rule_Type.json', 'Rule.json', 'Program_Rule.json', 'Subject_Group_Member.json', 'Stream.json', 'Stream_Group_Member.json', 'Stream_Rule.json', 'Semester.json', 'Program_Plan.json'] def test_status_code(self): url = reverse('polygons.views.program_details',args=[554]) response = self.client.post(url) plan_count = Program_Plan.objects.count() plan = Program_Plan.objects.get(pk=100) url = reverse('polygons.views.program_plan', args=[plan.id]) print 'Test that visiting the page produces a 200 status code.' response = self.client.get(url) self.assertEqual(response.status_code, 200) print 'Test that a dummy url produces 404.' response = self.client.get(url + '123/') self.assertEqual(response.status_code, 404) print 'Test that a dummy url produces 404.' response = self.client.get(url + 'abc/') self.assertEqual(response.status_code, 404) def test_template(self): plan = Program_Plan.objects.get(pk=100) url = reverse('polygons.views.program_plan', args=[plan.id]) print 'Test that the correct templates are used to render the page.' response = self.client.get(url) self.assertTemplateUsed(response, 'html/program_plan.html') self.assertTemplateNotUsed(response, 'html/home.html') def test_database(self): print 'Test that the database is storing a new program plan' plan_count = Program_Plan.objects.count() url = reverse('polygons.views.program_details',args=[554]) response = self.client.post(url) new_count = Program_Plan.objects.count() self.assertEqual(plan_count + 1, new_count) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40710"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">3,246,995,313,675</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">526c616ba06a9d318fe124e30136e1c7a5cdf91a</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">3c8d3c574c2081b598597a6d9f584944506b5cb6</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/kfiles/migrations/0001_initial.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">bd959872ded70af7434d5db9588ec11688c2e1cd</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "GPL-3.0-only" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">jsayles/kfiles</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/jsayles/kfiles</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">952b990fb9af0e681694474949813cabae83cd91</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">eda0674ddeb8452268b9a3154bd1c7ff884f0ab7</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-03-12T23:16:37.135575</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-11-11T19:48:57</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-11-11T19:48:57</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='File_Upload', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('uploadTS', models.DateTimeField(auto_now_add=True)), ('name', models.CharField(max_length=64)), ('content_type', models.CharField(max_length=64)), ('file', models.FileField(upload_to=b'/Users/jacob/Code/kfiles/data')), ], options={ }, bases=(models.Model,), ), migrations.CreateModel( name='Page_Text', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('page', models.CharField(max_length=128)), ('text_template', models.TextField(null=True, blank=True)), ], options={ }, bases=(models.Model,), ), migrations.CreateModel( name='Project', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('createdTS', models.DateTimeField(auto_now_add=True)), ('name', models.CharField(max_length=200)), ('slug', models.CharField(max_length=60)), ], options={ }, bases=(models.Model,), ), migrations.CreateModel( name='Project_User', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('project', models.ForeignKey(to='kfiles.Project')), ('user', models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True)), ], options={ }, bases=(models.Model,), ), migrations.AddField( model_name='file_upload', name='project', field=models.ForeignKey(to='kfiles.Project'), preserve_default=True, ), migrations.AddField( model_name='file_upload', name='user', field=models.ForeignKey(to=settings.AUTH_USER_MODEL), preserve_default=True, ), ] </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40711"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">14,319,420,979,077</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">673f55b5442d5a0647ca143a3dfe95cdb1801d3a</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">61b3e9caf16cdc2e2c37e2678bc59b06e877ec7a</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/bin/hex2bin</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">40aad8b1f874ecb8bc92a4c5edd67f7458fc5b90</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">branker/dotfiles</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/branker/dotfiles</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a525e2ee0784c169055edc3b03e376578cdf6317</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">213a978b9a85d15a17b1ec9f0f9f79d03826394b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-07-26T00:32:09.233382</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-07-13T16:11:46</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-07-13T16:11:46</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/env python import fileinput import re import string import sys ADDR_RE = re.compile(r'^([0-9a-f]*):?\s*(.*)$', re.IGNORECASE) DUMP_RE = re.compile(r'^((?:[0-9a-f][0-9a-f]\s?)+) (.*)$', re.IGNORECASE) def process_line(line, address=True, dump=True): if address: m = ADDR_RE.match(line) if m: addr, line = m.group(1, 2) if dump: m = DUMP_RE.match(line) if m: line, asciidump = m.group(1, 2) return process_dumpbytes(line) def process_dumpbytes(line): buffer = '' result = '' for c in extract_dumpchars(line): buffer += c if len(buffer) == 2: val = int(buffer, 16) result += chr(val) buffer = '' return result def extract_dumpchars(line): for c in line: if c in string.hexdigits: yield c if __name__ == '__main__': from optparse import OptionParser parser = OptionParser() parser.add_option('-a', '--no-address', dest='address', default=True, action='store_false', help="Don't try to parse a line address header.") parser.add_option('-d', '--no-dump', dest='dump', default=True, action='store_false', help="Don't try to parse an ASCII line dump.") (options, args) = parser.parse_args() for line in fileinput.input(args): bytes = process_line(line, options.address, options.dump) sys.stdout.write(bytes) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,012</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40712"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">18,622,978,228,221</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">84f610d1482d129ea98dddf5bc49b6196726c4df</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7659e22334480d3d361f30f053035f5970f6de3d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/Rebooter/Impl/Ssh/SshSendFailedError.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e1671d0ff9529fcf5bf61d508866bef2f0c7a9bc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "GPL-3.0-or-later" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">sys-git/stb-rebooter</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/sys-git/stb-rebooter</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">f01d375bc969d7380b94160a75fbb4430650f3ae</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ad38ab855c9b60a2ace65d9cac8127ff1e850cab</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-01T06:05:57.654305</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-05-15T13:23:05</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-05-15T13:23:05</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">''' Created on 15 Nov 2012 @author: francis ''' from Rebooter.Core.Errors.SendFailedError import SendFailedError class SshSendFailedError(SendFailedError): pass </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40713"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">18,184,891,532,160</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">6b40fabb35fea52bc0575ec32f07d28b3e975165</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">2d80419ced8bd02f7cece915153b8b36a3cbf938</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/montage.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c05c70d8af15596a0a408f19b7247a5c1d77de20</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">istevens/monkey-montage</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/istevens/monkey-montage</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ea2c197d61bc69c486335ff60cebddb24589cc59</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a3677edaa550f373efb6cf19a0c975791ff633a4</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-06-04T06:53:32.403430</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2010-01-23T04:36:00</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2010-01-23T04:36:00</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">115,674</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">import copy import random from pythonmagickwand.image import Image from pythonmagickwand.wand import LANCZOS_FILTER, TRANSPARENT_COLORSPACE from pythonmagickwand.color import Color, BLACK, YELLOW, TRANSPARENT YELLOW = Color('#ffcc33') m = Image('monkey.png') m.opaque_paint(BLACK, YELLOW, 10) m.scale((500,500)) m.compression_quality = 95 im = Image() im.colorspace = TRANSPARENT_COLORSPACE im.size = (4000, 800) im.format = 'PNG' im.background_color = TRANSPARENT _w, _h = im.size num = range(3000) for i in num: ratio = (i+1.)/len(num) random.seed() _min = int(100*ratio+100) w = random.randint(_min, max(int(400*ratio), _min)) c = copy.copy(m) c.scale((w, w)) c.rotate(random.randint(0, 360), TRANSPARENT) c.modulate(brightness=i*25/len(num) + 75) a, b = 0.5*_h - _h/(10*ratio+3), _h/5 y = abs(min(random.gauss(a, b), _h)) im.composite(c, (random.randint(0-c.size[0], _w), y)) im.scale((1000, 200)) im.quantize(32, TRANSPARENT_COLORSPACE) im.opaque_paint(YELLOW, YELLOW, 10) im.save('out.png') </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,010</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40714"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">14,027,363,193,370</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c291ab16802b62553c8df8b78a6717e20460adf8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">260d80a93e55a0b5bfc9104f8c780886c3c1337d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/Project/config.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b60b2c9e021a4cefd5ec6f8015c8f9a3bb4f38eb</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "MIT" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">nimbus154/OratoricalDecaf</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/nimbus154/OratoricalDecaf</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4c04720faf79daa72446a082637e031968cff95d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">2e1be6eaa257dc14dcc01985eb6efd7d2bf07684</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-19T15:05:35.228433</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-02-27T06:16:46</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-02-27T06:16:57</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># This file contains hardcoded strings and values import jinja2 import os # jinja2 file loading copied from # https://github.com/fRuiApps/cpfthw/blob/master/webapp2/views.py TEMPLATE_DIR = os.path.join(os.path.dirname(__file__), 'templates') templates = jinja2.Environment(loader=jinja2.FileSystemLoader(TEMPLATE_DIR)) # Pages article_post_page="post_article.html" comments_page="comment_list.html" main_page="article_list.html" main_title="Oratorical Decaf" </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40715"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">6,846,177,891,597</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">be9f7d9a2fd66f2b56a23aa9abebafb6693868cc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7f5486c34ea812eb34ce7e7ee43afb1429c0d553</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/ucsc/test/test_db.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">fc1f079582ca0cdb78a9896d68294f920b17f535</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "BSD-2-Clause" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">jcastib/pyucsc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/jcastib/pyucsc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">d6eb62553ab82b36609c8f5ad1d6d7a6eaf2d5af</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e4991c9fcd3b6ce60a6c8530754e3d1e29407933</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-05-27T04:33:37.285297</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-06-18T13:12:07</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-06-18T13:12:07</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from ucsc import create_session, tables from ucsc.model import * def test_table_query(): print tables.__dict__ c = tables.knownGene.count().execute().scalar() print c assert c == 77614L</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,012</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40716"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">19,507,741,473,249</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4a8a99dc2d2a4a3cbbafd1ba97083e300d374e26</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">1e7b216324560c262463ceef0b7644d98ed940f9</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/Scripts/chisel.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">dd1799fef3436cc433153ca62edab51841a7f54d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">rluethy/ToolBelt</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/rluethy/ToolBelt</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a3925366b648835832b434cfcfbfccfe9c8f1205</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">279b696434884f1a70a9fe956afd47dd00570448</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-12-25T16:13:55.077336</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-02-27T23:02:33</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-02-27T23:02:33</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!python __version__ = "Feb. 2013" class ChiselTool: def ProcessCommandLine(self): import optparse parser = optparse.OptionParser() parser.set_description("Convert tab/spaces at the start of lines.") parser.add_option("-o", dest="OutputFilename", help="Specify different name for output file.") parser.add_option("-m", dest="convertMode", default="t2s", help="tab to spaces 't2s' or spaces to tab 's2t' (default = %default)") parser.add_option("-s", dest="size", default=4, type = int, help="number of spaces corresponding to 1 tab (default = %default)") parser.add_option("-q", dest="NoLogo", action="store_true", help="Suppress logo.") parser.remove_option("-h") parser.add_option("-h", dest="help", action="store_true", help="Show help.") parser.set_usage("%prog [options] <text-file>") options, args = parser.parse_args() if (not options.NoLogo): print "Chisel tab/spaces converter. Version", __version__ print "Copyright (c) 2013, John Lyon-Smith." if (options.help): parser.print_help() return False elif (len(args) == 0): print "Error: A text file must be specified" return False else: self.InputFilename = args[0] if (options.OutputFilename is None): self.OutputFilename = self.InputFilename else: self.OutputFilename = options.OutputFilename self.convertMode = options.convertMode self.size = options.size return True def Execute(self): ifile = open(self.InputFilename) fileContents = ifile.readlines() ifile.close() tabs2space = "" for i in range(self.size): tabs2space += " " stringConstant = None ofile = open(self.OutputFilename, "w") for line in fileContents: if (stringConstant is None): if (self.convertMode == "s2t"): i = 0 while (line[i:].startswith(tabs2space)): ofile.write("\t") i += self.size ofile.write(line[i:]) else: for line in fileContents: for i in range(len(line)): if (line[i] != "\t"): ofile.write(line[i:]) break else: ofile.write(tabs2space) if ((line.find('@"'))>=0): cstr = line.replace('""','').replace('@"','') if (cstr.find('"')<0): stringConstant = "C#" else: ofile.write(line) cstr = line.replace('""','') if ((cstr.find('"'))>=0): stringConstant = None ofile.close() if __name__ == '__main__': t = ChiselTool() if (t.ProcessCommandLine()): t.Execute() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40717"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">9,887,014,768,389</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">78235203653a801e23bc1642da7ebb13c0e38a41</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/pardus/playground/ertan/2009/multimedia/graphics/qmotion/actions.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b2d91837e727dbe76cc86a5eac285a1acd0199ae</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">aligulle1/kuller</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/aligulle1/kuller</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">bda0d59ce8400aa3c7ba9c7e19589f27313492f7</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7f98de19be27d7a517fe19a37c814748f7e18ba6</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-20T02:22:09.451356</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-07-23T17:57:58</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-07-23T17:57:58</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2010 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt from pisi.actionsapi import autotools from pisi.actionsapi import shelltools from pisi.actionsapi import pisitools def setup(): pisitools.dosed("qmotion.pro", "lrelease", "lrelease-qt4") shelltools.system("qmake-qt4") def build(): autotools.make() def install(): pisitools.dobin("qmotion") pisitools.insinto("/usr/share/pixmaps", "qmotion.svg") pisitools.insinto("/usr/qt/4/translations", "*.qm") pisitools.dodoc("gpl-3.0.txt") </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40718"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">3,040,836,887,226</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">209eb508d9af7288800dc863bc78fcb58a53044e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">1bf6613e21a5695582a8e6d9aaa643af4a1a5fa8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/src/dartium_tools/overrides_database.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">075b0c65fd7fac258f1abdc6d880a87ea7264b9f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "BSD-3-Clause" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">pqrkchqps/MusicBrowser</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/pqrkchqps/MusicBrowser</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ef5c9603105b4f4508a430d285334667ec3c1445</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">03216439d1cc3dae160f440417fcb557bb72f8e4</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-05-20T05:12:14.141094</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-05-31T02:21:07</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-05-31T02:21:07</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">10,395,498</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/env python # # Copyright 2012 Google Inc. All Rights Reserved. # List of files that are overriden. def makeFilePath(path): return ('src/dartium_tools/overrides/' + path, 'src/' + path) OVERRIDDEN_FILES = [ # User-agent and chrome://version. makeFilePath('chrome/common/chrome_content_client.cc'), makeFilePath('chrome/browser/resources/about_version.html'), makeFilePath('chrome/browser/ui/webui/version_ui.cc'), makeFilePath('chrome/tools/build/mac/verify_order'), # Temporary hack for dartium_builder. makeFilePath('build/all.gyp'), # Temporary hack ro fix Mac build. makeFilePath('build/common.gypi'), ] </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40719"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">5,076,651,361,098</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">19e759dddd0479fec92a1340056254cca3e50950</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">81915b64e7b6dcf1166171f3f5aa512175da56ab</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/py-acqua/trunk/fox-acqua/firmware/versione_py/pyi2c/src/examples/simple.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">718dbb77f3b3bff673551806ac7bdbb2fba4a9ca</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license", "Python-2.0" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">BackupTheBerlios/py-acqua-svn</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/BackupTheBerlios/py-acqua-svn</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">72524df5c50610805e8a27d346e755ad785a2030</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">47cec28fa4043e65900a16f6aa829162d275a22e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-09-22T12:14:05.200170</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2008-03-27T16:42:42</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2008-03-27T16:42:42</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">40,800,000</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#! /usr/bin/env python # # python I2C serial port SDA/SCL mapping # # (C)2006 Patrick Nomblot <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="abdbd2e299e8ebc5c4c6c9c7c4df85c4d9cc">[email protected]</a>> # this is distributed under a free software license, see license.txt import I2C import I2C.sensors # I2C bus on serial com 2 i2cBus = I2C.BusI2C('COM2') # LM75 I2C omponent on this I2C bus, default I2C address sonde = I2C.sensors.LM75('Room temperature', i2cBus) # print Temperature print "T = %02.03f C" % sonde.getTemperature() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,008</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40720"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">9,079,560,879,001</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">f1a4debf998b1aa228e95745bc6a3d19ef6c4c63</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">22a7e337eca6a244205b48e4d06cca67f2b5033a</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/TwistedCode/tc_8/get-poetry.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">69aaa29434b51074d961f82e5c26ec70f23dedcf</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">chen19901225/SimplePyCode</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/chen19901225/SimplePyCode</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">48f373f66e486276ed6603b7d0d8e388bd236a6c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">8276c660e7663688d3d381391a77a50f90e61afa</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-01T19:34:57.697967</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-11-12T10:05:14</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-11-12T10:05:14</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "> import optparse from twisted.internet import defer from twisted.internet import reactor from twisted.internet.defer import DeferredList from twisted.internet.protocol import Protocol, connectionDone, ClientFactory from twisted.protocols.basic import NetstringReceiver import sys __author__ = 'cqh' def parse_args(): usage = """usage: %prog [options] [hostname]:port ... This is the Get Poetry Now! client, Twisted version 8.0 Run it like this: python get-poetry.py xform-port port1 port2 ... If you are in the base directory of the twisted-intro package, you could run it like this: python twisted-client-6/get-poetry.py 10001 10002 10003 to grab poetry from servers on ports 10002, and 10003 and transform it using the server on port 10001. Of course, there need to be appropriate servers listening on those ports for that to work. """ parser = optparse.OptionParser(usage) _, addresses = parser.parse_args() if len(addresses) < 2: print parser.format_help() parser.exit() def parse_address(addr): if ':' not in addr: host = '127.0.0.1' port = addr else: host, port = addr.split(':', 1) if not port.isdigit(): parser.error('Ports must be integers.') return host, int(port) return map(parse_address, addresses) class PoetryClientProtocol(Protocol): poem='' def dataReceived(self, data): self.poem+=data def connectionLost(self, reason=connectionDone): self.poemReceived(self.poem) def poemReceived(self,poem): self.factory.poem_finished(poem) class PoetryClientFactory(ClientFactory): protocol= PoetryClientProtocol def __init__(self,deferred): self.deferred=deferred def poem_finished(self,poem): if self.deferred is not None: d,self.deferred=self.deferred,None d.callback(poem) def clientConnectionFailed(self, connector, reason): if self.deferred is not None: d,self.deferred=self.deferred,None d.errback(reason) class TransformClientProtocol(NetstringReceiver): def connectionMade(self): self.sendRequest(self.factory.xform_name,self.factory.poem) def sendRequest(self,xform_name,poem): self.sendString(xform_name+'.'+poem) def stringReceived(self, recv_str): self.transport.loseConnection() self.poemReceived(recv_str) def poemReceived(self,poem): self.factory.handlePoem(poem) class TransformClientFactory(ClientFactory): protocol = TransformClientProtocol def __init__(self,xform_name,poem): self.xform_name=xform_name self.poem=poem self.deferred=defer.Deferred() def handlePoem(self,poem): d,self.deferred=self.deferred,None d.callback(poem) def clientConnectionLost(self, _, reason): if self.deferred is not None: d,self.deferred=self.deferred,None d.errback(reason) clientConnectionFailed=clientConnectionLost class TransformProxy(object): def __init__(self,host,port): self.host=host self.port=port def xform(self,xform_name,poem): factory=TransformClientFactory(xform_name,poem) reactor.connectTCP(self.host,self.port,factory) return factory.deferred def get_poetry(host,port): d=defer.Deferred() factory=PoetryClientFactory(d) reactor.connectTCP(host,port,factory) return d def poetry_main(): addresses=parse_args() xform_addr=addresses.pop(0) proxy=TransformProxy(*xform_addr) ds=[] poem_list=[] @defer.inlineCallbacks def get_transformed_poem(host,port): try: poem=yield get_poetry(host,port) except Exception,e: print >>sys.stderr,'the poem downalod failed :',e raise try: #print proxy.host,proxy.port #print poem poem=yield proxy.xform('cummingsify',poem) #print poem except Exception: print >>sys.stderr,'Cummingsify failed' defer.returnValue(poem) def got_poem(poem): poem_list.append(poem) if len(poem_list)==len(addresses): for tmp_poem in poem_list: print tmp_poem #print poem for (host,port) in addresses: d=get_transformed_poem(host,port) d.addCallback(got_poem) ds.append(d) dlist=defer.DeferredList(ds,consumeErrors=True) dlist.addCallback(lambda res:reactor.stop()) reactor.run() if __name__=="__main__": poetry_main() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40721"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">15,951,508,563,954</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">0734a22c9ae09f43900d7f61e7aedcd74704645f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a3302fd9387041505ce48d9332a7dadfc7e5ccfe</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/rbnotifyirc/models.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">faebf33ad99f1b1064b6a137659d950596b7ac64</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">tgerdes/rb-notify-irc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/tgerdes/rb-notify-irc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">864ecb67b7bcf590b8f48ef0a6850c20f90ff193</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">690d8ddf4bb12434958fbf0e2a7483a8dcd7c8ca</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-01T19:42:58.328062</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-06-03T21:29:38</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-06-03T21:29:38</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">import logging import re import socket from django.db import models from django.utils.translation import ugettext_lazy as _ from reviewboard.reviews.models import Repository log = logging.getLogger('rbnotifyirc') class IrcConfiguration(models.Model): """ Configuration for an IRC server to connect to. Includes the nick and channels to connect to as well. """ server = models.CharField(_('server'), max_length=255) port = models.IntegerField(_('port'), default=6667) password = models.CharField(_('password'), max_length=128, default=u'', blank=True) use_ssl = models.BooleanField(_('ssl'), default=False) room = models.CharField(_('room'), max_length=255) nick = models.CharField(_('nickname'), default='reviewbot', max_length=255) def __unicode__(self): return u"{0.nick} on irc://{0.server}:{0.port}/{0.room}".format(self) def connect(self): # TODO : support SSL self.socket = socket.create_connection((self.server, int(self.port))) self.read = self.socket.makefile('r') self.write = self.socket.makefile('w', bufsize=0) self.write.write('NICK %s\n' % self.nick) self.write.write('USER %s * * :IRC Bot\n' % (self.nick)) # Read until connected while True: line = self.read.readline() if re.search('00[1-4] reviewbot', line): break def disconnect(self): self.write.write('QUIT\n') while True: line = self.read.readline() if not line: break self.read.close() self.write.close() self.socket.close() del(self.socket) del(self.read) del(self.write) def notify(self, message): for room in self.room.split(','): room = room.strip() if room[0] != '#': room = '#' + room self.write.write('NOTICE {room} :{message}\n'.format( room=room, message=message)) def do_notify(self, message): try: self.connect() self.notify(message) self.disconnect() except socket.error: # For now just ignore any socket error # most commonly 104, reset by peer. pass class NotifyHookManager(models.Manager): def get_by_natural_key(self, hook_id): return self.get(hook_id=hook_id) class NotifyHook(models.Model): """ A named hook that can be connected. """ hook_id = models.CharField(_("hook type"), max_length=128) description = models.CharField(_("description"), max_length=255, default=u"") def natural_key(self): return (hook_id,) def __unicode__(self): return self.description class RepositoryNotification(models.Model): """ Map IRC connections to repositories and Notification Hooks. """ irc_configuration = models.ForeignKey(IrcConfiguration) repository = models.ForeignKey(Repository) hook_set = models.ManyToManyField(NotifyHook, blank=True) def __unicode__(self): return u"({0.repository}): {0.irc_configuration}".format(self) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40722"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">19,662,360,289,300</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">989e660fcd6c923b02051753886dff9f63cf74e5</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">403d1f4acae8edc4ac24bc4830c6f1dababfecaa</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/cs255-assignment-8-bitcity/images/frameHandler.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">680781cd96ffd9270415b67dfb604c5ba77ff21b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">coleary9/RockBrawl</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/coleary9/RockBrawl</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b5539b01670f5aad3c86f245df346b74bc37bdfa</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">1bc7d983481a62ee178ba4774f445e37b16d3b0c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-01T15:55:36.569836</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-04-09T17:49:00</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-04-09T17:49:00</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># BitCity Studios: # Cameron O'Leary <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="adcec2c1c8ccdfd494edc7c5d883c8c9d8">[email protected]</a>> # Steve Griffin <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="354652475c53530702755f5d401b505140">[email protected]</a>> # Jeremy Dolinko <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5f35713b3033363134301f38323e3633713c3032">[email protected]</a>> # Jonathan Rivera <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3a5048534c5f48080b7a50524f145f5e4f">[email protected]</a>> # Michael Shavit <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="25564d44534c51484c464d444049654248444c490b464a48">[email protected]</a>> from pygame import Surface from pygame.transform import flip, rotate from images import imageDict as IMG, gameImage as GI from images import frameLoader as FL from metro import Metro class FrameHandler(object): """Abstract class to represent an image handler.""" def __init__(self, width, height, spriteName): raise Exception("FrameHandler is abstract, don't init it.") def update(self, dt, isAtt, collidedY, direction, shouldBlink, isBlocking): pass def reloadSprite(self): pass def getImage(self, facing): raise Exception("You must implement the getImage method.") class PassiveFrameHandler(FrameHandler): """Handles frame holding of a sprite with only one image.""" def __init__(self, spriteName): if spriteName is None: # Eventually gameObject should compose a drawing component # once we stop using pygame's collisions. # For now we give it a blank surface instead. surf = Surface((0, 0)).convert_alpha() self.visible = False else: surf = IMG.load(spriteName) self.visible = True # List with [1] = right-facing and [-1] = left-facing. self.frames = [None, FL.loadFrame(surf), FL.loadFrame(flip(surf, True, False))] def getImage(self, facing): return self.frames[facing] class RotatingFrameHandler(PassiveFrameHandler): """Handles a passive sprite that rotates over time.""" def __init__(self, spriteName, w, h, facing): self.rotation = 0 super(RotatingFrameHandler, self).__init__(spriteName) self.width = w self.height = h self.facing = facing def update(self, dt): self.rotation -= 2 * dt * self.facing def getImage(self, facing): surf = FL.Frame((self.width, self.height), 0, 0) surf.blit( rotate(self.frames[facing], self.rotation), (0, 0)) return surf class ActiveFrameHandler(FrameHandler): """Handles frame holding and updating of a sprite.""" def __init__( self, width, height, spriteName, numNormFrames=6, width2=75, height2=150, xOffAttL=-25, xOffAttR=0, yOffAtt=-75): self.width = width self.height = height self.numNormFrames = numNormFrames self.width2 = width2 self.height2 = height2 self.xOffAttL = xOffAttL self.xOffAttR = xOffAttR self.yOffAtt = yOffAtt self.blinker = Metro(100, 100) self.spriteSheet = IMG.load(spriteName) self.reloadSprite() self.supervisor = FrameSupervisor(self.images, 1) self.visible = True # Frame index assignments normFramesAbs = numNormFrames / 2 self.ATTACK_FRAME = normFramesAbs + 1 self.BLOCK_FRAME = normFramesAbs self.JUMP_FRAME = 3 self.RUN_FRAME = 2 self.STAND_FRAME = 1 def update(self, dt, attackTime, collidedY, direction, shouldBlink, isBlocking): if shouldBlink: self.visible = self.blinker.tick(dt) else: self.visible = True self.updateSprite(dt, attackTime, collidedY, direction, isBlocking) def updateSprite(self, dt, attackTime, collidedY, direction, isBlocking): if 0 < attackTime < 4 * self.supervisor.frameTime: frameIndex = self.ATTACK_FRAME elif isBlocking: frameIndex = self.BLOCK_FRAME elif collidedY == 0: frameIndex = self.JUMP_FRAME elif not direction == 0: frameIndex = self.RUN_FRAME else: frameIndex = self.STAND_FRAME self.supervisor = makeSupervisor( frameIndex, self.supervisor, self.images) self.supervisor.update(dt) def reloadSprite(self): self.images = FL.loadFrames(self.spriteSheet, self.width, self.height, self.width2, self.height2, self.numNormFrames, self.xOffAttL, self.xOffAttR, self.yOffAtt) def getImage(self, facing): return self.supervisor.getImage(self.images, facing) def resetAnimation(self): self.supervisor.resetAnimation() class FrameSupervisor(object): """Handles advancing the frame according to a set of rules.""" def __init__(self, images, index): self.length = len(images[index]) self.gen = frameGens[index](self.length) # the frame location we are in for our anim self.frame = self.gen.next() self.frameTime = 100 # length of one frame in milliseconds self.metro = Metro(self.frameTime, 0) self.index = index def update(self, dt): if self.metro.tick(dt): self.frame = self.gen.next() def getImage(self, images, facing): return images[self.index * facing][self.frame] def resetAnimation(self): self.gen = frameGens[self.index](self.length) def normalFrameGen(length): # Spit out 0, 1, 2, 3, 0, 1, 2, 3... while True: for x in xrange(length): yield x def jumpFrameGen(length): # Spit out 0, 1, 2, 3, 3, 3, 3, 3... for x in xrange(length): yield x while True: yield x frameGens = [None, normalFrameGen, normalFrameGen, jumpFrameGen, jumpFrameGen, jumpFrameGen, jumpFrameGen] def makeSupervisor(index, currentSupervisor, images): """Factory function to make a frame supervisor object.""" if currentSupervisor.index == index: return currentSupervisor return FrameSupervisor(images, index) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40723"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">6,184,752,930,660</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e61a4413c86ad0f9fb18a458987f7823f3744e0a</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">6a134dc859227247ee0009da1833c452e72ebdb2</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/LabelItem.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">2ee03110714d3b57b9fa569fb8fabc3cb6fba559</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">hetianch/jaabagui</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/hetianch/jaabagui</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">39afad9f4222824c8a47d9cfce7ccf2e92598cc4</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">14fd5c4e5231b6bb0ed8aa307e1890c962223a3b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-09-05T23:17:44.384317</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-11-10T08:18:02</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-11-10T08:18:02</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">24,346,840</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from PyQt5.QtWidgets import (QApplication, QMainWindow, QGraphicsItem, QGraphicsScene, QGraphicsView,QStyle) from PyQt5.QtGui import (QBrush, QConicalGradient, QLinearGradient, QPainter, QPainterPath, QPalette, QPen, QPixmap, QPolygon, QRadialGradient) from PyQt5.QtCore import QPoint, QRect, QSize, Qt import random import numpy as np from numpy import genfromtxt class LabelItem(QGraphicsItem): def __init__(self,parent=None): super(TargetView, self).__init__() self.setZValue(1) self.trajectory= genfromtxt('data.csv',delimiter=',') #self.xyscale = 1 self.currFrame= False self.isManualCalled= False self.idx_to_draw= np.empty([0,0]) def setXYScale (self, oriWidth, oriHeight,newWidth,newHeight): #self.oriWidth = oriWidth #self.oriHeight = oriHeight #self.newWidth = newWidth #self.newHeight = nnewHeight self.transX = int(round(oriWidth/newWidth *1000))/1000.0 self.transY = int(round(oriHeight/newHeight*1000))/1000.0 def getFrame(self,frame): self.currFrame=frame def getPoint (self, x, y): return QPoint(x /self.transX, y/self.transY) # Create Fly triangle def getFly (self, point1, point2, point3): return QPolygon([ point1, point2, point3, point1 ]) def paint (self, painter, option, widget): if (self.isManualCalled): self.isManualCalled = False # print 'currFrame',self.currFrame self.idx_to_draw = np.where(self.trajectory[:,0]==self.currFrame)[0] # print 'data_to_draw', self.idx_to_draw for i in self.idx_to_draw: x = self.trajectory[i,1] y = self.trajectory[i,2] # print 'currFrame',self.currFrame # print 'data_to_draw', self.idx_to_draw # print 'x',x # print 'y',y fly = self.getFly( self.getPoint(x, y), self.getPoint(x+50, y+50), self.getPoint(x-50, y+50) ) #print fly painter.drawPolyline(fly); </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40724"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">13,340,168,422,391</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">9d6be28a84e16885a78fe4adc5a17710bf32354d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">27c6524fdef0121155af1d2448921fa696b3a996</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/woost/tests/__init__.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e99668e0ccbe362e21f0187805b35145ede666b8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "LicenseRef-scancode-philippe-de-muyter", "AGPL-3.0-or-later", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "AGPL-3.0-only" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">marticongost/woost</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/marticongost/woost</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">88346c281d2c16ef8afd2b8b3d67083feaa4ad41</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">0c1f32fbe8afd2dab76233a95a3ab9b862c4b9e9</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-08-16T15:39:13.635004</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-02-11T16:00:55</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-02-11T16:00:55</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">215,518,503</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#-*- coding: utf-8 -*- u""" Test suite for the Woost CMS. @author: Martí Congost @contact: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4b262a393f22652824252c24383f0b3c232a2f3865282426">[email protected]</a> @organization: Whads/Accent SL @since: February 2009 """ </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40725"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">12,635,793,797,205</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4f257aa0a24d59d92ebfec7847b41192d08082c0</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">cbc30f75b04541bdffe8e20a5ac995fe88be9083</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/src/plonede.content/plonede/content/browser/teaser.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">93f5cf4a2742ae0240e0893f287fe90c53dea93f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">acsr/pysv.org</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/acsr/pysv.org</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">8f0594cff7b7ad0b61cae5e3a7a7e19fbb6954e8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">8fa7fc5f0acd5edbb9f3a4d2b21a237579d81548</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-22T13:30:31.448132</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-02-02T21:08:16</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-02-02T21:08:16</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from Acquisition import aq_inner from Products.Five.browser import BrowserView from zope.browserpage.viewpagetemplatefile import ViewPageTemplateFile from Products.CMFCore.utils import getToolByName from plone.memoize.instance import memoize from plonede.content.interfaces import ITeaser class TeaserView(BrowserView): __call__ = ViewPageTemplateFile('teaser.pt') </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40726"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,224,793,077,816</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e34a00641741b99388c65a3f43fca7d1ad127ea8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">65a817c94d206f607deca2bfab2e79af595216d1</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/product/templatetags/verbose_name_tags.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">3008469984f2d916d8d84384d2468b5423e0fcbc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">shestera/berloga_old</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/shestera/berloga_old</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b2b9b85be8bdee97ed21e1f19e1529de1f7b9999</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">be638ebc32fd362f9231f4339f896f45d9c09c14</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-05-28T21:35:29.910687</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-06-24T20:46:57</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-06-24T20:46:57</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from django import template register = template.Library() ''' http://mirobetm.blogspot.ru/2012/06/django-verbosename-in-your-template.html ''' def get_field_verbose_name(instance, arg): return instance._meta.get_field(arg).verbose_name register.filter('field_verbose_name', get_field_verbose_name) def get_queryset_field_verbose_name(queryset, arg): return queryset.model._meta.get_field(arg).verbose_name register.filter('queryset_field_verbose_name', get_queryset_field_verbose_name)</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40727"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">18,751,827,250,193</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">9954e7fd3fa63e9e71996921da0eec4ed6294faa</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">70fbab161e0e90bb89243e84cdbe2018ad283c27</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/pylms/__init__.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a55e78af466d8f65ea9d1e67faf81e8afc618a98</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">meus/PyLMS</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/meus/PyLMS</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5d26b0dcb83c56b7b972064536a6bb0a62d433e0</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7cea69833922abe0813ef68832fb4fd9b15de95e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-21T17:39:16.845690</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-11-08T12:25:20</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-11-08T12:25:20</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">91,979,011</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">true</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2017-05-21T18:32:41</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2017-05-21T18:32:41</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2017-03-15T09:26:00</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-04-13T20:50:29</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1,064</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/env python def encode(text, charset): return text.encode(charset) def decode(bytes, charset): return bytes.decode(charset) def quote(text, charset): try: import urllib.parse return urllib.parse.quote(text, encoding=charset) except ImportError: import urllib return urllib.quote(text) def unquote(text, charset): try: import urllib.parse return urllib.parse.unquote(text, encoding=scharset) except ImportError: import urllib return urllib.unquote(text)</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40728"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">7,516,192,786,835</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">f15be3c4ae0b48828370edf483ed5f1930bb8634</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">f7bc355bcba745b1de647696f3dba6bf1c03ad6f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/bin/sim_acquisition.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">6f3ad7f9a887923769c008e5e88227dbcc76348a</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">teiche/asi</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/teiche/asi</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">637c0d809dcaeb85a2349536e1422303aa241407</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">2aeb9259b6b3a9fb4a775b5d8bb812e2f1ce737b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-18T14:11:09.181563</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-12-12T23:47:10</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-12-12T23:47:10</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from SimpleXMLRPCServer import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler import asi from asi.utils.xmlrpc import RequestHandler from asi.acquisition.simulator import AcquisitionCameraSimulator asi.log.init_logging("acquisition.log") server = SimpleXMLRPCServer(("localhost", 7277), requestHandler=RequestHandler, allow_none=True, logRequests=False) server.timeout = .001 server.register_introspection_functions() acquiscam = AcquisitionCameraSimulator() acquiscam.register_xmlrpc_functions(server) while 1: server.handle_request() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40729"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">3,891,240,382,015</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">987f7d590e5d34802db19d7edd742d87ae574732</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">56db4fc23f9bc53a6210d01030f37ac37cf59ff6</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/test_with_pytest.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ba03ba40dbb6a4c715f82531760166cbebae7597</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "MIT" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">MadPUG/Introduction-to-Testing-in-Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/MadPUG/Introduction-to-Testing-in-Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">30b514153622b68d49092c5c4c304b5f82a9d0dd</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">68c72cbb7e784a27166e22eede8a75c35ab0456b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-04-06T03:55:52.282864</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-03-14T19:41:31</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-03-14T19:41:31</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">17,550,352</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from example_module import (file_iterator, variadic_addition, variadic_multiplication) import pytest import random def test_file_iterator_strips_newlines(): """ Assert the file iterator strips \n from yielded lines. """ for line in file_iterator('example_module.py'): assert line.endswith('\n') is False def test_file_iterator_removes_leading_whitespace(): """ Assert the file iterator strips whitespace from the start of yielded lines. """ for line in file_iterator('example_module.py'): assert line.startswith(' ') is False def test_file_iterator_removes_all_whitespace(): """ Assert the file iterator strips whitespace from both ends of yielded lines. """ for line in file_iterator('example_module.py'): assert line == line.strip('\n') @pytest.fixture def x(): return random.randint(1, 100) def test_variadic_addition_identity(x): """ Assert that variadic_addition will calculate the sum of one argument. """ assert variadic_addition(x) == x </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40730"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">10,651,518,937,943</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b7b0f2ce8a5edb10ec4beeaaa62b61ea66d765f7</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5607d01a44f30ef5de2400c4e49ef80f03b95ae0</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/rosalind/Armory/GenBankInfo/GenBank.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a1b472000afbdf757faf5e025cf7cba58db6c460</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">mikegloudemans/rosalind</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/mikegloudemans/rosalind</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c66fce31f2c2c0d7e79c450dccbb38edecc73c5b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e45285f11ca9f132c27cddfe0ea02ecdb6751afa</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-02T08:56:36.366117</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-12-31T04:50:58</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-12-31T04:50:58</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">''' Created on Mar 7, 2013 @author: Mike ''' from Bio import Entrez if __name__ == '__main__': organism = "Dirphia" startDate = "2007/10/08" endDate= "2012/07/30" Entrez.email = "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="deb3b7bdb6bfbbb2f0b9b2b1abbabbb3bfb0ad9ebaabb5bbf0bbbaab">[email protected]</a>" query = "((\"" + startDate + "\"[Publication Date] : \"" + endDate + "\"[Publication Date]))" query += " AND \"" + organism + "\"[Organism]" handle = Entrez.esearch(db="nucleotide", term=query) record = Entrez.read(handle) print record['Count']</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40731"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">13,950,053,810,204</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7c5c4cafbe06f0b48111d80e32b53aa100c30eeb</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a51c986b7a848d592cb8fb57bed4221421fac455</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/firehose-importer/firehose-importer.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">93f228c69b0e2156c69816badc83a5b910880f94</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">sunlei99/python-vector-reader</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/sunlei99/python-vector-reader</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a5baf82e9db903cc789cb12e99e873155612250f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">f8dff107bc447a0fa392f54c79dc3244a3dd2478</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-16T18:23:18.969110</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-08-18T03:20:45</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-08-18T03:20:45</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">__author__ = 'sunlei 2014.08.12' import json import requests import logging import threading import redis from __init__ import config class Importer(threading.Thread): def __init__(self, thread_name='importer'): self.__doc__ = 'Import data from firehose and send it to redis' # for multi-thread threading.Thread.__init__(self, name=thread_name) # init url and header self.url = config['url'] + '?appid=' + config['appid'] + '&filter=' + config['filter'] # current location of firehose if config['loc'] is not None: self.loc = config['loc'] else: self.loc = -1 # init logger logging.basicConfig(filename='import.log', format='%(asctime)s - %(threadName)s- %(funcName)s: %(message)s') self.logger = logging.getLogger('import_log') self.logger.setLevel(logging.INFO) #white list self.white_list = config['white_list'] # redis client self.rediscli = [redis.Redis(host=config['redis_servers'][i][0], port=config['redis_servers'][i][1], db=0) for i in range(0, len(config['redis_servers']))] # for debug keep-alive connection after 10mins self.printd = 0 def __del__(self): pass # whether current uid in white list # return True if currend uid in white list or white list is not enabled def in_white_list(self, uid): if not config['white_list_enable']: return True elif id in self.white_list: return True return False # parse json object and send redis command def parse_send(self, json_obj): value = 0 if self.loc != -1 and self.printd < 5: self.logger.info( str(json_obj['id']) + 'created at' + json_obj['text']['status']['created_at'] + ' and self.loc:' + str( self.loc)) self.printd += 1 # execute redis commands for weibo if json_obj['text']['type'] == 'status': for cli in self.rediscli: try: if json_obj['text']['event'] == 'add' or json_obj['text']['event'] == 'update': cli.vadd(*[ str(json_obj['text']['status']['user']['id']) + '.' + config['schema_name'][0], json_obj['text']['status']['mid'], value ]) elif json_obj['text']['event'] == 'delete': cli.vrem(*[ str(json_obj['text']['status']['user']['id']) + '.' + config['schema_name'][0], json_obj['text']['status']['mid'] ]) except Exception as err: self.logger.info("Vector commands failed: " + err.message) # noinspection PyBroadException def connect(self): # add loc to url if self.loc != -1: self.logger.info('start with loc' + str(self.loc)) prepped = requests.Request('GET', self.url + '&loc=' + str(self.loc)).prepare() else: prepped = requests.Request('GET', self.url).prepare() # session, default keep-alive session = requests.Session() # response of 'GET' request resp = session.send(prepped, stream=True) #for debug # config schema add vsl # config column add vsl c1 8 self.printd = 0 try: if resp.status_code == requests.codes.ok: self.logger.info('start import') # keep reading for line in resp.iter_lines(): if line: json_obj = json.loads(line) try: if self.in_white_list(json_obj['text']['status']['user']['id']): # refresh firehose location parameter self.loc = json_obj['id'] self.parse_send(json_obj) except Exception as err: self.logger.info("error getting uid") except: self.logger.info("error!") def run(self): while True: self.connect() im = Importer() im.start()</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40732"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">6,871,947,710,505</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ad4700243437832ac0bbe433e656b98360ae4223</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">1bd2190ff0bf003c18fa269c4eb2f641917b55cd</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/mult_test.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">1201de0c69044eddbfa0ef6dc1f1d0001c4728fa</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ambidextrousTx/EfficientPython</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/ambidextrousTx/EfficientPython</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">fed46ea1c563847fd0ba5abef74f58bd25417b5c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">dcac50501ed232cb0f3d5968e74e15aa087bb0ca</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-10T22:00:53.779221</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-10-16T21:47:05</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-10-16T21:47:05</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">""" Test how much time multiplication takes progressively """ from time import time from random import random from numpy import array, dot class Computer(object): def __init__(self): pass def compute(self, vector1, vector2, dim, times, with_numpy): if with_numpy: v1 = array(vector1.vector) v2 = array(vector2.vector) start_time = time() for i in xrange(0, times): if with_numpy: accumulator = dot(v1, v2) else: accumulator = 1 for j in range(1, len(vector1.vector)): accumulator += vector1.vector[j] * vector2.vector[j] end_time = time() elapsed_time = end_time - start_time self.display(dim, times, elapsed_time) def display(self, dim, times, elapsed_time): print 'Multiplying 2 {0}-d vectors {1} times took {2} seconds'.format(dim, times, elapsed_time) class Vector(object): def __init__(self, dim): self.vector = [] for i in xrange(0, dim): self.vector.append(random()) print '{0}-d vector constructed'.format(len(self.vector)) def compute_repeated(computer, vector1, vector2, with_numpy): if with_numpy: print '\nnumpy.dot\n' else: print '\npure Python\n' for i in xrange(0, 300001, 50000): computer.compute(vector1, vector2, len(vector1.vector), i, with_numpy) def main(): vector1 = Vector(100) vector2 = Vector(100) computer = Computer() compute_repeated(computer, vector1, vector2, True) compute_repeated(computer, vector1, vector2, False) if __name__ == '__main__': main() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,012</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40733"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">16,406,775,075,109</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7073339c49ba5093750b310a926fd73459cc30bb</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a3b306df800059a5b74975793251a28b8a5f49c7</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/Graphs/Libraries/nicola_thelib/nicola_cyt.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">6068733fb146035c030eb53654b9052464cd38d6</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">giacomo21/Image-analysis</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/giacomo21/Image-analysis</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">dc17ba2b6eb53f48963fad931568576fda4e1349</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ea8bafa073de5090bd8f83fb4f5ca16669d0211f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-09-06T21:42:13.530256</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-07-22T09:35:56</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-07-22T09:35:56</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">11,384,784</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">import matplotlib.pyplot as plt import numpy as np import matplotlib.cm as cm import scipy.stats cmap = cm.Greys_r import loader import processing_no_otsu import output NT_data = [ ['/home/nicola/Desktop/Project/Alisi/LX-2/NT/01_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/NT/01_LITAF.tif'], ['/home/nicola/Desktop/Project/Alisi/LX-2/NT/02_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/NT/02_LITAF.tif'], ['/home/nicola/Desktop/Project/Alisi/LX-2/NT/03_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/NT/03_LITAF.tif'], ['/home/nicola/Desktop/Project/Alisi/LX-2/NT/04_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/NT/04_LITAF.tif']] LPS100_data = [ ['/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS100/01_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS100/01_LITAF.tif'], ['/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS100/02_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS100/02_LITAF.tif'], ['/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS100/03_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS100/03_LITAF.tif'], ['/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS100/04_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS100/04_LITAF.tif']] LPS100SB_data = [ ['/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS100+SB/01_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS100+SB/01_LITAF.tif'], ['/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS100+SB/02_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS100+SB/02_LITAF.tif'], ['/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS100+SB/03_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS100+SB/03_LITAF.tif'], ['/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS100+SB/04_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS100+SB/04_LITAF.tif']] LPS500_data = [ ['/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS500/01_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS500/01_LITAF.tif'], ['/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS500/02_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS500/02_LITAF.tif'], ['/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS500/03_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS500/03_LITAF.tif'], ['/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS500/04_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS500/04_LITAF.tif']] LPS500SB_data = [ ['/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS500+SB/01_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS500+SB/01_LITAF.tif'], ['/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS500+SB/02_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS500+SB/02_LITAF.tif'], ['/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS500+SB/03_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS500+SB/03_LITAF.tif'], ['/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS500+SB/04_nucleus.tif', '/home/nicola/Desktop/Project/Alisi/LX-2/2hLPS500+SB/04_LITAF.tif']] NT = processing_no_otsu.get_molecule_distribution(NT_data) LPS100 = processing_no_otsu.get_molecule_distribution(LPS100_data) LPS100SB = processing_no_otsu.get_molecule_distribution(LPS100SB_data) LPS500 = processing_no_otsu.get_molecule_distribution(LPS500_data) LPS500SB = processing_no_otsu.get_molecule_distribution(LPS500SB_data) cyt_intensity_NT = [] for i in NT['slices_intensity']: cyt_intensity_NT.append(i[2]) cyt_intensity_LPS100 = [] for i in LPS100['slices_intensity']: cyt_intensity_LPS100.append(i[2]) cyt_intensity_LPS100SB = [] for i in LPS100SB['slices_intensity']: cyt_intensity_LPS100SB.append(i[2]) cyt_intensity_LPS500 = [] for i in LPS500['slices_intensity']: cyt_intensity_LPS500.append(i[2]) cyt_intensity_LPS500SB = [] for i in LPS500SB['slices_intensity']: cyt_intensity_LPS500SB.append(i[2]) output.histogram(cyt_intensity_NT, labels = ['Slice1', 'Slice2', 'Slice3', 'Slice4'], outfile = 'no_otsu_hist_cyt_NT.png', log = True, a = 'step') output.histogram(cyt_intensity_LPS100, labels = ['Slice1', 'Slice2', 'Slice3', 'Slice4'], outfile = 'no_otsu_hist_cyt_LPS100.png', log = True, a = 'step') output.histogram(cyt_intensity_LPS100SB, labels = ['Slice1', 'Slice2', 'Slice3', 'Slice4'], outfile = 'no_otsu_hist_cyt_LPS100SB.png', log = True, a = 'step') output.histogram(cyt_intensity_LPS500, labels = ['Slice1', 'Slice2', 'Slice3', 'Slice4'], outfile = 'no_otsu_hist_cyt_LPS500.png', log = True, a = 'step') output.histogram(cyt_intensity_LPS500SB, labels = ['Slice1', 'Slice2', 'Slice3', 'Slice4'], outfile = 'no_otsu_hist_cyt_LPS500SB.png', log = True, a = 'step') #BP_cyt_NT = output.boxplot(cyt_intensity_NT, labels = ['Slice1', 'Slice2', 'Slice3', 'Slice4'], outfile = 'BP_cyt_NT.png', xlab = 'Slices', ylab = 'Intensity') #BP_cyt_LPS100 = output.boxplot(cyt_intensity_LPS100, labels = ['Slice1', 'Slice2', 'Slice3', 'Slice4'], outfile = 'BP_cyt_LPS100.png', xlab = 'Slices', ylab = 'Intensity') #BP_cyt_LPS100SB = output.boxplot(cyt_intensity_LPS100SB, labels = ['Slice1', 'Slice2', 'Slice3', 'Slice4'], outfile = 'BP_cyt_LPS100+SB.png', xlab = 'Slices', ylab = 'Intensity') #BP_cyt_LPS500 = output.boxplot(cyt_intensity_LPS500, labels = ['Slice1', 'Slice2', 'Slice3', 'Slice4'], outfile = 'BP_cyt_LPS500.png', xlab = 'Slices', ylab = 'Intensity') #BP_cyt_LPS500SB = output.boxplot(cyt_intensity_LPS500SB, labels = ['Slice1', 'Slice2', 'Slice3', 'Slice4'], outfile = 'BP_cyt_LPS500+SB.png', xlab = 'Slices', ylab = 'Intensity') #plt.hist(merged_intensity[0], bins=255, color='r', alpha=0.5) #plt.hist(merged_intensity[1], bins=255, color='g', alpha=0.5) #plt.hist(merged_intensity[2], bins=255, color='b', alpha=0.5) #plt.show() #plt.hist(slices_1_intensity[0][0], bins=255, color='r', alpha=0.5) #plt.hist(slices_1_intensity[0][1], bins=255, color='g', alpha=0.5) #plt.hist(slices_1_intensity[0][2], bins=255, color='b', alpha=0.5) #plt.show() #scipy.stats.ranksums(LPS500res[0][0], NAres[2][0]) # import matplotlib.pyplot as plt # import matplotlib.cm as cm # cmap = cm.Greys_r # import loader # import processing # import output # # input: # # input files (list of lists, condition1:[slice1:[img1, img2, ...], slice2:[img3, img4, ...]]) # # input params: condition1 files, condition2 files, roi channel index, molecule channel index # # # ''' # Compares 2 conditions # Assume slices are described by N images. nucleus/molecule concentration (or any molecule to be considered) # ''' # slices1_data = load.load_slices(slices1) # slices_1_gray = [] # for i in slices_1: # slices_1_gray.append([]) # slices_1_gray[len(slices_1_gray)-1].append(load.select_channel(i[0], channel = 1)) # slices_1_gray[len(slices_1_gray)-1].append(load.select_channel(i[1], channel = 0)) # slices2_data = load.load_slices(slices2) # slice1_distrib = [] # for i in slices1_data: # slice1_distrib.append(analysis.get_intensity(i[0], i[1])) # slice2_distrib = [] # for i in slices2_data: # slice2_distrib.append(analysis.litafnucleus(i[0], i[1])) # return(slice1_distrib, slice2_distrib) # def analyze_slices(slices1, slices2): # slices1_data = load.load_slices(slices1) # slices_1_gray = [] # for i in slices_1: # slices_1_gray.append([]) # slices_1_gray[len(slices_1_gray)-1].append(load.select_channel(i[0], channel = 1)) # slices_1_gray[len(slices_1_gray)-1].append(load.select_channel(i[1], channel = 0)) # slices2_data = load.load_slices(slices2) # slice1_distrib = [] # for i in slices1_data: # slice1_distrib.append(analysis.get_intensity(i[0], i[1])) # slice2_distrib = [] # for i in slices2_data: # slice2_distrib.append(analysis.litafnucleus(i[0], i[1])) # return(slice1_distrib, slice2_distrib) # # # AC = [ # ['data/AC_HSC_CTRL/01_nucleus.tif','data/AC_HSC_CTRL/01_LITAF.tif'], # ['data/AC_HSC_CTRL/02_nucleus.tif','data/AC_HSC_CTRL/02_LITAF.tif'], # ['data/AC_HSC_CTRL/03_nucleus.tif','data/AC_HSC_CTRL/03_LITAF.tif'], # ['data/AC_HSC_CTRL/04_nucleus.tif','data/AC_HSC_CTRL/04_LITAF.tif'], # ['data/AC_HSC_CTRL/05_nucleus.tif','data/AC_HSC_CTRL/05_LITAF.tif'], # ['data/AC_HSC_CTRL/06_nucleus.tif','data/AC_HSC_CTRL/06_LITAF.tif'] # ] #NA = [ # ['data/NA_HSC_CTRL/01_nucleus.tif','data/NA_HSC_CTRL/01_LITAF.tif'], # ['data/NA_HSC_CTRL/02_nucleus.tif','data/NA_HSC_CTRL/02_LITAF.tif'], # ['data/NA_HSC_CTRL/03_nucleus.tif','data/NA_HSC_CTRL/03_LITAF.tif'], # ['data/NA_HSC_CTRL/04_nucleus.tif','data/NA_HSC_CTRL/04_LITAF.tif'], # ['data/NA_HSC_CTRL/05_nucleus.tif','data/NA_HSC_CTRL/05_LITAF.tif'], # ['data/NA_HSC_CTRL/06_nucleus.tif','data/NA_HSC_CTRL/06_LITAF.tif'] # ] # intensity = analyze_slices(AC, NA) # plt.boxplot([intensity[0][0],intensity[1][0]]) # output_file = 'test.png' # plt.savefig(output_file) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40734"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">15,032,385,557,253</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">0b8cbb056f23e9a02af88c3c33ed5fc4996a556d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">731058c462b66707e6938c25e565f18ca63dd0fb</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/mariage/management/commands/importarticles.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">8545fd2cbb3dc82fcc01c105638af964f6b02a92</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">emmanuelguerin/mariage-m-s</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/emmanuelguerin/mariage-m-s</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a3d4f7f08118fe03e2da6aa0abad712cd136a038</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b62e13c79c3d2f69d1eff0ce9fb2653cd4522cb6</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-02-07T09:40:31.566164</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-08-14T19:52:50</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-08-14T19:52:50</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from django.core.management.base import BaseCommand, CommandError from django.core.files import File from mariage.models import Article import json import os.path class Command(BaseCommand): args = '<json_file>' help = 'Imports the json file and associated images' def handle(self, *args, **options): f = open(args[0], "r") content = json.load(f) dir = os.path.dirname(args[0]) for art in content: self.stdout.write('Article "%s"' % art["titre"]) article = Article() article.titre = art["titre"] article.nombre = art["nombre"] article.description = art["description"] article.prix = art["prix"] photoFilename = os.path.join(dir, art["photo"]) img = open(photoFilename) imgFile = File(img) article.photo.save(os.path.basename(photoFilename), imgFile) article.save() self.stdout.write('Finished')</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40735"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">3,255,585,248,634</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c7f18d10bfee6af10a51121fcc1a5d6bcf09735b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">62ab086f31a445f2adb7c604671cffd89403e7ca</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/common.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7fa6962c0a2fdc6aa6019d71a93e78e5a90c1245</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">nalbeza/pasteque_mauve</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/nalbeza/pasteque_mauve</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4c57746ac809a01ca1dd8708b8fb6a319cad5838</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5c51fac2a7c443c59876212cdfefa7e037a483ed</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-05-27T20:10:56.968899</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2010-06-27T08:28:32</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2010-06-27T08:28:32</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">import os import signal import time def exists(path): try: file(path) return True except: return False def kill(pid): try: os.kill(pid, signal.SIGKILL) return True except: return False def delete(path): try: os.remove(path) return True except: return False def log(conf, msg): open(conf['logfile'], "aw").write(time.strftime('%d/%m/%y %H:%M:%S : ',time.localtime()) + msg + "\n") </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,010</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40736"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">6,012,954,242,107</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">1c18c0ab7b415aa304aa25ee3f0f23ae3c61910f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">03f9a5396450f2d56a47b229898363a2737b0ec9</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/mrdomino/reduce_one_shard.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a95533e37dc7106eddbfdd68c6657cabbbca9570</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "MIT" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">knighton/mapreduce</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/knighton/mapreduce</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a1b03a21ca23c133cfcd14e70ef942dbc83866ba</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">3349fe2da0d01400b464aebb6ee239fb962d8def</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-03-30T09:26:49.940843</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-09-30T00:14:56</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-09-30T00:14:56</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">22,360,372</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-09-11T17:35:36</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-07-28T22:39:32</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-09-03T22:57:56</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-09-11T17:35:36</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">617</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">import json from os.path import join as path_join from functools import partial from contextlib import nested as nested_context from mrdomino import logger, get_instance, protocol def reduce(shard, args): # find the reduce function. job = get_instance(args) step = job.get_step(args.step_idx) reduce_func = step.reducer # default to work_dir if output_dir is not set work_dir = args.work_dir output_dir = args.output_dir if output_dir is None: output_dir = work_dir # process each (key, value) pair. out_fn = path_join(output_dir, args.output_prefix + '.%d' % shard) logger.info("reducer {}: output -> {}".format(shard, out_fn)) assert args.input_prefix is not None in_f = path_join(work_dir, args.input_prefix + '.%d' % shard) logger.info("reducer {}: input <- {}".format(shard, in_f)) input_stream = partial(open, in_f, 'r') if args.step_idx >= 0: if job.INTERNAL_PROTOCOL == protocol.JSONProtocol: unpack_tuple = False elif job.INTERNAL_PROTOCOL == protocol.JSONValueProtocol: unpack_tuple = True else: raise ValueError("unsupported protocol: {}" .format(job.INTERNAL_PROTOCOL)) else: raise ValueError("step_idx={} cannot be negative" .format(args.step_idx)) count_written = 0 count_seen = 0 with nested_context(input_stream(), open(out_fn, 'w')) as (in_fh, out_fh): last_key = None values = [] for line in in_fh: count_seen += 1 key, value = json.loads(line) if key == last_key: # extend previous run values.append(value) else: # end previous run if values: for kv in reduce_func(last_key, values): k, v = kv if unpack_tuple else (None, kv) count_written += 1 out_fh.write(json.dumps(v) + '\n') # start new run last_key = key values = [value] # dump any remaining values if values: for kv in reduce_func(last_key, values): k, v = kv if unpack_tuple else (None, kv) count_written += 1 out_fh.write(json.dumps(v) + '\n') counters = job._counters counters.incr("reducer", "seen", count_seen) counters.incr("reducer", "written", count_written) # write out the counters to file. f = path_join(output_dir, 'reduce.counters.%d' % shard) logger.info("reducer {}: counters -> {}".format(shard, f)) with open(f, 'w') as fh: fh.write(counters.serialize()) # finally note that we are done. f = path_join(output_dir, 'reduce.done.%d' % shard) logger.info("reducer {}: done -> {}".format(shard, f)) with open(f, 'w') as fh: fh.write('') </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40737"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1,743,756,751,421</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">3772cf4304e2bd597abe0d8e2d3b369139c53944</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">03004ddabb30b203cc010d73a05a004e3837bc71</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/caching/backends/memcached.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">0ef77a4ed6ab6ef2ac183f9ec5b6b84f24c91ce2</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "BSD-2-Clause" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">twidi/django-cache-machine</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/twidi/django-cache-machine</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">d52c30efd517bbb285f4d955cd48add390411137</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">47f12361433378c4e8a0efef46d7ffb26e67ae1b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-18T19:37:30.105798</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2011-03-07T17:51:27</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2011-03-07T17:51:27</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">689,503</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from django.core.cache.backends import memcached from django.utils.encoding import smart_str # Add infinite timeout support to the memcached backend. class CacheClass(memcached.CacheClass): def add(self, key, value, timeout=None): if timeout is None: timeout = self.default_timeout return self._cache.add(smart_str(key), value, timeout) def set(self, key, value, timeout=None): if timeout is None: timeout = self.default_timeout return self._cache.set(smart_str(key), value, timeout) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,011</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40738"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">163,208,805,040</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">313caf94a8e0596017dd7e151d5c37b4bfb46793</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">334f49aa89a67f2cb456bed0971e33ee743b0380</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/src/asimov/magi/models/__init__.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">8d4d8e99b1d0d5ca2c57552127355c7138034e7c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">hbrls/asimov</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/hbrls/asimov</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">702b4b22f015eca119858ee3a931e3bab2ce99ad</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">fa8e30171debf262fa3c6e03f4c01ef7368b62f6</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-09-11T13:25:20.524874</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-11-29T13:47:35</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-12-05T16:32:06</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from stockprice import StockPrice </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,012</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40739"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">13,331,578,505,058</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">bf4955b9fc2c5fff4d580d9980031f84bbc6df25</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">1b32271049b2e32c16cfe6b0e2b10c621c03b638</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/euler008.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">75fd71a21a4bf29a403b5a1d9d5b563549097b55</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "GPL-2.0-only" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">blakebye/project-euler</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/blakebye/project-euler</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b240dabd0b53b3c3a40fdd976c85ab4302feee9c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ef26223547ad0497ba8a1314397f5322f2f7a01b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-22T18:28:20.384087</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-10-03T09:58:16</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-10-03T09:58:16</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/env python """ This module solves Project Euler #8 """ def greatest_product(value, length): """ Given a value and a length, finds the greatest possible product made out of consecutive digits out of the value of given length. """ high = 1 for char in range(len(str(value)) - length + 1): product = 1 for digit in range(char, char + length): product *= int(str(value)[digit]) high = max(high, product) return high def main(): """ Solves the problem. """ test_value = "73167176531330624919225119674426574742355349194934" \ "96983520312774506326239578318016984801869478851843" \ "85861560789112949495459501737958331952853208805511" \ "12540698747158523863050715693290963295227443043557" \ "66896648950445244523161731856403098711121722383113" \ "62229893423380308135336276614282806444486645238749" \ "30358907296290491560440772390713810515859307960866" \ "70172427121883998797908792274921901699720888093776" \ "65727333001053367881220235421809751254540594752243" \ "52584907711670556013604839586446706324415722155397" \ "53697817977846174064955149290862569321978468622482" \ "83972241375657056057490261407972968652414535100474" \ "82166370484403199890008895243450658541227588666881" \ "16427171479924442928230863465674813919123162824586" \ "17866458359124566529476545682848912883142607690042" \ "24219022671055626321111109370544217506941658960408" \ "07198403850962455444362981230987879927244284909188" \ "84580156166097919133875499200524063689912560717606" \ "05886116467109405077541002256983155200055935729725" \ "71636269561882670428252483600823257530420752963450" test_length = 13 return greatest_product(test_value, test_length) if __name__ == "__main__": print main() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40740"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">18,992,345,404,941</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b454fce9092b7f13f357e3d0c028a41f80009dd9</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">3d19e1a316de4d6d96471c64332fff7acfaf1308</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/Users/D/dvogel/gasp_python_scraper_10.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">91671e5e55b47a341ee14e2e5bf2a3e823eb14d0</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">BerilBBJ/scraperwiki-scraper-vault</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/BerilBBJ/scraperwiki-scraper-vault</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">65ea6a943cc348a9caf3782b900b36446f7e137d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-12-02T23:55:58.481210</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-09-30T17:02:59</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-09-30T17:02:59</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">import scraperwiki gasp_helper = scraperwiki.utils.swimport("gasp_helper") gasp = gasp_helper.GaspHelper("58706f6c46e34bbca5b2818b4d4a81ee", "B001230") import re import lxml.html from cgi import parse_qsl from StringIO import StringIO def just_digits(s): return re.sub('[^0-9]+', '', s) def scrape_frontpage(): frontpage = scraperwiki.scrape("http://tammybaldwin.house.gov/") dom = lxml.html.fromstring(frontpage) for number in ["one", "two", "three"]: addrtext = dom.cssselect("#offices-%s p" % number)[0] links = addrtext.cssselect('a') for link in links: addrtext.remove(link) lines = [ln.strip() for ln in StringIO(addrtext.text_content()).readlines()] assert len(lines) == 4 assert lines[-1].endswith(' Fax') address = lines[0] (city, state, zip) = re.split('[, ]+', lines[1], 2) phone = just_digits(lines[2]) fax = just_digits(lines[3][:-4]) gasp.add_office(address, city, state, zip, phone, fax) def scrape_biography(): biopage = scraperwiki.scrape("http://tammybaldwin.house.gov/about/biography.shtml") dom = lxml.html.fromstring(biopage) biotext = '\n\n'.join([p.text_content().strip() for p in dom.cssselect('div.grid_9 > div.holder-interior-body > p')]) gasp.add_biography(biotext) def scrape_issue_page(title, page): dom = lxml.html.fromstring(page) container = dom.cssselect('div.grid_9 > div.holder-interior-body')[0] container.remove(container.cssselect('div.breadcrumb')[0]) container.remove(container.cssselect('div.boxeeRC50')[0]) for hr in container.cssselect('div.hr'): container.remove(hr) container.remove(container.cssselect('div.toggle')[0]) container.remove(container.cssselect('h5.indepth')[0]) issuetext = '\n\n'.join([p.text_content().strip() for p in container.getchildren() if not isinstance(p, lxml.html.HtmlComment)]) gasp.add_issue(title, issuetext) print title print repr(issuetext) def scrape_issues(): listingpage = scraperwiki.scrape("http://tammybaldwin.house.gov/issues/") dom = lxml.html.fromstring(listingpage) dom.make_links_absolute('http://tammybaldwin.house.gov/') links = dom.cssselect('div.grid_9 > div.holder-interior-body > h4 > a') for link in links: if 'href' in link.attrib and link.attrib['href']: page = scraperwiki.scrape(link.attrib['href']) scrape_issue_page(link.text, page) def scrape_flickr(): photospage = scraperwiki.scrape("http://tammybaldwin.house.gov/media/photos.shtml") dom = lxml.html.fromstring(photospage) flashvars = dom.cssselect('object > param[name="flashvars"]')[0] gasp.add_flickr(dict(parse_qsl(flashvars.attrib['value'])).get('page_show_url')) scrape_frontpage() scrape_biography() scrape_issues() scrape_flickr() # TODO: # YouTube # Twitter # Facebook # Blog post -- entire archive or just RSS feed? # News # Press releases # Event? gasp.finish() import scraperwiki gasp_helper = scraperwiki.utils.swimport("gasp_helper") gasp = gasp_helper.GaspHelper("58706f6c46e34bbca5b2818b4d4a81ee", "B001230") import re import lxml.html from cgi import parse_qsl from StringIO import StringIO def just_digits(s): return re.sub('[^0-9]+', '', s) def scrape_frontpage(): frontpage = scraperwiki.scrape("http://tammybaldwin.house.gov/") dom = lxml.html.fromstring(frontpage) for number in ["one", "two", "three"]: addrtext = dom.cssselect("#offices-%s p" % number)[0] links = addrtext.cssselect('a') for link in links: addrtext.remove(link) lines = [ln.strip() for ln in StringIO(addrtext.text_content()).readlines()] assert len(lines) == 4 assert lines[-1].endswith(' Fax') address = lines[0] (city, state, zip) = re.split('[, ]+', lines[1], 2) phone = just_digits(lines[2]) fax = just_digits(lines[3][:-4]) gasp.add_office(address, city, state, zip, phone, fax) def scrape_biography(): biopage = scraperwiki.scrape("http://tammybaldwin.house.gov/about/biography.shtml") dom = lxml.html.fromstring(biopage) biotext = '\n\n'.join([p.text_content().strip() for p in dom.cssselect('div.grid_9 > div.holder-interior-body > p')]) gasp.add_biography(biotext) def scrape_issue_page(title, page): dom = lxml.html.fromstring(page) container = dom.cssselect('div.grid_9 > div.holder-interior-body')[0] container.remove(container.cssselect('div.breadcrumb')[0]) container.remove(container.cssselect('div.boxeeRC50')[0]) for hr in container.cssselect('div.hr'): container.remove(hr) container.remove(container.cssselect('div.toggle')[0]) container.remove(container.cssselect('h5.indepth')[0]) issuetext = '\n\n'.join([p.text_content().strip() for p in container.getchildren() if not isinstance(p, lxml.html.HtmlComment)]) gasp.add_issue(title, issuetext) print title print repr(issuetext) def scrape_issues(): listingpage = scraperwiki.scrape("http://tammybaldwin.house.gov/issues/") dom = lxml.html.fromstring(listingpage) dom.make_links_absolute('http://tammybaldwin.house.gov/') links = dom.cssselect('div.grid_9 > div.holder-interior-body > h4 > a') for link in links: if 'href' in link.attrib and link.attrib['href']: page = scraperwiki.scrape(link.attrib['href']) scrape_issue_page(link.text, page) def scrape_flickr(): photospage = scraperwiki.scrape("http://tammybaldwin.house.gov/media/photos.shtml") dom = lxml.html.fromstring(photospage) flashvars = dom.cssselect('object > param[name="flashvars"]')[0] gasp.add_flickr(dict(parse_qsl(flashvars.attrib['value'])).get('page_show_url')) scrape_frontpage() scrape_biography() scrape_issues() scrape_flickr() # TODO: # YouTube # Twitter # Facebook # Blog post -- entire archive or just RSS feed? # News # Press releases # Event? gasp.finish() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40741"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">16,269,336,146,247</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">0fef7cf7c7cce694b4de6a9153137e2f2aef93ab</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">78cddf467f59722616464ae8e3a4e43549fee880</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/fuzzy_modeling/tests/models/test_system_model.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5ff694dfee8b4d17af682fb321e5d21f98c301e3</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">XorgX304/cloudfuzzy</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/XorgX304/cloudfuzzy</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c486bfab6e791fd7803096f0a59265bc8972b07a</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5f834814fa28b68213c114f1c1b34d5c0df9475d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-05-29T09:43:09.974611</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-09-20T15:53:17</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-09-20T15:53:17</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># -*- coding: utf-8 -*- import inspect import mock from django.test import TestCase from fuzzy_modeling.tests.utils import ResetMock from fuzzy_modeling.models.systems import SystemModel from fuzzy.System import System class SystemModelTest(TestCase, ResetMock): def setUp(self): # self.aluno = mommy.make_one(Aluno) # from fuzzy_modeling.models.systems import SystemModel as SystemModelOriginal # import pdb; pdb.set_trace() # reset_mock(SystemModel,'inputvariablemodel_set') # reset_mock(SystemModel,'outputvariablemodel_set') # reset_mock(SystemModel,'rulemodel_set') pass def tearDown(self): """And kill it when done""" self.reset_all_pre_mocks(SystemModel) def _named_and_pyfuzzymixin_mock(self, name): """ mock a variable or to be an object that has attr name and a get_pyfuzzy that returns this name """ var = mock.Mock() var.name = name var.get_pyfuzzy = lambda systme=None: name return var def _mock_systemModel(self): self.system_description = "System description" self.system = SystemModel(description=self.system_description) self.input_variable_mock = [ self._named_and_pyfuzzymixin_mock("iv%d" % i) for i in xrange(1,2) ] self.output_variable_mock = [ self._named_and_pyfuzzymixin_mock("ov%d" % i) for i in xrange(1,2) ] self.rules_mock = [ self._named_and_pyfuzzymixin_mock("r%d" % i) for i in xrange(1,2) ] # mocking inputvariablemodel_set # inputvariablemodel_set = lambda : None inputvariablemodel_set = mock.Mock() inputvariablemodel_set.all = lambda : self.input_variable_mock self.set_pre_mock(SystemModel,'inputvariablemodel_set') SystemModel.inputvariablemodel_set = inputvariablemodel_set # mocking outputvariablemodel_set outputvariablemodel_set = mock.Mock() outputvariablemodel_set.all = lambda : self.output_variable_mock self.set_pre_mock(SystemModel,'outputvariablemodel_set') SystemModel.outputvariablemodel_set = outputvariablemodel_set # mocking rulemodel_set rulemodel_set = mock.Mock() rulemodel_set.all = lambda : self.rules_mock self.set_pre_mock(SystemModel,'rulemodel_set') SystemModel.rulemodel_set = rulemodel_set return self.system def test_system_get_pyfuzzy(self): " shoud return the correct corresponding pyfuzzy object " new_system = self._mock_systemModel() new_pyfuzzy_system = new_system.get_pyfuzzy() # the expected pyfuzzy system pyfuzzy_system_expected = System(self.system_description) variable_dict = { var.name : var.get_pyfuzzy() for var in self.input_variable_mock + self.output_variable_mock } pyfuzzy_system_expected.variables = variable_dict rules_dict = { rule.name : rule.get_pyfuzzy() for rule in self.rules_mock } pyfuzzy_system_expected.rules = rules_dict self.assertEquals(pyfuzzy_system_expected.description, new_pyfuzzy_system.description) self.assertDictEqual(pyfuzzy_system_expected.variables, new_pyfuzzy_system.variables) self.assertDictEqual(pyfuzzy_system_expected.rules, new_pyfuzzy_system.rules) @classmethod def _createSystem(cls): import fuzzy.System system = fuzzy.System.System(description= """This fuzzy system is to control the inverted pendulum into an upright position as well as at the position X=0. It also is used to demonstrate some features of pyfuzzy. This is the reason, it uses different fuzzy norm in normally symmetrical rules.""") from fuzzy.norm.AlgebraicProduct import AlgebraicProduct from fuzzy.norm.AlgebraicSum import AlgebraicSum from fuzzy.fuzzify.Plain import Plain from fuzzy.defuzzify.COG import COG # set defuzzification method and default norms INF = AlgebraicProduct() ACC = AlgebraicSum() COM = AlgebraicSum() CER = AlgebraicProduct() COG = COG(INF=INF,ACC=ACC,failsafe = 0., segment_size=0.5) from fuzzy.InputVariable import InputVariable from fuzzy.OutputVariable import OutputVariable from fuzzy.Adjective import Adjective from fuzzy.set.Polygon import Polygon angle = InputVariable(fuzzify=Plain(),description='angle',min=0.,max=360.,unit='degrees') system.variables['Phi'] = angle angle.adjectives['up_more_right'] = Adjective(Polygon([(0.,0.),(30.,1.),(60.,0.)])) angle.adjectives['up_right'] = Adjective(Polygon([(30.,0.),(60.,1.),(90.,0.)])) angle.adjectives['up'] = Adjective(Polygon([(60.,0.),(90.,1.),(120.,0.)])) angle.adjectives['up_left'] = Adjective(Polygon([(90.,0.),(120.,1.),(150.,0.)])) angle.adjectives['up_more_left'] = Adjective(Polygon([(120.,0.),(150.,1.),(180.,0.)])) angle.adjectives['down_more_left'] = Adjective(Polygon([(180.,0.),(210.,1.),(240.,0.)])) angle.adjectives['down_left'] = Adjective(Polygon([(210.,0.),(240.,1.),(270.,0.)])) angle.adjectives['down'] = Adjective(Polygon([(240.,0.),(270.,1.),(300.,0.)])) angle.adjectives['down_right'] = Adjective(Polygon([(270.,0.),(300.,1.),(330.,0.)])) angle.adjectives['down_more_right'] = Adjective(Polygon([(300.,0.),(330.,1.),(360.,0.)])) angle_velocity = InputVariable(fuzzify=Plain(),description='angle velocity',min=-600.,max=600.,unit='degrees per second') system.variables['dPhi_dT'] = angle_velocity angle_velocity.adjectives['cw_fast'] = Adjective(Polygon([(-600.,1.),(-300.,0.)])) angle_velocity.adjectives['cw_slow'] = Adjective(Polygon([(-600.,0.),(-300.,1.),(0.,0.)])) angle_velocity.adjectives['stop'] = Adjective(Polygon([(-300.,0.),(0.,1.),(300.,0.)])) angle_velocity.adjectives['ccw_slow'] = Adjective(Polygon([(0.,0.),(300.,1.),(600.,0.)])) angle_velocity.adjectives['ccw_fast'] = Adjective(Polygon([(300.,0.),(600.,1.)])) position = InputVariable(fuzzify=Plain(),description='position',min=-20.,max=20.,unit='meter') system.variables['X'] = position position.adjectives['left_far'] = Adjective(Polygon([(-20.,1.),(-10.,0.)])) position.adjectives['left_near'] = Adjective(Polygon([(-20.,0.),(-5.,1.),(0.,0.)])) position.adjectives['stop'] = Adjective(Polygon([(-5.,0.),(0.,1.),(5.,0.)])) position.adjectives['right_near'] = Adjective(Polygon([(0.,0.),(5.,1.),(20.,0.)])) position.adjectives['right_far'] = Adjective(Polygon([(10.,0.),(20.,1.)])) velocity = InputVariable(fuzzify=Plain(),description='velocity',min=-10.,max=10.,unit='meter per second') system.variables['dX_dT'] = velocity velocity.adjectives['left_fast'] = Adjective(Polygon([(-10.,1.),(-5.,0.)])) velocity.adjectives['left_slow'] = Adjective(Polygon([(-10.,0.),(-2.,1.),(0.,0.)])) velocity.adjectives['stop'] = Adjective(Polygon([(-2.,0.),(0.,1.),(2.,0.)])) velocity.adjectives['right_slow'] = Adjective(Polygon([(0.,0.),(2.,1.),(10.,0.)])) velocity.adjectives['right_fast'] = Adjective(Polygon([(5.,0.),(10.,1.)])) acceleration = OutputVariable(defuzzify=COG,description='acceleration',min=-50.,max=50.,unit='meter per second^2') system.variables['a'] = acceleration acceleration.adjectives['left_fast'] = a_left_fast = Adjective(Polygon([(-50.,0.),(-20.,1.),(-10.,0.)]),COM=COM) acceleration.adjectives['left_slow'] = a_left_slow = Adjective(Polygon([(-20.,0.),(-10.,1.),(0.,0.)]),COM=COM) acceleration.adjectives['stop'] = a_stop = Adjective(Polygon([(-10.,0.),(0.,1.),(10.,0.)]),COM=COM) acceleration.adjectives['right_slow'] = a_right_slow = Adjective(Polygon([(0.,0.),(10.,1.),(20.,0.)]),COM=COM) acceleration.adjectives['right_fast'] = a_right_fast = Adjective(Polygon([(10.,0.),(20.,1.),(50.,0.)]),COM=COM) from fuzzy.Rule import Rule from fuzzy.norm.Max import Max #from fuzzy.norm.Min import Min #from fuzzy.norm.BoundedDifference import BoundedDifference #from fuzzy.norm.DrasticSum import DrasticSum from fuzzy.norm.EinsteinSum import EinsteinSum from fuzzy.norm.DombiUnion import DombiUnion from fuzzy.operator.Compound import Compound from fuzzy.operator.Input import Input from fuzzy.operator.Not import Not system.rules['stop'] = Rule( adjective=a_stop, # it gets its value from here operator=Compound( Max(), Compound( AlgebraicProduct(), Input(system.variables["Phi"].adjectives["up"]), Input(system.variables["dPhi_dT"].adjectives["stop"]) ), Compound( AlgebraicProduct(), Input(system.variables["Phi"].adjectives["up_right"]), Input(system.variables["dPhi_dT"].adjectives["ccw_slow"]) ), Compound( AlgebraicProduct(), Input(system.variables["Phi"].adjectives["up_left"]), Input(system.variables["dPhi_dT"].adjectives["cw_slow"]) ) ), CER=CER ) system.rules['tilts right'] = Rule( adjective=a_right_slow, # it gets its value from here operator=Compound( AlgebraicProduct(), Not( Compound( AlgebraicProduct(), Compound( AlgebraicSum(), Input(system.variables["X"].adjectives["left_near"]), Input(system.variables["X"].adjectives["left_far"]) ), Compound( EinsteinSum(), Input(system.variables["dX_dT"].adjectives["left_slow"]), Input(system.variables["dX_dT"].adjectives["left_fast"]) ) ), ), Input(system.variables["Phi"].adjectives["up_right"]) ), CER=CER ) system.rules['tilts left'] = Rule( adjective=a_left_slow, # it gets its value from here operator=Compound( AlgebraicProduct(), Not( Compound( AlgebraicProduct(), Compound( AlgebraicSum(), Input(system.variables["X"].adjectives["right_near"]), Input(system.variables["X"].adjectives["right_far"]) ), Compound( DombiUnion(0.25), Input(system.variables["dX_dT"].adjectives["right_slow"]), Input(system.variables["dX_dT"].adjectives["right_fast"]) ) ), ), Input(system.variables["Phi"].adjectives["up_left"]) ), CER=CER ) system.rules['far right'] = Rule( adjective=a_right_fast, # it gets its value from here operator=Input(system.variables["Phi"].adjectives["up_more_right"]), CER=CER ) system.rules['far left'] = Rule( adjective=a_left_fast, # it gets its value from here operator=Input(system.variables["Phi"].adjectives["up_more_left"]), CER=CER ) system.rules['accelerate cw if down'] = Rule( adjective=a_right_slow, # it gets its value from here operator=Compound( AlgebraicProduct(), Input(system.variables["Phi"].adjectives["down"]), Compound( AlgebraicProduct(), Input(system.variables["dPhi_dT"].adjectives["cw_slow"]), Input(system.variables["dPhi_dT"].adjectives["cw_slow"]), ) ), CER=CER ) system.rules['accelerate ccw if down'] = Rule( adjective=a_left_slow, # it gets its value from here operator=Compound( AlgebraicProduct(), Input(system.variables["Phi"].adjectives["down"]), Compound( AlgebraicProduct(), Input(system.variables["dPhi_dT"].adjectives["ccw_slow"]), Input(system.variables["dPhi_dT"].adjectives["ccw_slow"]), ) ), CER=CER ) return system def test_system_from_pyfuzzy(self): " shoud return the correct corresponding Model for the pyfuzzy object " pyfuzzy_system_expected = self._createSystem() new_pyfuzzy_system = SystemModel.from_pyfuzzy(pyfuzzy_system_expected).get_pyfuzzy() self._test_new_vs_expected_fuzzy_sysem(new_pyfuzzy_system, pyfuzzy_system_expected) def _test_new_vs_expected_fuzzy_sysem(self, new_pyfuzzy_system, pyfuzzy_system_expected): import math input_dict = {} input_dict["X"] = 0.0 #: position [m] input_dict["dX_dT"] = 0.0 #: velocity [m/s] input_dict["Phi"] = math.radians(45.0) #: angle [rad] input_dict["dPhi_dT"] = math.radians(0.0) #: angle velocity [rad/s] i_dict1 = input_dict.copy() i_dict2 = input_dict.copy() output_dict1 = { 'a' : 0.0 #: acceleration [m/s²] } output_dict2 = { 'a' : 0.0 #: acceleration [m/s²] } pyfuzzy_system_expected.fuzzify(i_dict1) pyfuzzy_system_expected.inference() pyfuzzy_system_expected.defuzzify(output_dict1) new_pyfuzzy_system.fuzzify(i_dict2) new_pyfuzzy_system.inference() new_pyfuzzy_system.defuzzify(output_dict2) for var_name, var in pyfuzzy_system_expected.variables.items(): new_var = new_pyfuzzy_system.variables[var_name] self.assertIsInstance(new_var, var.__class__) self.assertEquals(new_var.description, var.description) self.assertEquals(new_var.min, var.min) self.assertEquals(new_var.max, var.max) self.assertEquals(new_var.unit, var.unit) for adj_name, adj in var.adjectives.items(): new_adj = var.adjectives[adj_name] self._test_adj(adj, new_adj) #: is input if hasattr(var, 'fuzzify'): self._test_fuzzify(var.fuzzify, new_var.fuzzify) #: output else: self._test_defuzzify(var.defuzzify, new_var.defuzzify) # import pdb; pdb.set_trace() var_value = var.getValue() new_var_value = new_var.getValue() # if var_value != new_var_value: self.assertEquals(new_var_value, var_value) for rule_name, rule in pyfuzzy_system_expected.rules.items(): new_rule = new_pyfuzzy_system.rules[rule_name] self._test_rule(rule, new_rule) pyfuzzy_system_expected.calculate(i_dict1, output_dict1) new_pyfuzzy_system.calculate(i_dict2, output_dict2) self.assertEquals(output_dict1['a'], output_dict2['a']) def _test_rules_adj_in_out_adjs(self, system): "test if all the rules's adj are the same instance of an output adj" outputs_adjs = [] for var_name, var in system.variables.items(): #: is output if not hasattr(var, 'fuzzify'): for adj_name, adj in var.adjectives.items(): outputs_adjs.append(adj) for rule_name, rule in system.rules.items(): self.assertIn(rule.adjective, outputs_adjs) def _test_adj(self, adj, new_adj): " test only a given adjective " self.assertIsInstance(new_adj, adj.__class__) self._test_set(adj.set, new_adj.set) if adj.COM is not None and new_adj.COM is not None: self._test_norm(adj.COM, new_adj.COM) membership = adj.getMembership() new_membership = new_adj.getMembership() # if membership != new_membership: # import pdb; pdb.set_trace() self.assertEquals( membership, new_membership, msg="%s != %s in %s" % (membership, new_membership, adj) ) def _test_set(self, set, new_set): " test only a given set " self.assertIsInstance(new_set, set.__class__) params = [] try: for arg in inspect.getargspec(set.__init__).args: if arg != 'self': params.append(arg) # will raise this exception when the given type don't implement a __init__ function # (never overrided the object.__init__) except TypeError: pass for param_name in params: arg = getattr(set, param_name) new_arg = getattr(new_set, param_name) self.assertEquals(new_arg, arg) cog = None new_cog = None try: cog = set.getCOG() except Exception, e: # self.assertRaises(Exception, new_set.getCOG) self.assertRaisesMessage(Exception, e.message, new_set.getCOG) else: new_cog = new_set.getCOG() self.assertEquals(new_cog, cog) self.assertEquals(new_set.points, set.points) def _test_norm(self, norm, new_norm): " test only a given norm " self.assertIsInstance(new_norm, norm.__class__) params = [] try: for arg in inspect.getargspec(norm.__init__).args: if arg != 'self': params.append(arg) # will raise this exception when the given type don't implement a __init__ function # (never overrided the object.__init__) except TypeError: pass for param_name in params: arg = getattr(norm, param_name) new_arg = getattr(new_norm, param_name) self.assertEquals(new_arg, arg) self.assertEquals(new_norm.UNKNOWN, norm.UNKNOWN) self.assertEquals(new_norm.T_NORM, norm.T_NORM) self.assertEquals(new_norm.S_NORM, norm.S_NORM) def _test_fuzzify(self, fuzzify, new_fuzzify): " test only a given fuzzify " self.assertIsInstance(new_fuzzify, fuzzify.__class__) def _test_defuzzify(self, defuzzify, new_defuzzify): " test only a given fuzzify " self.assertIsInstance(new_defuzzify, defuzzify.__class__) params = [] try: for arg in inspect.getargspec(defuzzify.__init__).args: if arg != 'self' and arg != 'INF' and arg != 'ACC': params.append(arg) # will raise this exception when the given type don't implement a __init__ function # (never overrided the object.__init__) except TypeError: pass for param_name in params: arg = getattr(defuzzify, param_name) new_arg = getattr(new_defuzzify, param_name) self.assertEquals(new_arg, arg) self._test_norm(defuzzify.INF, new_defuzzify.INF) self._test_norm(defuzzify._INF, new_defuzzify._INF) self._test_norm(defuzzify.ACC, new_defuzzify.ACC) self._test_norm(defuzzify._ACC, new_defuzzify._ACC) def _test_rule(self, rule, new_rule): "test only a given rule" self.assertIsInstance(new_rule, rule.__class__) self.assertEquals(rule.certainty, new_rule.certainty) self._test_adj(rule.adjective, new_rule.adjective) self._test_norm(rule.CER, new_rule.CER) self._test_norm(rule.CER, new_rule.CER) self._test_operator(rule.operator, new_rule.operator) def _test_operator(self, operator, new_operator): "test only a given rule" self.assertIsInstance(new_operator, operator.__class__) if operator.__class__.__name__ == 'Compound': self._test_norm(operator.norm, new_operator.norm) for i_inputs in xrange(0, len(operator.inputs)): inp = operator.inputs[i_inputs] new_inp = new_operator.inputs[i_inputs] self._test_operator(inp, new_inp) elif operator.__class__.__name__ == 'Const': self.assertEquals(new_operator.value, operator.value) elif operator.__class__.__name__ == 'Input': self._test_adj(operator.adjective, new_operator.adjective) elif operator.__class__.__name__ == 'Not': self._test_operator(operator.input, new_operator.input) op_call = operator() new_op_call = new_operator() self.assertEquals( op_call, new_op_call, msg="%s != %s in %s" % (op_call, new_op_call, operator) ) def test_set_only(self): " should return the correct outout when only changing the set to a SetModel in th System " from fuzzy_modeling.models import AdjectiveModel pyfuzzy_system_expected = self._createSystem() new_pyfuzzy_system = self._createSystem() SystemModel.from_pyfuzzy(pyfuzzy_system_expected).get_pyfuzzy() from fuzzy.norm.AlgebraicSum import AlgebraicSum from fuzzy.Adjective import Adjective from fuzzy.set.Polygon import Polygon COM = AlgebraicSum() a_stop = Adjective(Polygon([(-10., 0.), (0., 1.), (10., 0.)]), COM=COM) a_stop.name = 'stop' new_a_stop = AdjectiveModel.from_pyfuzzy(a_stop).get_pyfuzzy() new_pyfuzzy_system.variables['a'].adjectives['stop'] = new_a_stop self._test_new_vs_expected_fuzzy_sysem(new_pyfuzzy_system, pyfuzzy_system_expected) def test_output_variable_only(self): " should return the correct outout when only changing the outputvar to a OutputVariableModel in th System " from fuzzy_modeling.models import OutputVariableModel from fuzzy.norm.AlgebraicSum import AlgebraicSum from fuzzy.norm.AlgebraicProduct import AlgebraicProduct from fuzzy.Adjective import Adjective from fuzzy.set.Polygon import Polygon from fuzzy.defuzzify.COG import COG from fuzzy.OutputVariable import OutputVariable pyfuzzy_system_expected = self._createSystem() new_pyfuzzy_system = self._createSystem() INF = AlgebraicProduct() ACC = AlgebraicSum() COM = AlgebraicSum() COG = COG(INF=INF, ACC=ACC, failsafe=0., segment_size=0.5) acceleration = OutputVariable( defuzzify=COG, description='acceleration', min=-50., max=50., unit='meter per second^2') acceleration.adjectives['left_fast'] = a_left_fast = Adjective(Polygon([(-50.,0.),(-20.,1.),(-10.,0.)]),COM=COM) acceleration.adjectives['left_slow'] = a_left_slow = Adjective(Polygon([(-20.,0.),(-10.,1.),(0.,0.)]),COM=COM) acceleration.adjectives['stop'] = a_stop = Adjective(Polygon([(-10.,0.),(0.,1.),(10.,0.)]),COM=COM) acceleration.adjectives['right_slow'] = a_right_slow = Adjective(Polygon([(0.,0.),(10.,1.),(20.,0.)]),COM=COM) acceleration.adjectives['right_fast'] = a_right_fast = Adjective(Polygon([(10.,0.),(20.,1.),(50.,0.)]),COM=COM) acceleration.name = 'a' new_acceleration = OutputVariableModel.from_pyfuzzy(acceleration).get_pyfuzzy() new_pyfuzzy_system.variables['a'] = acceleration import math input_dict = {} input_dict["X"] = 0.0 #: position [m] input_dict["dX_dT"] = 0.0 #: velocity [m/s] input_dict["Phi"] = math.radians(45.0) #: angle [rad] input_dict["dPhi_dT"] = math.radians(0.0) #: angle velocity [rad/s] i_dict1 = input_dict.copy() i_dict2 = input_dict.copy() output_dict1 = { 'a' : 0.0 #: acceleration [m/s²] } output_dict2 = { 'a' : 0.0 #: acceleration [m/s²] } pyfuzzy_system_expected.fuzzify(i_dict1) pyfuzzy_system_expected.inference() pyfuzzy_system_expected.defuzzify(output_dict1) new_pyfuzzy_system.fuzzify(i_dict2) new_pyfuzzy_system.inference() new_pyfuzzy_system.defuzzify(output_dict2) pyfuzzy_system_expected.calculate(i_dict1, output_dict1) new_pyfuzzy_system.calculate(i_dict2, output_dict2) self.assertNotEquals(output_dict1['a'], output_dict2['a']) def test_output_variable_changing_one_sets_only(self): " should return the correct output when changing all the sets to the new instance of same value " from fuzzy.norm.AlgebraicSum import AlgebraicSum from fuzzy.norm.AlgebraicProduct import AlgebraicProduct from fuzzy.Adjective import Adjective from fuzzy.set.Polygon import Polygon from fuzzy.defuzzify.COG import COG pyfuzzy_system_expected = self._createSystem() new_pyfuzzy_system = self._createSystem() INF = AlgebraicProduct() ACC = AlgebraicSum() COM = AlgebraicSum() COG = COG(INF=INF, ACC=ACC, failsafe=0., segment_size=0.5) acceleration = new_pyfuzzy_system.variables['a'] acceleration.adjectives['right_fast'] = a_right_fast = Adjective(Polygon([(10.,0.),(20.,1.),(50.,0.)]),COM=COM) new_pyfuzzy_system.variables['a'] = acceleration import math input_dict = {} input_dict["X"] = 0.0 #: position [m] input_dict["dX_dT"] = 0.0 #: velocity [m/s] input_dict["Phi"] = math.radians(45.0) #: angle [rad] input_dict["dPhi_dT"] = math.radians(0.0) #: angle velocity [rad/s] i_dict1 = input_dict.copy() i_dict2 = input_dict.copy() output_dict1 = { 'a' : 0.0 #: acceleration [m/s²] } output_dict2 = { 'a' : 0.0 #: acceleration [m/s²] } pyfuzzy_system_expected.fuzzify(i_dict1) pyfuzzy_system_expected.inference() pyfuzzy_system_expected.defuzzify(output_dict1) new_pyfuzzy_system.fuzzify(i_dict2) new_pyfuzzy_system.inference() new_pyfuzzy_system.defuzzify(output_dict2) pyfuzzy_system_expected.calculate(i_dict1, output_dict1) new_pyfuzzy_system.calculate(i_dict2, output_dict2) self.assertNotEquals(output_dict1['a'], output_dict2['a']) def test_output_variable_changing_one_set_and_rule(self): " should return the correct output when changing all the sets to the new instance of same value, and changing the corresponding rule " from fuzzy_modeling.models import OutputVariableModel from fuzzy.norm.AlgebraicSum import AlgebraicSum from fuzzy.norm.AlgebraicProduct import AlgebraicProduct from fuzzy.Adjective import Adjective from fuzzy.set.Polygon import Polygon from fuzzy.defuzzify.COG import COG pyfuzzy_system_expected = self._createSystem() new_pyfuzzy_system = self._createSystem() INF = AlgebraicProduct() ACC = AlgebraicSum() COM = AlgebraicSum() COG = COG(INF=INF, ACC=ACC, failsafe=0., segment_size=0.5) acceleration = new_pyfuzzy_system.variables['a'] acceleration.adjectives['right_fast'] = a_right_fast = Adjective(Polygon([(10.,0.),(20.,1.),(50.,0.)]),COM=COM) new_pyfuzzy_system.rules['far right'].adjective = a_right_fast import math input_dict = {} input_dict["X"] = 0.0 #: position [m] input_dict["dX_dT"] = 0.0 #: velocity [m/s] input_dict["Phi"] = math.radians(45.0) #: angle [rad] input_dict["dPhi_dT"] = math.radians(0.0) #: angle velocity [rad/s] i_dict1 = input_dict.copy() i_dict2 = input_dict.copy() output_dict1 = { 'a' : 0.0 #: acceleration [m/s²] } output_dict2 = { 'a' : 0.0 #: acceleration [m/s²] } pyfuzzy_system_expected.fuzzify(i_dict1) pyfuzzy_system_expected.inference() pyfuzzy_system_expected.defuzzify(output_dict1) new_pyfuzzy_system.fuzzify(i_dict2) new_pyfuzzy_system.inference() new_pyfuzzy_system.defuzzify(output_dict2) pyfuzzy_system_expected.calculate(i_dict1, output_dict1) new_pyfuzzy_system.calculate(i_dict2, output_dict2) self.assertEquals(output_dict1['a'], output_dict2['a']) self._test_rules_adj_in_out_adjs(new_pyfuzzy_system) def test_rule_has_same_adjs_as_output_only(self): " check if a rule has the same adjectives as the output" pyfuzzy_system_expected = self._createSystem() new_pyfuzzy_system = SystemModel.from_pyfuzzy(pyfuzzy_system_expected).get_pyfuzzy() self._test_rules_adj_in_out_adjs(pyfuzzy_system_expected) self._test_rules_adj_in_out_adjs(new_pyfuzzy_system) def test_system_from_pyfuzzy_changing_a_single_rule(self): "test if work changing a single rule" from fuzzy.Rule import Rule from fuzzy.operator.Input import Input from fuzzy.norm.AlgebraicProduct import AlgebraicProduct CER = AlgebraicProduct() pyfuzzy_system_expected = self._createSystem() new_pyfuzzy_system = self._createSystem() a_right_fast = new_pyfuzzy_system.variables["a"].adjectives["right_fast"] far_right = Rule( adjective=a_right_fast, # it gets its value from here operator=Input(new_pyfuzzy_system.variables["Phi"].adjectives["up_more_right"]), CER=CER ) new_pyfuzzy_system.rules['far right'] = far_right self._test_rules_adj_in_out_adjs(new_pyfuzzy_system) import math input_dict = {} input_dict["X"] = 0.0 #: position [m] input_dict["dX_dT"] = 0.0 #: velocity [m/s] input_dict["Phi"] = math.radians(45.0) #: angle [rad] input_dict["dPhi_dT"] = math.radians(0.0) #: angle velocity [rad/s] i_dict1 = input_dict.copy() i_dict2 = input_dict.copy() output_dict1 = { 'a' : 0.0 #: acceleration [m/s²] } output_dict2 = { 'a' : 0.0 #: acceleration [m/s²] } pyfuzzy_system_expected.calculate(i_dict1, output_dict1) new_pyfuzzy_system.calculate(i_dict2, output_dict2) self.assertEquals(output_dict1['a'], output_dict2['a']) def test_system_from_pyfuzzy_changing_a_single_rule_from_model(self): "test if work changing a single rule, but from model" from fuzzy_modeling.models import RuleModel from fuzzy.Rule import Rule from fuzzy.operator.Input import Input from fuzzy.norm.AlgebraicProduct import AlgebraicProduct CER = AlgebraicProduct() pyfuzzy_system_expected = self._createSystem() new_pyfuzzy_system = self._createSystem() system_model = SystemModel.from_pyfuzzy(self._createSystem()) output_a = new_pyfuzzy_system.variables["a"] output_a.name = 'a' a_right_fast = output_a.adjectives["right_fast"] a_right_fast.name = 'right_fast' far_right = Rule( adjective=a_right_fast, # it gets its value from here operator=Input(new_pyfuzzy_system.variables["Phi"].adjectives["up_more_right"]), CER=CER ) far_right.name = 'far right' rule_model = RuleModel.from_pyfuzzy(far_right, new_pyfuzzy_system, system_model) new_rule = rule_model.get_pyfuzzy(new_pyfuzzy_system) # new_rule.operator = Input(new_pyfuzzy_system.variables["Phi"].adjectives["up_more_right"]) new_pyfuzzy_system.rules['far right'] = new_rule self._test_rules_adj_in_out_adjs(new_pyfuzzy_system) import math input_dict = {} input_dict["X"] = 0.0 #: position [m] input_dict["dX_dT"] = 0.0 #: velocity [m/s] input_dict["Phi"] = math.radians(45.0) #: angle [rad] input_dict["dPhi_dT"] = math.radians(0.0) #: angle velocity [rad/s] i_dict1 = input_dict.copy() i_dict2 = input_dict.copy() output_dict1 = { 'a' : 0.0 #: acceleration [m/s²] } output_dict2 = { 'a' : 0.0 #: acceleration [m/s²] } pyfuzzy_system_expected.calculate(i_dict1, output_dict1) new_pyfuzzy_system.calculate(i_dict2, output_dict2) self.assertEquals(output_dict1['a'], output_dict2['a']) def test_system_from_pyfuzzy_with_other_input(self): " shoud return the correct corresponding Model for the pyfuzzy object with another input" pyfuzzy_system_expected = self._createSystem() new_pyfuzzy_system = SystemModel.from_pyfuzzy(pyfuzzy_system_expected).get_pyfuzzy() import math input_dict = {} input_dict["X"] = 190.0 #: position [m] input_dict["dX_dT"] = 500.0 #: velocity [m/s] input_dict["Phi"] = math.radians(270.0) #: angle [rad] input_dict["dPhi_dT"] = math.radians(90.0) #: angle velocity [rad/s] i_dict1 = input_dict.copy() i_dict2 = input_dict.copy() output_dict1 = { 'a' : 0.0 #: acceleration [m/s²] } output_dict2 = { 'a' : 0.0 #: acceleration [m/s²] } pyfuzzy_system_expected.calculate(i_dict1, output_dict1) new_pyfuzzy_system.calculate(i_dict2, output_dict2) self.assertEquals(output_dict1['a'], output_dict2['a']) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40742"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">18,880,676,265,147</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e584b858e99d2e7408dabbebde5bfb94d5a1902a</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b3174d48b4a9e9740208fd109935c7c6f21ac422</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/src/chisualizer/display/__init__.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">52f4961808d3f484313ce70645dd0faa53b538c9</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">albert-magyar/chisualizer</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/albert-magyar/chisualizer</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">8bc6cd12962e00b1118a66354a0931855876ce50</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5500e4b5d3c2524ea2f78445d4d7adb221e73ff7</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-24T01:51:11.767244</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-05-28T16:18:30</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-05-28T16:18:30</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">import DisplayBase import MappedDisplay import NumericalDisplay import SubprocessDisplay </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40743"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">4,861,902,999,937</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">83ec482ea51dd6b85a2883bf5be81ce7955cb9cb</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">d070a904d165de97ea0a52539d69c5a113355e29</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/account_multic_fix/account.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a5b67fd45a715aeea37892a132aa48416adc6900</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "AGPL-3.0-only" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">coronadoedgar/odoo-addons</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/coronadoedgar/odoo-addons</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e31a2a3c0cbd30dbfe947c87d1b8b4a0c39436c2</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">943327a788cd117dd9323db7bd0bd0bac5ebb07f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-18T18:51:29.078261</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-11-04T17:52:00</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-11-04T17:52:00</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">26,183,112</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># -*- coding: utf-8 -*- from openerp import models, fields, api, _ from openerp.exceptions import except_orm, Warning, RedirectWarning import openerp.addons.decimal_precision as dp class account_invoice(models.Model): _inherit = "account.invoice" @api.multi def onchange_company_id(self, company_id, part_id, type, invoice_line, currency_id): if self.invoice_line: raise Warning( _('You cannot change the company of a invoice that has lines. You should delete them first.')) return super(account_invoice, self).onchange_company_id(company_id, part_id, type, invoice_line, currency_id) class account_invoice_line(models.Model): _inherit = "account.invoice.line" @api.multi def product_id_change(self, product, uom_id, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, currency_id=False, company_id=None): res = super(account_invoice_line, self).product_id_change(product, uom_id, qty=qty, name=name, type=type, partner_id=partner_id, fposition_id=fposition_id, price_unit=price_unit, currency_id=currency_id, company_id=company_id) if not 'value' in res: res['value'] = {} fpos = self.env['account.fiscal.position'].browse(fposition_id) if 'invoice_line_tax_id' in res['value']: tax_ids = res['value']['invoice_line_tax_id'] taxes = self.env['account.tax'].search( [('id', 'in', tax_ids), ('company_id', '=', company_id)]) taxes = fpos.map_tax(taxes) res['value']['invoice_line_tax_id'] = taxes.ids return res # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40744"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">3,934,190,090,490</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ea33a2208bb9bbdf94263dd80c3487d83666102b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">8d1f9fcb695eb262acd72c28f9efd01314e140a6</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/Carolina /prioqueue.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5f3b20dc2abbb50c40549269e517154b71f4ca6f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">cindyliu/e250-final-project</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/cindyliu/e250-final-project</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">01703861ed1d272641b495643d324a4a3f20f52d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">67edd2a8a05ce6a89278cdb324072b931ab72854</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-04-14T08:09:36.698255</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-05-05T18:03:27</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-05-05T18:03:27</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from operator import attrgetter # These functions add on to those currently provided by Python's # built-in Priority Queue class # Checks a prioqueue to see if the given url is already in that prioqueue. def pq_member(prioq, url) : for any in prioq.queue : if any.self_url.lower() == url.lower() : return any return None # The built-in Python Priority Queue doesn't seem to allow for sorting by # keys within complex objects, so I reimplemented queue pushing for our use def pq_push(prioq, tnode) : prioq.put_nowait(tnode) prioq.queue.sort(key=attrgetter("key")) # Same; using the Priority Queue inbuilt pop method wasn't producing correct # results and it seemed to be due to sorting inconsistencies, so I also # redefined pop for our use def pq_pop(prioq) : rv = prioq.get_nowait() prioq.queue.sort(key=attrgetter("key")) return rv </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40745"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">4,355,096,876,249</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">659b764d64611a83e903534009101e2c951922d7</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">9a2c44c8e75198f6f4ea3502979f5d868beba26e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/src/reader.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a337bd6ed9ea3d86f232c6309c71d96ddb5e2f23</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "GPL-2.0-only", "GPL-2.0-or-later" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">livef1/Livef1-web</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/livef1/Livef1-web</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">9865b3e607d821f0cbff2eda53085dd020c40898</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">2ce3651c7c751849440115b6b04b1ad204a021e1</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-09-10T19:42:23.339424</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-05-17T14:49:15</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-05-17T14:49:15</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">18,938,195</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># # livef1 # # f1reader.py - reader task running under the web-server # # Copyright (c) 2014 Marc Bertens <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3d505c4f5e135f584f4958534e7d4d580f505f4e135351">[email protected]</a>> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # # Special thanks to the live-f1 project 'https://launchpad.net/live-f1' # * Scott James Remnant # * Dave Pusey # # For showing the way of program logic. # from time import sleep import threading import logging import src.session __version__ = "0.1" __applic__ = "Live F1 Web" __author__ = "Marc Bertens" class ReaderThread( threading.Thread ): def __init__( self, name, theApp ): threading.Thread.__init__( self ) self.Name = name self.theApp = theApp; self.log = logging.getLogger( 'live-f1' ) self.running = 0 self.Session = None self.Interval = 1 self.error = '' self.start() return # end def def run( self ): self.running = 1 tries = 0 local_running = 1 while self.running and local_running: self.log.info( "Starting the HTTP stream running %i, tries %i" % ( self.running, tries ) ) self.Session.parse( self.Session.obtain_key_frame() ) self.log.info( "Opening the STREAM session, running %i, tries %i" % ( self.running, tries ) ) if ( self.Session.open() ): self.log.info( "Session opened, running %i, tries %i" % ( self.running, tries ) ) self.Interval = 1 while ( self.running and self.Session.read() > 0 ): self.Interval = self.Session.pollCount if self.Interval < 1: # set the minimum HTTP refresh rate self.Interval = 1 elif self.Interval > 10: # set the maximum HTTP refresh rate self.Interval = 10 # end if # self.log.info( "running %i, tries %i, interval: %i" % ( self.running, tries, self.Interval ) ) continue # end while # # Posible to get here from a decryption error, so just recycle the session self.Session.close() tries = 0 else: # stop the thread for now self.log.error( "Error %s, connecting, try %i of 5" % ( self.error, tries ) ) if tries > 5: local_running = 0 else: tries += 1 # end if # end if # end while return; # end def def join( self, timeout = None ): if self.running: self.running = 0 self.log.warning( "%s: stopping" % ( self.Name ) ) if timeout: threading.Thread.join( self, timeout ) else: threading.Thread.join( self ) # end if # end if return # end def # end class class StreamReaderThread( ReaderThread ): def __init__( self, name, theApp ): ReaderThread.__init__( self, name, theApp ) return # end def def run( self ): self.log.info( '%s: Live F1 STREAM reader thread starting ...' % ( self.Name ) ) self.running = 1 tries = 0 while self.running: self.Session = src.session.f1StreamSession( self.theApp, self.log ) key_val = self.Session.obtain_auth_cookie() if not key_val: self.log.error( "Error getting cookie, try %i of 5" % tries ) tries += 1 else: self.log.info( "Got authentication cookie: %s" % ( key_val ) ) tries = 0 # end if if key_val: ReaderThread.run( self ) tries = 0 self.log.error( "Error getting cookie, try %i of 5" % tries ) if tries > 5: self.running = 0 #end if # end while self.log.warning( "%s: Exiting the THREAD" % ( self.Name ) ) self.running = 0 return # end def # end class class FileReaderThread( ReaderThread ): def __init__( self, name, theApp ): ReaderThread.__init__( self, name, theApp ) self.running = 0 return # end def def run( self ): self.running = 1 self.log.info( '%s: Live F1 FILE reader thread starting ...' % ( self.Name ) ) self.Session = f1stream.f1FileSession( self.theApp, self.log, 'Qualifying-E007340' ) ReaderThread.run( self ) self.log.warning( "%s: Exiting the THREAD" % ( self.Name ) ) self.running = 0 return # end def # end class </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40746"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">790,273,994,187</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">08ee167cbda510658c6e71182d6e95ca50aead22</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">347414adf4525c9a32805dcf3b14cb0a22432207</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/count.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4eab2a750e6c5241af424daa0b59f1d268a4b81a</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b4d/irssi-scripts</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/b4d/irssi-scripts</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">024709eaaa617d4b8e3d9d2c1d98344d48681ef4</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">8906305e318e013fcf83314aaa318bb0b8f94db6</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-05-29T22:06:43.271300</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-08-19T20:13:13</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2019-05-30T11:26:07</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">189,400,680</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/python # Filename: irclogcount.py # Author: b4d # Version: 0.1a, 01.04.2006 # #Ubistvu dela sam je treba se nardit da ugotovi na kjerem kanalu si pa kjer datu m je da pravi file odpre import os, commands, string, sys # Until date nick 'nick' wrote: counter lines nick = 'b4d' channel = 'rilinux' path = '/mnt/podatki/irclogs/' date = commands.getoutput('date +%F') path = path+channel+"-"+date+".txt" f = file(path, 'r') counter = 0 logfile = file(path, 'r').readlines() while True: line = f.readline() if len(line) == 0: break else: splitted = string.split(line) if splitted[2] == nick+">": counter = counter + 1 elif splitted[1] =="<+"+nick+">": counter = counter + 1 time = string.split(commands.getoutput('date')) print "Until "+time[3]+", nick '"+nick+"', wrote:",counter,"lines." </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40747"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,946,347,582,320</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">22d41f7633e54c939044bebf6d576eb1323fedd8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c54f5a7cf6de3ed02d2e02cf867470ea48bd9258</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/pyobjc/PyOpenGL-2.0.2.01/src/shadow/GL.ATI.vertex_array_object.0100.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c738d9b1c6eaf56ca844252e2efa84230d75a2ed</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">orestis/pyobjc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/orestis/pyobjc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">01ad0e731fbbe0413c2f5ac2f3e91016749146c6</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c30bf50ba29cb562d530e71a9d6c3d8ad75aa230</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-22T06:54:35.401551</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2009-09-01T09:24:47</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2009-09-01T09:24:47</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">16,895</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">8</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">5</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># This file was created automatically by SWIG. # Don't modify this file, modify the SWIG interface instead. # This file is compatible with both classic and new-style classes. import _vertex_array_object def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "this"): if isinstance(value, class_type): self.__dict__[name] = value.this if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown del value.thisown return method = class_type.__swig_setmethods__.get(name,None) if method: return method(self,value) if (not static) or hasattr(self,name) or (name == "thisown"): self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self,class_type,name,value): return _swig_setattr_nondynamic(self,class_type,name,value,0) def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name import types try: _object = types.ObjectType _newclass = 1 except AttributeError: class _object : pass _newclass = 0 del types __version__ = _vertex_array_object.__version__ __date__ = _vertex_array_object.__date__ __api_version__ = _vertex_array_object.__api_version__ __author__ = _vertex_array_object.__author__ __doc__ = _vertex_array_object.__doc__ glNewObjectBufferATI = _vertex_array_object.glNewObjectBufferATI glIsObjectBufferATI = _vertex_array_object.glIsObjectBufferATI glUpdateObjectBufferATI = _vertex_array_object.glUpdateObjectBufferATI glGetObjectBufferfvATI = _vertex_array_object.glGetObjectBufferfvATI glGetObjectBufferivATI = _vertex_array_object.glGetObjectBufferivATI glDeleteObjectBufferATI = _vertex_array_object.glDeleteObjectBufferATI glArrayObjectATI = _vertex_array_object.glArrayObjectATI glGetArrayObjectfvATI = _vertex_array_object.glGetArrayObjectfvATI glGetArrayObjectivATI = _vertex_array_object.glGetArrayObjectivATI glInitVertexArrayObjectATI = _vertex_array_object.glInitVertexArrayObjectATI GL_STATIC_ATI = _vertex_array_object.GL_STATIC_ATI GL_DYNAMIC_ATI = _vertex_array_object.GL_DYNAMIC_ATI GL_PRESERVE_ATI = _vertex_array_object.GL_PRESERVE_ATI GL_DISCARD_ATI = _vertex_array_object.GL_DISCARD_ATI GL_OBJECT_BUFFER_SIZE_ATI = _vertex_array_object.GL_OBJECT_BUFFER_SIZE_ATI GL_OBJECT_BUFFER_USAGE_ATI = _vertex_array_object.GL_OBJECT_BUFFER_USAGE_ATI GL_ARRAY_OBJECT_BUFFER_ATI = _vertex_array_object.GL_ARRAY_OBJECT_BUFFER_ATI GL_ARRAY_OBJECT_OFFSET_ATI = _vertex_array_object.GL_ARRAY_OBJECT_OFFSET_ATI __info = _vertex_array_object.__info </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,009</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40748"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">19,318,762,919,756</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">172804f7be51517779dc695cb9cde7272119c55a</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">1565ec222df50c31a2265ad1461eacc307dd14a7</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/mac_db.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b16223022d1658df045487fbda4ffe10f17c3ad6</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">plucena24/Mac_db</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/plucena24/Mac_db</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">6fdfe19a5e38a44ca052c719d2a1f4bfbd863bc3</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a9b646321e5616ca5da0ba76af3f2fd9e45de1e1</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-12-24T14:53:08.421020</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-05-06T05:14:17</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-05-06T05:14:17</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">16,161,580</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from super_dict import Super_dict import pickle class Mac_db(Super_dict): def __init__(self): Super_dict.__init__(self) """ MAC parse tool sh mac-add dyn vlan mac address type learn age ports * 124 0021.5e97.7b34 dynamic Yes 30 Te1/3 2nd variation vlan mac address type learn ports * 112 0023.7d35.1470 dynamic Yes Po2 3rd variation - vlan mac address type protocols port 201 000c.29e0.cd3e dynamic ip,ipx,assigned,other GigabitEthernet2/9 self.dict_db format is [mac][host_port_vlan][date] (c) 2012, 2013 Intelligent Planet Ltd """ self.verbose = 0 self.space_size = 40 self.load_file = 'c:/mac_load' self.dict_file = 'c:/mac_db' self.open_dict() def load(self): file = open(self.load_file, 'rU') host = '' for row in file: if row: if '#' in row: host = row.split('#')[0] if '>' in row: host = row.split('>')[0] out = row.split() port = mac = vlan = '' if out: #check for hex encoded data for i in range(2): try: int(out[0]) except: if out: out.pop(0) try: mac = out[1] vlan = out[0] port = out[len(out) -1] int(vlan) #test for number except: if self.verbose > -1: print 'error', out entry = '%s_%s_Vlan%s' % (host, port, vlan) #host_port_vlan if mac and len(mac) == 14 and '.' in mac: if self.verbose > 0: print mac, entry, '\n', row, '\n', out, '\n' try: self.dict_db[mac] except: self.dict_db[mac] = {} self.dict_db[mac][entry] = self.date if __name__ == "__main__": x = Macs() x.load() x.save() end = raw_input('press enter to exit') </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40749"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">16,140,487,144,637</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c3d80e3316bd606c8d890f7bd22518b9f90666d5</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7d6b5b93d693b1d43cde58eef32bad4802f78c12</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/sklearn/linear_model/tests/test_base.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">d11f9e27c99749e0048876d8d5553bacfc758866</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "BSD-3-Clause" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">AlexLerman/scikit-learn</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/AlexLerman/scikit-learn</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e2042520bcc1b7e88733c91912fd2c02bddb81e0</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">cd7404706c0a2e1003a7d818f21cac6c37747aea</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-08-07T20:25:04.365114</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-05-08T22:32:27</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-05-08T22:32:27</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">4,266,744</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">NOASSERTION</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">true</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2018-10-01T05:44:59</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-05-09T00:00:57</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-01-09T02:35:39</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2017-03-27T00:53:12</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">20,865</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">C</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># Author: Alexandre Gramfort <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2d4c4148554c43495f48034a5f4c404b425f596d44435f444c034b5f">[email protected]</a>> # Fabian Pedregosa <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="741215161d151a5a0411100611131b0715341d1a061d155a1206">[email protected]</a>> # # License: BSD Style. from numpy.testing import assert_array_almost_equal, assert_equal import numpy as np from scipy import sparse from ..base import LinearRegression from ...utils import check_random_state from ...datasets.samples_generator import make_sparse_uncorrelated from ...datasets.samples_generator import make_regression def test_linear_regression(): """ Test LinearRegression on a simple dataset. """ # a simple dataset X = [[1], [2]] Y = [1, 2] clf = LinearRegression() clf.fit(X, Y) assert_array_almost_equal(clf.coef_, [1]) assert_array_almost_equal(clf.intercept_, [0]) assert_array_almost_equal(clf.predict(X), [1, 2]) # test it also for degenerate input X = [[1]] Y = [0] clf = LinearRegression() clf.fit(X, Y) assert_array_almost_equal(clf.coef_, [0]) assert_array_almost_equal(clf.intercept_, [0]) assert_array_almost_equal(clf.predict(X), [0]) def test_linear_regression_sparse(random_state=0): "Test that linear regression also works with sparse data" random_state = check_random_state(random_state) n = 100 X = sparse.eye(n, n) beta = random_state.rand(n) y = X * beta[:, np.newaxis] ols = LinearRegression() ols.fit(X, y.ravel()) assert_array_almost_equal(beta, ols.coef_ + ols.intercept_) assert_array_almost_equal(ols.residues_, 0) def test_linear_regression_multiple_outcome(random_state=0): "Test multiple-outcome linear regressions" X, y = make_regression(random_state=random_state) Y = np.vstack((y, y)).T n_features = X.shape[1] clf = LinearRegression(fit_intercept=True) clf.fit((X), Y) assert_equal(clf.coef_.shape, (2, n_features)) Y_pred = clf.predict(X) clf.fit(X, y) y_pred = clf.predict(X) assert_array_almost_equal(np.vstack((y_pred, y_pred)).T, Y_pred, decimal=3) def test_linear_regression_sparse_multiple_outcome(random_state=0): "Test multiple-outcome linear regressions with sparse data" random_state = check_random_state(random_state) X, y = make_sparse_uncorrelated(random_state=random_state) X = sparse.coo_matrix(X) Y = np.vstack((y, y)).T n_features = X.shape[1] ols = LinearRegression() ols.fit(X, Y) assert_equal(ols.coef_.shape, (2, n_features)) Y_pred = ols.predict(X) ols.fit(X, y.ravel()) y_pred = ols.predict(X) assert_array_almost_equal(np.vstack((y_pred, y_pred)).T, Y_pred, decimal=3) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,012</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40750"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">19,567,871,025,517</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">f5cf9b8365f792e83807908076fd721edb278c04</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">8f7b3c34ae07ec6e2ab23755ce2e981fc9ab9818</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/pages/MainFrame.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">23fdedad965bc4a186cac5c8381b755d5d14bfe7</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">robinxb/wxApp</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/robinxb/wxApp</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">fd4e882b9b8ee269a4977c25484d1933a5111eb7</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5636b950a59793a374d9de1cc8164ee38a58ade0</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-09-06T14:45:47.551755</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-10-08T13:09:04</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-10-08T13:09:04</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># -*- coding: utf-8 -*- from _extend import MainFrame import MainPanel import InitPanel import ConfigPanel import SvnToGitPanel class MainFrame(MainFrame): def __init__(self, parent = None): super(MainFrame, self).__init__(parent) self.m_Panels = {} self.m_Panels["MainPanel"] = MainPanel.MainPanel(self) self.m_Panels["InitPanel"] = InitPanel.InitPanel(self) self.m_Panels["ConfigPanel"] = ConfigPanel.ConfigPanel(self) self.m_Panels["SvnToGitPanel"] = SvnToGitPanel.SvnToGitPanel(self) self.HideAll() self.m_Panels["MainPanel"].Show() self.Fit() def ShowMainPanel( self, event ): event.Skip() self.HideAll() self.m_Panels["MainPanel"].Show() self.Fit() def ShowInitPanel( self, event ): event.Skip() self.HideAll() self.m_Panels["InitPanel"].Show() self.Fit() def ShowConfigPanel( self, event ): event.Skip() self.HideAll() self.m_Panels["ConfigPanel"].Show() self.m_Panels["ConfigPanel"].LoadConfig() self.Fit() # Custom Functions Start def HideAll(self): for v in self.m_Panels.values(): v.Hide() def ShowGitBranchPanel(self): self.HideAll() self.Fit() def ShowSvnToGitPanel(self): self.HideAll() self.m_Panels["SvnToGitPanel"].Show() self.m_Panels["SvnToGitPanel"].LoadPath() self.Fit() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40751"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">8,632,884,268,197</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">1edae9485e1117268b03c1e9631936d9a28de42b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a2844699937ce623c6df0aecd4dd81dbb779c6dc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/scoremanager/materialpackagemanagers/test/test_MarkupInventoryMaterialPackageManager.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a5c1343b38203fc20a07c3320cc3c10c0d97fd82</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "GPL-3.0-or-later", "LGPL-2.0-or-later", "GPL-1.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "GPL-3.0-only", "LGPL-2.1-or-later", "AGPL-3.0-or-later", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">jonathanmarmor/abjad</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/jonathanmarmor/abjad</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a50002b27230853306f06a37c6bfb5b0bebe4d8c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">cb1ead2e75b65e622cec957083da3abd4959c726</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-21T09:06:25.498729</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-02-15T22:43:40</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-02-15T22:43:40</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># -*- encoding: utf-8 -*- from abjad import * import scoremanager def test_MarkupInventoryMaterialPackageManager_01(): score_manager = scoremanager.core.ScoreManager() string = 'scoremanager.materialpackages.testmarkupinventory' assert not score_manager.configuration.packagesystem_path_exists(string) try: score_manager._run(pending_user_input= "materials maker markup testmarkupinventory " "omi name test~markup~inventory " "add arg r'\\italic~{~serenamente~}' name serenamente done " "add arg r'\\italic~{~presto~}' name presto done done default q" ) string = 'scoremanager.materialpackages.testmarkupinventory' mpp = scoremanager.materialpackagemanagers.ArticulationHandlerMaterialPackageManager( string) assert mpp._list_directory() == [ '__init__.py', '__metadata__.py', 'illustration_builder.py', 'output_material.py', ] inventory = markuptools.MarkupInventory([ markuptools.Markup( '\\italic { serenamente }', markup_name='serenamente' ), markuptools.Markup( '\\italic { presto }', markup_name='presto' ) ], custom_identifier='test markup inventory' ) assert mpp.output_material == inventory finally: string = 'm testmarkupinventory del remove default q' score_manager._run(pending_user_input=string) string = 'scoremanager.materialpackages.testmarkupinventory' assert not \ score_manager.configuration.packagesystem_path_exists(string) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40752"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1,271,310,331,247</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a777b5c9778b7b1544a3f859d4dc41b8f4b241b3</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a3a540124a34da60c374d47de689375d0f8de330</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/testing_python_vs_c/compare/primo.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">82dc660d9e2231054c32ae06c0ef798009e5344e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">lievertom/random</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/lievertom/random</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">0f15e112afdeff66d13732b573fa4d7169e39b53</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b50c42c7ea4c345e1b205e1d6b7e92e4ed51ea9d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-07-14T03:00:45.762710</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2011-05-25T05:07:15</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2011-05-25T05:07:15</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">import sys, math def esPrimo(n): if n == 0 or n == 1: return False raiz = int(math.sqrt(n))+2 for divisor in range(2, raiz): if n % divisor == 0: return False return True esPrimo(int(sys.argv[1]))</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,011</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40753"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">19,000,935,321,979</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7c0b02154ec280efa8cefbcd1aa0bef7ac3129e5</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">0fc7f1bdff912e8b3beb8e0859b1cdbde96e927b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/cc/api/controllers/locales.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">9d85a46443eba40194e23c7fd33272f7da07532c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "LicenseRef-scancode-unknown-license-reference" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">cc-archive/zzz-cc.api.ftobia</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/cc-archive/zzz-cc.api.ftobia</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">68d24131da9b8f3dc4afc60b7e8c1699a5968240</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7e13ea56f1478a8908ce7fabbf3e19b22f692706</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-19T18:11:17.650666</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2008-07-29T23:57:15</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2008-07-29T23:57:15</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">14,874,655</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">import logging import os from cc.api.lib.base import BaseController import cc.license log = logging.getLogger(__name__) class LocalesController(BaseController): def index(self): locales = cc.license.locales() tmpl = self.loader.load('locales.xml') stream = tmpl.generate(locales=locales) return stream.render(method='xml') </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,008</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40754"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">3,118,146,259,241</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">65b4676c8b571eea5fbe5645229c05d24d072253</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">2a16f43817c1ef53de1853a6e90aced95d17a4bc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/garcimore/utils.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">0fb18501e416913977c9b887dc4391da1f151081</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">pombredanne/django-garcimore</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/pombredanne/django-garcimore</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">f4727e8d2bde121581f46f756c7cfdcd049487f8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">56b3009eda160c201df5a6699d6154a24ecd0fff</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2017-11-01T09:18:59.236393</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2010-12-18T15:34:05</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2010-12-18T15:34:05</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># -*- coding: utf-8 -*- import sys import os def abracadabra(): paths = sys.path[:] match_path = "%(sep)sDjango" % {'sep': os.sep} for path in paths: if match_path in path or match_path.lower() in path: del sys.path[sys.path.index(path)] modules = sys.modules.keys() for module in modules: if module.startswith('django'): del sys.modules[module] </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,010</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40755"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">7,645,041,837,743</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">1012ceea9fd66fa36419a7da378283a06db426ad</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b62742392d953662d3f51ed6b3a0f724a2a87dff</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/bit/recipe/android_ndk/__init__.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">98a0899188360a3854c49fdeb37b7e099f48b49a</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">bithub/bit.recipe.android_ndk</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/bithub/bit.recipe.android_ndk</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">6adec7bf200942004d014ee78b27c28be334fc54</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">51b1711f094ed1a258e5dcd072459e8d17a01989</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-09-08T02:03:29.973579</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-03-19T20:45:59</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-03-19T20:45:59</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">import logging import os import pkg_resources import commands class Recipe: def __init__(self, buildout, name, options): self.options = options self.logger = logging.getLogger(name) self.name = name def _update(self): install = pkg_resources.resource_filename( __name__, 'install_android_ndk') path = os.getcwd() target_install = os.path.join(path, 'bin', self.name) if os.path.exists(target_install): os.unlink(target_install) env_vars = {'BUILDOUT': path, 'NDK': self.options['ndk'], 'PARTNAME': self.name, } bash = '#!/bin/bash\n' bash += '\n'.join(['%s=%s' % (k, v) for k, v in env_vars.items()]) open(target_install, 'w').write(bash + open(install).read()) commands.getoutput('chmod +x %s' % target_install) def _install(self): print commands.getoutput('./bin/%s install' % self.name) def install(self): self._update() self._install() return ['bin/%s' % self.name] def update(self): self._install() self._update() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,012</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40756"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">15,144,054,716,037</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">3c23d4ef0d5b96acd9f782ea128ea08d52eb89c0</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7f0a01fd9e37ddff02b371aefca357da5cc3ee74</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/loho/apps/project/migrations/0002_auto__del_field_project_description__del_field_project_brief_descripti.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">42eadaa761ddff95fd038382f5b01df2913cafe9</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">lorenmh/lorenhoward.com</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/lorenmh/lorenhoward.com</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ade10f962a8c5e8a3e811b8f1aa3eccb0db36fdb</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7b61f63a16f718f4603814daa5fad57c58ed01b2</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-23T01:41:15.740657</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-10-06T04:55:26</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-10-06T04:55:26</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">15,729,115</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'Project.description' db.delete_column(u'project_project', 'description') # Deleting field 'Project.brief_description' db.delete_column(u'project_project', 'brief_description') # Adding field 'Project.teaser' db.add_column(u'project_project', 'teaser', self.gf('django.db.models.fields.TextField')(default='a'), keep_default=False) # Adding field 'Project.text' db.add_column(u'project_project', 'text', self.gf('django.db.models.fields.TextField')(default='a'), keep_default=False) # Changing field 'Project.title' db.alter_column(u'project_project', 'title', self.gf('django.db.models.fields.CharField')(max_length=256)) # Changing field 'Project.url' db.alter_column(u'project_project', 'url', self.gf('django.db.models.fields.SlugField')(max_length=256)) # Changing field 'ProjectLog.title' db.alter_column(u'project_projectlog', 'title', self.gf('django.db.models.fields.CharField')(max_length=256)) # Changing field 'ShowcaseImage.title' db.alter_column(u'project_showcaseimage', 'title', self.gf('django.db.models.fields.CharField')(max_length=256)) # Changing field 'ShowcaseCode.title' db.alter_column(u'project_showcasecode', 'title', self.gf('django.db.models.fields.CharField')(max_length=256)) def backwards(self, orm): # Adding field 'Project.description' db.add_column(u'project_project', 'description', self.gf('django.db.models.fields.TextField')(default='a'), keep_default=False) # Adding field 'Project.brief_description' db.add_column(u'project_project', 'brief_description', self.gf('django.db.models.fields.TextField')(default='a'), keep_default=False) # Deleting field 'Project.teaser' db.delete_column(u'project_project', 'teaser') # Deleting field 'Project.text' db.delete_column(u'project_project', 'text') # Changing field 'Project.title' db.alter_column(u'project_project', 'title', self.gf('django.db.models.fields.CharField')(max_length=128)) # Changing field 'Project.url' db.alter_column(u'project_project', 'url', self.gf('django.db.models.fields.SlugField')(max_length=128)) # Changing field 'ProjectLog.title' db.alter_column(u'project_projectlog', 'title', self.gf('django.db.models.fields.CharField')(max_length=128)) # Changing field 'ShowcaseImage.title' db.alter_column(u'project_showcaseimage', 'title', self.gf('django.db.models.fields.CharField')(max_length=128)) # Changing field 'ShowcaseCode.title' db.alter_column(u'project_showcasecode', 'title', self.gf('django.db.models.fields.CharField')(max_length=128)) models = { u'project.project': { 'Meta': {'object_name': 'Project'}, u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'main_image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), 'publish': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['tag.Tag']", 'symmetrical': 'False', 'blank': 'True'}), 'teaser': ('django.db.models.fields.TextField', [], {}), 'text': ('django.db.models.fields.TextField', [], {}), 'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), 'title': ('django.db.models.fields.CharField', [], {'max_length': '256'}), 'url': ('django.db.models.fields.SlugField', [], {'max_length': '256'}), 'weight': ('django.db.models.fields.IntegerField', [], {}) }, u'project.projectlog': { 'Meta': {'object_name': 'ProjectLog'}, u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'project': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['project.Project']"}), 'publish': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'text': ('django.db.models.fields.TextField', [], {}), 'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), 'title': ('django.db.models.fields.CharField', [], {'max_length': '256'}) }, u'project.showcasecode': { 'Meta': {'object_name': 'ShowcaseCode'}, 'code': ('django.db.models.fields.TextField', [], {}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'project': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['project.Project']"}), 'publish': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), 'title': ('django.db.models.fields.CharField', [], {'max_length': '256'}) }, u'project.showcaseimage': { 'Meta': {'object_name': 'ShowcaseImage'}, u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}), 'project': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['project.Project']"}), 'publish': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), 'title': ('django.db.models.fields.CharField', [], {'max_length': '256'}) }, u'tag.tag': { 'Meta': {'object_name': 'Tag'}, u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}), 'url': ('django.db.models.fields.SlugField', [], {'max_length': '50'}) } } complete_apps = ['project']</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40757"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">11,974,368,839,566</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">f62ecf64ecaebae0f77aee8bfa9973d361ac45e1</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ef8a85e706fc221e971669b840359499afe377c2</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/utils/deserializer_utils.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7e0fb851776995961ab43c2b4e35aedf14cded30</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ecologylab/ecologylabFundamentalPython</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/ecologylab/ecologylabFundamentalPython</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">146ed7329cd43cd57b282411c6e145e812a5146f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">36c55c70c3aebf594251a7fa0768f69525ef6078</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-05-18T17:43:55.121739</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-12-20T16:04:11</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-12-20T16:04:11</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">''' Created on 03.07.2012 @author: cristi ''' def createClass(class_name): class_name = str(unicode(class_name)) if class_name in globals(): return globals()[class_name] newClass = type(class_name, (object,), {}) globals()[class_name] = newClass return newClass def getClassInstance(class_name): return globals()[class_name]()</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,012</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40758"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">6,777,458,408,554</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">536f8cd00affd82c171d44c49716a87c80980643</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5aa5427758639aed1c190d52dca8c85ce0f4c3ef</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/xkcd-downloader.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">50126ca4dc8e52f9e7a0caea86fd8625d9f83631</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">joeyuan19/XKCDaily</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/joeyuan19/XKCDaily</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c93cee1fcf348a5036abc09064af767bf30cc5a7</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">1383bc872c3e771152aeaf69a90b8d7cc4362503</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-05-19T20:01:08.237299</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-05-19T22:29:19</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-05-19T22:29:19</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from BeautifulSoup import BeautifulSoup as bs from urllib2 import urlopen from urllib import urlretrieve from PIL import Image import os import sys import ctypes # To Do # [ ] Add alt-text # [ ] Multiplatformness def time_now(): import datetime return datetime.datetime.today().strftime("%m/%d/%Y %H:%M:%S") def write_log(*args): s = "" for arg in args: s += str(arg) + " " with open("err.log","a") as f: f.write(str(time_now() + ": " + str(s) + "\n")) def join(*paths): total_path = "" for path in paths: total_path = os.path.join(total_path,path) return total_path def put_border(img,border_x=10,border_y=10,border_color=(255,255,255,255)): data = img_to_2D_data(img) data = _put_border(data,border_x,border_y,border_color) w,h = img.size img = img.resize((w+2*border_x,h+2*border_y)) img.putdata(data_2D_to_img(data)) return img def _put_border(xy_data,border_x=10,border_y=10,border_color=(255,255,255,255)): w = len(xy_data[0]) new_data = [[border_color]*w for i in range(border_y)] + xy_data + [[border_color]*w for i in range(border_y)] for i in xrange(len(new_data)): new_data[i] = [border_color]*border_x + new_data[i] + [border_color]*border_x return new_data def img_to_2D_data(img): w,h = img.size data = list(img.getdata()) xy_data = [] for y in xrange(h): temp = [] for x in xrange(w): temp.append(data[y*w + x]) xy_data.append(temp) return xy_data def data_2D_to_img(xy_data): data = [] for line in xy_data: data += line return data def put_caption(img): pass URL = "http://www.xkcd.com/" DIR = "pics" RENAME = "current.bmp" PWD = os.path.dirname(os.path.realpath(__file__)) try: # Check if the dump directory exists if not os.path.exists(join(PWD,DIR)): os.makedirs(join(PWD,DIR)) # Pull img soup = bs(urlopen(URL)) soup = bs(str(soup.find("div",{"id":"comic"}))) src = soup.find("img")["src"] img_name = src[src.rfind("/")+1:] img_loc = join(PWD,DIR,img_name) urlretrieve(src,img_loc) # convert image to bmp img = Image.open(img_loc) img = put_border(img,border_color=255) img.save(join(PWD,DIR,RENAME)) # Windows - set to BG ctypes.windll.user32.SystemParametersInfoA(20, 0, join(PWD,DIR,RENAME), 0) except Exception as e: write_log(e) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40759"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">3,942,780,026,055</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">895e719cd19b719daeb5b0ba9eb213040ce0c14e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">d08a1801f114e0a08e495df8c8d40e1a74a1f4d0</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/videoSearch/handlesWeibo/handle_weibo.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">72fccf44c38fd6036ccec0f0eb4a5e17a75474c6</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">cashgithubs/ccv-impl</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/cashgithubs/ccv-impl</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7a6ec212dc493015af25cb7d29f8a52ce6ee496d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">80d275db6de0022d2e07f3857949157f6825e492</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2017-04-20T01:04:45.009085</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-07-18T15:32:19</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-07-18T15:32:19</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#coding=utf-8 import sys,os sys.path += [os.path.dirname(os.path.dirname(os.path.abspath(__file__)))] from setting import debug from lxml import etree import re,pprint,json,time, datetime from common.common import getCurTime from pymongo import Connection from common.Domain import Resource,Channel,UserWeibo from common.HttpUtil import get_html,HttpUtil, downloadGif p_1 = re.compile('http://(.*?)/') p_url = re.compile('http://[\w\./]*') p_sina = re.compile('http://video.sina.com.cn/v/b/(.*?)\.html') p_youku = re.compile('http://v.youku.com/v_show/id_(.*?).html') #p_56 = re.compile('v_([^\.]+).html') p_videos = [('sina',p_sina), ('youku',p_youku)] p_2 = re.compile('\S.(?P<type>\w+)$') getVideoIdUrl = 'http://60.28.29.38:9090/api/getVideoId' job_server = None if not debug: import pp # tuple of all parallel python servers to connect with ppservers = () #ppservers = ("10.0.0.1",) if len(sys.argv) > 1: ncpus = int(sys.argv[1]) # Creates jobserver with ncpus workers job_server = pp.Server(ncpus, ppservers=ppservers) else: # Creates jobserver with automatically detected number of workers job_server = pp.Server(ppservers=ppservers) print "pp 可以用的工作核心线程数", job_server.get_ncpus(), "workers" getVideoIdUrl = 'http://h38:9090/api/getVideoId' def handle(channelId, access_token, since_id, sinaId, sinaName, page=1,count=20): httpUtil = HttpUtil() # 列表页 url = 'https://api.weibo.com/2/statuses/home_timeline.json?' \ 'access_token=%s&since_id=%s&page=%s&count=%s&feature=3'%(access_token,since_id,page,count) print url html = get_html(url) videos = json.loads(html)['statuses'] print len(videos) videoList = [] jobs = [] for video in videos: if debug: item = decodeWeibo(video, httpUtil, sinaId, sinaName) if item is None: continue videoList.append({'resource':buildResource(item['videoUrl'] , item['title'], channelId, item['videoType'], item['videoId'],'video'), 'userWeibo':buildUserWeibo(item)}) else: jobs.append(job_server.submit(pDecodeWeibo, (video, sinaId, sinaName, getVideoIdUrl ), (), ("from common.HttpUtil import HttpUtil", "import re", "import json"))) if not debug: for job in jobs: item = job() if item is None: continue videoList.append({'resource':buildResource(item['videoUrl'] , item['title'], channelId, item['videoType'], item['videoId'],'video'), 'userWeibo':buildUserWeibo(item)}) return videoList def handleGif(channelId, access_token, since_id, sinaId, sinaName, page=1,count=20): httpUtil = HttpUtil() # 列表页 url = 'https://api.weibo.com/2/statuses/home_timeline.json?' \ 'access_token=%s&since_id=%s&page=%s&count=%s&feature=2'%(access_token,since_id,page,count) print url html = get_html(url) images = json.loads(html)['statuses'] print len(images) gifList = [] for image in images: if 'retweeted_status' in image: imageUrl = image['retweeted_status']['bmiddle_pic'] else: imageUrl = image['bmiddle_pic'] m = p_2.search(imageUrl) type = m.group('type') if cmp(type,'gif') == 0: item = decodeImageWeibo(image, httpUtil, sinaId, sinaName) videoId, resourceImageUrl = downloadGif(item['videoUrl'], channelId) if videoId and resourceImageUrl: gifList.append({'resource':buildGifResource(item['videoUrl'] , item['title'], channelId, videoId, resourceImageUrl), 'userWeibo':buildUserWeibo(item)}) return gifList def pDecodeWeibo(video, sinaId, sinaName, getVideoIdUrl): httpUtil = HttpUtil() p_1 = re.compile('http://(.*?)/') p_url = re.compile('http://[\w\./]*') p_sina = re.compile('http://video.sina.com.cn/v/b/(.*?)\.html') p_youku = re.compile('http://v.youku.com/v_show/id_(.*?).html') p_56 = re.compile('v_([^\.]+).html') p_videos = [('sina',p_sina), ('youku',p_youku)] item = {} if 'retweeted_status' in video: comment = video['text'] text = video['retweeted_status']['text'] else: text = video['text'] comment = '' #print video['text'] #try: item['url'] = p_url.findall(text) hit = False for url in item['url']: realUrl = httpUtil.real_url(url) for p_video in p_videos: if p_video[1].search(realUrl): item['videoType'] = p_video[0] item['videoId'] = p_video[1].search(realUrl).groups()[0] hit = True break else: continue if hit: break else: response = httpUtil.Post(getVideoIdUrl, json.dumps({"url":'%s'%realUrl})) if response: content = response.decode() result = json.loads(content) if result.get('videoId',None) is None: continue if result['videoId'] == '' or result['videoType'] == '': continue item['videoType'] = result['videoType'] item['videoId'] = result['videoId'] hit = True break if not hit: return None item['videoUrl'] = realUrl item['title'] = text item['sinaId'] = sinaId item['sinaName'] = sinaName item['weiboId'] = video['id'] item['comment'] = comment item['friendId'] = video['user']['id'] item['friendName'] = video['user']['name'] item['friendScreenName'] = video['user']['screen_name'] item['friendProfileImageUrl'] = video['user']['profile_image_url'] if 'cover_image' in video['user']: item['friendCoverImageUrl'] = video['user']['cover_image'] item['friendGender'] = video['user']['gender'] item['repostsCount'] = video['reposts_count'] item['commentsCount'] = video['comments_count'] item['attitudesCount'] = video['attitudes_count'] item['created_at'] = video['created_at'] if 'bmiddle_pic' in video: item['videoScreenshotUrl'] = video['bmiddle_pic'] if 'retweeted_status' in video: item['retweetedFriendId'] = video['retweeted_status']['user']['id'] item['retweetedFriendName'] = video['retweeted_status']['user']['name'] item['retweetedFriendScreenName'] = video['retweeted_status']['user']['screen_name'] item['retweetedFriendProfileImageUrl'] = video['retweeted_status']['user']['profile_image_url'] if 'cover_image' in video['retweeted_status']['user']: item['retweetedFriendCoverImageUrl'] = video['retweeted_status']['user']['cover_image'] item['retweetedFriendGender'] = video['retweeted_status']['user']['gender'] #except: #print "Decode exception." #continue #print item return item def decodeWeibo(video, httpUtil, sinaId, sinaName): item = {} if 'retweeted_status' in video: comment = video['text'] text = video['retweeted_status']['text'] else: text = video['text'] comment = '' #print video['text'] #try: item['url'] = p_url.findall(text) hit = False for url in item['url']: realUrl = httpUtil.real_url(url) for p_video in p_videos: if p_video[1].search(realUrl): item['videoType'] = p_video[0] item['videoId'] = p_video[1].search(realUrl).groups()[0] hit = True break else: continue if hit: break else: response = httpUtil.Post('http://60.28.29.38:9090/api/getVideoId', json.dumps({"url":'%s'%realUrl})) if response: content = response.decode() result = json.loads(content) if result.get('videoId',None) is None: continue if result['videoId'] == '' or result['videoType'] == '': continue item['videoType'] = result['videoType'] item['videoId'] = result['videoId'] hit = True break if not hit: return None item['videoUrl'] = realUrl item['title'] = text item['sinaId'] = sinaId item['sinaName'] = sinaName item['weiboId'] = video['id'] item['comment'] = comment item['friendId'] = video['user']['id'] item['friendName'] = video['user']['name'] item['friendScreenName'] = video['user']['screen_name'] item['friendProfileImageUrl'] = video['user']['profile_image_url'] if 'cover_image' in video['user']: item['friendCoverImageUrl'] = video['user']['cover_image'] item['friendGender'] = video['user']['gender'] item['repostsCount'] = video['reposts_count'] item['commentsCount'] = video['comments_count'] item['attitudesCount'] = video['attitudes_count'] item['created_at'] = video['created_at'] if 'bmiddle_pic' in video: item['videoScreenshotUrl'] = video['bmiddle_pic'] if 'retweeted_status' in video: item['retweetedFriendId'] = video['retweeted_status']['user']['id'] item['retweetedFriendName'] = video['retweeted_status']['user']['name'] item['retweetedFriendScreenName'] = video['retweeted_status']['user']['screen_name'] item['retweetedFriendProfileImageUrl'] = video['retweeted_status']['user']['profile_image_url'] if 'cover_image' in video['retweeted_status']['user']: item['retweetedFriendCoverImageUrl'] = video['retweeted_status']['user']['cover_image'] item['retweetedFriendGender'] = video['retweeted_status']['user']['gender'] #except: #print "Decode exception." #continue #print item return item def decodeImageWeibo(image, httpUtil, sinaId, sinaName): item = {} if 'retweeted_status' in image: comment = image['text'] text = image['retweeted_status']['text'] imageUrl = image['retweeted_status']['bmiddle_pic'] else: text = image['text'] comment = '' imageUrl = image['bmiddle_pic'] #print video['text'] #try: item['videoUrl'] = imageUrl item['videoId'] = imageUrl item['videoType'] = 'gifUrl' item['title'] = text item['sinaId'] = sinaId item['sinaName'] = sinaName item['weiboId'] = image['id'] item['comment'] = comment item['friendId'] = image['user']['id'] item['friendName'] = image['user']['name'] item['friendScreenName'] = image['user']['screen_name'] item['friendProfileImageUrl'] = image['user']['profile_image_url'] if 'cover_image' in image['user']: item['friendCoverImageUrl'] = image['user']['cover_image'] item['friendGender'] = image['user']['gender'] item['repostsCount'] = image['reposts_count'] item['commentsCount'] = image['comments_count'] item['attitudesCount'] = image['attitudes_count'] item['created_at'] = image['created_at'] if 'bmiddle_pic' in image: item['videoScreenshotUrl'] = image['bmiddle_pic'] if 'retweeted_status' in image: item['retweetedFriendId'] = image['retweeted_status']['user']['id'] item['retweetedFriendName'] = image['retweeted_status']['user']['name'] item['retweetedFriendScreenName'] = image['retweeted_status']['user']['screen_name'] item['retweetedFriendProfileImageUrl'] = image['retweeted_status']['user']['profile_image_url'] if 'cover_image' in image['retweeted_status']['user']: item['retweetedFriendCoverImageUrl'] = image['retweeted_status']['user']['cover_image'] item['retweetedFriendGender'] = image['retweeted_status']['user']['gender'] #except: #print "Decode exception." #continue #print item return item def buildUserWeibo(item): userWeibo = UserWeibo() userWeibo['videoUrl'] = item['videoUrl'] userWeibo['title'] = item['title'] userWeibo['sinaId'] = item['sinaId'] userWeibo['sinaName'] = item['sinaName'] userWeibo['weiboId'] = item['weiboId'] userWeibo['comment'] = item['comment'] userWeibo['friendId'] = item['friendId'] userWeibo['friendName'] = item['friendName'] userWeibo['friendScreenName'] = item['friendScreenName'] userWeibo['friendProfileImageUrl'] = item['friendProfileImageUrl'] if 'cover_image' in item: userWeibo['friendCoverImageUrl'] = item['friendCoverImageUrl'] userWeibo['friendGender'] = item['friendGender'] userWeibo['repostsCount'] = item['repostsCount'] userWeibo['commentsCount'] = item['commentsCount'] userWeibo['attitudesCount'] = item['attitudesCount'] if 'videoScreenshotUrl' in item: userWeibo['videoScreenshotUrl'] = item['videoScreenshotUrl'] if 'retweetedFriendId' in item: userWeibo['retweetedFriendId'] = item['retweetedFriendId'] userWeibo['retweetedFriendName'] = item['retweetedFriendName'] userWeibo['retweetedFriendScreenName'] = item['retweetedFriendScreenName'] userWeibo['retweetedFriendProfileImageUrl'] = item['retweetedFriendProfileImageUrl'] if 'cover_image' in item: userWeibo['retweetedFriendCoverImageUrl'] = item['retweetedFriendCoverImageUrl'] userWeibo['retweetedFriendGender'] = item['retweetedFriendGender'] userWeibo['createTime'] = getCurTime() userWeibo['modifyTime'] = getCurTime() timeList = item['created_at'].split(' ') del timeList[-2] strTime = ' '.join(timeList) weiboTime = time.strptime(strTime, "%a %b %d %H:%M:%S %Y") timeStamp = time.mktime(weiboTime) userWeibo['updateTime'] = getCurTime()#datetime.datetime.fromtimestamp(timeStamp).strftime('%Y%m%d%H%M%S') return userWeibo.getInsertDict() def buildResource(url,title,channelId,videoType,videoId,type): resource = Resource() resource['resourceName'] = title resource['resourceUrl'] = url resource['channelId'] = channelId resource['type'] = type resource['videoType'] = videoType resource['videoId'] = videoId resource['createTime'] = getCurTime() resource['modifyTime'] = getCurTime() return resource.getInsertDict() def buildGifResource(url,title,channelId,videoId, resourceImageUrl): resource = Resource() resource['resourceName'] = title resource['resourceUrl'] = url resource['channelId'] = channelId resource['type'] = 'gif' resource['videoType'] = 'gif' resource['videoId'] = videoId#videoUrl resource['createTime'] = getCurTime() resource['modifyTime'] = getCurTime() resource['resourceImageUrl'] = resourceImageUrl return resource.getInsertDict() if __name__ == '__main__': pprint.pprint(handleGif(0,'2.00JAa2ACfsSuoB59e11ed8f40Kt3ip','3625753381928262', '1837408945', '__刘潇')) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40760"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">4,587,025,072,512</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">36e2a4d1425f41018b79c6bd10631c6112137d5d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">1643f3c0e0b1898e399ce36a627374b5e61a1901</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/idipmap.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">bf5043a92b17e3875a19247f7d89755646c9b356</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">svk/idip</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/svk/idip</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">8bd987213b393eae38ab95570ce8ccd815a27bb6</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5ec8a7080d5864a503ce7584c3a89ca251552026</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-09-05T23:40:46.573333</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2010-02-15T11:13:13</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2010-02-15T11:13:13</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">518,524</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from idip import Board, Nation, Province def createStandardBoard(): board = Board() board.addNation( Nation( "France", adjective = "French" ) ) board.addNation( Nation( "England", adjective = "English" ) ) board.addNation( Nation( "Germany", adjective = "German" ) ) board.addNation( Nation( "Russia", adjective = "Russian" ) ) board.addNation( Nation( "Austria", adjective = "Austrian" ) ) board.addNation( Nation( "Turkey", adjective = "Turkish" ) ) board.addNation( Nation( "Italy", adjective = "Italian" ) ) provinces = [ # Africa Province( "Naf", "North Africa" ).addCoast(), Province( "Tun", "Tunis" ).makeSupply().addCoast(), # Austria Province( "Boh", "Bohemia" ), Province( "Bud", "Budapest" ).makeSupply(), Province( "Gal", "Galicia" ), Province( "Tri", "Trieste" ).makeSupply().addCoast(), Province( "Tyr", "Tyrolia" ), Province( "Vie", "Vienna" ).makeSupply(), # Balkans Province( "Bul", "Bulgaria" ).addCoast("EC").addCoast("SC").makeSupply(), Province( "Gre", "Greece" ).addCoast().makeSupply(), Province( "Rum", "Rumania" ).addCoast().makeSupply(), Province( "Ser", "Serbia" ).makeSupply(), Province( "Alb", "Albania" ).addCoast(), # England Province( "Cly", "Clyde" ).addCoast(), Province( "Edi", "Edinburgh" ).addCoast().makeSupply(), Province( "Lvp", "Liverpool" ).addCoast().makeSupply(), Province( "Lon", "London" ).addCoast().makeSupply(), Province( "Wal", "Wales" ).addCoast(), Province( "Yor", "Yorkshire" ).addCoast(), # France Province( "Bre", "Brest" ).addCoast().makeSupply(), Province( "Bur", "Burgundy" ), Province( "Gas", "Gascony" ).addCoast(), Province( "Mar", "Marseilles" ).addCoast().makeSupply(), Province( "Par", "Paris" ).makeSupply(), Province( "Pic", "Picardy" ).addCoast(), # Germany Province( "Ber", "Berlin" ).addCoast().makeSupply(), Province( "Kie", "Kiel" ).addCoast().makeSupply(), Province( "Mun", "Munich" ).makeSupply(), Province( "Pru", "Prussia" ).addCoast(), Province( "Ruh", "Ruhr" ), Province( "Sil", "Silesia" ), # Iberia Province( "Spa", "Spain" ).addCoast("NC").addCoast("SC").makeSupply(), Province( "Por", "Portugal" ).addCoast().makeSupply(), # Italy Province( "Apu", "Apulia" ).addCoast(), Province( "Nap", "Naples" ).addCoast().makeSupply(), Province( "Pie", "Piedmont" ).addCoast(), Province( "Rom", "Rome" ).addCoast().makeSupply(), Province( "Tus", "Tuscany" ).addCoast(), Province( "Ven", "Venice" ).addCoast().makeSupply(), # Low Countries Province( "Bel", "Belgium" ).addCoast().makeSupply(), Province( "Hol", "Holland" ).addCoast().makeSupply(), # Russia Province( "Fin", "Finland" ).addCoast(), Province( "Lvn", "Livonia" ).addCoast(), Province( "Mos", "Moscow" ).makeSupply(), Province( "Sev", "Sevastopol" ).addCoast().makeSupply(), Province( "Stp", "St. Petersburg" ).addCoast("NC").addCoast("SC").makeSupply(), Province( "Ukr", "Ukraine" ), Province( "War", "Warsaw" ).makeSupply(), # Denmark Province( "Den", "Denmark" ).addCoast().makeSupply(), Province( "Nwy", "Norway" ).addCoast().makeSupply(), Province( "Swe", "Sweden" ).addCoast().makeSupply(), # Turkey Province( "Con", "Constantinople").addCoast().makeSupply(), Province( "Ank", "Ankara").addCoast().makeSupply(), Province( "Smy", "Smyrna").addCoast().makeSupply(), Province( "Arm", "Armenia" ).addCoast(), Province( "Syr", "Syria" ).addCoast(), # Atlantic Province( "ENG", "English Channel" ), Province( "HEL", "Helgoland Blight" ), Province( "IRI", "Irish Sea" ), Province( "MAO", "Mid-Atlantic Ocean" ), Province( "NAO", "North-Atlantic Ocean" ), Province( "NTH", "North Sea" ), Province( "SKA", "Skagerrak" ), Province( "NWG", "Norwegian Sea" ), Province( "BAR", "Barents Sea" ), # Baltic Province( "BAL", "Baltic Sea" ), Province( "BOT", "Gulf of Bothnia" ), # Mediterranean Province( "BLA", "Black Sea" ), Province( "AEG", "Aegean Sea" ), Province( "ADR", "Adriatic Sea" ), Province( "EAS", "Eastern Mediterranean Sea" ), Province( "LYO", "Gulf of Lyons" ), Province( "ION", "Ionian Sea" ), Province( "TYS", "Tyrrhenian Sea" ), Province( "WES", "Western Mediterranean Sea" ), ] for province in provinces: board.addProvince( province ) board.provinces.Lvp.setUnit( board.nations.England, "army" ) board.provinces.Edi.coast().setUnit( board.nations.England, "fleet" ) board.provinces.Lon.coast().setUnit( board.nations.England, "fleet" ) board.nations.England.addHome( board.provinces.Lvp ) board.nations.England.addHome( board.provinces.Edi ) board.nations.England.addHome( board.provinces.Lon ) board.provinces.Par.setUnit( board.nations.France, "army" ) board.provinces.Mar.setUnit( board.nations.France, "army" ) board.provinces.Bre.coast().setUnit( board.nations.France, "fleet" ) board.nations.France.addHome( board.provinces.Par ) board.nations.France.addHome( board.provinces.Mar ) board.nations.France.addHome( board.provinces.Bre ) board.provinces.Mun.setUnit( board.nations.Germany, "army" ) board.provinces.Ber.setUnit( board.nations.Germany, "army" ) board.provinces.Kie.coast().setUnit( board.nations.Germany, "fleet" ) board.nations.Germany.addHome( board.provinces.Mun ) board.nations.Germany.addHome( board.provinces.Ber ) board.nations.Germany.addHome( board.provinces.Kie ) board.provinces.Ven.setUnit( board.nations.Italy, "army" ) board.provinces.Rom.setUnit( board.nations.Italy, "army" ) board.provinces.Nap.coast().setUnit( board.nations.Italy, "fleet" ) board.nations.Italy.addHome( board.provinces.Ven ) board.nations.Italy.addHome( board.provinces.Rom ) board.nations.Italy.addHome( board.provinces.Nap ) board.provinces.Vie.setUnit( board.nations.Austria, "army" ) board.provinces.Bud.setUnit( board.nations.Austria, "army" ) board.provinces.Tri.coast().setUnit( board.nations.Austria, "fleet" ) board.nations.Austria.addHome( board.provinces.Vie ) board.nations.Austria.addHome( board.provinces.Bud ) board.nations.Austria.addHome( board.provinces.Tri ) board.provinces.Con.setUnit( board.nations.Turkey, "army" ) board.provinces.Smy.setUnit( board.nations.Turkey, "army" ) board.provinces.Ank.coast().setUnit( board.nations.Turkey, "fleet" ) board.nations.Turkey.addHome( board.provinces.Con ) board.nations.Turkey.addHome( board.provinces.Smy ) board.nations.Turkey.addHome( board.provinces.Ank ) board.provinces.War.setUnit( board.nations.Russia, "army" ) board.provinces.Mos.setUnit( board.nations.Russia, "army" ) board.provinces.Sev.coast().setUnit( board.nations.Russia, "fleet" ) board.provinces.Stp.coast("SC").setUnit( board.nations.Russia, "fleet" ) board.nations.Russia.addHome( board.provinces.War ) board.nations.Russia.addHome( board.provinces.Mos ) board.nations.Russia.addHome( board.provinces.Sev ) board.nations.Russia.addHome( board.provinces.Stp ) # Turkey board.provinces.Ank.coast().link( board.provinces.Con.coast() ) board.provinces.Con.coast().link( board.provinces.Smy.coast() ) board.provinces.Ank.coast().link( board.provinces.BLA ) board.provinces.Con.coast().link( board.provinces.BLA ) board.provinces.Con.coast().link( board.provinces.AEG ) board.provinces.Smy.coast().link( board.provinces.AEG ) board.provinces.Smy.coast().link( board.provinces.EAS ) board.provinces.Con.link( board.provinces.Ank ) board.provinces.Con.link( board.provinces.Smy ) board.provinces.Smy.link( board.provinces.Ank ) board.provinces.Ank.link( board.provinces.Arm ) board.provinces.Arm.link( board.provinces.Smy ) board.provinces.Smy.link( board.provinces.Syr ) board.provinces.Syr.link( board.provinces.Arm ) board.provinces.Con.link( board.provinces.Bul ) # Russia board.provinces.Stp.coast("NC").link( board.provinces.BAR ) board.provinces.Stp.coast("SC").link( board.provinces.BOT ) board.provinces.Lvn.coast().link( board.provinces.BOT ) board.provinces.Lvn.coast().link( board.provinces.BAL ) board.provinces.Sev.coast().link( board.provinces.BLA ) board.provinces.Lvn.link( board.provinces.War ) board.provinces.Lvn.link( board.provinces.Mos ) board.provinces.Lvn.link( board.provinces.Stp ) board.provinces.War.link( board.provinces.Ukr ) board.provinces.War.link( board.provinces.Mos ) board.provinces.Ukr.link( board.provinces.War ) board.provinces.Ukr.link( board.provinces.Mos ) board.provinces.Ukr.link( board.provinces.Sev ) board.provinces.Sev.link( board.provinces.Mos ) board.provinces.Sev.link( board.provinces.Ukr ) board.provinces.Sev.link( board.provinces.Arm ) # Coasts board.provinces.Stp.coast("NC").link( board.provinces.BAR ) board.provinces.Stp.coast("NC").link( board.provinces.Nwy.coast() ) board.provinces.Nwy.coast().link( board.provinces.BAR ) board.provinces.Nwy.coast().link( board.provinces.NWG ) board.provinces.Nwy.coast().link( board.provinces.NTH ) board.provinces.Nwy.coast().link( board.provinces.SKA ) board.provinces.Nwy.coast().link( board.provinces.Swe.coast() ) board.provinces.Swe.coast().link( board.provinces.SKA ) board.provinces.Swe.coast().link( board.provinces.Den.coast() ) board.provinces.Swe.coast().link( board.provinces.BAL ) board.provinces.Swe.coast().link( board.provinces.BOT ) board.provinces.Swe.coast().link( board.provinces.Fin.coast() ) board.provinces.Fin.coast().link( board.provinces.BOT ) board.provinces.Fin.coast().link( board.provinces.Stp.coast("SC") ) board.provinces.Stp.coast("SC").link( board.provinces.BOT ) board.provinces.Stp.coast("SC").link( board.provinces.Lvn.coast() ) board.provinces.Lvn.coast().link( board.provinces.BOT ) board.provinces.Lvn.coast().link( board.provinces.BAL ) board.provinces.Lvn.coast().link( board.provinces.Pru.coast() ) board.provinces.Pru.coast().link( board.provinces.BAL ) board.provinces.Pru.coast().link( board.provinces.Ber.coast() ) board.provinces.Ber.coast().link( board.provinces.BAL ) board.provinces.Ber.coast().link( board.provinces.Kie.coast() ) board.provinces.Kie.coast().link( board.provinces.BAL ) board.provinces.Kie.coast().link( board.provinces.HEL ) board.provinces.Kie.coast().link( board.provinces.Den.coast() ) board.provinces.Den.coast().link( board.provinces.BAL ) board.provinces.Den.coast().link( board.provinces.SKA ) board.provinces.Den.coast().link( board.provinces.NTH ) board.provinces.Den.coast().link( board.provinces.HEL ) board.provinces.Den.coast().link( board.provinces.Kie.coast() ) board.provinces.Kie.coast().link( board.provinces.Hol.coast() ) board.provinces.Hol.coast().link( board.provinces.NTH ) board.provinces.Hol.coast().link( board.provinces.HEL ) board.provinces.Hol.coast().link( board.provinces.Bel.coast() ) board.provinces.Bel.coast().link( board.provinces.NTH ) board.provinces.Bel.coast().link( board.provinces.ENG ) board.provinces.Bel.coast().link( board.provinces.Pic.coast() ) board.provinces.Pic.coast().link( board.provinces.ENG ) board.provinces.Pic.coast().link( board.provinces.Bre.coast() ) board.provinces.Bre.coast().link( board.provinces.ENG ) board.provinces.Bre.coast().link( board.provinces.MAO ) board.provinces.Bre.coast().link( board.provinces.Gas.coast() ) board.provinces.Gas.coast().link( board.provinces.MAO ) board.provinces.Gas.coast().link( board.provinces.Spa.coast("NC") ) board.provinces.Spa.coast("NC").link( board.provinces.MAO ) board.provinces.Spa.coast("NC").link( board.provinces.Por ) board.provinces.Por.coast().link( board.provinces.MAO ) board.provinces.Por.coast().link( board.provinces.Spa.coast("SC") ) board.provinces.Spa.coast("SC").link( board.provinces.MAO ) board.provinces.Spa.coast("SC").link( board.provinces.WES ) board.provinces.Spa.coast("SC").link( board.provinces.LYO ) board.provinces.Spa.coast("SC").link( board.provinces.Mar.coast() ) board.provinces.Mar.coast().link( board.provinces.LYO ) board.provinces.Mar.coast().link( board.provinces.Pie.coast() ) board.provinces.Pie.coast().link( board.provinces.LYO ) board.provinces.Pie.coast().link( board.provinces.Tus.coast() ) board.provinces.Tus.coast().link( board.provinces.LYO ) board.provinces.Tus.coast().link( board.provinces.TYS ) board.provinces.Tus.coast().link( board.provinces.Rom.coast() ) board.provinces.Rom.coast().link( board.provinces.TYS ) board.provinces.Rom.coast().link( board.provinces.Nap.coast() ) board.provinces.Nap.coast().link( board.provinces.TYS ) board.provinces.Nap.coast().link( board.provinces.ION ) board.provinces.Nap.coast().link( board.provinces.Apu.coast() ) board.provinces.Apu.coast().link( board.provinces.ION ) board.provinces.Apu.coast().link( board.provinces.ADR ) board.provinces.Apu.coast().link( board.provinces.Ven.coast() ) board.provinces.Ven.coast().link( board.provinces.ADR ) board.provinces.Ven.coast().link( board.provinces.Tri.coast() ) board.provinces.Tri.coast().link( board.provinces.ADR ) board.provinces.Tri.coast().link( board.provinces.Alb.coast() ) board.provinces.Alb.coast().link( board.provinces.ADR ) board.provinces.Alb.coast().link( board.provinces.ION ) board.provinces.Alb.coast().link( board.provinces.Gre.coast() ) board.provinces.Gre.coast().link( board.provinces.ION ) board.provinces.Gre.coast().link( board.provinces.AEG ) board.provinces.Gre.coast().link( board.provinces.Bul.coast("SC") ) board.provinces.Bul.coast("SC").link( board.provinces.AEG ) board.provinces.Bul.coast("SC").link( board.provinces.Con.coast() ) board.provinces.Con.coast().link( board.provinces.AEG ) board.provinces.Con.coast().link( board.provinces.Bul.coast("EC") ) board.provinces.Con.coast().link( board.provinces.BLA ) board.provinces.Bul.coast("EC").link( board.provinces.BLA ) board.provinces.Bul.coast("EC").link( board.provinces.Rum.coast() ) board.provinces.Rum.coast().link( board.provinces.BLA ) board.provinces.Rum.coast().link( board.provinces.Sev.coast() ) board.provinces.Sev.coast().link( board.provinces.BLA ) board.provinces.Sev.coast().link( board.provinces.Arm.coast() ) board.provinces.Arm.coast().link( board.provinces.BLA ) board.provinces.Arm.coast().link( board.provinces.Ank.coast() ) board.provinces.Ank.coast().link( board.provinces.BLA ) board.provinces.Ank.coast().link( board.provinces.Con.coast() ) board.provinces.Con.coast().link( board.provinces.Smy.coast() ) board.provinces.Smy.coast().link( board.provinces.AEG ) board.provinces.Smy.coast().link( board.provinces.EAS ) board.provinces.Smy.coast().link( board.provinces.Syr.coast() ) board.provinces.Syr.coast().link( board.provinces.EAS ) board.provinces.Naf.coast().link( board.provinces.MAO ) board.provinces.Naf.coast().link( board.provinces.WES ) board.provinces.Naf.coast().link( board.provinces.Tun.coast() ) board.provinces.Tun.coast().link( board.provinces.WES ) board.provinces.Tun.coast().link( board.provinces.TYS ) board.provinces.Tun.coast().link( board.provinces.ION ) board.provinces.Cly.coast().link( board.provinces.NWG ) board.provinces.Cly.coast().link( board.provinces.NAO ) board.provinces.Cly.coast().link( board.provinces.Lvp.coast() ) board.provinces.Lvp.coast().link( board.provinces.NAO ) board.provinces.Lvp.coast().link( board.provinces.IRI ) board.provinces.Lvp.coast().link( board.provinces.Wal.coast() ) board.provinces.Wal.coast().link( board.provinces.IRI ) board.provinces.Wal.coast().link( board.provinces.ENG ) board.provinces.Wal.coast().link( board.provinces.Lon.coast() ) board.provinces.Lon.coast().link( board.provinces.ENG ) board.provinces.Lon.coast().link( board.provinces.NTH ) board.provinces.Lon.coast().link( board.provinces.Yor.coast() ) board.provinces.Yor.coast().link( board.provinces.NTH ) board.provinces.Yor.coast().link( board.provinces.Edi.coast() ) board.provinces.Edi.coast().link( board.provinces.NTH ) board.provinces.Edi.coast().link( board.provinces.NWG ) board.provinces.Edi.coast().link( board.provinces.Cly.coast() ) # Ocean links board.provinces.BAR.linkMultiple( [ board.provinces.NWG ] ) board.provinces.NWG.linkMultiple( [ board.provinces.BAR, board.provinces.NAO, board.provinces.NTH ] ) board.provinces.NAO.linkMultiple( [ board.provinces.NWG, board.provinces.IRI, board.provinces.MAO ] ) board.provinces.NTH.linkMultiple( [ board.provinces.NWG, board.provinces.SKA, board.provinces.HEL, board.provinces.ENG ] ) board.provinces.SKA.linkMultiple( [ board.provinces.NTH ] ) board.provinces.BAL.linkMultiple( [ board.provinces.BOT ] ) board.provinces.BOT.linkMultiple( [ board.provinces.BAL ] ) board.provinces.HEL.linkMultiple( [ board.provinces.NTH ] ) board.provinces.IRI.linkMultiple( [ board.provinces.NAO, board.provinces.MAO, board.provinces.ENG ] ) board.provinces.MAO.linkMultiple( [ board.provinces.NAO, board.provinces.IRI, board.provinces.ENG, board.provinces.WES ] ) board.provinces.WES.linkMultiple( [ board.provinces.MAO, board.provinces.LYO, board.provinces.TYS ] ) board.provinces.LYO.linkMultiple( [ board.provinces.WES, board.provinces.TYS ] ) board.provinces.TYS.linkMultiple( [ board.provinces.WES, board.provinces.LYO, board.provinces.ION ] ) board.provinces.ION.linkMultiple( [ board.provinces.TYS, board.provinces.ADR, board.provinces.AEG, board.provinces.EAS ] ) board.provinces.ADR.linkMultiple( [ board.provinces.ION ] ) board.provinces.AEG.linkMultiple( [ board.provinces.ION, board.provinces.EAS ] ) board.provinces.EAS.linkMultiple( [ board.provinces.ION, board.provinces.AEG ] ) board.provinces.BLA.linkMultiple( [] ) board.provinces.Nwy.linkMultiple( [ board.provinces.Swe, board.provinces.Fin, board.provinces.Stp, ] ) board.provinces.Swe.linkMultiple( [ board.provinces.Nwy, board.provinces.Den, board.provinces.Fin, ] ) board.provinces.Fin.linkMultiple( [ board.provinces.Nwy, board.provinces.Swe, board.provinces.Stp, ] ) board.provinces.Stp.linkMultiple( [ board.provinces.Nwy, board.provinces.Fin, board.provinces.Lvn, board.provinces.Mos, ] ) board.provinces.Lvn.linkMultiple( [ board.provinces.Pru, board.provinces.War, board.provinces.Mos, board.provinces.Stp, ] ) board.provinces.Mos.linkMultiple( [ board.provinces.Stp, board.provinces.Lvn, board.provinces.War, board.provinces.Ukr, board.provinces.Sev, ] ) board.provinces.Sev.linkMultiple( [ board.provinces.Mos, board.provinces.Ukr, board.provinces.Rum, board.provinces.Arm, ] ) board.provinces.Arm.linkMultiple( [ board.provinces.Sev, board.provinces.Ank, board.provinces.Smy, board.provinces.Syr, ] ) board.provinces.Ank.linkMultiple( [ board.provinces.Con, board.provinces.Smy, board.provinces.Arm, ] ) board.provinces.Smy.linkMultiple( [ board.provinces.Con, board.provinces.Ank, board.provinces.Arm, board.provinces.Syr, ] ) board.provinces.Syr.linkMultiple( [ board.provinces.Arm, board.provinces.Smy, ] ) board.provinces.Con.linkMultiple( [ board.provinces.Bul, board.provinces.Smy, board.provinces.Ank, ] ) board.provinces.Bul.linkMultiple( [ board.provinces.Con, board.provinces.Gre, board.provinces.Ser, board.provinces.Rum, ] ) board.provinces.Rum.linkMultiple( [ board.provinces.Bul, board.provinces.Ser, board.provinces.Bud, board.provinces.Gal, board.provinces.Ukr, board.provinces.Sev, ] ) board.provinces.Ukr.linkMultiple( [ board.provinces.War, board.provinces.Mos, board.provinces.Sev, board.provinces.Rum, board.provinces.Gal, ] ) board.provinces.Pru.linkMultiple( [ board.provinces.Ber, board.provinces.Sil, board.provinces.War, board.provinces.Lvn, ] ) board.provinces.War.linkMultiple( [ board.provinces.Pru, board.provinces.Sil, board.provinces.Gal, board.provinces.Ukr, board.provinces.Mos, board.provinces.Lvn, ] ) board.provinces.Gal.linkMultiple( [ board.provinces.Sil, board.provinces.Boh, board.provinces.Vie, board.provinces.Bud, board.provinces.Rum, board.provinces.Ukr, board.provinces.War, ] ) board.provinces.Bud.linkMultiple( [ board.provinces.Gal, board.provinces.Vie, board.provinces.Tri, board.provinces.Ser, board.provinces.Rum, ] ) board.provinces.Ser.linkMultiple( [ board.provinces.Bud, board.provinces.Tri, board.provinces.Alb, board.provinces.Gre, board.provinces.Bul, board.provinces.Rum, ] ) board.provinces.Alb.linkMultiple( [ board.provinces.Tri, board.provinces.Ser, board.provinces.Gre, ] ) board.provinces.Gre.linkMultiple( [ board.provinces.Alb, board.provinces.Ser, board.provinces.Bul, ] ) board.provinces.Sil.linkMultiple( [ board.provinces.Pru, board.provinces.Ber, board.provinces.Mun, board.provinces.Boh, board.provinces.Gal, board.provinces.War, ] ) board.provinces.Boh.linkMultiple( [ board.provinces.Sil, board.provinces.Mun, board.provinces.Tyr, board.provinces.Vie, board.provinces.Gal, ] ) board.provinces.Vie.linkMultiple( [ board.provinces.Boh, board.provinces.Tyr, board.provinces.Tri, board.provinces.Bud, board.provinces.Gal, ] ) board.provinces.Tri.linkMultiple( [ board.provinces.Alb, board.provinces.Ser, board.provinces.Bud, board.provinces.Vie, board.provinces.Tyr, board.provinces.Ven, ] ) board.provinces.Ber.linkMultiple( [ board.provinces.Kie, board.provinces.Mun, board.provinces.Sil, board.provinces.Pru, ] ) board.provinces.Kie.linkMultiple( [ board.provinces.Ber, board.provinces.Mun, board.provinces.Ruh, board.provinces.Hol, board.provinces.Den, ] ) board.provinces.Den.linkMultiple( [ board.provinces.Kie, board.provinces.Swe, ] ) board.provinces.Hol.linkMultiple( [ board.provinces.Bel, board.provinces.Ruh, board.provinces.Kie, ] ) board.provinces.Ruh.linkMultiple( [ board.provinces.Bel, board.provinces.Hol, board.provinces.Kie, board.provinces.Mun, board.provinces.Bur, ] ) board.provinces.Bel.linkMultiple( [ board.provinces.Pic, board.provinces.Bur, board.provinces.Ruh, board.provinces.Hol, ] ) board.provinces.Tyr.linkMultiple( [ board.provinces.Boh, board.provinces.Mun, board.provinces.Vie, board.provinces.Tri, board.provinces.Ven, board.provinces.Pie, ] ) board.provinces.Pie.linkMultiple( [ board.provinces.Mar, board.provinces.Tyr, board.provinces.Ven, board.provinces.Tus, ] ) board.provinces.Tus.linkMultiple( [ board.provinces.Pie, board.provinces.Ven, board.provinces.Rom, ] ) board.provinces.Ven.linkMultiple( [ board.provinces.Tyr, board.provinces.Tri, board.provinces.Pie, board.provinces.Tus, board.provinces.Rom, board.provinces.Apu, ] ) board.provinces.Rom.linkMultiple( [ board.provinces.Tus, board.provinces.Ven, board.provinces.Apu, board.provinces.Nap, ] ) board.provinces.Apu.linkMultiple( [ board.provinces.Ven, board.provinces.Rom, board.provinces.Nap, ] ) board.provinces.Nap.linkMultiple( [ board.provinces.Rom, board.provinces.Apu, ] ) board.provinces.Pic.linkMultiple( [ board.provinces.Bel, board.provinces.Bur, board.provinces.Par, board.provinces.Bre, ] ) board.provinces.Bur.linkMultiple( [ board.provinces.Pic, board.provinces.Par, board.provinces.Gas, board.provinces.Mar, board.provinces.Mun, board.provinces.Ruh, board.provinces.Bel, ] ) board.provinces.Mar.linkMultiple( [ board.provinces.Spa, board.provinces.Gas, board.provinces.Bur, board.provinces.Pie, ] ) board.provinces.Spa.linkMultiple( [ board.provinces.Por, board.provinces.Gas, board.provinces.Mar, ] ) board.provinces.Por.linkMultiple( [ board.provinces.Spa, ] ) board.provinces.Gas.linkMultiple( [ board.provinces.Spa, board.provinces.Mar, board.provinces.Bur, board.provinces.Par, board.provinces.Bre, ] ) board.provinces.Bre.linkMultiple( [ board.provinces.Pic, board.provinces.Par, board.provinces.Gas, ] ) board.provinces.Naf.linkMultiple( [ board.provinces.Tun, ] ) board.provinces.Tun.linkMultiple( [ board.provinces.Naf, ] ) board.provinces.Wal.linkMultiple( [ board.provinces.Lon, board.provinces.Yor, board.provinces.Lvp, ] ) board.provinces.Lvp.linkMultiple( [ board.provinces.Wal, board.provinces.Yor, board.provinces.Edi, board.provinces.Cly, ] ) board.provinces.Lon.linkMultiple( [ board.provinces.Wal, board.provinces.Yor, ] ) board.provinces.Yor.linkMultiple( [ board.provinces.Lon, board.provinces.Wal, board.provinces.Lvp, board.provinces.Edi, ] ) board.provinces.Edi.linkMultiple( [ board.provinces.Cly, board.provinces.Lvp, board.provinces.Yor, ] ) board.provinces.Cly.linkMultiple( [ board.provinces.Edi, board.provinces.Lvp, ] ) return board if __name__ == '__main__': board = createStandardBoard() for line in board.exportState(): print( line ) print() nblist = [] for province in board.provinces.values(): nblist.append( (len( province.neighbours()), province.displayName ) ) nblist.sort() for n, name in nblist: print( name, n ) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,010</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40761"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">3,934,190,083,167</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7a3e747af7c6828e2f9ec0b38d0a64f1769d6a72</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">23cb08eca99453ee65940c605201bab1b72e432c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/experiments/accuracy/sse_slicetree</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">95506255a91f36d79b350482c7b99624fa5c41d9</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ucsb-igert/nsc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/ucsb-igert/nsc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ba3022a024b4a5ceb91bad34df5ce60a40f4b000</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">aadfb2eb5cb504641232774de3840ed65e16abb2</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-18T20:30:16.047595</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-08-24T08:02:49</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-08-24T08:02:49</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">22,618,562</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/bin/env python2.7 """ Runs the accuracy experiment. Author: Jason White """ from __future__ import print_function, unicode_literals, absolute_import, division # Add project directory to the python path. from os import path, pipe import os import sys sys.path.append(path.dirname(path.realpath(path.join(__file__, '../..')))) import tools.plotter as plotter from time import time import algorithms.slicetree as st import algorithms.fourier.fourier as fourier import subprocess import tools.graph_reader as graph_reader import tools.reduce as r def slice_tree_sse(data_file, graph_file, slices): args = st.greedy(data_file, graph_file, partsizes, numpart=slices, radius=2, numthreads=16) output = subprocess.check_output(args) results = st.parse_output(output) return results["budget"], results["sse"] def parse_arguments(): import argparse parser = argparse.ArgumentParser( description="Computes the SSE for a range of budgets on the given dataset." ) parser.add_argument("data", help="Data input file.") parser.add_argument("graph", help="Graph input file.") return parser.parse_args() if __name__ == "__main__": args = parse_arguments() data_file, graph_file = args.data, args.graph # Pre-compute partition sizes partsizes = path.join("/tmp", path.splitext(path.basename(data_file))[0] + ".sizes") subprocess.check_call(st.precompute(data_file, graph_file, partsizes)) # Find the number of nodes in the graph with open(data_file, "r") as fdata: num_nodes = graph_reader.count_nodes(fdata) for i in range(2, num_nodes, 100): budget, sse = slice_tree_sse(data_file, graph_file, i) print("%d,%d" % (budget, sse)) sys.stdout.flush() if sse == 0: break # Delete pre-computed partition sizes os.remove(partsizes) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40762"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">18,889,266,168,607</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">df757665fde430da1f4611880abf6a4fa51943c4</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c49e6b0b973262405350bbd70b51b799f6696cc0</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/ace/solvers.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">9f6b2b0f62bbf2f59fc98af64ab6f1ca9eff7b2d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "Unlicense" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">dingliumath/ace</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/dingliumath/ace</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">0b108b62782d070e2aa8f4803e2aaa6ad2828e26</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">60e934304b94614c435c7f3da60e3ea13622173e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-10-18T06:29:48.006311</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-12-01T03:39:52</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-12-01T03:39:52</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">""" ace.solvers ~~~~~~~~~~~ Solve a simple linear equation Ax = b in a particular way """ from numpy import append, array, diagonal, tril, triu from numpy.linalg import inv, solve from scipy.linalg import lu def lu_decomposition(a, b): """ Solve a linear equation by LU-decomposition Comes from LU decomposition of a matrix A s.t. A = LU Then LUx = b => Ux = y => Ly = b """ _, l, u = lu(a) y = solve(l, b) return solve(u, y) def gauss_seidel(a, b, iterations, x=None): """ Solve a linear equation by the gauss seidel iteration outlined in the book Follows the eq: x = inv(L)*(b - U*x) """ l = tril(a) upper_plus_diagonal = triu(a) u = upper_plus_diagonal - _diagonal_matrix(a) x = _check_for_initial_guess(a, x) for _ in xrange(iterations): x = inv(l).dot(b - u.dot(x)) return x def gauss_jacobi(a, b, iterations, x=None): """ Solve a linear equation by the gauss jacobi iteration outlined in the book. Follows the eq: x = inv(D)(b - Rx) Where D is the diagonal matrix of A and R is the remainder s.t D + R = A """ d = _diagonal_matrix(a) # Calculate the remainder matrix r = a - d x = _check_for_initial_guess(a, x) for _ in xrange(iterations): x = inv(d).dot(b - r.dot(x)) return x def _diagonal_matrix(a): """ Given a square, 2D matrix a, create a diagonal matrix from it """ diag = diagonal(a) # Create first row to initialize the correct shape first_row = [diag[0]] + [0 for _ in range(len(diag) - 1)] diag_matrix = array([first_row]) # Construct the remaining rows in the diagonal matrix for index in range(1, len(diag)): row = [0 if index != i else diag[i] for i in range(len(diag))] diag_matrix = append(diag_matrix, [row], axis=0) return diag_matrix def _check_for_initial_guess(a, x): """ If we have not provided an initial array for x make a new one """ if not x: x = array([1 for _ in range(a.shape[1])]) return x </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40763"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">11,562,051,981,995</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">df937304b9d1bb3e93a058c337ec400f735a3399</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">69d1741e29bea4db8e48e4902b5c1a9add351d28</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/ProjectEuler/Problem91.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">9cd75c023206967fbe8ca7b00a2486554c99c57e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">soedjais/dodysw-hg</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/soedjais/dodysw-hg</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">619e63adfe9f791025e4040fe65673833e7be44f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">901cce406c401d1403a88afb2d3d736f887fc239</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-12-25T05:35:43.872612</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2011-02-08T00:48:15</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2011-02-08T00:48:15</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">""" for 2x2: 00 10 01 00 10 11 00 10 02 00 10 12 00 20 01 00 20 11 00 20 21 00 20 02 00 20 22 00 11 01 00 21 01 00 11 02 00 12 02 00 22 02 a^2 + b^2 = c^2 00 01 10 v1,v2,v3 1, 1, sqr(2) sorted: 00 01 10 00 01 11 00 01 12 X 00 01 20 00 01 21 00 01 22 X 00 02 10 00 02 11 00 02 12 00 02 20 00 02 21 X 00 02 22 00 10 11 00 10 12 00 10 20 X 00 11 20 00 20 21 00 20 22 ------ """ from time import time st = time() def is_rightangle(c1,c2,c3): #convert point c to vector v v1 = c2[0] - c1[0], c2[1] - c1[1] v2 = c3[0] - c2[0], c3[1] - c2[1] v3 = c1[0] - c3[0], c1[1] - c3[1] #square distance sqd1 = v1[0]**2 + v1[1]**2 sqd2 = v2[0]**2 + v2[1]**2 sqd3 = v3[0]**2 + v3[1]**2 #the longest vector must equal sum of the others return sqd1 + sqd2 + sqd3 - 2*max(sqd1,sqd2,sqd3) == 0 #BjornEdstrom (fasteR) #return sqd1 + sqd2 == sqd3 or sqd1 + sqd3 == sqd2 or sqd3 + sqd2 == sqd1 def is_rightangle_from_origin(p0,p1): """ a^2 + b^2 = c^2 x0y0 is at 90deg angle, x2y2 is origin (0,0) a^2 = square distance between origin and x0y0 = x0^2 + y0^2 b^2 = square distance between x0y0 and x1y1 = (x1-x0)^2 + (y1-y0)^2 c^2 = square distance between origin and x1y1 = x1^2 + y1^2 plug them together and simplify... x0^2 + y0^2 - x1*x0 - y1*y0 = 0 """ x0,y0 = p0 x1,y1 = p1 return x0**2 + y0**2 - x1*x0 - y1*y0 == 0 def distance(v): #calculate vector distance return (v[0]**2+v[1]**2)**0.5 from itertools import combinations, product total = 0 for c in combinations(product(range(50+1),repeat=2), 3): if c[0] != (0,0): break # if is_rightangle(*c): total += 1 print "ans:", total #14234 print time() - st</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,011</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40764"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,602,750,208,844</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">52e003876b04b40ce31b4a8d2872b49af596130d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">79a023b00d09a18212bb3b9eb4ba82482bffdf6c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/squirrel/app.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">21b9e019550aad98f94c4ba10b84c1f6133f1e7b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">shonenada/squirrel</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/shonenada/squirrel</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">eca07f04613b6aabb514bdbcdf00eb0243b1346f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">3aa46c3192d3d271a641abb0a74fd76bb6868cf6</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">HEAD</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-03-25T10:48:45.498124</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-08-31T09:04:13</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-08-31T09:04:13</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">import os from flask import Flask from squirrel.exts import setup_database from squirrel.utils.time import format_datetime from squirrel.master.views import master_app from squirrel.blog.views import blog_app def create_app(import_name=None, config=None): app = Flask(import_name or __name__) app.config.from_object('squirrel.conf.settings') if isinstance(config, dict): app.config.update(config) elif config: app.config.from_pyfile(os.path.abspath(config)) setup_database(app) init_jinja(app) app.register_blueprint(master_app) app.register_blueprint(blog_app) return app def init_jinja(app): _jinja_filters = { 'date': format_datetime, } _jinja_global = { 'site_title': app.config.get('SITE_TITLE'), 'site_keyword': app.config.get('SITE_KEYWORD'), 'site_description': app.config.get('SITE_DESCRIPTION'), } def setup_filters(app): for _fname, _ffunc in _jinja_filters.iteritems(): app.add_template_filter(_ffunc, _fname) def setup_global_variables(app): for _gname, _gvalue in _jinja_global.iteritems(): app.jinja_env.globals[_gname] = _gvalue setup_filters(app) setup_global_variables(app) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40765"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1,838,246,007,321</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a7d31b12538a19956a125d24f7220fe1bc342ba5</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">bbe447a740929eaee1955bd9c1517cf760dd5cb9</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/aralib/adwordsApi/examples/v201003/set_campaign_targets.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">486f2cae1310e4aa108a6a51114a49659e02cea8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "Apache-2.0" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">MujaahidSalie/aranciulla</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/MujaahidSalie/aranciulla</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">f3d32e7dd68ecfca620fe4d3bf22ecb4762f5893</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">34197dfbdb01479f288611a0cb700e925c4e56ce</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-09-07T02:16:25.261598</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2011-11-01T21:20:46</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2011-11-01T21:20:46</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/python # # Copyright 2010 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # """This example adds geo, language, and network targets to a given campaign. To get campaigns, run get_all_campaigns.py. Tags: CampaignTargetService.mutate """ __author__ = '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="88e9f8e1a6fbeffae1e6eaedfaefc8efe5e9e1e4a6ebe7e5">[email protected]</a> (Stan Grinberg)' import sys sys.path.append('../..') # Import appropriate classes from the client library. from aw_api.Client import Client # Initialize client object. client = Client(path='../..') # Initialize appropriate service. campaign_target_service = client.GetCampaignTargetService( 'https://adwords-sandbox.google.com', 'v201003') campaign_id = 'INSERT_CAMPAIGN_ID_HERE' # Construct operations and set campaign targets. operations = [ { 'operator': 'SET', 'operand': { 'type': 'GeoTargetList', 'campaignId': campaign_id, 'targets': [ { 'type': 'CountryTarget', 'countryCode': 'US' }, { 'type': 'CountryTarget', 'countryCode': 'JP' } ] } }, { 'operator': 'SET', 'operand': { 'type': 'LanguageTargetList', 'campaignId': campaign_id, 'targets': [ { 'type': 'LanguageTarget', 'languageCode': 'fr' }, { 'type': 'LanguageTarget', 'languageCode': 'ja' } ] } }, { 'operator': 'SET', 'operand': { 'type': 'NetworkTargetList', 'campaignId': campaign_id, 'targets': [{ 'type': 'NetworkTarget', 'networkCoverageType': 'GOOGLE_SEARCH' }, { 'type': 'NetworkTarget', 'networkCoverageType': 'SEARCH_NETWORK' }] } } ] campaign_targets = campaign_target_service.Mutate(operations)[0] # Display results. for campaign_target in campaign_targets['value']: print ('Campaign target with id \'%s\' and of type \'%s\' was set.' % (campaign_target['campaignId'], campaign_target['TargetList_Type'])) print print ('Usage: %s units, %s operations' % (client.GetUnits(), client.GetOperations())) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,011</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40766"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">9,861,244,954,049</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">23a5769254fa15d5d4a54ac5dbdbf45938b7390f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b8fcca8492998f233dae08af7a1585d3bcefb03c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/myrepo/config.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">8110194f206c5087e3b5fff468b2aed61f456124</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "GPL-3.0-or-later" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">pombredanne/python-myrepo</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/pombredanne/python-myrepo</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">cb59112e15c61b57f0d1aed40e2c137d9480f936</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">639dcfae95c1521e5e05b81d8ca866b9223443b3</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2018-05-12T06:02:29.358756</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-10-02T03:30:37</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-10-02T03:30:37</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># # Copyright (C) 2011 - 2013 Red Hat, Inc. # Red Hat Author(s): Satoru SATOH <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="addedeccd9c2eddfc8c9c5ccd983cec2c0">[email protected]</a>> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # import myrepo.globals as G import myrepo.cmds as MC import myrepo.parser as P import rpmkit.utils as U import rpmkit.environ as E import ConfigParser as configparser import glob import itertools import logging import optparse import os import os.path _USAGE = """\ %%prog COMMAND [OPTION ...] [SRPM] Commands: %s Examples: # initialize your yum repos: %%prog init -s yumserver.local -u foo -m <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5731383817322f363a273b327934383a">[email protected]</a> -F "John Doe" # build SRPM: %%prog build packagemaker-0.1-1.src.rpm # build SRPM and deploy RPMs and SRPMs into your yum repos: %%prog deploy packagemaker-0.1-1.src.rpm %%prog d --dists rhel-6-x86_64,fedora-19-x86_64 packagemaker-0.1-1.src.rpm # build SRPM has build time dependencies to RPMs in the yum repo: %%prog b --dists fedora-19-x86_64 --selfref myrepo-0.1-1.src.rpm\ """ % MC.mk_cmd_helps_text() def _get_timeout(config): """ >>> _get_timeout(dict(timeout=10, )) 10 >>> G._CONN_LOCAL_TIMEOUT == _get_timeout(dict(hostname="localhost", )) True >>> c = dict(hostname="s.example.com", ) >>> G._CONN_REMOTE_TIMEOUT == _get_timeout(c) True :param config: Configuration object :: dict """ timeo = config.get("timeout", None) if timeo: return timeo if U.is_local(config.get("hostname", False)): return G._CONN_LOCAL_TIMEOUT else: return G._CONN_REMOTE_TIMEOUT def _is_supported(dist): """ >>> _is_supported("fedora-19-x86_64") True >>> _is_supported("fedora-19-i386") True >>> _is_supported("fedora-19-armhfp") False :param dist: Distribution label, e.g. 'fedora-19-x86_64' """ return "x86_64" in dist or "i386" in dist def _init_by_preset_defaults(): """ """ archs = E.list_archs() distributions_full = [d for d in E.list_dists() if _is_supported(d)] dists = ["%s-%s" % E.get_distribution()] distributions = ["%s-%s" % da for da in itertools.product(dists, archs)] h = E.hostname() u = E.get_username() dists_full = ','.join(distributions_full) dists_s = ','.join(distributions) (bname, bversion) = E.get_distribution() # (basename, baseversion) cfg = dict(dists=dists_s, dists_full=dists_full, dist_choices=dists_full, tpaths=[], workdir=None, dryrun=False, verbosity=1, config=None, profile=None, hostname=h, altname=None, user=u, topdir=G._SERVER_TOPDIR, baseurl=G._SERVER_BASEURL, timeout=None, reponame=G._REPONAME, genconf=True, deploy=True, fullname=E.get_fullname(), email=E.get_email(), keyid=False, repo_params=[], sign=False, selfref=False, build=True) # Overwrite some parameters: cfg["timeout"] = _get_timeout(cfg) return cfg def _init_by_config(config=None, profile=None): """ Initialize default values for options by config files loaded. :param config: Config file's path or dir name :: str :param profile: Custom profile as needed :: str """ if config is None: # Is there case that $HOME is empty? home = os.environ.get("HOME", os.curdir) confdir = os.environ.get("MYREPO_CONF_PATH", "/etc/myrepo.d") confs = ["/etc/myreporc"] confs += sorted(glob.glob(os.path.join(confdir, "*.conf"))) confs += [os.environ.get("MYREPORC", os.path.join(home, ".myreporc"))] else: if os.path.isdir(config): confs = sorted(glob.glob(os.path.join(config, "*.conf"))) else: confs = (config, ) cparser = configparser.SafeConfigParser() loaded = False for c in confs: if os.path.exists(c): logging.info("Loading config: " + c) cparser.read(c) loaded = True if not loaded: return {} if profile: logging.debug("Use profile: " + profile) d = cparser.items(profile) else: logging.debug("Use default profile") d = cparser.defaults().iteritems() return dict((k, P.parse_conf_value(v)) for k, v in d) def init(config_path=None, profile=None): """ Initialize config object. """ cfg = _init_by_preset_defaults() cfg.update(_init_by_config(config_path, profile)) return cfg def opt_parser(usage=_USAGE, conf=None): """ Make up an option parser object. >>> p = opt_parser() >>> p is not None True """ defaults = init(conf) dist_choices = defaults["dist_choices"] p = optparse.OptionParser(usage) p.set_defaults(**defaults) cog = optparse.OptionGroup(p, "Common options") cog.add_option("", "--dists", help="Comma separated distribution labels including arch " "Options are some of " + dist_choices + " [%default] ") cog.add_option("", "--reponame", help="Repository name or format string to generate name, " "e.g. %(name)s-%(server_shortaltname)-%(server_user)s," " %(name)s-custom. [%default]") cog.add_option("-T", "--tpaths", action="append", default=[], help="Specify additional template path one " "by one. These paths will have higher " "priority than the default paths.") cog.add_option("-w", "--workdir", help="Working directory to save results and log files. " "Dynamically generated dir will be used by default.") cog.add_option("", "--dryrun", action="store_true", help="Dryrun mode") cog.add_option("-q", "--quiet", action="store_const", dest="verbosity", const=0, help="Quiet mode") cog.add_option("-v", "--verbose", action="store_const", dest="verbosity", const=2, help="Verbose mode") p.add_option_group(cog) cfog = optparse.OptionGroup(p, "Configuration options") cfog.add_option("-C", "--config", help="Configuration file or dir in which config files are") cfog.add_option("-P", "--profile", help="Specify configuration profile [none]") p.add_option_group(cfog) sog = optparse.OptionGroup(p, "Repo server Options") sog.add_option("-H", "--hostname", help="Server to provide your yum repos [%default]. " "Please note that you need to specify another " "server name with --altname option if your server " "has alternative name visible for clients.") sog.add_option("", "--altname", help="Alternative hostname of the server to provide yum " "repos [%default]. Please note that this may be " "different from the hostname specified with " "--hostname option. The former (--hostname) specifies " "the hostname of the server to connect from your " "admin host while transfering built RPMs, and the " "later (--altname) specifies the hostname of the " "server yum clients will access to. The hostname " "specified with --hostname will be used by default " "if not given.") sog.add_option("-u", "--user", help="Your username on the yum repo server [%default].") sog.add_option("", "--topdir", help="Repo top dir or its format string [%default].") sog.add_option("", "--baseurl", help="Repo base URL or its format string [%default].") sog.add_option("", "--timeout", type="int", help="Timeout to connect to the server in seconds " "[%default].") p.add_option_group(sog) iog = optparse.OptionGroup(p, "Options for 'init' and 'genconf' command") iog.add_option("", "--no-genconf", action="store_false", dest="genconf", help="Do not generate yum repo metadata RPMs after " "initialization of the yum repos. NOTE: If you " "specified this option, you have to generate it w/ " "'genconf' sub command of %prog later") iog.add_option("", "--no-deploy", action="store_false", dest="deploy", help="Deploy generated yum repo metadata RPMs after " "initialization of the yum repos. This option " "with the above --no-genconf option and must not be " "specified both options at once!") iog.add_option("", "--fullname", help="Your full name [%default]") iog.add_option("", "--email", help="Your email address or its format string [%default]") iog.add_option("", "--keyid", help="Specify the GPG keyid to sign RPMs") iog.add_option("", "--repo-param", action="append", dest="repo_params", help="Other .repo file parameter definitions (key=value), " "ex. '--repo-param metadata_expire=7d " "--repo-param failovermethod=priority'.") p.add_option_group(iog) bog = optparse.OptionGroup(p, "Options for 'build' and 'deploy' command") #bog.add_option("", "--sign", action="store_true", # help="Sign built RPMs. You must specify --keyid also.") bog.add_option("", "--selfref", action="store_true", help="If specified, %prog will also use the yum repo " "itself to satisfy a portion of buildtime " "dependencies to RPMs available from this repo, " "to build given target SRPM to build.") p.add_option_group(bog) dog = optparse.OptionGroup(p, "Options for 'deploy' command") dog.add_option("", "--no-build", action="store_false", dest="build", help="Do not build given srpm, i.e., the srpm was already " "built and just deploy it") p.add_option_group(dog) return p def _find_loglevel(verbosity): """ :param verbosity: Verbosity level = 0 | 1 | 2. It's 1 by default (see also ``_init_by_preset_defaults``). :return: Logging level >>> assert logging.WARN == _find_loglevel(0) # -q/--quiet >>> assert logging.INFO == _find_loglevel(1) # default >>> assert logging.DEBUG == _find_loglevel(2) # -v/--verbose """ assert verbosity in (0, 1, 2), "Wrong verbosity level ! : %d" % verbosity return [logging.WARN, logging.INFO, logging.DEBUG][verbosity] def find_loglevel(options): """ :param options: An instance of optparse.Values created by parsing args w/ optparse.OptionParser.parse_args(). :return: Logging level """ assert isinstance(options, optparse.Values), "Wrong type object passed!" return _find_loglevel(options.verbosity) # vim:sw=4:ts=4:et: </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40767"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">12,103,217,873,751</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">cc86c323008f72ba2bf81d49e3fa203e0a08291f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">153ecce57c94724d2fb16712c216fb15adef0bc4</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/Sandbox/thefunny42/megrok.z3cpt/trunk/src/megrok/z3cpt/ftests/templates/simple.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">6bebf0c3c214bd3729aa4107892732de47384f76</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">pombredanne/zope</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/pombredanne/zope</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">10572830ba01cbfbad08b4e31451acc9c0653b39</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c53f5dc4321d5a392ede428ed8d4ecf090aab8d2</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2018-03-12T10:53:50.618672</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-11-20T21:47:22</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-11-20T21:47:22</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">""" >>> from megrok.z3cpt.ftests.templates.simple import * >>> getRootFolder()["manfred"] = Mammoth() >>> from zope.testbrowser.testing import Browser >>> browser = Browser() >>> browser.handleErrors = False >>> browser.open("http://localhost/manfred/@@painting") >>> print browser.contents <html> <body> <h1>Hello World</h1> </body> </html> >>> browser.open("http://localhost/manfred/@@drawing") >>> print browser.contents <html> <body> <h1>Hello World</h1> <p>Nothing for the moment</p> </body> </html> """ import grok from megrok import z3cpt class Mammoth(grok.Model): pass class Painting(grok.View): pass painting = z3cpt.PageTemplate(""" <html> <body> <h1>Hello World</h1> </body> </html> """) class Drawing(grok.View): @property def description(self): return u'Nothing for the moment' drawing = z3cpt.PageTemplate(""" <html> <body> <h1>Hello World</h1> <p tal:content="view/description">Description</p> </body> </html> """) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,012</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40768"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">19,284,403,194,068</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4eacc4a854557c1e2a117439cc6acd09853c4114</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">0646af845f4e388e3ce60fa9ec310af3e9befd60</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/rg_expert/rg_expert.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">85a9de08f4ee598ec0cb2722d3c0d49e3053116c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">NekoNe/Monitor</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/NekoNe/Monitor</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4f11dad065b51d8169375ccafb0bafd018e77a32</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">96aec0af85051ada6f86c79266c0735cf1acd942</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-05-30T23:34:56.342824</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-07-20T19:24:44</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-07-20T19:24:44</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#coding: utf-8 import urllib import urllib2 import zmq import StringIO import os import time import re import zmq import time from datetime import date from lxml import etree RESOURCE = "http://www.rg.ru" TOPICS =\ ["tema/doc-fedzakon", "tema/doc-postanov", "tema/doc-ukaz/", "/tema/doc-prikaz", "tema/doc-soobshenie", "tema/doc-raspr", "tema/doc-zakonoproekt"] ENCODING = 'windows-1251' ARCHIVE = "json/archive_list" FORMAT = ".json" PRINTABLE = "printable" PATH = "docums" CHUNK_SIZE = 10 def pack(url): result = """ <request type = "add_doc"> <doc url = "%s"> <topic id = "000.000.000"/> </doc> </request>""" % url print result return result def save_doc(topic, url, rel_url, refer, sender): time.sleep(0.01) print ">>> [ng_expert]: Document url: ", url error = False req = urllib2.Request(url) req.add_header('Referer', refer) try: r = urllib2.urlopen(req) except urllib2.HTTPError, e: try: r = urllib2.urlopen(refer) error = True except: print ">>> [ng_expert]: SOCKET ERROR" return except urllib2.URLError, e: print ">>> [ng_expert]: FAILED TO REACH SERVER <<<" print ">>> [ng_expert]: Reason:", e.reason return html = r.read() html = html.decode(ENCODING) if (not error): content_regex = re.compile(u"<td bgcolor=\"#cccccc\".+?>(.+?)<td bgcolor", re.IGNORECASE | re.DOTALL | re.UNICODE) content = content_regex.search(html) if (content == None): print ">>> [ng_expert]: !!! Unusual markup !!!" content = html else: content = content.group(1) else: content = html begin = content.find("Опубликовано") end = content[begin:].find("г.") + begin published = content[begin + 12:end+2] published = published.replace("&nbsp;", " ") print "Дата публикации: ", published begin = content.find("Вступает в силу") end = content[begin:].find("г.") + begin actual = content[begin + 16:end+2] actual = actual.replace("&nbsp;", " ") print "Вступает в силу: ", actual # attach parser = etree.HTMLParser() try: doc = etree.parse(StringIO.StringIO(html), parser) except: print ">>> [rg_expert]: can not parse html." return a_list_builder = etree.XPath("//a[@href]") a_list = a_list_builder(doc) for tag in a_list: if (tag.text == None): continue text = tag.text if (text.find("При") != -1): for attr, val in tag.items(): if (attr == "href"): print "file", val content_regex = re.compile(u"<title>(.+?)<", re.IGNORECASE | re.DOTALL | re.UNICODE) title = content_regex.search(html) if (title != None): title = title.group(1) print "Заголовок:", title sub_path = rel_url[:rel_url.rfind("/")] path = PATH + "/" + topic + sub_path #print sub_path #print path page = "<doc><published>%s</published><source>%s</source><content>%s</content></doc>" % (published, url, content) sender.send(pack(url)); # saving docs if (not os.path.exists(path)): os.makedirs(path) file_name = path + rel_url[rel_url.rfind("/"):] try: fp = open(file_name, 'w') fp.write(page) fp.close() except: return print ">>> doc: \"%s\" stored at \"%s\"" % (url, file_name) def parse_chunk(resource, topic, chank_size, doc_id, sender): url = resource + "/" + topic + "/" + ARCHIVE + "/" + str(chank_size) + "/" + doc_id + FORMAT print ">>> [ng_expert]: Chunk url: ", url time.sleep(0.01) try: socket = urllib.urlopen(url) html = socket.read() except: print ">>> [ng_expert]: SOCKET ERROR" return socket.close() #html = html.decode(ENCODING) html = html[2:-2] parser = etree.HTMLParser() try: doc = etree.parse(StringIO.StringIO(html), parser) except: print ">>> [rg_expert]: can not parse html." return a_list_builder = etree.XPath("//a[@href]") a_list = a_list_builder(doc) for tag in a_list: rel_url = tag.items()[0][1][2:-2] refer = RESOURCE + '/' + rel_url url = RESOURCE + '/' + PRINTABLE + rel_url print url save_doc(topic, url, rel_url, refer, sender) def open_topic(resource, topic, sender): url = resource + "/" + topic print ">>> [ng_expert]: ng_topic url:", url time.sleep(0.01) try: socket = urllib.urlopen(url) html = socket.read() except: print ">>> [ng_expert]: SOCKET ERROR" return socket.close() html = html.decode(ENCODING) # getting ids ids_regex = re.compile("ids: \[(.+?)\]", re.IGNORECASE | re.DOTALL | re.UNICODE) ids = ids_regex.search(html).group(1) ids = ids.split(',') # getting first document parser = etree.HTMLParser() try: doc = etree.parse(StringIO.StringIO(html), parser) except: print ">>> [rg_expert]: can not parse html." return a_list_builder = etree.XPath(u"//div[@class='txt-np reddoc'][1]/a") a_list = a_list_builder(doc) for tag in a_list: for attr, val in tag.items(): rel_url = val refer = RESOURCE + '/' + rel_url url = RESOURCE + '/' + PRINTABLE + rel_url save_doc(topic, url, rel_url, refer, sender) # running through chunks i = 0 while (i < len(ids)): id = ids[i] id = id.replace(" ","") if (id == ""): break parse_chunk(RESOURCE, topic, CHUNK_SIZE, id, sender) print ids[i][1:] i += CHUNK_SIZE def full_load(sender): print ">>> [ng_expert]: Starting full_load" for topic in TOPICS: open_topic(RESOURCE, topic, sender) def update(sender): print ">>> [ng_expert]: Starting update" today = date.today() day = str(today.day) month = str(today.month) year = str(today.year) if (len(month) == 1): month = "0" + month if (len(day) == 1): day = "0" + day print ">>> [ng_expert]: Date today (yyyy.mm.dd): %s.%s.%s" % (year, month, day) additional_path = "/" + year + "/" + month + "/" + day for topic in TOPICS: open_topic(RESOURCE, topic + additional_path, sender) def handler(request,sender): parser = etree.XMLParser() root = etree.XML(request, parser) tag = root.tag if (tag != "request"): print ">>> [ng_expert]: Unknown request" return if (root.items() == None): print ">>> [ng_expert]: Wrong parametrs" return attr = root.items()[0][0] val = root.items()[0][1] if ((attr == None) or (val == None)): print ">>> [ng_expert]: Wrong parametrs" return if (attr != "type"): print ">>> [ng_expert]: Unknown attribue" return if (val == "update"): update(sender) return if (val == "full_load"): full_load(sender) return print ">>> [ng_expert]: Unknown attribute value" def main(): context = zmq.Context() sender = context.socket(zmq.PUSH) sender.connect("tcp://localhost:5569") receiver = context.socket(zmq.PULL) receiver.connect("tcp://localhost:5559") print "test" while (True): print ">>> [ng_expert]: Waiting for request..." request = receiver.recv() print ">>> [ng_expert]: Request:\n%s" % request handler(request, sender) if (__name__ == "__main__"): main() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,012</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40769"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">19,696,720,047,271</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">6f0327c6bedb1a06db92b849e157d4f1235b2798</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">d1ec20862b701a06e7994da8c530468882eedf4e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/accountman/tests/test_cli.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">6c4ecd15c46281f1978b19b7a293627f2159ec5d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">jarrodmillman/accountman</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/jarrodmillman/accountman</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4d6a7ae0e53bd1856b781ecce3c9cc4c7d764004</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">aeeb820a4d05dc01d9a323f65fddec0459c38494</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-02T23:07:18.374605</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2010-10-18T08:42:52</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2010-10-18T14:23:50</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">import unittest class testcli(unittest.TestCase): def test_load(self): pass def test_save(self): pass def test_new(self): pass def test_pprint(self): pass if __name__ == '__main__': unittest.main() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,010</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40770"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,353,642,128,830</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">f0e83bae02c878952b96814737563db065912a28</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">3ecff544611bc81b1be3d1bb10a0ddf5752c4d53</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/Base_ROS_Vision/python/packet_utils.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">63ad2cc5b9db83b48918ffdba0ad84855c33c8c9</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">SPARC-Auburn/IEEE-Southeast-2013</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/SPARC-Auburn/IEEE-Southeast-2013</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">87a7d83f49f9430905d8b46ea3f42dd60b699536</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e0d3710bb52ccc4fc399334231ccee705c21d965</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-03-22T00:53:08.271054</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-04-02T03:45:02</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-04-02T03:45:20</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/env python import packet_eater #TODO: change name to packet_utils NIBBLE_OFFSET = 4 BYTE_OFFSET = 8 #Length codes UNKNOWN_LENGTH_FORMAT = 0b0000 FOUR_INCH_FORMAT = 0b0001 THREE_INCH_FORMAT = 0b0010 TWO_INCH_FORMAT = 0b0011 FOUR_INCH = 4 THREE_INCH = 3 TWO_INCH = 2 #Color codes UNKNOWN_COLOR_FORMAT = 0b0000 YELLOW_FORMAT = 0b0001 ORANGE_FORMAT = 0b0010 BROWN_FORMAT = 0b0011 GREEN_FORMAT = 0b0100 RED_FORMAT = 0b0101 BLUE_FORMAT = 0b0110 def decode_length(binary_string, length_nibble_position): """ Decode length portion of the packet """ length_info = packet_eater.read_nibbles(binary_string, length_nibble_position) length_info = bin(int(length_info, 2)) if length_info == bin(UNKNOWN_LENGTH_FORMAT): length = None elif length_info == bin(FOUR_INCH_FORMAT): length = 4 elif length_info == bin(THREE_INCH_FORMAT): length = 3 elif length_info == bin(TWO_INCH_FORMAT): length = 2 return length def decode_color(binary_string, color_nibble_position): """ Decode color portion of the packet """ color_info = packet_eater.read_nibbles(binary_string, color_nibble_position) color_info = bin(int(color_info, 2)) if color_info == bin(UNKNOWN_COLOR_FORMAT): color = 'unknown' elif color_info == bin(YELLOW_FORMAT): color = 'yellow' elif color_info == bin(ORANGE_FORMAT): color = 'orange' elif color_info == bin(BROWN_FORMAT): color = 'brown' elif color_info == bin(GREEN_FORMAT): color = 'green' elif color_info == bin(BLUE_FORMAT): color = 'blue' elif color_info == bin(RED_FORMAT): color = 'red' return color def encode_color(color): """ Encode color portion of block byte """ color_binary = "" #TODO: Determine input values if color == YELLOW_RANGE: color_binary = YELLOW_FORMAT elif color_binary == ORANGE_RANGE: color_binary = ORANGE_FORMAT elif color == BROWN_RANGE: color_binary = BROWN_FORMAT elif color == GREEN_RANGE: color_binary = GREEN_FORMAT elif color == RED_RANGE: color_binary = RED_FORMAT else: color_binary = UNKNOWN_COLOR_FORMAT return packet_eater.byte_to_string(color_binary) def encode_length(length): """ Encode length portion of block byte """ length_binary = "" if length == FOUR_INCH: length_binary = FOUR_INCH_FORMAT elif length == THREE_INCH: length_binary = THREE_INCH_FORMAT elif length == TWO_INCH: length_binary = TWO_INCH_FORMAT else: length_binary = UNKNOWN_LENGTH_FORMAT return packet_eater.byte_to_string(length_binary) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40771"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">16,587,163,719,003</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">63acb6813fc39a376206ebcdbcf45bce61966afe</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7e8c72c099b231078a763ea7da6bba4bd6bac77b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/other_projects/base_station_monitor/Goku/scripts/GokuCtrl/ipa4django/views/excel.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">6cf4ceae1c27ce62a35da964f29abbee680130cf</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">github188/demodemo</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/github188/demodemo</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">fd910a340d5c5fbf4c8755580db8ab871759290b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">96ed049eb398c4c188a688e9c1bc2fe8cd2dc80b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-12T17:16:36.199708</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-08-15T14:20:51</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-08-15T14:20:51</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">71,537,068</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">true</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-10-21T06:38:22</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-10-21T06:38:22</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2015-10-05T04:12:38</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2015-10-05T04:13:25</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">339,228</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from pyExcelerator import * class ExcelSheet(object): def __init__(self, name, colums): self.name = name self.colums = colums self.cur_row = 0 self.start_col = 0 self.header_style = XFStyle() fnt = Font() fnt.name = 'Arial' fnt.outline = False fnt.bold = True fnt.height = 300 self.header_style.font = fnt def init_sheet(self, book, data): self.sheet = book.add_sheet(self.name) def export_header(self, data): cur_row = self.next_row() cur_col = self.start_col for col in self.colums: col.col = cur_col self.sheet.write(cur_row, col.col, unicode(col.name), self.header_style) if col.width > 0: for i in range(col.cols): self.sheet.col(col.col + i).width = col.width * 300 cur_col += col.cols def export_data(self, data): for row_data in data: cur_row = self.next_row() for col in self.colums: args = [cur_row, col.col, unicode(col.fetch_value(row_data))] style = col.fetch_style(row_data) if style: args.append(style) if col.cols == 1: self.sheet.write(*args) else: args.insert(1, cur_row) args.insert(3, col.col + col.cols - 1) self.sheet.write_merge(*args) def next_row(self, row=-1): if row != -1: self.cur_row = row else: self.cur_row += 1 return self.cur_row # -*- coding: utf-8 -*- class ExcelColumn(): def __init__(self, name, attr_name, func=None, desc='', cols=1, width=0): self.col = 0 self.cols = cols self.style = None self.name = name self.func = func self.attr_name = attr_name self.width = width if self.width == 0: self.width = len(self.name) + 2 def fetch_value(self, data): if self.func is not None: return self.func(data) else: v = data for f in self.attr_name.split("."): v = self._get_attr(v, f) if v is None: return u'' return v def _get_attr(self, v, f): if isinstance(v, dict) or hasattr(v, "__getitem__"): return v[f] else: return getattr(v, f) def fetch_style(self, data): pass </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,012</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40772"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">11,785,390,294,026</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">d26c77015ba68e2bbcadf8be214cc6e3c7d86564</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">761deb35232b6f02edd24f6ec7214a3cf8ed5bff</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/level0/portfolio/admin.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">9e53b1493deba8412a2fcf08776409a99c9ce8bb</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">dmeehan/douglasmeehan.com</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/dmeehan/douglasmeehan.com</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4c1f79db5694e07e3c153116d6c975df804a7652</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">1c5f55e4619c0ad48c3b66262cf7bf35f6d8cb58</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-03-30T04:26:58.446207</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-07-01T03:57:36</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-07-01T03:57:36</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1,369,973</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># portfolio/admin.py from django.contrib import admin from django import forms from level0.portfolio.models import * from level0.contacts.models import * #from level0.organize.models import * class DisciplineInline(admin.TabularInline): model = Project.disciplines.through extra = 2 verbose_name = "discipline" verbose_name_plural = "disciplines" # Grappelli options allow_add = True classes = ('collapse-closed',) class ClientInline(admin.TabularInline): model = Client extra = 1 # Grappelli options allow_add = True classes = ('collapse-closed',) sort_field_name = "order" class CollaboratorInline(admin.TabularInline): model = Collaborator extra = 1 # Grappelli options allow_add = True classes = ('collapse-closed',) sort_field_name = "order" class FirmInline(admin.TabularInline): model = Firm extra = 1 # Grappelli options allow_add = True classes = ('collapse-closed',) #class CategoryItemInline(generic.GenericTabularInline): #model = CategoryItem #extra = 1 #verbose_name = "category" #verbose_name_plural = "categories" # Grappelli options #allow_add = True #classes = ('collapse-closed',) class ProjectVisualInline(admin.TabularInline): model = ProjectVisual verbose_name = "visual" verbose_name_plural = "visuals" # Grappelli options allow_add = True classes = ('collapse-closed',) sort_field_name = "order" class ProjectAudioInline(admin.TabularInline): model = ProjectAudio verbose_name = "audio" verbose_name_plural = "audio" # Grappelli options allow_add = True classes = ('collapse-closed',) sort_field_name = "order" class ProjectDocumentInline(admin.TabularInline): model = ProjectDocument verbose_name = "document" verbose_name_plural = "documents" # Grappelli options allow_add = True classes = ('collapse-closed',) class ProjectAdmin(admin.ModelAdmin): list_display = ('title', 'date', 'status', 'featured_home', 'featured_work', 'enable_comments', ) prepopulated_fields = {'slug': ('title',)} list_editable = ('status', 'featured_home', 'featured_work', 'enable_comments', ) fieldsets = ( ('Content', { 'fields': ('title', 'context', 'date', 'description', 'external_url',) }), ('Meta', { 'classes': ('collapse-open',), 'fields': ('status', 'featured_home', 'featured_work', 'enable_comments', 'tags', 'slug',) }), ('Studio', { 'classes': ('collapse-closed',), 'fields': ('studio',) }), ('Competition', { 'classes': ('collapse-closed',), 'fields': ('competition',) }), ) inlines = (DisciplineInline, CollaboratorInline, ClientInline, FirmInline, ProjectVisualInline, ProjectAudioInline, ProjectDocumentInline) # Grappelli options order = 0 class CompetitionAdmin(admin.ModelAdmin): prepopulated_fields = {'slug': ('name',)} # Grappelli options order = 4 class ProgramAdmin(admin.ModelAdmin): prepopulated_fields = {'slug': ('name',)} # Grappelli options order = 3 class StudioAdmin(admin.ModelAdmin): prepopulated_fields = {'slug': ('name',)} # Grappelli options order = 2 class DisciplineAdmin(admin.ModelAdmin): prepopulated_fields = {'slug': ('name',)} # Grappelli options order = 1 class ProjectVisualAdmin(admin.ModelAdmin): pass admin.site.register(Discipline, DisciplineAdmin) admin.site.register(Studio, StudioAdmin) admin.site.register(Competition, CompetitionAdmin) admin.site.register(Program, ProgramAdmin) admin.site.register(Project, ProjectAdmin) admin.site.register(ProjectVisual, ProjectVisualAdmin) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40773"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">8,486,855,392,433</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">354178f6579b8055141a0d35142436c5b40d87ef</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">3b94bc467617a0272a80917abee39f37acd81a8b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/rseqflow2/QC_SNP/read_distribution.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">73f9d45cbefd0a7beeca00a1fed33cdb478ce6d7</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">falconer502/RseqFlow</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/falconer502/RseqFlow</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b5f47ca2371b43798bf61be1de1d000010a0fde5</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">fcb94a6f4ae2e01b9759292a8f85d25503d7f99f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-15T10:24:57.343473</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-09-23T21:36:51</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-09-23T21:36:51</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/env python '''------------------------------------------------------------------------------------------------- Check reads distribution over exon, intron, UTR, intergenic ... etc -------------------------------------------------------------------------------------------------''' #import built-in modules import os,sys import re import string import optparse import warnings import string import collections import math import sets #import third-party modules from bx.bitset import * from bx.bitset_builders import * from bx.intervals import * #from bx.binned_array import BinnedArray from bx_extras.fpconst import isNaN from bx.bitset_utils import * prog_base = os.path.split(sys.argv[0])[1] parser = optparse.OptionParser() def cal_size(list): '''calcualte bed list total size''' size=0 for l in list: size += l[2] - l[1] return size def foundone(chrom,ranges, st, end): found = 0 if chrom in ranges: found = len(ranges[chrom].find(st,end)) return found def build_bitsets(list): '''build intevalTree from list''' ranges={} for l in list: chrom =l[0].upper() st = int(l[1]) end = int(l[2]) if chrom not in ranges: ranges[chrom] = Intersecter() else: ranges[chrom].add_interval( Interval( st, end ) ) return ranges def list_from_file(fname): '''get list from input file''' ret_lst=[] bk=open(fname,'r') for line in bk.xreadlines(): fields=line[0:-1].split('\t') chrom=fields[0] start=int(fields[1]) end=int(fields[2]) ret_lst.append([chrom,start,end]) bk.close() return ret_lst def process_gene_model(cds_exon,intron,utr_3,utr_5,intergenic_up_1kb,intergenic_down_1kb,\ intergenic_up_5kb,intergenic_down_5kb,intergenic_up_10kb,intergenic_down_10kb): print "build intervalTree" #build intervalTree cds_exon_ranges = build_bitsets(cds_exon) utr_5_ranges = build_bitsets(utr_5) utr_3_ranges = build_bitsets(utr_3) intron_ranges = build_bitsets(intron) interg_ranges_up_1kb_ranges = build_bitsets(intergenic_up_1kb) interg_ranges_up_5kb_ranges = build_bitsets(intergenic_up_5kb) interg_ranges_up_10kb_ranges = build_bitsets(intergenic_up_10kb) interg_ranges_down_1kb_ranges = build_bitsets(intergenic_down_1kb) interg_ranges_down_5kb_ranges = build_bitsets(intergenic_down_5kb) interg_ranges_down_10kb_ranges = build_bitsets(intergenic_down_10kb) exon_size = cal_size(cds_exon) intron_size = cal_size(intron) utr3_size = cal_size(utr_3) utr5_size = cal_size(utr_5) int_up1k_size = cal_size(intergenic_up_1kb) int_up5k_size = cal_size(intergenic_up_5kb) int_up10k_size = cal_size(intergenic_up_10kb) int_down1k_size = cal_size(intergenic_down_1kb) int_down5k_size = cal_size(intergenic_down_5kb) int_down10k_size = cal_size(intergenic_down_10kb) print "Processing BED file Done" return (cds_exon_ranges,intron_ranges,utr_5_ranges,utr_3_ranges,\ interg_ranges_up_1kb_ranges,interg_ranges_up_5kb_ranges,interg_ranges_up_10kb_ranges,\ interg_ranges_down_1kb_ranges,interg_ranges_down_5kb_ranges,interg_ranges_down_10kb_ranges,\ exon_size,intron_size,utr5_size,utr3_size,\ int_up1k_size,int_up5k_size,int_up10k_size,\ int_down1k_size,int_down5k_size,int_down10k_size) def main(): usage="%prog [options]" + '\n' + __doc__ + "\n" #parser = OptionParser(usage,version="%prog " + __version__) parser.add_option("-s", "--sam-file", action = "store", type = "string", dest = "sam_alignment_file", help = "Input alignment file in SAM format") parser.add_option("-p", "--prefix", action = "store", type = "string", dest = "prefix_of_RegionFile", help = "prefix of input Region files: Exon Intron UTR3 UTR5") parser.add_option("-o", "--output-prefix", action = "store", type = "string", dest = "output_prefix", help = "refix of output file(s). [required]") (options,args)=parser.parse_args() if (options.sam_alignment_file is None or options.prefix_of_RegionFile is None or options.output_prefix is None ): print prog_base + ": error: missing required command-line argument." parser.print_help() sys.exit(0) fname_sam=options.sam_alignment_file bk_sam=open(fname_sam) fname_utr3=options.prefix_of_RegionFile+".utr_3.txt" fname_utr5=options.prefix_of_RegionFile+".utr_5.txt" fname_exon=options.prefix_of_RegionFile+".cds_exon.txt" fname_intron=options.prefix_of_RegionFile+".intron.txt" fname_int_up1k=options.prefix_of_RegionFile+".intergenic_up_1kb.txt" fname_int_down1k=options.prefix_of_RegionFile+".intergenic_down_1kb.txt" fname_int_up5k=options.prefix_of_RegionFile+".intergenic_up_5kb.txt" fname_int_down5k=options.prefix_of_RegionFile+".intergenic_down_5kb.txt" fname_int_up10k=options.prefix_of_RegionFile+".intergenic_up_10kb.txt" fname_int_down10k=options.prefix_of_RegionFile+".intergenic_down_10kb.txt" cds_exon_list=list_from_file(fname_exon) intron_list=list_from_file(fname_intron) utr_3_list=list_from_file(fname_utr3) utr_5_list=list_from_file(fname_utr5) int_up1k_list=list_from_file(fname_int_up1k) int_down1k_list=list_from_file(fname_int_down1k) int_up5k_list=list_from_file(fname_int_up5k) int_down5k_list=list_from_file(fname_int_down5k) int_up10k_list=list_from_file(fname_int_up10k) int_down10k_list=list_from_file(fname_int_down10k) print "Processing BED file Done" (cds_exon_r, intron_r, utr_5_r, utr_3_r,\ intergenic_up_1kb_r,intergenic_up_5kb_r,intergenic_up_10kb_r,\ intergenic_down_1kb_r,intergenic_down_5kb_r,intergenic_down_10kb_r,\ cds_exon_base,intron_base,utr_5_base,utr_3_base,\ intergenic_up1kb_base,intergenic_up5kb_base,intergenic_up10kb_base,\ intergenic_down1kb_base,intergenic_down5kb_base,intergenic_down10kb_base)\ = process_gene_model(cds_exon_list,intron_list,utr_3_list,utr_5_list,int_up1k_list,int_down1k_list,int_up5k_list,int_down5k_list,int_up10k_list,int_down10k_list) intron_read=0 cds_exon_read=0 utr_5_read=0 utr_3_read=0 intergenic_up1kb_read=0 intergenic_down1kb_read=0 intergenic_up5kb_read=0 intergenic_down5kb_read=0 intergenic_up10kb_read=0 intergenic_down10kb_read=0 totalReads=0 totalFrags=0 unAssignFrags=0 R_qc_fail=0 R_duplicate=0 R_nonprimary=0 R_unmap=0 read_paired=1 read_mapped=2 read_unmapped=4 mate_unmapped=8 read_reverse=16 mate_reverse=32 is_read1=64 is_read2=128 secondary=256 qc_fail=512 duplicate=1024 _cigar_split=re.compile(r'(\d+)[M|N]') print "processing " + fname_sam + " ..." for v in bk_sam.xreadlines(): totalReads +=1 fields=v.split('\t') flag=int(fields[1]) if flag&qc_fail: #skip QC fail read R_qc_fail +=1 continue if flag&duplicate: #skip duplicate read R_duplicate +=1 continue if flag&secondary: #skip non primary hit R_nonprimary +=1 continue if flag&read_unmapped: #skip unmap read R_unmap +=1 continue chrom = fields[2] chrom=chrom.upper() comb=[int(i) for i in _cigar_split.findall(fields[5])] #"9M4721N63M3157N8M" return ['9', '4721', '63', '3157', '8'] #fragment_num += (len(comb) +1)/2 #blockStart=[] #blockSize=[] chromStart=string.atoi(fields[3])-1 exons=[] for i in range(0,len(comb),2): ex_start=chromStart + sum(comb[:i]) ex_end=ex_start+comb[i] exons.append([chrom, ex_start, ex_end]) #cigar_str = cigar.list2str(aligned_read.cigar) #exons = cigar.fetch_exon(chrom, aligned_read.pos, cigar_str) totalFrags += len(exons) for exn in exons: #print chrom + '\t' + str(exn[1]) + '\t' + str(exn[2]) mid = int(exn[1]) + int((int(exn[2]) - int(exn[1]))/2) if foundone(chrom,cds_exon_r,mid,mid) > 0: cds_exon_read += 1 continue elif foundone(chrom,utr_5_r,mid,mid) >0 and foundone(chrom,utr_3_r,mid,mid) == 0: utr_5_read += 1 continue elif foundone(chrom,utr_3_r,mid,mid) >0 and foundone(chrom,utr_5_r,mid,mid) == 0: utr_3_read += 1 continue elif foundone(chrom,utr_3_r,mid,mid) >0 and foundone(chrom,utr_5_r,mid,mid) > 0: unAssignFrags +=1 continue elif foundone(chrom,intron_r,mid,mid) > 0: intron_read += 1 continue elif foundone(chrom,intergenic_up_10kb_r,mid,mid) >0 and foundone(chrom,intergenic_down_10kb_r,mid,mid) > 0: unAssignFrags +=1 continue elif foundone(chrom,intergenic_up_1kb_r,mid,mid) >0: intergenic_up1kb_read += 1 intergenic_up5kb_read += 1 intergenic_up10kb_read += 1 elif foundone(chrom,intergenic_up_5kb_r,mid,mid) >0: intergenic_up5kb_read += 1 intergenic_up10kb_read += 1 elif foundone(chrom,intergenic_up_10kb_r,mid,mid) >0: intergenic_up10kb_read += 1 elif foundone(chrom,intergenic_down_1kb_r,mid,mid) >0: intergenic_down1kb_read += 1 intergenic_down5kb_read += 1 intergenic_down10kb_read += 1 elif foundone(chrom,intergenic_down_5kb_r,mid,mid) >0: intergenic_down5kb_read += 1 intergenic_down10kb_read += 1 elif foundone(chrom,intergenic_down_10kb_r,mid,mid) >0: intergenic_down10kb_read += 1 else: unAssignFrags +=1 bk_sam.close() OUT=open(options.output_prefix+".read_distribution.txt",'w') total_AssignFrags=totalFrags-unAssignFrags print >>OUT,"%-30s%.2f" % ("Percentage of Assigned Tags",total_AssignFrags/float(totalFrags)) print >>OUT,"=====================================================================" print >>OUT,"%-20s%-20s" % ('Region','Percentage of Tags') print >>OUT,"%-10s%8.2f%%" % ('Exons',(cds_exon_read+utr_5_read+utr_3_read)*100/float(total_AssignFrags)) print >>OUT,"%-10s%8.2f%%" % ("Introns",intron_read*100/float(total_AssignFrags)) print >>OUT,"%-10s%8.2f%%" % ("TSS_up_1kb",intergenic_up1kb_read*100/float(total_AssignFrags)) print >>OUT,"%-10s%8.2f%%" % ("TSS_up_5kb",intergenic_up5kb_read*100/float(total_AssignFrags)) print >>OUT,"%-10s%8.2f%%" % ("TSS_up_10kb",intergenic_up10kb_read*100/float(total_AssignFrags)) print >>OUT,"%-10s%8.2f%%" % ("TES_down_1kb",intergenic_down1kb_read*100/float(total_AssignFrags)) print >>OUT,"%-10s%8.2f%%" % ("TES_down_5kb",intergenic_down5kb_read*100/float(total_AssignFrags)) print >>OUT,"%-10s%8.2f%%" % ("TES_down_10kb",intergenic_down10kb_read*100/float(total_AssignFrags)) print >>OUT,"=====================================================================" print >>OUT,"Note:" print >>OUT,"If reads spliced once, it will be counted as 2 tags" print >>OUT,"TSS= Transcription Start Site, TES=Transcription End Site, down=downstream, up=upstream" OUT.close() if __name__ == '__main__': main() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40774"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">11,347,303,604,382</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e369d46c80579701beb0c5532514d35164908d27</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">d88c78d28405037a4362368599be8d9a7a67bfc8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/b_1_variable_annuity.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4676eb7d324680734070dd39b540c981ce23fabe</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "MIT" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">nicolasessisbreton/talks-2014-ssc-parallel-computing-method-for-variable-annuities</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/nicolasessisbreton/talks-2014-ssc-parallel-computing-method-for-variable-annuities</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e04079804fb0140e5d8fde1ddd78ab151235a87d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7aa9f82e571c8a7ef32e3c46c1fa0ec92e49dcf3</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-09-23T21:08:30.035458</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-05-30T12:33:20</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-05-30T12:33:20</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from utils import * s = time() file_name = 'b_1_variable_annuity' nb_year = 30 nb_simulated_path = 5 nb_period_per_year = 10 interval = 35 # draw a new frame every interval milliseconds, must be at least 35, as maximal web rate is 30 frame per second, which is 30/1e3 = draw frame every 33.33 milliseconds duration_of_one_contract_in_second = 5 nb_frame_per_second = interval / 1e3 max_nb_frame_per_contract = duration_of_one_contract_in_second / nb_frame_per_second nb_frame_per_contract = nb_year * nb_period_per_year nb_of_points_per_interval = nb_frame_per_contract / max_nb_frame_per_contract nb_of_points_per_interval = int(np.ceil(nb_of_points_per_interval)) nb_frame = int(np.ceil(max_nb_frame_per_contract * nb_simulated_path)) risk_free_rate = 0.03 volatility = 0.25 total_nb_period = nb_year * nb_period_per_year dt = nb_year / float(total_nb_period) sqrt_dt = np.sqrt(dt) mu = dt * risk_free_rate sigma = sqrt_dt * volatility stock_move = np.random.lognormal(mu, sigma, (nb_simulated_path, total_nb_period+1)) eg = 1.03**dt path_ndx = 0 period_ndx = 1 stock_x = [1] stock_y = [1] bank_x = [1] bank_y = [1] account_x = [1] account_y = [1] stock_x_plotted = [] stock_y_plotted = [] max_heigh = 10 linewidth = 10 def setup(): global stock, bank, all_artist, account all_artist = [] account, = plt.plot([1],[1], color = '#62f63c', linewidth=linewidth) bank, = plt.plot([1], [1], color = '#f1f91f', linestyle = '--', linewidth = linewidth) stock, = plt.plot([],[], color = '#f13632', linestyle = ':', linewidth = linewidth) all_artist.extend([account, stock, bank]) lg = plt.legend( ('account','bank', 'stock'), scatterpoints = 4, labelspacing=0.1, borderpad = 0 , handlelength=1, handletextpad=0.1, borderaxespad=0, columnspacing=0, loc='upper center', ncol=3, bbox_to_anchor=(0.55, 1.12), ) lg.draw_frame(False) plt.axis([-1,nb_year+1,0,max_heigh]) return all_artist def point_builder(): global stock, bank, all_artist, stock, path_ndx, period_ndx, dt, stock_move global stock_x, stock_y, bank_x, bank_y, eg, account_x, account_y, account t = stock_x[period_ndx-1] + dt bank_point = bank_y[period_ndx-1] * eg stock_point = stock_y[period_ndx-1] * stock_move[path_ndx,period_ndx] stock_x.append(t) stock_y.append(stock_point) bank_x.append(t) bank_y.append(bank_point) account_x.append(t) account_y.append(np.maximum(bank_point, stock_point)) stock.set_data(stock_x, stock_y) bank.set_data(bank_x, bank_y) account.set_data(account_x, account_y) if period_ndx +1 <= total_nb_period : period_ndx += 1 else: stock_x = [1] stock_y = [1] bank_x = [1] bank_y = [1] account_x = [1] account_y = [1] stock_x_plotted = [] stock_y_plotted = [] period_ndx = 1 if path_ndx + 1 < nb_simulated_path: path_ndx += 1 else: path_ndx = 0 def update(frame_ndx): global all_artist for i in xrange(nb_of_points_per_interval): point_builder() return all_artist # running def build_animation(): fig, axes = plt.subplots() anim = animation.FuncAnimation( fig, update, frames = nb_frame, interval = interval, init_func = setup, blit=True ) return anim, plt save(build_animation, file_name, 1) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40775"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">9,491,877,732,029</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b8be28e0c3f53e5dd4a2f706c74cf37f9d414e39</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">477f3b3a9cec62b129b84a5616b8b02700512fad</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/mongoDB/update_preannotationDB_check.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ada15e980f4c61b2b88321bd8a0892dbfd8c96d7</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">gerikson/bioinformatics_scripts</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/gerikson/bioinformatics_scripts</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c74cda6603310e21c0656195efd23901331b3731</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5682f2176f8f445069179ebf2150a62fd818be24</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-05-18T13:31:09.109051</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-11-13T23:49:35</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-11-13T23:49:35</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">10,488,305</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">import os, sys,math, time, pysam, pymongo,json,bson HG_PATH = os.environ['HG_PATH'] SCHORK_HOME = os.environ['SCHORK_HOME'] sys.path.append(SCHORK_HOME + "biopython-1.54/") from collections import defaultdict print "START: " print time.asctime( time.localtime(time.time()) ) """ takes to arguments: 1.file to update the db 2.file to extract non ascii variants """ varfilename = str(sys.argv[1]) CUR_CHROM ='chr1' non_ascii=str(sys.argv[2]) print "Chromosome is: "+CUR_CHROM print "CHECKING FOR PRE-EXISTING VARIANTS: ", varfilename inserted_variants = 0 skiped_var = 0 non_ascii_var = 0 invar = open(varfilename) line = invar.readline() ascii = open(non_ascii, "w") ''' Querying mongo db, for now development ''' con = pymongo.Connection(host='10.128.128.60')#host='10.128.143.255') #a =eval("con.development."+str(CUR_CHROM)) a = eval("con.gerikson."+str(CUR_CHROM)) PreAnnotationDB = a while line: lin = line.strip().split("\t") """ If this is the first line skip """ if (lin[0]=="Haplotype"): continue # make sure this is a chromosome string and if it's the same as the current chromosome if (lin[1] != CUR_CHROM and lin[1].find('chr') != -1): print "new chromosome " + lin[1] CUR_CHROM = lin[1] a = eval("con.gerikson."+str(CUR_CHROM)) PreAnnotationDB = a beg = lin[2] end = lin[3] vartype = lin[4] ref = lin[5] obs = lin[6] annot = "-" for int in lin[8:]: annot=annot+"@@"+int ''' verify is it's a valid annotation, mongo doesn't accept non usii carachters ''' try: annot.decode('ascii') except UnicodeDecodeError: # print "it was not a ascii-encoded unicode string" # print annot ascii.write(str(line)+"\n") non_ascii_var = non_ascii_var + 1 line = invar.readline() # continue """ First check if the variant is already present in the database, this step might be skipped if we get a file with only variants that weren't previously found in the preannotationDB """ variant_list = PreAnnotationDB.find_one({'beg':beg, 'end':end,'type':vartype ,'ref':ref,'alt':obs}) """ If no variant was found, insert the variant into the db """ if str(variant_list) == "None": inserted_variants = inserted_variants + 1 ''' Variant not present in the preannotation db, update the database with the new variant ''' # print "Var not found, insert begin = " + beg post = {'chr':CUR_CHROM,'beg':beg, 'end':end, 'type':vartype, 'ref':ref, 'alt':obs, 'annot':annot} PreAnnotationDB.insert(post) if (inserted_variants%1000 == 0): print inserted_variants print time.asctime( time.localtime(time.time()) ) # continue else: skiped_var = skiped_var + 1 if (skiped_var%500 == 0): print skiped_var print time.asctime( time.localtime(time.time()) ) #continue line = invar.readline() print "END: ", time.asctime( time.localtime(time.time()) ) print "Inserted var = " + str(inserted_variants) print "skiped var = " + str(skiped_var) print "non ascii var found = " + str(non_ascii_var) invar.close() sys.stdout.flush() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40776"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">498,216,214,316</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a701b560b7161dc2b4780136d23212dc8bb24941</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">64dedd692081b51627d02b97c85cf8dd2a5af12f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/Windoe</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">9d6b2bfe09cf51f7e9435af82328136911cee0a2</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">mcasman/Rssoppkey</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/mcasman/Rssoppkey</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">37fed3da3ebb912e6b6a4d4ca08cfea5aacababb</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">6acec3aaef9d515ed100f8aa5157643711d18b13</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-19T11:16:30.826233</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-03-07T23:40:13</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-03-07T23:40:13</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/env python from Tkinter import * import sys, feedparser window = Tk() ffeed = feedparser.parse("http://feeds.ign.com/ign/articles") def repop(): #Buttons and configurations #Top level Label lbl = Label(window, text="Oppkey RSS feeds").pack() #Facebook button btnf = Button(window, text="Facebook", background= "#3b5998", command=fbfeed) btnf.pack(side=LEFT, fill=BOTH, expand=1) btnf.config(fg='white', bd=6) #Google+ button btng = Button(window, text="Google+", background= "#d34836", command=gofeed) btng.pack(side=LEFT, fill=BOTH, expand=1) btng.config(fg='white', bd=6) #Twitter button btnt = Button(window, text="Twitter", background= "#4099FF", command=twfeed) btnt.pack(side=LEFT, fill=BOTH, expand=1) btnt.config(fg='white', bd=6) #Feed description display function def textdis(): #ffeedd = ffeed.entries[:].description #ffeedtime = ffeed.entries[:].published #ffeedt = ffeed.entries[].title distext = Text(window) distext.pack() distext.insert(END, (ffeedtime, ffeedd)) #Facebook feed function def fbfeed(): btng.pack_forget() btnt.pack_forget() btnf.pack_forget() fdis = Label(window, text="Now displaying the top 3 FB Feeds") #backbtn = Button(window, text='Back').pack(side=LEFT, anchor=N) quitbtn = Button(window, text='Quit', command=window.quit).pack(side=RIGHT, anchor=N) for i in range(0,3): ffeedt = ffeed.entries[i].title entbtn = Button(window, text=ffeedt, wraplength=215, command=textdis) entbtn.pack() ffeedd = ffeed.entries[i].description ffeeddtime = ffeed.entries[i].published #destext = Text(window) #destext.pack() #destext.insert(END, (ffeedd)) #Google feed function def gofeed(): gfeed = feedparser.parse("http://planetcallofduty.gamespy.com/show_rss.php") print len(gfeed.entries) for i in range(0, 4): print "\n" + gfeed.entries[i].title + "\n" print gfeed.entries[i].link print gfeed.entries[i].description print i #Twitter feed function def twfeed(): tfeed = feedparser.parse("http://planetcallofduty.gamespy.com/show_rss.php") print len(tfeed.entries) for i in range(0, 4): print "\n" + tfeed.entries[i].title + "\n" print tfeed.entries[i].link print tfeed.entries[i].description print i #Buttons and configurations #Top level Label lbl = Label(window, text="Oppkey RSS feeds").pack() #Facebook button btnf = Button(window, text="Facebook", background= '#3b5998', command=fbfeed) btnf.pack(side=LEFT, fill=BOTH, expand=1) btnf.config(fg='white', bd=6) #Google+ button btng = Button(window, text="Google+", background= '#d34836', command=gofeed) btng.pack(side=LEFT, fill=BOTH, expand=1) btng.config(fg='white', bd=6) #Twitter button btnt = Button(window, text="Twitter", background= '#4099FF', command=twfeed) btnt.pack(side=LEFT, fill=BOTH, expand=1) btnt.config(fg='white', bd=6) #Parent Window and configurations window.title("Oppkey RSS Feeds") window.geometry("320x455") window.wm_iconbitmap('favicon.ico') window.mainloop() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40777"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">11,605,001,681,117</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">2836df9611a4ba0b38f4b0239772b29824e556b9</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5021037d4bf0fbacac18a6767e850a8a35a99d32</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/moses.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">36ac3142df503f46d3d8aad23d710b7564b46bd8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">angelinavj/CS-224N-Project-1</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/angelinavj/CS-224N-Project-1</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">8b95c974550689b639c86265ac1d1952219f4fa7</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a985086e160c342c828bfc0d6776bfc0775731cb</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-09-05T09:33:18.027876</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-10-10T07:36:35</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-10-10T07:36:35</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/python import sys import os import time import subprocess HOME = "/afs/ir/users/k/b/kbusch/cs224n/pa1-mt" MOSES = "/afs/ir/class/cs224n/bin/mosesdecoder" GIZA = "/afs/ir/class/cs224n/bin/giza-pp-read-only/external-bin-dir" MERT = "" PRO = "--pairwise-ranked" def run_command(name, command, stdin=None, stdout=None): outfile.write('Running %s\n' %(name)) outfile.write('Command: \n %s' % (command)) outfile.flush() start = time.time() if stdin or stdout: subprocess.call(command, stdin=stdin, stdout=stdout) else: os.system(command) end = time.time() outfile.write('\nRuntime: %d\n\n'%(end - start)) outfile.flush() def gen_phrase_table(phrase_len): command = ('%s/scripts/training/train-model.perl --max-phrase-length %d ' '--external-bin-dir %s --first-step 4 --last-step 9 ' '-root-dir %s/train -corpus %s/training/corpus -f f -e e ' '-alignment-file %s/training/corpus -alignment align ' '-lm 0:3:"%s"/lm.bin:8' % (MOSES, phrase_len, GIZA, HOME, HOME, HOME, HOME) ) run_command('generate phrase table', command) def tune(dist_lim, alg, name): command = ('%s/scripts/training/mert-moses.pl ' '--working-dir %s/tune-%s %s ' '--decoder-flags="-distortion-limit %d -threads 4" %s/mt-dev.fr ' '%s/mt-dev.en %s/bin/moses %s/train/model/moses.ini ' '--mertdir %s/bin/' % (MOSES, HOME, name, alg, dist_lim, HOME, HOME, MOSES, HOME, MOSES) ) run_command("tuning", command) def decode(name): command = ['%s/bin/moses'%(MOSES), '-du', '-f', '%s/tune-%s/moses.ini'%(HOME, name)] run_command("decoding", command, stdin=open('%s/mt-dev-test.fr'%(HOME)), stdout=open('%s/output/%s-test.out'%(HOME, name), 'w')) os.system("cp %s/tune-%s/moses.ini %s/output/%s-moses.ini"%(HOME, name, HOME, name)) def eval(name): command = ['%s/scripts/generic/multi-bleu.perl'%(MOSES), '%s/mt-dev-test.en'%(HOME)] output = run_command("evaluation", command, stdin=open('%s/output/%s-test.out'%(HOME, name)), stdout=open('%s/output/%s-eval.out'%(HOME, name), 'w')) def main(phrase_len, dist_lim): name = 'new_tune_s50000-%dpl-%ddl'%(phrase_len, dist_lim) gen_phrase_table(phrase_len) #MERT outfile.write('\n\nMERT:\n') tune(dist_lim, MERT, name + '-mert') decode(name + '-mert') eval(name + '-mert') #PRO outfile.write('\n\nPRO:\n') tune(dist_lim, PRO, name + '-pro') decode(name + '-pro') eval(name + '-pro') if __name__ == '__main__': if len(sys.argv) < 3: print "USAGE: moses.py [max phrase len] [dist lim] [path to home folder]" phrase_len = int(sys.argv[1]) dist_lim = int(sys.argv[2]) if len(sys.argv) > 3: HOME = sys.argv[3] outfile = open('moses_new_tune_50k_%s_%s.out'%(phrase_len, dist_lim), 'w') main(phrase_len, dist_lim) outfile.close()</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,012</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40778"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">3,659,312,167,723</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a29f6b45274f3bc48c4117031de582de00170ff0</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">79a35dfcc3149c5ee4ab4117d61c35fcfb90acd6</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/web.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">741765c863271998e280b9ae08ba4612c75c481d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">rdcarter24/FoodTrucks</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/rdcarter24/FoodTrucks</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4e3c39ba10ea490fe8967e1d3662a4748ae76c20</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">9d5587c27ca7ac87a69d9ae7420b06f738c13cc9</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-09-05T15:57:12.802170</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-10-30T18:59:03</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-10-30T18:59:03</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from flask import Flask, render_template import foodtrucks import json app = Flask(__name__) app.config['DEBUG'] = True @app.route("/") def map(): # call function to scrape website and put in json format trucks_json = json.dumps(foodtrucks.get_closest_food_trucks()) return render_template("map.html", trucks=trucks_json) if __name__ == "__main__": app.run(debug=True)</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40779"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">14,980,845,944,791</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c6396a705b2e0b3db9f9c303b3df8d520af66eb8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4bb7acc79d927edde0367ecae662cd5ce9149b64</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/phypno/datatype.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">421038d7ba71aebbb6bab574640054a8e9ffb66b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "GPL-1.0-or-later", "GPL-3.0-or-later", "GPL-3.0-only", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-warranty-disclaimer" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">jburn/phypno</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/jburn/phypno</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c72dcf3ffb03bb20f408c457dd02d1f7d158bf06</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">161d13ae1c0d9cef4f7fdfdca27bb6fe34960f73</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2017-10-07T01:37:40.092592</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-10-15T17:15:23</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-10-15T17:15:23</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">"""Module contains the different types of data formats. The main class is Data, all the other classes should depend on it. The other classes are given only as convenience, but they should not overwride Data.__call__, which needs to be very general. """ from logging import getLogger lg = getLogger('phypno') from collections import OrderedDict, Iterable from copy import deepcopy from numpy import arange, array, empty, ix_, NaN, squeeze, where def _get_indices(values, selected, tolerance): """Get indices based on user-selected values. Parameters ---------- values : ndarray (any dtype) values present in the axis. selected : ndarray (any dtype) or tuple or list values selected by the user tolerance : float avoid rounding errors. Returns ------- idx_data : list of int indices of row/column to select the data idx_output : list of int indices of row/column to copy into output Notes ----- This function is probably not very fast, but it's pretty robust. It keeps the order, which is extremely important. If you use values in the self.axis, you don't need to specify tolerance. However, if you specify arbitrary points, floating point errors might affect the actual values. Of course, using tolerance is much slower. Maybe tolerance should be part of Select instead of here. """ idx_data = [] idx_output = [] for idx_of_selected, one_selected in enumerate(selected): if tolerance is None or values.dtype.kind == 'U': idx_of_data = where(values == one_selected)[0] else: idx_of_data = where(abs(values - one_selected) <= tolerance)[0] # actual use min if len(idx_of_data) > 0: idx_data.append(idx_of_data[0]) idx_output.append(idx_of_selected) return idx_data, idx_output class Data: """General class containing recordings. Attributes ---------- data : ndarray (dtype='O') the data as trials. Each trial is a ndarray (dtype='d' or 'f') axis : OrderedDict dictionary with axiss (standard names are 'chan', 'time', 'freq') start_time : instance of datetime.datetime the start time of the recording attr : dict contains additional information about the dataset, with keys: - surf - chan - scores Notes ----- Something which is not immediately clear for chan. dtype='U' (meaning Unicode) actually creates string of type str\_, while if you use dtype='S' (meaning String) it creates strings of type bytes\_. """ def __init__(self): self.data = array([], dtype='O') self.axis = OrderedDict() self.start_time = None self.s_freq = None self.attr = {'surf': None, 'chan': None, 'scores': None, } def __call__(self, trial=None, tolerance=None, **axes): """Return the recordings and their time stamps. Parameters ---------- trial : list of int or ndarray (dtype='i') or int which trials you want (if it's one int, it returns the actual matrix). **axes Arbitrary axiss to select from. You specify the axis and the values as list or tuple of the values that you want. tolerance : float if one of the axiss is a number, it specifies the tolerance to consider one value as chosen (take into account floating-precision errors). Returns ------- ndarray ndarray containing the data with the same number of axiss as the original data. The length of the axis is equal to the length of the data, UNLESS you specify an axis with values. In that case, the length is equal to the values that you want. If you specify only one trial (as int, not as tuple or list), then it returns the actual matrix. Otherwise, it returns a ndarray (dtype='O') of length equal to the trials. Notes ----- You cannot specify intervals here, you can do it in Select. """ if trial is None: trial = range(self.number_of('trial')) squeeze_trial = False try: iter(trial) except TypeError: # 'int' object is not iterable trial = (trial, ) squeeze_trial = True output = empty(len(trial), dtype='O') for cnt, i in enumerate(trial): output_shape = [] idx_data = [] idx_output = [] squeeze_axis = [] for axis, values in self.axis.items(): if axis in axes.keys(): selected_values = axes[axis] if (isinstance(selected_values, Iterable) and not isinstance(selected_values, str)): n_values = len(selected_values) else: n_values = 1 selected_values = (selected_values, ) squeeze_axis.append(self.index_of(axis)) idx = _get_indices(values[i], selected_values, tolerance=tolerance) if len(idx[0]) == 0: lg.warning('No index was selected for ' + axis) idx_data.append(idx[0]) idx_output.append(idx[1]) else: n_values = len(values[i]) idx_data.append(arange(n_values)) idx_output.append(arange(n_values)) output_shape.append(n_values) output[cnt] = empty(output_shape, dtype=self.data[i].dtype) output[cnt][:] = NaN if all([len(x) > 0 for x in idx_data]): ix_output = ix_(*idx_output) ix_data = ix_(*idx_data) output[cnt][ix_output] = self.data[i][ix_data] if len(squeeze_axis) > 0: output[cnt] = squeeze(output[cnt], axis=tuple(squeeze_axis)) if squeeze_trial: output = output[0] return output @property def list_of_axes(self): """Return the name of all the axes in the data.""" return tuple(self.axis.keys()) def index_of(self, axis): """Return the index of a axis. Parameters ---------- axis : str Name of the axis (such as 'trial', 'time', etc) Returns ------- int or ndarray (dtype='int') number of trial (as int) or number of element in the selected axis (if any of the other axiss) as 1d array. Raises ------ ValueError If the requested axis is not in the data. """ return list(self.axis.keys()).index(axis) def number_of(self, axis): """Return the number of in one axis, as generally as possible. Parameters ---------- axis : str Name of the axis (such as 'trial', 'time', etc) Returns ------- int or ndarray (dtype='int') number of trial (as int) or number of element in the selected axis (if any of the other axiss) as 1d array. Raises ------ KeyError If the requested axis is not in the data. Notes ----- or is it better to catch the exception? """ if axis == 'trial': return len(self.data) else: n_trial = self.number_of('trial') output = empty(n_trial, dtype='int') for i in range(n_trial): output[i] = len(self.axis[axis][i]) return output def __iter__(self): """Implement generator for each trial. The generator returns the data for each trial. This is of course really convenient for map and parallel processing. Examples -------- >>> from phypno.trans import Math >>> take_mean = Math(operator_name='mean', axis='time') >>> for one_trial in iter(data): >>> one_mean = take_mean(one_trial) >>> print(one_mean.data[0]) """ for trial in range(self.number_of('trial')): output = deepcopy(self) for one_axis in output.axis: output.axis[one_axis] = empty(1, dtype='O') output.data = empty(1, dtype='O') output.data[0] = self.data[trial] for one_axis in output.axis: output.axis[one_axis][0] = self.axis[one_axis][trial] yield output def export(self, filename, export_format='fieldtrip'): """Export data in other formats. Parameters ---------- filename : path to file file to write export_format : str, optional supported export format is currently only FieldTrip """ if export_format == 'fieldtrip': from .ioeeg import write_fieldtrip # avoid circular import write_fieldtrip(self, filename) class ChanTime(Data): """Specific class for chan-time recordings, with axes: chan : ndarray (dtype='O') for each trial, channels in the data (dtype='U') time : ndarray (dtype='O') for each trial, 1d matrix with the time stamp (dtype='f') """ def __init__(self): super().__init__() self.axis['chan'] = array([], dtype='O') self.axis['time'] = array([], dtype='O') class ChanFreq(Data): """Specific class for channel-frequency recordings, with axes: chan : ndarray (dtype='O') for each trial, channels in the data (dtype='U') freq : ndarray (dtype='O') for each trial, 1d matrix with the frequency (dtype='f') Notes ----- Conceptually, it is reasonable that each trial has the same frequency band, so it might be more convenient to use only one array, but it can happen that different trials have different frequency bands, so we keep the format more open. """ def __init__(self): super().__init__() self.axis['chan'] = array([], dtype='O') self.axis['freq'] = array([], dtype='O') class ChanTimeFreq(Data): """Specific class for channel-time-frequency representation, with axes: chan : ndarray (dtype='O') for each trial, channels in the data (dtype='U') time : ndarray (dtype='O') for each trial, 1d matrix with the time stamp (dtype='f') freq : ndarray (dtype='O') for each trial, 1d matrix with the frequency (dtype='f') """ def __init__(self): super().__init__() self.axis['chan'] = array([], dtype='O') self.axis['time'] = array([], dtype='O') self.axis['freq'] = array([], dtype='O') </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40780"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">9,199,819,993,957</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">2fb7e07325ea0e2e69862ce8c6fe415c103ff9e4</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c14d421ec63ff460b11caddec5626a74cd67486c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/examples/workers.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">9bc9522db0af494f2aa405da519f8b54f0f9f404</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">johnturner/glyph-rpc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/johnturner/glyph-rpc</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7390ee2c91674febf69ac368584f349255c336df</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5bd495676b8c58fd71446f824279753730d80aa3</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-12-24T09:02:14.482791</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-06-20T19:20:08</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2012-06-20T19:20:08</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">import glyph from time import sleep def worker(endpoint, name): s = glyph.get(endpoint) print name queue = s.task_queue(name) print queue t = queue.task() print t while t: print 'working on ', t.name for s in range(t.steps): t.progress(s) sleep(1) t.complete() t = queue.task() def queue(): import collections tasks = list("abcdefghijklmnopqrstuvwxyz") m = glyph.Router() @m.default() class Server(glyph.r): @glyph.redirect() def task_queue(self, worker_name): print worker_name return Queue(worker_name) @m.add() class Queue(glyph.r): def __init__(self, worker_name): self.worker_name = worker_name @glyph.redirect() def task(self): print self.worker_name return Task(self.worker_name, tasks.pop()) @m.add() class Task(glyph.r): def __init__(self, _worker, name, steps=2): self._worker = _worker self.name = name self.steps = int(steps) def progress(self, msg): print self._worker, self.name, msg def complete(self): print self._worker, self.name, 'complete' s = glyph.Server(m) return s if __name__ == '__main__': s = queue() s.start() worker(s.url, 'client') s.stop() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,012</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40781"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">4,045,859,236,392</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e55895476a0419b09074bbe5a8cfe0348ac448e9</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">429f22ccf59abd83cadabf81ba12af3fce47b84e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/pygmaps_ng/__init__.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b49df716c0e0c2ec41d3811af8d281e292457c2b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">jashort/pygmaps-ng</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/jashort/pygmaps-ng</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">d3d23c38d347718f754c4f8522c585de47ef3672</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">620ebc35c4f7f238e9cfa98da3e9b0cc8066189f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-12-25T02:30:32.718021</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-07-08T06:22:35</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-07-08T06:22:35</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from .pygmaps_ng import * </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40782"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">8,418,135,943,097</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">596766266e8af96eeca780653c92674d13919911</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5657fc61c11cd1111fda7aa48ea9330ecb0e62b5</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/src/groups</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">269cd61b2ebe5df2d5eaad299b2dbc7420761162</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "GPL-2.0-only" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">carriercomm/pycoreutils</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/carriercomm/pycoreutils</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">da47a71b33c137bd3c004485e7858671c930ee0f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">68ce1d9651dfb0f2f93377fa775490f593831493</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-14T12:35:53.850542</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2011-04-07T17:13:26</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2011-04-07T17:28:02</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/env python # # groups - groups(1) command written in Python # Copyright (C) 2007, 2008, 2009 David Cantrell <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ea8e8b9c838ec486c4898b849e988f8686aa8d878b8386c4898587">[email protected]</a>> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # ver = (2, 0) import getpass import grp import os import pwd import sys def usage(cmd): sys.stdout.write("Usage: %s [OPTIONS]... [USERNAME]..n\n" % (cmd,)) sys.stdout.write(" --help display this help and exit\n") sys.stdout.write(" --version output version information and exit\n\n") sys.stdout.write("Same as id -Gn. If no USERNAME, user current process.\n") def xgroups(userlist=[]): ret = {} groups = grp.getgrall() for user in userlist: try: pwent = pwd.getpwnam(user) except KeyError: sys.stderr.write("%s: %s: No such user\n" % \ (os.path.basename(sys.argv[0]), user,)) else: ret[user] = [] tmpGroups = set() for group in grp.getgrall(): if user in group.gr_mem: tmpGroups.add(group.gr_name) ret[user] = list(tmpGroups) return ret def main(): prog = os.path.basename(sys.argv[0]) if len(sys.argv) == 1: sys.argv.append(getpass.getuser()) if sys.argv[1] == "--help": usage(prog) sys.exit(0) elif sys.argv[1] == "--version": sys.stdout.write("pycoreutils %s version %d.%d\n" % \ (prog, ver[0], ver[1],)) sys.exit(0) else: userlist = sys.argv[1:] if len(userlist): grouplist = xgroups(userlist) if len(grouplist) == 1: (k, v) = grouplist.items()[0] sys.stdout.write("%s\n" % (" ".join(v),)) elif len(grouplist) > 1: for (k, v) in grouplist.items(): sys.stdout.write("%s : %s\n" % (k, " ".join(v),)) sys.exit(0) if __name__ == "__main__": main() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,011</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40783"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">4,097,398,808,792</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">94ad0567c9556bf60c381403ae3caa7eb7420020</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a4af2c3bbfbaa9e43683927b0f700d55c7bad0c5</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/divergence.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">142639eca0e5dc236c0cbda64559f1924437e1b4</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ioana-andronescu/Identification-of-Keywords-in-Historical-Events</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/ioana-andronescu/Identification-of-Keywords-in-Historical-Events</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">81f33bf263a6440ef0e3fb0520253a32f62067bd</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4adbb6b45cc97d2578126f7159c0ae30085cbe04</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-09-05T19:55:21.504021</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-07-29T15:29:41</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-07-29T15:29:41</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">import math ''' Kullback-Leibler divergence for initial distribution and approximate distribution (after applying peak detection algorithms) ''' class KullbackLeibler(): def __init__(self, expected, model): self.expected = expected self.model = model self.max_range = 509 self.relevance = 11 def compute_divergence(self): p_expected = {k: 0 for k in range(self.relevance)} p_model = {k: 0 for k in range(self.relevance)} for t in range(self.max_range): p_expected[self.expected[t]] += 1 p_model[self.model[t]] += 1 for x in range(self.relevance): p_expected[x] = float(p_expected[x]) / self.max_range p_model[x] = float(p_model[x]) / self.max_range sum_probability = 0.0 for x in range(self.relevance): if p_model[x] == 0 or p_expected[x] == 0: sum_probability += 0 else: p = p_expected[x] / p_model[x] sum_probability += p_expected[x] * math.log(p) if sum_probability > 1: sum_probability = 1.0 return (1.0 - sum_probability) * 100.0</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40784"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,010,044,707,610</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b0ce5d60d3451eeaa5ba3a6059c6fa0db3783e80</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a9890e6d9dc9bc96c78b424e29190388f699a14b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/modules/shout.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">65eee22b1ea81c4b7f04eb266c65b52f595d54d4</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "WTFPL" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">onecoding1/raspibot</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/onecoding1/raspibot</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">189aa7753f3d623af4424e64abd754d1664de1ad</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">083d99b2598b1f17d624be86bf52a1623fb5fddf</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-05-28T06:32:39.936793</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-04-16T16:28:24</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2013-04-16T16:28:24</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">9,476,493</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/python import os, sys, string, random trigger="" #if msg.upper() == msg: # print "UPPERCASE" #if msg2.upper() == msg2: # print "UPPERCASE" def random_line(afile): line = next(afile) for num, aline in enumerate(afile): if random.randrange(num + 2): continue line = aline return line def func(line): if line == line.upper() and len(line) > 10 and line != "( ≖‿≖)": f = open('data\shout.txt', 'a') f.write(line+'\n') f.close() f = open('data\shout.txt', 'r') data = random_line(f) f.close() return data else: return ""</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,013</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40785"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">11,433,202,952,895</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">71124f2586c85e2a5488c15373923e735b5a00d3</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">3f284a3903050663d9d54dee1ef600486008fb65</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/proj/scheduler/views.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4df8313eafa15a9578063af1217a58def5abd1de</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">joselouiemark/project</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/joselouiemark/project</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c91a8b7498736a307fb48929020af1937a029739</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">896f62925bdfc01a3994eab8c3d25fe0c8de7a1f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-09-11T07:22:51.052521</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-12-18T10:49:32</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-12-18T10:49:32</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from django.http import HttpResponse from django.template.loader import get_template from django.shortcuts import render_to_response from django.shortcuts import get_object_or_404 from django.template import Context from django.views.generic.base import TemplateView from scheduler.forms import ScheduleForm from scheduler.models import Schedule from django.http import HttpResponseRedirect from django.template import RequestContext from datetime import datetime from datetime import date def schedules(request, stat=0, dfrom='', dto=''): if not request.user.is_authenticated(): return HttpResponseRedirect('/accounts/login/') if request.POST: sdate = request.POST.get('sdate', '') edate = request.POST.get('edate', '') type = request.POST.get('type', 0) return HttpResponseRedirect('/scheduler/all/'+type+'/'+datetime.strptime(sdate, '%Y-%m-%d' ).strftime('%Y%m%d')+'/'+datetime.strptime(edate, '%Y-%m-%d' ).strftime('%Y%m%d')+'/') allObjs = Schedule.objects.filter(owner=request.user.username); allObjs.filter(status=1).filter(date__lt=date.today()).update(date=date.today()) stat = int(stat) if stat > 0 and stat < 4: allObjs = allObjs.filter(status=stat) if dfrom not in [None, ''] and dto not in [None, '']: allObjs = allObjs.filter(date__range=[ datetime.strptime(dfrom, '%Y%m%d' ),datetime.strptime(dto, '%Y%m%d' )]) return render_to_response('schedules.html', {'schedules':allObjs,'full_name': request.user.first_name +" " +request.user.last_name, 'today':date.today()}) def create(request): if not request.user.is_authenticated(): return HttpResponseRedirect('/accounts/login/') if request.POST: form = ScheduleForm(request.POST) form.owner = request.user.username if form.is_valid(): form.save() return HttpResponseRedirect('/scheduler/all') else: form = ScheduleForm() form.owner = request.user.username return render_to_response('create_schedule.html', { 'form': form, 'full_name': request.user.first_name +" " +request.user.last_name, }, context_instance=RequestContext(request)) def schedule(request, schedule_id = None): if not request.user.is_authenticated(): return HttpResponseRedirect('/accounts/login/') schedule = Schedule.objects.get(id=schedule_id) if request.POST: form = ScheduleForm(request.POST, instance=schedule) form.owner = request.user.username if form.is_valid(): form.save() return HttpResponseRedirect('/scheduler/all') else: form = ScheduleForm(instance=schedule) form.owner = request.user.username return render_to_response('schedule.html', { 'form': form, 'full_name': request.user.first_name +" " +request.user.last_name }, context_instance=RequestContext(request)) def cancel_schedule(request, schedule_id): if not request.user.is_authenticated(): return HttpResponseRedirect('/accounts/login/') if schedule_id: a = Schedule.objects.get(id=schedule_id) a.status = 3 a.save() return HttpResponseRedirect('/scheduler/all') def finish_schedule(request, schedule_id): if not request.user.is_authenticated(): return HttpResponseRedirect('/accounts/login/') if schedule_id: a = Schedule.objects.get(id=schedule_id) a.status = 2 a.save() return HttpResponseRedirect('/scheduler/all') </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40786"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">16,673,063,074,223</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">035959079a1769181bd2c16fa0dd7be289da03c5</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">d144ae6278b66788f380ab8a32e78745b9f4b025</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/karaage/software/views/user.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">d7527cac58ccacfb45c9b0672d4a18ee4e138c1f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "GPL-3.0-only" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">NeCTAR-RC/karaage</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/NeCTAR-RC/karaage</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e7f209345a54a2ea15a394343410d2e9c69618df</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">2843116a715d23b3cc2572a043ce51badbd6b5b0</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-05-01T16:25:32.981935</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-01-30T06:37:53</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-01-31T00:20:52</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">16,370,364</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># Copyright 2007-2013 VPAC # # This file is part of Karaage. # # Karaage is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Karaage is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Karaage If not, see <http://www.gnu.org/licenses/>. from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect, HttpResponse, Http404 from django.template.defaultfilters import wordwrap import datetime from karaage.common.decorators import login_required from karaage.software.models import Software, SoftwareLicenseAgreement @login_required def add_package_list(request): person = request.user software_list = [] for s in Software.objects.filter(softwarelicense__isnull=False).distinct(): data = {'software': s} license_agreements = SoftwareLicenseAgreement.objects.filter(user=person, license__software=s) if license_agreements.count() > 0: la = license_agreements.latest() data['accepted'] = True data['accepted_date'] = la.date software_list.append(data) return render_to_response('software/add_package_list.html', locals(), context_instance=RequestContext(request)) @login_required def add_package(request, software_id): software = get_object_or_404(Software, pk=software_id) software_license = software.get_current_license() person = request.user if software_license is None: raise Http404("Package '%s' has no software license." % (software)) if request.method == 'POST': if not software.restricted: SoftwareLicenseAgreement.objects.create( user=person, license=software_license, date=datetime.datetime.today(), ) person.add_group(software.group) return HttpResponseRedirect(reverse('kg_user_profile_software')) return render_to_response('software/accept_license.html', locals(), context_instance=RequestContext(request)) @login_required def license_txt(request, software_id): software = get_object_or_404(Software, pk=software_id) software_license = software.get_current_license() return HttpResponse(wordwrap(software_license.text, 80), mimetype="text/plain") </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40787"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">6,030,134,114,757</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">682e9dc3e39e03003eac2c92459aaa30e0e58b77</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5b8332d985540aada63f6348a8760598c87796b3</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/src/python/Pipeline.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">28a62a2468dee43d839ae37af5df73a7bf2ec063</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "BSD-2-Clause" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">boratonAJ/ngs-pipeline</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/boratonAJ/ngs-pipeline</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">1b296d2556d31395f43cd409200ac9e0f1c33eb6</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">2d972f2fe4c265727b15a85b8422118653a88e77</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-12-11T09:27:33.777319</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2011-06-14T04:32:59</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2011-06-14T04:32:59</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from os.path import (split, splitext, join, exists) from os import (system, remove, mkdir) from Logger import (logInfo, logWarn) from sys import exit from shutil import copy def mkOutputDir(dir): def tryMakeDir(dir): if not exists(dir): logInfo('Creating folder %s' % dir) try: mkdir(dir, '0777') except IOError, e: exit('%s\nFailed to make directory %s' % (e, dir)) tryMakeDir(dir) tryMakeDir(os.path.join(dir, 'Binary')) def runCommand(msg, cmd): logInfo(msg) logInfo(command) status = system(command) if status != 0: logWarn("command '%s' returned non-zero status: %d'" % (command, status)) return status def align(algorithm, threadFlags, dir, reference, sequence): (root, ext) = splitext(sequence) if ext != ".fastq": exit("align: sequence file %s does not have .fastq extension" % sequence) alignmentFile = root + ".sai" command = "bwa %s -t %s %s %s > %s" % (algorithm, threadFlags, reference, sequence, alignmentFile) runCommand ("Running Alignment", command) return alignment def align2Sam (flags, reference, sequence, alignment): (root, ext) = splitext(alignment) if ext != ".sai": exit("align2Sam: alignment file %s does not have .sai extension" % alignment) samfile = root + ".sam" command = "bwa %s %s %s %s > %s" % (flags, reference, alignment, sequence, samfile) runCommand("Converting alignment to SAM format", command) return samfile def ills2FastQs(sequences): return map(illumina2FastQ, sequences) def illumina2FastQ(file): (root, ext) = split(file) sangerFile = root + ".fastq" if ext == ".fastq": logInfo("illumina2FastQ: file %s already in Standard/Sanger FASTQ Format" % file) elif ext == ".txt": command = "maq ill2sanger %s %s" % (file, sangerFile) runCommand("Converting illumina file to Standard/Sanger FASTQ Format", command) else: exit("sequence file %s not in illumina (.txt) or sanger (.fastq) format" % file) return sangerFile # create reference database def mkRefDataBase(reference, indexFlags): refDatabase = referenece + ".bwt" if exists(refDatabase) logInfo("Reference database already exists: using %s" % refDatabase) else: command = "bwa index %s %s" % (indexFlags, reference) runCommand("Creating Reference Database", command) return refDatabase # index the reference def indexReference(reference): referenceIndex = reference + .".fai" if exists(referenceIndex): logInfo("Reflist already exists: using %s" % referenceIndex) else: command = "samtools faidx %s" % reference runCommand("Creating Reflist", command) return referenceIndex def mergeBamsAndIndex(dir, bamFiles): bamAlignFile = dir + "Binary/all_reads_aligned.bam" numBams = len(bamFiles); # If there is more than one BAM file then merge them. if numBams > 1: command = "samtools merge %s %s" % (bamAlignFile, ' '.join(bamFiles)) runCommand ("Merging Bam files", command) elif numBams == 1: copy(bamfiles[0], bamAlignFile) else: exit("Attempt to merge and index zero BAM files") command = "samtools index %s" % bamAlignFile runCommand("Indexing Alignment File", command) return bamAlignFile def pileup(dir, pileupFlags, reference, bamAlignFile): pileupFile = dir + "reads_aligned.pileup" command = "samtools pileup %s -f %s %s > %s" % (pileupFlags, reference, bamAlignFile, pileupFile) runCommand("Constructing Pileup File", command) return pileupFile # Convert SAM to BAM # Assumes the Binary directory has been created already. def sam2Bam(vregion, viewFlag, reference, samFile): (root, base) = split(samFile) (name, ext) = splitext(base) if ext != ".sam": exit("sam2Bam: file %s does not end in .sam extension" % samFile) bamAlignFile = os.path.join(root + "Binary", name + ".bam") command = "samtools view $VIEWFLAG -t $REFERENCE.fai -o $BAMALIGN $SAMFILE @VREGION"; faiFile = reference + ".fai" command = "samtools view %s -t %s -o %s %s %s" % (viewFlag, faiFile, bamAlignFile, samFile, vregion) runCommand("Converting to BAM", command) return bamAlignFile # Sort a BAM file def sortBam(bamAlignFile, sortFlags): (root, ext) = splitext(bamAlignFile) sortedBamFile = root + ".sorted" command = "samtools sort %s %s %s" % (sortFlags, bamAlignFile, sortedBamFile) runCommand("Sorting Bam alignments", command) # I think we should leave the decision to remove the BAM file to the # caller of this function. #remove(bamAlignFile) return sortedBamFile + ".bam" # run the variations filter def varFilter(varFilterFlags, pileupFile, outputExtension): snpsFile = pileupFile + outputExtension command = "samtools.pl varFilter $VARFILTERFLAGS $PILEUPFILE &> $SNPSFILE"; command = "samtools.pl varFilter %s %s &> %s" % (varFilterFlags, pileupFile, snpsFile) runCommand("Running Variations Filter", command) return snpsFile </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,011</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40788"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">15,212,774,169,891</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">9b5da255b90d5810ab71aee729cf22a8231d1844</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">d5577c9ac9ec64aa75b75aa3fabb5a8e08550829</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/lib/scavenger/policy/plugins/trap.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b3fa946fad823eb6d2ca2c98d2eb3a8024380199</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "AGPL-3.0-only" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">digideskio/scavengerexa</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/digideskio/scavengerexa</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b36fe50894ea9b2ebcd166742b7696cc95041e9c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">8db7bd4417f2c1847c50127829eca03e20d0a77e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-06-13T15:51:16.106427</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2010-11-25T12:19:47</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2010-11-25T12:19:47</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># a plugin which detect email which were only created to collect spam </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,010</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40789"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">9,122,510,554,354</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">74054362d7aa7ed4e111d5f7c5d0ebbb7ce94556</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">0688f5858bdbfc475b2f00ac77040686e905189c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/tupan/__init__.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e51f2e317f4b0383beb99741b7287784e6c425ec</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "MIT" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ggf84/tupan</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/ggf84/tupan</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a059da8425b745be0bf1be22b7cbf7de06301153</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">67d3aa103d77248a04e8f112930ba7bdb55024b2</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-23T15:17:59.850456</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-02-15T18:57:54</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-02-15T18:57:54</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">988,037</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">4</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># -*- coding: utf-8 -*- # """ A Python Toolkit for Astrophysical N-Body Simulations. """ import os import logging import tempfile # set up logging to file LOG_FILENAME = os.path.join(tempfile.gettempdir(), "tupan.log") LOG_FORMAT = "%(asctime)s - %(name)s - %(levelname)s - %(message)s" logging.basicConfig(level=logging.DEBUG, format=LOG_FORMAT, filename=LOG_FILENAME, filemode="w", ) ## set up logging to console #console = logging.StreamHandler() #console.setLevel(logging.INFO) # ## set a simpler format for console use #formatter = logging.Formatter("# %(name)s - %(levelname)s - %(message)s") #console.setFormatter(formatter) # ## add the handler to the root logger #logging.getLogger("").addHandler(console) ########## end of file ########## </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40790"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">3,710,851,746,579</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ad67067384cb33ebde9a634ea1b35fd706dd6e98</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">6f72fa12770dce74e183774aaf30fc77835550e3</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/utils/writetoexcel.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">8a62228f99adf4a0bc248ea9b56c3cd5b7f3f87e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">MinHuZ/FrameworkForAndroidTest</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/MinHuZ/FrameworkForAndroidTest</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7a7582e0880d5767868d648099cacc40c88de29e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b6a98af2bd9bb92a4e8e4260b9771660b1a26798</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-01-31T11:24:37.073956</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-08-16T12:03:28</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-08-16T12:03:28</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># -*- coding: utf-8 -*- __author__ = 'dongdaqing' import os,time,codecs from pyExcelerator import * class WritetoExcel(object): def __init__(self,filename): self.root_path = os.path.dirname(filename) #设置边框 borders = Borders() borders.left = 1 borders.right = 1 borders.top = 1 borders.bottom = 1 #水平向左,垂直居中对齐 al1 = Alignment() al1.horz = Alignment.HORZ_LEFT al1.vert = Alignment.VERT_CENTER al1.wrap = Alignment.WRAP_AT_RIGHT #excel颜色定义 #绿色 self.style_green = XFStyle() self.pattern = Pattern() self.pattern.pattern_back_colour = 0x11 self.pattern.pattern_fore_colour = 0x11 self.pattern.pattern = self.pattern.SOLID_PATTERN self.style_green.pattern = self.pattern #红色 self.style_red = XFStyle() self.pattern = Pattern() self.pattern.pattern_back_colour = 0x0a self.pattern.pattern_fore_colour = 0x0a self.pattern.pattern = self.pattern.SOLID_PATTERN self.style_red.pattern = self.pattern #普通 self.style_basic = XFStyle() self.style_basic.alignment = al1 self.style_basic.borders = borders def txtToExcel(self,flag): """ 将txt文件写入excel """ root_path = self.root_path assert os.path.exists(root_path) w=Workbook() os.chdir(root_path) file_names = os.listdir('.') for file_name in file_names: if file_name.find(flag) != -1: file_path = os.path.join(root_path,file_name) ws = w.add_sheet(flag) try: f = codecs.open(file_path,'r','utf-8') except IOError: sys.exit('Failed to open') else: lines = f.readlines() finally: f.close() for i in range(0,len(lines)): line = lines[i].split('\t') for j in range(0,len(line)): b=line[j].strip() if b == 'Failed': ws.write(i,j,b,self.style_red) elif b == 'Passed': ws.write(i,j,b,self.style_green) else: ws.write(i,j,b) save_path=os.path.join(root_path,flag+'.xls') if os.path.exists(save_path): os.remove(save_path) w.save(save_path) def basicToExcel(self,ws,row,col,src): """ 将dict,str写入excel """ ws.write(row,col,src,self.style_basic) if __name__ == '__main__': filename = 'D:\\svn\\repos\\AutomatedTesting\\DailyBuild\\uitest\\temp\\20130701175043\\caseresult.txt' WritetoExcel(filename).txtToExcel('caseresult') </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40791"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">3,229,815,438,781</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">1be11e52fdb197213a8bdbaa706bb575baaa4d3e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">3c1c146817cb41c4273f437584b6681a2aa3efa0</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/app/ui/mainwindow.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">85c762953f7fc255c762c53aa5bd8d28e9859e35</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "LicenseRef-scancode-proprietary-license", "GPL-2.0-only" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">towle-lab/electrode-registration-app</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/towle-lab/electrode-registration-app</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a38159d72b2892f1eee78c0319d1212cfba9a4b1</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">bbdfaa500cef02c7121b5c70d15aef6e9c41020f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-09-03T07:33:01.427709</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-08-05T23:18:19</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-08-05T23:18:19</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">18,225,314</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'app/ui/mainwindow.ui' # # Created: Tue Aug 5 17:31:33 2014 # by: pyside-uic 0.2.15 running on PySide 1.2.1 # # WARNING! All changes made in this file will be lost! from PySide import QtCore, QtGui class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1000, 645) MainWindow.setStyleSheet("QMenuBar { \n" " background-color: rgb(197, 197, 197);\n" "}\n" "\n" "QMenuBar::item {\n" " background-color: rgb(197, 197, 197);\n" " color: black;\n" "}") self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget) self.horizontalLayout.setObjectName("horizontalLayout") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1000, 25)) self.menubar.setAutoFillBackground(False) self.menubar.setNativeMenuBar(False) self.menubar.setObjectName("menubar") self.menuFile = QtGui.QMenu(self.menubar) self.menuFile.setObjectName("menuFile") self.menuHelp = QtGui.QMenu(self.menubar) self.menuHelp.setObjectName("menuHelp") self.menuView = QtGui.QMenu(self.menubar) self.menuView.setObjectName("menuView") self.menuAdvanced = QtGui.QMenu(self.menubar) self.menuAdvanced.setObjectName("menuAdvanced") MainWindow.setMenuBar(self.menubar) self.dockWidget = QtGui.QDockWidget(MainWindow) self.dockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable) self.dockWidget.setAllowedAreas(QtCore.Qt.LeftDockWidgetArea|QtCore.Qt.RightDockWidgetArea) self.dockWidget.setObjectName("dockWidget") self.dockWidgetContents = QtGui.QWidget() self.dockWidgetContents.setObjectName("dockWidgetContents") self.verticalLayout_3 = QtGui.QVBoxLayout(self.dockWidgetContents) self.verticalLayout_3.setContentsMargins(5, 5, 5, 5) self.verticalLayout_3.setObjectName("verticalLayout_3") self.tabWidget = QtGui.QTabWidget(self.dockWidgetContents) self.tabWidget.setTabPosition(QtGui.QTabWidget.North) self.tabWidget.setTabShape(QtGui.QTabWidget.Rounded) self.tabWidget.setMovable(True) self.tabWidget.setObjectName("tabWidget") self.tab_segment = QtGui.QWidget() self.tab_segment.setObjectName("tab_segment") self.verticalLayout_7 = QtGui.QVBoxLayout(self.tab_segment) self.verticalLayout_7.setObjectName("verticalLayout_7") self.pushButton_open_ct_dura = QtGui.QPushButton(self.tab_segment) self.pushButton_open_ct_dura.setAutoDefault(False) self.pushButton_open_ct_dura.setDefault(False) self.pushButton_open_ct_dura.setObjectName("pushButton_open_ct_dura") self.verticalLayout_7.addWidget(self.pushButton_open_ct_dura) self.frame_segment = QtGui.QFrame(self.tab_segment) self.frame_segment.setEnabled(False) self.frame_segment.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_segment.setFrameShadow(QtGui.QFrame.Raised) self.frame_segment.setLineWidth(2) self.frame_segment.setObjectName("frame_segment") self.verticalLayout = QtGui.QVBoxLayout(self.frame_segment) self.verticalLayout.setObjectName("verticalLayout") self.groupBox = QtGui.QGroupBox(self.frame_segment) self.groupBox.setObjectName("groupBox") self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.horizontalSlider_threshold = QtGui.QSlider(self.groupBox) self.horizontalSlider_threshold.setOrientation(QtCore.Qt.Horizontal) self.horizontalSlider_threshold.setObjectName("horizontalSlider_threshold") self.horizontalLayout_2.addWidget(self.horizontalSlider_threshold) self.spinBox_threshold = QtGui.QSpinBox(self.groupBox) self.spinBox_threshold.setObjectName("spinBox_threshold") self.horizontalLayout_2.addWidget(self.spinBox_threshold) self.verticalLayout.addWidget(self.groupBox) self.pushButton_preview_threshold = QtGui.QPushButton(self.frame_segment) self.pushButton_preview_threshold.setObjectName("pushButton_preview_threshold") self.verticalLayout.addWidget(self.pushButton_preview_threshold) self.pushButton_hide_preview = QtGui.QPushButton(self.frame_segment) self.pushButton_hide_preview.setEnabled(False) self.pushButton_hide_preview.setObjectName("pushButton_hide_preview") self.verticalLayout.addWidget(self.pushButton_hide_preview) self.verticalLayout_7.addWidget(self.frame_segment) self.frame_segment_config = QtGui.QFrame(self.tab_segment) self.frame_segment_config.setEnabled(False) self.frame_segment_config.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_segment_config.setFrameShadow(QtGui.QFrame.Raised) self.frame_segment_config.setObjectName("frame_segment_config") self.verticalLayout_6 = QtGui.QVBoxLayout(self.frame_segment_config) self.verticalLayout_6.setObjectName("verticalLayout_6") self.groupBox_heuristic_distance = QtGui.QGroupBox(self.frame_segment_config) self.groupBox_heuristic_distance.setObjectName("groupBox_heuristic_distance") self.horizontalLayout_3 = QtGui.QHBoxLayout(self.groupBox_heuristic_distance) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.horizontalSlider_distance = QtGui.QSlider(self.groupBox_heuristic_distance) self.horizontalSlider_distance.setOrientation(QtCore.Qt.Horizontal) self.horizontalSlider_distance.setInvertedControls(False) self.horizontalSlider_distance.setTickPosition(QtGui.QSlider.NoTicks) self.horizontalSlider_distance.setObjectName("horizontalSlider_distance") self.horizontalLayout_3.addWidget(self.horizontalSlider_distance) self.doubleSpinBox_distance = QtGui.QDoubleSpinBox(self.groupBox_heuristic_distance) self.doubleSpinBox_distance.setObjectName("doubleSpinBox_distance") self.horizontalLayout_3.addWidget(self.doubleSpinBox_distance) self.label = QtGui.QLabel(self.groupBox_heuristic_distance) self.label.setObjectName("label") self.horizontalLayout_3.addWidget(self.label) self.verticalLayout_6.addWidget(self.groupBox_heuristic_distance) self.groupBox_heuristic_size = QtGui.QGroupBox(self.frame_segment_config) self.groupBox_heuristic_size.setObjectName("groupBox_heuristic_size") self.horizontalLayout_4 = QtGui.QHBoxLayout(self.groupBox_heuristic_size) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.horizontalSlider_size = QtGui.QSlider(self.groupBox_heuristic_size) self.horizontalSlider_size.setOrientation(QtCore.Qt.Horizontal) self.horizontalSlider_size.setObjectName("horizontalSlider_size") self.horizontalLayout_4.addWidget(self.horizontalSlider_size) self.doubleSpinBox_size = QtGui.QDoubleSpinBox(self.groupBox_heuristic_size) self.doubleSpinBox_size.setObjectName("doubleSpinBox_size") self.horizontalLayout_4.addWidget(self.doubleSpinBox_size) self.label_2 = QtGui.QLabel(self.groupBox_heuristic_size) self.label_2.setTextFormat(QtCore.Qt.RichText) self.label_2.setObjectName("label_2") self.horizontalLayout_4.addWidget(self.label_2) self.verticalLayout_6.addWidget(self.groupBox_heuristic_size) self.verticalLayout_7.addWidget(self.frame_segment_config) self.pushButton_segment = QtGui.QPushButton(self.tab_segment) self.pushButton_segment.setEnabled(False) self.pushButton_segment.setObjectName("pushButton_segment") self.verticalLayout_7.addWidget(self.pushButton_segment) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_7.addItem(spacerItem) self.tabWidget.addTab(self.tab_segment, "") self.tab_edit = QtGui.QWidget() self.tab_edit.setEnabled(False) self.tab_edit.setObjectName("tab_edit") self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab_edit) self.verticalLayout_2.setObjectName("verticalLayout_2") self.treeView_edit = QtGui.QTreeView(self.tab_edit) self.treeView_edit.setAlternatingRowColors(True) self.treeView_edit.setSelectionMode(QtGui.QAbstractItemView.MultiSelection) self.treeView_edit.setObjectName("treeView_edit") self.verticalLayout_2.addWidget(self.treeView_edit) self.horizontalLayout_9 = QtGui.QHBoxLayout() self.horizontalLayout_9.setObjectName("horizontalLayout_9") spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_9.addItem(spacerItem1) self.label_edit_select_count = QtGui.QLabel(self.tab_edit) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_edit_select_count.sizePolicy().hasHeightForWidth()) self.label_edit_select_count.setSizePolicy(sizePolicy) self.label_edit_select_count.setObjectName("label_edit_select_count") self.horizontalLayout_9.addWidget(self.label_edit_select_count) self.label_6 = QtGui.QLabel(self.tab_edit) self.label_6.setObjectName("label_6") self.horizontalLayout_9.addWidget(self.label_6) self.verticalLayout_2.addLayout(self.horizontalLayout_9) self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.label_edit_electrode_count = QtGui.QLabel(self.tab_edit) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_edit_electrode_count.sizePolicy().hasHeightForWidth()) self.label_edit_electrode_count.setSizePolicy(sizePolicy) self.label_edit_electrode_count.setText("") self.label_edit_electrode_count.setObjectName("label_edit_electrode_count") self.horizontalLayout_7.addWidget(self.label_edit_electrode_count) self.label_7 = QtGui.QLabel(self.tab_edit) self.label_7.setObjectName("label_7") self.horizontalLayout_7.addWidget(self.label_7) spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_7.addItem(spacerItem2) self.label_component_count = QtGui.QLabel(self.tab_edit) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_component_count.sizePolicy().hasHeightForWidth()) self.label_component_count.setSizePolicy(sizePolicy) self.label_component_count.setText("") self.label_component_count.setObjectName("label_component_count") self.horizontalLayout_7.addWidget(self.label_component_count) self.label_5 = QtGui.QLabel(self.tab_edit) self.label_5.setObjectName("label_5") self.horizontalLayout_7.addWidget(self.label_5) self.verticalLayout_2.addLayout(self.horizontalLayout_7) self.line = QtGui.QFrame(self.tab_edit) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout_2.addWidget(self.line) self.pushButton_add = QtGui.QPushButton(self.tab_edit) self.pushButton_add.setCheckable(True) self.pushButton_add.setObjectName("pushButton_add") self.verticalLayout_2.addWidget(self.pushButton_add) self.pushButton_import_point_set = QtGui.QPushButton(self.tab_edit) self.pushButton_import_point_set.setObjectName("pushButton_import_point_set") self.verticalLayout_2.addWidget(self.pushButton_import_point_set) self.horizontalLayout_10 = QtGui.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.pushButton_remove = QtGui.QPushButton(self.tab_edit) self.pushButton_remove.setObjectName("pushButton_remove") self.horizontalLayout_10.addWidget(self.pushButton_remove) self.pushButton_restore = QtGui.QPushButton(self.tab_edit) self.pushButton_restore.setObjectName("pushButton_restore") self.horizontalLayout_10.addWidget(self.pushButton_restore) self.verticalLayout_2.addLayout(self.horizontalLayout_10) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.label_3 = QtGui.QLabel(self.tab_edit) self.label_3.setObjectName("label_3") self.horizontalLayout_5.addWidget(self.label_3) self.spinBox_split = QtGui.QSpinBox(self.tab_edit) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spinBox_split.sizePolicy().hasHeightForWidth()) self.spinBox_split.setSizePolicy(sizePolicy) self.spinBox_split.setMinimum(2) self.spinBox_split.setObjectName("spinBox_split") self.horizontalLayout_5.addWidget(self.spinBox_split) self.pushButton_split = QtGui.QPushButton(self.tab_edit) self.pushButton_split.setObjectName("pushButton_split") self.horizontalLayout_5.addWidget(self.pushButton_split) self.verticalLayout_2.addLayout(self.horizontalLayout_5) self.pushButton_clear = QtGui.QPushButton(self.tab_edit) self.pushButton_clear.setObjectName("pushButton_clear") self.verticalLayout_2.addWidget(self.pushButton_clear) self.tabWidget.addTab(self.tab_edit, "") self.tab_label = QtGui.QWidget() self.tab_label.setEnabled(False) self.tab_label.setObjectName("tab_label") self.verticalLayout_5 = QtGui.QVBoxLayout(self.tab_label) self.verticalLayout_5.setObjectName("verticalLayout_5") self.tableView_label = QtGui.QTableView(self.tab_label) self.tableView_label.setAlternatingRowColors(True) self.tableView_label.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows) self.tableView_label.setSortingEnabled(True) self.tableView_label.setObjectName("tableView_label") self.verticalLayout_5.addWidget(self.tableView_label) self.horizontalLayout_12 = QtGui.QHBoxLayout() self.horizontalLayout_12.setObjectName("horizontalLayout_12") spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_12.addItem(spacerItem3) self.label_label_select_count = QtGui.QLabel(self.tab_label) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_label_select_count.sizePolicy().hasHeightForWidth()) self.label_label_select_count.setSizePolicy(sizePolicy) self.label_label_select_count.setObjectName("label_label_select_count") self.horizontalLayout_12.addWidget(self.label_label_select_count) self.label_10 = QtGui.QLabel(self.tab_label) self.label_10.setObjectName("label_10") self.horizontalLayout_12.addWidget(self.label_10) self.verticalLayout_5.addLayout(self.horizontalLayout_12) self.horizontalLayout_8 = QtGui.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.lineEdit_grid_label = QtGui.QLineEdit(self.tab_label) self.lineEdit_grid_label.setObjectName("lineEdit_grid_label") self.horizontalLayout_8.addWidget(self.lineEdit_grid_label) self.pushButton_assign_grid_label = QtGui.QPushButton(self.tab_label) self.pushButton_assign_grid_label.setObjectName("pushButton_assign_grid_label") self.horizontalLayout_8.addWidget(self.pushButton_assign_grid_label) self.verticalLayout_5.addLayout(self.horizontalLayout_8) self.pushButton_label_clear = QtGui.QPushButton(self.tab_label) self.pushButton_label_clear.setObjectName("pushButton_label_clear") self.verticalLayout_5.addWidget(self.pushButton_label_clear) self.pushButton_export = QtGui.QPushButton(self.tab_label) self.pushButton_export.setObjectName("pushButton_export") self.verticalLayout_5.addWidget(self.pushButton_export) self.tabWidget.addTab(self.tab_label, "") self.tab_register = QtGui.QWidget() self.tab_register.setEnabled(False) self.tab_register.setObjectName("tab_register") self.verticalLayout_4 = QtGui.QVBoxLayout(self.tab_register) self.verticalLayout_4.setObjectName("verticalLayout_4") self.listView_register = QtGui.QListView(self.tab_register) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.listView_register.sizePolicy().hasHeightForWidth()) self.listView_register.setSizePolicy(sizePolicy) self.listView_register.setAlternatingRowColors(True) self.listView_register.setSelectionMode(QtGui.QAbstractItemView.MultiSelection) self.listView_register.setObjectName("listView_register") self.verticalLayout_4.addWidget(self.listView_register) self.horizontalLayout_6 = QtGui.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem4) self.label_register_select_count = QtGui.QLabel(self.tab_register) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_register_select_count.sizePolicy().hasHeightForWidth()) self.label_register_select_count.setSizePolicy(sizePolicy) self.label_register_select_count.setObjectName("label_register_select_count") self.horizontalLayout_6.addWidget(self.label_register_select_count) self.label_8 = QtGui.QLabel(self.tab_register) self.label_8.setObjectName("label_8") self.horizontalLayout_6.addWidget(self.label_8) self.verticalLayout_4.addLayout(self.horizontalLayout_6) self.horizontalLayout_11 = QtGui.QHBoxLayout() self.horizontalLayout_11.setObjectName("horizontalLayout_11") self.label_register_complete_count = QtGui.QLabel(self.tab_register) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_register_complete_count.sizePolicy().hasHeightForWidth()) self.label_register_complete_count.setSizePolicy(sizePolicy) self.label_register_complete_count.setObjectName("label_register_complete_count") self.horizontalLayout_11.addWidget(self.label_register_complete_count) self.label_9 = QtGui.QLabel(self.tab_register) self.label_9.setObjectName("label_9") self.horizontalLayout_11.addWidget(self.label_9) spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_11.addItem(spacerItem5) self.label_register_electrode_count = QtGui.QLabel(self.tab_register) self.label_register_electrode_count.setObjectName("label_register_electrode_count") self.horizontalLayout_11.addWidget(self.label_register_electrode_count) self.label_4 = QtGui.QLabel(self.tab_register) self.label_4.setObjectName("label_4") self.horizontalLayout_11.addWidget(self.label_4) self.verticalLayout_4.addLayout(self.horizontalLayout_11) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.pushButton_svd = QtGui.QPushButton(self.tab_register) self.pushButton_svd.setObjectName("pushButton_svd") self.gridLayout.addWidget(self.pushButton_svd, 1, 0, 1, 1) self.pushButton_manual = QtGui.QPushButton(self.tab_register) self.pushButton_manual.setCheckable(True) self.pushButton_manual.setChecked(False) self.pushButton_manual.setObjectName("pushButton_manual") self.gridLayout.addWidget(self.pushButton_manual, 1, 1, 1, 1) self.pushButton_nearest = QtGui.QPushButton(self.tab_register) self.pushButton_nearest.setObjectName("pushButton_nearest") self.gridLayout.addWidget(self.pushButton_nearest, 0, 1, 1, 1) self.pushButton_principal = QtGui.QPushButton(self.tab_register) self.pushButton_principal.setObjectName("pushButton_principal") self.gridLayout.addWidget(self.pushButton_principal, 0, 0, 1, 1) self.pushButton_unregister = QtGui.QPushButton(self.tab_register) self.pushButton_unregister.setObjectName("pushButton_unregister") self.gridLayout.addWidget(self.pushButton_unregister, 2, 0, 1, 2) self.verticalLayout_4.addLayout(self.gridLayout) self.pushButton_register_clear = QtGui.QPushButton(self.tab_register) self.pushButton_register_clear.setObjectName("pushButton_register_clear") self.verticalLayout_4.addWidget(self.pushButton_register_clear) self.tabWidget.addTab(self.tab_register, "") self.verticalLayout_3.addWidget(self.tabWidget) self.dockWidget.setWidget(self.dockWidgetContents) MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockWidget) self.actionOpen = QtGui.QAction(MainWindow) self.actionOpen.setObjectName("actionOpen") self.actionOpenProject = QtGui.QAction(MainWindow) self.actionOpenProject.setObjectName("actionOpenProject") self.actionSaveProject = QtGui.QAction(MainWindow) self.actionSaveProject.setObjectName("actionSaveProject") self.actionRecentProjects = QtGui.QAction(MainWindow) self.actionRecentProjects.setObjectName("actionRecentProjects") self.actionAbout = QtGui.QAction(MainWindow) self.actionAbout.setObjectName("actionAbout") self.actionSaveProjectAs = QtGui.QAction(MainWindow) self.actionSaveProjectAs.setObjectName("actionSaveProjectAs") self.actionOpenPial = QtGui.QAction(MainWindow) self.actionOpenPial.setObjectName("actionOpenPial") self.actionShowPial = QtGui.QAction(MainWindow) self.actionShowPial.setCheckable(True) self.actionShowPial.setObjectName("actionShowPial") self.actionHideThresholdingPreview = QtGui.QAction(MainWindow) self.actionHideThresholdingPreview.setObjectName("actionHideThresholdingPreview") self.actionExport_segmentation_dataset = QtGui.QAction(MainWindow) self.actionExport_segmentation_dataset.setObjectName("actionExport_segmentation_dataset") self.actionShow_Electrode_ID = QtGui.QAction(MainWindow) self.actionShow_Electrode_ID.setCheckable(True) self.actionShow_Electrode_ID.setObjectName("actionShow_Electrode_ID") self.actionAbout_Qt = QtGui.QAction(MainWindow) self.actionAbout_Qt.setObjectName("actionAbout_Qt") self.actionReport_an_issue = QtGui.QAction(MainWindow) self.actionReport_an_issue.setObjectName("actionReport_an_issue") self.actionDocumentation = QtGui.QAction(MainWindow) self.actionDocumentation.setObjectName("actionDocumentation") self.actionSource_Repository = QtGui.QAction(MainWindow) self.actionSource_Repository.setObjectName("actionSource_Repository") self.actionLicense = QtGui.QAction(MainWindow) self.actionLicense.setObjectName("actionLicense") self.menuFile.addAction(self.actionOpen) self.menuFile.addAction(self.actionOpenPial) self.menuFile.addAction(self.actionOpenProject) self.menuFile.addAction(self.actionSaveProject) self.menuFile.addAction(self.actionSaveProjectAs) self.menuFile.addAction(self.actionRecentProjects) self.menuHelp.addAction(self.actionReport_an_issue) self.menuHelp.addAction(self.actionDocumentation) self.menuHelp.addAction(self.actionAbout) self.menuHelp.addAction(self.actionAbout_Qt) self.menuHelp.addAction(self.actionSource_Repository) self.menuHelp.addAction(self.actionLicense) self.menuView.addAction(self.actionShowPial) self.menuView.addAction(self.actionHideThresholdingPreview) self.menuView.addAction(self.actionShow_Electrode_ID) self.menuAdvanced.addAction(self.actionExport_segmentation_dataset) self.menubar.addAction(self.menuFile.menuAction()) self.menubar.addAction(self.menuView.menuAction()) self.menubar.addAction(self.menuAdvanced.menuAction()) self.menubar.addAction(self.menuHelp.menuAction()) self.retranslateUi(MainWindow) self.tabWidget.setCurrentIndex(0) QtCore.QObject.connect(self.horizontalSlider_threshold, QtCore.SIGNAL("sliderMoved(int)"), self.spinBox_threshold.setValue) QtCore.QObject.connect(self.pushButton_open_ct_dura, QtCore.SIGNAL("clicked()"), self.actionOpen.trigger) QtCore.QObject.connect(self.spinBox_threshold, QtCore.SIGNAL("valueChanged(int)"), self.horizontalSlider_threshold.setValue) QtCore.QObject.connect(self.pushButton_hide_preview, QtCore.SIGNAL("clicked()"), self.actionHideThresholdingPreview.trigger) QtCore.QObject.connect(self.pushButton_clear, QtCore.SIGNAL("clicked()"), self.treeView_edit.clearSelection) QtCore.QObject.connect(self.pushButton_register_clear, QtCore.SIGNAL("clicked()"), self.listView_register.clearSelection) QtCore.QObject.connect(self.pushButton_label_clear, QtCore.SIGNAL("clicked()"), self.tableView_label.clearSelection) QtCore.QObject.connect(self.lineEdit_grid_label, QtCore.SIGNAL("returnPressed()"), self.pushButton_assign_grid_label.click) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "Interactive Electrode Registration", None, QtGui.QApplication.UnicodeUTF8)) self.menuFile.setTitle(QtGui.QApplication.translate("MainWindow", "File", None, QtGui.QApplication.UnicodeUTF8)) self.menuHelp.setTitle(QtGui.QApplication.translate("MainWindow", "Help", None, QtGui.QApplication.UnicodeUTF8)) self.menuView.setTitle(QtGui.QApplication.translate("MainWindow", "View", None, QtGui.QApplication.UnicodeUTF8)) self.menuAdvanced.setTitle(QtGui.QApplication.translate("MainWindow", "Advanced", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_open_ct_dura.setText(QtGui.QApplication.translate("MainWindow", "Open CT and Dura...", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox.setToolTip(QtGui.QApplication.translate("MainWindow", "lower bound on a connected component\'s CT intensity", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox.setTitle(QtGui.QApplication.translate("MainWindow", "Threshold", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_preview_threshold.setText(QtGui.QApplication.translate("MainWindow", "Preview Thresholding", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_hide_preview.setText(QtGui.QApplication.translate("MainWindow", "Hide Preview", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_heuristic_distance.setToolTip(QtGui.QApplication.translate("MainWindow", "upper bound on a connected component\'s distance to dura", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_heuristic_distance.setTitle(QtGui.QApplication.translate("MainWindow", "Distance", None, QtGui.QApplication.UnicodeUTF8)) self.label.setText(QtGui.QApplication.translate("MainWindow", "mm", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_heuristic_size.setToolTip(QtGui.QApplication.translate("MainWindow", "lower bound on a connected component\'s size", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_heuristic_size.setTitle(QtGui.QApplication.translate("MainWindow", "Size", None, QtGui.QApplication.UnicodeUTF8)) self.label_2.setText(QtGui.QApplication.translate("MainWindow", "mm<sup>3</sup>", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_segment.setText(QtGui.QApplication.translate("MainWindow", "Segment", None, QtGui.QApplication.UnicodeUTF8)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_segment), QtGui.QApplication.translate("MainWindow", "Segment", None, QtGui.QApplication.UnicodeUTF8)) self.label_edit_select_count.setText(QtGui.QApplication.translate("MainWindow", "0", None, QtGui.QApplication.UnicodeUTF8)) self.label_6.setText(QtGui.QApplication.translate("MainWindow", "Selected", None, QtGui.QApplication.UnicodeUTF8)) self.label_7.setText(QtGui.QApplication.translate("MainWindow", "Electrodes ", None, QtGui.QApplication.UnicodeUTF8)) self.label_5.setText(QtGui.QApplication.translate("MainWindow", "Components", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_add.setText(QtGui.QApplication.translate("MainWindow", "&Add", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_add.setShortcut(QtGui.QApplication.translate("MainWindow", "A", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_import_point_set.setText(QtGui.QApplication.translate("MainWindow", "&Import from Point Set...", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_import_point_set.setShortcut(QtGui.QApplication.translate("MainWindow", "I", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_remove.setText(QtGui.QApplication.translate("MainWindow", "Remove", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_remove.setShortcut(QtGui.QApplication.translate("MainWindow", "Del", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_restore.setText(QtGui.QApplication.translate("MainWindow", "Restore", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_restore.setShortcut(QtGui.QApplication.translate("MainWindow", "Shift+Del", None, QtGui.QApplication.UnicodeUTF8)) self.label_3.setText(QtGui.QApplication.translate("MainWindow", "Pieces", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_split.setText(QtGui.QApplication.translate("MainWindow", "&Split", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_split.setShortcut(QtGui.QApplication.translate("MainWindow", "S", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_clear.setText(QtGui.QApplication.translate("MainWindow", "&Clear Selection", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_clear.setShortcut(QtGui.QApplication.translate("MainWindow", "C", None, QtGui.QApplication.UnicodeUTF8)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_edit), QtGui.QApplication.translate("MainWindow", "Edit", None, QtGui.QApplication.UnicodeUTF8)) self.label_label_select_count.setText(QtGui.QApplication.translate("MainWindow", "0", None, QtGui.QApplication.UnicodeUTF8)) self.label_10.setText(QtGui.QApplication.translate("MainWindow", "Selected", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_assign_grid_label.setText(QtGui.QApplication.translate("MainWindow", "&Assign Grid Label", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_assign_grid_label.setShortcut(QtGui.QApplication.translate("MainWindow", "A", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_label_clear.setText(QtGui.QApplication.translate("MainWindow", "&Clear Selection", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_label_clear.setShortcut(QtGui.QApplication.translate("MainWindow", "C", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_export.setText(QtGui.QApplication.translate("MainWindow", "&Export...", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_export.setShortcut(QtGui.QApplication.translate("MainWindow", "E", None, QtGui.QApplication.UnicodeUTF8)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_label), QtGui.QApplication.translate("MainWindow", "Label", None, QtGui.QApplication.UnicodeUTF8)) self.label_register_select_count.setText(QtGui.QApplication.translate("MainWindow", "0", None, QtGui.QApplication.UnicodeUTF8)) self.label_8.setText(QtGui.QApplication.translate("MainWindow", "Selected", None, QtGui.QApplication.UnicodeUTF8)) self.label_register_complete_count.setText(QtGui.QApplication.translate("MainWindow", "0", None, QtGui.QApplication.UnicodeUTF8)) self.label_9.setText(QtGui.QApplication.translate("MainWindow", "Registered", None, QtGui.QApplication.UnicodeUTF8)) self.label_register_electrode_count.setText(QtGui.QApplication.translate("MainWindow", "0", None, QtGui.QApplication.UnicodeUTF8)) self.label_4.setText(QtGui.QApplication.translate("MainWindow", "Electrodes", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_svd.setText(QtGui.QApplication.translate("MainWindow", "&Best-fit Plane", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_svd.setShortcut(QtGui.QApplication.translate("MainWindow", "B", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_manual.setToolTip(QtGui.QApplication.translate("MainWindow", "right click to register; only supports single selection", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_manual.setText(QtGui.QApplication.translate("MainWindow", "&Manual", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_manual.setShortcut(QtGui.QApplication.translate("MainWindow", "M", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_nearest.setText(QtGui.QApplication.translate("MainWindow", "&Nearest Vertex", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_nearest.setShortcut(QtGui.QApplication.translate("MainWindow", "N", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_principal.setText(QtGui.QApplication.translate("MainWindow", "&Principal Axis", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_principal.setShortcut(QtGui.QApplication.translate("MainWindow", "P", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_unregister.setText(QtGui.QApplication.translate("MainWindow", "&Unregister", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_unregister.setShortcut(QtGui.QApplication.translate("MainWindow", "U", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_register_clear.setText(QtGui.QApplication.translate("MainWindow", "&Clear Selection", None, QtGui.QApplication.UnicodeUTF8)) self.pushButton_register_clear.setShortcut(QtGui.QApplication.translate("MainWindow", "C", None, QtGui.QApplication.UnicodeUTF8)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_register), QtGui.QApplication.translate("MainWindow", "Register", None, QtGui.QApplication.UnicodeUTF8)) self.actionOpen.setText(QtGui.QApplication.translate("MainWindow", "Open CT/dura...", None, QtGui.QApplication.UnicodeUTF8)) self.actionOpenProject.setText(QtGui.QApplication.translate("MainWindow", "Open Project...", None, QtGui.QApplication.UnicodeUTF8)) self.actionSaveProject.setText(QtGui.QApplication.translate("MainWindow", "Save Project", None, QtGui.QApplication.UnicodeUTF8)) self.actionSaveProject.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+S", None, QtGui.QApplication.UnicodeUTF8)) self.actionRecentProjects.setText(QtGui.QApplication.translate("MainWindow", "Recent Projects", None, QtGui.QApplication.UnicodeUTF8)) self.actionAbout.setText(QtGui.QApplication.translate("MainWindow", "About", None, QtGui.QApplication.UnicodeUTF8)) self.actionSaveProjectAs.setText(QtGui.QApplication.translate("MainWindow", "Save Project As...", None, QtGui.QApplication.UnicodeUTF8)) self.actionOpenPial.setText(QtGui.QApplication.translate("MainWindow", "Open Pial...", None, QtGui.QApplication.UnicodeUTF8)) self.actionShowPial.setText(QtGui.QApplication.translate("MainWindow", "Show Pial", None, QtGui.QApplication.UnicodeUTF8)) self.actionHideThresholdingPreview.setText(QtGui.QApplication.translate("MainWindow", "Hide Thresholding Preview", None, QtGui.QApplication.UnicodeUTF8)) self.actionExport_segmentation_dataset.setText(QtGui.QApplication.translate("MainWindow", "Export Segmentation Dataset", None, QtGui.QApplication.UnicodeUTF8)) self.actionShow_Electrode_ID.setText(QtGui.QApplication.translate("MainWindow", "Show Electrode ID", None, QtGui.QApplication.UnicodeUTF8)) self.actionAbout_Qt.setText(QtGui.QApplication.translate("MainWindow", "About Qt", None, QtGui.QApplication.UnicodeUTF8)) self.actionReport_an_issue.setText(QtGui.QApplication.translate("MainWindow", "Report an Issue...", None, QtGui.QApplication.UnicodeUTF8)) self.actionDocumentation.setText(QtGui.QApplication.translate("MainWindow", "Documentation", None, QtGui.QApplication.UnicodeUTF8)) self.actionSource_Repository.setText(QtGui.QApplication.translate("MainWindow", "Source Repository", None, QtGui.QApplication.UnicodeUTF8)) self.actionLicense.setText(QtGui.QApplication.translate("MainWindow", "License", None, QtGui.QApplication.UnicodeUTF8)) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40792"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">9,345,848,872,275</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">5ec6cde2a9f32099d636875c987dc38a99d103b0</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">68b0a7e4499df49b8647936131791b8b4ae4b5e2</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/trackvisualizer/ui/pluginsettings.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">27d1cd4541967f9c067249e5b7266faff6121ef3</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "GPL-3.0-only" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Noneus/Track-Visualizer</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/Noneus/Track-Visualizer</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4ce4e5bccd2f8ef941fb56ad157bf9d2d858031b</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">84312182f46bd16d8e86225dfe1d09bb894902eb</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2019-07-27T13:05:02.901259</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-01-02T22:40:51</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-01-02T22:40:51</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">15,719,740</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/env python3 # -*- coding: utf-8 -*- ######################################################################## # # # This file is part of Gpx 2 Video. # # # # Gpx 2 Video is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # # the Free Software Foundation, either version 3 of the License, or # # (at your option) any later version. # # # # Gpx 2 Video is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # GNU General Public License for more details. # # # # You should have received a copy of the GNU General Public License # # along with Gpx 2 Video. If not, see <http://www.gnu.org/licenses/>. # # # ######################################################################## import sys from gi.repository import Gtk from trackvisualizer.ui.assistant import Gps2VideoAssistantPage @Gps2VideoAssistantPage class PluginSettings(object): """ Choose Plugin Page of Assistant """ def __init__(self, assistant): self._assistant = assistant self._vbox = Gtk.VBox() self._vbox.pack_start(Gtk.Label(), True, True, 0) @property def widget(self): #return the main container return self._vbox @property def pagetype(self): return Gtk.AssistantPageType.CONTENT @property def title(self): return 'Choose Function' def prepare(self): for widget in self._vbox.get_children(): self._vbox.remove(widget) self._vbox.pack_start( self._assistant.plugin.create_widget( self._vbox, self._assistant), True, True, 0) self._assistant.assistant.show_all() return True def leave(self): pass #call trackvisualizer.main-function if script is called if __name__ == "__main__": from trackvisualizer.main import main sys.exit(main(sys.argv)) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40793"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">13,073,880,498,468</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">3e58f27d7f98040eaf8d3db3276304dd154f30c3</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">35f17edee2926b176f4b0148e313d4d95e5232e8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/experiments/learn_semantic_network.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">9a98141f49d1b2dd284affd1b33a8421a207c697</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e2crawfo/cleanup-learning</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/e2crawfo/cleanup-learning</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">7dc3e29385daf98c1a565ec186fb295fc78bb339</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ca7f92d19d860c3e00ead11e71cc45480ea728d6</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-19T07:40:43.762213</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-02-05T01:17:06</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-02-05T01:17:06</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">14,177,265</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">import matplotlib.pyplot as plt import numpy as np import random from mytools import hrr, timed, fh, nf, extract_probe_data from build_semantic_network import build_semantic_network from learning_cleanup import build_and_run, plot @timed.namedtimer("extract_data") def extract_data(filename, sim, address_input_p, stored_input_p, pre_probes, cleanup_s, output_probes, address_vectors, stored_vectors, testing_vectors, correct_vectors, **kwargs): t = sim.trange() address_input, _ = extract_probe_data(t, sim, address_input_p) stored_input, _ = extract_probe_data(t, sim, stored_input_p) pre_decoded, _ = extract_probe_data(t, sim, pre_probes) cleanup_spikes, _ = extract_probe_data(t, sim, cleanup_s, spikes=True) output_decoded, _ = extract_probe_data(t, sim, output_probes) def make_sim_func(h): def sim(vec): return h.compare(hrr.HRR(data=vec)) return sim print len(stored_vectors) print len(address_vectors) print address_vectors address_sim_funcs = [make_sim_func(hrr.HRR(data=h)) for h in address_vectors] stored_sim_funcs = [make_sim_func(hrr.HRR(data=h)) for h in stored_vectors] output_sim, _ = extract_probe_data(t, sim, output_probes, func=stored_sim_funcs) input_sim, _ = extract_probe_data(t, sim, address_input_p, func=address_sim_funcs) ret = dict(t=t, address_input=address_input, stored_input=stored_input, pre_decoded=pre_decoded, cleanup_spikes=cleanup_spikes, output_decoded=output_decoded, output_sim=output_sim, input_sim=input_sim, correct_vectors=correct_vectors, testing_vectors=testing_vectors) fh.npsave(filename, **ret) return ret #@timed.namedtimer("plot") #def plot(filename, t, address_input, pre_decoded, cleanup_spikes, # output_decoded, output_sim, input_sim, **kwargs): # # num_plots = 6 # offset = num_plots * 100 + 10 + 1 # # ax, offset = nengo_plot_helper(offset, t, address_input) # ax, offset = nengo_plot_helper(offset, t, pre_decoded) # ax, offset = nengo_plot_helper(offset, t, cleanup_spikes, spikes=True) # ax, offset = nengo_plot_helper(offset, t, output_decoded) # ax, offset = nengo_plot_helper(offset, t, output_sim) # ax, offset = nengo_plot_helper(offset, t, input_sim) # # plt.savefig(filename) def start(): seed = 81223 training_time = 1 #in seconds testing_time = 0.5 DperE = 32 dim = 32 NperD = 30 N = 5 cleanup_n = N * 20 num_tests = 5 oja_scale = np.true_divide(2,1) oja_learning_rate = np.true_divide(1,50) pre_tau = 0.03 post_tau = 0.03 pes_learning_rate = np.true_divide(1,1) config = locals() #Don't put all parematers in config cleanup_params = {'radius':1.0, 'max_rates':[400], 'intercepts':[0.13]} ensemble_params = {'radius':1.0, 'max_rates':[400], 'intercepts':[0.1]} #intercepts actually matter quite a bit, so put them in the filename config['cint'] = cleanup_params['intercepts'][0] config['eint'] = ensemble_params['intercepts'][0] data_title = 'lsndata' directory = 'learning_sn_data' data_filename = fh.make_filename(data_title, directory=directory, config_dict=config, extension='.npz', use_time=False) data = fh.npload(data_filename) if data is None: #build the graph and get the vectors encoding it hrr_vectors, id_vectors, edge_vectors, G = build_semantic_network(dim, N, seed=seed) edges = random.sample(list(G.edges_iter(data=True)), num_tests) correct_vectors = [hrr_vectors[v] for u,v,d in edges] testing_vectors = [hrr_vectors[u].convolve(~edge_vectors[d['index']]) for u,v,d in edges] testing_vectors = map(lambda x: x.v, testing_vectors) hrr_vectors = map(lambda x: hrr_vectors[x].v, G.nodes_iter()) id_vectors = map(lambda x: id_vectors[x].v, G.nodes_iter()) results = build_and_run(address_vectors = id_vectors, stored_vectors=hrr_vectors, testing_vectors=testing_vectors, cleanup_params=cleanup_params, ensemble_params=ensemble_params, **config) data = extract_data(filename=data_filename, correct_vectors=correct_vectors, **results) do_plots = True if do_plots: plot_title = 'lsnplot' directory='learning_sn_plots' plot_filename = fh.make_filename(plot_title, directory=directory, config_dict=config, extension='.png') plot(filename=plot_filename, **data) plt.show() if __name__=='__main__': start() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40794"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">9,002,251,493,835</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c8095b0b1ae34742b650ff9b2b275ff80a66a22e</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">2464d1784de63fdfbd700c1c63861c354f87f6ae</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/Care4Care/C4CApplication/page_objects/FixedPage.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">b031605f10271df8eaecb76bfaf167b7e00e859c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "AGPL-3.0-only" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">dsarkozi/care4care-sdp-grp4</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/dsarkozi/care4care-sdp-grp4</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">ac3ddc3a5eb2ab5b88c40a8e3b644440674b5c3f</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c78eefb964a98e9f1a5b68006b429151706f34be</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">HEAD</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2016-09-06T11:25:34.295790</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-12-17T16:08:45</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-12-17T16:08:45</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from C4CApplication.page_objects.Page import Page from selenium.webdriver.common.by import By class FixedPage(Page): def __init__(self, driver): super().__init__(driver) self.home = self.driver.find_element(By.XPATH, '//a[@id="home"]') self.branch_list = self.driver.find_element(By.XPATH, '//a[@id="branch_list"]') def click_home(self): self.home.click() return self def click_on_care4care_branches(self): self.branch_list.click() return self def Jobs_at_Care4Care(self): pass</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40795"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">5,128,190,967,785</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">a62e74c0ded922850778a865d61c3a7c33670f29</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">63c89d672cb4df85e61d3ba9433f4c3ca39810c8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/python/testdata/launchpad/lib/lp/registry/browser/tests/test_edit_permissions.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">671991048cae82a56af1ee772d565c60f6e988b3</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "AGPL-3.0-only", "AGPL-3.0-or-later" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">non_permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">abramhindle/UnnaturalCodeFork</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/abramhindle/UnnaturalCodeFork</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">de32d2f31ed90519fd4918a48ce94310cef4be97</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e205b94b2c66672d264a08a10bb7d94820c9c5ca</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-19T10:21:36.093911</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-03-13T02:37:14</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-03-13T02:37:14</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">17,692,378</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">3</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">AGPL-3.0</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-07-24T05:39:10</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-03-13T02:52:20</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2018-01-05T07:03:31</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-03-13T02:53:59</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">24,904</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">3</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block "># Copyright 2010 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). """Test harness for edit view permissions unit tests.""" __metaclass__ = type from zope.component import getUtility from lp.app.interfaces.launchpad import ILaunchpadCelebrities from lp.registry.interfaces.distributionsourcepackage import ( IDistributionSourcePackage, ) from lp.registry.interfaces.person import IPersonSet from lp.services.webapp.authorization import check_permission from lp.services.webapp.servers import LaunchpadTestRequest from lp.testing import ( ANONYMOUS, login, login_person, TestCaseWithFactory, ) from lp.testing.layers import DatabaseFunctionalLayer from lp.testing.views import create_initialized_view class EditViewPermissionBase(TestCaseWithFactory): """Tests for permissions access the +edit page on the target.""" layer = DatabaseFunctionalLayer def setUp(self): super(EditViewPermissionBase, self).setUp() self.setupTarget() self.registry_admin = self.factory.makePerson(name='registry-admin') celebs = getUtility(ILaunchpadCelebrities) login_person(celebs.registry_experts.teamowner) celebs.registry_experts.addMember(self.registry_admin, self.registry_admin) self.request = LaunchpadTestRequest() def setupTarget(self): """Set up the target context for the test suite.""" self.target = self.factory.makePerson(name='target-person') def test_anon_cannot_edit(self): login(ANONYMOUS) view = create_initialized_view(self.target, '+edit') self.assertFalse(check_permission('launchpad.Edit', view)) def test_arbitrary_user_cannot_edit(self): person = self.factory.makePerson(name='the-dude') login_person(person) view = create_initialized_view(self.target, '+edit') self.assertFalse(check_permission('launchpad.Edit', view)) def test_admin_can_edit(self): admin = getUtility(IPersonSet).getByEmail('<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="61070e0e4f0300132102000f0e0f0802000d4f020e0c">[email protected]</a>') login_person(admin) view = create_initialized_view(self.target, '+edit') if IDistributionSourcePackage.providedBy(self.target): self.assertTrue(check_permission('launchpad.BugSupervisor', view)) else: self.assertTrue(check_permission('launchpad.Edit', view)) def test_registry_expert_cannot_edit(self): login_person(self.registry_admin) view = create_initialized_view(self.target, '+edit') self.assertFalse(check_permission('launchpad.Edit', view)) class PersonEditViewPermissionTestCase(EditViewPermissionBase): """Tests for permissions to access person +edit page.""" def test_arbitrary_user_can_edit_her_own_data(self): login_person(self.target) view = create_initialized_view(self.target, '+edit') self.assertTrue(check_permission('launchpad.Edit', view)) class ProductEditViewPermissionTestCase(EditViewPermissionBase): """Tests for permissions to access product +edit page.""" def setupTarget(self): self.target = self.factory.makeProduct() class ProjectEditViewPermissionTestCase(EditViewPermissionBase): """Tests for permissions to access product +edit page.""" def setupTarget(self): self.target = self.factory.makeProject() class DistributionEditViewPermissionTestCase(EditViewPermissionBase): """Tests for permissions to access product +edit page.""" def setupTarget(self): self.target = self.factory.makeDistribution() class DistroSourcePackageEditViewPermissionTestCase(EditViewPermissionBase): """Test for permissions to access a distribution source package +edit page.""" def setupTarget(self): self.d_owner = self.factory.makePerson() login_person(self.d_owner) self.distro = self.factory.makeDistribution( name='youbuntu', owner=self.d_owner) self.target = self.factory.makeDistributionSourcePackage( distribution=self.distro) self.supervisor_team = self.factory.makeTeam(owner=self.d_owner) self.supervisor_member = self.factory.makePerson() self.supervisor_team.addMember( self.supervisor_member, self.d_owner) self.distro.bug_supervisor = self.supervisor_team def test_bug_supervisor_can_edit(self): login_person(self.supervisor_member) view = create_initialized_view(self.target, '+edit') self.assertTrue(check_permission('launchpad.BugSupervisor', view)) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40796"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">14,516,989,470,675</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">397214e68b25be5eff5c88c07c84be19e67bde6c</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">8ea6cdcf12e38ce62fe366a15bdd3a8625895ac8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/dash/lib/events/editor.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">97aec94c708299f112b81b944f47be56b9c4aa29</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "MIT" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">wjwwood/open-robotics-platform</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/wjwwood/open-robotics-platform</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">2c3acdf022038ab833ba4273351b5ae6ad975c07</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">c417f1e4e381cdbbe88ba9ad4dea3bdf9840d3d5</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-05-18T02:29:29.272833</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2010-04-07T04:15:01</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2010-04-07T04:15:01</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">32,115,704</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">#!/usr/bin/env python -OO # encoding: utf-8 ########### # ORP - Open Robotics Platform # # Copyright (c) 2010 John Harrison, William Woodall # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. ########## """ editor.py - Contains events and callbacks related to the editor Created by William Woodall on 2010-11-08. """ __author__ = "William Woodall" __copyright__ = "Copyright (c) 2010 John Harrison, William Woodall" ### Imports ### # Standard Python Libraries import sys import os # Other libraries import lib.elements as elements from lib.builders.editor import Editor ### Functions ### def newFile(event, title=None, text="", file_type=None): """Opens a new window in the editor""" editor = Editor(elements.MAIN, elements.MAIN._mgr, title=title, text=text, file_type=file_type) editor.Show() def openFile(event, file=None): """Opens a file, if the file isn't given, prompts the user""" pass def save(event): """Saves the currently selected file in the editor""" pass def close(event): """Closes the currently selected file int he editor""" child = elements.MAIN.GetActiveChild() if child != None: child.Close(True)</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,010</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40797"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">11,570,641,936,529</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">9123f01295a4fe11711ca8fd35336f5378c5e199</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">806b05b16a1035ba0ff95671beac268eac2156ad</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/links.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">3d64befff4fe516abe54a714b10919b91e3dd1a4</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "MIT" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Brickstertwo/pretty-markdown</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/Brickstertwo/pretty-markdown</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">041e21eed580a188273aeb98a2ba6ecf27b9e3cd</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">bce94c2fa4dbb38868270cbd1d8027f1fd0ec8ad</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2020-05-18T16:00:00.249723</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-08-25T02:21:43</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-08-25T02:21:43</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from utils import link_utils import pretty_markdown class FormatLinkReferenceDefinitionsCommand(pretty_markdown.PrettyMarkdownCommand): def modify(self, text): """Formats groups of link reference definitions so that their links all line up.""" return link_utils.format_link_reference_definitions(text) class DiscoverMissingLinksCommand(pretty_markdown.PrettyMarkdownCommand): def modify(self, text): """Adds empty link definitions for reference links.""" default_definition = pretty_markdown.settings().get('default_missing_link_definition') return link_utils.discover_missing_links(text, default_definition=default_definition) </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40798"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">5,085,241,324,603</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">43580de9eabae3e6574fe6202fe895a1b9780abd</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">e20ad48bedb899855b565d20b6573ef08d0eb041</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/Twitter4AP/stream/__init__.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">4be93a724bd6bce09ad525dfce7224b5522c2b79</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div> <span class="block ">[]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">no_license</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">officialpatterson/Twitter-Library</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/officialpatterson/Twitter-Library</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">d06039c0cf29ab2d61bb85138d2353bfd7019d83</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">14b122ccf66fa9b5833f17cc8e622e856afda8f7</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-01-11T10:48:08.199716</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-10-27T18:34:43</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2014-10-27T18:34:43</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">20,705,940</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">1</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">from .twitterstream import TwitterStream</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,014</div></div> </td> </tr><tr class="group cursor-pointer space-x-4 divide-x border-b outline-offset-[-2px] odd:bg-gray-50 hover:bg-gray-100 dark:odd:bg-gray-925 dark:hover:bg-gray-850 " tabindex="0" data-row-idx="40799"><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">10,960,756,570,409</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">64662b6f11874ca1b4801b898352dd63d223e479</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">2bcf18252fa9144ece3e824834ac0e117ad0bdf3</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">/zpt/trunk/site-packages/zpt/_pytz/zoneinfo/Etc/GMT_minus_1.py</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">66af904ffa97865f9f23a9ec9ec4cd64841e1ee0</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-left" dir="auto"><div><button class="float-right ml-2 mr-0.5 mt-1 flex items-center justify-center rounded-full bg-white p-1.5 text-gray-700 ring-1 ring-gray-300 transition hover:bg-gray-50 hover:text-gray-900 hover:shadow-sm dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-600 dark:hover:bg-gray-700 dark:hover:text-white"><svg class="text-sm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.917 2.25h-.834v.833h.834v2.084A.833.833 0 0 0 9.75 6a.833.833 0 0 0-.833.833v2.084h-.834v.833h.834c.446-.113.833-.375.833-.833V7.25a.833.833 0 0 1 .833-.833H11v-.834h-.417a.833.833 0 0 1-.833-.833V3.083a.833.833 0 0 0-.833-.833Zm-5.834 0a.833.833 0 0 0-.833.833V4.75a.833.833 0 0 1-.833.833H1v.834h.417a.833.833 0 0 1 .833.833v1.667a.833.833 0 0 0 .833.833h.834v-.833h-.834V6.833A.833.833 0 0 0 2.25 6a.833.833 0 0 0 .833-.833V3.083h.834V2.25h-.834ZM6 7.25a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm1.667 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Zm-3.334 0a.417.417 0 1 0 0 .833.417.417 0 0 0 0-.833Z" fill="currentColor"></path></svg></button> <span class="block min-h-[2rem]">[ "MIT", "ZPL-2.1" ]</span></div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">permissive</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">chadwhitacre/public</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">https://github.com/chadwhitacre/public</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">32f65ba8e35d38c69ed4d0edd333283a239c5e1d</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">0c67fd7ec8bce1d8c56c7ff3506f31a99362b502</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">refs/heads/master</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2021-05-10T14:32:03.016683</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2010-05-13T18:24:20</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2010-05-13T18:24:20</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">0</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto"><div class="text-right text-gray-400">null</div></div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">'''tzinfo timezone information for Etc/GMT_minus_1.''' from zpt._pytz.tzinfo import StaticTzInfo from zpt._pytz.tzinfo import memorized_timedelta as timedelta class GMT_minus_1(StaticTzInfo): '''Etc/GMT_minus_1 timezone definition. See datetime.tzinfo for details''' zone = 'Etc/GMT_minus_1' _utcoffset = timedelta(seconds=3600) _tzname = 'GMT-1' GMT_minus_1 = GMT_minus_1() </span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">UTF-8</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="" dir="auto"> <div> <span class="block ">Python</span></div> </div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">false</div></div> </td><td class="min-w-fit max-w-sm break-words p-2 "><div class="line-clamp-2 "><div class="text-right" dir="auto">2,010</div></div> </td> </tr></tbody></table> </div> <div class="bg-linear-to-b from-gray-100 to-white dark:from-gray-950 dark:to-gray-900 rounded-b-lg"><hr class="flex-none -translate-y-px border-t border-dashed border-gray-300 bg-white dark:border-gray-700 dark:bg-gray-950"> <nav><ul class="flex select-none items-center justify-between space-x-2 text-gray-700 sm:justify-center py-1 text-center font-mono text-xs "><li><a class="flex items-center rounded-lg px-2.5 py-1 hover:bg-gray-50 dark:hover:bg-gray-800 " href="/datasets/loubnabnl/old_python/viewer/default/train?p=406"><svg class="mr-1.5" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M10 16L20 6l1.4 1.4l-8.6 8.6l8.6 8.6L20 26z" fill="currentColor"></path></svg> Previous</a></li> <li class="hidden sm:block"><a class="rounded-lg px-2.5 py-1 hover:bg-gray-50 dark:hover:bg-gray-800" href="/datasets/loubnabnl/old_python/viewer/default/train?p=0">1</a> </li><li class="hidden sm:block"><a class="rounded-lg px-2.5 py-1 pointer-events-none cursor-default" href="#">...</a> </li><li class="hidden sm:block"><a class="rounded-lg px-2.5 py-1 hover:bg-gray-50 dark:hover:bg-gray-800" href="/datasets/loubnabnl/old_python/viewer/default/train?p=405">406</a> </li><li class="hidden sm:block"><a class="rounded-lg px-2.5 py-1 hover:bg-gray-50 dark:hover:bg-gray-800" href="/datasets/loubnabnl/old_python/viewer/default/train?p=406">407</a> </li><li class="hidden sm:block"><a class="rounded-lg px-2.5 py-1 bg-gray-50 font-semibold ring-1 ring-inset ring-gray-200 dark:bg-gray-900 dark:text-yellow-500 dark:ring-gray-900 hover:bg-gray-50 dark:hover:bg-gray-800" href="/datasets/loubnabnl/old_python/viewer/default/train?p=407">408</a> </li><li class="hidden sm:block"><a class="rounded-lg px-2.5 py-1 hover:bg-gray-50 dark:hover:bg-gray-800" href="/datasets/loubnabnl/old_python/viewer/default/train?p=408">409</a> </li><li class="hidden sm:block"><a class="rounded-lg px-2.5 py-1 hover:bg-gray-50 dark:hover:bg-gray-800" href="/datasets/loubnabnl/old_python/viewer/default/train?p=409">410</a> </li><li class="hidden sm:block"><a class="rounded-lg px-2.5 py-1 pointer-events-none cursor-default" href="#">...</a> </li><li class="hidden sm:block"><a class="rounded-lg px-2.5 py-1 hover:bg-gray-50 dark:hover:bg-gray-800" href="/datasets/loubnabnl/old_python/viewer/default/train?p=425">426</a> </li> <li><a class="flex items-center rounded-lg px-2.5 py-1 hover:bg-gray-50 dark:hover:bg-gray-800 " href="/datasets/loubnabnl/old_python/viewer/default/train?p=408">Next <svg class="ml-1.5 transform rotate-180" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M10 16L20 6l1.4 1.4l-8.6 8.6l8.6 8.6L20 26z" fill="currentColor"></path></svg></a></li></ul></nav></div></div> </div></div></div></div></div></div></div> <div class="hidden items-center md:flex"> <div class="mx-1 flex items-center justify-center"><div class="h-8 w-1 cursor-ew-resize rounded-full bg-gray-200 hover:bg-gray-400 dark:bg-gray-700 dark:hover:bg-gray-600 max-sm:hidden" role="separator"></div></div> <div class="flex h-full flex-col" style="height: calc(100vh - 48px)"><div class="my-4 mr-4 h-full overflow-auto rounded-lg border shadow-lg dark:border-gray-800" style="width: 480px"><div class="flex h-full flex-col"><div class="flex flex-col "> <div class="px-4 md:mt-4"><div class="mb-4 flex justify-end"> <span class="inline-block w-full flex justify-center"><span class="contents"><div class="flex w-full flex-col rounded-lg border-slate-200 bg-white p-2 shadow-md ring-1 ring-slate-200 dark:border-slate-700 dark:bg-slate-800 dark:ring-slate-700"> <div class="mt-0 flex items-start gap-1"><div class="flex items-center rounded-md bg-slate-100 p-2 dark:bg-slate-700"><svg class="size-4 text-gray-700 dark:text-gray-300" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 11 11"><path fill="currentColor" d="M4.881 4.182c0 .101-.031.2-.087.283a.5.5 0 0 1-.242.18l-.65.217a1.3 1.3 0 0 0-.484.299 1.3 1.3 0 0 0-.298.484l-.222.639a.46.46 0 0 1-.18.242.5.5 0 0 1-.288.092.5.5 0 0 1-.294-.097.5.5 0 0 1-.175-.242l-.211-.644a1.26 1.26 0 0 0-.299-.48 1.14 1.14 0 0 0-.479-.298L.328 4.64a.48.48 0 0 1-.247-.18.515.515 0 0 1 .247-.758l.644-.21a1.28 1.28 0 0 0 .788-.789l.211-.634a.5.5 0 0 1 .165-.242.5.5 0 0 1 .283-.103.5.5 0 0 1 .294.083c.086.058.152.14.19.237l.217.659a1.28 1.28 0 0 0 .788.788l.644.222a.476.476 0 0 1 .237.18.5.5 0 0 1 .092.288"></path><path fill="currentColor" d="M10.031 7.458a.5.5 0 0 1-.098.314.5.5 0 0 1-.267.196l-.881.293c-.272.09-.519.242-.721.443a1.8 1.8 0 0 0-.443.721l-.31.876a.5.5 0 0 1-.185.263.56.56 0 0 1-.319.098.515.515 0 0 1-.515-.366l-.294-.88a1.8 1.8 0 0 0-.443-.722c-.204-.2-.45-.353-.72-.448l-.881-.288a.57.57 0 0 1-.263-.191.56.56 0 0 1-.014-.64.5.5 0 0 1 .271-.194l.886-.294A1.82 1.82 0 0 0 6.01 5.465l.293-.87a.515.515 0 0 1 .49-.377c.11 0 .219.03.314.088a.56.56 0 0 1 .206.263l.298.896a1.82 1.82 0 0 0 1.175 1.174l.875.31a.5.5 0 0 1 .263.195c.07.09.108.2.108.314"></path><path fill="currentColor" d="M7.775 1.684a.5.5 0 0 0 .088-.262.45.45 0 0 0-.088-.263.5.5 0 0 0-.21-.155L7.24.896a.5.5 0 0 1-.165-.103.5.5 0 0 1-.103-.17l-.108-.33a.5.5 0 0 0-.165-.21A.5.5 0 0 0 6.426 0a.5.5 0 0 0-.252.098.5.5 0 0 0-.145.206l-.108.32a.5.5 0 0 1-.103.17.5.5 0 0 1-.17.102L5.334 1a.45.45 0 0 0-.216.155.5.5 0 0 0-.088.262c0 .094.029.186.083.263a.5.5 0 0 0 .216.16l.32.103q.095.03.164.103a.37.37 0 0 1 .103.165l.108.319c.031.09.088.17.165.227a.56.56 0 0 0 .252.077.42.42 0 0 0 .268-.093.5.5 0 0 0 .15-.2l.113-.325a.43.43 0 0 1 .268-.268l.32-.108a.42.42 0 0 0 .215-.155"></path></svg></div> <div class="flex min-w-0 flex-1"><textarea placeholder="Ask AI to help write your query..." class="max-h-64 min-h-8 w-full resize-none overflow-y-auto border-none bg-transparent py-1 text-sm leading-6 text-slate-700 placeholder-slate-400 [scrollbar-width:thin] focus:ring-0 dark:text-slate-200 dark:placeholder-slate-400" rows="1"></textarea> </div> </div> </div></span> </span></div> <div class="relative flex flex-col rounded-md bg-gray-100 pt-2 dark:bg-gray-800/50"> <div class="flex h-64 items-center justify-center "><svg class="animate-spin text-xs" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" fill="none" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 12 12"><path class="opacity-75" fill-rule="evenodd" clip-rule="evenodd" d="M6 0C2.6862 0 0 2.6862 0 6H1.8C1.8 4.88609 2.2425 3.8178 3.03015 3.03015C3.8178 2.2425 4.88609 1.8 6 1.8V0ZM12 6C12 9.3138 9.3138 12 6 12V10.2C7.11391 10.2 8.1822 9.7575 8.96985 8.96985C9.7575 8.1822 10.2 7.11391 10.2 6H12Z" fill="currentColor"></path><path class="opacity-25" fill-rule="evenodd" clip-rule="evenodd" d="M3.03015 8.96985C3.8178 9.7575 4.88609 10.2 6 10.2V12C2.6862 12 0 9.3138 0 6H1.8C1.8 7.11391 2.2425 8.1822 3.03015 8.96985ZM7.60727 2.11971C7.0977 1.90864 6.55155 1.8 6 1.8V0C9.3138 0 12 2.6862 12 6H10.2C10.2 5.44845 10.0914 4.9023 9.88029 4.39273C9.66922 3.88316 9.35985 3.42016 8.96985 3.03015C8.57984 2.64015 8.11684 2.33078 7.60727 2.11971Z" fill="currentColor"></path></svg></div></div> <div class="mt-2 flex flex-col gap-2"><div class="flex items-center justify-between max-sm:text-sm"><div class="flex w-full items-center justify-between gap-4"> <span class="flex flex-shrink-0 items-center gap-1"><span class="font-semibold">Subsets and Splits</span> <span class="inline-block "><span class="contents"><svg class="text-xs text-gray-500 dark:text-gray-400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M17 22v-8h-4v2h2v6h-3v2h8v-2h-3z" fill="currentColor"></path><path d="M16 8a1.5 1.5 0 1 0 1.5 1.5A1.5 1.5 0 0 0 16 8z" fill="currentColor"></path><path d="M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14zm0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4z" fill="currentColor"></path></svg></span> </span> </span> <div class="ml-4 flex flex-1 items-center justify-end gap-1"> </div></div></div> <div class="flex flex-nowrap gap-1 overflow-x-auto"></div></div> <button type="button" class="btn mt-2 h-10 w-full text-sm font-semibold md:text-base" ><span class="flex items-center gap-1.5"> <span>Run Query</span> <span class="shadow-xs ml-2 hidden items-center rounded-sm border bg-white px-0.5 text-xs font-medium text-gray-700 sm:inline-flex">Ctrl+↵</span></span></button></div> <div class="flex flex-col px-2 pb-4"></div></div> <div class="mt-auto pb-4"><div class="flex justify-center"><div class="w-full sm:px-4"><div class="mb-3"><ul class="flex gap-1 text-sm "><li><button class="flex items-center whitespace-nowrap rounded-lg px-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-900 dark:hover:text-gray-300">Saved Queries </button> </li><li><button class="flex items-center whitespace-nowrap rounded-lg px-2 bg-black text-white dark:bg-gray-800">Top Community Queries </button> </li></ul></div> <div class="h-48 overflow-y-auto"><div class="flex flex-col gap-2"><div class="flex h-48 flex-col items-center justify-center rounded border border-gray-200 bg-gray-50 p-4 text-center dark:border-gray-700/60 dark:bg-gray-900"><p class="mb-1 font-semibold text-gray-600 dark:text-gray-400">No community queries yet</p> <p class="max-w-xs text-xs text-gray-500 dark:text-gray-400">The top public SQL queries from the community will appear here once available.</p></div></div></div></div></div></div></div></div></div></div> </div></div></div></main> </div> <script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script> import("\/front\/build\/kube-a7bef43\/index.js"); window.moonSha = "kube-a7bef43\/"; window.__hf_deferred = {}; </script> <!-- Stripe --> <script> if (["hf.co", "huggingface.co"].includes(window.location.hostname)) { const script = document.createElement("script"); script.src = "https://js.stripe.com/v3/"; script.async = true; document.head.appendChild(script); } </script> </body> </html>