bigcode/the-stack-smol-xl · Datasets at Fast360
{
// 获取包含Hugging Face文本的span元素
const spans = link.querySelectorAll('span.whitespace-nowrap, span.hidden.whitespace-nowrap');
spans.forEach(span => {
if (span.textContent && span.textContent.trim().match(/Hugging\s*Face/i)) {
span.textContent = 'AI快站';
}
});
});
// 替换logo图片的alt属性
document.querySelectorAll('img[alt*="Hugging"], img[alt*="Face"]').forEach(img => {
if (img.alt.match(/Hugging\s*Face/i)) {
img.alt = 'AI快站 logo';
}
});
}
// 替换导航栏中的链接
function replaceNavigationLinks() {
// 已替换标记,防止重复运行
if (window._navLinksReplaced) {
return;
}
// 已经替换过的链接集合,防止重复替换
const replacedLinks = new Set();
// 只在导航栏区域查找和替换链接
const headerArea = document.querySelector('header') || document.querySelector('nav');
if (!headerArea) {
return;
}
// 在导航区域内查找链接
const navLinks = headerArea.querySelectorAll('a');
navLinks.forEach(link => {
// 如果已经替换过,跳过
if (replacedLinks.has(link)) return;
const linkText = link.textContent.trim();
const linkHref = link.getAttribute('href') || '';
// 替换Spaces链接 - 仅替换一次
if (
(linkHref.includes('/spaces') || linkHref === '/spaces' ||
linkText === 'Spaces' || linkText.match(/^s*Spacess*$/i)) &&
linkText !== 'OCR模型免费转Markdown' &&
linkText !== 'OCR模型免费转Markdown'
) {
link.textContent = 'OCR模型免费转Markdown';
link.href = 'https://fast360.xyz';
link.setAttribute('target', '_blank');
link.setAttribute('rel', 'noopener noreferrer');
replacedLinks.add(link);
}
// 删除Posts链接
else if (
(linkHref.includes('/posts') || linkHref === '/posts' ||
linkText === 'Posts' || linkText.match(/^s*Postss*$/i))
) {
if (link.parentNode) {
link.parentNode.removeChild(link);
}
replacedLinks.add(link);
}
// 替换Docs链接 - 仅替换一次
else if (
(linkHref.includes('/docs') || linkHref === '/docs' ||
linkText === 'Docs' || linkText.match(/^s*Docss*$/i)) &&
linkText !== '模型下载攻略'
) {
link.textContent = '模型下载攻略';
link.href = '/';
replacedLinks.add(link);
}
// 删除Enterprise链接
else if (
(linkHref.includes('/enterprise') || linkHref === '/enterprise' ||
linkText === 'Enterprise' || linkText.match(/^s*Enterprises*$/i))
) {
if (link.parentNode) {
link.parentNode.removeChild(link);
}
replacedLinks.add(link);
}
});
// 查找可能嵌套的Spaces和Posts文本
const textNodes = [];
function findTextNodes(element) {
if (element.nodeType === Node.TEXT_NODE) {
const text = element.textContent.trim();
if (text === 'Spaces' || text === 'Posts' || text === 'Enterprise') {
textNodes.push(element);
}
} else {
for (const child of element.childNodes) {
findTextNodes(child);
}
}
}
// 只在导航区域内查找文本节点
findTextNodes(headerArea);
// 替换找到的文本节点
textNodes.forEach(node => {
const text = node.textContent.trim();
if (text === 'Spaces') {
node.textContent = node.textContent.replace(/Spaces/g, 'OCR模型免费转Markdown');
} else if (text === 'Posts') {
// 删除Posts文本节点
if (node.parentNode) {
node.parentNode.removeChild(node);
}
} else if (text === 'Enterprise') {
// 删除Enterprise文本节点
if (node.parentNode) {
node.parentNode.removeChild(node);
}
}
});
// 标记已替换完成
window._navLinksReplaced = true;
}
// 替换代码区域中的域名
function replaceCodeDomains() {
// 特别处理span.hljs-string和span.njs-string元素
document.querySelectorAll('span.hljs-string, span.njs-string, span[class*="hljs-string"], span[class*="njs-string"]').forEach(span => {
if (span.textContent && span.textContent.includes('huggingface.co')) {
span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com');
}
});
// 替换hljs-string类的span中的域名(移除多余的转义符号)
document.querySelectorAll('span.hljs-string, span[class*="hljs-string"]').forEach(span => {
if (span.textContent && span.textContent.includes('huggingface.co')) {
span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com');
}
});
// 替换pre和code标签中包含git clone命令的域名
document.querySelectorAll('pre, code').forEach(element => {
if (element.textContent && element.textContent.includes('git clone')) {
const text = element.innerHTML;
if (text.includes('huggingface.co')) {
element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com');
}
}
});
// 处理特定的命令行示例
document.querySelectorAll('pre, code').forEach(element => {
const text = element.innerHTML;
if (text.includes('huggingface.co')) {
// 针对git clone命令的专门处理
if (text.includes('git clone') || text.includes('GIT_LFS_SKIP_SMUDGE=1')) {
element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com');
}
}
});
// 特别处理模型下载页面上的代码片段
document.querySelectorAll('.flex.border-t, .svelte_hydrator, .inline-block').forEach(container => {
const content = container.innerHTML;
if (content && content.includes('huggingface.co')) {
container.innerHTML = content.replace(/huggingface.co/g, 'aifasthub.com');
}
});
// 特别处理模型仓库克隆对话框中的代码片段
try {
// 查找包含"Clone this model repository"标题的对话框
const cloneDialog = document.querySelector('.svelte_hydration_boundary, [data-target="MainHeader"]');
if (cloneDialog) {
// 查找对话框中所有的代码片段和命令示例
const codeElements = cloneDialog.querySelectorAll('pre, code, span');
codeElements.forEach(element => {
if (element.textContent && element.textContent.includes('huggingface.co')) {
if (element.innerHTML.includes('huggingface.co')) {
element.innerHTML = element.innerHTML.replace(/huggingface.co/g, 'aifasthub.com');
} else {
element.textContent = element.textContent.replace(/huggingface.co/g, 'aifasthub.com');
}
}
});
}
// 更精确地定位克隆命令中的域名
document.querySelectorAll('[data-target]').forEach(container => {
const codeBlocks = container.querySelectorAll('pre, code, span.hljs-string');
codeBlocks.forEach(block => {
if (block.textContent && block.textContent.includes('huggingface.co')) {
if (block.innerHTML.includes('huggingface.co')) {
block.innerHTML = block.innerHTML.replace(/huggingface.co/g, 'aifasthub.com');
} else {
block.textContent = block.textContent.replace(/huggingface.co/g, 'aifasthub.com');
}
}
});
});
} catch (e) {
// 错误处理但不打印日志
}
}
// 当DOM加载完成后执行替换
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', () => {
replaceHeaderBranding();
replaceNavigationLinks();
replaceCodeDomains();
// 只在必要时执行替换 - 3秒后再次检查
setTimeout(() => {
if (!window._navLinksReplaced) {
console.log('[Client] 3秒后重新检查导航链接');
replaceNavigationLinks();
}
}, 3000);
});
} else {
replaceHeaderBranding();
replaceNavigationLinks();
replaceCodeDomains();
// 只在必要时执行替换 - 3秒后再次检查
setTimeout(() => {
if (!window._navLinksReplaced) {
console.log('[Client] 3秒后重新检查导航链接');
replaceNavigationLinks();
}
}, 3000);
}
// 增加一个MutationObserver来处理可能的动态元素加载
const observer = new MutationObserver(mutations => {
// 检查是否导航区域有变化
const hasNavChanges = mutations.some(mutation => {
// 检查是否存在header或nav元素变化
return Array.from(mutation.addedNodes).some(node => {
if (node.nodeType === Node.ELEMENT_NODE) {
// 检查是否是导航元素或其子元素
if (node.tagName === 'HEADER' || node.tagName === 'NAV' ||
node.querySelector('header, nav')) {
return true;
}
// 检查是否在导航元素内部
let parent = node.parentElement;
while (parent) {
if (parent.tagName === 'HEADER' || parent.tagName === 'NAV') {
return true;
}
parent = parent.parentElement;
}
}
return false;
});
});
// 只在导航区域有变化时执行替换
if (hasNavChanges) {
// 重置替换状态,允许再次替换
window._navLinksReplaced = false;
replaceHeaderBranding();
replaceNavigationLinks();
}
});
// 开始观察document.body的变化,包括子节点
if (document.body) {
observer.observe(document.body, { childList: true, subtree: true });
} else {
document.addEventListener('DOMContentLoaded', () => {
observer.observe(document.body, { childList: true, subtree: true });
});
}
})();
\n\n@@ summary.html.ep\n\n
\n
<%= $title %>\n\n
\nExperiment type summary
\n\n\n\nExperiment type | \nFile counts | \n
\n\n\n\n% for my $row ( @$experiment_type) {\n \n <%= $$row{'experiment_type'}%> | \n <%= $$row{'counts'}%> | \n
\n% }\n
\n\n\nLibrary strategy summary
\n\n\n\nLibrary strategy | \nSample counts | \n
\n\n\n\n% for my $row ( @$library_strategy){\n \n <%= $$row{'library_strategy'}%> | \n <%= $$row{'sample'}%> | \n
\n% }\n
\n\n\nChIP-Seq Histone summary
\n\n\n\nExperiment type | \nSample count | \n
\n\n\n\n% for my $row ( @$histone_count ){\n \n <%= $$row{'experiment_type'}%> | \n <%= $$row{'sample'}%> | \n
\n% }\n
\n\n\n\n"},"avg_line_length":{"kind":"number","value":22.1336633663,"string":"22.133663"},"max_line_length":{"kind":"number","value":110,"string":"110"},"alphanum_fraction":{"kind":"number","value":0.5736971595,"string":"0.573697"}}},{"rowIdx":462131,"cells":{"hexsha":{"kind":"string","value":"73ff59181d4e794cd24a5151012b4f4946dfda7e"},"size":{"kind":"number","value":219,"string":"219"},"ext":{"kind":"string","value":"pm"},"lang":{"kind":"string","value":"Perl"},"max_stars_repo_path":{"kind":"string","value":"lib/Webtoo/Template.pm"},"max_stars_repo_name":{"kind":"string","value":"supernovus/webtoo"},"max_stars_repo_head_hexsha":{"kind":"string","value":"7b8a68a913bddda7e2a4935654ea98c3409f3de2"},"max_stars_repo_licenses":{"kind":"list like","value":["Artistic-2.0"],"string":"[\n \"Artistic-2.0\"\n]"},"max_stars_count":{"kind":"null"},"max_stars_repo_stars_event_min_datetime":{"kind":"null"},"max_stars_repo_stars_event_max_datetime":{"kind":"null"},"max_issues_repo_path":{"kind":"string","value":"lib/Webtoo/Template.pm"},"max_issues_repo_name":{"kind":"string","value":"supernovus/webtoo"},"max_issues_repo_head_hexsha":{"kind":"string","value":"7b8a68a913bddda7e2a4935654ea98c3409f3de2"},"max_issues_repo_licenses":{"kind":"list like","value":["Artistic-2.0"],"string":"[\n \"Artistic-2.0\"\n]"},"max_issues_count":{"kind":"null"},"max_issues_repo_issues_event_min_datetime":{"kind":"null"},"max_issues_repo_issues_event_max_datetime":{"kind":"null"},"max_forks_repo_path":{"kind":"string","value":"lib/Webtoo/Template.pm"},"max_forks_repo_name":{"kind":"string","value":"supernovus/webtoo"},"max_forks_repo_head_hexsha":{"kind":"string","value":"7b8a68a913bddda7e2a4935654ea98c3409f3de2"},"max_forks_repo_licenses":{"kind":"list like","value":["Artistic-2.0"],"string":"[\n \"Artistic-2.0\"\n]"},"max_forks_count":{"kind":"null"},"max_forks_repo_forks_event_min_datetime":{"kind":"null"},"max_forks_repo_forks_event_max_datetime":{"kind":"null"},"content":{"kind":"string","value":"package Webtoo::Template;\n\nuse v5.12;\nuse Moo::Role;\n\nrequires qw(render);\n\nhas opts => (is => 'ro', default => sub { {} });\nhas path => (is => 'rw', default => sub { './views' });\nhas engine => (is => 'lazy');\n\n1;\n"},"avg_line_length":{"kind":"number","value":16.8461538462,"string":"16.846154"},"max_line_length":{"kind":"number","value":57,"string":"57"},"alphanum_fraction":{"kind":"number","value":0.5342465753,"string":"0.534247"}}},{"rowIdx":462132,"cells":{"hexsha":{"kind":"string","value":"ed30bf71910c8bfece96f00e206ac4cf3172ab1d"},"size":{"kind":"number","value":1286,"string":"1,286"},"ext":{"kind":"string","value":"perl"},"lang":{"kind":"string","value":"Perl"},"max_stars_repo_path":{"kind":"string","value":"BlobN2Off.perl"},"max_stars_repo_name":{"kind":"string","value":"k----n/lookup"},"max_stars_repo_head_hexsha":{"kind":"string","value":"d89367e6ff3e43947dbc902c14c4fe2b015b98fa"},"max_stars_repo_licenses":{"kind":"list like","value":["RSA-MD"],"string":"[\n \"RSA-MD\"\n]"},"max_stars_count":{"kind":"null"},"max_stars_repo_stars_event_min_datetime":{"kind":"null"},"max_stars_repo_stars_event_max_datetime":{"kind":"null"},"max_issues_repo_path":{"kind":"string","value":"BlobN2Off.perl"},"max_issues_repo_name":{"kind":"string","value":"k----n/lookup"},"max_issues_repo_head_hexsha":{"kind":"string","value":"d89367e6ff3e43947dbc902c14c4fe2b015b98fa"},"max_issues_repo_licenses":{"kind":"list like","value":["RSA-MD"],"string":"[\n \"RSA-MD\"\n]"},"max_issues_count":{"kind":"null"},"max_issues_repo_issues_event_min_datetime":{"kind":"null"},"max_issues_repo_issues_event_max_datetime":{"kind":"null"},"max_forks_repo_path":{"kind":"string","value":"BlobN2Off.perl"},"max_forks_repo_name":{"kind":"string","value":"k----n/lookup"},"max_forks_repo_head_hexsha":{"kind":"string","value":"d89367e6ff3e43947dbc902c14c4fe2b015b98fa"},"max_forks_repo_licenses":{"kind":"list like","value":["RSA-MD"],"string":"[\n \"RSA-MD\"\n]"},"max_forks_count":{"kind":"null"},"max_forks_repo_forks_event_min_datetime":{"kind":"null"},"max_forks_repo_forks_event_max_datetime":{"kind":"null"},"content":{"kind":"string","value":"#!/usr/bin/perl\nuse lib (\"$ENV{HOME}/lookup\", \"$ENV{HOME}/lib64/perl5\", \"/home/audris/lib64/perl5\",\"$ENV{HOME}/lib/perl5\", \"$ENV{HOME}/lib/x86_64-linux-gnu/perl\", \"$ENV{HOME}/share/perl5\");\n\nuse strict;\nuse warnings;\nuse Error qw(:try);\n\nuse TokyoCabinet;\nuse Compress::LZF;\n\nsub toHex { \n\treturn unpack \"H*\", $_[0]; \n} \n\nsub fromHex { \n\treturn pack \"H*\", $_[0]; \n} \n\nmy $sections = 128;\n\nmy $fbaseo=\"All.sha1o/sha1.blob_\";\nmy $fbasei =\"/data/All.blobs/blob_\";\n\nmy (%fhoso);\n#for my $sec (0 .. ($sections-1)){\nmy $sec = $ARGV[0];\nmy $pre = \"/fast\";\ntie %{$fhoso{$sec}}, \"TokyoCabinet::HDB\", \"$pre/${fbaseo}$sec.tch\", TokyoCabinet::HDB::OWRITER | TokyoCabinet::HDB::OCREAT,\n 16777213, -1, -1, TokyoCabinet::TDB::TLARGE, 100000\n or die \"cant open $pre/$fbaseo$sec.tch\\n\";\nmy $nn = 0;\nif ( -f \"$fbasei$sec.idx\"){\n open A, \"tac $fbasei$sec.idx|\" or die ($!);\n while (){\n chop ();\n my @x = split (/\\;/, $_, -1);\n my $of = $x[1];\n my $len = $x[2];\n my $hash = $x[3];\n if ($#x > 4){\n $hash = $x[4];\n }\n my $h = fromHex ($hash);\n if (defined $fhoso{$sec}{$h}){\n print \"done/updated $nn\\n\";\n last;\n }\n $nn ++;\n $fhoso{$sec}{$h} = pack (\"w w\", $of, $len); \n }\n}else{\n die \"no $fbasei$sec.idx\\n\";\n}\nuntie %{$fhoso{$sec}} \n\n\n"},"avg_line_length":{"kind":"number","value":22.5614035088,"string":"22.561404"},"max_line_length":{"kind":"number","value":173,"string":"173"},"alphanum_fraction":{"kind":"number","value":0.5435458787,"string":"0.543546"}}},{"rowIdx":462133,"cells":{"hexsha":{"kind":"string","value":"ed0142e10fded0ecb20d4c584c9dbfc1aa8758de"},"size":{"kind":"number","value":1357,"string":"1,357"},"ext":{"kind":"string","value":"pm"},"lang":{"kind":"string","value":"Perl"},"max_stars_repo_path":{"kind":"string","value":"BonnLogger.pm"},"max_stars_repo_name":{"kind":"string","value":"deapplegate/wtgpipeline"},"max_stars_repo_head_hexsha":{"kind":"string","value":"9693e8562022cc97bf5a96427e22965e1a5e8497"},"max_stars_repo_licenses":{"kind":"list like","value":["MIT"],"string":"[\n \"MIT\"\n]"},"max_stars_count":{"kind":"number","value":1,"string":"1"},"max_stars_repo_stars_event_min_datetime":{"kind":"string","value":"2019-03-15T04:01:19.000Z"},"max_stars_repo_stars_event_max_datetime":{"kind":"string","value":"2019-03-15T04:01:19.000Z"},"max_issues_repo_path":{"kind":"string","value":"BonnLogger.pm"},"max_issues_repo_name":{"kind":"string","value":"deapplegate/wtgpipeline"},"max_issues_repo_head_hexsha":{"kind":"string","value":"9693e8562022cc97bf5a96427e22965e1a5e8497"},"max_issues_repo_licenses":{"kind":"list like","value":["MIT"],"string":"[\n \"MIT\"\n]"},"max_issues_count":{"kind":"number","value":5,"string":"5"},"max_issues_repo_issues_event_min_datetime":{"kind":"string","value":"2017-12-11T00:11:39.000Z"},"max_issues_repo_issues_event_max_datetime":{"kind":"string","value":"2021-07-09T17:05:16.000Z"},"max_forks_repo_path":{"kind":"string","value":"BonnLogger.pm"},"max_forks_repo_name":{"kind":"string","value":"deapplegate/wtgpipeline"},"max_forks_repo_head_hexsha":{"kind":"string","value":"9693e8562022cc97bf5a96427e22965e1a5e8497"},"max_forks_repo_licenses":{"kind":"list like","value":["MIT"],"string":"[\n \"MIT\"\n]"},"max_forks_count":{"kind":"number","value":2,"string":"2"},"max_forks_repo_forks_event_min_datetime":{"kind":"string","value":"2017-08-15T21:19:11.000Z"},"max_forks_repo_forks_event_max_datetime":{"kind":"string","value":"2017-10-12T00:36:35.000Z"},"content":{"kind":"string","value":"#########################\n# @file BonnLogger.pm\n# \n# @brief Provides some convinient utils for operating DS9 through XPA\n#########################\n\n#$CVSID = \"$Id: BonnLogger.pm,v 1.2 2008-07-10 00:19:11 dapple Exp $\";\n\nuse Exporter 'import';\n@EXPORT = qw(log_start log_force_start log_status);\n\n#############################################################################\n\n$bonn_log_id = '-1';\n\nsub log_start {\n $raw_bonn_log_id = `./BonnLogger.py log maskImages.pl @ARGV`;\n die unless $? == 0;\n $bonn_log_id = $raw_bonn_log_id;\n chomp($bonn_log_id)\n\n}\n\n#############################################################################\n\nsub log_force_start {\n $raw_bonn_log_id = `./BonnLogger.py forceLog maskImages.pl @ARGV`;\n die unless $? == 0;\n $bonn_log_id = $raw_bonn_log_id;\n chomp($bonn_log_id)\n\n}\n\n#############################################################################\n\nsub log_status {\n\n my($exitCode, @comments) = @_;\n\n system(\"./BonnLogger.py update $bonn_log_id $exitCode @comments\");\n\n\n}\n\n#############################################################################\n\n\nsub log_status_and_exit {\n\n my($exitCode, @comments) = @_;\n\n system(\"./BonnLogger.py update $bonn_log_id $exitCode @comments\");\n exit $exitCode;\n\n}\n\n#############################################################################\n1;\n"},"avg_line_length":{"kind":"number","value":23,"string":"23"},"max_line_length":{"kind":"number","value":77,"string":"77"},"alphanum_fraction":{"kind":"number","value":0.4480471629,"string":"0.448047"}}},{"rowIdx":462134,"cells":{"hexsha":{"kind":"string","value":"ed908bed4ec2d3d14a105a6a3a77c058ae482cca"},"size":{"kind":"number","value":3448,"string":"3,448"},"ext":{"kind":"string","value":"pm"},"lang":{"kind":"string","value":"Perl"},"max_stars_repo_path":{"kind":"string","value":"auto-lib/Paws/EC2/DescribeCoipPools.pm"},"max_stars_repo_name":{"kind":"string","value":"0leksii/aws-sdk-perl"},"max_stars_repo_head_hexsha":{"kind":"string","value":"b2132fe3c79a06fd15b6137e8a0eb628de722e0f"},"max_stars_repo_licenses":{"kind":"list like","value":["Apache-2.0"],"string":"[\n \"Apache-2.0\"\n]"},"max_stars_count":{"kind":"number","value":164,"string":"164"},"max_stars_repo_stars_event_min_datetime":{"kind":"string","value":"2015-01-08T14:58:53.000Z"},"max_stars_repo_stars_event_max_datetime":{"kind":"string","value":"2022-02-20T19:16:24.000Z"},"max_issues_repo_path":{"kind":"string","value":"auto-lib/Paws/EC2/DescribeCoipPools.pm"},"max_issues_repo_name":{"kind":"string","value":"0leksii/aws-sdk-perl"},"max_issues_repo_head_hexsha":{"kind":"string","value":"b2132fe3c79a06fd15b6137e8a0eb628de722e0f"},"max_issues_repo_licenses":{"kind":"list like","value":["Apache-2.0"],"string":"[\n \"Apache-2.0\"\n]"},"max_issues_count":{"kind":"number","value":348,"string":"348"},"max_issues_repo_issues_event_min_datetime":{"kind":"string","value":"2015-01-07T22:08:38.000Z"},"max_issues_repo_issues_event_max_datetime":{"kind":"string","value":"2022-01-27T14:34:44.000Z"},"max_forks_repo_path":{"kind":"string","value":"auto-lib/Paws/EC2/DescribeCoipPools.pm"},"max_forks_repo_name":{"kind":"string","value":"0leksii/aws-sdk-perl"},"max_forks_repo_head_hexsha":{"kind":"string","value":"b2132fe3c79a06fd15b6137e8a0eb628de722e0f"},"max_forks_repo_licenses":{"kind":"list like","value":["Apache-2.0"],"string":"[\n \"Apache-2.0\"\n]"},"max_forks_count":{"kind":"number","value":87,"string":"87"},"max_forks_repo_forks_event_min_datetime":{"kind":"string","value":"2015-04-22T06:29:47.000Z"},"max_forks_repo_forks_event_max_datetime":{"kind":"string","value":"2021-09-29T14:45:55.000Z"},"content":{"kind":"string","value":"\npackage Paws::EC2::DescribeCoipPools;\n use Moose;\n has DryRun => (is => 'ro', isa => 'Bool');\n has Filters => (is => 'ro', isa => 'ArrayRef[Paws::EC2::Filter]', traits => ['NameInRequest'], request_name => 'Filter' );\n has MaxResults => (is => 'ro', isa => 'Int');\n has NextToken => (is => 'ro', isa => 'Str');\n has PoolIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'PoolId' );\n\n use MooseX::ClassAttribute;\n\n class_has _api_call => (isa => 'Str', is => 'ro', default => 'DescribeCoipPools');\n class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::DescribeCoipPoolsResult');\n class_has _result_key => (isa => 'Str', is => 'ro');\n1;\n\n### main pod documentation begin ###\n\n=head1 NAME\n\nPaws::EC2::DescribeCoipPools - Arguments for method DescribeCoipPools on L\n\n=head1 DESCRIPTION\n\nThis class represents the parameters used for calling the method DescribeCoipPools on the\nL service. Use the attributes of this class\nas arguments to method DescribeCoipPools.\n\nYou shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DescribeCoipPools.\n\n=head1 SYNOPSIS\n\n my $ec2 = Paws->service('EC2');\n my $DescribeCoipPoolsResult = $ec2->DescribeCoipPools(\n DryRun => 1, # OPTIONAL\n Filters => [\n {\n Name => 'MyString', # OPTIONAL\n Values => [\n 'MyString', ... # OPTIONAL\n ], # OPTIONAL\n },\n ...\n ], # OPTIONAL\n MaxResults => 1, # OPTIONAL\n NextToken => 'MyString', # OPTIONAL\n PoolIds => [ 'MyCoipPoolId', ... ], # OPTIONAL\n );\n\n # Results:\n my $CoipPools = $DescribeCoipPoolsResult->CoipPools;\n my $NextToken = $DescribeCoipPoolsResult->NextToken;\n\n # Returns a L object.\n\nValues for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.\nFor the AWS API documentation, see L\n\n=head1 ATTRIBUTES\n\n\n=head2 DryRun => Bool\n\nChecks whether you have the required permissions for the action,\nwithout actually making the request, and provides an error response. If\nyou have the required permissions, the error response is\nC. Otherwise, it is C.\n\n\n\n=head2 Filters => ArrayRef[L]\n\nThe filters. The following are the possible values:\n\n=over\n\n=item *\n\nC\n\n=back\n\n=over\n\n=item *\n\nC\n\n=back\n\n\n\n\n=head2 MaxResults => Int\n\nThe maximum number of results to return with a single call. To retrieve\nthe remaining results, make another call with the returned C\nvalue.\n\n\n\n=head2 NextToken => Str\n\nThe token for the next page of results.\n\n\n\n=head2 PoolIds => ArrayRef[Str|Undef]\n\nThe IDs of the address pools.\n\n\n\n\n=head1 SEE ALSO\n\nThis class forms part of L, documenting arguments for method DescribeCoipPools in L\n\n=head1 BUGS and CONTRIBUTIONS\n\nThe source code is located here: L\n\nPlease report bugs to: L\n\n=cut\n\n"},"avg_line_length":{"kind":"number","value":27.1496062992,"string":"27.149606"},"max_line_length":{"kind":"number","value":249,"string":"249"},"alphanum_fraction":{"kind":"number","value":0.6728538283,"string":"0.672854"}}},{"rowIdx":462135,"cells":{"hexsha":{"kind":"string","value":"ed754ec1da00a4d947add353410343fd72b0142c"},"size":{"kind":"number","value":13090,"string":"13,090"},"ext":{"kind":"string","value":"pm"},"lang":{"kind":"string","value":"Perl"},"max_stars_repo_path":{"kind":"string","value":"local/lib/perl5/Mojolicious/Plugin/DefaultHelpers.pm"},"max_stars_repo_name":{"kind":"string","value":"jkb78/extrajnm"},"max_stars_repo_head_hexsha":{"kind":"string","value":"6890e38e15f85ea9c09a141aa14affad0b8e91e7"},"max_stars_repo_licenses":{"kind":"list like","value":["MIT"],"string":"[\n \"MIT\"\n]"},"max_stars_count":{"kind":"null"},"max_stars_repo_stars_event_min_datetime":{"kind":"null"},"max_stars_repo_stars_event_max_datetime":{"kind":"null"},"max_issues_repo_path":{"kind":"string","value":"local/lib/perl5/Mojolicious/Plugin/DefaultHelpers.pm"},"max_issues_repo_name":{"kind":"string","value":"jkb78/extrajnm"},"max_issues_repo_head_hexsha":{"kind":"string","value":"6890e38e15f85ea9c09a141aa14affad0b8e91e7"},"max_issues_repo_licenses":{"kind":"list like","value":["MIT"],"string":"[\n \"MIT\"\n]"},"max_issues_count":{"kind":"null"},"max_issues_repo_issues_event_min_datetime":{"kind":"null"},"max_issues_repo_issues_event_max_datetime":{"kind":"null"},"max_forks_repo_path":{"kind":"string","value":"local/lib/perl5/Mojolicious/Plugin/DefaultHelpers.pm"},"max_forks_repo_name":{"kind":"string","value":"jkb78/extrajnm"},"max_forks_repo_head_hexsha":{"kind":"string","value":"6890e38e15f85ea9c09a141aa14affad0b8e91e7"},"max_forks_repo_licenses":{"kind":"list like","value":["MIT"],"string":"[\n \"MIT\"\n]"},"max_forks_count":{"kind":"null"},"max_forks_repo_forks_event_min_datetime":{"kind":"null"},"max_forks_repo_forks_event_max_datetime":{"kind":"null"},"content":{"kind":"string","value":"package Mojolicious::Plugin::DefaultHelpers;\nuse Mojo::Base 'Mojolicious::Plugin';\n\nuse Mojo::ByteStream;\nuse Mojo::Collection;\nuse Mojo::Exception;\nuse Mojo::IOLoop;\nuse Mojo::Util qw(dumper hmac_sha1_sum steady_time);\n\nsub register {\n my ($self, $app) = @_;\n\n # Controller alias helpers\n for my $name (qw(app flash param stash session url_for validation)) {\n $app->helper($name => sub { shift->$name(@_) });\n }\n\n # Stash key shortcuts (should not generate log messages)\n for my $name (qw(extends layout title)) {\n $app->helper($name => sub { shift->stash($name, @_) });\n }\n\n $app->helper(accepts => sub { $_[0]->app->renderer->accepts(@_) });\n $app->helper(b => sub { shift; Mojo::ByteStream->new(@_) });\n $app->helper(c => sub { shift; Mojo::Collection->new(@_) });\n $app->helper(config => sub { shift->app->config(@_) });\n\n $app->helper(content => sub { _content(0, 0, @_) });\n $app->helper(content_for => sub { _content(1, 0, @_) });\n $app->helper(content_with => sub { _content(0, 1, @_) });\n\n $app->helper($_ => $self->can(\"_$_\"))\n for qw(csrf_token current_route delay inactivity_timeout is_fresh url_with);\n\n $app->helper(dumper => sub { shift; dumper @_ });\n $app->helper(include => sub { shift->render_to_string(@_) });\n\n $app->helper(\"reply.$_\" => $self->can(\"_$_\")) for qw(asset static);\n\n $app->helper('reply.exception' => sub { _development('exception', @_) });\n $app->helper('reply.not_found' => sub { _development('not_found', @_) });\n\n $app->helper(ua => sub { shift->app->ua });\n}\n\nsub _asset {\n my $c = shift;\n $c->app->static->serve_asset($c, @_);\n $c->rendered;\n}\n\nsub _block { ref $_[0] eq 'CODE' ? $_[0]() : $_[0] }\n\nsub _content {\n my ($append, $replace, $c, $name, $content) = @_;\n $name ||= 'content';\n\n my $hash = $c->stash->{'mojo.content'} ||= {};\n if (defined $content) {\n if ($append) { $hash->{$name} .= _block($content) }\n if ($replace) { $hash->{$name} = _block($content) }\n else { $hash->{$name} //= _block($content) }\n }\n\n return Mojo::ByteStream->new($hash->{$name} // '');\n}\n\nsub _csrf_token {\n my $c = shift;\n return $c->session->{csrf_token}\n ||= hmac_sha1_sum($$ . steady_time . rand 999, $c->app->secrets->[0]);\n}\n\nsub _current_route {\n return '' unless my $route = shift->match->endpoint;\n return @_ ? $route->name eq shift : $route->name;\n}\n\nsub _delay {\n my $c = shift;\n my $tx = $c->render_later->tx;\n my $delay = Mojo::IOLoop->delay(@_);\n $delay->catch(sub { $c->helpers->reply->exception(pop) and undef $tx })->wait;\n}\n\nsub _development {\n my ($page, $c, $e) = @_;\n\n my $app = $c->app;\n $app->log->error($e = Mojo::Exception->new($e)) if $page eq 'exception';\n\n # Filtered stash snapshot\n my $stash = $c->stash;\n my %snapshot = map { $_ => $stash->{$_} }\n grep { !/^mojo\\./ and defined $stash->{$_} } keys %$stash;\n\n # Render with fallbacks\n my $mode = $app->mode;\n my $renderer = $app->renderer;\n my $options = {\n exception => $page eq 'exception' ? $e : undef,\n format => $stash->{format} || $renderer->default_format,\n handler => undef,\n snapshot => \\%snapshot,\n status => $page eq 'exception' ? 500 : 404,\n template => \"$page.$mode\"\n };\n my $bundled = 'mojo/' . ($mode eq 'development' ? 'debug' : $page);\n return $c if _fallbacks($c, $options, $page, $bundled);\n _fallbacks($c, {%$options, format => 'html'}, $page, $bundled);\n return $c;\n}\n\nsub _fallbacks {\n my ($c, $options, $template, $bundled) = @_;\n\n # Mode specific template\n return 1 if $c->render_maybe(%$options);\n\n # Normal template\n return 1 if $c->render_maybe(%$options, template => $template);\n\n # Inline template\n my $stash = $c->stash;\n return undef unless $stash->{format} eq 'html';\n delete @$stash{qw(extends layout)};\n return $c->render_maybe($bundled, %$options, handler => 'ep');\n}\n\nsub _inactivity_timeout {\n my ($c, $timeout) = @_;\n my $stream = Mojo::IOLoop->stream($c->tx->connection // '');\n $stream->timeout($timeout) if $stream;\n return $c;\n}\n\nsub _is_fresh {\n my ($c, %options) = @_;\n return $c->app->static->is_fresh($c, \\%options);\n}\n\nsub _static {\n my ($c, $file) = @_;\n return !!$c->rendered if $c->app->static->serve($c, $file);\n $c->app->log->debug(qq{Static file \"$file\" not found});\n return !$c->helpers->reply->not_found;\n}\n\nsub _url_with {\n my $c = shift;\n return $c->url_for(@_)->query($c->req->url->query->clone);\n}\n\n1;\n\n=encoding utf8\n\n=head1 NAME\n\nMojolicious::Plugin::DefaultHelpers - Default helpers plugin\n\n=head1 SYNOPSIS\n\n # Mojolicious\n $app->plugin('DefaultHelpers');\n\n # Mojolicious::Lite\n plugin 'DefaultHelpers';\n\n=head1 DESCRIPTION\n\nL is a collection of helpers for\nL.\n\nThis is a core plugin, that means it is always enabled and its code a good\nexample for learning to build new plugins, you're welcome to fork it.\n\nSee L for a list of plugins that are available\nby default.\n\n=head1 HELPERS\n\nL implements the following helpers.\n\n=head2 accepts\n\n my $formats = $c->accepts;\n my $format = $c->accepts('html', 'json', 'txt');\n\nSelect best possible representation for resource from C request header,\nC stash value or C C/C parameter with\nL, defaults to returning the first extension\nif no preference could be detected.\n\n # Check if JSON is acceptable\n $c->render(json => {hello => 'world'}) if $c->accepts('json');\n\n # Check if JSON was specifically requested\n $c->render(json => {hello => 'world'}) if $c->accepts('', 'json');\n\n # Unsupported representation\n $c->render(data => '', status => 204)\n unless my $format = $c->accepts('html', 'json');\n\n # Detected representations to select from\n my @formats = @{$c->accepts};\n\n=head2 app\n\n %= app->secrets->[0]\n\nAlias for L.\n\n=head2 b\n\n %= b('test 123')->b64_encode\n\nTurn string into a L object.\n\n=head2 c\n\n %= c('a', 'b', 'c')->shuffle->join\n\nTurn list into a L object.\n\n=head2 config\n\n %= config 'something'\n\nAlias for L.\n\n=head2 content\n\n %= content foo => begin\n test\n % end\n %= content bar => 'Hello World!'\n %= content 'foo'\n %= content 'bar'\n %= content\n\nStore partial rendered content in a named buffer and retrieve it later,\ndefaults to retrieving the named buffer C, which is commonly used for\nthe renderers C and C features. New content will be ignored if\nthe named buffer is already in use.\n\n=head2 content_for\n\n % content_for foo => begin\n test\n % end\n %= content_for 'foo'\n\nSame as L\"content\">, but appends content to named buffers if they are already\nin use.\n\n % content_for message => begin\n Hello\n % end\n % content_for message => begin\n world!\n % end\n %= content 'message'\n\n=head2 content_with\n\n % content_with foo => begin\n test\n % end\n %= content_with 'foo'\n\nSame as L\"content\">, but replaces content of named buffers if they are\nalready in use.\n\n % content message => begin\n world!\n % end\n % content_with message => begin\n Hello <%= content 'message' %>\n % end\n %= content 'message'\n\n=head2 csrf_token\n\n %= csrf_token\n\nGet CSRF token from L\"session\">, and generate one if none exists.\n\n=head2 current_route\n\n % if (current_route 'login') {\n Welcome to Mojolicious!\n % }\n %= current_route\n\nCheck or get name of current route.\n\n=head2 delay\n\n $c->delay(sub {...}, sub {...});\n\nDisable automatic rendering and use L to manage callbacks\nand control the flow of events, which can help you avoid deep nested closures\nthat often result from continuation-passing style. Also keeps a reference to\nL in case the underlying connection gets closed\nearly, and calls L\"reply-Eexception\"> if an exception gets thrown in one\nof the steps, breaking the chain.\n\n # Longer version\n $c->render_later;\n my $tx = $c->tx;\n my $delay = Mojo::IOLoop->delay(sub {...}, sub {...});\n $delay->catch(sub { $c->reply->exception(pop) and undef $tx })->wait;\n\n # Non-blocking request\n $c->delay(\n sub {\n my $delay = shift;\n $c->ua->get('http://mojolicious.org' => $delay->begin);\n },\n sub {\n my ($delay, $tx) = @_;\n $c->render(json => {title => $tx->res->dom->at('title')->text});\n }\n );\n\n=head2 dumper\n\n %= dumper {some => 'data'}\n\nDump a Perl data structure with L, very useful for\ndebugging.\n\n=head2 extends\n\n % extends 'blue';\n % extends 'blue', title => 'Blue!';\n\nSet C stash value, all additional key/value pairs get merged into the\nL\"stash\">.\n\n=head2 flash\n\n %= flash 'foo'\n\nAlias for L.\n\n=head2 inactivity_timeout\n\n $c = $c->inactivity_timeout(3600);\n\nUse L to find the current connection and increase\ntimeout if possible.\n\n # Longer version\n Mojo::IOLoop->stream($c->tx->connection)->timeout(3600);\n\n=head2 include\n\n %= include 'menubar'\n %= include 'menubar', format => 'txt'\n\nAlias for L.\n\n=head2 is_fresh\n\n my $bool = $c->is_fresh;\n my $bool = $c->is_fresh(etag => 'abc');\n my $bool = $c->is_fresh(last_modified => $epoch);\n\nCheck freshness of request by comparing the C and\nC request headers to the C and C\nresponse headers with L.\n\n # Add ETag/Last-Modified headers and check freshness before rendering\n $c->is_fresh(etag => 'abc', last_modified => 1424985708)\n ? $c->rendered(304)\n : $c->render(text => 'I ♥ Mojolicious!');\n\n=head2 layout\n\n % layout 'green';\n % layout 'green', title => 'Green!';\n\nSet C stash value, all additional key/value pairs get merged into the\nL\"stash\">.\n\n=head2 param\n\n %= param 'foo'\n\nAlias for L.\n\n=head2 reply->asset\n\n $c->reply->asset(Mojo::Asset::File->new);\n\nReply with a L or L object using\nL, and perform content negotiation with\nC, C and C headers.\n\n # Serve asset with custom modification time\n my $asset = Mojo::Asset::Memory->new;\n $asset->add_chunk('Hello World!')->mtime(784111777);\n $c->res->headers->content_type('text/plain');\n $c->reply->asset($asset);\n\n # Serve static file if it exists\n if (my $asset = $c->app->static->file('images/logo.png')) {\n $c->res->headers->content_type('image/png');\n $c->reply->asset($asset);\n }\n\n=head2 reply->exception\n\n $c = $c->reply->exception('Oops!');\n $c = $c->reply->exception(Mojo::Exception->new('Oops!'));\n\nRender the exception template C or\nC and set the response status code to C<500>. Also sets\nthe stash values C to a L object and C to\na copy of the L\"stash\"> for use in the templates.\n\n=head2 reply->not_found\n\n $c = $c->reply->not_found;\n\nRender the not found template C or\nC and set the response status code to C<404>. Also sets\nthe stash value C to a copy of the L\"stash\"> for use in the\ntemplates.\n\n=head2 reply->static\n\n my $bool = $c->reply->static('images/logo.png');\n my $bool = $c->reply->static('../lib/MyApp.pm');\n\nReply with a static file using L, usually from the\nC directories or C sections of your application. Note that this\nhelper does not protect from traversing to parent directories.\n\n # Serve file with a custom content type\n $c->res->headers->content_type('application/myapp');\n $c->reply->static('foo.txt');\n\n=head2 session\n\n %= session 'foo'\n\nAlias for L.\n\n=head2 stash\n\n %= stash 'foo'\n % stash foo => 'bar';\n\nAlias for L.\n\n %= stash('name') // 'Somebody'\n\n=head2 title\n\n %= title\n % title 'Welcome!';\n % title 'Welcome!', foo => 'bar';\n\nGet or set C stash value, all additional key/value pairs get merged into\nthe L\"stash\">.\n\n=head2 ua\n\n %= ua->get('mojolicious.org')->res->dom->at('title')->text\n\nAlias for L.\n\n=head2 url_for\n\n %= url_for 'named', controller => 'bar', action => 'baz'\n\nAlias for L.\n\n %= url_for('/index.html')->query(foo => 'bar')\n\n=head2 url_with\n\n %= url_with 'named', controller => 'bar', action => 'baz'\n\nDoes the same as L\"url_for\">, but inherits query parameters from the current\nrequest.\n\n %= url_with->query([page => 2])\n\n=head2 validation\n\n %= validation->param('foo')\n\nAlias for L.\n\n=head1 METHODS\n\nL inherits all methods from\nL and implements the following new ones.\n\n=head2 register\n\n $plugin->register(Mojolicious->new);\n\nRegister helpers in L application.\n\n=head1 SEE ALSO\n\nL, L, L.\n\n=cut\n"},"avg_line_length":{"kind":"number","value":25.4174757282,"string":"25.417476"},"max_line_length":{"kind":"number","value":80,"string":"80"},"alphanum_fraction":{"kind":"number","value":0.6519480519,"string":"0.651948"}}},{"rowIdx":462136,"cells":{"hexsha":{"kind":"string","value":"73ec9da654be69c6a473186df17969a5dcb13ca2"},"size":{"kind":"number","value":2826,"string":"2,826"},"ext":{"kind":"string","value":"pm"},"lang":{"kind":"string","value":"Perl"},"max_stars_repo_path":{"kind":"string","value":"perl/vendor/lib/Moose/Meta/Attribute/Native/Trait/Counter.pm"},"max_stars_repo_name":{"kind":"string","value":"ifleeyo180/VspriteMoodleWebsite"},"max_stars_repo_head_hexsha":{"kind":"string","value":"38baa924829c83808d2c87d44740ff365927a646"},"max_stars_repo_licenses":{"kind":"list like","value":["Apache-2.0"],"string":"[\n \"Apache-2.0\"\n]"},"max_stars_count":{"kind":"number","value":2,"string":"2"},"max_stars_repo_stars_event_min_datetime":{"kind":"string","value":"2021-11-19T22:37:28.000Z"},"max_stars_repo_stars_event_max_datetime":{"kind":"string","value":"2021-11-22T18:04:55.000Z"},"max_issues_repo_path":{"kind":"string","value":"perl/vendor/lib/Moose/Meta/Attribute/Native/Trait/Counter.pm"},"max_issues_repo_name":{"kind":"string","value":"ifleeyo180/VspriteMoodleWebsite"},"max_issues_repo_head_hexsha":{"kind":"string","value":"38baa924829c83808d2c87d44740ff365927a646"},"max_issues_repo_licenses":{"kind":"list like","value":["Apache-2.0"],"string":"[\n \"Apache-2.0\"\n]"},"max_issues_count":{"kind":"number","value":6,"string":"6"},"max_issues_repo_issues_event_min_datetime":{"kind":"string","value":"2021-11-18T00:39:48.000Z"},"max_issues_repo_issues_event_max_datetime":{"kind":"string","value":"2021-11-20T00:31:40.000Z"},"max_forks_repo_path":{"kind":"string","value":"perl/vendor/lib/Moose/Meta/Attribute/Native/Trait/Counter.pm"},"max_forks_repo_name":{"kind":"string","value":"ifleeyo180/VspriteMoodleWebsite"},"max_forks_repo_head_hexsha":{"kind":"string","value":"38baa924829c83808d2c87d44740ff365927a646"},"max_forks_repo_licenses":{"kind":"list like","value":["Apache-2.0"],"string":"[\n \"Apache-2.0\"\n]"},"max_forks_count":{"kind":"null"},"max_forks_repo_forks_event_min_datetime":{"kind":"null"},"max_forks_repo_forks_event_max_datetime":{"kind":"null"},"content":{"kind":"string","value":"package Moose::Meta::Attribute::Native::Trait::Counter;\nour $VERSION = '2.2014';\n\nuse Moose::Role;\nwith 'Moose::Meta::Attribute::Native::Trait';\n\nsub _helper_type { 'Num' }\nsub _root_types { 'Num', 'Int' }\n\nno Moose::Role;\n\n1;\n\n# ABSTRACT: Helper trait for Int attributes which represent counters\n\n__END__\n\n=pod\n\n=encoding UTF-8\n\n=head1 NAME\n\nMoose::Meta::Attribute::Native::Trait::Counter - Helper trait for Int attributes which represent counters\n\n=head1 VERSION\n\nversion 2.2014\n\n=head1 SYNOPSIS\n\n package MyHomePage;\n use Moose;\n\n has 'counter' => (\n traits => ['Counter'],\n is => 'ro',\n isa => 'Num',\n default => 0,\n handles => {\n inc_counter => 'inc',\n dec_counter => 'dec',\n reset_counter => 'reset',\n },\n );\n\n my $page = MyHomePage->new();\n $page->inc_counter; # same as $page->counter( $page->counter + 1 );\n $page->dec_counter; # same as $page->counter( $page->counter - 1 );\n\n my $count_by_twos = 2;\n $page->inc_counter($count_by_twos);\n\n=head1 DESCRIPTION\n\nThis trait provides native delegation methods for counters. A counter can be\nany sort of number (integer or not). The delegation methods allow you to\nincrement, decrement, or reset the value.\n\n=head1 DEFAULT TYPE\n\nIf you don't provide an C value for your attribute, it will default to\nC.\n\n=head1 PROVIDED METHODS\n\n=over 4\n\n=item * B\n\nSets the counter to the specified value and returns the new value.\n\nThis method requires a single argument.\n\n=item * B\n\n=item * B\n\nIncreases the attribute value by the amount of the argument, or by 1 if no\nargument is given. This method returns the new value.\n\nThis method accepts a single argument.\n\n=item * B\n\n=item * B\n\nDecreases the attribute value by the amount of the argument, or by 1 if no\nargument is given. This method returns the new value.\n\nThis method accepts a single argument.\n\n=item * B\n\nResets the value stored in this slot to its default value, and returns the new\nvalue.\n\n=back\n\n=head1 BUGS\n\nSee L for details on reporting bugs.\n\n=head1 AUTHORS\n\n=over 4\n\n=item *\n\nStevan Little \n\n=item *\n\nDave Rolsky \n\n=item *\n\nJesse Luehrs \n\n=item *\n\nShawn M Moore \n\n=item *\n\nיובל קוג'מן (Yuval Kogman) \n\n=item *\n\nKaren Etheridge \n\n=item *\n\nFlorian Ragwitz \n\n=item *\n\nHans Dieter Pearcey \n\n=item *\n\nChris Prather \n\n=item *\n\nMatt S Trout \n\n=back\n\n=head1 COPYRIGHT AND LICENSE\n\nThis software is copyright (c) 2006 by Infinity Interactive, Inc.\n\nThis is free software; you can redistribute it and/or modify it under\nthe same terms as the Perl 5 programming language system itself.\n\n=cut\n"},"avg_line_length":{"kind":"number","value":17.8860759494,"string":"17.886076"},"max_line_length":{"kind":"number","value":105,"string":"105"},"alphanum_fraction":{"kind":"number","value":0.6924982307,"string":"0.692498"}}},{"rowIdx":462137,"cells":{"hexsha":{"kind":"string","value":"73f8a6d4374b4f14b3df69171274fc0f6119c23d"},"size":{"kind":"number","value":1959,"string":"1,959"},"ext":{"kind":"string","value":"pm"},"lang":{"kind":"string","value":"Perl"},"max_stars_repo_path":{"kind":"string","value":"lib/Mojolicious/Command/Generate/LiteApp.pm"},"max_stars_repo_name":{"kind":"string","value":"rsp/mojo"},"max_stars_repo_head_hexsha":{"kind":"string","value":"bca70181288d4922a4d7806071f588005396e354"},"max_stars_repo_licenses":{"kind":"list like","value":["Artistic-2.0"],"string":"[\n \"Artistic-2.0\"\n]"},"max_stars_count":{"kind":"number","value":1,"string":"1"},"max_stars_repo_stars_event_min_datetime":{"kind":"string","value":"2019-06-27T08:04:23.000Z"},"max_stars_repo_stars_event_max_datetime":{"kind":"string","value":"2019-06-27T08:04:23.000Z"},"max_issues_repo_path":{"kind":"string","value":"lib/Mojolicious/Command/Generate/LiteApp.pm"},"max_issues_repo_name":{"kind":"string","value":"rsp/mojo"},"max_issues_repo_head_hexsha":{"kind":"string","value":"bca70181288d4922a4d7806071f588005396e354"},"max_issues_repo_licenses":{"kind":"list like","value":["Artistic-2.0"],"string":"[\n \"Artistic-2.0\"\n]"},"max_issues_count":{"kind":"null"},"max_issues_repo_issues_event_min_datetime":{"kind":"null"},"max_issues_repo_issues_event_max_datetime":{"kind":"null"},"max_forks_repo_path":{"kind":"string","value":"lib/Mojolicious/Command/Generate/LiteApp.pm"},"max_forks_repo_name":{"kind":"string","value":"rsp/mojo"},"max_forks_repo_head_hexsha":{"kind":"string","value":"bca70181288d4922a4d7806071f588005396e354"},"max_forks_repo_licenses":{"kind":"list like","value":["Artistic-2.0"],"string":"[\n \"Artistic-2.0\"\n]"},"max_forks_count":{"kind":"null"},"max_forks_repo_forks_event_min_datetime":{"kind":"null"},"max_forks_repo_forks_event_max_datetime":{"kind":"null"},"content":{"kind":"string","value":"# Copyright (C) 2008-2009, Sebastian Riedel.\n\npackage Mojolicious::Command::Generate::LiteApp;\n\nuse strict;\nuse warnings;\n\nuse base 'Mojo::Command';\n\n__PACKAGE__->attr(description => <<'EOF');\nGenerate a minimalistic web application.\nEOF\n__PACKAGE__->attr(usage => <<\"EOF\");\nusage: $0 generate lite_app [NAME]\nEOF\n\n# If for any reason you're not completely satisfied, I hate you.\nsub run {\n my ($self, $name) = @_;\n $name ||= 'myapp.pl';\n\n # App\n $self->renderer->line_start('%%');\n $self->renderer->tag_start('<%%');\n $self->renderer->tag_end('%%>');\n $self->render_to_rel_file('liteapp', $name);\n $self->chmod_file($name, 0744);\n}\n\n1;\n__DATA__\n@@ liteapp\n%% my $class = shift;\n#!/usr/bin/env perl\n\nuse Mojolicious::Lite;\n\nget '/' => 'index';\n\nget '/:groovy' => sub {\n my $self = shift;\n $self->render_text($self->stash('groovy'));\n};\n\nshagadelic;\n<%%= '__DATA__' %%>\n\n<%%= '@@ index.html.ep' %%>\n% layout 'funky';\nYea baby!\n\n<%%= '@@ layouts/funky.html.ep' %%>\n\n Funky!\n <%== content %>\n