code stringlengths 2 1.05M | repo_name stringlengths 5 101 | path stringlengths 4 991 | language stringclasses 3
values | license stringclasses 5
values | size int64 2 1.05M |
|---|---|---|---|---|---|
#!/usr/bin/env perl
# Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
# Copyright [2016] EMBL-European Bioinformatics Institute
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# Y... | danstaines/ensembl | misc-scripts/assembly/mapping_stats.pl | Perl | apache-2.0 | 8,879 |
package GistTokenizer;
use strict;
use warnings;
#use Moose;
use Text::Trim;
sub tokenize {
my $string = shift;
my @tokens;
# my @tokens = grep { length( $_ ); } split / |\p{Punct}/, $string;
@tokens = map { trim($_); } split /(\W)/, $string;
@tokens = grep { length( $_ ); } @tokens;
retu... | ypetinot/web-summarization | src/perl/GistTokenizer.pm | Perl | apache-2.0 | 352 |
# Copyright 2020, Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | googleads/google-ads-perl | lib/Google/Ads/GoogleAds/V9/Services/AdService.pm | Perl | apache-2.0 | 1,372 |
package VMOMI::VslmCloneSpec;
use parent 'VMOMI::VslmMigrateSpec';
use strict;
use warnings;
our @class_ancestors = (
'VslmMigrateSpec',
'DynamicData',
);
our @class_members = (
['name', undef, 0, ],
);
sub get_class_ancestors {
return @class_ancestors;
}
sub get_class_members {
my $class = s... | stumpr/p5-vmomi | lib/VMOMI/VslmCloneSpec.pm | Perl | apache-2.0 | 437 |
g(X1,X2,X3) :- p(X1,X2), q(X2,X3), r(X1,X3).
p(a,b). q(b,c). r(a,d).
p(b,c). q(c,d). r(b,c).
r(a,W).
| leuschel/logen | old_logen/filter_prop/Tests/pqr.pl | Perl | apache-2.0 | 157 |
# Copyright 2020, Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | googleads/google-ads-perl | lib/Google/Ads/GoogleAds/V9/Services/ConversionValueRuleSetService.pm | Perl | apache-2.0 | 1,472 |
=head1 LICENSE
See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/l... | Ensembl/ensembl-compara | modules/Bio/EnsEMBL/Compara/PipeConfig/Vertebrates/MercatorPecan_conf.pm | Perl | apache-2.0 | 1,772 |
=head1 LICENSE
# Copyright [1999-2014] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.ap... | navygit/ncRNA_Pipeline | modules/Bio/EnsEMBL/Analysis/Runnable/DustMasker.pm | Perl | apache-2.0 | 6,532 |
# Copyright 2020, Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | googleads/google-ads-perl | lib/Google/Ads/GoogleAds/V10/Services/ReachPlanService/Targeting.pm | Perl | apache-2.0 | 1,242 |
package VMOMI::BoolOption;
use parent 'VMOMI::OptionType';
use strict;
use warnings;
our @class_ancestors = (
'OptionType',
'DynamicData',
);
our @class_members = (
['supported', 'boolean', 0, ],
['defaultValue', 'boolean', 0, ],
);
sub get_class_ancestors {
return @class_ancestors;
}
sub get... | stumpr/p5-vmomi | lib/VMOMI/BoolOption.pm | Perl | apache-2.0 | 471 |
#!/opt/local/bin/perl
my %q ;
my $file = $ARGV[0]; # 'queryCount.txt';
open FILE, $file ;
foreach $line ( <FILE> ) {
($val, $query) = ($line =~ /^(\d+)\s+(.*)$/);
$query =~ s/(\d+)/D/g;
$q{$query} = $q{$query} + $val ;
}
foreach $key (keys %q ) {
print $q{$key}, "\t$key\n";
}
__END__
#!/opt/local/bin/pe... | dkelsey/dtrace-live-SQL | total.pl | Perl | apache-2.0 | 619 |
# Copyright 2020, Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | googleads/google-ads-perl | lib/Google/Ads/GoogleAds/V10/Enums/ValueRuleGeoLocationMatchTypeEnum.pm | Perl | apache-2.0 | 881 |
package Paws::SimpleWorkflow::RegisterDomain;
use Moose;
has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description' );
has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name' , required => 1);
has WorkflowExecutionRetentionPeriodI... | ioanrogers/aws-sdk-perl | auto-lib/Paws/SimpleWorkflow/RegisterDomain.pm | Perl | apache-2.0 | 3,001 |
package Moose::Exception::AutoDeRefNeedsArrayRefOrHashRef;
our $VERSION = '2.1404';
use Moose;
extends 'Moose::Exception';
with 'Moose::Exception::Role::InvalidAttributeOptions';
sub _build_message {
my $self = shift;
"You cannot auto-dereference anything other than a ArrayRef or HashRef on attribute (".$self... | ray66rus/vndrv | local/lib/perl5/x86_64-linux-thread-multi/Moose/Exception/AutoDeRefNeedsArrayRefOrHashRef.pm | Perl | apache-2.0 | 348 |
#!/usr/bin/perl -w
use strict;
use Text::Trie qw(Trie walkTrie);
print trie_compress( @ARGV );
sub trie_compress {
my ( @strings ) = @_;
my @trie = Trie( @strings );
my @compressed;
for my $entry ( @trie ) {
push @compressed, trie_to_text( $entry );
}
my $results;
if ( scalar @... | gitpan/Compress-BraceExpansion | bin/trie-compress.pl | Perl | bsd-3-clause | 2,621 |
login mortal
run tests:
test('stringsecs.1', $mortal, 'think stringsecs(a)', '#-1 INVALID TIMESTRING');
test('stringsecs.2', $mortal, 'think stringsecs(10)', '10');
test('stringsecs.3', $mortal, 'think stringsecs(10s)', '10');
test('stringsecs.4', $mortal, 'think stringsecs(5m)', '300');
test('stringsecs.5', $mortal, '... | ccubed/MuDocker | Pennmush/Mu2Empty/Penn_Mu2/test/teststringsecs.pl | Perl | mit | 643 |
package Net::PMP;
use strict;
use warnings;
use Net::PMP::Client;
use Net::PMP::CollectionDoc;
our $VERSION = '0.004';
sub client {
my $class = shift;
return Net::PMP::Client->new_with_config(@_);
}
1;
__END__
=head1 NAME
Net::PMP - Perl SDK for the Public Media Platform
=head1 SYNOPSIS
use Net::PMP;
... | gitpan/Net-PMP | lib/Net/PMP.pm | Perl | mit | 2,665 |
#!/usr/bin/env perl
#
#-------------------------------------------------------------------------------
# Copyright (c) 2014-2019 René Just, Darioush Jalali, and Defects4J contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files ... | rjust/defects4j | framework/util/get_relevant_tests.pl | Perl | mit | 4,801 |
package Google::Ads::AdWords::v201409::IncomeOperand;
use strict;
use warnings;
__PACKAGE__->_set_element_form_qualified(1);
sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201409' };
our $XML_ATTRIBUTE_CLASS;
undef $XML_ATTRIBUTE_CLASS;
sub __get_attr_class {
return $XML_ATTRIBUTE_CLASS;
}
use b... | gitpan/GOOGLE-ADWORDS-PERL-CLIENT | lib/Google/Ads/AdWords/v201409/IncomeOperand.pm | Perl | apache-2.0 | 1,762 |
#!/usr/bin/perl -w
#
# Copyright 2012, Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | gitpan/Google-Ads-AdWords-Client | examples/v201406/basic_operations/get_campaigns.pl | Perl | apache-2.0 | 2,660 |
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
# This file is machine-generated by lib/unicore/mktables from the Unicode
# database, Version 8.0.0. Any changes made here will be lost!
# !!!!!!! INTERNAL PERL USE ONLY !!!!!!!
# This file is for internal use by core Perl only. The format and even the
# name or existe... | operepo/ope | bin/usr/share/perl5/core_perl/unicore/lib/Sc/Hang.pl | Perl | mit | 656 |
#------------------------------------------------------------------------------
# File: NikonCapture.pm
#
# Description: Read/write Nikon Capture information
#
# Revisions: 11/08/2005 - P. Harvey Created
# 10/10/2008 - P. Harvey Updated for Capture NX 2
# 16/04/2011 - P. Harvey D... | wilg/mini_exiftool_vendored | vendor/Image-ExifTool-9.27/lib/Image/ExifTool/NikonCapture.pm | Perl | mit | 27,654 |
#!/usr/bin/perl
use warnings;
use strict;
use Test::More;
my $rc = 0;
$rc = plan tests => 1;
diag("Returned: " . sprintf("%d", $rc));
$rc = ok(1);
diag("Returned: $rc");
| pozorvlak/libtap | tests/plan/sane/test.pl | Perl | bsd-2-clause | 175 |
#!/usr/bin/perl -w
#
# The MIT License (MIT)
#
# Copyright (c) 2016 Michael J. Wouters
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation th... | openttp/openttp | software/gpscv/common/bin/runmktimetx.pl | Perl | mit | 6,811 |
#!/usr/bin/perl
require 'quickies.pl'
($User,$Planet,$AuthCode,$CityName,$TempMode)=split(/&/,$ENV{QUERY_STRING});
$PlanetDir = $MasterPath . "/se/Planets/$Planet";
$UserDir = "$PlanetDir/users/$User";
if (-e "$UserDir/Dead.txt") {
print "Location: http://www.bluewand.com/cgi-bin/classic/Dead.pl?$User&$Planet&$AuthC... | cpraught/shattered-empires | CityMod.pl | Perl | mit | 12,744 |
# -*- perl -*-
# !!! DO NOT EDIT !!!
# This file was automatically generated.
package Net::Amazon::Validate::ItemSearch::jp::Manufacturer;
use 5.006;
use strict;
use warnings;
sub new {
my ($class , %options) = @_;
my $self = {
'_default' => 'Apparel',
%options,
};
push @{$self->{_opt... | carlgao/lenga | images/lenny64-peon/usr/share/perl5/Net/Amazon/Validate/ItemSearch/jp/Manufacturer.pm | Perl | mit | 1,426 |
#PODNAME: DBD::Oracle::Troubleshooting::Cygwin
#ABSTRACT: Tips and Hints to Troubleshoot DBD::Oracle on Cygwin
__END__
=pod
=head1 NAME
DBD::Oracle::Troubleshooting::Cygwin - Tips and Hints to Troubleshoot DBD::Oracle on Cygwin
=head1 VERSION
version 1.50
=head1 General Info
Makefile.PL should find and make use... | amidoimidazol/bio_info | Beginning Perl for Bioinformatics/lib/DBD/Oracle/Troubleshooting/Cygwin.pod | Perl | mit | 2,402 |
:- expects_dialect(lps).
/*
Original first example from https://nakamotoinstitute.org/contract-language/ :
future(rightA="1 round lot pork bellies",
rightB="$1,500.00",
p = "for delivery in July 2002") =
when withinPeriod(p)
to Holder rightA with to Counterparty rightB
then terminat... | TeamSPoon/logicmoo_workspace | packs_sys/logicmoo_lps/examples/CLOUT_workshop/SzaboLanguage_futures.pl | Perl | mit | 1,509 |
%query: conf(i).
/* from Stefaan Decorte, Danny De Schreye, Henk Vandecasteele, 1997 */
conf(X) :- del2(X,Z), del(U,Y,Z), conf(Y).
del2(X,Y) :- del(U,X,Z), del(V,Z,Y).
del(X,[X|T],T).
del(X,[H|T],[H|T1]) :- del(X,T,T1).
s2l(s(X),[Y|Xs]):- s2l(X,Xs).
s2l(0, []).
goal(X) :- s2l(X,XS), conf(XS).
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Logic_Programming/SGST06/confdel.pl | Perl | mit | 302 |
use strict;
use warnings;
use 5.010;
use Data::Dumper qw(Dumper);
my %aHash = (
one => 1,
two => 2,
three => 3,
);
print Dumper(\%aHash);
my %rHash = ();
for my $key (keys %aHash) {
$rHash{$aHash{$key}} = $key;
}
print Dumper(\%rHash);
| dimir2/hse12pi2-scripts | IvanovV/perl/scr2.pl | Perl | mit | 248 |
# Copyright 2020, Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | googleads/google-ads-perl | lib/Google/Ads/GoogleAds/V9/Services/ReachPlanService/PlannableLocation.pm | Perl | apache-2.0 | 1,225 |
package WordGraph::ReferenceRanker;
use strict;
use warnings;
use Moose;
use namespace::autoclean;
use File::Basename;
use File::Path;
with( 'DMOZ' );
# Note : we are ranking "sentences" ==> our framework operates on sentences but extends beyond previous systems that where limited on sentences that were (up to a c... | ypetinot/web-summarization | summarizers/graph-summarizer-4/src/WordGraph/ReferenceRanker.pm | Perl | apache-2.0 | 9,274 |
#
# Copyright 2018 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in com... | wilfriedcomte/centreon-plugins | apps/protocols/bgp/4/mode/bgppeerstate.pm | Perl | apache-2.0 | 8,900 |
=head1 LICENSE
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Copyright [2016-2021] EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obta... | Ensembl/ensembl-webcode | modules/EnsEMBL/Draw/GlyphSet/genetree.pm | Perl | apache-2.0 | 32,398 |
package HTTP::Body::OctetStream;
{
$HTTP::Body::OctetStream::VERSION = '1.19';
}
use strict;
use base 'HTTP::Body';
use bytes;
use File::Temp 0.14;
=head1 NAME
HTTP::Body::OctetStream - HTTP Body OctetStream Parser
=head1 SYNOPSIS
use HTTP::Body::OctetStream;
=head1 DESCRIPTION
HTTP Body OctetStream Parse... | MorganCabral/cabralcc.com | app/cgi-bin/lib/HTTP/Body/OctetStream.pm | Perl | apache-2.0 | 964 |
=head1 LICENSE
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Copyright [2016-2021] EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obta... | Ensembl/public-plugins | covid19/modules/EnsEMBL/Web/Component/Info/SpeciesBlurb.pm | Perl | apache-2.0 | 1,491 |
# Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
# Copyright [2016-2017] EMBL-European Bioinformatics Institute
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a... | james-monkeyshines/ensembl-analysis | modules/Bio/EnsEMBL/Analysis/RunnableDB/Finished/HalfwiseHMM.pm | Perl | apache-2.0 | 17,098 |
package VMOMI::ArrayOfDistributedVirtualSwitchKeyedOpaqueBlob;
use parent 'VMOMI::ComplexType';
use strict;
use warnings;
our @class_ancestors = ( );
our @class_members = (
['DistributedVirtualSwitchKeyedOpaqueBlob', 'DistributedVirtualSwitchKeyedOpaqueBlob', 1, 1],
);
sub get_class_ancestors {
return @cla... | stumpr/p5-vmomi | lib/VMOMI/ArrayOfDistributedVirtualSwitchKeyedOpaqueBlob.pm | Perl | apache-2.0 | 495 |
#!/usr/bin/env perl
#############################################################################
##
## File : build.pl
## Copyright : (c) David Harley 2010
## Project : qtHaskell
## Version : 1.1.4
## Modified : 2010-09-02 17:01:40
##
## Warning : this file is machine generate... | keera-studios/hsQt | build.pl | Perl | bsd-2-clause | 28,076 |
=head1 webminlog-lib.pl
This module contains functions for parsing the Webmin actions log file.
foreign_require("webminlog", "webminlog-lib.pl");
@actions = webminlog::list_webmin_log(undef, "useradmin", undef, undef);
foreach $a (@actions) {
print webminlog::get_action_description($a),"\n";
}
=cut
BEGIN { p... | xtso520ok/webmin | webminlog/webminlog-lib.pl | Perl | bsd-3-clause | 10,283 |
#!/usr/bin/perl
#
# Copyright (c) 2011, Nokia Corporation
# All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
#... | fogfish/elata | tsa/src/newdb.pl | Perl | bsd-3-clause | 2,892 |
#
# This file is part of MooseX-Traits-Attribute-MergeHashRef
#
# This software is Copyright (c) 2011 by Moritz Onken.
#
# This is free software, licensed under:
#
# The (three-clause) BSD License
#
package Moose::Meta::Attribute::Custom::Trait::MergeHashRef;
BEGIN {
$Moose::Meta::Attribute::Custom::Trait::MergeHas... | gitpan/MooseX-Traits-Attribute-MergeHashRef | lib/Moose/Meta/Attribute/Custom/Trait/MergeHashRef.pm | Perl | bsd-3-clause | 1,116 |
package Paws::ECS::ListTaskDefinitionsResponse;
use Moose;
has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken' );
has TaskDefinitionArns => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'taskDefinitionArns' );
has _requ... | ioanrogers/aws-sdk-perl | auto-lib/Paws/ECS/ListTaskDefinitionsResponse.pm | Perl | apache-2.0 | 966 |
package BDE::Util::RuntimeFlags;
# ----------------------------------------------------------------------------
# Copyright 2016 Bloomberg Finance L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the L... | che2/bde-tools | contrib/bdedox/lib/perl/BDE/Util/RuntimeFlags.pm | Perl | apache-2.0 | 1,409 |
package #
Date::Manip::Offset::off257;
# Copyright (c) 2008-2014 Sullivan Beck. All rights reserved.
# This program is free software; you can redistribute it and/or modify it
# under the same terms as Perl itself.
# This file was automatically generated. Any changes to this file will
# be lost the next time 'tzdata'... | nriley/Pester | Source/Manip/Offset/off257.pm | Perl | bsd-2-clause | 853 |
%% ---
%% Excerpted from "Seven Languages in Seven Weeks",
%% published by The Pragmatic Bookshelf.
%% Copyrights apply to this code. It may not be used to create training material,
%% courses, books, articles, and the like. Contact us if you are in doubt.
%% We make no guarantees that this code is fit for any pu... | nmcl/scratch | prolog/math.pl | Perl | apache-2.0 | 744 |
#
# Copyright 2017 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in com... | nichols-356/centreon-plugins | storage/storagetek/sl/snmp/mode/components/controller.pm | Perl | apache-2.0 | 2,865 |
=head1 LICENSE
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licen... | ckongEbi/ensembl-compara | modules/Bio/EnsEMBL/Compara/RunnableDB/GeneTrees/DumpAllTreesOrthoXML.pm | Perl | apache-2.0 | 3,840 |
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
# This file is machine-generated by lib/unicore/mktables from the Unicode
# database, Version 6.1.0. Any changes made here will be lost!
# !!!!!!! INTERNAL PERL USE ONLY !!!!!!!
# This file is for internal use by core Perl only. The format and even the
# name or existe... | efortuna/AndroidSDKClone | ndk_experimental/prebuilt/linux-x86_64/lib/perl5/5.16.2/unicore/lib/Lb/CP.pl | Perl | apache-2.0 | 437 |
#!/usr/bin/env perl
$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
push(@INC, "${dir}.", "${dir}../crypto/perlasm");
require "x86asm.pl";
require "uplink-common.pl";
&asm_init($ARGV[0],"uplink-x86");
&external_label("OPENSSL_Uplink");
&public_label("OPENSSL_UplinkTable");
for ($i=1;$i<=$N;$i++) {
&function_b... | caidongyun/nginx-openresty-windows | nginx/objs/lib/openssl-1.0.1g/ms/uplink-x86.pl | Perl | bsd-2-clause | 724 |
# This file is auto-generated by the Perl DateTime Suite time zone
# code generator (0.07) This code generator comes with the
# DateTime::TimeZone module distribution in the tools/ directory
#
# Generated from /tmp/rnClxBLdxJ/northamerica. Olson data version 2013a
#
# Do not edit this file directly.
#
package DateTim... | liuyangning/WX_web | xampp/perl/vendor/lib/DateTime/TimeZone/America/Monterrey.pm | Perl | mit | 17,954 |
package Moose::Meta::Attribute::Native::Trait::Hash;
BEGIN {
$Moose::Meta::Attribute::Native::Trait::Hash::AUTHORITY = 'cpan:STEVAN';
}
{
$Moose::Meta::Attribute::Native::Trait::Hash::VERSION = '2.0604';
}
use Moose::Role;
with 'Moose::Meta::Attribute::Native::Trait';
sub _helper_type { 'HashRef' }
no Moose::Ro... | Dokaponteam/ITF_Project | xampp/perl/vendor/lib/Moose/Meta/Attribute/Native/Trait/Hash.pm | Perl | mit | 4,245 |
=head1 NAME
perlport - Writing portable Perl
=head1 DESCRIPTION
Perl runs on numerous operating systems. While most of them share
much in common, they also have their own unique features.
This document is meant to help you to find out what constitutes portable
Perl code. That way once you make a decision to write... | leighpauls/k2cro4 | third_party/cygwin/lib/perl5/5.10/pods/perlport.pod | Perl | bsd-3-clause | 86,283 |
package Kwiki::Users;
use Kwiki::Base -Base;
use mixin 'Kwiki::Installer';
const class_id => 'users';
const class_title => 'Kwiki Users';
const user_class => 'Kwiki::User';
sub init {
$self->hub->config->add_file('user.yaml');
}
sub all {
($self->current);
}
sub all_ids {
($self->current->id);
}
sub cu... | carlgao/lenga | images/lenny64-peon/usr/share/perl5/Kwiki/Users.pm | Perl | mit | 1,827 |
#!/usr/bin/perl -s
#
# out put of find
$path = shift;
if($old){
$oldMeans = $old;
} else {
$oldMeans = 10;
}
if($dst){
$dstPath = $dst;
} else {
$dstPath = ".";
}
open(FP, "find $path -maxdepth 1 -type f |") || die "find <$path> failed";
while(<FP>){
s/[\r\n]+//;
if($verbose){
print $_, "\n";
}
... | wittyfool/linux_amenities | seiri.pl | Perl | mit | 952 |
#!/usr/bin/env perl
#
# ====================================================================
# Written by Andy Polyakov <appro@openssl.org> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.open... | vbloodv/blood | extern/openssl.orig/crypto/modes/asm/ghashv8-armx.pl | Perl | mit | 11,481 |
package CXGN::List::Desynonymize;
use Moose;
use CXGN::Stock::StockLookup;
use Module::Pluggable require => 1;
my %stock_list_type_hash = (
'seedlots'=>'seedlot',
'plots'=>'plot',
'accessions'=>'accession',
'vector_constructs'=>'vector_construct',
'crosses'=>'cross',
'populations'=>'populatio... | solgenomics/sgn | lib/CXGN/List/Desynonymize.pm | Perl | mit | 2,280 |
#!/usr/bin/env perl
use strict;
use warnings;
use Getopt::Long;
use Pod::Usage;
use Env qw(HOME);
use Cwd;
my $filename = 'liquibase.properties';
my $basePath = cwd();
my %opts=(
filename => \$filename,
driver => 'com.mysql.jdbc.Driver',
classpath => "${basePath}/mysql-connector-jav... | EVODelavega/gp-scripts | liquibase/setup.pl | Perl | mit | 3,121 |
# Copyright (c) 2010 - Action Without Borders
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, mo... | quile/if-framework | framework/lib/IF/ObjectContext.pm | Perl | mit | 17,487 |
package Nspamper;
use strict;
use warnings;
use Carp;
use Net::DNS;
use NetAddr::IP;
our $VERSION = 0.02;
# TODO: add / allow more verbose progress / error reporting
sub new {
my( $proto ) = @_;
bless {
resolver => Net::DNS::Resolver->new,
domain => {
# name => [ $nsresolver, ... ]
},
ns => {
# name... | rclasen/nspamper | lib/Nspamper.pm | Perl | mit | 3,425 |
package JSON::Schema::Validator::State;
use strict;
use warnings;
use overload
'==' => \&num_comparision,
'""' => \&to_string,
bool => \&to_string;
sub new {
my ( $proto, %args ) = @_;
my $state = {};
$state->{path} = '$';
$state->{schema_root} = $args{schema_root};
$state->{errors} = {};... | AnotherOneAckap/p5-json-schema-validator | lib/JSON/Schema/Validator/State.pm | Perl | mit | 1,327 |
/* Problem 1 */
odd_list(X, [], Y) :-
Y >= X.
odd_list(X, [Y|L], Y) :-
X > Y, Z is Y+2, odd_list(X, L, Z).
odd_list(X, L) :-
odd_list(X, L, 1).
/* Problem 2 */
nexttri(X, Y, Y, _) :-
X < Y.
nexttri(X, Y, A, B) :-
X >= A, P is A+B, Q is B+1, nexttri(X, Y, P, Q).
nexttri(X, Y) :-
nexttri(X, Y, 1,... | chpoon92/prolog-practice-assignment-prolog | src/Assignment3.pl | Perl | mit | 1,085 |
#!/usr/bin/perl
=head1 Static Index Generator
Generates a static index from Documenter index JSON
=cut
use strict;
use FindBin qw($Bin);
use lib "$Bin";
use JSON;
use File::Basename;
use File::Spec qw(catfile);
use XML::RSS;
use Scalar::Util qw(looks_like_number);
use DateTime;
use DateTime::Format::W3CDTF;
use Da... | pkrusche/documenter | staticindex.pl | Perl | mit | 6,358 |
#
# Copyright 2018 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in com... | wilfriedcomte/centreon-plugins | apps/hyperv/2012/local/plugin.pm | Perl | apache-2.0 | 2,087 |
#
# Copyright 2019 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in com... | Sims24/centreon-plugins | network/a10/ax/snmp/mode/vserverusage.pm | Perl | apache-2.0 | 9,167 |
#!/usr/bin/perl -w
use strict;
use lib ".";
use PAsm;
use Data::Dumper;
my $lowcovremoved = 0;
print STDERR "Removing nodes <= $MAX_LOW_COV_LEN bp with cov <= $MAX_LOW_COV_THRESH\n";
while (<>)
{
chomp;
my $node = {};
my @vals = split /\t/, $_;
my $nodeid = shift @vals;
my $msgtype = shift @vals; ## no... | julianlau/contrail-emr | prototype/cliplowcoverage-map.pl | Perl | apache-2.0 | 999 |
#
# Copyright 2016 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in com... | bcournaud/centreon-plugins | network/netasq/snmp/mode/vpnstatus.pm | Perl | apache-2.0 | 13,345 |
false :-
main_verifier_error.
verifier_error(A,B,C) :-
A=0,
B=0,
C=0.
verifier_error(A,B,C) :-
A=0,
B=1,
C=1.
verifier_error(A,B,C) :-
A=1,
B=0,
C=1.
verifier_error(A,B,C) :-
A=1,
B=1,
C=1.
fibonacci(A,B,C,D,E) :-
A=1,
B=1,
C=1.
fibonacci(A,B,C,D,E) :-
A=0,
B=1,
... | bishoksan/RAHFT | benchmarks_scp/SVCOMP15/svcomp15-clp/Fibonacci02_true-unreach-call_true-termination.c.pl | Perl | apache-2.0 | 1,073 |
#!/usr/bin/perl
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "L... | PSUdaemon/trafficserver | plugins/experimental/url_sig/sign.pl | Perl | apache-2.0 | 3,707 |
#
# Copyright 2021 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in com... | Tpo76/centreon-plugins | database/cassandra/jmx/mode/clientrequestsusage.pm | Perl | apache-2.0 | 6,116 |
=head1 LICENSE
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Copyright [2016-2022] EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obt... | Ensembl/ensembl-database-loader | modules/Bio/EnsEMBL/DBLoader/PipeConfig/LoadDBs_EG_conf.pm | Perl | apache-2.0 | 7,661 |
package Venn::Controller::API::v1::Container;
=head1 NAME
Venn::Controller::API::v1::Container - Container CRUD
=head1 DESCRIPTION
RESTful interface for containers in Venn.
=head1 AUTHOR
Venn Engineering
Josh Arenberg, Norbert Csongradi, Ryan Kupfer, Hai-Long Nguyen
=head1 LICENSE
Copyright 2013,2014,2015 Morg... | Morgan-Stanley/venn-core | lib/Venn/Controller/API/v1/Container.pm | Perl | apache-2.0 | 10,514 |
=head1 LICENSE
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Copyright [2016-2017] EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obta... | danstaines/ensembl-compara | modules/Bio/EnsEMBL/Compara/RunnableDB/Families/MafftAfamily.pm | Perl | apache-2.0 | 4,983 |
package Google::Ads::AdWords::v201809::FunctionParsingError;
use strict;
use warnings;
__PACKAGE__->_set_element_form_qualified(1);
sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201809' };
our $XML_ATTRIBUTE_CLASS;
undef $XML_ATTRIBUTE_CLASS;
sub __get_attr_class {
return $XML_ATTRIBUTE_CLASS;
}
... | googleads/googleads-perl-lib | lib/Google/Ads/AdWords/v201809/FunctionParsingError.pm | Perl | apache-2.0 | 3,138 |
package VMOMI::FileTooLarge;
use parent 'VMOMI::FileFault';
use strict;
use warnings;
our @class_ancestors = (
'FileFault',
'VimFault',
'MethodFault',
);
our @class_members = (
['datastore', undef, 0, ],
['fileSize', undef, 0, ],
['maxFileSize', undef, 0, 1],
);
sub get_class_ancestors {
... | stumpr/p5-vmomi | lib/VMOMI/FileTooLarge.pm | Perl | apache-2.0 | 509 |
%%---------------------------------------------------------------------
%%
%% SHAPE CLASS
%%
%%---------------------------------------------------------------------
:- module(shape_class_doc,[],[objects,assertions,isomodes,regtypes]).
:- use_module(library('tcltk_obj/canvas_class')).
:- comment(hide,'class$call'/3).... | leuschel/ecce | www/CiaoDE/ciao/library/tcltk_obj/Back/shape_class_doc.pl | Perl | apache-2.0 | 4,984 |
package VMOMI::EntityBackupConfig;
use parent 'VMOMI::DynamicData';
use strict;
use warnings;
our @class_ancestors = (
'DynamicData',
);
our @class_members = (
['entityType', undef, 0, ],
['configBlob', undef, 0, ],
['key', undef, 0, 1],
['name', undef, 0, 1],
['container', 'ManagedObjectRe... | stumpr/p5-vmomi | lib/VMOMI/EntityBackupConfig.pm | Perl | apache-2.0 | 593 |
package PerlSys::Version;
use strict;
use warnings;
use autodie;
use Config;
use Exporter "import";
our @EXPORT_OK = qw/
format_apiver
current_apiver
/;
our %EXPORT_TAGS = (all => \@EXPORT_OK);
sub format_apiver {
my ($rev, $ver, $sub) = @_;
my $str = sprintf "v%d.%d", $rev, $ver;
$str .= ".$sub... | vickenty/perl-sys | build/lib/PerlSys/Version.pm | Perl | bsd-2-clause | 505 |
#!/bin/env perl
use Pessoa;
my $pessoa = Pessoa->new (
pre => "Albert", nome => "Einstein",
ocup => "Físico", pais => "Alemanha");
do {
my $outra = Pessoa->new ();
$outra->pre("José");
$outra->nome("Leite Lopes");
$outra->ocup("Físico");
$outra->pais("Brasil");
};
my $outra = Pessoa->new ();
$outra->pre("Cesa... | vinnix/PerlLab | Day03/pessoa.pl | Perl | bsd-2-clause | 521 |
% ask_for_file(-File)
% File unifies with stdin
ask_for_file(File) :- print('Write file name containig sudoku: '), read_token(File).
% ask_for_method(-Method)
% Method unifies with stdin
ask_for_method(Method) :- print('Write solving method name (neighbours, relatives, adhoc): '), read_token(Method).
% getopt(-File, ... | lovasko/NoveZamky | src/io.pl | Perl | bsd-2-clause | 2,433 |
require Process;
$EXEPREFIX = ".".$DIR_SEPARATOR;
$TARGETHOSTNAME = "localhost";
package ACE;
sub CheckForExeDir
{
for($i = 0; $i <= $#ARGV; $i++) {
if ($ARGV[$i] eq '-ExeSubDir') {
if (defined $ARGV[$i + 1]) {
$::EXEPREFIX = $ARGV[$i + 1].$::DIR_SEPARATOR;
}
else {
print STDE... | wfnex/openbras | src/ace/ACE_wrappers/bin/ACEutils.pm | Perl | bsd-3-clause | 2,097 |
#ExStart:1
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeTasksCloud::TasksApi;
use AsposeTasksCloud::ApiClient;
use AsposeTasksCloud::Configuration;
use A... | aspose-tasks/Aspose.Tasks-for-Cloud | Examples/Perl/Tasks/RecalculateProjectResourceFields.pl | Perl | mit | 1,542 |
###########################################################################
#
# This file is partially auto-generated by the DateTime::Locale generator
# tools (v0.10). This code generator comes with the DateTime::Locale
# distribution in the tools/ directory, and is called generate-modules.
#
# This file was generated... | jkb78/extrajnm | local/lib/perl5/DateTime/Locale/ps.pod | Perl | mit | 10,379 |
package Paws::CognitoIdp::AdminUpdateDeviceStatusResponse;
use Moose;
has _request_id => (is => 'ro', isa => 'Str');
### main pod documentation begin ###
=head1 NAME
Paws::CognitoIdp::AdminUpdateDeviceStatusResponse
=head1 ATTRIBUTES
=head2 _request_id => Str
=cut
1; | ioanrogers/aws-sdk-perl | auto-lib/Paws/CognitoIdp/AdminUpdateDeviceStatusResponse.pm | Perl | apache-2.0 | 282 |
#!/usr/bin/perl
use strict;
use utf8;
#use open ':utf8';
binmode STDERR, ':utf8';
#binmode STDOUT, ':utf8';
#use Storable;
use XML::LibXML;
my $num_args = $#ARGV + 1;
if ($num_args > 1 ) {
print "\nUsage: perl xml2senttok.pl -simple/-full (provide XML on STDIN) \n";
print "\tonly relevant for Quechua: simple or f... | a-rios/squoia | bilingwis_stuff/xml2senttok.pl | Perl | apache-2.0 | 1,289 |
#!/usr/bin/perl
#
# $Id$
#
# Copyright (c) 2007 .SE (The Internet Infrastructure Foundation).
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source co... | dotse/dnscheck | engine/lib/DNSCheck/Locale.pm | Perl | bsd-2-clause | 3,142 |
#
# Copyright 2017 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in com... | nichols-356/centreon-plugins | centreon/common/aruba/snmp/mode/components/psu.pm | Perl | apache-2.0 | 2,770 |
# <@LICENSE>
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to you under the Apache License, Version 2.0
# (the "License"); you... | renormalist/Mail-SpamAssassin-3.3.2-PerlFormance | lib/Mail/SpamAssassin/BayesStore/SDBM.pm | Perl | apache-2.0 | 1,933 |
% ----------------------------------------------------------------------
% BEGIN LICENSE BLOCK
% Version: CMPL 1.1
%
% The contents of this file are subject to the Cisco-style Mozilla Public
% License Version 1.1 (the "License"); you may not use this file except
% in compliance with the License. You may obtain a copy ... | daleooo/barrelfish | usr/skb/eclipse_kernel/lib/notinstance.pl | Perl | mit | 6,749 |
#! /usr/bin/env perl
##**************************************************************
##
## Copyright (C) 1990-2008, Condor Team, Computer Sciences Department,
## University of Wisconsin-Madison, WI.
##
## Licensed under the Apache License, Version 2.0 (the "License"); you
## may not use this file except in compliance ... | zhangzhehust/htcondor | src/condor_tests/x_advertise.pl | Perl | apache-2.0 | 6,628 |
#!/usr/bin/env perl
# ====================================================================
# Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.op... | domenicosolazzo/philocademy | venv/src/node-v0.10.36/deps/openssl/openssl/crypto/sha/asm/sha512-parisc.pl | Perl | mit | 21,242 |
# **************************************************************************** #
# #
# ::: :::::::: #
# main.pl :+: :+: :+: ... | htindon/GeneaProject | srcs/main.pl | Perl | mit | 967 |
#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Std;
use Config::Tiny;
use Cwd;
use FindBin qw($Bin);
############## Begin variables ##############
my (%opt, $seqFile, $confFile, $species, $verbose, $method);
our (%stats, $conf, $outfile);
my $defaultConf = "$Bin/../include/default.conf";
getopts('f:o:c:s:a:vh'... | nfahlgren/srtools | bin/Align.pl | Perl | mit | 3,993 |
use warnings;
use LangIDTable;
use HCParser;
use IO::Handle;
use Getopt::Long;
STDOUT->autoflush(1);
my $batch_size = 2;
my $showHelp = 0;
GetOptions('batch=i' => \$batch_size,
'predictor=s' => \$LangIDTable::predictor,
'help' => \$showHelp);
if ($showHelp)
{
print <<HERE;
perl $0 [options] LangID_model_dir Twi... | ktrnka/droidling | training/perl/test_twitter.pl | Perl | mit | 3,601 |
:- expects_dialect(lps).
% Exemplify external events defined as (polled) Prolog predicates
% TODO: We need more control over this, to specify predicates and their calling patterns
maxTime(5).
prolog_events myEvent(2,_).
if myEvent(X,Y) from _ to _ then writeln(X-Y) from T2.
% no facts here please, otherwise they'll ... | TeamSPoon/logicmoo_workspace | packs_sys/logicmoo_lps/examples/forTesting/externalPrologEvents.pl | Perl | mit | 404 |
#!/usr/bin/perl
use strict;
use warnings;
### Example for combination of query() and cmd(): set name of ethernet interface by default-name
use MikroTik::API;
if ( not ( defined $ARGV[0] && defined $ARGV[1] ) ) {
die 'USAGE: $0 <default name> <new name>';
}
my $api = MikroTik::API->new({
host => 'mikrotik.example.... | martin8883/MikroTik-API | eg/set_ethernet_name.pl | Perl | mit | 814 |
=pod
=head1 NAME
SSL_set_connect_state, SSL_set_accept_state - prepare SSL object to work in client or server mode
=head1 SYNOPSIS
#include <openssl/ssl.h>
void SSL_set_connect_state(SSL *ssl);
void SSL_set_accept_state(SSL *ssl);
=head1 DESCRIPTION
SSL_set_connect_state() sets B<ssl> to work in client mode.... | vbloodv/blood | extern/openssl.orig/doc/ssl/SSL_set_connect_state.pod | Perl | mit | 1,609 |
package Play::Route::Feeds;
use Dancer ':syntax';
prefix '/api';
use Play::DB qw(db);
get '/feed' => sub {
return db->feeds->feed({
limit => 30,
map { param($_) ? ( $_ => param($_) ): () } qw/ limit offset for realm tab /,
});
};
true;
| berekuk/questhub | app/lib/Play/Route/Feeds.pm | Perl | mit | 264 |
package App::perlbrew;
use strict;
use 5.8.0;
our $VERSION = "0.03";
my $ROOT = $ENV{PERLBREW_ROOT} || "$ENV{HOME}/perl5/perlbrew";
my $CURRENT_PERL = "$ROOT/perls/current";
sub run_command {
my ( undef, $opt, $x, @args ) = @_;
$opt->{log_file} = "$ROOT/build.log";
my $self = bless $opt, __PACKAGE__;
... | yanick/App-perlbrew | lib/App/perlbrew.pm | Perl | mit | 10,788 |
#!/usr/bin/env perl
package Ref;
use Modern::Perl;
use Ref;
sub gff {
my ($self, $prefix, $genome) = @_;
my $id = "";
my ($idt, $ind, $chr, %index);
open GFF, "$prefix/reference/".$genome."_genes.gff" or die $!;
while(my $aa = <GFF>){
chomp $aa;
my @row = split /\t/, $aa;
next if($row[2] =~ /UTR... | grubbybio/RNASeqTools | Ref.pm | Perl | mit | 6,921 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.