{ // 获取包含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"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":427,"cells":{"repo_name":{"kind":"string","value":"ministryofjustice/apvs-internal-web"},"path":{"kind":"string","value":"test/unit/services/domain/test-claim-deduction.js"},"size":{"kind":"string","value":"1422"},"content":{"kind":"string","value":"const ClaimDeduction = require('../../../../app/services/domain/claim-deduction')\nconst ValidationError = require('../../../../app/services/errors/validation-error')\nconst expect = require('chai').expect\nconst deductionTypeEnum = require('../../../../app/constants/deduction-type-enum')\nlet claimDeduction\n\ndescribe('services/domain/claim-deduction', function () {\n const VALID_DEDUCTION_TYPE = deductionTypeEnum.HC3_DEDUCTION\n const VALID_AMOUNT = '10'\n\n it('should construct a domain object given valid input', function () {\n claimDeduction = new ClaimDeduction(VALID_DEDUCTION_TYPE, VALID_AMOUNT)\n expect(claimDeduction.deductionType).to.equal(VALID_DEDUCTION_TYPE)\n expect(claimDeduction.amount).to.equal(VALID_AMOUNT)\n })\n\n it('should return isRequired error for decision if deductionType is empty', function () {\n try {\n claimDeduction = new ClaimDeduction('', VALID_AMOUNT)\n } catch (e) {\n expect(e).to.be.instanceof(ValidationError)\n expect(e.validationErrors.deductionType[0]).to.equal('A deduction type is required')\n }\n })\n\n it('should return isRequired error for decision if amount is empty or zero', function () {\n try {\n claimDeduction = new ClaimDeduction(VALID_DEDUCTION_TYPE, '')\n } catch (e) {\n expect(e).to.be.instanceof(ValidationError)\n expect(e.validationErrors.deductionAmount[0]).to.equal('A deduction amount is required')\n }\n })\n})\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":428,"cells":{"repo_name":{"kind":"string","value":"kamalmahmudi/sia"},"path":{"kind":"string","value":"src/main/java/id/ac/itb/model/PengaturanSemester.java"},"size":{"kind":"string","value":"9240"},"content":{"kind":"string","value":"/*\r\n * To change this license header, choose License Headers in Project Properties.\r\n * To change this template file, choose Tools | Templates\r\n * and open the template in the editor.\r\n */\r\npackage id.ac.itb.model;\r\n\r\nimport com.fasterxml.jackson.annotation.JsonIgnore;\r\nimport java.io.Serializable;\r\nimport java.util.Date;\r\nimport javax.persistence.Basic;\r\nimport javax.persistence.Column;\r\nimport javax.persistence.Entity;\r\nimport javax.persistence.GeneratedValue;\r\nimport javax.persistence.GenerationType;\r\nimport javax.persistence.Id;\r\nimport javax.persistence.NamedQueries;\r\nimport javax.persistence.NamedQuery;\r\nimport javax.persistence.Table;\r\nimport javax.persistence.Temporal;\r\nimport javax.persistence.TemporalType;\r\nimport javax.validation.constraints.NotNull;\r\nimport javax.xml.bind.annotation.XmlRootElement;\r\n\r\n/**\r\n *\r\n * @author billysusanto\r\n */\r\n@Entity\r\n@Table(name = \"pengaturan_semester\")\r\n@XmlRootElement\r\n@NamedQueries({\r\n @NamedQuery(name = \"PengaturanSemester.findAll\", query = \"SELECT p FROM PengaturanSemester p\"),\r\n @NamedQuery(name = \"PengaturanSemester.findByIdSemester\", query = \"SELECT p FROM PengaturanSemester p WHERE p.idSemester = :idSemester\"),\r\n @NamedQuery(name = \"PengaturanSemester.findByTglAwalBukaKelas\", query = \"SELECT p FROM PengaturanSemester p WHERE p.tglAwalBukaKelas = :tglAwalBukaKelas\"),\r\n @NamedQuery(name = \"PengaturanSemester.findByTglAkhirBukaKelas\", query = \"SELECT p FROM PengaturanSemester p WHERE p.tglAkhirBukaKelas = :tglAkhirBukaKelas\"),\r\n @NamedQuery(name = \"PengaturanSemester.findByTglAwalFrs\", query = \"SELECT p FROM PengaturanSemester p WHERE p.tglAwalFrs = :tglAwalFrs\"),\r\n @NamedQuery(name = \"PengaturanSemester.findByTglAkhirFrs\", query = \"SELECT p FROM PengaturanSemester p WHERE p.tglAkhirFrs = :tglAkhirFrs\"),\r\n @NamedQuery(name = \"PengaturanSemester.findByTglAwalPrs\", query = \"SELECT p FROM PengaturanSemester p WHERE p.tglAwalPrs = :tglAwalPrs\"),\r\n @NamedQuery(name = \"PengaturanSemester.findByTglAkhirPrs\", query = \"SELECT p FROM PengaturanSemester p WHERE p.tglAkhirPrs = :tglAkhirPrs\"),\r\n @NamedQuery(name = \"PengaturanSemester.findByTglAwalInputNilai\", query = \"SELECT p FROM PengaturanSemester p WHERE p.tglAwalInputNilai = :tglAwalInputNilai\"),\r\n @NamedQuery(name = \"PengaturanSemester.findByTglAkhirInputNilai\", query = \"SELECT p FROM PengaturanSemester p WHERE p.tglAkhirInputNilai = :tglAkhirInputNilai\"),\r\n @NamedQuery(name = \"PengaturanSemester.findByCreatedBy\", query = \"SELECT p FROM PengaturanSemester p WHERE p.createdBy = :createdBy\"),\r\n @NamedQuery(name = \"PengaturanSemester.findByCreatedAt\", query = \"SELECT p FROM PengaturanSemester p WHERE p.createdAt = :createdAt\"),\r\n @NamedQuery(name = \"PengaturanSemester.findByUpdatedBy\", query = \"SELECT p FROM PengaturanSemester p WHERE p.updatedBy = :updatedBy\"),\r\n @NamedQuery(name = \"PengaturanSemester.findByUpdatedAt\", query = \"SELECT p FROM PengaturanSemester p WHERE p.updatedAt = :updatedAt\")})\r\npublic class PengaturanSemester extends AbstractModel implements Serializable {\r\n private static final long serialVersionUID = 1L;\r\n @Id\r\n @GeneratedValue(strategy = GenerationType.IDENTITY)\r\n @Basic(optional = false)\r\n @Column(name = \"id_semester\")\r\n private Integer idSemester;\r\n @Basic(optional = false)\r\n @NotNull\r\n @Column(name = \"tgl_awal_buka_kelas\")\r\n @Temporal(TemporalType.DATE)\r\n private Date tglAwalBukaKelas;\r\n @Basic(optional = false)\r\n @NotNull\r\n @Column(name = \"tgl_akhir_buka_kelas\")\r\n @Temporal(TemporalType.DATE)\r\n private Date tglAkhirBukaKelas;\r\n @Basic(optional = false)\r\n @NotNull\r\n @Column(name = \"tgl_awal_frs\")\r\n @Temporal(TemporalType.DATE)\r\n private Date tglAwalFrs;\r\n @Basic(optional = false)\r\n @NotNull\r\n @Column(name = \"tgl_akhir_frs\")\r\n @Temporal(TemporalType.DATE)\r\n private Date tglAkhirFrs;\r\n @Basic(optional = false)\r\n @NotNull\r\n @Column(name = \"tgl_awal_prs\")\r\n @Temporal(TemporalType.DATE)\r\n private Date tglAwalPrs;\r\n @Basic(optional = false)\r\n @NotNull\r\n @Column(name = \"tgl_akhir_prs\")\r\n @Temporal(TemporalType.DATE)\r\n private Date tglAkhirPrs;\r\n @Basic(optional = false)\r\n @NotNull\r\n @Column(name = \"tgl_awal_input_nilai\")\r\n @Temporal(TemporalType.DATE)\r\n private Date tglAwalInputNilai;\r\n @Basic(optional = false)\r\n @NotNull\r\n @Column(name = \"tgl_akhir_input_nilai\")\r\n @Temporal(TemporalType.DATE)\r\n private Date tglAkhirInputNilai;\r\n @Basic(optional = false)\r\n @NotNull\r\n @Column(name = \"created_by\")\r\n private int createdBy;\r\n @Basic(optional = false)\r\n @NotNull\r\n @Column(name = \"created_at\")\r\n @Temporal(TemporalType.DATE)\r\n private Date createdAt;\r\n @Column(name = \"updated_by\")\r\n private Integer updatedBy;\r\n @Column(name = \"updated_at\")\r\n @Temporal(TemporalType.DATE)\r\n private Date updatedAt;\r\n\r\n public PengaturanSemester() {\r\n }\r\n\r\n public PengaturanSemester(Integer idSemester) {\r\n this.idSemester = idSemester;\r\n }\r\n\r\n public PengaturanSemester(Integer idSemester, Date tglAwalBukaKelas, Date tglAkhirBukaKelas, Date tglAwalFrs, Date tglAkhirFrs, Date tglAwalPrs, Date tglAkhirPrs, Date tglAwalInputNilai, Date tglAkhirInputNilai, int createdBy, Date createdAt) {\r\n this.idSemester = idSemester;\r\n this.tglAwalBukaKelas = tglAwalBukaKelas;\r\n this.tglAkhirBukaKelas = tglAkhirBukaKelas;\r\n this.tglAwalFrs = tglAwalFrs;\r\n this.tglAkhirFrs = tglAkhirFrs;\r\n this.tglAwalPrs = tglAwalPrs;\r\n this.tglAkhirPrs = tglAkhirPrs;\r\n this.tglAwalInputNilai = tglAwalInputNilai;\r\n this.tglAkhirInputNilai = tglAkhirInputNilai;\r\n this.createdBy = createdBy;\r\n this.createdAt = createdAt;\r\n }\r\n\r\n public Integer getIdSemester() {\r\n return idSemester;\r\n }\r\n\r\n public void setIdSemester(Integer idSemester) {\r\n this.idSemester = idSemester;\r\n }\r\n\r\n public Date getTglAwalBukaKelas() {\r\n return tglAwalBukaKelas;\r\n }\r\n\r\n public void setTglAwalBukaKelas(Date tglAwalBukaKelas) {\r\n this.tglAwalBukaKelas = tglAwalBukaKelas;\r\n }\r\n\r\n public Date getTglAkhirBukaKelas() {\r\n return tglAkhirBukaKelas;\r\n }\r\n\r\n public void setTglAkhirBukaKelas(Date tglAkhirBukaKelas) {\r\n this.tglAkhirBukaKelas = tglAkhirBukaKelas;\r\n }\r\n\r\n public Date getTglAwalFrs() {\r\n return tglAwalFrs;\r\n }\r\n\r\n public void setTglAwalFrs(Date tglAwalFrs) {\r\n this.tglAwalFrs = tglAwalFrs;\r\n }\r\n\r\n public Date getTglAkhirFrs() {\r\n return tglAkhirFrs;\r\n }\r\n\r\n public void setTglAkhirFrs(Date tglAkhirFrs) {\r\n this.tglAkhirFrs = tglAkhirFrs;\r\n }\r\n\r\n public Date getTglAwalPrs() {\r\n return tglAwalPrs;\r\n }\r\n\r\n public void setTglAwalPrs(Date tglAwalPrs) {\r\n this.tglAwalPrs = tglAwalPrs;\r\n }\r\n\r\n public Date getTglAkhirPrs() {\r\n return tglAkhirPrs;\r\n }\r\n\r\n public void setTglAkhirPrs(Date tglAkhirPrs) {\r\n this.tglAkhirPrs = tglAkhirPrs;\r\n }\r\n\r\n public Date getTglAwalInputNilai() {\r\n return tglAwalInputNilai;\r\n }\r\n\r\n public void setTglAwalInputNilai(Date tglAwalInputNilai) {\r\n this.tglAwalInputNilai = tglAwalInputNilai;\r\n }\r\n\r\n public Date getTglAkhirInputNilai() {\r\n return tglAkhirInputNilai;\r\n }\r\n\r\n public void setTglAkhirInputNilai(Date tglAkhirInputNilai) {\r\n this.tglAkhirInputNilai = tglAkhirInputNilai;\r\n }\r\n\r\n public int getCreatedBy() {\r\n return createdBy;\r\n }\r\n\r\n public void setCreatedBy(int createdBy) {\r\n this.createdBy = createdBy;\r\n }\r\n\r\n public Date getCreatedAt() {\r\n return createdAt;\r\n }\r\n\r\n public void setCreatedAt(Date createdAt) {\r\n this.createdAt = createdAt;\r\n }\r\n\r\n public Integer getUpdatedBy() {\r\n return updatedBy;\r\n }\r\n\r\n public void setUpdatedBy(Integer updatedBy) {\r\n this.updatedBy = updatedBy;\r\n }\r\n\r\n public Date getUpdatedAt() {\r\n return updatedAt;\r\n }\r\n\r\n public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }\r\n\r\n @Override\r\n public int hashCode() {\r\n int hash = 0;\r\n hash += (idSemester != null ? idSemester.hashCode() : 0);\r\n return hash;\r\n }\r\n\r\n @Override\r\n public boolean equals(Object object) {\r\n // TODO: Warning - this method won't work in the case the id fields are not set\r\n if (!(object instanceof PengaturanSemester)) {\r\n return false;\r\n }\r\n PengaturanSemester other = (PengaturanSemester) object;\r\n if ((this.idSemester == null && other.idSemester != null) || (this.idSemester != null && !this.idSemester.equals(other.idSemester))) {\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n @Override\r\n public String toString() {\r\n return \"id.ac.itb.model.PengaturanSemester[ idSemester=\" + idSemester + \" ]\";\r\n }\r\n \r\n @Override\r\n @JsonIgnore\r\n public String getName() {\r\n return \"\" + this.idSemester;\r\n }\r\n \r\n @Override\r\n @JsonIgnore\r\n public String getPkUrl() {\r\n return \"\" + this.idSemester;\r\n }\r\n \r\n}\r\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":429,"cells":{"repo_name":{"kind":"string","value":"ljharb/node-comments"},"path":{"kind":"string","value":"test/samples/2.multi.js"},"size":{"kind":"string","value":"143"},"content":{"kind":"string","value":"/* nested multiline comment /**\n\there is a line with tabs\n here is a line with spaces\n*/ var hereIsAVar = 7; /* and a single line comment */\n\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":430,"cells":{"repo_name":{"kind":"string","value":"EvgenyOrekhov/Clean-Feed-for-VK.com"},"path":{"kind":"string","value":"src/popup.js"},"size":{"kind":"string","value":"2581"},"content":{"kind":"string","value":"import { init } from \"actus\";\nimport defaultActions from \"actus-default-actions\";\n\nimport defaultSettings from \"./defaultSettings.json\";\n\nfunction addClickHandlers(actions) {\n const map = {\n \"is-disabled\": actions[\"is-disabled\"].toggle,\n groups: actions.toggleGroups,\n mygroups: actions.mygroups.toggle,\n people: actions.people.toggle,\n external_links: actions.toggleExternalLinks,\n links: actions.links.toggle,\n apps: actions.apps.toggle,\n instagram: actions.instagram.toggle,\n video: actions.video.toggle,\n group_share: actions.group_share.toggle,\n mem_link: actions.mem_link.toggle,\n event_share: actions.event_share.toggle,\n wall_post_more: actions.wall_post_more.toggle,\n likes: actions.likes.toggle,\n comments: actions.comments.toggle,\n };\n\n Object.entries(map).forEach(([name, action]) => {\n document.querySelector(`[name=${name}]`).addEventListener(\"click\", action);\n });\n}\n\nconst actions = {\n toggleGroups: (ignore, state) => ({\n ...state,\n groups: !state.groups,\n mygroups: false,\n people: false,\n }),\n toggleExternalLinks: (ignore, state) => ({\n ...state,\n external_links: !state.external_links,\n links: false,\n }),\n};\n\n/* eslint-disable fp/no-mutation, no-param-reassign */\nfunction updatePage({ state: settings }) {\n const checkboxes = document.querySelectorAll(\"input\");\n\n checkboxes.forEach((checkbox) => {\n checkbox.checked = settings[checkbox.name];\n\n if (checkbox.name !== \"is-disabled\") {\n checkbox.disabled = settings[\"is-disabled\"];\n }\n });\n\n document\n .querySelector(\"#mygroups-label\")\n .classList.toggle(\"hidden\", !settings.groups);\n document\n .querySelector(\"#people-label\")\n .classList.toggle(\"hidden\", !settings.groups);\n document\n .querySelector(\"#links-label\")\n .classList.toggle(\"hidden\", settings.external_links);\n}\n/* eslint-enable fp/no-mutation, no-param-reassign */\n\nfunction saveSettings({ state: settings }) {\n chrome.storage.sync.set(settings);\n}\n\nfunction applySettings({ state: settings }) {\n chrome.tabs.query(\n {\n currentWindow: true,\n active: true,\n },\n function sendMessage([tab]) {\n chrome.runtime.sendMessage({\n tabId: tab.id,\n action: \"execute\",\n settings,\n });\n }\n );\n}\n\nchrome.storage.sync.get((settings) => {\n const boundActions = init([\n defaultActions(defaultSettings),\n {\n state: { ...defaultSettings, ...settings },\n actions,\n subscribers: [updatePage, saveSettings, applySettings],\n },\n ]);\n\n addClickHandlers(boundActions);\n});\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":431,"cells":{"repo_name":{"kind":"string","value":"shepherdwind/css-hot-loader"},"path":{"kind":"string","value":"examples/ts-example/webpack.config.js"},"size":{"kind":"string","value":"2312"},"content":{"kind":"string","value":"const webpack = require('webpack'); // webpack itself\nconst path = require('path'); // nodejs dependency when dealing with paths\nconst MiniCssExtractPlugin = require(\"mini-css-extract-plugin\");\nconst tslintConfig = require('./tslint.json');\nconst AutoPrefixer = require('autoprefixer');\n\n\nlet config = { // config object\n mode: 'development',\n entry: {\n output: './src/App.ts', // entry file\n },\n output: { // output\n path: path.resolve(__dirname, 'dist'), // ouput path\n filename: '[name].js',\n },\n module: {\n rules: [\n {\n test : /\\.ts$/,\n exclude : /(node_modules|Gulptasks)/,\n enforce : 'pre',\n use : [\n {\n loader : 'ts-loader',\n options : {\n transpileOnly : true\n }\n },\n {\n loader : `tslint-loader`,\n options : tslintConfig\n }\n ]\n },\n {\n test : /\\.(css|sass|scss)$/,\n exclude : /node_modules/,\n use : [\n 'css-hot-loader',\n MiniCssExtractPlugin.loader,\n {\n loader : 'css-loader',\n options : {\n constLoaders : 1,\n minimize : true\n }\n },\n {\n loader : 'clean-css-loader',\n options : {\n compatibility : 'ie8',\n debug : true,\n level : {\n 2 : {\n all : true\n }\n }\n }\n },\n {\n loader : 'postcss-loader',\n options : {\n plugins : loader => [\n AutoPrefixer({\n browsers : ['last 2 versions'],\n cascade : false\n })\n ]\n }\n },\n {\n loader : 'fast-sass-loader',\n options : {\n includePaths : [\n 'node_modules',\n 'src',\n ]\n }\n }\n ]\n },\n ] // end rules\n },\n plugins: [ // webpack plugins\n new MiniCssExtractPlugin('[name].css'),\n ],\n devServer: {\n contentBase: path.join(__dirname, 'dist'),\n hot: true,\n },\n devtool: 'eval-source-map', // enable devtool for better debugging experience\n}\n\nmodule.exports = config;\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":432,"cells":{"repo_name":{"kind":"string","value":"rickdberg/database"},"path":{"kind":"string","value":"odp_data_age_depth.py"},"size":{"kind":"string","value":"1287"},"content":{"kind":"string","value":"# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Fri Aug 5 16:14:54 2016\n\n@author: rickdberg\n# File loader to create table in MySQL database with original headers from single csv file\n\"\"\"\nimport numpy as np\nimport pandas as pd\nfrom sqlalchemy import create_engine\n\n# Connect to database\nengine = create_engine(\"mysql://root:neogene227@localhost/iodp_compiled\")\ntable = 'age_depth'\n\n##### File group info #####\nfilename = 'age_depth_101_190.txt'\nsite_table = 'site_info'\ndata = pd.read_csv(r'C:\\Users\\rickdberg\\Documents\\UW Projects\\Magnesium uptake\\Data\\100-312\\Original files\\{}'.format(filename), sep=\"\\t\", header=0, skiprows=None, encoding='windows-1252')\n\ndata.columns = ('leg', 'site', 'hole', 'source', 'depth', 'age', 'type')\ndata['age'] = np.multiply(data['age'], 1000000)\ndata = data.applymap(str)\ndata = data.loc[:,['leg', 'site', 'hole', 'depth', 'age', 'type', 'source']]\n\n\nsql = \"\"\"SELECT distinct site_key, site FROM {}; \"\"\".format(site_table)\nsite_keys = pd.read_sql(sql, engine)\n\nfull_data = pd.merge(site_keys, data, how = 'inner', on = ['site'])\nfull_data = full_data.loc[:,['site_key', 'leg', 'site', 'hole', 'depth', 'age', 'type', 'source']]\n\n### Send to database and autoincrement age_depth_key\n\nfull_data.to_sql(table, con=engine, if_exists = 'append', index=False)\n\n# eof\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":433,"cells":{"repo_name":{"kind":"string","value":"davidakachaos/little-tw-helper"},"path":{"kind":"string","value":"units/ram.rb"},"size":{"kind":"string","value":"291"},"content":{"kind":"string","value":"# Represents a ram\nclass Ram < Unit\n WOOD = 300\n CLAY = 200\n IRON = 200\n POPULATION = 5\n ATTACK = 2\n DEF_INF = 20\n DEF_HORSE = 50\n DEF_ARCH = 20\n SPEED = 30\n CARRY = 0\n BUILD_REQ = { workshop: 1 }\n\n def building_time_factor\n village.buildings[:workshop].time_factor\n end\nend\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":434,"cells":{"repo_name":{"kind":"string","value":"chaddanna/d1-baseball"},"path":{"kind":"string","value":"conference-overview.php"},"size":{"kind":"string","value":"22332"},"content":{"kind":"string","value":"\n\n
\n
\n \n
\n

Southeastern Conference

\n\n \n
\n
\n
\n
\n Conference Ratings\n
\n
RPI2
\n
EPI2
\n
ELO2
\n
\n
\n
\n
\n\n \n\n
\n
\n\n
\n
\n

Conference Standings

\n
\n
\n

Eastern Division

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
TeamRecordWin %OverallOverall %RPIvs RPI Top 50
\"\" South Carolina20-9.69046-18.7191312-14
\"\" South Carolina20-9.69046-18.7191312-14
\"\" South Carolina20-9.69046-18.7191312-14
\"\" South Carolina20-9.69046-18.7191312-14
\n
\n\n
\n

Western Division

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
TeamRecordWin %OverallOverall %RPIvs RPI Top 50
\"\" South Carolina20-9.69046-18.7191312-14
\"\" South Carolina20-9.69046-18.7191312-14
\"\" South Carolina20-9.69046-18.7191312-14
\"\" South Carolina20-9.69046-18.7191312-14
\n
\n
\n\n
\n
\n

Today's Schedule

\n \n
\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
FRIDAY, AUGUST 5
\n \"\"/ 8 LSU8:00 PM
\n \"\"/ Alabama
\n
\n
\n Preview\n
\n
\n SECN\n
\n
\n
\n
\n\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
FRIDAY, AUGUST 5
\n \"\"/ 8 LSU8:00 PM
\n \"\"/ Alabama
\n
\n
\n Preview\n
\n
\n SECN\n
\n
\n
\n
\n
\n\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
FRIDAY, AUGUST 5
\n \"\"/ 8 LSU8:00 PM
\n \"\"/ Alabama
\n
\n
\n Preview\n
\n
\n SECN\n
\n
\n
\n
\n\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
FRIDAY, AUGUST 5
\n \"\"/ 8 LSU8:00 PM
\n \"\"/ Alabama
\n
\n
\n Preview\n
\n
\n SECN\n
\n
\n
\n
\n
\n
\n\n
\n
\n

Yesterday's Schedule

\n
\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
FRIDAY, AUGUST 5
\n \"\"/ 8 LSU8:00 PM
\n \"\"/ Alabama
\n
\n
\n Preview\n
\n
\n SECN\n
\n
\n
\n
\n\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
FRIDAY, AUGUST 5
\n \"\"/ 8 LSU8:00 PM
\n \"\"/ Alabama
\n
\n
\n Preview\n
\n
\n SECN\n
\n
\n
\n
\n
\n\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
FRIDAY, AUGUST 5
\n \"\"/ 8 LSU8:00 PM
\n \"\"/ Alabama
\n
\n
\n Preview\n
\n
\n SECN\n
\n
\n
\n
\n\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
FRIDAY, AUGUST 5
\n \"\"/ 8 LSU8:00 PM
\n \"\"/ Alabama
\n
\n
\n Preview\n
\n
\n SECN\n
\n
\n
\n
\n
\n
\n\n
\n

South Conference Leaders

\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PlayerBatting Average
1Ryan Scott, UALR.435
2Ryan Scott, UALR.435
3Ryan Scott, UALR.435
\n
\n
\n\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PlayerHomeruns
1Ryan Scott, UALR.435
1Ryan Scott, UALR.435
1Ryan Scott, UALR.435
\n
\n
\n
\n\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PlayerBatting Average
1Ryan Scott, UALR.435
2Ryan Scott, UALR.435
3Ryan Scott, UALR.435
\n
\n
\n\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PlayerHomeruns
1Ryan Scott, UALR.435
1Ryan Scott, UALR.435
1Ryan Scott, UALR.435
\n
\n
\n
\n\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PlayerBatting Average
1Ryan Scott, UALR.435
2Ryan Scott, UALR.435
3Ryan Scott, UALR.435
\n
\n
\n\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PlayerHomeruns
1Ryan Scott, UALR.435
1Ryan Scott, UALR.435
1Ryan Scott, UALR.435
\n
\n
\n
\n
\n\n
\n
\n

Southeastern Conference Headlines

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

Stat Roundup: March 15 Top Performers

\n D1 Baseball Staff - March 15, 2016\n

\n Bobby Dalbec homered twice and earned the save to lead Arizona past New Mexico, headlining the Tuesday individual leaderboard.\n

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

Sorenson: Super Tuesday Winners & Losers

\n Eric Sorenson - March 15, 2016\n

\n With a lot of nearby rivals facing each other, Super Tuesday in college baseball was a hard fought battle of familiar foes on the diamond.\n

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

GSA Spotlight: Virginia’s Matt Thaiss

\n Aaron Fitt - March 15, 2016\n

\n Matt Thaiss is the emotional leader for the reigning national champion Cavaliers, and he's worked hard to become one of the best all-around catchers in college baseball.\n

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

Week 4 Power Rankings: Relief Pitchers

\n D1 Baseball Staff - March 15, 2016\n

\n Ryan Hendrix has been dominant over the first month for Texas A&M, moving him to the top of our power rankings for relievers.\n

\n
\n
\n\n
\n Read More\n
\n
\n
\n
\n\n
\n
\n\n\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":435,"cells":{"repo_name":{"kind":"string","value":"kostyakch/rhino"},"path":{"kind":"string","value":"src/Application/BackBundle/Controller/HelpController.php"},"size":{"kind":"string","value":"271"},"content":{"kind":"string","value":"render('BackBundle:Help:index.html.twig');\n\t}\n\n}\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":436,"cells":{"repo_name":{"kind":"string","value":"ccpgames/eve-metrics"},"path":{"kind":"string","value":"web2py/gluon/contrib/login_methods/gae_google_account.py"},"size":{"kind":"string","value":"1069"},"content":{"kind":"string","value":"#!/usr/bin/env python\r\n# -*- coding: utf-8 -*-\r\n\r\n\"\"\"\r\nThis file is part of web2py Web Framework (Copyrighted, 2007-2009).\r\nDeveloped by Massimo Di Pierro .\r\nLicense: GPL v2\r\n\r\nThanks to Hans Donner for GaeGoogleAccount.\r\n\"\"\"\r\n\r\nfrom google.appengine.api import users\r\n\r\n\r\nclass GaeGoogleAccount(object):\r\n \"\"\"\r\n Login will be done via Google's Appengine login object, instead of web2py's\r\n login form.\r\n\r\n Include in your model (eg db.py)::\r\n\r\n from gluon.contrib.login_methods.gae_google_account import \\\r\n GaeGoogleAccount\r\n auth.settings.login_form=GaeGoogleAccount()\r\n\r\n \"\"\"\r\n\r\n def login_url(self, next=\"/\"):\r\n return users.create_login_url(next)\r\n\r\n def logout_url(self, next=\"/\"):\r\n return users.create_logout_url(next)\r\n\r\n def get_user(self):\r\n user = users.get_current_user()\r\n if user:\r\n return dict(nickname=user.nickname(), email=user.email(),\r\n user_id=user.user_id(), source=\"google account\")\r\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":437,"cells":{"repo_name":{"kind":"string","value":"kalinmarkov/SoftUni"},"path":{"kind":"string","value":"JS Core/JS Fundamentals/02. Lab - Control-Flow Logic/8. Fruit or Vegetable.js"},"size":{"kind":"string","value":"511"},"content":{"kind":"string","value":"function food(word) {\n\n switch (word) {\n case 'banana':\n case 'apple':\n case 'kiwi':\n case 'cherry':\n case 'lemon':\n case 'grapes':\n case 'peach':\n console.log('fruit');\n break;\n case 'tomato':\n case 'cucumber':\n case 'pepper':\n case 'onion':\n case 'parsley':\n case 'garlic':\n console.log('vegetable');\n break;\n default:\n console.log('unknown');\n }\n}\n\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":438,"cells":{"repo_name":{"kind":"string","value":"ScreenBasedSimulator/ScreenBasedSimulator2"},"path":{"kind":"string","value":"src/main/java/mil/tatrc/physiology/datamodel/bind/CircuitCalculatorData.java"},"size":{"kind":"string","value":"1184"},"content":{"kind":"string","value":"//\r\n// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 \r\n// See http://java.sun.com/xml/jaxb \r\n// Any modifications to this file will be lost upon recompilation of the source schema. \r\n// Generated on: 2015.12.09 at 06:16:52 PM EST \r\n//\r\n\r\n\r\npackage mil.tatrc.physiology.datamodel.bind;\r\n\r\nimport javax.xml.bind.annotation.XmlAccessType;\r\nimport javax.xml.bind.annotation.XmlAccessorType;\r\nimport javax.xml.bind.annotation.XmlType;\r\n\r\n\r\n/**\r\n *

