conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add next set of tests, currently failing, for really being able to serialize something with P6int representation.\n" }, { "from": "human", "value": "#! nqp\n\nplan(4);\n\n# Serializing an empty SC.\n{\n my $sc := pir::nqp_create_sc__Ps('TEST_SC_1_IN');\n my $s...
perl
chosen
[ { "from": "system", "value": "[t/spec] Rewrite to create test files on the file rather than picking them from the spectest directory tree.\n\ngit-svn-id: 53605643c415f7495558be95614cf14171f1db78@29939 c213334d-75ef-0310-aa23-eaa082d1ae64\n" }, { "from": "human", "value": "use v6;\nuse Test;\n\n#...
perl
chosen
[ { "from": "system", "value": "Build results of 419753f (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\nuse Business::CyberSource::Request::Authorization;\n\nmy $req\n\t= Business::CyberSourc...
perl
chosen
[ { "from": "system", "value": "Remove blocking of experimental warnings\n" }, { "from": "human", "value": "package Wing::Perl;\n\n=head1 NAME\n\nWing::Perl - Standardize what Perl configuration Wing uses.\n\n\n=head1 SYNOPSIS\n\n use Wing::Perl;\n\n=cut\n\nuse 5.010_000;\n\nuse strict;\nuse warni...
perl
chosen
[ { "from": "system", "value": "Put something on stdin to work around some broken scripts\n" }, { "from": "human", "value": "#\n# generate the documentation for each command line script\n# that was found by gen-valid-commands.pl\n#\n\nuse strict;\n#use Template;\nuse Data::Dumper;\nuse File::Basen...
perl
chosen
[ { "from": "system", "value": "Make sure we provide a scope for the CATCH block\n" }, { "from": "human", "value": "# Scheduler that always does things immediately, on the current thread.\n\nmy class CurrentThreadScheduler does Scheduler {\n\n method handle_uncaught($exception) {\n $exce...
perl
chosen
[ { "from": "system", "value": "Enable reverse proxy support even under morbo\n" }, { "from": "human", "value": "#!/usr/bin/env perl\n\nuse strict;\nuse warnings;\nuse File::Basename;\nuse lib dirname($0) . '/../lib';\nuse Vroom::Conf;\n\nchdir dirname($0) . '/..';\n\nmy $config = Vroom::Conf::get...
perl
chosen
[ { "from": "system", "value": "Build results of dedacfe (on master)" }, { "from": "human", "value": "#!perl\n\nBEGIN {\n unless ($ENV{RELEASE_TESTING}) {\n require Test::More;\n Test::More::plan(skip_all => 'these tests are for release candidate testing');\n }\n}\n\n\nuse Test::More;\n\ne...
perl
chosen
[ { "from": "system", "value": "Make slow_print faster. Don't wait for non-printable symbols\n" }, { "from": "human", "value": "package ForeignWords::Utils;\nuse English;\nuse strict;\nuse warnings FATAL => 'all';\n\nuse DateTime;\nuse DateTime::Format::Strptime;\nuse Time::HiRes qw / usleep /;\n\...
perl
chosen
[ { "from": "system", "value": "Handle EMLINK on FreeBSD properly\n\nSigned-off-by: Garrett Cooper <94c72ae9cb99b268ef5bac9a1283c7f5ad375547@gmail.com>\n" }, { "from": "human", "value": "#!/bin/sh\n# $FreeBSD: head/tools/regression/pjdfstest/tests/open/16.t 219621 2011-03-13 19:35:13Z pjd $\n\ndes...
perl
chosen
[ { "from": "system", "value": "Add a way to get a set of matching candidates for a multi.\n" }, { "from": "human", "value": "my class Routine {\n method of() { self.signature.returns }\n method returns() { self.signature.returns }\n method rw() { $!rw }\n \n method assuming($r: *@c...
perl
chosen
[ { "from": "system", "value": "Remove PREVIEW as instructed in comment\n\nFixes #2866\n" }, { "from": "human", "value": "use lib <t/packages/>;\nuse Test;\nuse Test::Helpers;\n\nplan 2;\n\nsub test-deprecation (Str:D $lang, Bool :$is-visible, |c) {\n my $args = c.perl;\n is-run '\n u...
perl
chosen
[ { "from": "system", "value": "Include $perl6 in testing output\n" }, { "from": "human", "value": "#! perl\n\nuse Cwd;\n\nmy $base = shift @ARGV;\nmy $perl6 = shift @ARGV;\n\nwhile (<>) {\n next if /^\\s*(#|$)/;\n my ($moduledir) = /(\\S+)/;\n print \"Testing modules/$moduledir...\\n\";\...
perl
chosen
[ { "from": "system", "value": "Check that fstat contains a bound UDP socket.\n" }, { "from": "human", "value": "# The client writes a message to Sys::Syslog UDP 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 receives...
perl
chosen
[ { "from": "system", "value": "Test that exit runs END phasers.\n" }, { "from": "human", "value": "use v6;\nuse Test;\n\nplan 3;\n\neval_lives_ok 'my $x = 3; END { $x * $x }',\n 'outer lexicals are visible in END { ... } blocks';\n\nmy $a = 0;\n#?rakudo 2 todo 'lexicals and eval()'\n...
perl
chosen
[ { "from": "system", "value": "Allow UTF in output again\n" }, { "from": "human", "value": "package PBot::Utils::ValidateString;\nuse 5.010; use warnings;\n\nrequire Exporter;\nour @ISA = qw/Exporter/;\nour @EXPORT = qw/validate_string/;\n\nsub validate_string {\n my ($string, $max_length) = @_;...
perl
chosen
[ { "from": "system", "value": "Add freebsd, openbsd and netbsd to $*PERL.DISTROnames for jvm\n" }, { "from": "human", "value": "class Perl does Systemic {\n has Compiler $.compiler;\n\n submethod BUILD (\n :$!name = 'Perl 6',\n :$!auth = \"The Perl Foundation\",\n :...
perl
chosen
[ { "from": "system", "value": "Build results of 6bd936f (on master)" }, { "from": "human", "value": "#!perl\n\nBEGIN {\n unless ($ENV{RELEASE_TESTING}) {\n require Test::More;\n Test::More::plan(skip_all => 'these tests are for release candidate testing');\n }\n}\n\n\nuse Test::More;\n\ne...
perl
chosen
[ { "from": "system", "value": "Clean Perl day 15 star 1\n" }, { "from": "human", "value": "#!/usr/bin/perl\n\nuse strict;\nuse warnings;\n\nuse feature 'say';\n\nuse Algorithm::Combinatorics qw(permutations combinations variations);\nuse Data::Dumper;\nuse Digest::MD5 qw(md5_hex);\nuse File::Slur...
perl
chosen
[ { "from": "system", "value": "Fix the INC and AUTO_INCLUDE parameters for Inline::C\n\n- Uses the recommended header include path for fitz.h.\n- Only use the top-level include path in the compiler flags so that\n other headers do not get used mistakenly.\n\nFixes <https://github.com/project-renard/p5-Alien...
perl
chosen
[ { "from": "system", "value": "Remove blank line from start of cflags character array in buildinf.h\n\nReviewed-by: Richard Levitte <5fb523282dd7956571c80524edc2dccfa0bd8234@openssl.org>\n" }, { "from": "human", "value": "#!/usr/local/bin/perl\n\nmy ($cflags, $platform) = @ARGV;\n\n$cflags = \"co...
perl
chosen
[ { "from": "system", "value": "Use curl instead of LWP::Simple, becuase it works\n" }, { "from": "human", "value": "#!/usr/bin/env perl\nuse strict;\nuse warnings;\nuse LWP::Simple;\n\nif ($#ARGV != 2) {\n die qq/usage: genbank_downloader.pl filetype id outfile\n\nExamples:\n\ngenbank_download...
perl
chosen
[ { "from": "system", "value": "Restructure file to allow for more tests\n" }, { "from": "human", "value": "use v6;\n\nuse Test;\n\n=begin desc\n\nSignature binding outside of routine calls\nRT #82946\n\n=end desc \n\nplan 2;\n\nmy ($f, $o, @a); \n@a = 2, 3, 4; \n:($f, $o, $) := @a; \n\nis $f, 2, ...
perl
chosen
[ { "from": "system", "value": "Make sure to escape backslashes and single quotes for buildinf.h\n\nReviewed-by: Rich Salz <c04971a99e5a9ee80eaab4b1deb37e845b0bd697@openssl.org>\n" }, { "from": "human", "value": "#!/usr/local/bin/perl\n\nmy ($cflags, $platform) = @ARGV;\n\n$cflags = \"compiler: $c...
perl
chosen
[ { "from": "system", "value": "Make sure we install TAP like other libs\n" }, { "from": "human", "value": "my %provides = \n \"Test\" => \"lib/Test.pm6\",\n \"NativeCall\" => \"lib/NativeCall.pm6\",\n \"NativeCall::Types\" => \"lib/NativeCal...
perl
chosen
[ { "from": "system", "value": "Add info() method to factory\n" }, { "from": "human", "value": "#!/usr/bin/perl\n\npackage ResourcePool::Factory::Redis;\nuse strict;\nuse warnings;\nuse base qw(ResourcePool::Factory);\nuse ResourcePool::Resource::Redis;\n\nour $VERSION = 1.0;\n\nsub new {\n\tmy $p...
perl
chosen
[ { "from": "system", "value": "Include comment explaining code choice\n" }, { "from": "human", "value": "use v6;\nuse Test;\nplan 3;\n\n# RT #71754\n{\n my @called;\n multi rt71754( Numeric $x ) { #OK not used\n push @called, 'Numeric';\n }\n multi rt71754( Int $x ) { #OK...
perl
chosen
[ { "from": "system", "value": "Uninstall scripts can exist for themes too\n" }, { "from": "human", "value": "#!/usr/local/bin/perl\n# run-uninstalls.pl\n# Run all the uninstall.pl scripts in module directories\n\nuse lib '.';\nBEGIN { push(@INC, \".\"); };\n$no_acl_check++;\nuse WebminCore;\n&ini...
perl
chosen
[ { "from": "system", "value": "Build results of 419753f (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;\nuse Data::Dumper;\n\nuse Business::CyberSource::Request::Authorization;\n\nmy $req\n\t= B...
perl
chosen
[ { "from": "system", "value": "Add test for login, authenticating\n" }, { "from": "human", "value": "use strict;\nuse warnings;\nuse Test::More;\n\n\nuse Catalyst::Test 'WebRHINO';\nuse WebRHINO::Controller::login;\n\nok( request('/login')->is_success, 'Request should succeed' );\ndone_testing();...
perl
chosen
[ { "from": "system", "value": "Test circular dependency is detected\n\nRT#126688: https://rt.perl.org/Ticket/Display.html?id=126688\n\n(only the new test was added in this commit. The previous\ncontents of the file weren't being run nor did they compile.\nThey were moved to require-and-use--dead-file.t in\nh...
perl
chosen
[ { "from": "system", "value": "Test if default value is an empty array for sequence_set method\n" }, { "from": "human", "value": "use strict;\nuse warnings;\n\nuse Test::More;\nuse Test::Exception;\n\nBEGIN { use_ok('AliTV::Alignment') };\n\ncan_ok('AliTV::Alignment', qw(sequence_set));\n\nmy $ob...
perl
chosen
[ { "from": "system", "value": "Introduce a $?NL which represents the platform \\n.\n" }, { "from": "human", "value": "# Stub a few things the compiler wants to have really early on.\nmy class Pair { ... }\nmy class Whatever { ... }\nmy class HyperWhatever { ... }\nmy class WhateverCode { ... }\nm...
perl
chosen
[ { "from": "system", "value": "Deal with missing files (configurable for OK or BAD using allowmissing)\n\ngit-svn-id: f288825eac1cbbbc51b99d82d097385cba0e17f8@173 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55\n" }, { "from": "human", "value": "package Resmon::Module::FILEAGE;\nuse vars qw/@ISA/;\n@ISA = q...
perl
chosen
[ { "from": "system", "value": "Implement real pod coverage testing now that we have docs\n" }, { "from": "human", "value": "use strict;\nuse warnings;\n\nuse Test::More;\n\nok( 1, 'no pod coverage yet' );\n\ndone_testing();\n" }, { "from": "gpt", "value": "use strict;\nuse warnings;\n...
perl
chosen
[ { "from": "system", "value": "Build a nested hash of all of the instruction information\n\n\ngit-svn-id: 70befc39721819b9947b75b2846b8dcab478813a@1213 96dfbd92-d197-e211-9ca9-00110a534b34\n" }, { "from": "human", "value": "#!/usr/bin/perl\n\nuse strict;\nuse warnings;\n\n# Parse cpu.h into a tab...
perl
chosen
[ { "from": "system", "value": "Return to the string eval\n\nOh right, \"use\" or \"require\" are the times when you need to string eval.\n" }, { "from": "human", "value": "#!/usr/bin/perl\nuse Mojo::Base -strict;\nuse Test::More;\n\nBEGIN {\n eval { use XDeadly::Passwd };\n plan skip_all =>...
perl
chosen
[ { "from": "system", "value": "Expand definition of leading and trailing spaces to include those adjacent to standard\nserialization tag brackets, since those are sometimes introduced during tabularization.\n" }, { "from": "human", "value": "### Trim\n# Delete superfluous spaces in the specified ...
perl
chosen
[ { "from": "system", "value": "Add a more complex test\n" }, { "from": "human", "value": " $ rm -rf x c* symlink*\n\n $ mkdir -p c1\n $ cd c1 && ln -s . x\n $ cd c1 && ln -s . y\n $ cd c1 && dune build\n Path . has already been scanned. Cannot scan it again through symlink x\n [1]\n\n $ m...
perl
chosen
[ { "from": "system", "value": "Set up last-versions directory if it doesn't exist\n" }, { "from": "human", "value": "#!/usr/bin/env perl\n\nuse strict;\nuse warnings;\nuse autodie;\nuse feature qw(say);\n\nuse File::Slurp qw(read_file);\nuse File::Spec;\n\nmy $PYTHON = 'python';\nif(system('which...
perl
chosen
[ { "from": "system", "value": "Add commented explanation of goodie\n" }, { "from": "human", "value": "package DDG::Goodie::RubiksCubePatterns;\n\nuse DDG::Goodie;\n\ntriggers start => \"rcube\";\n\nzci is_cached => 1;\n\nhandle remainder => sub {\n\treturn \"F U F R L2 B D' R D2 L D' B R2 L F U F...
perl
chosen
[ { "from": "system", "value": "Build results of 88a1121 (on master)\n" }, { "from": "human", "value": "#!perl -T\n\nuse strict;\nuse warnings;\n\nuse Test::More tests => 3;\n\nBEGIN { use_ok( 'Template' ); }\nBEGIN { use_ok( 'Template::ShowStartStop' ); }\n\nmy $tt =\n Template->new( {\n ...
perl
chosen
[ { "from": "system", "value": "Test if CI run still fails in UTC timezone\n" }, { "from": "human", "value": "package MediaWords::Util::DateTime;\n\n#\n# Date- and time-related helpers\n#\n\nuse strict;\nuse warnings;\n\nuse Modern::Perl \"2015\";\nuse MediaWords::CommonLibs;\n\nour @ISA = qw(E...
perl
chosen
[ { "from": "system", "value": "Build results of d44c147 (on master)\n" }, { "from": "human", "value": "#!perl -T\nuse strict;\nuse warnings;\n\nuse Test::More;\n\nBEGIN { use_ok( 'Template' ); }\nBEGIN { use_ok( 'Template::ShowStartStop' ); }\n\nmy $tt = Template->new({\n\tCONTEXT => Template::Sh...
perl
chosen
[ { "from": "system", "value": "Fix typo in the test documentation.\n" }, { "from": "human", "value": "# -*- mode: cperl -*-\n# ${license-info}\n# ${author-info}\n# ${build-info}\n\n=pod\n\n=head1 Smoke test\n\nBasic test that ensures that our module will load correctly.\n\nB<Do not disable this t...
perl
chosen
[ { "from": "system", "value": "Use better filename for test\n\nSo it doesn't leave trash around in rakudo's checkout if\n`make test` is aborted at the wrong time.\n" }, { "from": "human", "value": "use v6;\n\nuse lib <lib>;\nuse Test;\n\nplan 3;\n\nmy $filename = \"$?FILE.trace\";\n\nspurt( $file...
perl
chosen
[ { "from": "system", "value": "Add convenience method to get all objects from a cursor at once.\n" }, { "from": "human", "value": "package Mongo::Cursor;\n\nuse Mouse;\n\nhas _oid_class => (\n is => 'ro',\n isa => 'Str',\n required => 1,\n default => 'Mongo::OID',\n);\n\ns...
perl
chosen
[ { "from": "system", "value": "Enable OAuth and Session Middleware\n" }, { "from": "human", "value": "use strict;\nuse warnings;\nuse lib \"lib\";\n\nuse Plack::Builder;\nuse File::RotateLogs;\n\nuse Iwai;\n\nmy $app = Iwai->as_psgi;\nmy $logger = File::RotateLogs->new(\n logfile => \"log/a...
perl
chosen
[ { "from": "system", "value": "Build results of d803b81 (on master)" }, { "from": "human", "value": "package Business::CyberSource::Response::Role::AuthReversal;\nuse 5.008;\nuse strict;\nuse warnings;\nuse namespace::autoclean;\n\nour $VERSION = 'v0.2.4'; # VERSION\n\nuse Moose::Role;\nuse Moose...
perl
chosen
[ { "from": "system", "value": "Add comment to Webmin's temp delete job\n" }, { "from": "human", "value": "\nrequire 'cron-lib.pl';\n\nsub module_install\n{\n# Create a cron job to delete old files in /tmp/.webmin\neval {\n\t$main::error_must_die = 1;\n\tlocal @jobs = &list_cron_jobs();\n\tlocal (...
perl
chosen
[ { "from": "system", "value": "Update compiler options and extension for DEC\n\nCourtesy of Thomas Kratz\n\n\ngit-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@20912 d31e2699-5ff4-0310-a27c-f18f2fbe73fe\n" }, { "from": "human", "value": "# Copyright (C) 2005, The Perl Foundation.\n# $Id$\n\npa...
perl
chosen
[ { "from": "system", "value": "Rewrite for reasonable naming and bug fix(es)" }, { "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\nmy $line_length = 50;\n\nsub MAIN($input-file = $*SP...
perl
chosen
[ { "from": "system", "value": "Add standard header and footer to test file\n" }, { "from": "human", "value": "use Test;\n\n# RT #130474\n\nconstant HOST_PORT_IPV4 = '127.0.0.1:5014';\nconstant HOST_PORT_IPV6 = '[::1]:5016';\n\nplan 2;\n\nsplit-host-port :uri(HOST_PORT_IPV4), :family(2);\nsplit-ho...
perl
chosen
[ { "from": "system", "value": "Comment out some problematic sections of test file\n" }, { "from": "human", "value": "var num := 5 + 5 - 5 * 5\nput num, 6\nvar name : string\nvar price : real := 5.01\nvar things : array 0 .. 9 of array 0 .. 9 of int\nput price, \" \" ..\nprice := price * 2.0\nput ...
perl
chosen
[ { "from": "system", "value": "Print message when rwho db is empty\n" }, { "from": "human", "value": "#!/usr/bin/perl\nuse warnings;\nuse strict;\n\nuse constant\n\tNOTIFY_URL => 'http://equal.cluenet.org/~grawity/misc/rwho.php';\n\nuse LWP::UserAgent;\nuse JSON;\nuse POSIX qw/strftime/;\n\nsub p...
perl
chosen
[ { "from": "system", "value": "CA1: Add only unique canti with SaveCantus. Move VSet implementation to header file.\n" }, { "from": "human", "value": "include \"../../GenCF1/include/default.pl\"\n\n# Analysis\ncorrections = 1 # Number of corrections to show. Set to 0 to disable corrections\npre_b...
perl
chosen
[ { "from": "system", "value": "Disable quotes table operations for now\n" }, { "from": "human", "value": "package XTaTIK::Model::Quote;\n\n# VERSION\n\nuse Mojo::Base -base;\nuse XTaTIK::Model::Products;\nuse Mojo::Pg;\nuse JSON::Meth;\n\nuse experimental 'postderef';\n\nmy @ACCESSORS = qw/conten...
perl
chosen
[ { "from": "system", "value": "Add the source as a comment to the file.\n" }, { "from": "human", "value": "use strict;\nuse warnings;\n\nuse v5.22;\n\nmy @nums = (6, 6, 5, 2);\n\nmy $target = 17;\n\nsub solve {\n my ($t, @n) = @_;\n if (@n == 0) {\n if ($t == $target) {\n say \"found!\"...
perl
chosen
[ { "from": "system", "value": "Implement endpoint to create wishlist\n" }, { "from": "human", "value": "package Iwai::Controller::List;\n\nuse strict;\nuse warnings;\n\nsub index {\n my ($class, $c) = @_;\n $c->render_text(\"index\");\n}\n\nsub json {\n my ($class, $c) = @_;\n my $lists = Iwa...
perl
chosen
[ { "from": "system", "value": "Fix delete of context values using context->param( key => undef )\n" }, { "from": "human", "value": "## OpenXPKI::Workflow::Config\n##\npackage OpenXPKI::Workflow::Context;\n\nuse strict;\nuse warnings;\nuse OpenXPKI::Debug;\nuse Workflow 1.39;\n\nuse base qw( Workf...
perl
chosen
[ { "from": "system", "value": "Create helper crosswith and zipwith functions that call .list on their arguments, so that single scalar arguments can be promoted to Iterables and work with the normal crosswith / zipwith functions.\n" }, { "from": "human", "value": "our multi sub zipwith(&op, Itera...
perl
chosen
[ { "from": "system", "value": "Print debug message on seeing pseudo HTTP status.\n" }, { "from": "human", "value": "package Diversion::App::Command::url_archive;\nuse v5.18;\nuse Diversion::App -command;\nuse Diversion::UrlArchiver;\nuse Parallel::ForkManager;\nuse Log::Any qw($log);\n\nsub opt_s...
perl
chosen
[ { "from": "system", "value": "Test SV::str() with a non-string argument.\n" }, { "from": "human", "value": "use strict;\nuse warnings;\nuse utf8;\n\nuse Test::More;\n\nuse constant {\n UTF_OK => -1,\n ASCII => \"Don't panic!\",\n KANJI => \"慌てる必要がありません\",\n DIACR => \"a\\x{035C}\\x{0...
perl
chosen
[ { "from": "system", "value": "Clean Perl day 15, part 2\n" }, { "from": "human", "value": "#!/usr/bin/perl\n\nuse strict;\nuse warnings;\n\nuse feature 'say';\n\nuse Algorithm::Combinatorics qw(permutations combinations variations);\nuse Data::Dumper;\nuse Digest::MD5 qw(md5_hex);\nuse File::Slu...
perl
chosen
[ { "from": "system", "value": "Add Subclasses 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, whitesp...
perl
chosen
[ { "from": "system", "value": "Use XML::Feed to generate XML feed.\n" }, { "from": "human", "value": "#!/usr/bin/env perl\n\nuse 5.010;\nuse strict;\nuse warnings;\n\nINIT {\n}\n\n__END__\n" }, { "from": "gpt", "value": "#!/usr/bin/env perl\n\nuse 5.010;\nuse strict;\nuse warnings;\n\...
perl
chosen
[ { "from": "system", "value": "Build results of 1dad8da (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": "Add formatting to configurator tests\n" }, { "from": "human", "value": " $ jbuilder exec config/run.exe\n version is present\n $ jbuilder exec c_test/run.exe" }, { "from": "gpt", "value": "Show that config values are present\n $ jbuilder exec config/...
perl
chosen
[ { "from": "system", "value": "MP1: Develop icf overriding for tracks and stages\n" }, { "from": "human", "value": "include \"include/CA2.pl\"\n\n# Analysis\nMidi_file = \"midi\\GenCA2\\test-vocal-play.mid\" # Path and file name of imported midi file\n\ncorrections = 0 # Number of corrections to ...
perl
chosen
[ { "from": "system", "value": "Add an explicit route for controller-only paths (for Mojolicious >= 1.0)\n\n" }, { "from": "human", "value": "package Arepa::Web;\n\nuse strict;\nuse warnings;\n\nuse base 'Mojolicious';\n\nsub startup {\n my $self = shift;\n\n $self->secret(\"b1Tx3z.duN'tKn0W...
perl
chosen
[ { "from": "system", "value": "Build results of 241da17 (on master)" }, { "from": "human", "value": "package Business::CyberSource::Response::Role::AuthReversal;\nuse 5.008;\nuse strict;\nuse warnings;\nBEGIN {\n\tour $VERSION = 'v0.2.4'; # VERSION\n}\nuse Moose::Role;\n\nhas processor_response =...
perl
chosen
[ { "from": "system", "value": "Fix the unit tests for EvaluateScript\n" }, { "from": "human", "value": "#!/usr/bin/perl\n\nuse strict;\nuse warnings;\n\nuse Test::More 'no_plan';\nuse Data::Dumper;\n\n\nBEGIN {\n use_ok('JavaScriptCore');\n}\n\n\nsub main {\n my $context = JavaScriptCore::J...
perl
chosen
[ { "from": "system", "value": "Create sevetal messages with different facility and priority.\n" }, { "from": "human", "value": "# The client writes a message to Sys::Syslog native method.\n# The syslogd writes into multiple files depending on program name.\n# The syslogd writes it into a file and...
perl
chosen
[ { "from": "system", "value": "Build results of 1dad8da (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": "Fix a case with no lib/ directory\n" }, { "from": "human", "value": "use Pies;\nuse Panda::Common;\nuse File::Find;\nuse File::Mkdir;\n\nclass Panda::Builder does Pies::Builder {\n has $!srcdir;\n\n method build-order(@list) {\n # TODO\n return @...
perl
chosen
[ { "from": "system", "value": "Update test now we have a typed exception here.\n" }, { "from": "human", "value": "use v6;\nuse Test;\n\n# L<S02/Bare identifiers/\"There are no barewords in Perl\">\n\nplan 7;\n\nthrows-like { EVAL 'class A { }; class A { }' },\n X::Redeclaration,\n \"Can't redec...
perl
chosen
[ { "from": "system", "value": "Enable encoding with replacement on all backends\n" }, { "from": "human", "value": "my class Encoding::Encoder::Builtin does Encoding::Encoder {\n has str $!encoding;\n has Blob $!type;\n\n method new(Str $encoding, Blob:U $type) {\n nqp::create(self...
perl
chosen
[ { "from": "system", "value": "Add debug test for travis\n" }, { "from": "human", "value": "use strict;\nuse warnings;\n\nuse Test::More tests => 2;\nuse Test::Script;\nuse Test::File::Contents;\nuse File::Path qw(remove_tree);\n\nmy $tmpdir = \"07_tmp\";\n\n# dies because no gene is found in two...
perl
chosen
[ { "from": "system", "value": "Fix subs test - rakudo gist probably changed\n" }, { "from": "human", "value": "use Test;\nuse SP6;\n\nplan 1;\n\nmy $templ_dir = 't/templ';\nmy $sp6 = SP6.new( :templ_dir($templ_dir), );\nis $sp6.process(:tfpath<subs.sp6>), 'some-text', 'esc sub';\n" }, { "...
perl
chosen
[ { "from": "system", "value": "Build results of 1dad8da (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": "Fix a race condition in S::P test.\n\nThe @closings array could end up pushed to from multiple threads, so\nvery occasionally something would go rotten.\n" }, { "from": "human", "value": "use Test;\n\nplan 1;\n\n#?rakudo.jvm todo 'only first iteration of for loop gi...
perl
chosen
[ { "from": "system", "value": "Fix a bug where Devel::EvalContext was being loaded at compile time rather than runtime.." }, { "from": "human", "value": "# adds an extended command #eval for evaluating Perl code\n# I don't think this has any security holes, but one can never be too sure\n# this r...
perl
chosen
[ { "from": "system", "value": "Fix test for obsolete /m modifier\n\ntest died for the wrong reason, m:m is very much alive\n(see S05-modifier/ignoremark.t)\n" }, { "from": "human", "value": "use v6;\nuse Test;\n\nplan 12;\n\n# L<S05/Changed metacharacters>\n\n{\n # A dot . now matches any char...
perl
chosen
[ { "from": "system", "value": "Use ${html_tag}_ to avoid reserved word conflicts\n" }, { "from": "human", "value": "package Duplo;\nuse strict;\nuse warnings;\nuse subs 'link';\n\nmy @HTML_TAGS;\nmy @HTML_TAGS_SINGLE;\n\nBEGIN {\n @HTML_TAGS = qw(\n body\n div\n h1 h2 h3 h4 h5 h6 head h...
perl
chosen
[ { "from": "system", "value": "Reformat Category object initialisation code\n" }, { "from": "human", "value": "module Perl6::Example;\n\nuse v6;\n\n#| Encapsulates an example's metadata\nclass Example is export {\n has $.title is rw;\n has $.author is rw;\n has $.category is rw;\n has...
perl
chosen
[ { "from": "system", "value": "MP1: Send panning and volume to midi\n" }, { "from": "human", "value": "include \"include/CA2.pl\"\n\n# Analysis\nMidi_file = \"midi\\GenCA2\\test-vocal-play.mid\" # Path and file name of imported midi file\n\ncorrections = 0 # Number of corrections to show. Set to ...
perl
chosen
[ { "from": "system", "value": "Change trigger words in tests\n" }, { "from": "human", "value": "#!/usr/bin/env perl\n\nuse strict;\nuse warnings;\nuse Test::More;\nuse DDG::Test::Spice;\n\nddg_spice_test(\n [qw( DDG::Spice::GameInfo )],\n 'game homesick' => test_spice(\n '/js/spice/g...
perl
chosen
[ { "from": "system", "value": "Remove sig die.\nAdded die -> err.\n" }, { "from": "human", "value": "#------------------------------------------------------------------------------\npackage Error::Pure::Error;\n#------------------------------------------------------------------------------\n\n# P...
perl
chosen
[ { "from": "system", "value": "Make it work even in absense of a backend redis\n" }, { "from": "human", "value": "use strict;\nuse Plack::Builder;\nuse Octav::AdminWeb;\nuse MIME::Base64;\nuse Mojo::Server::PSGI;\nuse Sereal::Decoder;\nuse Sereal::Encoder;\n\nmy $web = Octav::AdminWeb->new();\nmy...
perl
chosen
[ { "from": "system", "value": "Add tests for nqp::bindattr_i, nqp::bindattr_n, nqp::bindattr_s, nqp::bindattr.\n" }, { "from": "human", "value": "#! nqp\n\nplan(2);\n\nclass Foo {\n has $!answer;\n method question($what) { $!answer := $what }\n method answer() { $!answer }\n};\n\nmy $fir...
perl
chosen
[ { "from": "system", "value": "Check that libc syslog(3) can process a 8000 bytes message.\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# Th...
perl
chosen
[ { "from": "system", "value": "Fix tests and add test for db_basename\n" }, { "from": "human", "value": "use Test::More tests => 3;\nuse strict;\nuse warnings;\n\nuse lib 't/lib';\nuse App::Mimosa::Test;\n\nBEGIN{ use_ok 'App::Mimosa::Job' }\n\nmy $job = App::Mimosa::Job->new;\nisa_ok $job, 'App:...
perl
chosen
[ { "from": "system", "value": "Build results of 10121e5 (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": "Improve space-age example class exports\n" }, { "from": "human", "value": "unit module SpaceAge:ver<1>;\n\nrole Planet {\n method age-on ($seconds) {\n ($seconds / self.orbital-period).round(0.01);\n }\n}\n\nclass Earth does Planet is export {\n my $.orbital-p...
perl
chosen
[ { "from": "system", "value": "Update test now that Mimosa::Job doesn't have an aligner attribute\n" }, { "from": "human", "value": "use Test::More tests => 3;\nuse strict;\nuse warnings;\n\nuse lib 'lib';\n\nBEGIN{ use_ok 'App::Mimosa::Job' }\n\nmy $job = App::Mimosa::Job->new;\nisa_ok $job, 'Ap...
perl
chosen
[ { "from": "system", "value": "Use same no-PHP msg as underlying library, try/catch php_set_system_default_version to show prettier message\n" }, { "from": "human", "value": "#!/usr/local/cpanel/3rdparty/bin/perl\n# cpanel - 080-phpconf.pl Copyright(c) 2015 cPanel, Inc.\n#...
perl
chosen
[ { "from": "system", "value": "Remove call to pipe() in favor of run()\n\npipe is deprecated\n" }, { "from": "human", "value": "#!/usr/bin/env perl6\n\nuse v6;\n\nsub get-constants(@lines) {\n gather for @lines -> $definition {\n my ( $key, $value ) = $definition.split('=');\n ta...
perl
chosen
[ { "from": "system", "value": "Add a test for a recent regression\n" }, { "from": "human", "value": "use Test;\nuse Bailador;\nuse Bailador::Test;\n\nplan 5;\n\nget '/foo' => sub { \"foo\" }\npost '/bar' => sub { \"bar\" }\n\nget '/baz' => sub { { foo => \"bar\", baz => 5 } }\n\nresponse-content-...
perl
chosen
[ { "from": "system", "value": "Update --only-matching test case to get slightly more coverage.\n" }, { "from": "human", "value": "Setup:\n\n $ . $TESTDIR/setup.sh\n $ echo \"the quick brown foxy\" > blah.txt\n $ echo \"another foxlike word\" >> blah.txt\n $ echo \"no matches here\" >> blah.tx...
perl
chosen
[ { "from": "system", "value": "Fix premature commit of TOP refactor.\n" }, { "from": "human", "value": "class Regex::P6Regex::Actions;\n\nmethod TOP($/) {\n my $regex := PAST::Regex.new(\n $<nibbler>.ast,\n PAST::Regex.new( :pasttype('pass') ),\n :pasttype('concat')\n )...
perl
chosen