{ // 获取包含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"},"file_length":{"kind":"number","value":171,"string":"171"},"avg_line_length":{"kind":"number","value":16.2,"string":"16.2"},"max_line_length":{"kind":"number","value":64,"string":"64"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":801,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-10.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.21.SL062003-10\n\n\n[1] securities in the five years in firm \n\n\n\n"},"file_length":{"kind":"number","value":182,"string":"182"},"avg_line_length":{"kind":"number","value":17.3,"string":"17.3"},"max_line_length":{"kind":"number","value":75,"string":"75"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":802,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-11.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.21.SL062003-11\n\n\n[1] legal action will they arms and drug smugglers andaman sea in \n\n\n\n"},"file_length":{"kind":"number","value":207,"string":"207"},"avg_line_length":{"kind":"number","value":19.8,"string":"19.8"},"max_line_length":{"kind":"number","value":100,"string":"100"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":803,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-12.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.21.SL062003-12\n\n\n[1] nations to friendly relationship in the mouth \n\n\n\n"},"file_length":{"kind":"number","value":191,"string":"191"},"avg_line_length":{"kind":"number","value":18.2,"string":"18.2"},"max_line_length":{"kind":"number","value":84,"string":"84"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":804,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-13.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.21.SL062003-13\n\n\n[1] charming house in new delhi 31 august capital delhi in a house contenders leaders \n\n\n\n"},"file_length":{"kind":"number","value":227,"string":"227"},"avg_line_length":{"kind":"number","value":21.8,"string":"21.8"},"max_line_length":{"kind":"number","value":120,"string":"120"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":805,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-14.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.21.SL062003-14\n\n\n[1] world bank september world bank \n\n\n\n"},"file_length":{"kind":"number","value":177,"string":"177"},"avg_line_length":{"kind":"number","value":16.8,"string":"16.8"},"max_line_length":{"kind":"number","value":70,"string":"70"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":806,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-15.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.21.SL062003-15\n\n\n[1] summit conference site of the city centre in france \n\n\n\n"},"file_length":{"kind":"number","value":197,"string":"197"},"avg_line_length":{"kind":"number","value":18.8,"string":"18.8"},"max_line_length":{"kind":"number","value":90,"string":"90"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":807,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-16.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.21.SL062003-16\n\n\n[1] union human resources years in the information technology \n\n\n\n"},"file_length":{"kind":"number","value":203,"string":"203"},"avg_line_length":{"kind":"number","value":19.4,"string":"19.4"},"max_line_length":{"kind":"number","value":96,"string":"96"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":808,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-17.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.21.SL062003-17\n\n\n[1] the new chief minister in the people in \n\n\n\n"},"file_length":{"kind":"number","value":185,"string":"185"},"avg_line_length":{"kind":"number","value":17.6,"string":"17.6"},"max_line_length":{"kind":"number","value":78,"string":"78"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":809,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-18.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.21.SL062003-18\n\n\n[1] poll of the poll on reach of the rise in sunday \n\n\n\n"},"file_length":{"kind":"number","value":193,"string":"193"},"avg_line_length":{"kind":"number","value":18.4,"string":"18.4"},"max_line_length":{"kind":"number","value":86,"string":"86"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":810,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-19.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.21.SL062003-19\n\n\n[1] store in aaga fire the check began two in store at and \n\n\n\n"},"file_length":{"kind":"number","value":200,"string":"200"},"avg_line_length":{"kind":"number","value":19.1,"string":"19.1"},"max_line_length":{"kind":"number","value":93,"string":"93"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":811,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-20.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.21.SL062003-20\n\n\n[1] state of project in the \n\n\n\n"},"file_length":{"kind":"number","value":169,"string":"169"},"avg_line_length":{"kind":"number","value":16,"string":"16"},"max_line_length":{"kind":"number","value":62,"string":"62"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":812,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-21.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.21.SL062003-21\n\n\n[1] crime and his wife of the private company \n\n\n\n"},"file_length":{"kind":"number","value":187,"string":"187"},"avg_line_length":{"kind":"number","value":17.8,"string":"17.8"},"max_line_length":{"kind":"number","value":80,"string":"80"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":813,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-22.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.21.SL062003-22\n\n\n[1] indian pakistani harakato.n the answer give in central home \n\n\n\n"},"file_length":{"kind":"number","value":205,"string":"205"},"avg_line_length":{"kind":"number","value":19.6,"string":"19.6"},"max_line_length":{"kind":"number","value":98,"string":"98"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":814,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-23.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.21.SL062003-23\n\n\n[1] college in engineering at a postgraduate course for shubhaara.nbha and a postgraduate block open \n\n\n\n"},"file_length":{"kind":"number","value":242,"string":"242"},"avg_line_length":{"kind":"number","value":23.3,"string":"23.3"},"max_line_length":{"kind":"number","value":135,"string":"135"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":815,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-24.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.21.SL062003-24\n\n\n[1] clash in four dead at the \n\n\n\n"},"file_length":{"kind":"number","value":171,"string":"171"},"avg_line_length":{"kind":"number","value":16.2,"string":"16.2"},"max_line_length":{"kind":"number","value":64,"string":"64"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":816,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-25.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.21.SL062003-25\n\n\n[1] kashmir indian cuisine in the chief at reform of for indian subcontinent in there \n\n\n\n"},"file_length":{"kind":"number","value":227,"string":"227"},"avg_line_length":{"kind":"number","value":21.8,"string":"21.8"},"max_line_length":{"kind":"number","value":120,"string":"120"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":817,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-01.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-01\n\n\n[1] world trade officials in the nations to concessions give bangladesh \n\n\n\n"},"file_length":{"kind":"number","value":213,"string":"213"},"avg_line_length":{"kind":"number","value":20.4,"string":"20.4"},"max_line_length":{"kind":"number","value":106,"string":"106"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":818,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-02.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-02\n\n\n[1] indonesia the last year in the \n\n\n\n"},"file_length":{"kind":"number","value":176,"string":"176"},"avg_line_length":{"kind":"number","value":16.7,"string":"16.7"},"max_line_length":{"kind":"number","value":69,"string":"69"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":819,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-03.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-03\n\n\n[1] militants strategy american foreign minister \n\n\n\n"},"file_length":{"kind":"number","value":190,"string":"190"},"avg_line_length":{"kind":"number","value":18.1,"string":"18.1"},"max_line_length":{"kind":"number","value":83,"string":"83"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":820,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-04.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-04\n\n\n[1] india and other world against conflict when horizon time in a record in more \n\n\n\n"},"file_length":{"kind":"number","value":222,"string":"222"},"avg_line_length":{"kind":"number","value":21.3,"string":"21.3"},"max_line_length":{"kind":"number","value":115,"string":"115"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":821,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-05.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-05\n\n\n[1] agra of remains top samelana in the news are last year july in the \n\n\n\n"},"file_length":{"kind":"number","value":212,"string":"212"},"avg_line_length":{"kind":"number","value":20.3,"string":"20.3"},"max_line_length":{"kind":"number","value":105,"string":"105"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":822,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-06.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-06\n\n\n[1] earthquake shivering uThI dharaa buildings vulnerable were they are the moment in the deluge \n\n\n\n"},"file_length":{"kind":"number","value":238,"string":"238"},"avg_line_length":{"kind":"number","value":22.9,"string":"22.9"},"max_line_length":{"kind":"number","value":131,"string":"131"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":823,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-07.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-07\n\n\n[1] past year by raajakaaja walking the people to the home in if this year \n\n\n\n"},"file_length":{"kind":"number","value":216,"string":"216"},"avg_line_length":{"kind":"number","value":20.7,"string":"20.7"},"max_line_length":{"kind":"number","value":109,"string":"109"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":824,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-08.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-08\n\n\n[1] 2.1 iraakiyo.n the army of work in two weeks of the streets in the \n\n\n\n"},"file_length":{"kind":"number","value":212,"string":"212"},"avg_line_length":{"kind":"number","value":20.3,"string":"20.3"},"max_line_length":{"kind":"number","value":105,"string":"105"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":825,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-09.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-09\n\n\n[1] state in the leading firm \n\n\n\n"},"file_length":{"kind":"number","value":171,"string":"171"},"avg_line_length":{"kind":"number","value":16.2,"string":"16.2"},"max_line_length":{"kind":"number","value":64,"string":"64"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":826,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-10.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-10\n\n\n[1] securities in the five years \n\n\n\n"},"file_length":{"kind":"number","value":174,"string":"174"},"avg_line_length":{"kind":"number","value":16.5,"string":"16.5"},"max_line_length":{"kind":"number","value":67,"string":"67"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":827,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-11.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-11\n\n\n[1] legal action of legal action will they arms and drug smugglers andaman sea in \n\n\n\n"},"file_length":{"kind":"number","value":223,"string":"223"},"avg_line_length":{"kind":"number","value":21.4,"string":"21.4"},"max_line_length":{"kind":"number","value":116,"string":"116"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":828,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-12.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-12\n\n\n[1] nations to friendly relationship in the mouth \n\n\n\n"},"file_length":{"kind":"number","value":191,"string":"191"},"avg_line_length":{"kind":"number","value":18.2,"string":"18.2"},"max_line_length":{"kind":"number","value":84,"string":"84"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":829,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-13.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-13\n\n\n[1] charming house in new delhi 31 august capital delhi in a house contenders leaders \n\n\n\n"},"file_length":{"kind":"number","value":227,"string":"227"},"avg_line_length":{"kind":"number","value":21.8,"string":"21.8"},"max_line_length":{"kind":"number","value":120,"string":"120"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":830,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-14.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-14\n\n\n[1] world bank september world bank \n\n\n\n"},"file_length":{"kind":"number","value":177,"string":"177"},"avg_line_length":{"kind":"number","value":16.8,"string":"16.8"},"max_line_length":{"kind":"number","value":70,"string":"70"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":831,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-15.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-15\n\n\n[1] summit conference site of violence two leading countries the organization city centre in france \n\n\n\n"},"file_length":{"kind":"number","value":241,"string":"241"},"avg_line_length":{"kind":"number","value":23.2,"string":"23.2"},"max_line_length":{"kind":"number","value":134,"string":"134"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":832,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-16.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-16\n\n\n[1] years in the information technology \n\n\n\n"},"file_length":{"kind":"number","value":181,"string":"181"},"avg_line_length":{"kind":"number","value":17.2,"string":"17.2"},"max_line_length":{"kind":"number","value":74,"string":"74"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":833,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-17.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-17\n\n\n[1] the new chief minister in the soon peace restoration of people in long valley \n\n\n\n"},"file_length":{"kind":"number","value":223,"string":"223"},"avg_line_length":{"kind":"number","value":21.4,"string":"21.4"},"max_line_length":{"kind":"number","value":116,"string":"116"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":834,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-18.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-18\n\n\n[1] poll of the journey correct that poll on reach of the rise in sunday \n\n\n\n"},"file_length":{"kind":"number","value":214,"string":"214"},"avg_line_length":{"kind":"number","value":20.5,"string":"20.5"},"max_line_length":{"kind":"number","value":107,"string":"107"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":835,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-19.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-19\n\n\n[1] store in aaga fire the check began two june in store in check and \n\n\n\n"},"file_length":{"kind":"number","value":211,"string":"211"},"avg_line_length":{"kind":"number","value":20.2,"string":"20.2"},"max_line_length":{"kind":"number","value":104,"string":"104"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":836,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-20.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-20\n\n\n[1] state of project and forest ministry of the tiger for protection for project project \n\n\n\n"},"file_length":{"kind":"number","value":230,"string":"230"},"avg_line_length":{"kind":"number","value":22.1,"string":"22.1"},"max_line_length":{"kind":"number","value":123,"string":"123"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":837,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-21.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-21\n\n\n[1] crime and his wife of the private company people by his home in murder \n\n\n\n"},"file_length":{"kind":"number","value":216,"string":"216"},"avg_line_length":{"kind":"number","value":20.7,"string":"20.7"},"max_line_length":{"kind":"number","value":109,"string":"109"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":838,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-22.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-22\n\n\n[1] indian pakistani harakato.n the answer give in central home to terrorism locked in the \n\n\n\n"},"file_length":{"kind":"number","value":232,"string":"232"},"avg_line_length":{"kind":"number","value":22.3,"string":"22.3"},"max_line_length":{"kind":"number","value":125,"string":"125"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":839,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-23.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-23\n\n\n[1] college in engineering at a postgraduate course for shubhaara.nbha and a postgraduate block open \n\n\n\n"},"file_length":{"kind":"number","value":242,"string":"242"},"avg_line_length":{"kind":"number","value":23.3,"string":"23.3"},"max_line_length":{"kind":"number","value":135,"string":"135"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":840,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-24.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-24\n\n\n[1] clash in four dead at the \n\n\n\n"},"file_length":{"kind":"number","value":171,"string":"171"},"avg_line_length":{"kind":"number","value":16.2,"string":"16.2"},"max_line_length":{"kind":"number","value":64,"string":"64"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":841,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-25.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.22.SL062003-25\n\n\n[1] kashmir indian cuisine in the chief at reform of for indian subcontinent in there \n\n\n\n"},"file_length":{"kind":"number","value":227,"string":"227"},"avg_line_length":{"kind":"number","value":21.8,"string":"21.8"},"max_line_length":{"kind":"number","value":120,"string":"120"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":842,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-01.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-01\n\n\n[1] trade, business nations Bangladesh World Bank financial United_Nations hit bank proposal \n\n\n\n"},"file_length":{"kind":"number","value":234,"string":"234"},"avg_line_length":{"kind":"number","value":22.5,"string":"22.5"},"max_line_length":{"kind":"number","value":127,"string":"127"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":843,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-02.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-02\n\n\n[1] bomb allegation explosion Bali(the island)/earring police attacks karachi ship, plane security \n\n\n\n"},"file_length":{"kind":"number","value":240,"string":"240"},"avg_line_length":{"kind":"number","value":23.1,"string":"23.1"},"max_line_length":{"kind":"number","value":133,"string":"133"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":844,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-03.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-03\n\n\n[1] police Pakistan terrorism Osama Bin Laden\t year attacks India \n\n\n\n"},"file_length":{"kind":"number","value":207,"string":"207"},"avg_line_length":{"kind":"number","value":19.8,"string":"19.8"},"max_line_length":{"kind":"number","value":100,"string":"100"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":845,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-04.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-04\n\n\n[1] thousand one two India Osama Bin Laden\t earthquake Osama \n\n\n\n"},"file_length":{"kind":"number","value":202,"string":"202"},"avg_line_length":{"kind":"number","value":19.3,"string":"19.3"},"max_line_length":{"kind":"number","value":95,"string":"95"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":846,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-05.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-05\n\n\n[1] team India Vajpayee (India's prime minister) Pakistan government police people people gathering, function \n\n\n\n"},"file_length":{"kind":"number","value":251,"string":"251"},"avg_line_length":{"kind":"number","value":24.2,"string":"24.2"},"max_line_length":{"kind":"number","value":144,"string":"144"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":847,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-06.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-06\n\n\n[1] people earthquake building India space Columbia police Kashmir team \n\n\n\n"},"file_length":{"kind":"number","value":213,"string":"213"},"avg_line_length":{"kind":"number","value":20.4,"string":"20.4"},"max_line_length":{"kind":"number","value":106,"string":"106"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":848,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-07.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-07\n\n\n[1] Vajpayee (India's prime minister) year war government police Prime Minister India team \n\n\n\n"},"file_length":{"kind":"number","value":232,"string":"232"},"avg_line_length":{"kind":"number","value":22.3,"string":"22.3"},"max_line_length":{"kind":"number","value":125,"string":"125"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":849,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-08.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-08\n\n\n[1] point army rate police two weapon one Saddam Hussain \n\n\n\n"},"file_length":{"kind":"number","value":198,"string":"198"},"avg_line_length":{"kind":"number","value":18.9,"string":"18.9"},"max_line_length":{"kind":"number","value":91,"string":"91"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":850,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-09.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-09\n\n\n[1] point rate nations one two earthquake Arab/Billion thousand five \n\n\n\n"},"file_length":{"kind":"number","value":210,"string":"210"},"avg_line_length":{"kind":"number","value":20.1,"string":"20.1"},"max_line_length":{"kind":"number","value":103,"string":"103"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":851,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-10.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-10\n\n\n[1] court company thousand fame one Enron two program share_market \n\n\n\n"},"file_length":{"kind":"number","value":208,"string":"208"},"avg_line_length":{"kind":"number","value":19.9,"string":"19.9"},"max_line_length":{"kind":"number","value":101,"string":"101"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":852,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-11.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-11\n\n\n[1] election test, inspection commission test, exam, inspection missile World Bank ship, plane poll, election party \n\n\n\n"},"file_length":{"kind":"number","value":257,"string":"257"},"avg_line_length":{"kind":"number","value":24.8,"string":"24.8"},"max_line_length":{"kind":"number","value":150,"string":"150"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":853,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-12.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-12\n\n\n[1] India atomic Pakistan North_Korea World Bank Korea north plane, aircraft \n\n\n\n"},"file_length":{"kind":"number","value":218,"string":"218"},"avg_line_length":{"kind":"number","value":20.9,"string":"20.9"},"max_line_length":{"kind":"number","value":111,"string":"111"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":854,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-13.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-13\n\n\n[1] Singh (common Indian last name) BJP (Bhartiya Janata Party - a political party in India) victory prize, award festival party election Congress political party in India, US Congress Modi (name) \n\n\n\n"},"file_length":{"kind":"number","value":338,"string":"338"},"avg_line_length":{"kind":"number","value":32.9,"string":"32.9"},"max_line_length":{"kind":"number","value":231,"string":"231"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":855,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-14.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-14\n\n\n[1] World Bank India bank destroyed meeting/summit financial currency minister both countries \n\n\n\n"},"file_length":{"kind":"number","value":235,"string":"235"},"avg_line_length":{"kind":"number","value":22.6,"string":"22.6"},"max_line_length":{"kind":"number","value":128,"string":"128"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":856,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-15.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-15\n\n\n[1] gathering, function nation, country violence people police army gas festival Dollar \n\n\n\n"},"file_length":{"kind":"number","value":229,"string":"229"},"avg_line_length":{"kind":"number","value":22,"string":"22"},"max_line_length":{"kind":"number","value":122,"string":"122"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":857,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-16.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-16\n\n\n[1] minister government Jammu & Kashmir BJP (Bhartiya Janata Party - a political party in India) India party Singh (common Indian last name) mobile World Bank \n\n\n\n"},"file_length":{"kind":"number","value":300,"string":"300"},"avg_line_length":{"kind":"number","value":29.1,"string":"29.1"},"max_line_length":{"kind":"number","value":193,"string":"193"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":858,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-17.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-17\n\n\n[1] Kashmir Vajpayee (India's prime minister) Pakistan Jammu & Kashmir Congress political party in India, US Congress Sayeed (name) states India \n\n\n\n"},"file_length":{"kind":"number","value":286,"string":"286"},"avg_line_length":{"kind":"number","value":27.7,"string":"27.7"},"max_line_length":{"kind":"number","value":179,"string":"179"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":859,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-18.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-18\n\n\n[1] ship space satellite China India flight Columbia ban water \n\n\n\n"},"file_length":{"kind":"number","value":204,"string":"204"},"avg_line_length":{"kind":"number","value":19.5,"string":"19.5"},"max_line_length":{"kind":"number","value":97,"string":"97"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":860,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-19.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-19\n\n\n[1] army accident plane, aircraft rail fame one border share_market security \n\n\n\n"},"file_length":{"kind":"number","value":218,"string":"218"},"avg_line_length":{"kind":"number","value":20.9,"string":"20.9"},"max_line_length":{"kind":"number","value":111,"string":"111"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":861,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-20.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-20\n\n\n[1] effort report number, count Me/In, Inside, within Tamil disease information, knowledge government Kashmir \n\n\n\n"},"file_length":{"kind":"number","value":251,"string":"251"},"avg_line_length":{"kind":"number","value":24.2,"string":"24.2"},"max_line_length":{"kind":"number","value":144,"string":"144"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":862,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-21.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-21\n\n\n[1] police India talk use Kashmir more explosion two work \n\n\n\n"},"file_length":{"kind":"number","value":199,"string":"199"},"avg_line_length":{"kind":"number","value":19,"string":"19"},"max_line_length":{"kind":"number","value":92,"string":"92"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":863,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-22.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-22\n\n\n[1] Pakistan police Vajpayee (India's prime minister) India government Prime Minister Qaeda [\"Al-Qaeda\"] cup European \n\n\n\n"},"file_length":{"kind":"number","value":259,"string":"259"},"avg_line_length":{"kind":"number","value":25,"string":"25"},"max_line_length":{"kind":"number","value":152,"string":"152"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":864,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-23.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-23\n\n\n[1] Me/In, Inside, within President India ship nations space effort nineteen thousand \n\n\n\n"},"file_length":{"kind":"number","value":227,"string":"227"},"avg_line_length":{"kind":"number","value":21.8,"string":"21.8"},"max_line_length":{"kind":"number","value":120,"string":"120"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":865,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-24.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-24\n\n\n[1] police accident ear poll, election nation, country Pakistan people people weapons \n\n\n\n"},"file_length":{"kind":"number","value":227,"string":"227"},"avg_line_length":{"kind":"number","value":21.8,"string":"21.8"},"max_line_length":{"kind":"number","value":120,"string":"120"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":866,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-25.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.23.SL062003-25\n\n\n[1] both countries Jammu & Kashmir population, people both Kashmir Pakistan Sayeed (name) Vajpayee (India's prime minister) India \n\n\n\n"},"file_length":{"kind":"number","value":271,"string":"271"},"avg_line_length":{"kind":"number","value":26.2,"string":"26.2"},"max_line_length":{"kind":"number","value":164,"string":"164"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":867,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-01.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-01\n\n\n[1] world countries is fact is that developed countries put pressure on that they should be \n\n\n\n"},"file_length":{"kind":"number","value":233,"string":"233"},"avg_line_length":{"kind":"number","value":22.4,"string":"22.4"},"max_line_length":{"kind":"number","value":126,"string":"126"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":868,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-02.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-02\n\n\n[1] indonesian city of bali in in bomb blast accused india began to be averted \n\n\n\n"},"file_length":{"kind":"number","value":220,"string":"220"},"avg_line_length":{"kind":"number","value":21.1,"string":"21.1"},"max_line_length":{"kind":"number","value":113,"string":"113"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":869,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-03.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-03\n\n\n[1] terrorist attack measures should be more effective policy american foreign minister everyone knows that indian parliament attack \n\n\n\n"},"file_length":{"kind":"number","value":274,"string":"274"},"avg_line_length":{"kind":"number","value":26.5,"string":"26.5"},"max_line_length":{"kind":"number","value":167,"string":"167"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":870,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-04.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-04\n\n\n[1] india and rest of world for good and evil struggle because living \n\n\n\n"},"file_length":{"kind":"number","value":211,"string":"211"},"avg_line_length":{"kind":"number","value":20.2,"string":"20.2"},"max_line_length":{"kind":"number","value":104,"string":"104"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":871,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-05.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-05\n\n\n[1] agra remains of agra summit in general pervez musharraf was to chair idea \n\n\n\n"},"file_length":{"kind":"number","value":219,"string":"219"},"avg_line_length":{"kind":"number","value":21,"string":"21"},"max_line_length":{"kind":"number","value":112,"string":"112"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":872,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-06.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-06\n\n\n[1] gujarat earthquake tremble raised land unsafe buildings were earth \n\n\n\n"},"file_length":{"kind":"number","value":212,"string":"212"},"avg_line_length":{"kind":"number","value":20.3,"string":"20.3"},"max_line_length":{"kind":"number","value":105,"string":"105"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":873,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-07.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-07\n\n\n[1] in past year in running affairs of vajpayee remain clear less to people \n\n\n\n"},"file_length":{"kind":"number","value":217,"string":"217"},"avg_line_length":{"kind":"number","value":20.8,"string":"20.8"},"max_line_length":{"kind":"number","value":110,"string":"110"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":874,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-08.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-08\n\n\n[1] 2.1 iraqi army 1 11:28 7.1 american forces around covered with offence to control he for iraqi army \n\n\n\n"},"file_length":{"kind":"number","value":245,"string":"245"},"avg_line_length":{"kind":"number","value":23.6,"string":"23.6"},"max_line_length":{"kind":"number","value":138,"string":"138"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":875,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-09.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-09\n\n\n[1] UTC 16:35 4.1 in america indian companies to work not to be given to make proposal \n\n\n\n"},"file_length":{"kind":"number","value":228,"string":"228"},"avg_line_length":{"kind":"number","value":21.9,"string":"21.9"},"max_line_length":{"kind":"number","value":121,"string":"121"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":876,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-10.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-10\n\n\n[1] securities scam in harshad mehta and three others to 5 @-@ 5 years \n\n\n\n"},"file_length":{"kind":"number","value":212,"string":"212"},"avg_line_length":{"kind":"number","value":20.3,"string":"20.3"},"max_line_length":{"kind":"number","value":105,"string":"105"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":877,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-11.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-11\n\n\n[1] defense minister threat \n\n\n\n"},"file_length":{"kind":"number","value":169,"string":"169"},"avg_line_length":{"kind":"number","value":16,"string":"16"},"max_line_length":{"kind":"number","value":62,"string":"62"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":878,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-12.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-12\n\n\n[1] india from neighbouring countries to maintain friendly relations in favour \n\n\n\n"},"file_length":{"kind":"number","value":220,"string":"220"},"avg_line_length":{"kind":"number","value":21.1,"string":"21.1"},"max_line_length":{"kind":"number","value":113,"string":"113"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":879,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-13.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-13\n\n\n[1] manmohan not drums new delhi 31 august capital new delhi there was not @-@ revolution murdabad ' slogans and not \n\n\n\n"},"file_length":{"kind":"number","value":258,"string":"258"},"avg_line_length":{"kind":"number","value":24.9,"string":"24.9"},"max_line_length":{"kind":"number","value":151,"string":"151"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":880,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-14.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-14\n\n\n[1] world bank president james by india ' s economic development appreciation visit yashwant sinha accepted invitation \n\n\n\n"},"file_length":{"kind":"number","value":260,"string":"260"},"avg_line_length":{"kind":"number","value":25.1,"string":"25.1"},"max_line_length":{"kind":"number","value":153,"string":"153"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":881,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-15.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-15\n\n\n[1] g @-@ 8 summit violence june 2 as leading countries 8 summit all over continued \n\n\n\n"},"file_length":{"kind":"number","value":225,"string":"225"},"avg_line_length":{"kind":"number","value":21.6,"string":"21.6"},"max_line_length":{"kind":"number","value":118,"string":"118"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":882,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-16.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-16\n\n\n[1] professional lack will not be allowed to be june 2 central human resources minister said \n\n\n\n"},"file_length":{"kind":"number","value":234,"string":"234"},"avg_line_length":{"kind":"number","value":22.5,"string":"22.5"},"max_line_length":{"kind":"number","value":127,"string":"127"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":883,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-17.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-17\n\n\n[1] vajpayee sonia s visit to new zeal in kashmir june is atmosphere \n\n\n\n"},"file_length":{"kind":"number","value":210,"string":"210"},"avg_line_length":{"kind":"number","value":20.1,"string":"20.1"},"max_line_length":{"kind":"number","value":103,"string":"103"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":884,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-18.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-18\n\n\n[1] poll of india journey of right way june 2 indian space kasturirangan will be sent \n\n\n\n"},"file_length":{"kind":"number","value":227,"string":"227"},"avg_line_length":{"kind":"number","value":21.8,"string":"21.8"},"max_line_length":{"kind":"number","value":120,"string":"120"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":885,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-19.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-19\n\n\n[1] military in to take stock june 2 rajasthan border jaisalmer district in stock yesterday began \n\n\n\n"},"file_length":{"kind":"number","value":239,"string":"239"},"avg_line_length":{"kind":"number","value":23,"string":"23"},"max_line_length":{"kind":"number","value":132,"string":"132"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":886,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-20.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-20\n\n\n[1] government project ' tiger ' successful project june 2 environment and forests of ministry \n\n\n\n"},"file_length":{"kind":"number","value":236,"string":"236"},"avg_line_length":{"kind":"number","value":22.7,"string":"22.7"},"max_line_length":{"kind":"number","value":129,"string":"129"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":887,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-21.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-21\n\n\n[1] crime \n\n\n\n"},"file_length":{"kind":"number","value":151,"string":"151"},"avg_line_length":{"kind":"number","value":14.2,"string":"14.2"},"max_line_length":{"kind":"number","value":44,"string":"44"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":888,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-22.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-22\n\n\n[1] india pakistan deeds to answer capable of \n\n\n\n"},"file_length":{"kind":"number","value":187,"string":"187"},"avg_line_length":{"kind":"number","value":17.8,"string":"17.8"},"max_line_length":{"kind":"number","value":80,"string":"80"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":889,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-23.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-23\n\n\n[1] sun enrich nation to make plan kanchipuram june 19 \n\n\n\n"},"file_length":{"kind":"number","value":196,"string":"196"},"avg_line_length":{"kind":"number","value":18.7,"string":"18.7"},"max_line_length":{"kind":"number","value":89,"string":"89"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":890,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-24.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-24\n\n\n[1] roadways bus and impact \n\n\n\n"},"file_length":{"kind":"number","value":169,"string":"169"},"avg_line_length":{"kind":"number","value":16,"string":"16"},"max_line_length":{"kind":"number","value":62,"string":"62"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":891,"cells":{"repo":{"kind":"string","value":"pyrouge"},"file":{"kind":"string","value":"pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-25.html"},"code":{"kind":"string","value":"\n\nSL.P.10.R.24.SL062003-25\n\n\n[1] india and pakistan in kashmir can become medium @-@ mooftee srinagar june 20 \n\n\n\n"},"file_length":{"kind":"number","value":222,"string":"222"},"avg_line_length":{"kind":"number","value":21.3,"string":"21.3"},"max_line_length":{"kind":"number","value":115,"string":"115"},"extension_type":{"kind":"string","value":"html"}}},{"rowIdx":892,"cells":{"repo":{"kind":"null"},"file":{"kind":"string","value":"cmaes-main/benchmark/runner.sh"},"code":{"kind":"string","value":"#!/bin/sh\n\nset -e\n\nKUROBAKO=${KUROBAKO:-kurobako}\nDIR=$(cd $(dirname $0); pwd)\nREPEATS=${REPEATS:-5}\nBUDGET=${BUDGET:-300}\nSEED=${SEED:-1}\nDIM=${DIM:-2}\nSURROGATE_ROOT=${SURROGATE_ROOT:-$(dirname $DIR)/tmp/surrogate-models}\nWARM_START=${WARM_START:-0}\n\nusage() {\n cat < \n\nProblem:\n rosenbrock : https://www.sfu.ca/~ssurjano/rosen.html\n six-hump-camel : https://www.sfu.ca/~ssurjano/camel6.html\n himmelblau : https://en.wikipedia.org/wiki/Himmelblau%27s_function\n ackley : https://www.sfu.ca/~ssurjano/ackley.html\n rastrigin : https://www.sfu.ca/~ssurjano/rastr.html\n toxic-lightgbm : https://github.com/c-bata/benchmark-warm-starting-cmaes\n\nOptions:\n --help, -h print this\n\nExample:\n $ $(basename ${0}) rosenbrock ./tmp/kurobako.json\n $ cat ./tmp/kurobako.json | kurobako plot curve --errorbar -o ./tmp\nEOF\n}\n\ncase \"$1\" in\n himmelblau)\n PROBLEM=$($KUROBAKO problem command python $DIR/problem_himmelblau.py)\n ;;\n rosenbrock)\n PROBLEM=$($KUROBAKO problem command python $DIR/problem_rosenbrock.py)\n ;;\n six-hump-camel)\n PROBLEM=$($KUROBAKO problem command python $DIR/problem_six_hump_camel.py)\n ;;\n ackley)\n PROBLEM=$($KUROBAKO problem sigopt --dim $DIM ackley)\n ;;\n rastrigin)\n # \"kurobako problem sigopt --dim 8 rastrigin\" only accepts 8-dim.\n PROBLEM=$($KUROBAKO problem command python $DIR/problem_rastrigin.py $DIM)\n ;;\n toxic-lightgbm)\n PROBLEM=$($KUROBAKO problem warm-starting \\\n $($KUROBAKO problem surrogate $SURROGATE_ROOT/wscmaes-toxic-source/) \\\n $($KUROBAKO problem surrogate $SURROGATE_ROOT/wscmaes-toxic-target/))\n ;;\n help|--help|-h)\n usage\n exit 0\n ;;\n *)\n echo \"[Error] Invalid problem '${1}'\"\n usage\n exit 1\n ;;\nesac\n\nRANDOM_SOLVER=$($KUROBAKO solver random)\nCMAES_SOLVER=$($KUROBAKO solver --name 'cmaes' command -- python $DIR/optuna_solver.py cmaes)\nSEP_CMAES_SOLVER=$($KUROBAKO solver --name 'sep-cmaes' command -- python $DIR/optuna_solver.py sep-cmaes)\nIPOP_CMAES_SOLVER=$($KUROBAKO solver --name 'ipop-cmaes' command -- python $DIR/optuna_solver.py ipop-cmaes)\nIPOP_SEP_CMAES_SOLVER=$($KUROBAKO solver --name 'ipop-sep-cmaes' command -- python $DIR/optuna_solver.py ipop-sep-cmaes)\nPYCMA_SOLVER=$($KUROBAKO solver --name 'pycma' command -- python $DIR/optuna_solver.py pycma)\nWS_CMAES_SOLVER=$($KUROBAKO solver --name 'ws-cmaes' command -- python $DIR/optuna_solver.py ws-cmaes --warm-starting-trials $WARM_START)\n\nif [ $WARM_START -gt 0 ]; then\n $KUROBAKO studies \\\n --solvers $CMAES_SOLVER $WS_CMAES_SOLVER \\\n --problems $PROBLEM \\\n --seed $SEED --repeats $REPEATS --budget $BUDGET \\\n | $KUROBAKO run --parallelism 6 > $2\nelif [ $BUDGET -le 500 ]; then\n $KUROBAKO studies \\\n --solvers $RANDOM_SOLVER $PYCMA_SOLVER $CMAES_SOLVER $SEP_CMAES_SOLVER \\\n --problems $PROBLEM \\\n --seed $SEED --repeats $REPEATS --budget $BUDGET \\\n | $KUROBAKO run --parallelism 4 > $2\nelse\n $KUROBAKO studies \\\n --solvers $RANDOM_SOLVER $CMAES_SOLVER $IPOP_SEP_CMAES_SOLVER $IPOP_CMAES_SOLVER $SEP_CMAES_SOLVER \\\n --problems $PROBLEM \\\n --seed $SEED --repeats $REPEATS --budget $BUDGET \\\n | $KUROBAKO run --parallelism 6 > $2\nfi\n"},"file_length":{"kind":"number","value":3429,"string":"3,429"},"avg_line_length":{"kind":"number","value":34,"string":"34"},"max_line_length":{"kind":"number","value":137,"string":"137"},"extension_type":{"kind":"string","value":"sh"}}},{"rowIdx":893,"cells":{"repo":{"kind":"string","value":"OLED"},"file":{"kind":"string","value":"OLED-master/install-scripts/install.sh"},"code":{"kind":"string","value":"#!/usr/bin/env bash\n\n# Link logger\nsource logger.sh\n\n# Installing useful packages\nlog_info \"Installing various packages.\"\nsudo apt-get install bison re2c scons gcc libtbb-dev python2.7-dev lua5.2-dev wget\n\n# Check if external dependencies directory exists\nif [ ! -d ../external_dependencies ]; then\n\n # Create install directory\n log_info \"External dependencies directory not found. Creating ...\"\n mkdir ../external_dependencies\n cd ../external_dependencies # Move into the directory\n\n # Installing clingo\n log_info \"Installing clingo 4.5.4\"\n mkdir clingo\n cd clingo\n wget https://sourceforge.net/projects/potassco/files/clingo/4.5.4/clingo-4.5.4-source.tar.gz\n tar -zxf clingo-4.5.4-source.tar.gz\n rm clingo-4.5.4-source.tar.gz\n cd clingo-4.5.4-source\n cp ../../../install-scripts/solve-multi.patch.0 .\n cp ../../../install-scripts/include-math.patch.0 .\n patch -p0 < include-math.patch.0\n patch -p0 < solve-multi.patch.0\n scons configure --build-dir=release\n scons --build-dir=release\n sed -i 's/CPPPATH.*/CPPPATH = ['\\''\\/usr\\/include\\/python2.7'\\'','\\''\\/usr\\/include\\/lua5.1'\\'']/' build/release.py\n sed -i 's/WITH_PYTHON.*/WITH_PYTHON = ['\\''python2.7'\\'']/' build/release.py\n sed -i 's/WITH_LUA.*/WITH_LUA = ['\\''lua5.2'\\'']/' build/release.py\n scons --build-dir=release pyclingo\n scons --build-dir=release luaclingo\n cd ../..\n\n # Installing LoMRF\n log_info \"Installing LoMRF.\"\n wget https://github.com/anskarl/LoMRF/archive/develop.zip\n wget http://users.iit.demokritos.gr/~nkatz/oled/lpsolve55.tar.xz\n unzip develop\n tar xf lpsolve55.tar.xz\n cd LoMRF-develop\n sbt +publishLocal\n cd ..\n rm develop.zip\n rm lpsolve55.tar.xz\n cd ..\n\n # Installing Interval Tree\n log_info \"Installing Interval Tree.\"\n mkdir lib\n cd lib\n wget http://users.iit.demokritos.gr/~nkatz/oled/IntervalTree.jar\n\n cd ../install-scripts # Done, go back into install-scripts directory\nelse\n log_warn \"External dependencies directory exists! Moving on.\"\nfi\n\n# Get version from 'version.sbt'\nversion=`/bin/grep \"^version[ ][ ]*in[ ][ ]*ThisBuild[ ][ ]*:=[ ][ ]*\" \"../version.sbt\" | sed 's/version[ ][ ]*in[ ][ ]*ThisBuild[ ][ ]*:=[ ][ ]*\\\"\\(.*\\)\\\"/\\1/g'`\n\nlog_info \"Building OLED ${version} ...\"\ncd ..\nsbt assembly\nmv target/scala-2.11/oled-${version}.jar .\nlog_info \"Done building OLED. The jar is located at: `pwd`\"\n"},"file_length":{"kind":"number","value":2420,"string":"2,420"},"avg_line_length":{"kind":"number","value":33.098591549295776,"string":"33.098592"},"max_line_length":{"kind":"number","value":162,"string":"162"},"extension_type":{"kind":"string","value":"sh"}}},{"rowIdx":894,"cells":{"repo":{"kind":"string","value":"OLED"},"file":{"kind":"string","value":"OLED-master/install-scripts/logger.sh"},"code":{"kind":"string","value":"#!/usr/bin/env bash\n\n# Colours for logging messages\nred='\\033[0;31m'\ngreen='\\033[0;32m'\norange='\\033[0;33m'\ncyan='\\033[0;36m'\nnoColour='\\033[0m'\n\n# param $1: info message\nlog_info(){\n echo -e \"${cyan}\"`date`\" ${green}[ INFO ] $1 ${noColour}\"\n}\n\n# param $1: warning message\nlog_warn(){\n echo -e \"${cyan}\"`date`\" ${orange}[ WARN ] $1 ${noColour}\"\n}\n\n# param $1: error message\nlog_error(){\n echo -e \"${cyan}\"`date`\" ${red}[ ERROR ] $1 ${noColour}\"\n}\n\n# param $1: error message (default is \"An error occurred, exiting...\")\n# param $2: error code (default is 1)\nexit_error(){\n if [ $? -ne 0 ]; then\n log_error ${1:-\"An error occured, exiting...\"}\n exit ${2:-1}\n fi\n}\n\n"},"file_length":{"kind":"number","value":684,"string":"684"},"avg_line_length":{"kind":"number","value":19.147058823529413,"string":"19.147059"},"max_line_length":{"kind":"number","value":70,"string":"70"},"extension_type":{"kind":"string","value":"sh"}}},{"rowIdx":895,"cells":{"repo":{"kind":"string","value":"pythainlp-dev/docs/build_docs.sh"},"file":{"kind":"string","value":"pythainlp-dev/docs/build_docs.sh"},"code":{"kind":"string","value":"#!/bin/bash\nmake html\n"},"file_length":{"kind":"number","value":22,"string":"22"},"avg_line_length":{"kind":"number","value":6.666666666666667,"string":"6.666667"},"max_line_length":{"kind":"number","value":11,"string":"11"},"extension_type":{"kind":"string","value":"sh"}}},{"rowIdx":896,"cells":{"repo":{"kind":"string","value":"pythainlp-dev/docs/clean_directory.sh"},"file":{"kind":"string","value":"pythainlp-dev/docs/clean_directory.sh"},"code":{"kind":"string","value":"#!/bin/bash\n\n# Delete all files and folders in the directory: /pythainlp/docs/\n\n# $1 : FTP_USER\n# $2 : FTP_PASSWORD\n# $3 : FTP_HOST\n# $4 : Brnach name\n\nFTP_USER=$1\nFTP_PASSWORD=$2\nFTP_HOST=$3\nBRANCH_NAME=$4\n\nremove_all_files()\n{\n # DIRECTORY=$1\n echo \"Delete files in: $1\"\n for f in `curl --list-only --ftp-create-dirs --ipv4 ftp://$FTP_USER:$FTP_PASSWORD@$FTP_HOST/$1/`; do\n if [[ -d \"$f\" ]] || [[ \"$f\" = _* ]] || [[ \"$f\" = .doctree ]] || [[ \"$f\" != *\".\"* ]]; then\n echo \"--- deleting files in folder: $1/$f\";\n remove_all_files $1/$f\n else\n echo \"Delete a file: $f\"\n curl --ipv4 ftp://$FTP_USER:$FTP_PASSWORD@$FTP_HOST -Q \"DELE $1/$f\"\n fi\n done\n}\n\nremove_empty_folders()\n{\n\n echo \"Delete empty folders in: $1\"\n for f in `curl --list-only --ftp-create-dirs --ipv4 ftp://$FTP_USER:$FTP_PASSWORD@$FTP_HOST/$1/`; do\n if [[ -d \"$f\" ]] || [[ \"$f\" = _* ]] || [[ \"$f\" = fonts ]] || [[ \"$f\" = pythainlp ]] || [[ \"$f\" = .doctree ]] || [[ \"$f\" != *\".\"* ]]; then\n echo \"--- Deleting folders in: $1/$f\";\n remove_empty_folders $1/$f\n curl --ipv4 ftp://$FTP_USER:$FTP_PASSWORD@$FTP_HOST -Q \"RMD $1/$f\"\n else\n echo \"Delete a folder: $f\"\n curl --ipv4 ftp://$FTP_USER:$FTP_PASSWORD@$FTP_HOST -Q \"RMD $1/$f\"\n fi\n done\n}\n\necho \"Start removing all files within: public_html/pythainlp/docs/$BRANCH_NAME/\";\n\nremove_all_files public_html/pythainlp/docs/$BRANCH_NAME;\n\necho \"Start removing all empty folders within: public_html/pythainlp/docs/$BRANCH_NAME/\";\n\nremove_empty_folders public_html/pythainlp/docs/$BRANCH_NAME;\n\necho \"Done.\";\n"},"file_length":{"kind":"number","value":1682,"string":"1,682"},"avg_line_length":{"kind":"number","value":29.6,"string":"29.6"},"max_line_length":{"kind":"number","value":145,"string":"145"},"extension_type":{"kind":"string","value":"sh"}}},{"rowIdx":897,"cells":{"repo":{"kind":"null"},"file":{"kind":"string","value":"ceph-main/do_cmake.sh"},"code":{"kind":"string","value":"#!/usr/bin/env bash\nset -ex\n\nif [ -d .git ]; then\n git submodule update --init --recursive\nfi\n\n: ${BUILD_DIR:=build}\n: ${CEPH_GIT_DIR:=..}\n\nif [ -e $BUILD_DIR ]; then\n echo \"'$BUILD_DIR' dir already exists; either rm -rf '$BUILD_DIR' and re-run, or set BUILD_DIR env var to a different directory name\"\n exit 1\nfi\n\nPYBUILD=\"3\"\nARGS=\"-GNinja\"\nif [ -r /etc/os-release ]; then\n source /etc/os-release\n case \"$ID\" in\n fedora)\n if [ \"$VERSION_ID\" -ge \"37\" ] ; then\n PYBUILD=\"3.11\"\n elif [ \"$VERSION_ID\" -ge \"35\" ] ; then\n PYBUILD=\"3.10\"\n elif [ \"$VERSION_ID\" -ge \"33\" ] ; then\n PYBUILD=\"3.9\"\n elif [ \"$VERSION_ID\" -ge \"32\" ] ; then\n PYBUILD=\"3.8\"\n else\n PYBUILD=\"3.7\"\n fi\n ;;\n rocky|rhel|centos)\n MAJOR_VER=$(echo \"$VERSION_ID\" | sed -e 's/\\..*$//')\n if [ \"$MAJOR_VER\" -ge \"9\" ] ; then\n PYBUILD=\"3.9\"\n elif [ \"$MAJOR_VER\" -ge \"8\" ] ; then\n PYBUILD=\"3.6\"\n fi\n ;;\n opensuse*|suse|sles)\n PYBUILD=\"3\"\n ARGS+=\" -DWITH_RADOSGW_AMQP_ENDPOINT=OFF\"\n ARGS+=\" -DWITH_RADOSGW_KAFKA_ENDPOINT=OFF\"\n ;;\n ubuntu)\n MAJOR_VER=$(echo \"$VERSION_ID\" | sed -e 's/\\..*$//')\n if [ \"$MAJOR_VER\" -ge \"22\" ] ; then\n PYBUILD=\"3.10\"\n fi\n ;;\n\n esac\nelif [ \"$(uname)\" == FreeBSD ] ; then\n PYBUILD=\"3\"\n ARGS+=\" -DWITH_RADOSGW_AMQP_ENDPOINT=OFF\"\n ARGS+=\" -DWITH_RADOSGW_KAFKA_ENDPOINT=OFF\"\nelse\n echo Unknown release\n exit 1\nfi\n\nARGS+=\" -DWITH_PYTHON3=${PYBUILD}\"\n\nif type ccache > /dev/null 2>&1 ; then\n echo \"enabling ccache\"\n ARGS+=\" -DWITH_CCACHE=ON\"\nfi\n\ncxx_compiler=\"g++\"\nc_compiler=\"gcc\"\n# 20 is used for more future-proof\nfor i in $(seq 20 -1 11); do\n if type -t gcc-$i > /dev/null; then\n cxx_compiler=\"g++-$i\"\n c_compiler=\"gcc-$i\"\n break\n fi\ndone\nARGS+=\" -DCMAKE_CXX_COMPILER=$cxx_compiler\"\nARGS+=\" -DCMAKE_C_COMPILER=$c_compiler\"\n\nmkdir $BUILD_DIR\ncd $BUILD_DIR\nif type cmake3 > /dev/null 2>&1 ; then\n CMAKE=cmake3\nelse\n CMAKE=cmake\nfi\n${CMAKE} $ARGS \"$@\" $CEPH_GIT_DIR || exit 1\nset +x\n\n# minimal config to find plugins\ncat < ceph.conf\n[global]\nplugin dir = lib\nerasure code dir = lib\nEOF\n\necho done.\n\nif [[ ! \"$ARGS $@\" =~ \"-DCMAKE_BUILD_TYPE\" ]]; then\n cat <&1 | tee cmake.log\n\necho -n \"start building: \"; date\nprintenv\n\ncd ${BUILD_DIR}\n gmake -j$CPUS V=1 VERBOSE=1 \n gmake tests \n echo -n \"start testing: \"; date ;\n ctest -j $CPUS || RETEST=1\n\necho \"Testing result, retest: = \" $RETEST\n\nif [ $RETEST -eq 1 ]; then\n # make sure no leftovers are there\n killall ceph-osd || true\n killall ceph-mgr || true\n killall ceph-mds || true\n killall ceph-mon || true\n # clean up after testing\n rm -rf td/* /tmp/td src/test/td/* || true\n rm -rf /tmp/ceph-asok.* || true\n rm -rf /tmp/cores.* || true\n rm -rf /tmp/*.core || true\n\n ctest --output-on-failure --rerun-failed\nfi\n\nSTATUS=$?\n\n# cleanup after the fact\nrm -rf /tmp/tmp* /tmp/foo /tmp/pip* /tmp/big* /tmp/pymp* $TMPDIR || true\n\necho -n \"Ended: \"; date \n\nreturn $STATUS\n\n"},"file_length":{"kind":"number","value":2522,"string":"2,522"},"avg_line_length":{"kind":"number","value":23.980198019801982,"string":"23.980198"},"max_line_length":{"kind":"number","value":93,"string":"93"},"extension_type":{"kind":"string","value":"sh"}}},{"rowIdx":899,"cells":{"repo":{"kind":"null"},"file":{"kind":"string","value":"ceph-main/install-deps.sh"},"code":{"kind":"string","value":"#!/usr/bin/env bash\n#\n# Ceph distributed storage system\n#\n# Copyright (C) 2014, 2015 Red Hat \n#\n# Author: Loic Dachary \n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# version 2.1 of the License, or (at your option) any later version.\n#\nset -e\n\nif ! [ \"${_SOURCED_LIB_BUILD}\" = 1 ]; then\n SCRIPT_DIR=\"$(cd \"$(dirname \"${BASH_SOURCE[0]}\")\" && pwd)\"\n CEPH_ROOT=\"${SCRIPT_DIR}\"\n . \"${CEPH_ROOT}/src/script/lib-build.sh\" || exit 2\nfi\n\n\nDIR=/tmp/install-deps.$$\ntrap \"rm -fr $DIR\" EXIT\nmkdir -p $DIR\nif test $(id -u) != 0 ; then\n SUDO=sudo\nfi\n# enable UTF-8 encoding for programs like pip that expect to\n# print more than just ascii chars\nexport LC_ALL=C.UTF-8\n\nARCH=$(uname -m)\n\n\nfunction munge_ceph_spec_in {\n local with_seastar=$1\n shift\n local with_zbd=$1\n shift\n local for_make_check=$1\n shift\n local OUTFILE=$1\n sed -e 's/@//g' < ceph.spec.in > $OUTFILE\n # http://rpm.org/user_doc/conditional_builds.html\n if $with_seastar; then\n sed -i -e 's/%bcond_with seastar/%bcond_without seastar/g' $OUTFILE\n fi\n if $with_zbd; then\n sed -i -e 's/%bcond_with zbd/%bcond_without zbd/g' $OUTFILE\n fi\n if $for_make_check; then\n sed -i -e 's/%bcond_with make_check/%bcond_without make_check/g' $OUTFILE\n fi\n}\n\nfunction munge_debian_control {\n local version=$1\n shift\n local control=$1\n case \"$version\" in\n *squeeze*|*wheezy*)\n control=\"/tmp/control.$$\"\n grep -v babeltrace debian/control > $control\n ;;\n esac\n echo $control\n}\n\nfunction ensure_decent_gcc_on_ubuntu {\n ci_debug \"Start ensure_decent_gcc_on_ubuntu() in install-deps.sh\"\n # point gcc to the one offered by g++-7 if the used one is not\n # new enough\n local old=$(gcc -dumpfullversion -dumpversion)\n local new=$1\n local codename=$2\n if dpkg --compare-versions $old ge ${new}.0; then\n return\n fi\n\n if [ ! -f /usr/bin/g++-${new} ]; then\n $SUDO tee /etc/apt/sources.list.d/ubuntu-toolchain-r.list </dev/null | grep -q installed; then\n missing_pkgs+=\" $pkg\"\n ci_debug \"missing_pkgs=$missing_pkgs\"\n fi\n done\n fi\n if test -n \"$missing_pkgs\"; then\n local shaman_url=\"https://shaman.ceph.com/api/repos/${project}/master/${sha1}/ubuntu/${codename}/repo\"\n in_jenkins && echo -n \"CI_DEBUG: Downloading $shaman_url ... \"\n $SUDO curl --silent --fail --write-out \"%{http_code}\" --location $shaman_url --output /etc/apt/sources.list.d/$project.list\n $SUDO env DEBIAN_FRONTEND=noninteractive apt-get update -y -o Acquire::Languages=none -o Acquire::Translation=none || true\n $SUDO env DEBIAN_FRONTEND=noninteractive apt-get install --allow-unauthenticated -y $missing_pkgs\n fi\n}\n\nfunction install_boost_on_ubuntu {\n ci_debug \"Running install_boost_on_ubuntu() in install-deps.sh\"\n local ver=1.82\n local installed_ver=$(apt -qq list --installed ceph-libboost*-dev 2>/dev/null |\n grep -e 'libboost[0-9].[0-9]\\+-dev' |\n cut -d' ' -f2 |\n cut -d'.' -f1,2)\n if test -n \"$installed_ver\"; then\n if echo \"$installed_ver\" | grep -q \"^$ver\"; then\n return\n else\n $SUDO env DEBIAN_FRONTEND=noninteractive apt-get -y remove \"ceph-libboost.*${installed_ver}.*\"\n $SUDO rm -f /etc/apt/sources.list.d/ceph-libboost${installed_ver}.list\n fi\n fi\n local codename=$1\n local project=libboost\n local sha1=2804368f5b807ba8334b0ccfeb8af191edeb996f\n install_pkg_on_ubuntu \\\n $project \\\n $sha1 \\\n $codename \\\n check \\\n ceph-libboost-atomic$ver-dev \\\n ceph-libboost-chrono$ver-dev \\\n ceph-libboost-container$ver-dev \\\n ceph-libboost-context$ver-dev \\\n ceph-libboost-coroutine$ver-dev \\\n ceph-libboost-date-time$ver-dev \\\n ceph-libboost-filesystem$ver-dev \\\n ceph-libboost-iostreams$ver-dev \\\n ceph-libboost-program-options$ver-dev \\\n ceph-libboost-python$ver-dev \\\n ceph-libboost-random$ver-dev \\\n ceph-libboost-regex$ver-dev \\\n ceph-libboost-system$ver-dev \\\n ceph-libboost-test$ver-dev \\\n ceph-libboost-thread$ver-dev \\\n ceph-libboost-timer$ver-dev\n}\n\nfunction install_libzbd_on_ubuntu {\n ci_debug \"Running install_libzbd_on_ubuntu() in install-deps.sh\"\n local codename=$1\n local project=libzbd\n local sha1=1fadde94b08fab574b17637c2bebd2b1e7f9127b\n install_pkg_on_ubuntu \\\n $project \\\n $sha1 \\\n $codename \\\n check \\\n libzbd-dev\n}\n\nmotr_pkgs_url='https://github.com/Seagate/cortx-motr/releases/download/2.0.0-rgw'\n\nfunction install_cortx_motr_on_ubuntu {\n if dpkg -l cortx-motr-dev &> /dev/null; then\n return\n fi\n if [ \"$(lsb_release -sc)\" = \"jammy\" ]; then\n install_pkg_on_ubuntu \\\n cortx-motr \\\n 39f89fa1c6945040433a913f2687c4b4e6cbeb3f \\\n jammy \\\n check \\\n cortx-motr \\\n cortx-motr-dev\n else\n local deb_arch=$(dpkg --print-architecture)\n local motr_pkg=\"cortx-motr_2.0.0.git3252d623_$deb_arch.deb\"\n local motr_dev_pkg=\"cortx-motr-dev_2.0.0.git3252d623_$deb_arch.deb\"\n $SUDO curl -sL -o/var/cache/apt/archives/$motr_pkg $motr_pkgs_url/$motr_pkg\n $SUDO curl -sL -o/var/cache/apt/archives/$motr_dev_pkg $motr_pkgs_url/$motr_dev_pkg\n # For some reason libfabric pkg is not available in arm64 version\n # of Ubuntu 20.04 (Focal Fossa), so we borrow it from more recent\n # versions for now.\n if [[ \"$deb_arch\" == 'arm64' ]]; then\n local lf_pkg='libfabric1_1.11.0-2_arm64.deb'\n $SUDO curl -sL -o/var/cache/apt/archives/$lf_pkg http://ports.ubuntu.com/pool/universe/libf/libfabric/$lf_pkg\n $SUDO apt-get install -y /var/cache/apt/archives/$lf_pkg\n fi\n $SUDO apt-get install -y /var/cache/apt/archives/{$motr_pkg,$motr_dev_pkg}\n $SUDO apt-get install -y libisal-dev\n fi\n}\n\nfunction version_lt {\n test $1 != $(echo -e \"$1\\n$2\" | sort -rV | head -n 1)\n}\n\nfunction ensure_decent_gcc_on_rh {\n local old=$(gcc -dumpversion)\n local dts_ver=$1\n if version_lt $old $dts_ver; then\n if test -t 1; then\n # interactive shell\n cat <= 0.8' 'pip >= 21.0' 'wheel >= 0.24' 'tox >= 2.9.1' || return 1\n if test $# != 0 ; then\n # '--use-feature=fast-deps --use-deprecated=legacy-resolver' added per\n # https://github.com/pypa/pip/issues/9818 These should be able to be\n # removed at some point in the future.\n pip --use-feature=fast-deps --use-deprecated=legacy-resolver $PIP_OPTS $install $@ || return 1\n fi\n}\n\nfunction activate_virtualenv() {\n ci_debug \"Running activate_virtualenv() in install-deps.sh\"\n local top_srcdir=$1\n local env_dir=$top_srcdir/install-deps-python3\n\n if ! test -d $env_dir ; then\n python3 -m venv ${env_dir}\n . $env_dir/bin/activate\n if ! populate_wheelhouse install ; then\n rm -rf $env_dir\n return 1\n fi\n fi\n . $env_dir/bin/activate\n}\n\nfunction preload_wheels_for_tox() {\n ci_debug \"Running preload_wheels_for_tox() in install-deps.sh\"\n local ini=$1\n shift\n pushd . > /dev/null\n cd $(dirname $ini)\n local require_files=$(ls *requirements*.txt 2>/dev/null) || true\n local constraint_files=$(ls *constraints*.txt 2>/dev/null) || true\n local require=$(echo -n \"$require_files\" | sed -e 's/^/-r /')\n local constraint=$(echo -n \"$constraint_files\" | sed -e 's/^/-c /')\n local md5=wheelhouse/md5\n if test \"$require\"; then\n if ! test -f $md5 || ! md5sum -c $md5 > /dev/null; then\n rm -rf wheelhouse\n fi\n fi\n if test \"$require\" && ! test -d wheelhouse ; then\n type python3 > /dev/null 2>&1 || continue\n activate_virtualenv $top_srcdir || exit 1\n python3 -m pip install --upgrade pip\n populate_wheelhouse \"wheel -w $wip_wheelhouse\" $require $constraint || exit 1\n mv $wip_wheelhouse wheelhouse\n md5sum $require_files $constraint_files > $md5\n fi\n popd > /dev/null\n}\n\nfor_make_check=false\nif tty -s; then\n # interactive\n for_make_check=true\nelif [ $FOR_MAKE_CHECK ]; then\n for_make_check=true\nelse\n for_make_check=false\nfi\n\nif [ x$(uname)x = xFreeBSDx ]; then\n if [ \"$INSTALL_EXTRA_PACKAGES\" ]; then\n echo \"Installing extra packages not supported on FreeBSD\" >&2\n exit 1\n fi\n $SUDO pkg install -yq \\\n devel/babeltrace \\\n devel/binutils \\\n devel/git \\\n devel/gperf \\\n devel/gmake \\\n devel/cmake \\\n devel/nasm \\\n devel/boost-all \\\n devel/boost-python-libs \\\n devel/valgrind \\\n devel/pkgconf \\\n devel/libedit \\\n devel/libtool \\\n devel/google-perftools \\\n lang/cython \\\n net/openldap24-client \\\n archivers/snappy \\\n archivers/liblz4 \\\n ftp/curl \\\n misc/e2fsprogs-libuuid \\\n misc/getopt \\\n net/socat \\\n textproc/expat2 \\\n textproc/gsed \\\n lang/gawk \\\n textproc/libxml2 \\\n textproc/xmlstarlet \\\n textproc/jq \\\n textproc/py-sphinx \\\n emulators/fuse \\\n java/junit \\\n lang/python36 \\\n devel/py-pip \\\n devel/py-flake8 \\\n devel/py-tox \\\n devel/py-argparse \\\n devel/py-nose \\\n devel/py-prettytable \\\n devel/py-yaml \\\n www/py-routes \\\n www/py-flask \\\n www/node \\\n www/npm \\\n www/fcgi \\\n security/nss \\\n security/krb5 \\\n security/oath-toolkit \\\n sysutils/flock \\\n sysutils/fusefs-libs \\\n\n # Now use pip to install some extra python modules\n pip install pecan\n\n exit\nelse\n [ $WITH_SEASTAR ] && with_seastar=true || with_seastar=false\n [ $WITH_ZBD ] && with_zbd=true || with_zbd=false\n [ $WITH_PMEM ] && with_pmem=true || with_pmem=false\n [ $WITH_RADOSGW_MOTR ] && with_rgw_motr=true || with_rgw_motr=false\n source /etc/os-release\n case \"$ID\" in\n debian|ubuntu|devuan|elementary|softiron)\n echo \"Using apt-get to install dependencies\"\n if [ \"$INSTALL_EXTRA_PACKAGES\" ]; then\n if ! $SUDO apt-get install -y $INSTALL_EXTRA_PACKAGES ; then\n # try again. ported over from run-make.sh (orignally e278295)\n # In the case that apt-get is interrupted, like when a jenkins\n # job is cancelled, the package manager will be in an inconsistent\n # state. Run the command again after `dpkg --configure -a` to\n # bring package manager back into a clean state.\n $SUDO dpkg --configure -a\n ci_debug \"trying to install $INSTALL_EXTRA_PACKAGES again\"\n $SUDO apt-get install -y $INSTALL_EXTRA_PACKAGES\n fi\n fi\n $SUDO apt-get install -y devscripts equivs\n $SUDO apt-get install -y dpkg-dev\n ensure_python3_sphinx_on_ubuntu\n case \"$VERSION\" in\n *Bionic*)\n ensure_decent_gcc_on_ubuntu 9 bionic\n [ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu bionic\n $with_zbd && install_libzbd_on_ubuntu bionic\n ;;\n *Focal*)\n ensure_decent_gcc_on_ubuntu 11 focal\n [ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu focal\n $with_zbd && install_libzbd_on_ubuntu focal\n ;;\n *Jammy*)\n [ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu jammy\n $SUDO apt-get install -y gcc\n ;;\n *)\n $SUDO apt-get install -y gcc\n ;;\n esac\n if ! test -r debian/control ; then\n echo debian/control is not a readable file\n exit 1\n fi\n touch $DIR/status\n\n ci_debug \"Running munge_debian_control() in install-deps.sh\"\n backports=\"\"\n control=$(munge_debian_control \"$VERSION\" \"debian/control\")\n case \"$VERSION\" in\n *squeeze*|*wheezy*)\n backports=\"-t $codename-backports\"\n ;;\n esac\n\n # make a metapackage that expresses the build dependencies,\n # install it, rm the .deb; then uninstall the package as its\n # work is done\n build_profiles=\"\"\n if $for_make_check; then\n build_profiles+=\",pkg.ceph.check\"\n fi\n if $with_seastar; then\n build_profiles+=\",pkg.ceph.crimson\"\n fi\n if $with_pmem; then\n build_profiles+=\",pkg.ceph.pmdk\"\n fi\n\n ci_debug \"for_make_check=$for_make_check\"\n ci_debug \"with_seastar=$with_seastar\"\n ci_debug \"with_jaeger=$with_jaeger\"\n ci_debug \"build_profiles=$build_profiles\"\n ci_debug \"Now running 'mk-build-deps' and installing ceph-build-deps package\"\n\n $SUDO env DEBIAN_FRONTEND=noninteractive mk-build-deps \\\n --build-profiles \"${build_profiles#,}\" \\\n --install --remove \\\n --tool=\"apt-get -y --no-install-recommends $backports\" $control || exit 1\n ci_debug \"Removing ceph-build-deps\"\n $SUDO env DEBIAN_FRONTEND=noninteractive apt-get -y remove ceph-build-deps\n if [ \"$control\" != \"debian/control\" ] ; then rm $control; fi\n\n # for rgw motr backend build checks\n if $with_rgw_motr; then\n install_cortx_motr_on_ubuntu\n fi\n ;;\n rocky|centos|fedora|rhel|ol|virtuozzo)\n builddepcmd=\"dnf -y builddep --allowerasing\"\n echo \"Using dnf to install dependencies\"\n case \"$ID\" in\n fedora)\n $SUDO dnf install -y dnf-utils\n ;;\n rocky|centos|rhel|ol|virtuozzo)\n MAJOR_VERSION=\"$(echo $VERSION_ID | cut -d. -f1)\"\n $SUDO dnf install -y dnf-utils selinux-policy-targeted\n rpm --quiet --query epel-release || \\\n $SUDO dnf -y install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-$MAJOR_VERSION.noarch.rpm\n $SUDO rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$MAJOR_VERSION\n $SUDO rm -f /etc/yum.repos.d/dl.fedoraproject.org*\n if test $ID = centos -a $MAJOR_VERSION = 8 ; then\n # Enable 'powertools' or 'PowerTools' repo\n $SUDO dnf config-manager --set-enabled $(dnf repolist --all 2>/dev/null|gawk 'tolower($0) ~ /^powertools\\s/{print $1}')\n dts_ver=11\n # before EPEL8 and PowerTools provide all dependencies, we use sepia for the dependencies\n $SUDO dnf config-manager --add-repo http://apt-mirror.front.sepia.ceph.com/lab-extras/8/\n $SUDO dnf config-manager --setopt=apt-mirror.front.sepia.ceph.com_lab-extras_8_.gpgcheck=0 --save\n $SUDO dnf -y module enable javapackages-tools\n elif test $ID = rhel -a $MAJOR_VERSION = 8 ; then\n dts_ver=11\n $SUDO dnf config-manager --set-enabled \"codeready-builder-for-rhel-8-${ARCH}-rpms\"\n $SUDO dnf config-manager --add-repo http://apt-mirror.front.sepia.ceph.com/lab-extras/8/\n $SUDO dnf config-manager --setopt=apt-mirror.front.sepia.ceph.com_lab-extras_8_.gpgcheck=0 --save\n $SUDO dnf -y module enable javapackages-tools\n fi\n ;;\n esac\n if [ \"$INSTALL_EXTRA_PACKAGES\" ]; then\n $SUDO dnf install -y $INSTALL_EXTRA_PACKAGES\n fi\n munge_ceph_spec_in $with_seastar $with_zbd $for_make_check $DIR/ceph.spec\n # for python3_pkgversion macro defined by python-srpm-macros, which is required by python3-devel\n $SUDO dnf install -y python3-devel\n $SUDO $builddepcmd $DIR/ceph.spec 2>&1 | tee $DIR/yum-builddep.out\n [ ${PIPESTATUS[0]} -ne 0 ] && exit 1\n if [ -n \"$dts_ver\" ]; then\n ensure_decent_gcc_on_rh $dts_ver\n fi\n IGNORE_YUM_BUILDEP_ERRORS=\"ValueError: SELinux policy is not managed or store cannot be accessed.\"\n sed \"/$IGNORE_YUM_BUILDEP_ERRORS/d\" $DIR/yum-builddep.out | grep -i \"error:\" && exit 1\n # for rgw motr backend build checks\n if ! rpm --quiet -q cortx-motr-devel &&\n { [[ $FOR_MAKE_CHECK ]] || $with_rgw_motr; }; then\n $SUDO dnf install -y \\\n \"$motr_pkgs_url/isa-l-2.30.0-1.el7.${ARCH}.rpm\" \\\n \"$motr_pkgs_url/cortx-motr-2.0.0-1_git3252d623_any.el8.${ARCH}.rpm\" \\\n \"$motr_pkgs_url/cortx-motr-devel-2.0.0-1_git3252d623_any.el8.${ARCH}.rpm\"\n fi\n ;;\n opensuse*|suse|sles)\n echo \"Using zypper to install dependencies\"\n zypp_install=\"zypper --gpg-auto-import-keys --non-interactive install --no-recommends\"\n $SUDO $zypp_install systemd-rpm-macros rpm-build || exit 1\n if [ \"$INSTALL_EXTRA_PACKAGES\" ]; then\n $SUDO $zypp_install $INSTALL_EXTRA_PACKAGES\n fi\n munge_ceph_spec_in $with_seastar false $for_make_check $DIR/ceph.spec\n $SUDO $zypp_install $(rpmspec -q --buildrequires $DIR/ceph.spec) || exit 1\n ;;\n *)\n echo \"$ID is unknown, dependencies will have to be installed manually.\"\n exit 1\n ;;\n esac\nfi\n\n# use pip cache if possible but do not store it outside of the source\n# tree\n# see https://pip.pypa.io/en/stable/reference/pip_install.html#caching\nif $for_make_check; then\n mkdir -p install-deps-cache\n top_srcdir=$(pwd)\n export XDG_CACHE_HOME=$top_srcdir/install-deps-cache\n wip_wheelhouse=wheelhouse-wip\n #\n # preload python modules so that tox can run without network access\n #\n find . -name tox.ini | while read ini ; do\n preload_wheels_for_tox $ini\n done\n rm -rf $top_srcdir/install-deps-python3\n rm -rf $XDG_CACHE_HOME\n type git > /dev/null || (echo \"Dashboard uses git to pull dependencies.\" ; false)\nfi\n\nci_debug \"End install-deps.sh\" || true\n"},"file_length":{"kind":"number","value":21125,"string":"21,125"},"avg_line_length":{"kind":"number","value":35.80487804878049,"string":"35.804878"},"max_line_length":{"kind":"number","value":139,"string":"139"},"extension_type":{"kind":"string","value":"sh"}}}],"truncated":false,"partial":false},"paginationData":{"pageIndex":8,"numItemsPerPage":100,"numTotalItems":1634156,"offset":800,"length":100}},"jwt":"eyJhbGciOiJFZERTQSJ9.eyJyZWFkIjp0cnVlLCJwZXJtaXNzaW9ucyI6eyJyZXBvLmNvbnRlbnQucmVhZCI6dHJ1ZX0sImlhdCI6MTc1NjUzNDAyNiwic3ViIjoiL2RhdGFzZXRzL0FsZ29yaXRobWljUmVzZWFyY2hHcm91cC9hcnhpdl9jcGx1c3BsdXNfcmVzZWFyY2hfY29kZSIsImV4cCI6MTc1NjUzNzYyNiwiaXNzIjoiaHR0cHM6Ly9odWdnaW5nZmFjZS5jbyJ9.XLfg_uoFxA4s-pI6ECJEOE1GoiqgOu5AKieoY4NF7UtB9R74UOZu5YF4wmSbTo1E3ytrkx2DD7-xZ0rqja-LAA","displayUrls":true},"discussionsStats":{"closed":1,"open":1,"total":2},"fullWidth":true,"hasGatedAccess":true,"hasFullAccess":true,"isEmbedded":false,"savedQueries":{"community":[],"user":[]}}">
repo
stringlengths
1
152
file
stringlengths
15
205
code
stringlengths
0
41.6M
file_length
int64
0
41.6M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
90 values
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-09.html
<html> <head> <title>SL.P.10.R.21.SL062003-09</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>state in the leading firm </a> </body> </html>
171
16.2
64
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-10.html
<html> <head> <title>SL.P.10.R.21.SL062003-10</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>securities in the five years in firm </a> </body> </html>
182
17.3
75
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-11.html
<html> <head> <title>SL.P.10.R.21.SL062003-11</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>legal action will they arms and drug smugglers andaman sea in </a> </body> </html>
207
19.8
100
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-12.html
<html> <head> <title>SL.P.10.R.21.SL062003-12</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>nations to friendly relationship in the mouth </a> </body> </html>
191
18.2
84
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-13.html
<html> <head> <title>SL.P.10.R.21.SL062003-13</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>charming house in new delhi 31 august capital delhi in a house contenders leaders </a> </body> </html>
227
21.8
120
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-14.html
<html> <head> <title>SL.P.10.R.21.SL062003-14</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>world bank september world bank </a> </body> </html>
177
16.8
70
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-15.html
<html> <head> <title>SL.P.10.R.21.SL062003-15</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>summit conference site of the city centre in france </a> </body> </html>
197
18.8
90
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-16.html
<html> <head> <title>SL.P.10.R.21.SL062003-16</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>union human resources years in the information technology </a> </body> </html>
203
19.4
96
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-17.html
<html> <head> <title>SL.P.10.R.21.SL062003-17</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>the new chief minister in the people in </a> </body> </html>
185
17.6
78
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-18.html
<html> <head> <title>SL.P.10.R.21.SL062003-18</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>poll of the poll on reach of the rise in sunday </a> </body> </html>
193
18.4
86
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-19.html
<html> <head> <title>SL.P.10.R.21.SL062003-19</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>store in aaga fire the check began two in store at and </a> </body> </html>
200
19.1
93
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-20.html
<html> <head> <title>SL.P.10.R.21.SL062003-20</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>state of project in the </a> </body> </html>
169
16
62
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-21.html
<html> <head> <title>SL.P.10.R.21.SL062003-21</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>crime and his wife of the private company </a> </body> </html>
187
17.8
80
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-22.html
<html> <head> <title>SL.P.10.R.21.SL062003-22</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>indian pakistani harakato.n the answer give in central home </a> </body> </html>
205
19.6
98
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-23.html
<html> <head> <title>SL.P.10.R.21.SL062003-23</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>college in engineering at a postgraduate course for shubhaara.nbha and a postgraduate block open </a> </body> </html>
242
23.3
135
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-24.html
<html> <head> <title>SL.P.10.R.21.SL062003-24</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>clash in four dead at the </a> </body> </html>
171
16.2
64
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.21.SL062003-25.html
<html> <head> <title>SL.P.10.R.21.SL062003-25</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>kashmir indian cuisine in the chief at reform of for indian subcontinent in there </a> </body> </html>
227
21.8
120
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-01.html
<html> <head> <title>SL.P.10.R.22.SL062003-01</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>world trade officials in the nations to concessions give bangladesh </a> </body> </html>
213
20.4
106
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-02.html
<html> <head> <title>SL.P.10.R.22.SL062003-02</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>indonesia the last year in the </a> </body> </html>
176
16.7
69
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-03.html
<html> <head> <title>SL.P.10.R.22.SL062003-03</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>militants strategy american foreign minister </a> </body> </html>
190
18.1
83
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-04.html
<html> <head> <title>SL.P.10.R.22.SL062003-04</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>india and other world against conflict when horizon time in a record in more </a> </body> </html>
222
21.3
115
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-05.html
<html> <head> <title>SL.P.10.R.22.SL062003-05</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>agra of remains top samelana in the news are last year july in the </a> </body> </html>
212
20.3
105
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-06.html
<html> <head> <title>SL.P.10.R.22.SL062003-06</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>earthquake shivering uThI dharaa buildings vulnerable were they are the moment in the deluge </a> </body> </html>
238
22.9
131
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-07.html
<html> <head> <title>SL.P.10.R.22.SL062003-07</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>past year by raajakaaja walking the people to the home in if this year </a> </body> </html>
216
20.7
109
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-08.html
<html> <head> <title>SL.P.10.R.22.SL062003-08</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>2.1 iraakiyo.n the army of work in two weeks of the streets in the </a> </body> </html>
212
20.3
105
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-09.html
<html> <head> <title>SL.P.10.R.22.SL062003-09</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>state in the leading firm </a> </body> </html>
171
16.2
64
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-10.html
<html> <head> <title>SL.P.10.R.22.SL062003-10</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>securities in the five years </a> </body> </html>
174
16.5
67
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-11.html
<html> <head> <title>SL.P.10.R.22.SL062003-11</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>legal action of legal action will they arms and drug smugglers andaman sea in </a> </body> </html>
223
21.4
116
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-12.html
<html> <head> <title>SL.P.10.R.22.SL062003-12</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>nations to friendly relationship in the mouth </a> </body> </html>
191
18.2
84
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-13.html
<html> <head> <title>SL.P.10.R.22.SL062003-13</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>charming house in new delhi 31 august capital delhi in a house contenders leaders </a> </body> </html>
227
21.8
120
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-14.html
<html> <head> <title>SL.P.10.R.22.SL062003-14</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>world bank september world bank </a> </body> </html>
177
16.8
70
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-15.html
<html> <head> <title>SL.P.10.R.22.SL062003-15</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>summit conference site of violence two leading countries the organization city centre in france </a> </body> </html>
241
23.2
134
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-16.html
<html> <head> <title>SL.P.10.R.22.SL062003-16</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>years in the information technology </a> </body> </html>
181
17.2
74
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-17.html
<html> <head> <title>SL.P.10.R.22.SL062003-17</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>the new chief minister in the soon peace restoration of people in long valley </a> </body> </html>
223
21.4
116
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-18.html
<html> <head> <title>SL.P.10.R.22.SL062003-18</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>poll of the journey correct that poll on reach of the rise in sunday </a> </body> </html>
214
20.5
107
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-19.html
<html> <head> <title>SL.P.10.R.22.SL062003-19</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>store in aaga fire the check began two june in store in check and </a> </body> </html>
211
20.2
104
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-20.html
<html> <head> <title>SL.P.10.R.22.SL062003-20</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>state of project and forest ministry of the tiger for protection for project project </a> </body> </html>
230
22.1
123
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-21.html
<html> <head> <title>SL.P.10.R.22.SL062003-21</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>crime and his wife of the private company people by his home in murder </a> </body> </html>
216
20.7
109
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-22.html
<html> <head> <title>SL.P.10.R.22.SL062003-22</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>indian pakistani harakato.n the answer give in central home to terrorism locked in the </a> </body> </html>
232
22.3
125
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-23.html
<html> <head> <title>SL.P.10.R.22.SL062003-23</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>college in engineering at a postgraduate course for shubhaara.nbha and a postgraduate block open </a> </body> </html>
242
23.3
135
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-24.html
<html> <head> <title>SL.P.10.R.22.SL062003-24</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>clash in four dead at the </a> </body> </html>
171
16.2
64
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.22.SL062003-25.html
<html> <head> <title>SL.P.10.R.22.SL062003-25</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>kashmir indian cuisine in the chief at reform of for indian subcontinent in there </a> </body> </html>
227
21.8
120
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-01.html
<html> <head> <title>SL.P.10.R.23.SL062003-01</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>trade, business nations Bangladesh World Bank financial United_Nations hit bank proposal </a> </body> </html>
234
22.5
127
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-02.html
<html> <head> <title>SL.P.10.R.23.SL062003-02</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>bomb allegation explosion Bali(the island)/earring police attacks karachi ship, plane security </a> </body> </html>
240
23.1
133
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-03.html
<html> <head> <title>SL.P.10.R.23.SL062003-03</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>police Pakistan terrorism Osama Bin Laden year attacks India </a> </body> </html>
207
19.8
100
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-04.html
<html> <head> <title>SL.P.10.R.23.SL062003-04</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>thousand one two India Osama Bin Laden earthquake Osama </a> </body> </html>
202
19.3
95
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-05.html
<html> <head> <title>SL.P.10.R.23.SL062003-05</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>team India Vajpayee (India's prime minister) Pakistan government police people people gathering, function </a> </body> </html>
251
24.2
144
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-06.html
<html> <head> <title>SL.P.10.R.23.SL062003-06</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>people earthquake building India space Columbia police Kashmir team </a> </body> </html>
213
20.4
106
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-07.html
<html> <head> <title>SL.P.10.R.23.SL062003-07</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>Vajpayee (India's prime minister) year war government police Prime Minister India team </a> </body> </html>
232
22.3
125
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-08.html
<html> <head> <title>SL.P.10.R.23.SL062003-08</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>point army rate police two weapon one Saddam Hussain </a> </body> </html>
198
18.9
91
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-09.html
<html> <head> <title>SL.P.10.R.23.SL062003-09</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>point rate nations one two earthquake Arab/Billion thousand five </a> </body> </html>
210
20.1
103
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-10.html
<html> <head> <title>SL.P.10.R.23.SL062003-10</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>court company thousand fame one Enron two program share_market </a> </body> </html>
208
19.9
101
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-11.html
<html> <head> <title>SL.P.10.R.23.SL062003-11</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>election test, inspection commission test, exam, inspection missile World Bank ship, plane poll, election party </a> </body> </html>
257
24.8
150
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-12.html
<html> <head> <title>SL.P.10.R.23.SL062003-12</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>India atomic Pakistan North_Korea World Bank Korea north plane, aircraft </a> </body> </html>
218
20.9
111
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-13.html
<html> <head> <title>SL.P.10.R.23.SL062003-13</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>Singh (common Indian last name) BJP (Bhartiya Janata Party - a political party in India) victory prize, award festival party election Congress political party in India, US Congress Modi (name) </a> </body> </html>
338
32.9
231
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-14.html
<html> <head> <title>SL.P.10.R.23.SL062003-14</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>World Bank India bank destroyed meeting/summit financial currency minister both countries </a> </body> </html>
235
22.6
128
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-15.html
<html> <head> <title>SL.P.10.R.23.SL062003-15</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>gathering, function nation, country violence people police army gas festival Dollar </a> </body> </html>
229
22
122
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-16.html
<html> <head> <title>SL.P.10.R.23.SL062003-16</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>minister government Jammu & Kashmir BJP (Bhartiya Janata Party - a political party in India) India party Singh (common Indian last name) mobile World Bank </a> </body> </html>
300
29.1
193
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-17.html
<html> <head> <title>SL.P.10.R.23.SL062003-17</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>Kashmir Vajpayee (India's prime minister) Pakistan Jammu & Kashmir Congress political party in India, US Congress Sayeed (name) states India </a> </body> </html>
286
27.7
179
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-18.html
<html> <head> <title>SL.P.10.R.23.SL062003-18</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>ship space satellite China India flight Columbia ban water </a> </body> </html>
204
19.5
97
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-19.html
<html> <head> <title>SL.P.10.R.23.SL062003-19</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>army accident plane, aircraft rail fame one border share_market security </a> </body> </html>
218
20.9
111
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-20.html
<html> <head> <title>SL.P.10.R.23.SL062003-20</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>effort report number, count Me/In, Inside, within Tamil disease information, knowledge government Kashmir </a> </body> </html>
251
24.2
144
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-21.html
<html> <head> <title>SL.P.10.R.23.SL062003-21</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>police India talk use Kashmir more explosion two work </a> </body> </html>
199
19
92
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-22.html
<html> <head> <title>SL.P.10.R.23.SL062003-22</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>Pakistan police Vajpayee (India's prime minister) India government Prime Minister Qaeda ["Al-Qaeda"] cup European </a> </body> </html>
259
25
152
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-23.html
<html> <head> <title>SL.P.10.R.23.SL062003-23</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>Me/In, Inside, within President India ship nations space effort nineteen thousand </a> </body> </html>
227
21.8
120
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-24.html
<html> <head> <title>SL.P.10.R.23.SL062003-24</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>police accident ear poll, election nation, country Pakistan people people weapons </a> </body> </html>
227
21.8
120
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.23.SL062003-25.html
<html> <head> <title>SL.P.10.R.23.SL062003-25</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>both countries Jammu & Kashmir population, people both Kashmir Pakistan Sayeed (name) Vajpayee (India's prime minister) India </a> </body> </html>
271
26.2
164
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-01.html
<html> <head> <title>SL.P.10.R.24.SL062003-01</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>world countries is fact is that developed countries put pressure on that they should be </a> </body> </html>
233
22.4
126
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-02.html
<html> <head> <title>SL.P.10.R.24.SL062003-02</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>indonesian city of bali in in bomb blast accused india began to be averted </a> </body> </html>
220
21.1
113
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-03.html
<html> <head> <title>SL.P.10.R.24.SL062003-03</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>terrorist attack measures should be more effective policy american foreign minister everyone knows that indian parliament attack </a> </body> </html>
274
26.5
167
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-04.html
<html> <head> <title>SL.P.10.R.24.SL062003-04</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>india and rest of world for good and evil struggle because living </a> </body> </html>
211
20.2
104
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-05.html
<html> <head> <title>SL.P.10.R.24.SL062003-05</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>agra remains of agra summit in general pervez musharraf was to chair idea </a> </body> </html>
219
21
112
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-06.html
<html> <head> <title>SL.P.10.R.24.SL062003-06</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>gujarat earthquake tremble raised land unsafe buildings were earth </a> </body> </html>
212
20.3
105
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-07.html
<html> <head> <title>SL.P.10.R.24.SL062003-07</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>in past year in running affairs of vajpayee remain clear less to people </a> </body> </html>
217
20.8
110
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-08.html
<html> <head> <title>SL.P.10.R.24.SL062003-08</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>2.1 iraqi army 1 11:28 7.1 american forces around covered with offence to control he for iraqi army </a> </body> </html>
245
23.6
138
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-09.html
<html> <head> <title>SL.P.10.R.24.SL062003-09</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>UTC 16:35 4.1 in america indian companies to work not to be given to make proposal </a> </body> </html>
228
21.9
121
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-10.html
<html> <head> <title>SL.P.10.R.24.SL062003-10</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>securities scam in harshad mehta and three others to 5 @-@ 5 years </a> </body> </html>
212
20.3
105
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-11.html
<html> <head> <title>SL.P.10.R.24.SL062003-11</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>defense minister threat </a> </body> </html>
169
16
62
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-12.html
<html> <head> <title>SL.P.10.R.24.SL062003-12</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>india from neighbouring countries to maintain friendly relations in favour </a> </body> </html>
220
21.1
113
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-13.html
<html> <head> <title>SL.P.10.R.24.SL062003-13</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>manmohan not drums new delhi 31 august capital new delhi there was not @-@ revolution murdabad ' slogans and not </a> </body> </html>
258
24.9
151
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-14.html
<html> <head> <title>SL.P.10.R.24.SL062003-14</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>world bank president james by india ' s economic development appreciation visit yashwant sinha accepted invitation </a> </body> </html>
260
25.1
153
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-15.html
<html> <head> <title>SL.P.10.R.24.SL062003-15</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>g @-@ 8 summit violence june 2 as leading countries 8 summit all over continued </a> </body> </html>
225
21.6
118
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-16.html
<html> <head> <title>SL.P.10.R.24.SL062003-16</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>professional lack will not be allowed to be june 2 central human resources minister said </a> </body> </html>
234
22.5
127
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-17.html
<html> <head> <title>SL.P.10.R.24.SL062003-17</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>vajpayee sonia s visit to new zeal in kashmir june is atmosphere </a> </body> </html>
210
20.1
103
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-18.html
<html> <head> <title>SL.P.10.R.24.SL062003-18</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>poll of india journey of right way june 2 indian space kasturirangan will be sent </a> </body> </html>
227
21.8
120
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-19.html
<html> <head> <title>SL.P.10.R.24.SL062003-19</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>military in to take stock june 2 rajasthan border jaisalmer district in stock yesterday began </a> </body> </html>
239
23
132
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-20.html
<html> <head> <title>SL.P.10.R.24.SL062003-20</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>government project ' tiger ' successful project june 2 environment and forests of ministry </a> </body> </html>
236
22.7
129
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-21.html
<html> <head> <title>SL.P.10.R.24.SL062003-21</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>crime </a> </body> </html>
151
14.2
44
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-22.html
<html> <head> <title>SL.P.10.R.24.SL062003-22</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>india pakistan deeds to answer capable of </a> </body> </html>
187
17.8
80
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-23.html
<html> <head> <title>SL.P.10.R.24.SL062003-23</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>sun enrich nation to make plan kanchipuram june 19 </a> </body> </html>
196
18.7
89
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-24.html
<html> <head> <title>SL.P.10.R.24.SL062003-24</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>roadways bus and impact </a> </body> </html>
169
16
62
html
pyrouge
pyrouge-master/pyrouge/tests/data/systems/SL.P.10.R.24.SL062003-25.html
<html> <head> <title>SL.P.10.R.24.SL062003-25</title> </head> <body bgcolor="white"> <a name="1">[1]</a> <a href="#1" id=1>india and pakistan in kashmir can become medium @-@ mooftee srinagar june 20 </a> </body> </html>
222
21.3
115
html
null
cmaes-main/benchmark/runner.sh
#!/bin/sh set -e KUROBAKO=${KUROBAKO:-kurobako} DIR=$(cd $(dirname $0); pwd) REPEATS=${REPEATS:-5} BUDGET=${BUDGET:-300} SEED=${SEED:-1} DIM=${DIM:-2} SURROGATE_ROOT=${SURROGATE_ROOT:-$(dirname $DIR)/tmp/surrogate-models} WARM_START=${WARM_START:-0} usage() { cat <<EOF $(basename ${0}) is an entrypoint to run benchmarkers. Usage: $ $(basename ${0}) <problem> <json-path> Problem: rosenbrock : https://www.sfu.ca/~ssurjano/rosen.html six-hump-camel : https://www.sfu.ca/~ssurjano/camel6.html himmelblau : https://en.wikipedia.org/wiki/Himmelblau%27s_function ackley : https://www.sfu.ca/~ssurjano/ackley.html rastrigin : https://www.sfu.ca/~ssurjano/rastr.html toxic-lightgbm : https://github.com/c-bata/benchmark-warm-starting-cmaes Options: --help, -h print this Example: $ $(basename ${0}) rosenbrock ./tmp/kurobako.json $ cat ./tmp/kurobako.json | kurobako plot curve --errorbar -o ./tmp EOF } case "$1" in himmelblau) PROBLEM=$($KUROBAKO problem command python $DIR/problem_himmelblau.py) ;; rosenbrock) PROBLEM=$($KUROBAKO problem command python $DIR/problem_rosenbrock.py) ;; six-hump-camel) PROBLEM=$($KUROBAKO problem command python $DIR/problem_six_hump_camel.py) ;; ackley) PROBLEM=$($KUROBAKO problem sigopt --dim $DIM ackley) ;; rastrigin) # "kurobako problem sigopt --dim 8 rastrigin" only accepts 8-dim. PROBLEM=$($KUROBAKO problem command python $DIR/problem_rastrigin.py $DIM) ;; toxic-lightgbm) PROBLEM=$($KUROBAKO problem warm-starting \ $($KUROBAKO problem surrogate $SURROGATE_ROOT/wscmaes-toxic-source/) \ $($KUROBAKO problem surrogate $SURROGATE_ROOT/wscmaes-toxic-target/)) ;; help|--help|-h) usage exit 0 ;; *) echo "[Error] Invalid problem '${1}'" usage exit 1 ;; esac RANDOM_SOLVER=$($KUROBAKO solver random) CMAES_SOLVER=$($KUROBAKO solver --name 'cmaes' command -- python $DIR/optuna_solver.py cmaes) SEP_CMAES_SOLVER=$($KUROBAKO solver --name 'sep-cmaes' command -- python $DIR/optuna_solver.py sep-cmaes) IPOP_CMAES_SOLVER=$($KUROBAKO solver --name 'ipop-cmaes' command -- python $DIR/optuna_solver.py ipop-cmaes) IPOP_SEP_CMAES_SOLVER=$($KUROBAKO solver --name 'ipop-sep-cmaes' command -- python $DIR/optuna_solver.py ipop-sep-cmaes) PYCMA_SOLVER=$($KUROBAKO solver --name 'pycma' command -- python $DIR/optuna_solver.py pycma) WS_CMAES_SOLVER=$($KUROBAKO solver --name 'ws-cmaes' command -- python $DIR/optuna_solver.py ws-cmaes --warm-starting-trials $WARM_START) if [ $WARM_START -gt 0 ]; then $KUROBAKO studies \ --solvers $CMAES_SOLVER $WS_CMAES_SOLVER \ --problems $PROBLEM \ --seed $SEED --repeats $REPEATS --budget $BUDGET \ | $KUROBAKO run --parallelism 6 > $2 elif [ $BUDGET -le 500 ]; then $KUROBAKO studies \ --solvers $RANDOM_SOLVER $PYCMA_SOLVER $CMAES_SOLVER $SEP_CMAES_SOLVER \ --problems $PROBLEM \ --seed $SEED --repeats $REPEATS --budget $BUDGET \ | $KUROBAKO run --parallelism 4 > $2 else $KUROBAKO studies \ --solvers $RANDOM_SOLVER $CMAES_SOLVER $IPOP_SEP_CMAES_SOLVER $IPOP_CMAES_SOLVER $SEP_CMAES_SOLVER \ --problems $PROBLEM \ --seed $SEED --repeats $REPEATS --budget $BUDGET \ | $KUROBAKO run --parallelism 6 > $2 fi
3,429
34
137
sh
OLED
OLED-master/install-scripts/install.sh
#!/usr/bin/env bash # Link logger source logger.sh # Installing useful packages log_info "Installing various packages." sudo apt-get install bison re2c scons gcc libtbb-dev python2.7-dev lua5.2-dev wget # Check if external dependencies directory exists if [ ! -d ../external_dependencies ]; then # Create install directory log_info "External dependencies directory not found. Creating ..." mkdir ../external_dependencies cd ../external_dependencies # Move into the directory # Installing clingo log_info "Installing clingo 4.5.4" mkdir clingo cd clingo wget https://sourceforge.net/projects/potassco/files/clingo/4.5.4/clingo-4.5.4-source.tar.gz tar -zxf clingo-4.5.4-source.tar.gz rm clingo-4.5.4-source.tar.gz cd clingo-4.5.4-source cp ../../../install-scripts/solve-multi.patch.0 . cp ../../../install-scripts/include-math.patch.0 . patch -p0 < include-math.patch.0 patch -p0 < solve-multi.patch.0 scons configure --build-dir=release scons --build-dir=release sed -i 's/CPPPATH.*/CPPPATH = ['\''\/usr\/include\/python2.7'\'','\''\/usr\/include\/lua5.1'\'']/' build/release.py sed -i 's/WITH_PYTHON.*/WITH_PYTHON = ['\''python2.7'\'']/' build/release.py sed -i 's/WITH_LUA.*/WITH_LUA = ['\''lua5.2'\'']/' build/release.py scons --build-dir=release pyclingo scons --build-dir=release luaclingo cd ../.. # Installing LoMRF log_info "Installing LoMRF." wget https://github.com/anskarl/LoMRF/archive/develop.zip wget http://users.iit.demokritos.gr/~nkatz/oled/lpsolve55.tar.xz unzip develop tar xf lpsolve55.tar.xz cd LoMRF-develop sbt +publishLocal cd .. rm develop.zip rm lpsolve55.tar.xz cd .. # Installing Interval Tree log_info "Installing Interval Tree." mkdir lib cd lib wget http://users.iit.demokritos.gr/~nkatz/oled/IntervalTree.jar cd ../install-scripts # Done, go back into install-scripts directory else log_warn "External dependencies directory exists! Moving on." fi # Get version from 'version.sbt' version=`/bin/grep "^version[ ][ ]*in[ ][ ]*ThisBuild[ ][ ]*:=[ ][ ]*" "../version.sbt" | sed 's/version[ ][ ]*in[ ][ ]*ThisBuild[ ][ ]*:=[ ][ ]*\"\(.*\)\"/\1/g'` log_info "Building OLED ${version} ..." cd .. sbt assembly mv target/scala-2.11/oled-${version}.jar . log_info "Done building OLED. The jar is located at: `pwd`"
2,420
33.098592
162
sh
OLED
OLED-master/install-scripts/logger.sh
#!/usr/bin/env bash # Colours for logging messages red='\033[0;31m' green='\033[0;32m' orange='\033[0;33m' cyan='\033[0;36m' noColour='\033[0m' # param $1: info message log_info(){ echo -e "${cyan}"`date`" ${green}[ INFO ] $1 ${noColour}" } # param $1: warning message log_warn(){ echo -e "${cyan}"`date`" ${orange}[ WARN ] $1 ${noColour}" } # param $1: error message log_error(){ echo -e "${cyan}"`date`" ${red}[ ERROR ] $1 ${noColour}" } # param $1: error message (default is "An error occurred, exiting...") # param $2: error code (default is 1) exit_error(){ if [ $? -ne 0 ]; then log_error ${1:-"An error occured, exiting..."} exit ${2:-1} fi }
684
19.147059
70
sh
pythainlp-dev/docs/build_docs.sh
pythainlp-dev/docs/build_docs.sh
#!/bin/bash make html
22
6.666667
11
sh
pythainlp-dev/docs/clean_directory.sh
pythainlp-dev/docs/clean_directory.sh
#!/bin/bash # Delete all files and folders in the directory: /pythainlp/docs/<version> # $1 : FTP_USER # $2 : FTP_PASSWORD # $3 : FTP_HOST # $4 : Brnach name FTP_USER=$1 FTP_PASSWORD=$2 FTP_HOST=$3 BRANCH_NAME=$4 remove_all_files() { # DIRECTORY=$1 echo "Delete files in: $1" for f in `curl --list-only --ftp-create-dirs --ipv4 ftp://$FTP_USER:$FTP_PASSWORD@$FTP_HOST/$1/`; do if [[ -d "$f" ]] || [[ "$f" = _* ]] || [[ "$f" = .doctree ]] || [[ "$f" != *"."* ]]; then echo "--- deleting files in folder: $1/$f"; remove_all_files $1/$f else echo "Delete a file: $f" curl --ipv4 ftp://$FTP_USER:$FTP_PASSWORD@$FTP_HOST -Q "DELE $1/$f" fi done } remove_empty_folders() { echo "Delete empty folders in: $1" for f in `curl --list-only --ftp-create-dirs --ipv4 ftp://$FTP_USER:$FTP_PASSWORD@$FTP_HOST/$1/`; do if [[ -d "$f" ]] || [[ "$f" = _* ]] || [[ "$f" = fonts ]] || [[ "$f" = pythainlp ]] || [[ "$f" = .doctree ]] || [[ "$f" != *"."* ]]; then echo "--- Deleting folders in: $1/$f"; remove_empty_folders $1/$f curl --ipv4 ftp://$FTP_USER:$FTP_PASSWORD@$FTP_HOST -Q "RMD $1/$f" else echo "Delete a folder: $f" curl --ipv4 ftp://$FTP_USER:$FTP_PASSWORD@$FTP_HOST -Q "RMD $1/$f" fi done } echo "Start removing all files within: public_html/pythainlp/docs/$BRANCH_NAME/"; remove_all_files public_html/pythainlp/docs/$BRANCH_NAME; echo "Start removing all empty folders within: public_html/pythainlp/docs/$BRANCH_NAME/"; remove_empty_folders public_html/pythainlp/docs/$BRANCH_NAME; echo "Done.";
1,682
29.6
145
sh
null
ceph-main/do_cmake.sh
#!/usr/bin/env bash set -ex if [ -d .git ]; then git submodule update --init --recursive fi : ${BUILD_DIR:=build} : ${CEPH_GIT_DIR:=..} if [ -e $BUILD_DIR ]; then echo "'$BUILD_DIR' dir already exists; either rm -rf '$BUILD_DIR' and re-run, or set BUILD_DIR env var to a different directory name" exit 1 fi PYBUILD="3" ARGS="-GNinja" if [ -r /etc/os-release ]; then source /etc/os-release case "$ID" in fedora) if [ "$VERSION_ID" -ge "37" ] ; then PYBUILD="3.11" elif [ "$VERSION_ID" -ge "35" ] ; then PYBUILD="3.10" elif [ "$VERSION_ID" -ge "33" ] ; then PYBUILD="3.9" elif [ "$VERSION_ID" -ge "32" ] ; then PYBUILD="3.8" else PYBUILD="3.7" fi ;; rocky|rhel|centos) MAJOR_VER=$(echo "$VERSION_ID" | sed -e 's/\..*$//') if [ "$MAJOR_VER" -ge "9" ] ; then PYBUILD="3.9" elif [ "$MAJOR_VER" -ge "8" ] ; then PYBUILD="3.6" fi ;; opensuse*|suse|sles) PYBUILD="3" ARGS+=" -DWITH_RADOSGW_AMQP_ENDPOINT=OFF" ARGS+=" -DWITH_RADOSGW_KAFKA_ENDPOINT=OFF" ;; ubuntu) MAJOR_VER=$(echo "$VERSION_ID" | sed -e 's/\..*$//') if [ "$MAJOR_VER" -ge "22" ] ; then PYBUILD="3.10" fi ;; esac elif [ "$(uname)" == FreeBSD ] ; then PYBUILD="3" ARGS+=" -DWITH_RADOSGW_AMQP_ENDPOINT=OFF" ARGS+=" -DWITH_RADOSGW_KAFKA_ENDPOINT=OFF" else echo Unknown release exit 1 fi ARGS+=" -DWITH_PYTHON3=${PYBUILD}" if type ccache > /dev/null 2>&1 ; then echo "enabling ccache" ARGS+=" -DWITH_CCACHE=ON" fi cxx_compiler="g++" c_compiler="gcc" # 20 is used for more future-proof for i in $(seq 20 -1 11); do if type -t gcc-$i > /dev/null; then cxx_compiler="g++-$i" c_compiler="gcc-$i" break fi done ARGS+=" -DCMAKE_CXX_COMPILER=$cxx_compiler" ARGS+=" -DCMAKE_C_COMPILER=$c_compiler" mkdir $BUILD_DIR cd $BUILD_DIR if type cmake3 > /dev/null 2>&1 ; then CMAKE=cmake3 else CMAKE=cmake fi ${CMAKE} $ARGS "$@" $CEPH_GIT_DIR || exit 1 set +x # minimal config to find plugins cat <<EOF > ceph.conf [global] plugin dir = lib erasure code dir = lib EOF echo done. if [[ ! "$ARGS $@" =~ "-DCMAKE_BUILD_TYPE" ]]; then cat <<EOF **** WARNING: do_cmake.sh now creates debug builds by default. Performance may be severely affected. Please use -DCMAKE_BUILD_TYPE=RelWithDebInfo if a performance sensitive build is required. **** EOF fi
2,584
21.675439
137
sh
null
ceph-main/do_freebsd.sh
#!/bin/sh -xve export NPROC=`sysctl -n hw.ncpu` if [ x"$1"x = x"--deps"x ]; then sudo ./install-deps.sh fi if [ x"$CEPH_DEV"x != xx ]; then BUILDOPTS="$BUILDOPTS V=1 VERBOSE=1" CXX_FLAGS_DEBUG="-DCEPH_DEV" C_FLAGS_DEBUG="-DCEPH_DEV" fi # To test with a new release Clang, use with cmake: # -D CMAKE_CXX_COMPILER="/usr/local/bin/clang++-devel" \ # -D CMAKE_C_COMPILER="/usr/local/bin/clang-devel" \ COMPILE_FLAGS="-O0 -g" COMPILE_FLAGS="${COMPILE_FLAGS} -fuse-ld=/usr/local/bin/ld -Wno-unused-command-line-argument" CMAKE_CXX_FLAGS_DEBUG="$CXX_FLAGS_DEBUG $COMPILE_FLAGS" CMAKE_C_FLAGS_DEBUG="$C_FLAGS_DEBUG $COMPILE_FLAGS" # # On FreeBSD we need to preinstall all the tools that are required for building # dashboard, because versions fetched are not working on FreeBSD. [ -z "$BUILD_DIR" ] && BUILD_DIR=build echo Keeping the old build if [ -d ${BUILD_DIR}.old ]; then sudo mv ${BUILD_DIR}.old ${BUILD_DIR}.del sudo rm -rf ${BUILD_DIR}.del & fi if [ -d ${BUILD_DIR} ]; then sudo mv ${BUILD_DIR} ${BUILD_DIR}.old fi mkdir ${BUILD_DIR} ./do_cmake.sh "$*" \ -D WITH_CCACHE=ON \ -D CMAKE_BUILD_TYPE=Debug \ -D CMAKE_CXX_FLAGS_DEBUG="$CMAKE_CXX_FLAGS_DEBUG" \ -D CMAKE_C_FLAGS_DEBUG="$CMAKE_C_FLAGS_DEBUG" \ -D ENABLE_GIT_VERSION=OFF \ -D WITH_RADOSGW_AMQP_ENDPOINT=OFF \ -D WITH_RADOSGW_KAFKA_ENDPOINT=OFF \ -D WITH_SYSTEMD=OFF \ -D WITH_SYSTEM_BOOST=ON \ -D WITH_SYSTEM_NPM=ON \ -D WITH_LTTNG=OFF \ -D WITH_BABELTRACE=OFF \ -D WITH_SEASTAR=OFF \ -D WITH_FUSE=ON \ -D WITH_KRBD=OFF \ -D WITH_XFS=OFF \ -D WITH_KVS=ON \ -D CEPH_MAN_DIR=man \ -D WITH_LIBCEPHFS=OFF \ -D WITH_CEPHFS=OFF \ -D WITH_MGR=YES \ -D WITH_RDMA=OFF \ -D WITH_SPDK=OFF \ -D WITH_JAEGER=OFF \ 2>&1 | tee cmake.log echo -n "start building: "; date printenv cd ${BUILD_DIR} gmake -j$CPUS V=1 VERBOSE=1 gmake tests echo -n "start testing: "; date ; ctest -j $CPUS || RETEST=1 echo "Testing result, retest: = " $RETEST if [ $RETEST -eq 1 ]; then # make sure no leftovers are there killall ceph-osd || true killall ceph-mgr || true killall ceph-mds || true killall ceph-mon || true # clean up after testing rm -rf td/* /tmp/td src/test/td/* || true rm -rf /tmp/ceph-asok.* || true rm -rf /tmp/cores.* || true rm -rf /tmp/*.core || true ctest --output-on-failure --rerun-failed fi STATUS=$? # cleanup after the fact rm -rf /tmp/tmp* /tmp/foo /tmp/pip* /tmp/big* /tmp/pymp* $TMPDIR || true echo -n "Ended: "; date return $STATUS
2,522
23.980198
93
sh
null
ceph-main/install-deps.sh
#!/usr/bin/env bash # # Ceph distributed storage system # # Copyright (C) 2014, 2015 Red Hat <[email protected]> # # Author: Loic Dachary <[email protected]> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # set -e if ! [ "${_SOURCED_LIB_BUILD}" = 1 ]; then SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" CEPH_ROOT="${SCRIPT_DIR}" . "${CEPH_ROOT}/src/script/lib-build.sh" || exit 2 fi DIR=/tmp/install-deps.$$ trap "rm -fr $DIR" EXIT mkdir -p $DIR if test $(id -u) != 0 ; then SUDO=sudo fi # enable UTF-8 encoding for programs like pip that expect to # print more than just ascii chars export LC_ALL=C.UTF-8 ARCH=$(uname -m) function munge_ceph_spec_in { local with_seastar=$1 shift local with_zbd=$1 shift local for_make_check=$1 shift local OUTFILE=$1 sed -e 's/@//g' < ceph.spec.in > $OUTFILE # http://rpm.org/user_doc/conditional_builds.html if $with_seastar; then sed -i -e 's/%bcond_with seastar/%bcond_without seastar/g' $OUTFILE fi if $with_zbd; then sed -i -e 's/%bcond_with zbd/%bcond_without zbd/g' $OUTFILE fi if $for_make_check; then sed -i -e 's/%bcond_with make_check/%bcond_without make_check/g' $OUTFILE fi } function munge_debian_control { local version=$1 shift local control=$1 case "$version" in *squeeze*|*wheezy*) control="/tmp/control.$$" grep -v babeltrace debian/control > $control ;; esac echo $control } function ensure_decent_gcc_on_ubuntu { ci_debug "Start ensure_decent_gcc_on_ubuntu() in install-deps.sh" # point gcc to the one offered by g++-7 if the used one is not # new enough local old=$(gcc -dumpfullversion -dumpversion) local new=$1 local codename=$2 if dpkg --compare-versions $old ge ${new}.0; then return fi if [ ! -f /usr/bin/g++-${new} ]; then $SUDO tee /etc/apt/sources.list.d/ubuntu-toolchain-r.list <<EOF deb [lang=none] http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu $codename main deb [arch=amd64 lang=none] http://mirror.nullivex.com/ppa/ubuntu-toolchain-r-test $codename main EOF # import PPA's signing key into APT's keyring cat << ENDOFKEY | $SUDO apt-key add - -----BEGIN PGP PUBLIC KEY BLOCK----- Version: SKS 1.1.6 Comment: Hostname: keyserver.ubuntu.com mI0ESuBvRwEEAMi4cDba7xlKaaoXjO1n1HX8RKrkW+HEIl79nSOSJyvzysajs7zUow/OzCQp 9NswqrDmNuH1+lPTTRNAGtK8r2ouq2rnXT1mTl23dpgHZ9spseR73s4ZBGw/ag4bpU5dNUSt vfmHhIjVCuiSpNn7cyy1JSSvSs3N2mxteKjXLBf7ABEBAAG0GkxhdW5jaHBhZCBUb29sY2hh aW4gYnVpbGRziLYEEwECACAFAkrgb0cCGwMGCwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRAe k3eiup7yfzGKA/4xzUqNACSlB+k+DxFFHqkwKa/ziFiAlkLQyyhm+iqz80htRZr7Ls/ZRYZl 0aSU56/hLe0V+TviJ1s8qdN2lamkKdXIAFfavA04nOnTzyIBJ82EAUT3Nh45skMxo4z4iZMN msyaQpNl/m/lNtOLhR64v5ZybofB2EWkMxUzX8D/FQ== =LcUQ -----END PGP PUBLIC KEY BLOCK----- ENDOFKEY $SUDO env DEBIAN_FRONTEND=noninteractive apt-get update -y || true $SUDO env DEBIAN_FRONTEND=noninteractive apt-get install -y g++-${new} fi } function ensure_python3_sphinx_on_ubuntu { ci_debug "Running ensure_python3_sphinx_on_ubuntu() in install-deps.sh" local sphinx_command=/usr/bin/sphinx-build # python-sphinx points $sphinx_command to # ../share/sphinx/scripts/python2/sphinx-build when it's installed # let's "correct" this if test -e $sphinx_command && head -n1 $sphinx_command | grep -q python$; then $SUDO env DEBIAN_FRONTEND=noninteractive apt-get -y remove python-sphinx fi } function install_pkg_on_ubuntu { ci_debug "Running install_pkg_on_ubuntu() in install-deps.sh" local project=$1 shift local sha1=$1 shift local codename=$1 shift local force=$1 shift local pkgs=$@ local missing_pkgs if [ $force = "force" ]; then missing_pkgs="$@" else for pkg in $pkgs; do if ! apt -qq list $pkg 2>/dev/null | grep -q installed; then missing_pkgs+=" $pkg" ci_debug "missing_pkgs=$missing_pkgs" fi done fi if test -n "$missing_pkgs"; then local shaman_url="https://shaman.ceph.com/api/repos/${project}/master/${sha1}/ubuntu/${codename}/repo" in_jenkins && echo -n "CI_DEBUG: Downloading $shaman_url ... " $SUDO curl --silent --fail --write-out "%{http_code}" --location $shaman_url --output /etc/apt/sources.list.d/$project.list $SUDO env DEBIAN_FRONTEND=noninteractive apt-get update -y -o Acquire::Languages=none -o Acquire::Translation=none || true $SUDO env DEBIAN_FRONTEND=noninteractive apt-get install --allow-unauthenticated -y $missing_pkgs fi } function install_boost_on_ubuntu { ci_debug "Running install_boost_on_ubuntu() in install-deps.sh" local ver=1.82 local installed_ver=$(apt -qq list --installed ceph-libboost*-dev 2>/dev/null | grep -e 'libboost[0-9].[0-9]\+-dev' | cut -d' ' -f2 | cut -d'.' -f1,2) if test -n "$installed_ver"; then if echo "$installed_ver" | grep -q "^$ver"; then return else $SUDO env DEBIAN_FRONTEND=noninteractive apt-get -y remove "ceph-libboost.*${installed_ver}.*" $SUDO rm -f /etc/apt/sources.list.d/ceph-libboost${installed_ver}.list fi fi local codename=$1 local project=libboost local sha1=2804368f5b807ba8334b0ccfeb8af191edeb996f install_pkg_on_ubuntu \ $project \ $sha1 \ $codename \ check \ ceph-libboost-atomic$ver-dev \ ceph-libboost-chrono$ver-dev \ ceph-libboost-container$ver-dev \ ceph-libboost-context$ver-dev \ ceph-libboost-coroutine$ver-dev \ ceph-libboost-date-time$ver-dev \ ceph-libboost-filesystem$ver-dev \ ceph-libboost-iostreams$ver-dev \ ceph-libboost-program-options$ver-dev \ ceph-libboost-python$ver-dev \ ceph-libboost-random$ver-dev \ ceph-libboost-regex$ver-dev \ ceph-libboost-system$ver-dev \ ceph-libboost-test$ver-dev \ ceph-libboost-thread$ver-dev \ ceph-libboost-timer$ver-dev } function install_libzbd_on_ubuntu { ci_debug "Running install_libzbd_on_ubuntu() in install-deps.sh" local codename=$1 local project=libzbd local sha1=1fadde94b08fab574b17637c2bebd2b1e7f9127b install_pkg_on_ubuntu \ $project \ $sha1 \ $codename \ check \ libzbd-dev } motr_pkgs_url='https://github.com/Seagate/cortx-motr/releases/download/2.0.0-rgw' function install_cortx_motr_on_ubuntu { if dpkg -l cortx-motr-dev &> /dev/null; then return fi if [ "$(lsb_release -sc)" = "jammy" ]; then install_pkg_on_ubuntu \ cortx-motr \ 39f89fa1c6945040433a913f2687c4b4e6cbeb3f \ jammy \ check \ cortx-motr \ cortx-motr-dev else local deb_arch=$(dpkg --print-architecture) local motr_pkg="cortx-motr_2.0.0.git3252d623_$deb_arch.deb" local motr_dev_pkg="cortx-motr-dev_2.0.0.git3252d623_$deb_arch.deb" $SUDO curl -sL -o/var/cache/apt/archives/$motr_pkg $motr_pkgs_url/$motr_pkg $SUDO curl -sL -o/var/cache/apt/archives/$motr_dev_pkg $motr_pkgs_url/$motr_dev_pkg # For some reason libfabric pkg is not available in arm64 version # of Ubuntu 20.04 (Focal Fossa), so we borrow it from more recent # versions for now. if [[ "$deb_arch" == 'arm64' ]]; then local lf_pkg='libfabric1_1.11.0-2_arm64.deb' $SUDO curl -sL -o/var/cache/apt/archives/$lf_pkg http://ports.ubuntu.com/pool/universe/libf/libfabric/$lf_pkg $SUDO apt-get install -y /var/cache/apt/archives/$lf_pkg fi $SUDO apt-get install -y /var/cache/apt/archives/{$motr_pkg,$motr_dev_pkg} $SUDO apt-get install -y libisal-dev fi } function version_lt { test $1 != $(echo -e "$1\n$2" | sort -rV | head -n 1) } function ensure_decent_gcc_on_rh { local old=$(gcc -dumpversion) local dts_ver=$1 if version_lt $old $dts_ver; then if test -t 1; then # interactive shell cat <<EOF Your GCC is too old. Please run following command to add DTS to your environment: scl enable gcc-toolset-$dts_ver bash Or add the following line to the end of ~/.bashrc and run "source ~/.bashrc" to add it permanently: source scl_source enable gcc-toolset-$dts_ver EOF else # non-interactive shell source /opt/rh/gcc-toolset-$dts_ver/enable fi fi } function populate_wheelhouse() { ci_debug "Running populate_wheelhouse() in install-deps.sh" local install=$1 shift # although pip comes with virtualenv, having a recent version # of pip matters when it comes to using wheel packages PIP_OPTS="--timeout 300 --exists-action i" pip $PIP_OPTS $install \ 'setuptools >= 0.8' 'pip >= 21.0' 'wheel >= 0.24' 'tox >= 2.9.1' || return 1 if test $# != 0 ; then # '--use-feature=fast-deps --use-deprecated=legacy-resolver' added per # https://github.com/pypa/pip/issues/9818 These should be able to be # removed at some point in the future. pip --use-feature=fast-deps --use-deprecated=legacy-resolver $PIP_OPTS $install $@ || return 1 fi } function activate_virtualenv() { ci_debug "Running activate_virtualenv() in install-deps.sh" local top_srcdir=$1 local env_dir=$top_srcdir/install-deps-python3 if ! test -d $env_dir ; then python3 -m venv ${env_dir} . $env_dir/bin/activate if ! populate_wheelhouse install ; then rm -rf $env_dir return 1 fi fi . $env_dir/bin/activate } function preload_wheels_for_tox() { ci_debug "Running preload_wheels_for_tox() in install-deps.sh" local ini=$1 shift pushd . > /dev/null cd $(dirname $ini) local require_files=$(ls *requirements*.txt 2>/dev/null) || true local constraint_files=$(ls *constraints*.txt 2>/dev/null) || true local require=$(echo -n "$require_files" | sed -e 's/^/-r /') local constraint=$(echo -n "$constraint_files" | sed -e 's/^/-c /') local md5=wheelhouse/md5 if test "$require"; then if ! test -f $md5 || ! md5sum -c $md5 > /dev/null; then rm -rf wheelhouse fi fi if test "$require" && ! test -d wheelhouse ; then type python3 > /dev/null 2>&1 || continue activate_virtualenv $top_srcdir || exit 1 python3 -m pip install --upgrade pip populate_wheelhouse "wheel -w $wip_wheelhouse" $require $constraint || exit 1 mv $wip_wheelhouse wheelhouse md5sum $require_files $constraint_files > $md5 fi popd > /dev/null } for_make_check=false if tty -s; then # interactive for_make_check=true elif [ $FOR_MAKE_CHECK ]; then for_make_check=true else for_make_check=false fi if [ x$(uname)x = xFreeBSDx ]; then if [ "$INSTALL_EXTRA_PACKAGES" ]; then echo "Installing extra packages not supported on FreeBSD" >&2 exit 1 fi $SUDO pkg install -yq \ devel/babeltrace \ devel/binutils \ devel/git \ devel/gperf \ devel/gmake \ devel/cmake \ devel/nasm \ devel/boost-all \ devel/boost-python-libs \ devel/valgrind \ devel/pkgconf \ devel/libedit \ devel/libtool \ devel/google-perftools \ lang/cython \ net/openldap24-client \ archivers/snappy \ archivers/liblz4 \ ftp/curl \ misc/e2fsprogs-libuuid \ misc/getopt \ net/socat \ textproc/expat2 \ textproc/gsed \ lang/gawk \ textproc/libxml2 \ textproc/xmlstarlet \ textproc/jq \ textproc/py-sphinx \ emulators/fuse \ java/junit \ lang/python36 \ devel/py-pip \ devel/py-flake8 \ devel/py-tox \ devel/py-argparse \ devel/py-nose \ devel/py-prettytable \ devel/py-yaml \ www/py-routes \ www/py-flask \ www/node \ www/npm \ www/fcgi \ security/nss \ security/krb5 \ security/oath-toolkit \ sysutils/flock \ sysutils/fusefs-libs \ # Now use pip to install some extra python modules pip install pecan exit else [ $WITH_SEASTAR ] && with_seastar=true || with_seastar=false [ $WITH_ZBD ] && with_zbd=true || with_zbd=false [ $WITH_PMEM ] && with_pmem=true || with_pmem=false [ $WITH_RADOSGW_MOTR ] && with_rgw_motr=true || with_rgw_motr=false source /etc/os-release case "$ID" in debian|ubuntu|devuan|elementary|softiron) echo "Using apt-get to install dependencies" if [ "$INSTALL_EXTRA_PACKAGES" ]; then if ! $SUDO apt-get install -y $INSTALL_EXTRA_PACKAGES ; then # try again. ported over from run-make.sh (orignally e278295) # In the case that apt-get is interrupted, like when a jenkins # job is cancelled, the package manager will be in an inconsistent # state. Run the command again after `dpkg --configure -a` to # bring package manager back into a clean state. $SUDO dpkg --configure -a ci_debug "trying to install $INSTALL_EXTRA_PACKAGES again" $SUDO apt-get install -y $INSTALL_EXTRA_PACKAGES fi fi $SUDO apt-get install -y devscripts equivs $SUDO apt-get install -y dpkg-dev ensure_python3_sphinx_on_ubuntu case "$VERSION" in *Bionic*) ensure_decent_gcc_on_ubuntu 9 bionic [ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu bionic $with_zbd && install_libzbd_on_ubuntu bionic ;; *Focal*) ensure_decent_gcc_on_ubuntu 11 focal [ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu focal $with_zbd && install_libzbd_on_ubuntu focal ;; *Jammy*) [ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu jammy $SUDO apt-get install -y gcc ;; *) $SUDO apt-get install -y gcc ;; esac if ! test -r debian/control ; then echo debian/control is not a readable file exit 1 fi touch $DIR/status ci_debug "Running munge_debian_control() in install-deps.sh" backports="" control=$(munge_debian_control "$VERSION" "debian/control") case "$VERSION" in *squeeze*|*wheezy*) backports="-t $codename-backports" ;; esac # make a metapackage that expresses the build dependencies, # install it, rm the .deb; then uninstall the package as its # work is done build_profiles="" if $for_make_check; then build_profiles+=",pkg.ceph.check" fi if $with_seastar; then build_profiles+=",pkg.ceph.crimson" fi if $with_pmem; then build_profiles+=",pkg.ceph.pmdk" fi ci_debug "for_make_check=$for_make_check" ci_debug "with_seastar=$with_seastar" ci_debug "with_jaeger=$with_jaeger" ci_debug "build_profiles=$build_profiles" ci_debug "Now running 'mk-build-deps' and installing ceph-build-deps package" $SUDO env DEBIAN_FRONTEND=noninteractive mk-build-deps \ --build-profiles "${build_profiles#,}" \ --install --remove \ --tool="apt-get -y --no-install-recommends $backports" $control || exit 1 ci_debug "Removing ceph-build-deps" $SUDO env DEBIAN_FRONTEND=noninteractive apt-get -y remove ceph-build-deps if [ "$control" != "debian/control" ] ; then rm $control; fi # for rgw motr backend build checks if $with_rgw_motr; then install_cortx_motr_on_ubuntu fi ;; rocky|centos|fedora|rhel|ol|virtuozzo) builddepcmd="dnf -y builddep --allowerasing" echo "Using dnf to install dependencies" case "$ID" in fedora) $SUDO dnf install -y dnf-utils ;; rocky|centos|rhel|ol|virtuozzo) MAJOR_VERSION="$(echo $VERSION_ID | cut -d. -f1)" $SUDO dnf install -y dnf-utils selinux-policy-targeted rpm --quiet --query epel-release || \ $SUDO dnf -y install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-$MAJOR_VERSION.noarch.rpm $SUDO rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$MAJOR_VERSION $SUDO rm -f /etc/yum.repos.d/dl.fedoraproject.org* if test $ID = centos -a $MAJOR_VERSION = 8 ; then # Enable 'powertools' or 'PowerTools' repo $SUDO dnf config-manager --set-enabled $(dnf repolist --all 2>/dev/null|gawk 'tolower($0) ~ /^powertools\s/{print $1}') dts_ver=11 # before EPEL8 and PowerTools provide all dependencies, we use sepia for the dependencies $SUDO dnf config-manager --add-repo http://apt-mirror.front.sepia.ceph.com/lab-extras/8/ $SUDO dnf config-manager --setopt=apt-mirror.front.sepia.ceph.com_lab-extras_8_.gpgcheck=0 --save $SUDO dnf -y module enable javapackages-tools elif test $ID = rhel -a $MAJOR_VERSION = 8 ; then dts_ver=11 $SUDO dnf config-manager --set-enabled "codeready-builder-for-rhel-8-${ARCH}-rpms" $SUDO dnf config-manager --add-repo http://apt-mirror.front.sepia.ceph.com/lab-extras/8/ $SUDO dnf config-manager --setopt=apt-mirror.front.sepia.ceph.com_lab-extras_8_.gpgcheck=0 --save $SUDO dnf -y module enable javapackages-tools fi ;; esac if [ "$INSTALL_EXTRA_PACKAGES" ]; then $SUDO dnf install -y $INSTALL_EXTRA_PACKAGES fi munge_ceph_spec_in $with_seastar $with_zbd $for_make_check $DIR/ceph.spec # for python3_pkgversion macro defined by python-srpm-macros, which is required by python3-devel $SUDO dnf install -y python3-devel $SUDO $builddepcmd $DIR/ceph.spec 2>&1 | tee $DIR/yum-builddep.out [ ${PIPESTATUS[0]} -ne 0 ] && exit 1 if [ -n "$dts_ver" ]; then ensure_decent_gcc_on_rh $dts_ver fi IGNORE_YUM_BUILDEP_ERRORS="ValueError: SELinux policy is not managed or store cannot be accessed." sed "/$IGNORE_YUM_BUILDEP_ERRORS/d" $DIR/yum-builddep.out | grep -i "error:" && exit 1 # for rgw motr backend build checks if ! rpm --quiet -q cortx-motr-devel && { [[ $FOR_MAKE_CHECK ]] || $with_rgw_motr; }; then $SUDO dnf install -y \ "$motr_pkgs_url/isa-l-2.30.0-1.el7.${ARCH}.rpm" \ "$motr_pkgs_url/cortx-motr-2.0.0-1_git3252d623_any.el8.${ARCH}.rpm" \ "$motr_pkgs_url/cortx-motr-devel-2.0.0-1_git3252d623_any.el8.${ARCH}.rpm" fi ;; opensuse*|suse|sles) echo "Using zypper to install dependencies" zypp_install="zypper --gpg-auto-import-keys --non-interactive install --no-recommends" $SUDO $zypp_install systemd-rpm-macros rpm-build || exit 1 if [ "$INSTALL_EXTRA_PACKAGES" ]; then $SUDO $zypp_install $INSTALL_EXTRA_PACKAGES fi munge_ceph_spec_in $with_seastar false $for_make_check $DIR/ceph.spec $SUDO $zypp_install $(rpmspec -q --buildrequires $DIR/ceph.spec) || exit 1 ;; *) echo "$ID is unknown, dependencies will have to be installed manually." exit 1 ;; esac fi # use pip cache if possible but do not store it outside of the source # tree # see https://pip.pypa.io/en/stable/reference/pip_install.html#caching if $for_make_check; then mkdir -p install-deps-cache top_srcdir=$(pwd) export XDG_CACHE_HOME=$top_srcdir/install-deps-cache wip_wheelhouse=wheelhouse-wip # # preload python modules so that tox can run without network access # find . -name tox.ini | while read ini ; do preload_wheels_for_tox $ini done rm -rf $top_srcdir/install-deps-python3 rm -rf $XDG_CACHE_HOME type git > /dev/null || (echo "Dashboard uses git to pull dependencies." ; false) fi ci_debug "End install-deps.sh" || true
21,125
35.804878
139
sh