Java class for CircuitCalculatorData complex type.\r\n * \r\n *

The following schema fragment specifies the expected content contained within this class.\r\n * \r\n *

\r\n * &lt;complexType name=\"CircuitCalculatorData\">\r\n *   &lt;complexContent>\r\n *     &lt;extension base=\"{uri:/mil/tatrc/physiology/datamodel}ObjectData\">\r\n *       &lt;sequence>\r\n *       &lt;/sequence>\r\n *     &lt;/extension>\r\n *   &lt;/complexContent>\r\n * &lt;/complexType>\r\n * 
\r\n * \r\n * \r\n */\r\n@XmlAccessorType(XmlAccessType.FIELD)\r\n@XmlType(name = \"CircuitCalculatorData\")\r\npublic class CircuitCalculatorData\r\n extends ObjectData\r\n{\r\n\r\n\r\n}\r\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":439,"cells":{"repo_name":{"kind":"string","value":"madeso/prettygood"},"path":{"kind":"string","value":"dotnet/Tagger/AutoTagger.Designer.py"},"size":{"kind":"string","value":"9616"},"content":{"kind":"string","value":"namespace Tagger\n{\n partial class AutoTagger\n {\n /// \n /// Required designer variable.\n /// \n private System.ComponentModel.IContainer components = null;\n\n /// \n /// Clean up any resources being used.\n /// \n /// true if managed resources should be disposed; otherwise, false.\n protected override void Dispose(bool disposing)\n {\n if (disposing && (components != null))\n {\n components.Dispose();\n }\n base.Dispose(disposing);\n }\n\n #region Windows Form Designer generated code\n\n /// \n /// Required method for Designer support - do not modify\n /// the contents of this method with the code editor.\n /// \n private void InitializeComponent()\n {\n this.dTags = new BrightIdeasSoftware.FastObjectListView();\n this.dFileName = new System.Windows.Forms.TextBox();\n this.olvcArtist = new BrightIdeasSoftware.OLVColumn();\n this.olvcTitle = new BrightIdeasSoftware.OLVColumn();\n this.olvcAlbum = new BrightIdeasSoftware.OLVColumn();\n this.olvcTrackNumber = new BrightIdeasSoftware.OLVColumn();\n this.olvcGenre = new BrightIdeasSoftware.OLVColumn();\n this.olvcYear = new BrightIdeasSoftware.OLVColumn();\n this.olvcComments = new BrightIdeasSoftware.OLVColumn();\n this.olvcIsCover = new BrightIdeasSoftware.OLVColumn();\n this.olvcIsRemix = new BrightIdeasSoftware.OLVColumn();\n this.olvcTotalTracks = new BrightIdeasSoftware.OLVColumn();\n this.olvcScore = new BrightIdeasSoftware.OLVColumn();\n this.olvcPattern = new BrightIdeasSoftware.OLVColumn();\n this.dIncludeInvalid = new System.Windows.Forms.CheckBox();\n this.olvcMessage = new BrightIdeasSoftware.OLVColumn();\n ((System.ComponentModel.ISupportInitialize)(this.dTags)).BeginInit();\n this.SuspendLayout();\n // \n // dTags\n // \n this.dTags.AllColumns.Add(this.olvcTrackNumber);\n this.dTags.AllColumns.Add(this.olvcArtist);\n this.dTags.AllColumns.Add(this.olvcTitle);\n this.dTags.AllColumns.Add(this.olvcAlbum);\n this.dTags.AllColumns.Add(this.olvcTotalTracks);\n this.dTags.AllColumns.Add(this.olvcPattern);\n this.dTags.AllColumns.Add(this.olvcScore);\n this.dTags.AllColumns.Add(this.olvcGenre);\n this.dTags.AllColumns.Add(this.olvcYear);\n this.dTags.AllColumns.Add(this.olvcMessage);\n this.dTags.AllColumns.Add(this.olvcComments);\n this.dTags.AllColumns.Add(this.olvcIsCover);\n this.dTags.AllColumns.Add(this.olvcIsRemix);\n this.dTags.AllowColumnReorder = true;\n this.dTags.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\n | System.Windows.Forms.AnchorStyles.Left)\n | System.Windows.Forms.AnchorStyles.Right)));\n this.dTags.CellEditActivation = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.F2Only;\n this.dTags.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {\n this.olvcTrackNumber,\n this.olvcArtist,\n this.olvcTitle,\n this.olvcAlbum,\n this.olvcTotalTracks,\n this.olvcPattern,\n this.olvcScore,\n this.olvcGenre,\n this.olvcYear,\n this.olvcMessage,\n this.olvcComments,\n this.olvcIsCover,\n this.olvcIsRemix});\n this.dTags.FullRowSelect = true;\n this.dTags.Location = new System.Drawing.Point(12, 38);\n this.dTags.Name = \"dTags\";\n this.dTags.ShowGroups = false;\n this.dTags.Size = new System.Drawing.Size(859, 242);\n this.dTags.TabIndex = 0;\n this.dTags.UseAlternatingBackColors = true;\n this.dTags.UseCompatibleStateImageBehavior = false;\n this.dTags.View = System.Windows.Forms.View.Details;\n this.dTags.VirtualMode = true;\n this.dTags.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.dTags_MouseDoubleClick);\n // \n // dFileName\n // \n this.dFileName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)\n | System.Windows.Forms.AnchorStyles.Right)));\n this.dFileName.Location = new System.Drawing.Point(103, 12);\n this.dFileName.Name = \"dFileName\";\n this.dFileName.ReadOnly = true;\n this.dFileName.Size = new System.Drawing.Size(768, 20);\n this.dFileName.TabIndex = 1;\n // \n // olvcArtist\n // \n this.olvcArtist.AspectName = \"tag.Artist\";\n this.olvcArtist.Text = \"Artist\";\n // \n // olvcTitle\n // \n this.olvcTitle.AspectName = \"tag.Title\";\n this.olvcTitle.Text = \"Title\";\n // \n // olvcAlbum\n // \n this.olvcAlbum.AspectName = \"tag.Album\";\n this.olvcAlbum.Text = \"Album\";\n // \n // olvcTrackNumber\n // \n this.olvcTrackNumber.AspectName = \"tag.TrackNumber\";\n this.olvcTrackNumber.Text = \"#\";\n // \n // olvcGenre\n // \n this.olvcGenre.AspectName = \"tag.Genre\";\n this.olvcGenre.Text = \"Genre\";\n // \n // olvcYear\n // \n this.olvcYear.AspectName = \"tag.Year\";\n this.olvcYear.Text = \"Year\";\n // \n // olvcComments\n // \n this.olvcComments.AspectName = \"tag.Comments\";\n this.olvcComments.Text = \"Comments\";\n this.olvcComments.Width = 127;\n // \n // olvcIsCover\n // \n this.olvcIsCover.AspectName = \"tag.IsCover\";\n this.olvcIsCover.Text = \"cover?\";\n // \n // olvcIsRemix\n // \n this.olvcIsRemix.AspectName = \"tag.IsRemix\";\n this.olvcIsRemix.Text = \"remix?\";\n // \n // olvcTotalTracks\n // \n this.olvcTotalTracks.AspectName = \"tag.TotalTracks\";\n this.olvcTotalTracks.Text = \"Total tracks\";\n this.olvcTotalTracks.Width = 88;\n // \n // olvcScore\n // \n this.olvcScore.AspectName = \"Score\";\n this.olvcScore.IsEditable = false;\n this.olvcScore.Text = \"Score\";\n this.olvcScore.Width = 48;\n // \n // olvcPattern\n // \n this.olvcPattern.AspectName = \"extractor.logic\";\n this.olvcPattern.IsEditable = false;\n this.olvcPattern.Text = \"Pattern\";\n // \n // dIncludeInvalid\n // \n this.dIncludeInvalid.AutoSize = true;\n this.dIncludeInvalid.Location = new System.Drawing.Point(12, 14);\n this.dIncludeInvalid.Name = \"dIncludeInvalid\";\n this.dIncludeInvalid.Size = new System.Drawing.Size(85, 17);\n this.dIncludeInvalid.TabIndex = 2;\n this.dIncludeInvalid.Text = \"Also invalid?\";\n this.dIncludeInvalid.UseVisualStyleBackColor = true;\n this.dIncludeInvalid.CheckedChanged += new System.EventHandler(this.dIncludeInvalid_CheckedChanged);\n // \n // olvcMessage\n // \n this.olvcMessage.AspectName = \"Message\";\n this.olvcMessage.Text = \"Message\";\n this.olvcMessage.Width = 99;\n // \n // AutoTagger\n // \n this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);\n this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\n this.ClientSize = new System.Drawing.Size(883, 292);\n this.Controls.Add(this.dIncludeInvalid);\n this.Controls.Add(this.dFileName);\n this.Controls.Add(this.dTags);\n this.Name = \"AutoTagger\";\n this.Text = \"AutoTagger\";\n ((System.ComponentModel.ISupportInitialize)(this.dTags)).EndInit();\n this.ResumeLayout(false);\n this.PerformLayout();\n\n }\n\n #endregion\n\n private BrightIdeasSoftware.FastObjectListView dTags;\n private System.Windows.Forms.TextBox dFileName;\n private BrightIdeasSoftware.OLVColumn olvcArtist;\n private BrightIdeasSoftware.OLVColumn olvcTitle;\n private BrightIdeasSoftware.OLVColumn olvcAlbum;\n private BrightIdeasSoftware.OLVColumn olvcTrackNumber;\n private BrightIdeasSoftware.OLVColumn olvcGenre;\n private BrightIdeasSoftware.OLVColumn olvcYear;\n private BrightIdeasSoftware.OLVColumn olvcComments;\n private BrightIdeasSoftware.OLVColumn olvcIsCover;\n private BrightIdeasSoftware.OLVColumn olvcIsRemix;\n private BrightIdeasSoftware.OLVColumn olvcTotalTracks;\n private BrightIdeasSoftware.OLVColumn olvcScore;\n private BrightIdeasSoftware.OLVColumn olvcPattern;\n private System.Windows.Forms.CheckBox dIncludeInvalid;\n private BrightIdeasSoftware.OLVColumn olvcMessage;\n }\n}"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":440,"cells":{"repo_name":{"kind":"string","value":"ISO-tech/sw-d8"},"path":{"kind":"string","value":"web/2005-2/549/549_13_CinderellaMan.php"},"size":{"kind":"string","value":"6313"},"content":{"kind":"string","value":"\n\n\n\nSeabiscuit in boxing gloves\n\n\n\n\n\n\n\n\n\n\n
\n
\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\nCinderella Man movie doesn't cut it
\nSeabiscuit in boxing gloves

\nReview by Dave Zirin | June 24, 2005 | Page 13

\n\nCinderella Man, directed by Ron Howard, starring Russell Crowe and Ren&eacute;e Zellweger.

\n\n\"WHEN OUR country was on its knees, he brought America to his feet.\" So goes the tagline for Ron Howard's Depression-era boxing film Cinderella Man starring Russell Crowe.

\nCinderella Man has been compared to Seabiscuit, both stories of plucky sports underdogs that triumphed during the Great Depression. The comparison is apt, and not just because Crowe's James J. Braddock mopes around with the same blank hangdog expression as that horse.

\nLike the insipid Seabiscuit, the entire big budget biopic comes off as yet another Hollywood effort to sweeten the story of the 1930s. And like Seabiscuit, Cinderella Man sees the Depression as a time for beautifully photographed poverty, and, in the words of reviewer Jami Bernard, \"good for teaching values.\"

\nBeyond that, all one would learn from Cinderella Man is that the Great Depression was really depressing.

\nIn reality, the 1930s was a time of not only poverty but also mass resistance, as strikes swept the South and shut down the cities of San Francisco, Toledo, Ohio, and Minneapolis. It was a time when many of the reforms on the chopping block today, like Social Security, were won in struggle.

\nIt was a time when revolution in the U.S. was on the table as hundreds of thousands of people attempted to offer an alternative to the barbarisms of capitalism. As Depression-era sports writer Lester Rodney put it, \"In the 1930s, if you weren't some kind of radical, Communist, socialist, or Trotskyist, you were considered brain-dead, and you probably were!\"

\nJust about everyone in Cinderella Man wears their brain-deadness like a medal of honor, passively enduring poverty as if they had just received red, white and blue lobotomies.

\nThe only hint of the other side of the Depression in Cinderella Man is Braddock's dockworker buddy Mike Wilson (played by Paddy Considine). Mike believes in the power of protest, but he's also portrayed as a drunk who gets the speech from his wife where she says, \"You can save the world, but not your family!\"

\nRen&eacute;e Zellweger, as Crowe's spouse Mae, complements Mike's wife, as the typical sexist sports-movie female character, fretting with every fight and being forced to say lines like, \"You are the champion of my heart, James J. Braddock!\"

\nThe film is also shamefully simplistic and even slanderous in its portrayal of the heavyweight champion at the time Max Baer. Baer was a hulking, brutal fighter who had two opponents die in the ring.
\nBut Cinderella Man reduces Baer to a one-dimensional stock villain, a perfect counterpart for Crowe's paper-thin stock hero. As played by Craig Bierko, Baer struts around with a psychotic gleam in his eye, as if he would enjoy nothing more than killing Braddock and spitting on his grave. In one scene, he looks at Mae and says, \"Nice! Too bad she'll be a widow.\"

\nIn reality, Baer was devastated and nearly destroyed by the ring deaths that occurred at his hands, as any non-sociopath would be.

\nAlso, Baer was a complex figure who fought against the Nazi favorite Max Schmeling with a Star of David embroidered on his trunks. To see Howard's movie, one would think the only symbol Baer favored would be a pentagram.

\nBut the real tragedy of the film is its treatment of Braddock. Crowe does what he can with a terrible script, but it says everything about the film that it closes before the actual ending of Braddock's fight career, a 1937 8th round knockout at the hands of Joe Louis.

\nLouis, the first African American heavyweight champ since Jack Johnson, was a symbol of hope for both African Americans and the left wing of the radicalizing working class.

\nTo have portrayed his fight with Braddock would have meant dealing with complex issues of how boxing, in a violent society, has acted as a deeply symbolic morality play about the ability of people--especially people of color--to succeed and stand triumphant.

\nIt would have meant trying to understand why some people who would have rooted for the underdog Braddock against Baer, would have bitterly opposed him against Louis.

\nBut the filmmakers could care less about these complicated dimensions of either the period or the sport. Their job in Cinderella Man is to take complex characters and turn them into stick figures, easily consumed and easily forgotten.

\nAt that task, they have succeeded admirably.

\n[For people really interested in the James J. Braddock story, read the just-released Jeremy Schaap book also called Cinderella Man&#8218; and--blessedly--not connected to the film.]

\n\n\n\n

\n\n
\n\n\n\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":441,"cells":{"repo_name":{"kind":"string","value":"Azure/azure-sdk-for-python"},"path":{"kind":"string","value":"sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_01_01/operations/_blob_services_operations.py"},"size":{"kind":"string","value":"13580"},"content":{"kind":"string","value":"# coding=utf-8\n# --------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for license information.\n# Code generated by Microsoft (R) AutoRest Code Generator.\n# Changes may cause incorrect behavior and will be lost if the code is regenerated.\n# --------------------------------------------------------------------------\nfrom typing import TYPE_CHECKING\nimport warnings\n\nfrom azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error\nfrom azure.core.paging import ItemPaged\nfrom azure.core.pipeline import PipelineResponse\nfrom azure.core.pipeline.transport import HttpRequest, HttpResponse\nfrom azure.mgmt.core.exceptions import ARMErrorFormat\n\nfrom .. import models as _models\n\nif TYPE_CHECKING:\n # pylint: disable=unused-import,ungrouped-imports\n from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar\n\n T = TypeVar('T')\n ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]\n\nclass BlobServicesOperations(object):\n \"\"\"BlobServicesOperations operations.\n\n You should not instantiate this class directly. Instead, you should create a Client instance that\n instantiates it for you and attaches it as an attribute.\n\n :ivar models: Alias to model classes used in this operation group.\n :type models: ~azure.mgmt.storage.v2021_01_01.models\n :param client: Client for service requests.\n :param config: Configuration of service client.\n :param serializer: An object model serializer.\n :param deserializer: An object model deserializer.\n \"\"\"\n\n models = _models\n\n def __init__(self, client, config, serializer, deserializer):\n self._client = client\n self._serialize = serializer\n self._deserialize = deserializer\n self._config = config\n\n def list(\n self,\n resource_group_name, # type: str\n account_name, # type: str\n **kwargs # type: Any\n ):\n # type: (...) -> Iterable[\"_models.BlobServiceItems\"]\n \"\"\"List blob services of storage account. It returns a collection of one object named default.\n\n :param resource_group_name: The name of the resource group within the user's subscription. The\n name is case insensitive.\n :type resource_group_name: str\n :param account_name: The name of the storage account within the specified resource group.\n Storage account names must be between 3 and 24 characters in length and use numbers and\n lower-case letters only.\n :type account_name: str\n :keyword callable cls: A custom type or function that will be passed the direct response\n :return: An iterator like instance of either BlobServiceItems or the result of cls(response)\n :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2021_01_01.models.BlobServiceItems]\n :raises: ~azure.core.exceptions.HttpResponseError\n \"\"\"\n cls = kwargs.pop('cls', None) # type: ClsType[\"_models.BlobServiceItems\"]\n error_map = {\n 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError\n }\n error_map.update(kwargs.pop('error_map', {}))\n api_version = \"2021-01-01\"\n accept = \"application/json\"\n\n def prepare_request(next_link=None):\n # Construct headers\n header_parameters = {} # type: Dict[str, Any]\n header_parameters['Accept'] = self._serialize.header(\"accept\", accept, 'str')\n\n if not next_link:\n # Construct URL\n url = self.list.metadata['url'] # type: ignore\n path_format_arguments = {\n 'resourceGroupName': self._serialize.url(\"resource_group_name\", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\\w\\._\\(\\)]+$'),\n 'accountName': self._serialize.url(\"account_name\", account_name, 'str', max_length=24, min_length=3),\n 'subscriptionId': self._serialize.url(\"self._config.subscription_id\", self._config.subscription_id, 'str', min_length=1),\n }\n url = self._client.format_url(url, **path_format_arguments)\n # Construct parameters\n query_parameters = {} # type: Dict[str, Any]\n query_parameters['api-version'] = self._serialize.query(\"api_version\", api_version, 'str')\n\n request = self._client.get(url, query_parameters, header_parameters)\n else:\n url = next_link\n query_parameters = {} # type: Dict[str, Any]\n request = self._client.get(url, query_parameters, header_parameters)\n return request\n\n def extract_data(pipeline_response):\n deserialized = self._deserialize('BlobServiceItems', pipeline_response)\n list_of_elem = deserialized.value\n if cls:\n list_of_elem = cls(list_of_elem)\n return None, iter(list_of_elem)\n\n def get_next(next_link=None):\n request = prepare_request(next_link)\n\n pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)\n response = pipeline_response.http_response\n\n if response.status_code not in [200]:\n map_error(status_code=response.status_code, response=response, error_map=error_map)\n raise HttpResponseError(response=response, error_format=ARMErrorFormat)\n\n return pipeline_response\n\n return ItemPaged(\n get_next, extract_data\n )\n list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices'} # type: ignore\n\n def set_service_properties(\n self,\n resource_group_name, # type: str\n account_name, # type: str\n parameters, # type: \"_models.BlobServiceProperties\"\n **kwargs # type: Any\n ):\n # type: (...) -> \"_models.BlobServiceProperties\"\n \"\"\"Sets the properties of a storage account’s Blob service, including properties for Storage\n Analytics and CORS (Cross-Origin Resource Sharing) rules.\n\n :param resource_group_name: The name of the resource group within the user's subscription. The\n name is case insensitive.\n :type resource_group_name: str\n :param account_name: The name of the storage account within the specified resource group.\n Storage account names must be between 3 and 24 characters in length and use numbers and\n lower-case letters only.\n :type account_name: str\n :param parameters: The properties of a storage account’s Blob service, including properties for\n Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.\n :type parameters: ~azure.mgmt.storage.v2021_01_01.models.BlobServiceProperties\n :keyword callable cls: A custom type or function that will be passed the direct response\n :return: BlobServiceProperties, or the result of cls(response)\n :rtype: ~azure.mgmt.storage.v2021_01_01.models.BlobServiceProperties\n :raises: ~azure.core.exceptions.HttpResponseError\n \"\"\"\n cls = kwargs.pop('cls', None) # type: ClsType[\"_models.BlobServiceProperties\"]\n error_map = {\n 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError\n }\n error_map.update(kwargs.pop('error_map', {}))\n api_version = \"2021-01-01\"\n blob_services_name = \"default\"\n content_type = kwargs.pop(\"content_type\", \"application/json\")\n accept = \"application/json\"\n\n # Construct URL\n url = self.set_service_properties.metadata['url'] # type: ignore\n path_format_arguments = {\n 'resourceGroupName': self._serialize.url(\"resource_group_name\", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\\w\\._\\(\\)]+$'),\n 'accountName': self._serialize.url(\"account_name\", account_name, 'str', max_length=24, min_length=3),\n 'subscriptionId': self._serialize.url(\"self._config.subscription_id\", self._config.subscription_id, 'str', min_length=1),\n 'BlobServicesName': self._serialize.url(\"blob_services_name\", blob_services_name, 'str'),\n }\n url = self._client.format_url(url, **path_format_arguments)\n\n # Construct parameters\n query_parameters = {} # type: Dict[str, Any]\n query_parameters['api-version'] = self._serialize.query(\"api_version\", api_version, 'str')\n\n # Construct headers\n header_parameters = {} # type: Dict[str, Any]\n header_parameters['Content-Type'] = self._serialize.header(\"content_type\", content_type, 'str')\n header_parameters['Accept'] = self._serialize.header(\"accept\", accept, 'str')\n\n body_content_kwargs = {} # type: Dict[str, Any]\n body_content = self._serialize.body(parameters, 'BlobServiceProperties')\n body_content_kwargs['content'] = body_content\n request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs)\n pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)\n response = pipeline_response.http_response\n\n if response.status_code not in [200]:\n map_error(status_code=response.status_code, response=response, error_map=error_map)\n raise HttpResponseError(response=response, error_format=ARMErrorFormat)\n\n deserialized = self._deserialize('BlobServiceProperties', pipeline_response)\n\n if cls:\n return cls(pipeline_response, deserialized, {})\n\n return deserialized\n set_service_properties.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}'} # type: ignore\n\n def get_service_properties(\n self,\n resource_group_name, # type: str\n account_name, # type: str\n **kwargs # type: Any\n ):\n # type: (...) -> \"_models.BlobServiceProperties\"\n \"\"\"Gets the properties of a storage account’s Blob service, including properties for Storage\n Analytics and CORS (Cross-Origin Resource Sharing) rules.\n\n :param resource_group_name: The name of the resource group within the user's subscription. The\n name is case insensitive.\n :type resource_group_name: str\n :param account_name: The name of the storage account within the specified resource group.\n Storage account names must be between 3 and 24 characters in length and use numbers and\n lower-case letters only.\n :type account_name: str\n :keyword callable cls: A custom type or function that will be passed the direct response\n :return: BlobServiceProperties, or the result of cls(response)\n :rtype: ~azure.mgmt.storage.v2021_01_01.models.BlobServiceProperties\n :raises: ~azure.core.exceptions.HttpResponseError\n \"\"\"\n cls = kwargs.pop('cls', None) # type: ClsType[\"_models.BlobServiceProperties\"]\n error_map = {\n 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError\n }\n error_map.update(kwargs.pop('error_map', {}))\n api_version = \"2021-01-01\"\n blob_services_name = \"default\"\n accept = \"application/json\"\n\n # Construct URL\n url = self.get_service_properties.metadata['url'] # type: ignore\n path_format_arguments = {\n 'resourceGroupName': self._serialize.url(\"resource_group_name\", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\\w\\._\\(\\)]+$'),\n 'accountName': self._serialize.url(\"account_name\", account_name, 'str', max_length=24, min_length=3),\n 'subscriptionId': self._serialize.url(\"self._config.subscription_id\", self._config.subscription_id, 'str', min_length=1),\n 'BlobServicesName': self._serialize.url(\"blob_services_name\", blob_services_name, 'str'),\n }\n url = self._client.format_url(url, **path_format_arguments)\n\n # Construct parameters\n query_parameters = {} # type: Dict[str, Any]\n query_parameters['api-version'] = self._serialize.query(\"api_version\", api_version, 'str')\n\n # Construct headers\n header_parameters = {} # type: Dict[str, Any]\n header_parameters['Accept'] = self._serialize.header(\"accept\", accept, 'str')\n\n request = self._client.get(url, query_parameters, header_parameters)\n pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)\n response = pipeline_response.http_response\n\n if response.status_code not in [200]:\n map_error(status_code=response.status_code, response=response, error_map=error_map)\n raise HttpResponseError(response=response, error_format=ARMErrorFormat)\n\n deserialized = self._deserialize('BlobServiceProperties', pipeline_response)\n\n if cls:\n return cls(pipeline_response, deserialized, {})\n\n return deserialized\n get_service_properties.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}'} # type: ignore\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":442,"cells":{"repo_name":{"kind":"string","value":"MicroPyramid/Django-CRM"},"path":{"kind":"string","value":"accounts/migrations/0005_auto_20190212_1334.py"},"size":{"kind":"string","value":"1498"},"content":{"kind":"string","value":"# Generated by Django 2.1.5 on 2019-02-12 08:04\n\nfrom django.conf import settings\nfrom django.db import migrations, models\nimport django.db.models.deletion\n\n\nclass Migration(migrations.Migration):\n\n dependencies = [\n (\"contacts\", \"0002_auto_20190212_1334\"),\n (\"leads\", \"0004_auto_20190212_1334\"),\n (\"accounts\", \"0004_account_status\"),\n ]\n\n operations = [\n migrations.RemoveField(\n model_name=\"account\",\n name=\"assigned_to\",\n ),\n migrations.RemoveField(\n model_name=\"account\",\n name=\"teams\",\n ),\n migrations.AddField(\n model_name=\"account\",\n name=\"contacts\",\n field=models.ManyToManyField(\n related_name=\"account_contacts\", to=\"contacts.Contact\"\n ),\n ),\n migrations.AddField(\n model_name=\"account\",\n name=\"leads\",\n field=models.ForeignKey(\n null=True,\n on_delete=django.db.models.deletion.SET_NULL,\n related_name=\"account_leads\",\n to=\"leads.Lead\",\n ),\n ),\n migrations.AlterField(\n model_name=\"account\",\n name=\"created_by\",\n field=models.ForeignKey(\n null=True,\n on_delete=django.db.models.deletion.SET_NULL,\n related_name=\"account_created_by\",\n to=settings.AUTH_USER_MODEL,\n ),\n ),\n ]\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":443,"cells":{"repo_name":{"kind":"string","value":"PeterPalmer/SvgSpinner"},"path":{"kind":"string","value":"SvgSpinner/Scripts/raphael.d.ts"},"size":{"kind":"string","value":"13860"},"content":{"kind":"string","value":"// Type definitions for Raphael 2.1\n// Project: http://raphaeljs.com\n// Definitions by: https://github.com/CheCoxshall\n// DefinitelyTyped: https://github.com/borisyankov/DefinitelyTyped\n\n\ninterface BoundingBox {\n x: number;\n y: number;\n x2: number;\n y2: number;\n width: number;\n height: number;\n}\n\ninterface RaphaelAnimation {\n delay(delay: number): RaphaelAnimation;\n repeat(repeat: number): RaphaelAnimation;\n}\n\ninterface RaphaelFont {\n\n}\n\ninterface RaphaelElement {\n animate(params: { [key: string]: any; }, ms: number, easing?: string, callback?: Function): RaphaelElement;\n animate(animation: RaphaelAnimation): RaphaelElement;\n animateWith(el: RaphaelElement, anim: RaphaelAnimation, params: any, ms: number, easing?: string, callback?: Function): RaphaelElement;\n animateWith(el: RaphaelElement, anim: RaphaelAnimation, animation: RaphaelAnimation): RaphaelElement;\n attr(attrName: string, value: any): RaphaelElement;\n attr(params: { [key: string]: any; }): RaphaelElement;\n attr(attrName: string): any;\n attr(attrNames: string[]): any[];\n click(handler: Function): RaphaelElement;\n clone(): RaphaelElement;\n data(key: string): any;\n data(key: string, value: any): RaphaelElement;\n dblclick(handler: Function): RaphaelElement;\n drag(onmove: (dx: number, dy: number, x: number, y: number, event: DragEvent) =>{ }, onstart: (x: number, y: number, event: DragEvent) =>{ }, onend: (DragEvent) =>{ }, mcontext?: any, scontext?: any, econtext?: any): RaphaelElement;\n getBBox(isWithoutTransform?: boolean): BoundingBox;\n glow(glow?: { width?: number; fill?: boolean; opacity?: number; offsetx?: number; offsety?: number; color?: string; }): RaphaelSet;\n hide(): RaphaelElement;\n hover(f_in: Function, f_out: Function, icontext?: any, ocontext?: any): RaphaelElement;\n id: string;\n insertAfter(): RaphaelElement;\n insertBefore(): RaphaelElement;\n isPointInside(x: number, y: number): boolean;\n isVisible(): boolean;\n matrix: RaphaelMatrix;\n mousedown(handler: Function): RaphaelElement;\n mousemove(handler: Function): RaphaelElement;\n mouseout(handler: Function): RaphaelElement;\n mouseover(handler: Function): RaphaelElement;\n mouseup(handler: Function): RaphaelElement;\n next: RaphaelElement;\n node: Element;\n onDragOver(f: Function): RaphaelElement;\n paper: RaphaelPaper;\n pause(anim?: RaphaelAnimation): RaphaelElement;\n prev: RaphaelElement;\n raphael: RaphaelStatic;\n remove();\n removeData(key?: string): RaphaelElement;\n resume(anim?: RaphaelAnimation): RaphaelElement;\n setTime(anim: RaphaelAnimation);\n setTime(anim: RaphaelAnimation, value: number): RaphaelElement;\n show(): RaphaelElement;\n status(): { anim: RaphaelAnimation; status: number; }[];\n status(anim: RaphaelAnimation): number;\n status(anim: RaphaelAnimation, value: number): RaphaelElement;\n stop(anim?: RaphaelAnimation): RaphaelElement;\n toBack(): RaphaelElement;\n toFront(): RaphaelElement;\n touchcancel(handler: Function): RaphaelElement;\n touchend(handler: Function): RaphaelElement;\n touchmove(handler: Function): RaphaelElement;\n touchstart(handler: Function): RaphaelElement;\n transform(): string;\n transform(tstr: string): RaphaelElement;\n unclick(handler? ): RaphaelElement;\n undblclick(handler? ): RaphaelElement;\n undrag(): RaphaelElement;\n unhover(): RaphaelElement;\n unhover(f_in, f_out): RaphaelElement;\n unmousedown(handler? ): RaphaelElement;\n unmousemove(handler? ): RaphaelElement;\n unmouseout(handler? ): RaphaelElement;\n unmouseover(handler? ): RaphaelElement;\n unmouseup(handler? ): RaphaelElement;\n untouchcancel(handler? ): RaphaelElement;\n untouchend(handler? ): RaphaelElement;\n untouchmove(handler? ): RaphaelElement;\n untouchstart(handler? ): RaphaelElement;\n}\n\ninterface RaphaelPath extends RaphaelElement {\n getPointAtLength(length: number): { x: number; y: number; alpha: number; };\n getSubpath(from: number, to: number): string;\n getTotalLength(): number;\n}\n\ninterface RaphaelSet {\n clear();\n exclude(element: RaphaelElement): boolean;\n forEach(callback: Function, thisArg?: any): RaphaelSet;\n pop(): RaphaelElement;\n push(...RaphaelElement: any[]): RaphaelElement;\n splice(index: number, count: number): RaphaelSet;\n splice(index: number, count: number, ...insertion: RaphaelElement[]): RaphaelSet;\n length: number;\n\n [key: number]: RaphaelElement;\n animate(params: { [key: string]: any; }, ms: number, easing?: string, callback?: Function): RaphaelElement;\n animate(animation: RaphaelAnimation): RaphaelElement;\n animateWith(el: RaphaelElement, anim: RaphaelAnimation, params: any, ms: number, easing?: string, callback?: Function): RaphaelElement;\n animateWith(el: RaphaelElement, anim: RaphaelAnimation, animation: RaphaelAnimation): RaphaelElement;\n attr(attrName: string, value: any): RaphaelElement;\n attr(params: { [key: string]: any; }): RaphaelElement;\n attr(attrName: string): any;\n attr(attrNames: string[]): any[];\n click(handler: Function): RaphaelElement;\n clone(): RaphaelElement;\n data(key: string): any;\n data(key: string, value: any): RaphaelElement;\n dblclick(handler: Function): RaphaelElement;\n drag(onmove: (dx: number, dy: number, x: number, y: number, event: DragEvent) =>{ }, onstart: (x: number, y: number, event: DragEvent) =>{ }, onend: (DragEvent) =>{ }, mcontext?: any, scontext?: any, econtext?: any): RaphaelElement;\n getBBox(isWithoutTransform?: boolean): BoundingBox;\n glow(glow?: { width?: number; fill?: boolean; opacity?: number; offsetx?: number; offsety?: number; color?: string; }): RaphaelSet;\n hide(): RaphaelElement;\n hover(f_in: Function, f_out: Function, icontext?: any, ocontext?: any): RaphaelElement;\n id: string;\n insertAfter(): RaphaelElement;\n insertBefore(): RaphaelElement;\n isPointInside(x: number, y: number): boolean;\n isVisible(): boolean;\n matrix: RaphaelMatrix;\n mousedown(handler: Function): RaphaelElement;\n mousemove(handler: Function): RaphaelElement;\n mouseout(handler: Function): RaphaelElement;\n mouseover(handler: Function): RaphaelElement;\n mouseup(handler: Function): RaphaelElement;\n next: RaphaelElement;\n onDragOver(f: Function): RaphaelElement;\n paper: RaphaelPaper;\n pause(anim?: RaphaelAnimation): RaphaelElement;\n prev: RaphaelElement;\n raphael: RaphaelStatic;\n remove();\n removeData(key?: string): RaphaelElement;\n resume(anim?: RaphaelAnimation): RaphaelElement;\n setTime(anim: RaphaelAnimation);\n setTime(anim: RaphaelAnimation, value: number): RaphaelElement;\n show(): RaphaelElement;\n status(): { anim: RaphaelAnimation; status: number; }[];\n status(anim: RaphaelAnimation): number;\n status(anim: RaphaelAnimation, value: number): RaphaelElement;\n stop(anim?: RaphaelAnimation): RaphaelElement;\n toBack(): RaphaelElement;\n toFront(): RaphaelElement;\n touchcancel(handler: Function): RaphaelElement;\n touchend(handler: Function): RaphaelElement;\n touchmove(handler: Function): RaphaelElement;\n touchstart(handler: Function): RaphaelElement;\n transform(): string;\n transform(tstr: string): RaphaelElement;\n unclick(handler? ): RaphaelElement;\n undblclick(handler? ): RaphaelElement;\n undrag(): RaphaelElement;\n unhover(): RaphaelElement;\n unhover(f_in, f_out): RaphaelElement;\n unmousedown(handler? ): RaphaelElement;\n unmousemove(handler? ): RaphaelElement;\n unmouseout(handler? ): RaphaelElement;\n unmouseover(handler? ): RaphaelElement;\n unmouseup(handler? ): RaphaelElement;\n untouchcancel(handler? ): RaphaelElement;\n untouchend(handler? ): RaphaelElement;\n untouchmove(handler? ): RaphaelElement;\n untouchstart(handler? ): RaphaelElement;\n}\n\ninterface RaphaelMatrix {\n add(a: number, b: number, c: number, d: number, e: number, f: number, matrix: RaphaelMatrix): RaphaelMatrix;\n clone(): RaphaelMatrix;\n invert(): RaphaelMatrix;\n rotate(a: number, x: number, y: number);\n scale(x: number, y?: number, cx?: number, cy?: number);\n split(): { dx: number; dy: number; scalex: number; scaley: number; shear: number; rotate: number; isSimple: boolean; };\n toTransformString(): string;\n translate(x: number, y: number);\n x(x: number, y: number);\n y(x: number, y: number);\n}\n\ninterface RaphaelPaper {\n add(JSON): RaphaelSet;\n bottom: RaphaelElement;\n canvas: Element;\n circle(x: number, y: number, r: number): RaphaelElement;\n clear();\n defs: Element;\n ellipse(x: number, y: number, rx: number, ry: number): RaphaelElement;\n forEach(callback: number, thisArg: any): RaphaelStatic;\n getById(id: number): RaphaelElement;\n getElementByPoint(x: number, y: number): RaphaelElement;\n getElementsByPoint(x: number, y: number): RaphaelSet;\n getFont(family: string, weight?: string, style?: string, stretch?: string): RaphaelFont;\n getFont(family: string, weight?: number, style?: string, stretch?: string): RaphaelFont;\n height: number;\n image(src: string, x: number, y: number, width: number, height: number): RaphaelElement;\n path(pathString?: string): RaphaelPath;\n print(x: number, y: number, str: string, font: RaphaelFont, size?: number, origin?: string, letter_spacing?: number): RaphaelPath;\n rect(x: number, y: number, width: number, height: number, r?: number): RaphaelElement;\n remove();\n renderfix();\n safari();\n set(elements?: RaphaelElement[]): RaphaelSet;\n setFinish();\n setSize(width: number, height: number);\n setStart();\n setViewBox(x: number, y: number, w: number, h: number, fit: boolean);\n text(x: number, y: number, text: string): RaphaelElement;\n top: RaphaelElement;\n width: number;\n}\n\ninterface RaphaelStatic {\n (container: HTMLElement, width: number, height: number, callback?: Function): RaphaelPaper;\n (container: string, width: number, height: number, callback?: Function): RaphaelPaper;\n (x: number, y: number, width: number, height: number, callback?: Function): RaphaelPaper;\n (all: Array, callback?: Function): RaphaelPaper;\n (onReadyCallback?: Function): RaphaelPaper;\n\n angle(x1: number, y1: number, x2: number, y2: number, x3?: number, y3?: number): number;\n animation(params: any, ms: number, easing?: string, callback?: Function): RaphaelAnimation;\n bezierBBox(p1x: number, p1y: number, c1x: number, c1y: number, c2x: number, c2y: number, p2x: number, p2y: number): { min: { x: number; y: number; }; max: { x: number; y: number; }; };\n bezierBBox(bez: Array): { min: { x: number; y: number; }; max: { x: number; y: number; }; };\n color(clr: string): { r: number; g: number; b: number; hex: string; error: boolean; h: number; s: number; v: number; l: number; };\n createUUID(): string;\n deg(deg: number): number;\n easing_formulas: any;\n el: any;\n findDotsAtSegment(p1x: number, p1y: number, c1x: number, c1y: number, c2x: number, c2y: number, p2x: number, p2y: number, t: number): { x: number; y: number; m: { x: number; y: number; }; n: { x: number; y: number; }; start: { x: number; y: number; }; end: { x: number; y: number; }; alpha: number; };\n fn: any;\n format(token: string, ...parameters: any[]): string;\n fullfill(token: string, json: JSON): string;\n //getColor {\n // (value?: number): string;\n // reset();\n //};\n getPointAtLength(path: string, length: number): { x: number; y: number; alpha: number; };\n getRGB(colour: string): { r: number; g: number; b: number; hex: string; error: boolean; };\n getSubpath(path: string, from: number, to: number): string;\n getTotalLength(path: string): number;\n hsb(h: number, s: number, b: number): string;\n hsb2rgb(h: number, s: number, v: number): { r: number; g: number; b: number; hex: string; };\n hsl(h: number, s: number, l: number): string;\n hsl2rgb(h: number, s: number, l: number): { r: number; g: number; b: number; hex: string; };\n is(o: any, type: string): boolean;\n isBBoxIntersect(bbox1: string, bbox2: string): boolean;\n isPointInsideBBox(bbox: string, x: number, y: number): boolean;\n isPointInsidePath(path: string, x: number, y: number): boolean;\n matrix(a: number, b: number, c: number, d: number, e: number, f: number): RaphaelMatrix;\n ninja();\n parsePathString(pathString: string): string[];\n parsePathString(pathString: string[]): string[];\n parseTransformString(TString: string): string[];\n parseTransformString(TString: string[]): string[];\n path2curve(pathString: string): string[];\n path2curve(pathString: string[]): string[];\n pathBBox(path: string): BoundingBox;\n pathIntersection(path1: string, path2: string): { x: number; y: number; t1: number; t2: number; segment1: number; segment2: number; bez1: Array; bez2: Array; }[];\n pathToRelative(pathString: string): string[];\n pathToRelative(pathString: string[]): string[];\n rad(deg: number): number;\n registerFont(font: RaphaelFont): RaphaelFont;\n rgb(r: number, g: number, b: number): string;\n rgb2hsb(r: number, g: number, b: number): { h: number; s: number; b: number; };\n rgb2hsl(r: number, g: number, b: number): { h: number; s: number; l: number; };\n setWindow(newwin: Window);\n snapTo(values: number, value: number, tolerance?: number): number;\n snapTo(values: number[], value: number, tolerance?: number): number;\n st: any;\n svg: boolean;\n toMatrix(path: string, transform: string): RaphaelMatrix;\n toMatrix(path: string, transform: string[]): RaphaelMatrix;\n transformPath(path: string, transform: string): string;\n transformPath(path: string, transform: string[]): string;\n type: string;\n vml: boolean;\n}\n\ndeclare var Raphael: RaphaelStatic;\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":444,"cells":{"repo_name":{"kind":"string","value":"arquio/apollo-server"},"path":{"kind":"string","value":"packages/apollo-server-koa/src/koaApollo.ts"},"size":{"kind":"string","value":"1981"},"content":{"kind":"string","value":"import * as koa from 'koa';\nimport {\n GraphQLOptions,\n HttpQueryError,\n runHttpQuery,\n} from 'apollo-server-core';\nimport * as GraphiQL from 'apollo-server-module-graphiql';\n\nexport interface KoaGraphQLOptionsFunction {\n (ctx: koa.Context): GraphQLOptions | Promise;\n}\n\nexport interface KoaHandler {\n (req: any, next): void;\n}\n\nexport function graphqlKoa(\n options: GraphQLOptions | KoaGraphQLOptionsFunction,\n): KoaHandler {\n if (!options) {\n throw new Error('Apollo Server requires options.');\n }\n\n if (arguments.length > 1) {\n throw new Error(\n `Apollo Server expects exactly one argument, got ${arguments.length}`,\n );\n }\n\n return (ctx: koa.Context): Promise => {\n return runHttpQuery([ctx], {\n method: ctx.request.method,\n options: options,\n query:\n ctx.request.method === 'POST' ? ctx.request.body : ctx.request.query,\n }).then(\n gqlResponse => {\n ctx.set('Content-Type', 'application/json');\n ctx.body = gqlResponse;\n },\n (error: HttpQueryError) => {\n if ('HttpQueryError' !== error.name) {\n throw error;\n }\n\n if (error.headers) {\n Object.keys(error.headers).forEach(header => {\n ctx.set(header, error.headers[header]);\n });\n }\n\n ctx.status = error.statusCode;\n ctx.body = error.message;\n },\n );\n };\n}\n\nexport interface KoaGraphiQLOptionsFunction {\n (ctx: koa.Context): GraphiQL.GraphiQLData | Promise;\n}\n\nexport function graphiqlKoa(\n options: GraphiQL.GraphiQLData | KoaGraphiQLOptionsFunction,\n) {\n return (ctx: koa.Context) => {\n const query = ctx.request.query;\n return GraphiQL.resolveGraphiQLString(query, options, ctx).then(\n graphiqlString => {\n ctx.set('Content-Type', 'text/html');\n ctx.body = graphiqlString;\n },\n error => {\n ctx.status = 500;\n ctx.body = error.message;\n },\n );\n };\n}\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":445,"cells":{"repo_name":{"kind":"string","value":"calonso-conabio/buscador"},"path":{"kind":"string","value":"app/lib/taxon_describers/conabio.rb"},"size":{"kind":"string","value":"566"},"content":{"kind":"string","value":"module TaxonDescribers\n class Conabio < Base\n\n def self.describer_name\n 'CONABIO'\n end\n\n def self.describe(taxon)\n if cat = taxon.scat\n page = conabio_service.search(cat.catalogo_id)\n\n if page.blank?\n TaxonDescribers::ConabioViejo.describe(taxon)\n else\n page\n end\n\n else # Consulta en las fichas viejas\n TaxonDescribers::ConabioViejo.describe(taxon)\n end\n end\n\n\n private\n\n def conabio_service\n @conabio_service=New_Conabio_Service.new(:timeout => 20)\n end\n end\nend"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":446,"cells":{"repo_name":{"kind":"string","value":"xingoxu/works"},"path":{"kind":"string","value":"index-src/js/nextpageajax.js"},"size":{"kind":"string","value":"1549"},"content":{"kind":"string","value":"/**\n * @author xingo\n * @date 2016-03-07 version 0.1\n * @description 首页无限向下加载\n * @update \n * \n */\ndefine([], function() {\n\tvar limitHeight = 200;\n\n\n\tvar getCurrentPage = function() {\n\t\treturn $('#page-nav').children('.current').text();\n\t};\n\tvar taskid = 0;\n\tvar processing = false;\n\n\tvar handler = function() {\n\t\tclearTimeout(taskid);\n\t\tif (processing) {\n\t\t\treturn;\n\t\t}\n\t\ttaskid = setTimeout(function() {\n\t\t\tprocessing = true;\n\t\t\t//check if on the bottom\n\t\t\tvar restHeight = $(document).height() - $(document).scrollTop() - $(window).height();\n\t\t\tif (restHeight > limitHeight) {\n\t\t\t\tprocessing = false;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t//check if is the last page\n\t\t\tvar currentPage = parseInt(getCurrentPage(), 10);\n\t\t\tif (currentPage >= $('#page-nav').children('.page-number:last').text()) {\n\t\t\t\tprocessing = false;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$('.loading-circle').show();\n\t\t\t$.get('page/' + (currentPage + 1) + '/')\n\t\t\t\t.done(function(data, textstatus, jqxhr) {\n\t\t\t\t\t$nextPageArticle = $(data).find('.body-wrap').children();\n\t\t\t\t\t$('#page-nav').remove();\n\t\t\t\t\t$('.loading-circle').hide().remove();\n\t\t\t\t\t$('.body-wrap').append($nextPageArticle);\n\n\t\t\t\t\tprocessing = false;\n\t\t\t\t})\n\t\t\t\t.fail(function() {\n\t\t\t\t\t$('.loading-circle').children('.fail-message').show()\n\t\t\t\t\t\t.siblings().hide();\n\t\t\t\t});\n\n\n\t\t}, 300);\n\n\t};\n\n\n\tvar bind = function() {\n\t\t$(window).scroll(handler);\n\t};\n\n\tvar remove = function() {\n\t\t$(window).unbind('scroll', handler);\n\t};\n\n\treturn {\n\t\tinit: function() {\n\t\t\tbind();\n\t\t},\n\t\tbind: bind,\n\t\tremove: remove,\n\t\thandler: handler\n\t};\n\n});"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":447,"cells":{"repo_name":{"kind":"string","value":"dcturner/tk_relic"},"path":{"kind":"string","value":"js/relics/relic.js"},"size":{"kind":"string","value":"687"},"content":{"kind":"string","value":"Relic = {};\nRelic['shaders'] = [];\n\nrelic_update = function() {};\n\nRelic.RelicScene = function(name) {\n\t// collada\n\t_this = this;\n\tthis.name = name;\n\tthis.ready = false;\n\n\t// COLLADA\n\tthis.relicLoader = new THREE.ColladaLoader();\n\tthis.relicLoader.load(\"relicAssets/carbon/geo/main.dae\", function(geo) {\n\t\t_this.relicConfig = new Relic.RelicConfig(geo);\n\t\tconsole.log(\"relic >> \" + name + \" >> created\");\n\t\t_this.ready = true;\n\t});\n\n\t// this.relicLoader = new THREE.OBJLoader();\n\t//\n\t// \tthis.relicLoader.load(\n\t// \t\t'relicAssets/carbon/geo/blend.obj',\n\t// \t\tfunction ( object ) {\n\t// \t\t\t_this.relicConfig = new Relic.RelicConfig(object);\n\t// \t\t}\n\t// \t);\n\n\tthis.update = function() {}\n}\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":448,"cells":{"repo_name":{"kind":"string","value":"gumblex/zhconv"},"path":{"kind":"string","value":"docs/conf.py"},"size":{"kind":"string","value":"9825"},"content":{"kind":"string","value":"#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# zhconv documentation build configuration file, created by\n# sphinx-quickstart on Tue Jan 17 19:18:49 2017.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\n#\n# All configuration values have a default; values that are commented out\n# serve to show the default.\n\n# If extensions (or modules to document with autodoc) are in another directory,\n# add these directories to sys.path here. If the directory is relative to the\n# documentation root, use os.path.abspath to make it absolute, like shown here.\n#\n# import os\n# import sys\n# sys.path.insert(0, os.path.abspath('.'))\n\n# -- General configuration ------------------------------------------------\n\n# If your documentation needs a minimal Sphinx version, state it here.\n#\n# needs_sphinx = '1.0'\n\n# Add any Sphinx extension module names here, as strings. They can be\n# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom\n# ones.\nextensions = [\n 'sphinx.ext.autodoc',\n]\n\n# Add any paths that contain templates here, relative to this directory.\ntemplates_path = ['_templates']\n\n# The suffix(es) of source filenames.\n# You can specify multiple suffix as a list of string:\n#\n# source_suffix = ['.rst', '.md']\nsource_suffix = '.rst'\n\n# The encoding of source files.\n#\n# source_encoding = 'utf-8-sig'\n\n# The master toctree document.\nmaster_doc = 'index'\n\n# General information about the project.\nproject = 'zhconv'\ncopyright = '2017, Dingyuan Wang'\nauthor = 'Dingyuan Wang'\n\n# The version info for the project you're documenting, acts as replacement for\n# |version| and |release|, also used in various other places throughout the\n# built documents.\n#\n# The short X.Y version.\nversion = '1.4.1'\n# The full version, including alpha/beta/rc tags.\nrelease = '1.4.1'\n\n# The language for content autogenerated by Sphinx. Refer to documentation\n# for a list of supported languages.\n#\n# This is also used if you do content translation via gettext catalogs.\n# Usually you set \"language\" from the command line for these cases.\nlanguage = 'zh_CN'\n\n# There are two options for replacing |today|: either, you set today to some\n# non-false value, then it is used:\n#\n# today = ''\n#\n# Else, today_fmt is used as the format for a strftime call.\n#\n# today_fmt = '%B %d, %Y'\n\n# List of patterns, relative to source directory, that match files and\n# directories to ignore when looking for source files.\n# This patterns also effect to html_static_path and html_extra_path\nexclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']\n\n# The reST default role (used for this markup: `text`) to use for all\n# documents.\n#\n# default_role = None\n\n# If true, '()' will be appended to :func: etc. cross-reference text.\n#\n# add_function_parentheses = True\n\n# If true, the current module name will be prepended to all description\n# unit titles (such as .. function::).\n#\n# add_module_names = True\n\n# If true, sectionauthor and moduleauthor directives will be shown in the\n# output. They are ignored by default.\n#\n# show_authors = False\n\n# The name of the Pygments (syntax highlighting) style to use.\npygments_style = 'sphinx'\n\n# A list of ignored prefixes for module index sorting.\n# modindex_common_prefix = []\n\n# If true, keep warnings as \"system message\" paragraphs in the built documents.\n# keep_warnings = False\n\n# If true, `todo` and `todoList` produce output, else they produce nothing.\ntodo_include_todos = False\n\n\n# -- Options for HTML output ----------------------------------------------\n\n# The theme to use for HTML and HTML Help pages. See the documentation for\n# a list of builtin themes.\n#\nhtml_theme = 'alabaster'\n\n# Theme options are theme-specific and customize the look and feel of a theme\n# further. For a list of options available for each theme, see the\n# documentation.\n#\n# html_theme_options = {}\n\n# Add any paths that contain custom themes here, relative to this directory.\n# html_theme_path = []\n\n# The name for this set of Sphinx documents.\n# \" v documentation\" by default.\n#\n# html_title = 'zhconv v1.2.1'\n\n# A shorter title for the navigation bar. Default is the same as html_title.\n#\n# html_short_title = None\n\n# The name of an image file (relative to this directory) to place at the top\n# of the sidebar.\n#\n# html_logo = None\n\n# The name of an image file (relative to this directory) to use as a favicon of\n# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32\n# pixels large.\n#\n# html_favicon = None\n\n# Add any paths that contain custom static files (such as style sheets) here,\n# relative to this directory. They are copied after the builtin static files,\n# so a file named \"default.css\" will overwrite the builtin \"default.css\".\nhtml_static_path = ['_static']\n\n# Add any extra paths that contain custom files (such as robots.txt or\n# .htaccess) here, relative to this directory. These files are copied\n# directly to the root of the documentation.\n#\n# html_extra_path = []\n\n# If not None, a 'Last updated on:' timestamp is inserted at every page\n# bottom, using the given strftime format.\n# The empty string is equivalent to '%b %d, %Y'.\n#\n# html_last_updated_fmt = None\n\n# If true, SmartyPants will be used to convert quotes and dashes to\n# typographically correct entities.\n#\n# html_use_smartypants = True\n\n# Custom sidebar templates, maps document names to template names.\n#\n# html_sidebars = {}\n\n# Additional templates that should be rendered to pages, maps page names to\n# template names.\n#\n# html_additional_pages = {}\n\n# If false, no module index is generated.\n#\n# html_domain_indices = True\n\n# If false, no index is generated.\n#\n# html_use_index = True\n\n# If true, the index is split into individual pages for each letter.\n#\n# html_split_index = False\n\n# If true, links to the reST sources are added to the pages.\n#\n# html_show_sourcelink = True\n\n# If true, \"Created using Sphinx\" is shown in the HTML footer. Default is True.\n#\n# html_show_sphinx = True\n\n# If true, \"(C) Copyright ...\" is shown in the HTML footer. Default is True.\n#\n# html_show_copyright = True\n\n# If true, an OpenSearch description file will be output, and all pages will\n# contain a tag referring to it. The value of this option must be the\n# base URL from which the finished HTML is served.\n#\n# html_use_opensearch = ''\n\n# This is the file name suffix for HTML files (e.g. \".xhtml\").\n# html_file_suffix = None\n\n# Language to be used for generating the HTML full-text search index.\n# Sphinx supports the following languages:\n# 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'\n# 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr', 'zh'\n#\n# html_search_language = 'en'\n\n# A dictionary with options for the search language support, empty by default.\n# 'ja' uses this config value.\n# 'zh' user can custom change `jieba` dictionary path.\n#\n# html_search_options = {'type': 'default'}\n\n# The name of a javascript file (relative to the configuration directory) that\n# implements a search results scorer. If empty, the default will be used.\n#\n# html_search_scorer = 'scorer.js'\n\n# Output file base name for HTML help builder.\nhtmlhelp_basename = 'zhconvdoc'\n\n# -- Options for LaTeX output ---------------------------------------------\n\nlatex_elements = {\n # The paper size ('letterpaper' or 'a4paper').\n #\n # 'papersize': 'letterpaper',\n\n # The font size ('10pt', '11pt' or '12pt').\n #\n # 'pointsize': '10pt',\n\n # Additional stuff for the LaTeX preamble.\n #\n # 'preamble': '',\n\n # Latex figure (float) alignment\n #\n # 'figure_align': 'htbp',\n}\n\n# Grouping the document tree into LaTeX files. List of tuples\n# (source start file, target name, title,\n# author, documentclass [howto, manual, or own class]).\nlatex_documents = [\n (master_doc, 'zhconv.tex', 'zhconv Documentation',\n 'Dingyuan Wang', 'manual'),\n]\n\n# The name of an image file (relative to this directory) to place at the top of\n# the title page.\n#\n# latex_logo = None\n\n# For \"manual\" documents, if this is true, then toplevel headings are parts,\n# not chapters.\n#\n# latex_use_parts = False\n\n# If true, show page references after internal links.\n#\n# latex_show_pagerefs = False\n\n# If true, show URL addresses after external links.\n#\n# latex_show_urls = False\n\n# Documents to append as an appendix to all manuals.\n#\n# latex_appendices = []\n\n# It false, will not define \\strong, \\code, \titleref, \\crossref ... but only\n# \\sphinxstrong, ..., \\sphinxtitleref, ... To help avoid clash with user added\n# packages.\n#\n# latex_keep_old_macro_names = True\n\n# If false, no module index is generated.\n#\n# latex_domain_indices = True\n\n\n# -- Options for manual page output ---------------------------------------\n\n# One entry per manual page. List of tuples\n# (source start file, name, description, authors, manual section).\nman_pages = [\n (master_doc, 'zhconv', 'zhconv Documentation',\n [author], 1)\n]\n\n# If true, show URL addresses after external links.\n#\n# man_show_urls = False\n\n\n# -- Options for Texinfo output -------------------------------------------\n\n# Grouping the document tree into Texinfo files. List of tuples\n# (source start file, target name, title, author,\n# dir menu entry, description, category)\ntexinfo_documents = [\n (master_doc, 'zhconv', 'zhconv Documentation',\n author, 'zhconv', 'Converts between Simplified and Traditional Chinese.',\n 'Miscellaneous'),\n]\n\n# Documents to append as an appendix to all manuals.\n#\n# texinfo_appendices = []\n\n# If false, no module index is generated.\n#\n# texinfo_domain_indices = True\n\n# How to display URL addresses: 'footnote', 'no', or 'inline'.\n#\n# texinfo_show_urls = 'footnote'\n\n# If true, do not generate a @detailmenu in the \"Top\" node's menu.\n#\n# texinfo_no_detailmenu = False\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":449,"cells":{"repo_name":{"kind":"string","value":"paulvickery/hypothesis-testing-calculator"},"path":{"kind":"string","value":"Android/HypothesisTestingAndroid/Properties/AssemblyInfo.cs"},"size":{"kind":"string","value":"1024"},"content":{"kind":"string","value":"using System.Reflection;\nusing System.Runtime.CompilerServices;\nusing Android.App;\n\n// Information about this assembly is defined by the following attributes.\n// Change them to the values specific to your project.\n\n[assembly: AssemblyTitle (\"HypothesisTestingAndroid\")]\n[assembly: AssemblyDescription (\"\")]\n[assembly: AssemblyConfiguration (\"\")]\n[assembly: AssemblyCompany (\"\")]\n[assembly: AssemblyProduct (\"\")]\n[assembly: AssemblyCopyright (\"James\")]\n[assembly: AssemblyTrademark (\"\")]\n[assembly: AssemblyCulture (\"\")]\n\n// The assembly version has the format \"{Major}.{Minor}.{Build}.{Revision}\".\n// The form \"{Major}.{Minor}.*\" will automatically update the build and revision,\n// and \"{Major}.{Minor}.{Build}.*\" will update just the revision.\n\n[assembly: AssemblyVersion (\"1.0.0\")]\n\n// The following attributes are used to specify the signing key for the assembly,\n// if desired. See the Mono documentation for more information about signing.\n\n//[assembly: AssemblyDelaySign(false)]\n//[assembly: AssemblyKeyFile(\"\")]\n\n"},"license":{"kind":"string","value":"mit"}}},{"rowIdx":450,"cells":{"repo_name":{"kind":"string","value":"redPanther/hyperion.ng"},"path":{"kind":"string","value":"src/hyperiond/main.cpp"},"size":{"kind":"string","value":"8877"},"content":{"kind":"string","value":"#include \n#include \n#include \n#include \n\n#ifndef __APPLE__\n/* prctl is Linux only */\n#include \n#endif\n\n#include \n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#include \"HyperionConfig.h\"\n\n#include \n#include \n#include \n#include \n#include \n\n#ifdef ENABLE_X11\n#include \n#endif\n\n#include \"hyperiond.h\"\n#include \"systray.h\"\n\nusing namespace commandline;\n\n#define PERM0664 QFileDevice::ReadOwner | QFileDevice::ReadGroup | QFileDevice::ReadOther | QFileDevice::WriteOwner | QFileDevice::WriteGroup\n\nvoid signal_handler(const int signum)\n{\n\tif(signum == SIGCHLD)\n\t{\n\t\t// only quit when a registered child process is gone\n\t\t// currently this feature is not active ...\n\t\treturn;\n\t}\n\tQCoreApplication::quit();\n\n\t// reset signal handler to default (in case this handler is not capable of stopping)\n\tsignal(signum, SIG_DFL);\n}\n\n\nvoid startNewHyperion(int parentPid, std::string hyperionFile, std::string configFile)\n{\n\tpid_t childPid = fork(); // child pid should store elsewhere for later use\n\tif ( childPid == 0 )\n\t{\n\t\tsleep(3);\n\t\texecl(hyperionFile.c_str(), hyperionFile.c_str(), \"--parent\", QString::number(parentPid).toStdString().c_str(), configFile.c_str(), NULL);\n\t\texit(0);\n\t}\n}\n\nQCoreApplication* createApplication(int &argc, char *argv[])\n{\n\tbool isGuiApp = false;\n\tbool forceNoGui = false;\n\t// command line\n\tfor (int i = 1; i < argc; ++i)\n\t{\n\t\tif (qstrcmp(argv[i], \"--desktop\") == 0)\n\t\t{\n\t\t\tisGuiApp = true;\n\t\t}\n\t\telse if (qstrcmp(argv[i], \"--service\") == 0)\n\t\t{\n\t\t\tisGuiApp = false;\n\t\t\tforceNoGui = true;\n\t\t}\n\t}\n\n\t// on osx/windows gui always available\n#if defined(__APPLE__) || defined(__WIN32__)\n\tisGuiApp = true && ! forceNoGui;\n#else\n\tif (!forceNoGui)\n\t{\n\t\t// if x11, then test if xserver is available\n\t\t#ifdef ENABLE_X11\n\t\tDisplay* dpy = XOpenDisplay(NULL);\n\t\tif (dpy != NULL) \n\t\t{\n\t\t\tXCloseDisplay(dpy);\n\t\t\tisGuiApp = true;\n\t\t}\n\t\t#endif\n\t}\n#endif\n\n\tif (isGuiApp)\n\t{\n\t\tQApplication* app = new QApplication(argc, argv);\n\t\tapp->setApplicationDisplayName(\"Hyperion\");\n\t\treturn app;\n\t}\n\n\tQCoreApplication* app = new QCoreApplication(argc, argv);\n\tapp->setApplicationName(\"Hyperion\");\n\tapp->setApplicationVersion(HYPERION_VERSION);\n\treturn app;\n}\n\nint main(int argc, char** argv)\n{\n\tsetenv(\"AVAHI_COMPAT_NOWARN\", \"1\", 1);\n\n\t// initialize main logger and set global log level\n\tLogger* log = Logger::getInstance(\"MAIN\");\n\tLogger::setLogLevel(Logger::WARNING);\n\n\t// Initialising QCoreApplication\n QScopedPointer app(createApplication(argc, argv));\n\tbool isGuiApp = (qobject_cast(app.data()) != 0 && QSystemTrayIcon::isSystemTrayAvailable());\n\n\tsignal(SIGINT, signal_handler);\n\tsignal(SIGTERM, signal_handler);\n\tsignal(SIGABRT, signal_handler);\n\tsignal(SIGCHLD, signal_handler);\n\tsignal(SIGPIPE, signal_handler);\n\n\t// force the locale\n\tsetlocale(LC_ALL, \"C\");\n\tQLocale::setDefault(QLocale::c());\n\n\tParser parser(\"Hyperion Daemon\");\n\tparser.addHelpOption();\n\n\tBooleanOption & versionOption = parser.add(0x0, \"version\", \"Show version information\");\n\tIntOption & parentOption = parser.add ('p', \"parent\", \"pid of parent hyperiond\"); // 2^22 is the max for Linux\n\tBooleanOption & silentOption = parser.add('s', \"silent\", \"do not print any outputs\");\n\tBooleanOption & verboseOption = parser.add('v', \"verbose\", \"Increase verbosity\");\n\tBooleanOption & debugOption = parser.add('d', \"debug\", \"Show debug messages\");\n\tparser.add(0x0, \"desktop\", \"show systray on desktop\");\n\tparser.add(0x0, \"service\", \"force hyperion to start as console service\");\n\tOption & exportConfigOption = parser.add