conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix Engrish in test description" }, { "from": "human", "value": "use v6;\n\n# L<S11/Runtime Importation>\nuse lib <t/spec/packages>;\nuse Test;\nuse Test::Util;\n\nplan 1;\n\nsubtest 'Circular dependency are detected and reported' => {\n plan 2;\n\n my $dir = ...
perl
chosen
[ { "from": "system", "value": "Add test confirming you have the right MooseX::Storage" }, { "from": "human", "value": "#!perl\n\n{ # dummy plugin {{{\n package Interhack::Plugin::Test;\n use Moose::Role;\n\n has saved => (\n is => 'rw',\n isa => 'Int',\n lazy => 1,\n...
perl
chosen
[ { "from": "system", "value": "Add a dot behind the name of converted records.\n" }, { "from": "human", "value": "#!/usr/bin/perl -w\n#\n\nuse strict;\nuse warnings;\n\nuse Net::DNS;\n\nmy @supported_types = qw(SOA A AAAA CNAME TXT MX NAPTR NS SRV PTR);\nmy %support;\nmy $resolver = new Net::DNS:...
perl
chosen
[ { "from": "system", "value": "Check the eval in a way that perl critic does not complain about\n" }, { "from": "human", "value": "#!perl -T\n\nuse warnings;\nuse strict;\nuse Test::More tests => 23;\n\nuse App::Ack; # For the VERSION\nuse File::Next;\nuse Test::Harness;\nuse Getopt::Long;\nuse...
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": "Use $log instead of \"say\"\n" }, { "from": "human", "value": "package Diversion::App::Command::url_archive;\nuse v5.18;\nuse Diversion::App -command;\nuse Diversion::UrlArchiver;\nuse Parallel::ForkManager;\n\nsub opt_spec {\n return (\n [\"workers=n\", \...
perl
chosen
[ { "from": "system", "value": "Add a test for .expression\n" }, { "from": "human", "value": "use v6;\n\nuse Test;\nplan 7;\n\nuse Math::Symbolic;\n\nisa_ok Math::Symbolic.new('0'), Math::Symbolic, \".new() works\";\n\nis Math::Symbolic.new('x+y=1').isolate('x').Str, 'x=1-y', '.isolate() works';\n...
perl
chosen
[ { "from": "system", "value": "Add more validation tests and use the spiffy autolint parameter\n" }, { "from": "human", "value": "#!/usr/bin/env perl\nuse strict;\nuse warnings;\nuse Test::Most;\n\nuse lib 't/lib';\nuse App::Mimosa::Test;\nuse aliased 'App::Mimosa::Test::Mech';\n\nmy $mech = Mech...
perl
chosen
[ { "from": "system", "value": "Make $?FILE testing more tolerant of odd paths\n" }, { "from": "human", "value": "use v6;\n\n\nuse Test;\n\nplan 2;\n\n# L<S02/Names/Which line am I at>\n#?rakudo skip '$?LINE not implemented'\nis($?LINE, 10, '$?LINE works');\n\n# L<S02/Names/Which file am I in>\n#?...
perl
chosen
[ { "from": "system", "value": "Test attribute setting in Category class\n" }, { "from": "human", "value": "use v6;\n\nuse lib 'lib';\nuse Test;\n\nplan 2;\n\nuse-ok \"Perl6::Examples\";\n\nuse Perl6::Examples;\n\nsubtest {\n plan 2;\n\n ok(Category.new(), \"A Category object can be instanti...
perl
chosen
[ { "from": "system", "value": "Add test comments. Add two new tests.\n" }, { "from": "human", "value": "# Pragmas.\nuse strict;\nuse warnings;\n\n# Modules.\nuse English qw(-no_match_vars);\nuse File::Object;\nuse Test::More 'tests' => 3;\n\n# Test.\neval {\n\tFile::Object->new('');\n};\nis($EVAL...
perl
chosen
[ { "from": "system", "value": "Check that the presence key has an events sub key\n" }, { "from": "human", "value": "push our @EXPORT, qw( matrix_sync );\n\nsub matrix_sync {\n my ( $user, %params ) = @_;\n do_request_json_for( $user,\n method => \"GET\",\n uri => \"/v2_al...
perl
chosen
[ { "from": "system", "value": "Build results of 57d3074 (on master)" }, { "from": "human", "value": "#!/usr/bin/perl\nuse 5.006;\nuse strict;\nuse warnings;\nuse Test::Tester;\nuse Test::Version qw( version_all_ok );\nuse Test::More;\n\nmy ( $premature, @results ) = run_tests(\n\tsub {\n\t\tversi...
perl
chosen
[ { "from": "system", "value": "Throw error for unsupported record_id import\n" }, { "from": "human", "value": "package GADS::Schema::ResultSet::Current;\n\nuse strict;\nuse warnings;\n\nuse parent 'DBIx::Class::ResultSet';\n\n__PACKAGE__->load_components(qw/\n Helper::ResultSet::DateMethods1\n...
perl
chosen
[ { "from": "system", "value": "Bring basic -e tests inline with new MMD setup\n" }, { "from": "human", "value": "use v6;\nuse Test;\nplan 4;\n\nuse lib 't/spec/packages';\nuse Test::Util;\n\nmy Str $x;\n\nis_run $x, :args['-e', 'print q[Moin]'],\n {\n out => 'Moin',\n err ...
perl
chosen
[ { "from": "system", "value": "Test login for user 'seven'\n" }, { "from": "human", "value": "use strict;\nuse warnings;\nuse lib 't';\n\nuse TestConnection;\nuse Test::More;\n\nmy @users = (\n 'one',\n 'two',\n 'three',\n 'four',\n 'five',\n 'six',\n);\n\nplan tests => scalar(@...
perl
chosen
[ { "from": "system", "value": "Add a server-side map module for zurich maps - very borked\n" }, { "from": "human", "value": "#!/usr/bin/perl\n#\n# FixMyStreet:Map::Zurich\n# Zurich have their own tileserver serving aerial photos instead\n# of street maps.\n#\n# Copyright (c) 2012 UK Citizens Onli...
perl
chosen