Dataset Viewer
Auto-converted to Parquet Duplicate
conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Adjust test for newer conventions\n" }, { "from": "human", "value": "BEGIN { @*INC.push: 'lib' };\nuse SVG::Plot::Data::Series;\nuse Test;\nplan *;\n\nok my $s = SVG::Plot::Data::Series.new(), 'empty constructor is OK';\ndies-ok { $s.range() }, 'range of empty serie...
perl
chosen
[ { "from": "system", "value": "Fix for OpenBSD (it uses a slightly different output for uptime)\n\n\ngit-svn-id: f288825eac1cbbbc51b99d82d097385cba0e17f8@150 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55\n" }, { "from": "human", "value": "package Resmon::Module::LOAD;\nuse Resmon::ExtComm qw/cache_command...
perl
chosen
[ { "from": "system", "value": "Fix the module installation scriopt for Win32. Works for me now.\n" }, { "from": "human", "value": "#! perl\n\nuse warnings;\nuse strict;\nuse File::Find;\nuse File::Copy;\nuse File::Path;\nuse File::Basename;\n\nmy $perl6 = shift @ARGV;\nmy $perl6lib = shift @ARGV;...
perl
chosen
[ { "from": "system", "value": "Move the setting of the TERM\n" }, { "from": "human", "value": "use v6;\n\nuse Test;\n\nuse Term::Cap;\n\nmy $obj;\n\nlives-ok { $obj = Term::Cap.new() }, \"Create a new Term::Cap\";\n\nisa-ok($obj, Term::Cap, \"and its the right type of object\");\n\n%*ENV<TERM> = ...
perl
chosen
[ { "from": "system", "value": "Declare type of attribute to use with class.\n" }, { "from": "human", "value": "# Bind the HOWs into the EXPORTHOW package under the package declarator\n# names.\nmy module EXPORTHOW {\n ($?PACKAGE.WHO)<package> := Perl6::Metamodel::PackageHOW;\n ($?PACKA...
perl
chosen
[ { "from": "system", "value": "Reword test to make it clearer what it tests\n" }, { "from": "human", "value": "use v6;\nuse Test;\n\nplan 3;\n\n# RT #117235\n{\n my $c = [[1], [2], [3]].map( { $_ } ).Array;\n $c.unshift(7);\n is $c.elems, 4, \".unshift in sink context doesn't empty Array...
perl
chosen
[ { "from": "system", "value": "Test m:g/... { code block }/ gets the $/ correct\n\nCovers https://github.com/rakudo/rakudo/issues/3554.\n" }, { "from": "human", "value": "use v6;\nuse Test;\n\nplan 8;\n\n=begin description\n\nTesting the C<:global> regex modifier - more tests are always welcome\n...
perl
chosen
[ { "from": "system", "value": "Sort list of bad params for consistency\n\n\n" }, { "from": "human", "value": "package MooseX::Object::StrictConstructor;\n\nuse strict;\nuse warnings;\n\nuse Moose;\n\nuse Carp 'confess';\n\nextends 'Moose::Object';\n\nafter 'BUILDALL' => sub\n{\n my $self = s...
perl
chosen
[ { "from": "system", "value": "Use done_testing to get rid of BEGIN block" }, { "from": "human", "value": "BEGIN {\n\t@classes = qw(PPI::App::ppi_version::BDFOY);\n\t}\n\nuse Test::More tests => scalar @classes;\n\nforeach my $class ( @classes )\n\t{\n\tprint \"Bail out! $class did not compile\\n...
perl
chosen
[ { "from": "system", "value": "Build results of 53b777e (on master)" }, { "from": "human", "value": "#!/usr/bin/perl\nuse 5.008;\nuse strict;\nuse warnings;\nuse Env qw( CYBS_ID CYBS_KEY );\nuse Test::More;\n\nplan skip_all\n\t=> 'You MUST set ENV variable CYBS_ID and CYBS_KEY to test this!'\n\tu...
perl
chosen
[ { "from": "system", "value": "Make meta test panda compatible\n" }, { "from": "human", "value": "use v6;\nuse lib 'lib';\nuse Test;\nconstant AUTHOR = ?%*ENV<TEST_AUTHOR>; \n\nif AUTHOR { \n require Test::META <&meta-ok>;\n plan 1;\n meta-ok;\n done-testing;\n}\n" }, { "from"...
perl
chosen
[ { "from": "system", "value": "Test for the three argument form of open\n\n\ngit-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@2795 d31e2699-5ff4-0310-a27c-f18f2fbe73fe\n" }, { "from": "human", "value": "#! perl -w\n\nuse Parrot::Test tests => 2;\n\n# It would be very embarrassing if these did...
perl
chosen
[ { "from": "system", "value": "[Test] Migrate test to Blackbox schema\n\nMigrated t/apicast-subset-of-services.t tests to the new testing\nBlackbox schema\n\nSigned-off-by: Eloy Coto <2a8acc28452926ceac4d9db555411743254cf5f9@gmail.com>\n" }, { "from": "human", "value": "use lib 't';\nuse Test::AP...
perl
chosen
[ { "from": "system", "value": "Extend test to check history\n" }, { "from": "human", "value": " $ source ${TESTDIR}/setup_test_env.sh\n $ cd ${TESTTMP}\n\n $ git clone -q http://${TESTUSER}:${TESTPASS}@localhost:8001/real_repo.git\n warning: You appear to have cloned an empty repository.\n\n ...
perl
chosen
[ { "from": "system", "value": "Remove compara and chromosome options from region menu\n" }, { "from": "human", "value": "=head1 LICENSE\n\nCopyright [2009-2014] EMBL-European Bioinformatics Institute\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file e...
perl
chosen
[ { "from": "system", "value": "Test for Setter AliTV::Base::file() checking for existing files\n" }, { "from": "human", "value": "use strict;\nuse warnings;\n\nuse Test::More;\nBEGIN { use_ok('AliTV::Base') };\n\ncan_ok('AliTV::Base', qw(file));\n\n# the setter should implement a check for existi...
perl
chosen
[ { "from": "system", "value": "Make sure file is read in UTF8 format.\n" }, { "from": "human", "value": "#!/usr/bin/env perl\n\nuse strict;\nuse warnings;\n\nBEGIN\n{\n use FindBin;\n use lib \"$FindBin::Bin/../lib\";\n}\n\nuse Getopt::Long;\n\nuse MediaWords::CommonLibs;\n\nuse MediaWords:...
perl
chosen
[ { "from": "system", "value": "Make helper script respect the \"memory\" parameter\n" }, { "from": "human", "value": "#!/usr/bin/perl\n\n# start all of the mediacloud-* shards in the solr/ directory\n\nuse strict;\n\nuse v5.10;\n\nuse FindBin;\nuse Getopt::Long;\n\nuse constant JVM_OPTS => '-XX:M...
perl
chosen
[ { "from": "system", "value": "Support W3C File API spec style IDL sections.\n\ngit-svn-id: 8c168edca3c6157a1911f01a73f2fb8eefd5ed32@1400 d15c3b8f-5b43-0410-be93-4d5a55ce2954\n" }, { "from": "human", "value": "#!/usr/bin/perl\nuse strict;\nuse warnings;\n\n# Scrape IDL definitions from the HTML 5...
perl
chosen
[ { "from": "system", "value": "Add checks on how much output there is\n" }, { "from": "human", "value": "#!perl -T\n\nuse strict;\nuse warnings;\nuse 5.010001;\n\nuse lib 't';\nuse Util;\n\nuse Test::More;\n\nplan tests => 1;\n\nprep_environment();\n\nmy ($stdout, $stderr) = run_ack_with_stderr( ...
perl
chosen
[ { "from": "system", "value": "Fix tests, by adding necessary ``cElementTree`` related output.\n" }, { "from": "human", "value": "Create a new playground first:\n\n $ virtualenv FOO >/dev/null\n $ PATH=FOO/bin:$PATH\n $ alias pip-review=\"$TESTDIR/../bin/pip-review\"\n\nSetup. Let's pretend we...
perl
chosen
[ { "from": "system", "value": "Make Set/Bag/Mix more hash-like wrt to .grep\n" }, { "from": "human", "value": "my role QuantHash does Associative {\n method Int ( --> Int) { self.total.Int }\n method Num ( --> Num) { self.total.Num }\n method Numeric ( --> Numeric) { self...
perl
chosen
[ { "from": "system", "value": "Fix for multiple inheritance issue\n" }, { "from": "human", "value": "=head1 LICENSE\n\nCopyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may...
perl
chosen
[ { "from": "system", "value": "Add \"id\" to Package and Requirement:\n\nThis is currently just calling \"full_name\" because that's how we\ndetermine the ID. When we introduce attributes, they will also use\nattributes. Just setting the groundwork.\n" }, { "from": "human", "value": "package Pakk...
perl
chosen
[ { "from": "system", "value": "Remove new species bar from e.g. search page\n" }, { "from": "human", "value": "=head1 LICENSE\n\nCopyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute\nCopyright [2016-2017] EMBL-European Bioinformatics Institute\n\nLi...
perl
chosen
[ { "from": "system", "value": "Make bogus .WHICH test less bogus\n" }, { "from": "human", "value": "use v6;\nuse Test;\nplan 6;\n\n# U+2286 SUBSET OF OR EQUAL TO\nonly sub infix:<<\"\\x2286\">>($a, $b --> Bool) {\n $a (<=) $b;\n}\n\nis set( <a b c> ) ⊆ set( <a b c d> ), True, 'a b c ⊆ a b c...
perl
chosen
[ { "from": "system", "value": "[tcl]: Add a failing [continue] test\n\n\ngit-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@14372 d31e2699-5ff4-0310-a27c-f18f2fbe73fe\n" }, { "from": "human", "value": "#!../../parrot tcl.pbc\n\nsource lib/test_more.tcl\nplan 2\n\neval_is {\n set result \"\"\n f...
perl
chosen
[ { "from": "system", "value": "Add names until the main antagonists.\n" }, { "from": "human", "value": "package Acme::MetaSyntactic::mlpfim;\n\nuse strict;\nuse warnings;\n\nour $VERSION = '0.0.1';\n\n1;\n\n=head1 NAME\n\nAcme::MetaSyntactic::mlpfim - a meta syntactic variable for everypony!\n\n=...
perl
chosen
[ { "from": "system", "value": "Make test TODO like now that that works.\n\n\ngit-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@7173 d31e2699-5ff4-0310-a27c-f18f2fbe73fe\n" }, { "from": "human", "value": "#!/usr/bin/perl\n\nuse strict;\nuse lib qw(tcl/t t . ../lib ../../lib ../../../lib);\nuse ...
perl
chosen
[ { "from": "system", "value": "Set right name for module in test\n" }, { "from": "human", "value": "# inspired by:\n# http://perltricks.com/article/208/2016/1/5/Save-time-with-compile-tests\nuse strict;\nuse Test::More;\nuse Path::Tiny;\n\nmy $dir = path(__FILE__)->parent(2)->child('lib');\nmy $...
perl
chosen
[ { "from": "system", "value": "Update test to match metadata" }, { "from": "human", "value": "#!/usr/bin/env perl\n\nuse strict;\nuse warnings;\nuse Test::More;\nuse DDG::Test::Goodie;\n\nzci answer_type => \"firefoxos\";\nzci is_cached => 1;\n\n#Structured answer template data\nmy $templateDat...
perl
chosen
[ { "from": "system", "value": "Fix html entities - characters codes\n" }, { "from": "human", "value": "#!/usr/bin/perl\n# made by: csepanda\n\nuse strict;\nuse v5.18;\nuse warnings;\nno warnings 'experimental';\nuse utf8;\nbinmode STDOUT, ':utf8';\n\npackage sweets;\n\nuse LWP;\nuse Encode qw/dec...
perl
chosen
[ { "from": "system", "value": "Add missing perl modules to test\n\nBe sure to use_ok() _ALL_ provided Perl modules\n" }, { "from": "human", "value": "#!perl -T\n\nuse Test::More tests => 13;\n\nBEGIN {\n use_ok('Log::Fine');\n use_ok('Log::Fine::Handle');\n use_ok('Log::Fine:...
perl
chosen
[ { "from": "system", "value": "Add 'track' trigger, enforce numeric/alphanumeric remainder\n" }, { "from": "human", "value": "package DDG::Spice::PackageTracking;\n\nuse DDG::Spice;\nuse Text::Trim;\nuse YAML::XS 'LoadFile';\n\nspice is_cached => 1;\nspice proxy_cache_valid => \"200 1m\";\n\nspic...
perl
chosen
[ { "from": "system", "value": "Add CORS and request parameter\n" }, { "from": "human", "value": "package JSONAPI;\n\nuse strict;\nuse warnings;\n\nuse JSON;\n\nuse vars qw( @ISA );\nrequire API;\n@ISA = qw( API );\n\nsub sendError {\n my ($self, $cgi, $error_code, $error_text, $query) = @_;\n ...
perl
chosen
[ { "from": "system", "value": "Use a slightly better algorithm for the word wrap example\n" }, { "from": "human", "value": "#!/usr/bin/env perl6\n\n=begin pod\n\n=TITLE Word-wrap paragraphs to a given length\n\n=AUTHOR Scott Penrose\n\n=end pod\n\nuse v6;\n\nsub MAIN($input-file = $*SPEC.catdir($...
perl
chosen
[ { "from": "system", "value": "Return default hash as json\n" }, { "from": "human", "value": "package Lazy::Finance::Quote;\n\nuse strict;\nuse warnings;\nuse Mojo::UserAgent;\nuse XML::Simple qw(:strict);\nuse Hash::Flatten qw(:all);\n\nour $VERSION = '0.01';\n\nmy $prov_info = {\n yahoo => { ...
perl
chosen
[ { "from": "system", "value": "Test Supply.merge on signals does not crash\n\nRT#132016: https://rt.perl.org/Ticket/Display.html?id=132016\nRakudo fixes: https://github.com/rakudo/rakudo/commit/1f411693bd\n https://github.com/rakudo/rakudo/commit/13b6a33c20\n" }, { "from": "human", "...
perl
chosen
[ { "from": "system", "value": "Test if AliTV::Alignment::lastz::_check() lives if lastz is present\n" }, { "from": "human", "value": "use strict;\nuse warnings;\n\nuse Test::More;\nuse Test::Exception;\n\nuse File::Which;\n\nBEGIN { use_ok('AliTV::Alignment::lastz') }\n\ncan_ok( 'AliTV::Alignment...
perl
chosen
[ { "from": "system", "value": "Test /ws/tt and /ws/tpl routes exist.\n" }, { "from": "human", "value": "use Test::More tests => 6;\nuse strict;\nuse warnings;\n\nuse wsTemplate;\n\n# order is important for Dancer::Test and life as social beings\nuse Dancer::Test;\n\nroute_exists [GET => '/'], 'a ...
perl
chosen
[ { "from": "system", "value": "[config] Fix the regex that matches a git-describe string, PerlJam++\n" }, { "from": "human", "value": "# Copyright (C) 2010, Parrot Foundation.\n\n=head1 NAME\n\nconfig/auto/sha1.pm - Parrot's configure \"git describe\" string\n\n=head1 DESCRIPTION\n\nDetermines Pa...
perl
chosen
[ { "from": "system", "value": "[Eclectus]\nSupport for Pairs seems to be broken. Disable tests for now.\n\n\ngit-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@26369 d31e2699-5ff4-0310-a27c-f18f2fbe73fe\n" }, { "from": "human", "value": "; $Id$\n\n(load \"tests-driver.scm\") ; this should come ...
perl
chosen
[ { "from": "system", "value": "Add postcircumfix:<[ ]>(&block) (for Whatever-block handling).\n" }, { "from": "human", "value": "role Positional[::T = Mu] {\n our multi method postcircumfix:<[ ]>() { self.list }\n\n our multi method postcircumfix:<[ ]>(@index) {\n Q:PIR {\n ...
perl
chosen
[ { "from": "system", "value": "Add failing test case for missing db.\n" }, { "from": "human", "value": "use strict;\nuse warnings;\n\nuse Apache::Test qw(-withtestmore);\nuse Apache::TestRequest;\n\nmy $url = '/cgi-bin/missing-db/json-env';\n\n# Allow request to be redirected.\nok my $res = GET $...
perl
chosen
[ { "from": "system", "value": "Test adapted to work with elevator.lp\n" }, { "from": "human", "value": "\nfloor(1).\nfloor(2).\nfloor(3).\n\nholds(at(elevator(1), 1), 0).\nholds(request(call(down), 3), 0).\n" }, { "from": "gpt", "value": "agent(elevator(1)).\nfloor(1).\nfloor(2).\nflo...
perl
chosen
[ { "from": "system", "value": "Build results of 22b0724 (on master)" }, { "from": "human", "value": "package Business::CyberSource::Request::Credit;\nuse 5.008;\nuse strict;\nuse warnings;\nuse Carp;\nBEGIN {\n\tour $VERSION = 'v0.1.0'; # VERSION\n}\nuse Moose;\nuse namespace::autoclean;\nwith 'B...
perl
chosen
[ { "from": "system", "value": "Replace calls to .path with .IO\n\nThe .path method is deprecated and will be removed in Rakudo version\n2015.09. This change replaces .path with .IO as recommended by the Rakudo\nteam. All tests pass without deprecation warnings after this change.\n" }, { "from": "hu...
perl
chosen
[ { "from": "system", "value": "Add basic test for $=finish\n" }, { "from": "human", "value": "use v6;\n\n# Test various forms of comments\n\nuse Test;\n\nplan 1;\n\n# L<S02/Double-underscore forms/\"The double-underscore forms are going away:\">\n\nok 1, \"Before the =finish Block\";\n\n=finish\n...
perl
chosen
[ { "from": "system", "value": "Fix parameter order in skip()\n" }, { "from": "human", "value": "use Test;\nuse Test::Mock;\nuse Panda::Ecosystem;\nplan 9;\n\nmy $a = Panda::Ecosystem.new(\n statefile => 't/panda/fakestate',\n projectsfile => 't/panda/fakeprojects'\n);\n\nmy $b = $a.get-p...
perl
chosen
[ { "from": "system", "value": "Add ability to overwrite cached values\n" }, { "from": "human", "value": "package MR::Cache;\nuse Moo::Role;\nuse Storable qw(nfreeze thaw);\n\nrequires qw( redis );\n\nsub cache {\n my ($self, %args) = @_;\n \n my $key = $args{key} // die 'key re...
perl
chosen
[ { "from": "system", "value": "Use recursive folder listing for local (non-ftp) import mode\n" }, { "from": "human", "value": "\n=pod\n\n=head1 DESCRIPTION\n\n Recursively get a list of files with a specified extension.\n\n=cut\n\npackage Bio::EnsEMBL::Hive::RunnableDB::RNAcentral::GetFiles;\n...
perl
chosen
[ { "from": "system", "value": "Add start_time and end_time columns to mimosa_job, and remove finished\n" }, { "from": "human", "value": "package App::Mimosa::Schema::BCS::Result::Mimosa::Job;\nuse strict;\nuse warnings;\n\nuse base 'DBIx::Class::Core';\n\n=head1 NAME\n\nApp::Mimosa::Schema::BCS::...
perl
chosen
[ { "from": "system", "value": "Add missing use v6; pragma\n" }, { "from": "human", "value": "use Test;\npass;\nok 1;\nok 0,:todo(1);\ndone;\n\n# vim: expandtab shiftwidth=4 ft=perl6\n" }, { "from": "gpt", "value": "use v6;\nuse Test;\npass;\nok 1;\nok 0,:todo(1);\ndone;\n\n# vim: expa...
perl
chosen
[ { "from": "system", "value": "Make ACCEPTS a multi and correct the signature of it.\n" }, { "from": "human", "value": "class NQPMu {\n method CREATE() {\n pir::repr_instance_of__PP(self)\n }\n \n method new() {\n self.CREATE()\n }\n\n # XXX This should have siggy ...
perl
chosen
[ { "from": "system", "value": "Fix config passed to dbconnect\n" }, { "from": "human", "value": "#!/usr/bin/perl -w\n\nuse strict;\nuse CoGeX;\nuse Data::Dumper;\nuse CoGe::Accessory::Web;\nuse Getopt::Long;\n\nuse vars qw($dsgid $conffile);\nGetOptions(\n \"dsgid=i\"=>\\$dsgid,\n \"config_...
perl
chosen
[ { "from": "system", "value": "Change the name for nucleobases, not nucleosides\n\nFixes #82\n" }, { "from": "human", "value": "#!/usr/bin/env perl\nuse strict;\nuse warnings;\n\nuse Test::More;\nuse FindBin;\nmy $dir;\nBEGIN { $dir = $FindBin::Bin . '/' };\nuse lib $dir;\n\nmy $module = $ENV{EX...
perl
chosen
[ { "from": "system", "value": "Initialize the InputFiles object with input params\n" }, { "from": "human", "value": "\n=pod\n\n=head1 NAME\n\n\n=head1 SYNOPSIS\n\n\n=head1 DESCRIPTION\n\n\n=cut\n\npackage Bio::EnsEMBL::Hive::RunnableDB::RNAcentral::GetFiles;\n\nuse strict;\n\nuse Bio::RNAcentral:...
perl
chosen
[ { "from": "system", "value": "Check specifying start and end dates on command line\n" }, { "from": "human", "value": "use v6;\n\nuse Test;\n\nplan 5;\n\n{\n my $status = shell \"bin/beppo\";\n ok $status.exitcode == 0, \"run without options\";\n}\n\n{\n my $status = shell \"bin/beppo --...
perl
chosen
[ { "from": "system", "value": "Set PERL5LIB to pass on @INC\n\nI don't need to do this I think, but we'll see.\nTaking out -T might have done it." }, { "from": "human", "value": "use Test::More 0.94;\nuse Config;\n\ndiag(\n\tjoin \"\\n\\t\", \"Parent \\@INC:\", @INC, ''\n\t);\n\nmy $perl = $Confi...
perl
chosen
[ { "from": "system", "value": "Use correct method on Proc::Status object when checking exit status\n\nThe method has been renamed to `exitcode`\n" }, { "from": "human", "value": "use v6;\n\nuse Test;\n\nplan 3;\n\n{\n my $status = shell \"bin/beppo\";\n ok $status.exit == 0;\n}\n\n{\n my...
perl
chosen
[ { "from": "system", "value": "Fix path to make Charmonizer tests work.\n\n\ngit-svn-id: 33c1020af00f61ce75d0fe36814d3322ab23371a@1393675 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "# Licensed to the Apache Software Foundation (ASF) under one or more\n# contributor lic...
perl
chosen
[ { "from": "system", "value": "Tidy and prepared a remove\n" }, { "from": "human", "value": "package Rex::Collectd::Base; \nuse Rex -base;\nuse Rex::Ext::ParamLookup;\n\n# Usage: rex setup \n# Usage: rex plugin-influxdb --influxdb=influx [ --port=12345 ]\n# Usage: rex plugin-del --remove=influxdb...
perl
chosen
[ { "from": "system", "value": "Add command line options to designate input/output files, and add prompt for overwriting an existing database\n" }, { "from": "human", "value": "use strict;\nuse warnings;\n\nmy $mdb_name = \"flanders.mdb\";\nmy $outdb_name = \"flanders.db\";\n\n# Generate the schem...
perl
chosen
[ { "from": "system", "value": "Fix typo that made test always succeed\n" }, { "from": "human", "value": "use Cro::Tools::Link::Editor;\nuse Test;\n\nmy $service1 = 't/tools-services-test-dir/service1/.cro.yml'.IO;\nmy $content1 = slurp $service1;\nmy $service2 = 't/tools-services-test-dir/nested/...
perl
chosen
[ { "from": "system", "value": "Change text to be less 'imperative' :)\n" }, { "from": "human", "value": "package EnsEMBL::Web::Document::HTML::LoginMessage;\n\nuse strict;\nuse warnings;\n\nuse EnsEMBL::Web::Object::User;\n\n{\n\nsub render {\n my ($class, $request) = @_;\n my $html = \"\";\n ...
perl
chosen
[ { "from": "system", "value": "Add tests for parameters fetched from @_\n" }, { "from": "human", "value": "use Test;\nuse Template::Mojo;\nplan 12;\n\nsub render($tmpl, *@a) {\n Template::Mojo.new($tmpl).render(|@a)\n}\n\nis render(''), '';\nis render('hello'), 'hello';\nis render(\"empty\\n\\...
perl
chosen
[ { "from": "system", "value": "Expand triggers to include perl lib / library searches\n" }, { "from": "human", "value": "package DDG::Spice::MetaCPAN;\n# ABSTRACT: Show a summary of the searched CPAN module.\n\nuse strict;\nuse DDG::Spice;\n\nspice to => 'http://api.metacpan.org/v0/module/$1?ca...
perl
chosen
[ { "from": "system", "value": "Fix comparisions used for floating point tests\n" }, { "from": "human", "value": "use strict;\nuse warnings;\nuse Test::More;\nuse Chipmunk::BB;\n\nmy ( $left, $bottom, $right, $top ) = ( 0, 10, 20, 30 );\nmy $bb = Chipmunk::BB->new( $left, $bottom, $right, $top );\...
perl
chosen
[ { "from": "system", "value": "Make failure tests less specific\n" }, { "from": "human", "value": "use v6;\nuse Test;\n\nplan 6;\n\nthrows-like { CompUnit::DependencySpecification.new }, X::Attribute::Required,\nthrows-like { CompUnit::DependencySpecification.new(:short-name(1)) }, X::TypeCheck::...
perl
chosen
[ { "from": "system", "value": "Check that syslogd writes a log message about the server close.\n" }, { "from": "human", "value": "# The TCP server writes a message back to the syslogd.\n# The client writes a message to Sys::Syslog native method.\n# The syslogd writes it into a file and through a ...
perl
chosen
[ { "from": "system", "value": "Change services that should be restarted\n" }, { "from": "human", "value": "#!/usr/bin/perl\n\nuse strict;\nuse warnings;\nuse autodie;\nuse 5.018;\n\nuse Linux::Inotify2;\nuse Getopt::Long;\nuse File::Basename;\n\nour $PROGNAME = basename($0);\n\nmy $file;\n\nGetOp...
perl
chosen
[ { "from": "system", "value": "Fix a wrong static-test test case. (ERROR->WARNING) Uninitialized ref is warning.\n" }, { "from": "human", "value": "class QWE\n{\n function g():void {}\n var g2:function():void;\n\n static function f():void\n {\n @static_test { expect_message={ l...
perl
chosen
[ { "from": "system", "value": "Add more words to whitelist\n" }, { "from": "human", "value": "use strict;\nuse warnings;\n\nuse Test::Spelling;\n\nmy @stopwords;\nfor (<DATA>) {\n chomp;\n push @stopwords, $_\n unless /\\A (?: \\# | \\s* \\z)/msx;\n}\n\nadd_stopwords(@stopwords);\nse...
perl
chosen
[ { "from": "system", "value": "Fix in case of missing menu sections.\n\nShould never happen if data is correct, but this would be the right thing\nto do in that case, anyway.\n" }, { "from": "human", "value": "=head1 LICENSE\n\nCopyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-Eu...
perl
chosen
[ { "from": "system", "value": "Add a test for rank calculation at the end of vg add\n" }, { "from": "human", "value": "#!/usr/bin/env bash\n\nBASH_TAP_ROOT=../deps/bash-tap\n. ../deps/bash-tap/bash-tap-bootstrap\n\nPATH=../bin:$PATH # for vg\n\nplan tests 4\n\nvg construct -r add/ref.fa > ref.vg\...
perl
chosen
[ { "from": "system", "value": "Update warning message to include to table names.\n\n" }, { "from": "human", "value": "#!/usr/bin/perl\n\nuse strict;\nuse warnings;\n\nBEGIN\n{\n use FindBin;\n use lib \"$FindBin::Bin/../lib\";\n}\n\nuse MediaWords::DB;\nuse MediaWords::DBI::DownloadTexts;\n...
perl
chosen
[ { "from": "system", "value": "Build results of 4847bbc (on master)" }, { "from": "human", "value": "use strict;\r\nuse warnings;\r\nuse Test::More;\r\nuse Test::Method;\r\nuse Class::Load 0.20 'load_class';\r\nuse Test::Requires::Env qw(\r\n\tPERL_BUSINESS_BACKOFFICE_USERNAME\r\n\tPERL_BUSINESS_...
perl
chosen
[ { "from": "system", "value": "Comment on why this module is not immutable\n" }, { "from": "human", "value": "package Silki::Action::REST;\n\nuse strict;\nuse warnings;\nuse namespace::autoclean;\n\nuse Moose;\n\nextends 'Catalyst::Action::REST';\n\noverride dispatch => sub {\n my $self = shif...
perl
chosen
[ { "from": "system", "value": "Add robots.txt for dev server\n" }, { "from": "human", "value": "package Silki::Controller::Root;\n\nuse strict;\nuse warnings;\n\nuse Moose;\n\nBEGIN { extends 'Silki::Controller::Base' }\n\n__PACKAGE__->config( namespace => q{} );\n\nsub default : Private\n{\n ...
perl
chosen
[ { "from": "system", "value": "Test &permutation offers .count/bool-only opts\n" }, { "from": "human", "value": "use Test;\n\nplan 2;\n\n# https://github.com/rakudo/rakudo/issues/1330\nis-deeply +combinations(100, 70), 29372339821610944823963760,\n 'combinations() iterator implements efficient ....
perl
chosen
[ { "from": "system", "value": "Revert \"Revert \"Simplify connecting to the database in Catalyst\"\"\n\nThis reverts commit dfe7f2394e1c5c1f92b94644c39fd282542c1ce5.\n" }, { "from": "human", "value": "package MediaWords::Model::DBIS;\n\n# custom DBIx::Simple::MediaWords based model for mediawords...
perl
chosen
[ { "from": "system", "value": "Make the test skip conditions more robust\n" }, { "from": "human", "value": "use Glib::Object::Introspection;\nuse Test::More;\n\nunless ($ENV{LD_LIBRARY_PATH} =~ m/\\bbuild\\b/) {\n plan skip_all => 'Need \"build\" in LD_LIBRARY_PATH';\n}\nunless (-e 'build/libreg...
perl
chosen
[ { "from": "system", "value": "Fix test failures by adding missing triggers.\n" }, { "from": "human", "value": "package DDG::Spice::DogoNews;\n\nuse DDG::Spice;\n\nprimary_example_queries \"kids news\", \"current events\", \"news for kids\";\nsecondary_example_queries \"obama kids news\", \"nasa ...
perl
chosen
[ { "from": "system", "value": "Fix SDLNavOutput load when we don't have SDL\n" }, { "from": "human", "value": "use Test::More tests => 16;\nuse v5.14;\n\nmy $is_sdl_installed = do {\n eval \"use SDL ()\";\n $@ ? 0 : 1;\n};\n\nuse_ok( 'UAV::Pilot' );\nuse_ok( 'UAV::Pilot::Exceptions' );\nuse...
perl
chosen
[ { "from": "system", "value": "Test that insert() is returning the right id.\n" }, { "from": "human", "value": "use strict;\nuse warnings;\nuse Test::More tests => 5;\nuse Test::Exception;\n\nuse Mongo;\n\nmy $conn = Mongo::Connection->new;\nisa_ok($conn, 'Mongo::Connection');\n\nmy $db = $conn->...
perl
chosen
[ { "from": "system", "value": "Fix another should-be-non-importing use_ok into a require_ok\n" }, { "from": "human", "value": "#! /usr/bin/env perl\n\nuse v5.8;\nuse strict;\nuse warnings;\n\nuse Test::More tests => 9;\n\nBEGIN { use_ok(\"WWW::Shorten::Akari\", qw{}) }\n\ndiag \"This test carps a...
perl
chosen
[ { "from": "system", "value": "Build results of 765132b (on master)" }, { "from": "human", "value": "\nBEGIN {\n unless ($ENV{AUTHOR_TESTING}) {\n require Test::More;\n Test::More::plan(skip_all => 'these tests are for testing by the author');\n }\n}\n\nuse strict;\nuse warnings;\nuse Tes...
perl
chosen
[ { "from": "system", "value": "Add support of '--.USE' in lua preprocessor\n" }, { "from": "human", "value": "#!/usr/bin/env perl\n\nuse warnings FATAL => 'all';\nuse strict;\n\nmy ($in_dir, $out_dir) = @ARGV;\nmy @files = <$in_dir/*.lua>;\n\nforeach my $file (@files) {\n $file =~ /([^\\/.]+)(...
perl
chosen
[ { "from": "system", "value": "Make ttymsg-delay more reliable by writing more messages.\n" }, { "from": "human", "value": "# The client writes long messages to Sys::Syslog native method.\n# The syslogd writes it into a file and through a pipe and to tty.\n# The syslogd passes it via UDP to the l...
perl
chosen
[ { "from": "system", "value": "Make bypassDocumentValidation a boolean value\n" }, { "from": "human", "value": "#\n# Copyright 2015 MongoDB, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You ...
perl
chosen
[ { "from": "system", "value": "Add multi to spelling whitelist\n" }, { "from": "human", "value": "use strict;\nuse warnings;\n\nuse Test::Spelling;\n\nmy @stopwords;\nfor (<DATA>) {\n chomp;\n push @stopwords, $_\n unless /\\A (?: \\# | \\s* \\z)/msx; # skip comments, whitespace\n...
perl
chosen
[ { "from": "system", "value": "Use word trigger and pull arxiv ID in handler\n" }, { "from": "human", "value": "package DDG::Spice::Arxiv;\n\n# ABSTRACT: Retrieve articles from arxiv.org by identifier\n\nuse DDG::Spice;\n\nspice is_cached => 1;\nspice proxy_cache_valid => \"200 7d\";\n\nspice wra...
perl
chosen
[ { "from": "system", "value": "Revert \"Add generic maps queries to skip.\"\n\nThis reverts commit a024d95c6d126fd2bf4af139f515a66700213c6a.\n" }, { "from": "human", "value": "package DDG::Spice::Maps::Maps;\n\nuse DDG::Spice;\n\nspice to => 'http://open.mapquestapi.com/nominatim/v1/search?format...
perl
chosen
[ { "from": "system", "value": "Remove left over unused code\n" }, { "from": "human", "value": "use v6;\nuse lib 'lib';\nuse Test;\nuse Pod::To::BigPage;\n\nplan 1;\n\n=begin pod\n\nE<171> E<SNOWMAN> E<171;SNOWMAN> E<quot>\n\n=end pod\n\nmy $ok-result = q:to/EOH/;\n<p><pre>Hello Camelia!\n</pre> <...
perl
chosen
[ { "from": "system", "value": "Revert \"OpenSSL error message has changed.\"\n\nThis reverts commit 1f3d5ce7f3399933de3e7ab302a86e8cb17202a6.\n" }, { "from": "human", "value": "# The client writes a message to Sys::Syslog native method.\n# The syslogd writes it into a file and through a pipe.\n# ...
perl
chosen
[ { "from": "system", "value": "Reduce delay between Bit.ly fetch chunks to match performance profile\n" }, { "from": "human", "value": "#!/usr/bin/env perl\n#\n# Add chunks of due stories from Bit.ly processing schedule to fetcher's job\n# queue\n#\n\nuse strict;\nuse warnings;\n\nBEGIN\n{\n u...
perl
chosen
[ { "from": "system", "value": "Allow market duration to be specified on command line\n" }, { "from": "human", "value": "#!/usr/bin/env perl\n\nuse 5.014;\nuse strict;\nuse warnings;\nuse warnings qw(FATAL);\n\nuse Log::Any::Adapter qw( Stdout );\n\nuse Fishhouse::Agent::Buyer;\nuse Fishhouse::Age...
perl
chosen
[ { "from": "system", "value": "Fix typos leading to fatal error\n" }, { "from": "human", "value": "\ndo 'status-lib.pl';\n\n# acl_security_form(&options)\n# Output HTML for editing security options for the status module\nsub acl_security_form\n{\nmy ($o) = @_;\nprint &ui_table_row($text{'acl_edit...
perl
chosen
[ { "from": "system", "value": "Check the execve(2) system call in privsep test.\n" }, { "from": "human", "value": "# The client writes a message to Sys::Syslog native method.\n# The syslogd writes it into a file and through a pipe.\n# The syslogd passes it via UDP to the loghost.\n# The server re...
perl
chosen
[ { "from": "system", "value": "Fix for annotation saving\n- from branch\n" }, { "from": "human", "value": "# $Id$\n\npackage EnsEMBL::Web::Command::Account::Interface::AnnotationSave;\n\nuse strict;\n\nuse base qw(EnsEMBL::Web::Command);\n\nsub process {\n my $self = shift;\n my $hub ...
perl
chosen
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
7