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 |
|---|---|---|---|---|---|
package Dancer::Route::Registry;
use strict;
use warnings;
use Carp;
use Dancer::Route;
use base 'Dancer::Object';
use Dancer::Logger;
use Dancer::Exception qw(:all);
Dancer::Route::Registry->attributes(qw( id ));
my $id = 1;
sub init {
my ($self) = @_;
unless (defined $self->{id}) {
$self->id($id++... | dimpu/AravindCom | api/perl/MAP/Modules/Dancer-1.3124/lib/Dancer/Route/Registry.pm | Perl | mit | 3,480 |
die "specify filename" unless $ARGV[0];
while (<>)
{
print "$_";
} | KainosSoftwareLtd/dig-scriptogram | elb/perl6-test/f2.pl | Perl | mit | 70 |
# Time-stamp: "Sat Jul 14 00:27:34 2001 by Automatic Bizooty (__blocks2pm.plx)"
$Text::\SEPA\Unicode\Unidecode::Char[0x89] = [
'Ji ', 'Zhi ', 'Gua ', 'Ken ', 'Che ', 'Ti ', 'Ti ', 'Fu ', 'Chong ', 'Xie ', 'Bian ', 'Die ', 'Kun ', 'Duan ', 'Xiu ', 'Xiu ',
'He ', 'Yuan ', 'Bao ', 'Bao ', 'Fu ', 'Yu ', 'Tuan ', 'Yan ', 'H... | dmitrirussu/php-sepa-xml-generator | src/Unicode/data/perl_source/x89.pm | Perl | mit | 2,194 |
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
# This file is machine-generated by lib/unicore/mktables from the Unicode
# database, Version 12.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 exist... | operepo/ope | client_tools/svc/rc/usr/share/perl5/core_perl/unicore/lib/Sc/Zinh.pl | Perl | mit | 803 |
#!/usr/bin/perl
#
# Main authors:
# Christian Schulte <schulte@gecode.org>
#
# Copyright:
# Christian Schulte, 2005
#
# Last modified:
# $Date$ by $Author$
# $Revision$
#
# This file is part of Gecode, the generic constraint
# development environment:
# http://www.gecode.org
#
# Permission is ... | cp-profiler/gecode-profiling | misc/genlicense.perl | Perl | mit | 3,692 |
=head1 LICENSE
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Copyright [2016-2018] 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... | muffato/public-plugins | tools/modules/EnsEMBL/Web/Job/AlleleFrequency.pm | Perl | apache-2.0 | 2,567 |
# 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/V8/Resources/FeedAttributeOperation.pm | Perl | apache-2.0 | 1,066 |
#
# Copyright 2022 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... | centreon/centreon-plugins | network/ucopia/wlc/snmp/plugin.pm | Perl | apache-2.0 | 1,238 |
=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/Web/Command/UnshareRecord.pm | Perl | apache-2.0 | 1,310 |
## OpenXPKI::Crypto::Backend::OpenSSL::Config
## Written 2005 and 2006 by Julia Dubenskaya and Michael Bell for the OpenXPKI project
## Improved 2011 by Martin Bartosch for the OpenXPKI project
## (C) Copyright 2005-2011 by The OpenXPKI Project
use strict;
use warnings;
package OpenXPKI::Crypto::Backend::OpenSSL::Co... | mrscotty/openxpki | core/server/OpenXPKI/Crypto/Backend/OpenSSL/Config.pm | Perl | apache-2.0 | 27,485 |
package t::bootstrap::Bootstrap;
use v5.14;
use warnings;
BEGIN {
use File::Spec;
my ($volume, $dir, $file) = File::Spec->splitpath(__FILE__);
$ENV{VENN_ENV} //= 'sqlite';
$ENV{VENN_TEST} = 1;
$ENV{VENN_IN_MEMORY} //= 1;
$ENV{VENN_CONF_DIR} = "$dir/../conf";
# don't "use lib", that's ev... | Morgan-Stanley/venn-core | t/bootstrap/Bootstrap.pm | Perl | apache-2.0 | 946 |
package Google::Ads::AdWords::v201809::ManagedCustomerService::getPendingInvitations;
use strict;
use warnings;
{ # BLOCK to scope variables
sub get_xmlns { 'https://adwords.google.com/api/adwords/mcm/v201809' }
__PACKAGE__->__set_name('getPendingInvitations');
__PACKAGE__->__set_nillable();
__PACKAGE__->__set_minO... | googleads/googleads-perl-lib | lib/Google/Ads/AdWords/v201809/ManagedCustomerService/getPendingInvitations.pm | Perl | apache-2.0 | 2,136 |
# 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 may not use ... | rectang/lucy-clownfish | runtime/perl/lib/Clownfish/Vector.pm | Perl | apache-2.0 | 892 |
#!/usr/bin/env perl
# Copyright 2015 Petr, Frank Breedijk
#
# 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 ... | vlamer/Seccubus_v2 | json/deleteAssetHost.pl | Perl | apache-2.0 | 1,702 |
=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/Web/Document/Element/BottomBanner.pm | Perl | apache-2.0 | 886 |
=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/Web/QueryStore.pm | Perl | apache-2.0 | 2,378 |
#!/usr/bin/perl -w
###############################################################################
# $Id: 2012.pm 1670472 2015-03-31 20:34:45Z jfthomps $
###############################################################################
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor lic... | bq-xiao/apache-vcl | managementnode/lib/VCL/Module/OS/Windows/Version_6/2012.pm | Perl | apache-2.0 | 2,415 |
#!/usr/bin/perl
use XML::Simple;
use Data::Dumper;
use Getopt::ArgParse;
use strict; use warnings;
local $/=undef;
## parse out command line arguments using damian conway's genius..
my $ap = Getopt::ArgParse->new_parser(
description => "Generate an opcode table for determining instruction lengths.",
... | arizvisa/syringe | lib/ia32/generate-table.pl | Perl | bsd-2-clause | 9,176 |
=tmpl opts
Test::Module options.
=tmpl info
Test::Module additional info
=cut | vrurg/Pod-Weaver-Plugin-Include | t/simple/lib/Test/Module.pm | Perl | bsd-3-clause | 82 |
#!/usr/bin/env perl
package Gene_overlap_check;
use strict;
use warnings;
use Carp;
my %GENE_TO_SPAN_INFO;
my $singleton_obj = undef;
sub new {
my ($packagename, $gene_span_file) = @_;
if ($singleton_obj) {
return($singleton_obj);
}
else {
$singleton_obj = {};
bless ($singl... | STAR-Fusion/STAR-Fusion | PerlLib/Gene_overlap_check.pm | Perl | bsd-3-clause | 3,083 |
#!/usr/bin/perl
# Configuration: NodeChunkFile
# nodes to be upgraded to chunks (to be reordered independently among other chunks)
# Format:
# targetAttributes sourceChunkAttrVal targetChunkAttrVal
# Example:
# my.pos=/VMFIN/ && parent.pos=VV && chunkparent.type=/VP.*/ && !(chunkparent.si=subj) nodechunk=fin... | ariosquoia/squoia | MT_systems/squoia/nodesToChunks.pm | Perl | apache-2.0 | 2,958 |
# please insert nothing before this line: -*- mode: cperl; cperl-indent-level: 4; cperl-continued-statement-offset: 4; indent-tabs-mode: nil -*-
package TestAPRlib::threadrwlock;
use strict;
use warnings FATAL => 'all';
use Apache::Test;
use Apache::TestUtil;
use APR::Const -compile => qw(EBUSY SUCCESS);
use APR::Po... | dreamhost/dpkg-ndn-perl-mod-perl | t/lib/TestAPRlib/threadrwlock.pm | Perl | apache-2.0 | 902 |
######################################################################
# Copyright (c) 2012, Yahoo! Inc. All rights reserved.
#
# This program is free software. You may copy or redistribute it under
# the same terms as Perl itself. Please see the LICENSE.Artistic file
# included with this project for the terms of the ... | getgearbox/gearbox | tools/svcbuilder/lib/Gearbox/Service/Entry.pm | Perl | bsd-3-clause | 5,319 |
=pod
=head1 NAME
SCT_new, SCT_new_from_base64, SCT_free, SCT_LIST_free,
SCT_get_version, SCT_set_version,
SCT_get_log_entry_type, SCT_set_log_entry_type,
SCT_get0_log_id, SCT_set0_log_id, SCT_set1_log_id,
SCT_get_timestamp, SCT_set_timestamp,
SCT_get_signature_nid, SCT_set_signature_nid,
SCT_get0_signature, SCT_set0_... | openweave/openweave-core | third_party/openssl/openssl/doc/crypto/SCT_new.pod | Perl | apache-2.0 | 6,396 |
#!/usr/bin/perl -w
use strict;
use File::Spec::Functions qw(rel2abs);
use File::Basename;
my $path = dirname(rel2abs($0));
sub syntax_error {
print STDERR "Syntax error\n";
print STDERR "Usage : /lauchActionTest.pl [-v|-q] server [test...test]\n";
exit 2;
}
# Verification qu'il y a au moins un paramètre
if ($#ARG... | sebastienhouzet/nabaztag-source-code | server/OS/probes/api/lauchActionTest.pl | Perl | mit | 5,528 |
# CustomClass(クラスの正体はモジュール.)
package CustomClass;
# method1
sub method1{
print "method1\n";
}
# method2
sub method2{
print "method2\n";
$arg1 = shift;
print '$arg1 = '."$arg1\n"; # $arg1を出力.
}
# method3
sub method3{
print "method3\n";
$arg1 = shift;
print '$arg1 = '."$arg1\n"; # $arg1を出力.
$arg2 = shi... | bg1bgst333/Sample | perl/class/class/src/class/CustomClass.pm | Perl | mit | 414 |
package CUSTOMER::XML;
use lib "/backend/lib";
require ZTOOLKIT;
=pod
[[SUBSECTION]Customer XML Record]
[[HTML]]
<CUSTOMER CID="" EMAIL="">
<INFO>
<FIRSTNAME></FIRSTNAME>
<LASTNAME></LASTNAME>
</INFO>
<BILLING>
<ADDRESS ID="" bill_company="" bill_city="" bill_state="" bill_zip="" bill_address1="" bill_address2="... | CommerceRack/backend | lib/CUSTOMER/XML.pm | Perl | mit | 8,776 |
#!/usr/bin/perl
use strict;
use warnings;
use Net::GitHub;
use Getopt::Long;
our ($progname) = $0 =~ m#(?:.*/)?([^/]*)#;
my $org = '';
my $repo = '';
my $username = '';
my $password = '';
my $is_output_token_only = 0;
my $token = '';
my $labels = '';
my $is_verbose = 0;
my $is_show_current_labels_only = 0;
sub show... | youchenlee/g0v-issue-tool | github-add-repo-issue-labels.pl | Perl | mit | 5,092 |
#!/usr/bin/perl
use English qw' -no_match_vars ';
print "\nOperating System is $OSNAME\n";
##### COMMAND LINE SUITE FOR BIOINFORMATICIANS & BIOLOGISTS ########
print "\n\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\n";
print "\nCOMMAND LINE SUITE FOR BIOINFORMATICIANS \& BIO... | skygenomics/CSBB-v1.0 | MACOS_LINUX_VERSION/CSBB.pl | Perl | mit | 35,804 |
package MT::DeckType;
use strict;
use base qw( MT::Object );
__PACKAGE__->install_properties ({
column_defs => {
'id' => 'integer not null auto_increment',
'name' => 'string(255)',
'cardtype_id' => 'integer',
'quantity' => 'integer',
'setcount' => 'int... | KAWAKITAYasushi/MTDeckDeal | plugins/DeckDeal/lib/MT/DeckType.pm | Perl | mit | 610 |
:- expects_dialect(lps).
maxTime(16).
fluents account(_,_).
actions transfers(_,_,_).
initially account(bob, 10), account(fariba, 100).
day(2, friday).
day(T2, friday) :- day(T1, friday), T2 is T1 + 7.
if needs(bob, Amount) at T1, Amount < 100
then transfers(fariba, Amount, bob) from T1 to T2.
if transfers(f... | TeamSPoon/logicmoo_workspace | packs_sys/logicmoo_lps/examples/simple-smart-contract.pl | Perl | mit | 1,642 |
package Validate::Plugin::_config;
use strict;
use FindBin qw($Bin);
sub new {
my $classname = shift;
my $self = {};
bless( $self, $classname );
$self->{validate}=shift;
return $self;
}
sub run {
my $self = shift;
my $validate = $self->{validate};
my $config = $validate->{config};
... | falling-sky/validator | lib/Validate/Plugin/_config.pm | Perl | mit | 416 |
use strict;
use CXGN::Page;
my $page=CXGN::Page->new('Phenotype submission format','Naama');
$page->header("SGN Phenotype Submission Guidelines", "SGN phenotype submission guidelines");
print<<END_HEREDOC;
<p>
SGN hosts a <a href="/search/direct_search.pl?search=phenotypes/">phenotype database</a> for displaying indi... | solgenomics/sgn | cgi-bin/content/phenotype_submissions.pl | Perl | mit | 2,428 |
#! /usr/bin/perl
use Cwd;
use List::Util qw(first);
use Getopt::Long;
use Term::ANSIColor;
use FindBin;
sub ProkkaPrep_faa
{
my $home = $_[0];
chdir($home);
$home = getcwd; #if the user enters './' as a dir this will solve issues
chdir($home);
my @prokka_files = glob "*.faa";
system("mkdir PROKKA_backups");
fo... | Nicholas-Petronella/HardCORE-Genome-Suite | HardCORE_usearch_suite/HardCORE_usearch.pl | Perl | mit | 19,875 |
use utf8;
package MyApp::Schema::Result::Author;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
MyApp::Schema::Result::Author
=cut
use strict;
use warnings;
use Moose;
use MooseX::NonMoose;
use MooseX::MarkAsMethods autoclean => 1;
extends 'DBIx::Class::Core';
=h... | jmcveigh/p5-catalyst-boilerplate | MyApp/lib/MyApp/Schema/Result/Author.pm | Perl | cc0-1.0 | 1,848 |
# 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.apache.org/license... | dbolser-ebi/ensembl-compara | docs/tutorial/examples/tut_registry3.pl | Perl | apache-2.0 | 971 |
#
# 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/mrv/optiswitch/snmp/plugin.pm | Perl | apache-2.0 | 1,719 |
#
# 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 | centreon/common/bluearc/snmp/mode/components/psu.pm | Perl | apache-2.0 | 2,629 |
#
# Copyright 2022 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... | centreon/centreon-plugins | hardware/server/hp/bladechassis/snmp/mode/components/fuse.pm | Perl | apache-2.0 | 3,607 |
=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/Production/Analysis/Blastz.pm | Perl | apache-2.0 | 13,991 |
#
# 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 | network/nokia/timos/snmp/mode/bgpusage.pm | Perl | apache-2.0 | 8,854 |
package Google::Ads::AdWords::v201809::CurrencyCodeError;
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;
}
u... | googleads/googleads-perl-lib | lib/Google/Ads/AdWords/v201809/CurrencyCodeError.pm | Perl | apache-2.0 | 2,510 |
package Paws::CodeBuild::BuildPhase;
use Moose;
has Contexts => (is => 'ro', isa => 'ArrayRef[Paws::CodeBuild::PhaseContext]', request_name => 'contexts', traits => ['NameInRequest']);
has DurationInSeconds => (is => 'ro', isa => 'Int', request_name => 'durationInSeconds', traits => ['NameInRequest']);
has EndT... | ioanrogers/aws-sdk-perl | auto-lib/Paws/CodeBuild/BuildPhase.pm | Perl | apache-2.0 | 3,559 |
package Paws::S3::GetBucketInventoryConfiguration;
use Moose;
has Bucket => (is => 'ro', isa => 'Str', uri_name => 'Bucket', traits => ['ParamInURI'], required => 1);
has Id => (is => 'ro', isa => 'Str', query_name => 'id', traits => ['ParamInQuery'], required => 1);
use MooseX::ClassAttribute;
class_has _... | ioanrogers/aws-sdk-perl | auto-lib/Paws/S3/GetBucketInventoryConfiguration.pm | Perl | apache-2.0 | 2,184 |
#!/usr/bin/perl -w
#
# POD documentation
#---------------------------------------------------------------------------
=pod BEGIN
=head1 NAME
htb.nbs.pl -
=head1 SYNOPSIS
htb.nbs.pl [-help] [-in input-file] [-out output-file]
Options:
-h (--help) brief help message
-i (--in) input file
... | orionzhou/rgeneclust | htb.nbs.pl | Perl | apache-2.0 | 2,355 |
package Paws::MobileHub::DescribeProject;
use Moose;
has ProjectId => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'projectId', required => 1);
has SyncFromResources => (is => 'ro', isa => 'Bool', traits => ['ParamInQuery'], query_name => 'syncFromResources');
use MooseX::ClassAttribut... | ioanrogers/aws-sdk-perl | auto-lib/Paws/MobileHub/DescribeProject.pm | Perl | apache-2.0 | 2,123 |
=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.
# ... | Ensembl/ensembl-analysis | modules/Bio/EnsEMBL/Analysis/RunnableDB/ExonerateAlignFeature.pm | Perl | apache-2.0 | 11,971 |
#!/usr/bin/perl -w
use strict;
use SequenceBasics qw(read_fasta_into_hash);
# Pre:
# CCS95 fasta
# Pre-LSC fasta sub75_ccs90-95
# LSC-swapped fasta
if(scalar(@ARGV) != 3) { die "./assemble_fusion_set.pl <ccs95 fasta> <pre-lsc fasta> <lsc swapped fasta>\n"; }
my $ccs95file = shift @ARGV;
my $prelscfile = ... | jason-weirather/Au-public | iron/utilities/assemble_IDP-fusion_read_set.pl | Perl | apache-2.0 | 979 |
use Parse::DebControl;
$parser = new Parse::DebControl;
%options = (
type => 'debian/control',
stripComments => 'true',
);
$data = $parser->parse_file($ARGV[0], \%options);
foreach my $a (@$data) {
next if exists $a->{"Source"};
print ${a}->{"Package"}."\n";
}
| SergK/fuel-main | packages/deb/genpkgnames.pl | Perl | apache-2.0 | 289 |
package Bio::EnsEMBL::Funcgen::PipeConfig::PeakCalling::ConvertSignalToBed;
use strict;
use warnings;
use base 'Bio::EnsEMBL::Funcgen::PipeConfig::PeakCalling::Base';
use Bio::EnsEMBL::Hive::PipeConfig::HiveGeneric_conf;
sub pipeline_analyses {
my $self = shift;
return [
{ -logic_name => 'start_conv... | Ensembl/ensembl-funcgen | modules/Bio/EnsEMBL/Funcgen/PipeConfig/PeakCalling/ConvertSignalToBed.pm | Perl | apache-2.0 | 1,915 |
package VMOMI::VirtualDiskDeltaDiskFormat;
use parent 'VMOMI::SimpleType';
use strict;
use warnings;
1;
| stumpr/p5-vmomi | lib/VMOMI/VirtualDiskDeltaDiskFormat.pm | Perl | apache-2.0 | 106 |
# Copyright 2016, Mitchell Cooper
package F::NamedPair;
use warnings;
use strict;
use parent qw(F::Node);
sub desc {
my $pair = shift;
return "pair '$$pair{key}'";
}
sub key_name { shift->{key} }
sub value { shift->first_child }
1
| cooper/ferret | lib/F/NamedPair.pm | Perl | bsd-3-clause | 246 |
###########################################################################
#
# 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/en_AU.pod | Perl | mit | 9,739 |
#
# 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 | database/oracle/mode/corruptedblocks.pm | Perl | apache-2.0 | 3,314 |
#!/usr/bin/env perl
use strict;
use warnings;
use FindBin qw($RealBin);
use lib "$RealBin/../";
use JBlibs;
use IO::Handle;
use Pod::Usage;
use Bio::JBrowse::JSON;
@ARGV or pod2usage( -verbose => 2 );
# read in the JSON
my $j = Bio::JBrowse::JSON->new->pretty;
my $json_fh =
@ARGV == 1 ? \*STDIN : do {
... | kimrutherford/afra | bin/add-track-json.pl | Perl | apache-2.0 | 2,168 |
#!/usr/bin/env perl
use strict;
use warnings;
use lib 'auto-lib', 'lib';
use Data::Dumper;
use Data::Printer;
use Paws;
my $result;
my $ec2 = Paws->service('EC2',
region => 'eu-west-1',
);
$result = $ec2->DescribeSpotPriceHistory;
p $result;
p $_ foreach @{ $result->SpotPriceHistory };
| ioanrogers/aws-sdk-perl | examples/ec2-spot.pl | Perl | apache-2.0 | 295 |
package Google::Ads::AdWords::v201409::FeedPage;
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 base q... | gitpan/GOOGLE-ADWORDS-PERL-CLIENT | lib/Google/Ads/AdWords/v201409/FeedPage.pm | Perl | apache-2.0 | 1,827 |
# toalety męskie, damksie oraz dla osób niepełnosprawnych
isToilet(x) <=> type(x)="ToiletMen" or type(x)="ToiletWomen" or type(x)="ToiledAccessible";
failure_msg "Brak toalety w sekcji prywatnej"
exists a in Areas: exists r in Rooms : type(a) = "Private" and isToilet(r) and isInDescendants(r,a);
failure_msg "... | szymongajek/HSSDR | HSSDR-trunk/test_files/Hierarchical test 4.pl | Perl | apache-2.0 | 460 |
package DDG::Spice::Maps::Chains;
use DDG::Spice;
spice to => 'https://duckduckgo.com/local.js?q=$1&cb={{callback}}';
# no caching.
spice proxy_cache_valid => "418 1d";
spice is_cached => 0;
# Chains regular expression built from core DDG.
my $chains_re = share('chains_re')->slurp;
# consider query_clean and strip... | claytonspinner/zeroclickinfo-spice | lib/DDG/Spice/Maps/Chains.pm | Perl | apache-2.0 | 439 |
package VCP::RevMapDB;
=head1 NAME
VCP::RevMapDB - Persistant storage for id -> (name, rev_id) maps
=head1 SYNOPSIS
use base qw( VCP::RevMapDB );
=head1 DESCRIPTION
By default, most VCP::Dest::* drivers keep track of the relationship
between the id field assigned by the (original) VCP::Source::* driver
and th... | gitpan/VCP-autrijus-snapshot | lib/VCP/RevMapDB.pm | Perl | bsd-3-clause | 1,986 |
#! /usr/bin/env perl
# Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.... | jens-maus/amissl | openssl/crypto/modes/asm/aes-gcm-armv8_64.pl | Perl | bsd-3-clause | 278,591 |
#!/usr/bin/env perl
use strict;
use warnings;
use FindBin;
use lib ("$FindBin::Bin/../../PerlLib");
use Fasta_reader;
my $usage = "usage: $0 transcripts.fasta jaccard_clips.wig\n\n";
my $transcript_fa = $ARGV[0] or die $usage;
my $jaccard_clips = $ARGV[1] or die $usage;
main: {
my %trans_acc_to_clips = &get_cl... | ssn1306/trinityrnaseq | util/support_scripts/jaccard_fasta_clipper.pl | Perl | bsd-3-clause | 1,821 |
=head1 NAME
XML::LibXML::XPathContext - XPath Evaluation
=head1 SYNOPSIS
my $xpc = XML::LibXML::XPathContext->new();
my $xpc = XML::LibXML::XPathContext->new($node);
$xpc->registerNs($prefix, $namespace_uri)
$xpc->unregisterNs($prefix)
$uri = $xpc->lookupNs($prefix)
$xpc->registerVarLookupFunc($callback,... | Dokaponteam/ITF_Project | xampp/perl/vendor/lib/XML/LibXML/XPathContext.pod | Perl | mit | 11,621 |
=pod
=head1 NAME
SSL_get_current_cipher, SSL_get_cipher_name, SSL_get_cipher,
SSL_get_cipher_bits, SSL_get_cipher_version - get SSL_CIPHER of a connection
=head1 SYNOPSIS
#include <openssl/ssl.h>
SSL_CIPHER *SSL_get_current_cipher(const SSL *ssl);
const char *SSL_get_cipher_name(const SSL *s);
const char *SSL... | openweave/openweave-core | third_party/openssl/openssl/doc/ssl/SSL_get_current_cipher.pod | Perl | apache-2.0 | 1,524 |
%%%% PRETTY.PL %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
portray(A) :-
?quoteAtoms,
atom(A),
format("'~w'", [A]).
writeList([H | T]) :-
pwrite(H),
(T = [] ->
true;
T = [_ | _] ->
(write(', '),
writeList(T));
(write(' | '), write(T))).
pwrite(V) :-
var(V),
!,
write(... | AllanRamsay/dgParser | pretty.pl | Perl | mit | 4,726 |
# 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/t/IFTest/TestMailer.pm | Perl | mit | 2,333 |
package EnsEMBL::Gramene::Component::Location::GenomeGWAS;
### Module to ...
use strict;
use warnings;
no warnings "uninitialized";
use base qw(EnsEMBL::Web::Component::Location);
use CGI qw(escapeHTML);
use Data::Dumper;
use EnsEMBL::Web::Text::FeatureParser;
use EnsEMBL::Web::File::Text;
use EnsEMBL::Web::RegObj;
... | warelab/gramene-ensembl | gramene/modules/EnsEMBL/Gramene/Component/GenomeGWAS.pm | Perl | mit | 584 |
% This file is part of the Attempto Parsing Engine (APE).
% Copyright 2008-2013, Attempto Group, University of Zurich (see http://attempto.ifi.uzh.ch).
%
% The Attempto Parsing Engine (APE) is free software: you can redistribute it and/or modify it
% under the terms of the GNU Lesser General Public License as published... | TeamSPoon/logicmoo_workspace | packs_sys/logicmoo_nlu/ext/ape/prolog/lexicon/lexicon_interface.pl | Perl | mit | 7,823 |
#!/usr/bin/perl
#script integrates the results of clustering and source text (input_file)
# output_log input_file out
use warnings;
use strict;
use Encode;
sub usage {
print "\nUse: $0 claster_log file out_file\n";
exit 1;
}
usage if ( $#ARGV != 2);
my $log = shift @ARGV;
my $fls = shift @ARGV;
my $f_out = shift ... | lionalion/clusterization | examples/out_claster_log.pl | Perl | mit | 1,552 |
#!/usr/bin/perl -w
BEGIN { # Add executable dir to INC to find CPin.pm
$0 =~ /^(.*?)\/([^\/]+)$/; # $1 Path $2 filename
push @INC, $1;
}
use strict;
use IO::File;
use Getopt::Long;
use CPin;
main();
sub main {
my @origArgs = @ARGV;
my ($pH, $stepPeriod, $dummy, $stateStr,$stateFile, $s... | dvillega/scripts | cpinutil.pl | Perl | mit | 4,641 |
:- module(
ctriples_write_triples,
[
ctriples_write_triple/4, % +Write:stream
% +State:compound
% +BNodePrefix:iri
% +Triple:compound
ctriples_write_triples/3, % +Write:or([atom,stream])
% +T... | Anniepoo/plRdf | prolog/ctriples/ctriples_write_triples.pl | Perl | mit | 3,264 |
package CyborgTest;
use strict;
use warnings;
use Test::More;
use Test::Deep;
use List::MoreUtils 'firstidx';
require Exporter;
our @ISA = 'Exporter';
our @EXPORT = qw/clone done Player Game r j c D L N/;
use CyborgRally;
use JSON;
my $json = JSON->new->convert_blessed;
my $rally = CyborgRally->new;
my $cards =... | bpa/cyborg-rally | lib/CyborgTest.pm | Perl | mit | 5,447 |
package CXGN::Genotype::ParseUpload::Plugin::GridFileIntertekCSV;
use Moose::Role;
use SGN::Model::Cvterm;
use Data::Dumper;
use Text::CSV;
# Check that all sample IDs are in the database already
sub _validate_with_plugin {
my $self = shift;
my $filename = $self->get_filename();
my $protocol_id = $self->g... | solgenomics/sgn | lib/CXGN/Genotype/ParseUpload/Plugin/GridFileIntertekCSV.pm | Perl | mit | 10,534 |
#!/usr/bin/perl -wW
# $Id$
use strict;
use integer;
use LWP::UserAgent;
my $postmaster = '/home/postmaster/Maildir/new';
my $sendmail = '/usr/lib/sendmail';
my $rundir = '/home/dsbl_cleaner';
my $timestamp = 0;
my $webtext = '';
my $mailhead = "From: dsbl-org-remover\@banana.republic
To: abuse\@micros... | mmmonk/crap | dsbl_cleanup/dsbl-org.pl | Perl | mit | 1,903 |
# 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/V8/Common/HistoricalMetricsOptions.pm | Perl | apache-2.0 | 1,040 |
=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-orm | modules/ORM/EnsEMBL/DB/Accounts/Object/RecordOwner.pm | Perl | apache-2.0 | 3,337 |
#
# Copyright 2022 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... | centreon/centreon-plugins | apps/vmware/connector/mode/statusvm.pm | Perl | apache-2.0 | 6,139 |
=head1 LICENSE
Copyright [2015-2020] 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/licenses/LICENSE-2.0
Unless required by app... | Ensembl/Bio-HTS | lib/Bio/DB/HTS/Pileup.pm | Perl | apache-2.0 | 2,682 |
#!/usr/bin/perl
#### http://search.cpan.org/~exobuzz/MediaWiki-API-0.41/lib/MediaWiki/API.pm
use MediaWiki::API;
use strict;
use warnings;
my $mw = MediaWiki::API->new();
$mw->{config}->{api_url} = 'http://en.wikipedia.org/w/api.php';
# # get user info
# my $userinfo = $mw->api( {
# action => 'query',
# ... | tridentcodesolution/tridentcodesolution.github.io | projects/CRM/LedgerSMB-master/utils/release/notification-helpers/release-wikipedia.pl | Perl | apache-2.0 | 8,644 |
% this package strips out pp_mnf,mnf,pp_call
% to use it type: ":- include(runtime_checks_ignore)."
:- op(500,yfx,pre).
:- op(500,yfx,post).
:- op(500,yfx,unit_test).
:- load_compilation_module('runtime_checks_ignore_expand').
:- add_sentence_trans(ignore_mnf/3).
| leuschel/logen | runtime_checks_ignore.pl | Perl | apache-2.0 | 268 |
/* Transpose a matrix */
transpose(Xs,[]) :-
nullrows(Xs).
transpose(Xs,[Y|Ys]) :-
makerow(Xs,Y,Zs),
transpose(Zs,Ys).
makerow([],[],[]).
makerow([[X|Xs]|Ys],[X|Xs1],[Xs|Zs]):-
makerow(Ys,Xs1,Zs).
nullrows([]).
nullrows([[]|Ns]) :-
nullrows(Ns).
%:- filter(transpose(matrix,dynamic)). | leuschel/logen | old_logen/filter_prop/Tests/trans.pl | Perl | apache-2.0 | 294 |
use 5.008001;
use strict;
use warnings;
package Crypt::Diceware;
# ABSTRACT: Random passphrase generator loosely based on the Diceware algorithm
our $VERSION = '0.005'; # VERSION
use Class::Load qw/load_class/;
use Crypt::Rijndael;
use Crypt::URandom;
use Data::Entropy qw/with_entropy_source/;
use Data::Entropy::Algo... | gitpan/Crypt-Diceware | lib/Crypt/Diceware.pm | Perl | apache-2.0 | 5,701 |
new8(A,B,C,D,E) :- A=0.
new8(A,B,C,D,E) :- F=1+B, A=< -1, new3(F,C,D,E).
new8(A,B,C,D,E) :- F=1+B, A>=1, new3(F,C,D,E).
new6(A,B,C,D) :- E=1, C=<0, new8(E,A,B,C,D).
new6(A,B,C,D) :- E=0, C>=1, new8(E,A,B,C,D).
new5(A,B,C,D) :- D>=1, new6(A,B,C,D).
new5(A,B,C,D) :- E=1+A, F=1, D=<0, new3(E,B,F,D).
new4(A,B,C,D) :- new5(... | bishoksan/RAHFT | benchmarks_scp/misc/programs-clp/TRACER-testloop28-unsafe.map.c.map.pl | Perl | apache-2.0 | 434 |
# 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.apache.org/license... | dbolser-ebi/ensembl-variation | scripts/import/reverse_flanking.pl | Perl | apache-2.0 | 4,314 |
=head1 LICENSE
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Copyright [2016-2020] 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... | james-monkeyshines/ensembl | modules/Bio/EnsEMBL/Utils/VegaCuration/Gene.pm | Perl | apache-2.0 | 2,105 |
#
# Copyright 2022 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... | centreon/centreon-plugins | network/dlink/standard/snmp/mode/cpu.pm | Perl | apache-2.0 | 9,841 |
# 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/Common/KeywordPlanAggregateMetricResults.pm | Perl | apache-2.0 | 1,049 |
#!/usr/bin/perl
use lib "/usr/local/perf-dev/storable/lib";
use Service;
use Metric;
use Graph;
$perfhome = "/usr/local/perf-dev/storable";
#create new service
$service = Service->new( operatingSystem => "SunOS",
serviceName => "mem",
);
#add metric 0
$obj = Metric->new( rrdIndex => 0,
metricNam... | ktenzer/perfstat | misc/serialize/create/SunOs/61503/mem.pl | Perl | apache-2.0 | 6,305 |
=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-variation | modules/Bio/EnsEMBL/Variation/AlleleSynonym.pm | Perl | apache-2.0 | 5,290 |
# input check functions
sub checkOSName {
my ($osName) = @_;
my $osListLen = @$osList;
my $osFound = 0;
for ($osCount = 0; $osFound == 0 && $osCount < $osListLen; $osCount++) {
if ($osList->[$osCount] eq $osName) {
$osFound = 1;
}
}
if ($osFound == 0) { die('Error: invalid value for $osName'); }
}
sub c... | ktenzer/perfstat | server/unix/build/1.52/cgi/appConfigs/hostConfig/level1/lib_inputCheck.pl | Perl | apache-2.0 | 1,373 |
#!/usr/bin/env perl
# Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
# Copyright [2016-2019] 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... | muffato/ensembl | misc-scripts/assembly/merge_cmp_gaps.pl | Perl | apache-2.0 | 7,448 |
# 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/V8/Services/BillingSetupService/GetBillingSetupRequest.pm | Perl | apache-2.0 | 1,057 |
print "> ";
while (my $next_cmd = <>)
{
chomp $next_cmd;
process($next_cmd);
print "> ";
}
| jmcveigh/komodo-tools | scripts/perl/interact_correctly_on_the_command_line/process_line.pl | Perl | bsd-2-clause | 103 |
package Sisimai::Bite::Email::Exchange2003;
use parent 'Sisimai::Bite::Email';
use feature ':5.10';
use strict;
use warnings;
my $Indicators = __PACKAGE__->INDICATORS;
my $StartingOf = {
'message' => ['Your message'],
'rfc822' => ['Content-Type: message/rfc822'],
'error' => ['did not reach the following... | azumakuniyuki/p5-Sisimai | lib/Sisimai/Bite/Email/Exchange2003.pm | Perl | bsd-2-clause | 11,746 |
package WWW::Easy::Daemon;
use strict;
use Proc::PID::File;
use Sys::Syslog;
use File::Slurp;
use Net::Server::Daemonize;
use JSON::XS;
use Devel::StackTrace;
use Pod::Usage;
our @ISA = qw(Exporter);
our @EXPORT = qw(start_script read_config pod2usage daemonize easy_try);
######################## некие полезные фун... | waaeer/perl-www-easy | lib/WWW/Easy/Daemon.pm | Perl | bsd-2-clause | 4,273 |
%
% scheme.pl
% marelle-deps
%
command_pkg(chicken).
installs_with_brew(chicken).
installs_with_apt(chicken, 'chicken-bin').
pkg('racket').
met('racket', _) :-
isfile('~/.local/racket-5.3.6/bin/raco').
meet('racket', _).
depends('racket', _, [
'__racket installed',
'__racket in profile'
]).
pkg('__rack... | larsyencken/marelle-deps | scheme.pl | Perl | bsd-2-clause | 1,657 |
#!/usr/bin/env perl -w
my (@alph, %initial, %mutate);
while (<>) {
if (/initial..state..(.)....prob.([0-9\.e\+\-]+)/) {
$initial{$1} = $2;
push @alph, $1;
} elsif (/mutate..from..(.)....to..(.)....rate.([0-9\.e\+\-]+)/) {
$mutate{$1}->{$2} = $3;
}
}
print
"{\n",
" \"alphabet\": \"", join("",@a... | evoldoers/historian | perl/xrate2json.pl | Perl | bsd-3-clause | 828 |
cha(1,46,509).
cha(1,48,688).
cha(1,56,1793).
cha(1,92,1794).
cha(1,100,1374).
cha(1,108,1795).
cha(1,132,1796).
cha(1,133,1795).
cha(1,145,1374).
cha(1,153,1594).
cha(1,210,1797).
cha(1,485,1795).
cha(1,754,651).
cha(1,865,867).
cha(1,920,969).
cha(1,1192,1562).
cha(1,1262,1728).
cha(1,1265,1793).
cha(1,1266,1793).
ch... | datalaude/datalaude | examples/examples/datalog/joone/cha.pl | Perl | bsd-3-clause | 132,894 |
#!/usr/bin/perl
=pod
this starts our multiline comment of what this script does
This script is a barebones perl script that uses many of the most common perl
features as a reference to how they can be used for any other basic perl script.
We go through printing, taking input, some basic math, variables, arrays,
log... | XlogicX/Learn | perl/skeleton_(liberal commenting).pl | Perl | mit | 7,824 |
package #
Date::Manip::TZ::eutira00;
# 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' i... | nriley/Pester | Source/Manip/TZ/eutira00.pm | Perl | bsd-2-clause | 45,026 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.