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 VMOMI::VmClonedEvent;
use parent 'VMOMI::VmCloneEvent';
use strict;
use warnings;
our @class_ancestors = (
'VmCloneEvent',
'VmEvent',
'Event',
'DynamicData',
);
our @class_members = (
['sourceVm', 'VmEventArgument', 0, ],
);
sub get_class_ancestors {
return @class_ancestors;
}
sub... | stumpr/p5-vmomi | lib/VMOMI/VmClonedEvent.pm | Perl | apache-2.0 | 475 |
#!/usr/bin/perl
#
# Copyright © 2013 Inria. All rights reserved.
# Copyright (c) 2013-2014 University of Wisconsin-La Crosse.#
# All rights reserved.
#
# See COPYING in top-level directory.
#
# $HEADER$
#
use strict;
use Getopt::Long;
my $rawdir = "./ib-raw";
my $outdir = "./netloc";
my $ve... | open-mpi/netloc | tools/gather_ib/netloc_ib_extract_dats.pl | Perl | bsd-3-clause | 2,139 |
###############################################################################
## Copyright 2005-2016 OCSInventory-NG/OCSInventory-Server contributors.
## See the Contributors file for more details about them.
##
## This file is part of OCSInventory-NG/OCSInventory-ocsreports.
##
## OCSInventory-NG/OCSInventory-Serve... | himynameismax/codeigniter | ocsinventory-server/perl/Apache/Ocsinventory/Server/Modperl1.pm | Perl | mit | 2,552 |
#!/usr/bin/perl -w
use strict;
use warnings;
############################################################################################
##################################SUBRUTINE LIB#############################################
########################################################################################... | amidoimidazol/bio_info | Beginning Perl for Bioinformatics/libz/libz.pm | Perl | mit | 4,503 |
# OpenXPKI::Server::Workflow::Activity::Reports::CertExport::GenerateExportFile
# Written by Oliver Welter for the OpenXPKI project 2013
# Copyright (c) 2013 by The OpenXPKI Project
package OpenXPKI::Server::Workflow::Activity::Reports::CertExport::GenerateExportFile;
use strict;
use base qw( OpenXPKI::Server::Workfl... | stefanomarty/openxpki | core/server/OpenXPKI/Server/Workflow/Activity/Reports/CertExport/GenerateExportFile.pm | Perl | apache-2.0 | 7,652 |
=head1 SHCrossPowerDensityL
=over 23
=item SHCrossPowerDensityL -
Compute the spectral cross-power density of two real functions for a single degree L.
=back
=head1 SYNOPSIS
=over 39
=item REAL*8 FUNCTION SHCrossPowerDensityL (
C1, C2, L )
=back
=over 4
=over 10
=item REAL*8
C1(2, L+1, L+1), C2(2, L+1,... | pletnes/SHTOOLS | src/doc/shcrosspowerdensityl.pod | Perl | bsd-3-clause | 1,440 |
#!/usr/bin/env perl
use Math::BigInt;
$mask=0x01;
$num_args = $#ARGV;
if ($num_args !=0)
{
print("\nUsage: ./mysteg.pl gile.bmp\n");
exit;
}
open (MYBMP, $ARGV[0]);
read(MYBMP,$head,54);
#Variable qui nous permet de sauter le bit inutile de chaque pixel
$rgb=4;
#Variable qui nous permet de multiplier le bit de... | AnyMaster/Ctoollhu | lsb_reverse.pl | Perl | mit | 1,420 |
package DDG::Spice::What3Words;
use DDG::Spice;
use Net::Domain::TLD qw(tld_exists);
use strict;
spice is_cached => 1;
spice proxy_cache_valid => "200 1d";
spice from => "([^/]+)/([^/]+)/([^/]+)";
spice to => 'https://api.what3words.com/v2/$1?key={{ENV{DDG_SPICE_W3W_APIKEY}}}&$2=$3&callback={{callback}}';
spice alt... | lernae/zeroclickinfo-spice | lib/DDG/Spice/What3Words.pm | Perl | apache-2.0 | 1,640 |
#
# 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... | Shini31/centreon-plugins | cloud/nutanix/snmp/mode/clusterusage.pm | Perl | apache-2.0 | 10,547 |
package platform::Windows::cppbuilder;
use vars qw(@ISA);
require platform::Windows::MSVC;
@ISA = qw(platform::Windows::MSVC);
sub pdbext { '.tds' }
# C++Builder's Clang-based compilers prepend an underscore to __cdecl-convention
# C functions, and the linker needs those as the InternalName in the .def... | jens-maus/amissl | openssl/Configurations/platform/Windows/cppbuilder.pm | Perl | bsd-3-clause | 376 |
#!/usr/bin/env perl
# run-test-suites.pl
#
# This file is part of mbed TLS (https://tls.mbed.org)
#
# Copyright (c) 2015-2018, ARM Limited, All Rights Reserved
=head1 SYNOPSIS
Execute all the test suites and print a summary of the results.
run-test-suites.pl [[-v|--verbose] [VERBOSITY]] [--skip=SUITE[...]]
Option... | shenki/skiboot | libstb/crypto/mbedtls/tests/scripts/run-test-suites.pl | Perl | apache-2.0 | 4,674 |
# just copy modules
# TODO: copy tests and try to run them...
# this file may be used as example on how to use comp.pl
my @files;
my %dirs;
sub mk {
my $r = shift;
return if exists $dirs{$r};
if ($r=~/\//) {
$r=~/^(.*)\/[^\/]*?$/;
mk($1);
}
print STDERR "..\\miniperl.exe -MCross comp.pl --do cemkdir... | Lh4cKg/sl4a | perl/src/win32/ce-helpers/cecopy-lib.pl | Perl | apache-2.0 | 4,054 |
# 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 u... | crazy-cat/incubator-mxnet | perl-package/AI-MXNet/lib/AI/MXNet/Gluon/Utils.pm | Perl | apache-2.0 | 7,730 |
format EMPLOYEE=
=========================
@<<<<<<<<<<<<<<<<<< @<<
$name $age
@#####.##
$salary
=========================
.
select(STDOUT);
$~ = EMPLOYEE;
@n = ("Ali", "Runoob", "Linkerist");
@a = (20, 30, 40);
@s = (2000.00, 2500.00, 4000.00);
$i = 0;
foreach (@n) {
$name = $_;
$age = $a[$i];
$salary = $s[$i++];... | doc-cloud/perl | format/width.pl | Perl | mit | 331 |
use strict;
use Data::Dumper;
use Carp;
#
# This is a SAS Component
#
=head1 NAME
all_entities_ContigSequence
=head1 SYNOPSIS
all_entities_ContigSequence [-a] [--fields fieldlist] > entity-data
=head1 DESCRIPTION
Return all instances of the ContigSequence entity.
ContigSequences are strings of DNA. Contigs ha... | kbase/kb_seed | scripts/all_entities_ContigSequence.pl | Perl | mit | 3,230 |
#!/usr/bin/perl -w
use strict;
my %tab = (
UUU => 'F' , CUU => 'L' , AUU => 'I' , GUU => 'V' ,
UUC => 'F' , CUC => 'L' , AUC => 'I' , GUC => 'V' ,
UUA => 'L' , CUA => 'L' , AUA => 'I' , GUA => 'V' ,
UUG => 'L' , CUG => 'L' , AUG => 'M' , GUG => 'V' ,
UCU... | tsnowlan/rosalind | splc.pl | Perl | mit | 1,528 |
/** <module> parse_conf
*
* Build an editable AST out of a set of markup configuration files.
* See https://collectd.org/documentation/manpages/collectd.conf.5.shtml
*
* This config file controls how the system statistics collection daemon
* collectd behaves. The most significant option is LoadPlugin, which
... | loadavg/collectdcp | swipl-plgi/parse_conf.pl | Perl | mit | 7,180 |
# 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 debian/tzdata/africa. Olson data version 2008c
#
# Do not edit this file directly.
#
package DateTime::TimeZ... | carlgao/lenga | images/lenny64-peon/usr/share/perl5/DateTime/TimeZone/Africa/Nairobi.pm | Perl | mit | 1,185 |
use utf8;
package Weather::Schema::Result::Measurement;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Weather::Schema::Result::Measurement
=cut
use strict;
use warnings;
use base 'DBIx::Class::Core';
=head1 TABLE: C<measurement>
=cut
__PACKAGE__->table("measur... | solgenomics/Weather | lib/Weather/Schema/Result/Measurement.pm | Perl | mit | 2,754 |
use strict;
use Data::Dumper;
use Carp;
#
# This is a SAS Component
#
=head1 NAME
get_relationship_OperonContains
=head1 SYNOPSIS
get_relationship_OperonContains [-c N] [-a] [--fields field-list] < ids > table.with.fields.added
=head1 DESCRIPTION
Example:
get_relationship_OperonContains -a < ids > table.w... | kbase/kb_seed | scripts/get_relationship_OperonContains.pl | Perl | mit | 5,887 |
split(X, N, L, R) :- split(X, N, 0, L, R).
split(X, N, N, [], X).
split([H|T], N, M, L, R) :- K is (M + 1), split(T, N, K, Ls, R), append([H], Ls, L).
| dvberkel/99-prolog-problems | Prolog-Lists/17.pl | Perl | mit | 152 |
package Experiments::NAACL_HLT_2015::ReferenceRanking;
# TODO : paper as full programs ?
use strict;
use warnings;
use Moose;
use namespace::autoclean;
extends( 'Experiment::Table' );
with( 'Experiments::EMNLP_2015' );
# system entries builder
sub _system_entries_builder {
my $this = shift;
# systems... | ypetinot/web-summarization | evaluation/src/Experiments/NAACL_HLT_2015/ReferenceRanking.pm | Perl | apache-2.0 | 4,979 |
#------------------------------------------------------------------------------
# File: Shortcuts.pm
#
# Description: ExifTool shortcut tags
#
# Revisions: 02/07/2004 - PH Moved out of Exif.pm
# 09/15/2004 - PH Added D70Boring from Greg Troxel
# 01/11/2005 - PH Added Canon20D fro... | pericles-project/pet | nativeTools/exiftool_OSX/lib/Image/ExifTool/Shortcuts.pm | Perl | apache-2.0 | 8,569 |
use warnings;
use strict;
my $i;
for($i = 0; $i < 300; $i = $i + 1) {
print "$i annotated\n";
}
| jmmut/eva-v2 | eva-pipeline/src/test/resources/mockvep.pl | Perl | apache-2.0 | 101 |
package Paws::IAM::DeleteSAMLProvider;
use Moose;
has SAMLProviderArn => (is => 'ro', isa => 'Str', required => 1);
use MooseX::ClassAttribute;
class_has _api_call => (isa => 'Str', is => 'ro', default => 'DeleteSAMLProvider');
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Respons... | ioanrogers/aws-sdk-perl | auto-lib/Paws/IAM/DeleteSAMLProvider.pm | Perl | apache-2.0 | 1,653 |
=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.apache.org/licen... | willmclaren/ensembl | modules/Bio/EnsEMBL/Utils/Logger.pm | Perl | apache-2.0 | 17,336 |
package XrefParser::AedesCAPParser;
use strict;
use File::Basename;
use base qw( XrefParser::BaseParser );
# Aedes CAP database dump - FASTA format
# >...
#
#
#
# Anopheles one:
# >ANXB10B|Annexin B10B
# MSWYYTPHPTVVPAEDFDASADANALRKAMKGFGTDEQAIIDILCARSNGQRQEIAEAFKRELGRDLIDDLKSELGGKFEDVILGLMLRPEAYLCKQLHKAMDGIGTDEK... | adamsardar/perl-libs-custom | EnsemblAPI/ensembl/misc-scripts/xref_mapping/XrefParser/AedesCAPParser.pm | Perl | apache-2.0 | 1,976 |
#!/usr/bin/perl
=head1 NAME
lod-transcode.pl - Materialize the files necessary to host slash-based linked data.
=head1 SYNOPSIS
lod-transcode.pl [OPTIONS] data.rdf http://base /path/to/www
=head1 DESCRIPTION
This script will materialize the necessary files for serving static linked data.
Given an input file data... | timrdf/csv2rdf4lod-automation | bin/lod-materialize/c/lod-transcode.pl | Perl | apache-2.0 | 7,829 |
#!/usr/bin/env perl
=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 ... | Ensembl/ensembl-funcgen | scripts/pwm_mappings/run_binding_site_import_pipeline.pl | Perl | apache-2.0 | 5,596 |
package Paws::CloudFormation::StackInstance;
use Moose;
has Account => (is => 'ro', isa => 'Str');
has Region => (is => 'ro', isa => 'Str');
has StackId => (is => 'ro', isa => 'Str');
has StackSetId => (is => 'ro', isa => 'Str');
has Status => (is => 'ro', isa => 'Str');
has StatusReason => (is => 'ro', i... | ioanrogers/aws-sdk-perl | auto-lib/Paws/CloudFormation/StackInstance.pm | Perl | apache-2.0 | 3,340 |
=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.apache.org/licen... | dbolser-ebi/ensembl-compara | modules/Bio/EnsEMBL/Compara/RunnableDB/MakeNTSpeciesTree/PhylofitFactory.pm | Perl | apache-2.0 | 2,869 |
#
# Copyright 2015 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... | s-duret/centreon-plugins | hardware/ups/mge/snmp/mode/inputlines.pm | Perl | apache-2.0 | 11,358 |
=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 obta... | Ensembl/ensembl-analysis | modules/Bio/EnsEMBL/Analysis/Hive/Config/HiveRNASeq_conf.pm | Perl | apache-2.0 | 54,928 |
package VMOMI::VmCreatedEvent;
use parent 'VMOMI::VmEvent';
use strict;
use warnings;
our @class_ancestors = (
'VmEvent',
'Event',
'DynamicData',
);
our @class_members = ( );
sub get_class_ancestors {
return @class_ancestors;
}
sub get_class_members {
my $class = shift;
my @super_members =... | stumpr/p5-vmomi | lib/VMOMI/VmCreatedEvent.pm | Perl | apache-2.0 | 408 |
package App::Netdisco::Web;
use Dancer ':syntax';
use Dancer::Plugin::Ajax;
use Dancer::Plugin::DBIC;
use Dancer::Plugin::Auth::Extensible;
use Socket6 (); # to ensure dependency is met
use HTML::Entities (); # to ensure dependency is met
use URI::QueryParam (); # part of URI, to add helper methods
use Path::Class '... | gitpan/App-Netdisco | lib/App/Netdisco/Web.pm | Perl | bsd-3-clause | 3,768 |
#!/usr/bin/perl
# This software code is made available "AS IS" without warranties of any
# kind. You may copy, display, modify and redistribute the software
# code either by itself or as incorporated into your code; provided that
# you do not remove any proprietary notices. Your use of this software
# code is a... | zenfactory/portfolio | perl/amazonS3/S3.pm | Perl | mit | 5,763 |
#!/usr/bin/env perl
# auther: oxnz
# coding: utf-8
use strict;
use warnings;
use Interpreter;
my $interpreter = Interpreter->new;
$interpreter->execute("12345abcde");
| PoisonBOx/design-patterns | src/interpreter/perl/test.pl | Perl | mit | 170 |
package OpenXPKI::Server::Workflow::Activity::Tools::GetCertificateIdentifier;
use strict;
use base qw( OpenXPKI::Server::Workflow::Activity );
use OpenXPKI::Server::Context qw( CTX );
use OpenXPKI::Exception;
use OpenXPKI::Debug;
use Workflow::Exception qw(configuration_error);
sub execute {
my $self = sh... | oliwel/openxpki | core/server/OpenXPKI/Server/Workflow/Activity/Tools/GetCertificateIdentifier.pm | Perl | apache-2.0 | 1,219 |
#
# 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 | apps/video/zixi/restapi/mode/broadcasteroutputusage.pm | Perl | apache-2.0 | 9,712 |
#
# 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 | apps/vmware/connector/mode/servicehost.pm | Perl | apache-2.0 | 2,930 |
package Google::Ads::AdWords::v201409::AdwordsUserListService::getResponse;
use strict;
use warnings;
{ # BLOCK to scope variables
sub get_xmlns { 'https://adwords.google.com/api/adwords/rm/v201409' }
__PACKAGE__->__set_name('getResponse');
__PACKAGE__->__set_nillable();
__PACKAGE__->__set_minOccurs();
__PACKAGE__-... | gitpan/GOOGLE-ADWORDS-PERL-CLIENT | lib/Google/Ads/AdWords/v201409/AdwordsUserListService/getResponse.pm | Perl | apache-2.0 | 1,779 |
#!/usr/bin/perl
open(PARSE_FD,"< t.txt") || die "can't open t.txt";
while(<PARSE_FD>){
#chop;
my @fl = split/'\t'/,$_;
@foo = grep(/:*/,$_);
print $foo[0];
print $fl[0];
}
| ctsidev/SecureWise | wise/archived_files/email_scheduler/edu/ucla/wise/client/t.pl | Perl | bsd-3-clause | 184 |
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
# This file is machine-generated by lib/unicore/mktables from the Unicode
# database, Version 6.2.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... | Bjay1435/capstone | rootfs/usr/share/perl/5.18.2/unicore/lib/Blk/Ethiopi2.pl | Perl | mit | 433 |
package Data::UUID;
#--------CUSTOM AMENDMENTS ------
#
# a portable version (binary perl dist, PAR::Packer , PerlApp)
# can't have a hard coded path
package Data::UUID::LOADER;
use strict;
use File::Spec;
sub _get_cava_uuid_dir {
my $oldmask = umask 0000;
my $folder = File::Spec->tmpdir;
if($^O =~ /^ms... | thomaspreece10/STLExtract | Slic3r/Linux/lib/std/Data/UUID.pm | Perl | mit | 5,593 |
########################################################################
# Bio::KBase::ObjectAPI::KBaseExpression::DB::GPL - This is the moose object corresponding to the KBaseExpression.GPL object
# Authors: Christopher Henry, Scott Devoid, Paul Frybarger
# Contact email: chenry@mcs.anl.gov
# Development location: Mat... | kbase/KBaseFBAModeling | lib/Bio/KBase/ObjectAPI/KBaseExpression/DB/GPL.pm | Perl | mit | 3,715 |
package Perun::beans::TaskResult;
use strict;
use warnings;
use Perun::Common;
use overload
'""' => \&toString;
sub toString {
my $self = shift;
my $id = $self->{_id};
my $taskId = $self->{_taskId};
my $destinationId = $self->{_destinationId};
my $errorMessage = $self->{_errorMessage};
my $standardMessage = ... | Laliska/perun | perun-rpc/src/main/perl/Perun/beans/TaskResult.pm | Perl | bsd-2-clause | 4,614 |
# 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/ympzZnp0Uq/northamerica. Olson data version 2012c
#
# Do not edit this file directly.
#
package DateTim... | leighpauls/k2cro4 | third_party/perl/perl/vendor/lib/DateTime/TimeZone/America/Los_Angeles.pm | Perl | bsd-3-clause | 15,562 |
package LibrangeCentcom;
sub functions_provided {
return qw/centcom_environment centcom_services centcom_facility
centcom_status/;
}
sub centcom_status {
eval "require Centcom;";
return () if ($@);
my ( $rr, $range ) = @_;
my @ret;
my $centcom = Centcom->new;
for my $status (@$range)... | square/libcrange | root/var/libcrange/perl/LibrangeCentcom.pm | Perl | bsd-3-clause | 1,224 |
#!perl -w
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
use strict;
my %constants;
my $count = 0;
my $o;
my @objects = ();
my @objsize;
$constants{CKO_DATA} = "st... | GaloisInc/hacrypto | src/C/nss/nss-3.16.1/nss/lib/ckfw/builtins/certdata.perl | Perl | bsd-3-clause | 3,758 |
package Fixtures::ProfileParameter;
#
# Copyright 2015 Comcast Cable Communications Management, 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/LICE... | smalenfant/traffic_control | traffic_ops/app/lib/Fixtures/ProfileParameter.pm | Perl | apache-2.0 | 20,607 |
=pod
=head1 NAME
DH_new, DH_free - allocate and free DH objects
=head1 SYNOPSIS
#include <openssl/dh.h>
DH* DH_new(void);
void DH_free(DH *dh);
=head1 DESCRIPTION
DH_new() allocates and initializes a B<DH> structure.
DH_free() frees the B<DH> structure and its components. The values are
erased before the me... | openweave/openweave-core | third_party/openssl/openssl/doc/crypto/DH_new.pod | Perl | apache-2.0 | 1,060 |
#!/usr/bin/perl
use 5.010;
use strict;
use warnings;
use Scalar::Util qw(looks_like_number);
sub fibonacci {
my $x = $_[0];
if($x < 0 ) {
print "Warning! Cann't count";
return;
}
if($x == 0 ) {
print "Fibonacci $x = 0";
return;
}
if(($x == 1 ) || ($x == 2)) {
print "Fibonacci $x = 1";
return;
}
my $i = 2;
m... | dimir2/hse12pi2-scripts | KolchinE/Perl/Hw1.pl | Perl | mit | 1,002 |
package O2CMS::Obj::Territory::Municipality;
use strict;
use base 'O2CMS::Obj::Territory';
1;
| haakonsk/O2-CMS | lib/O2CMS/Obj/Territory/Municipality.pm | Perl | mit | 96 |
package treesequal;
# Takes one file as a command line argument, which contains two newick strings
# ASSUMES TREES ARE ALL BINARY! Dies otherwise
# Uses the data structures of Day 1985 for O(n) strict consensus.
# The two tree structures, t1 and t2, are package globals and are accessed by various functions.
#use st... | zwickl/terraphy | examples/perlScripts/treesequal.pm | Perl | mit | 8,838 |
package JSON::WebToken::Crypt::RSA;
use strict;
use warnings;
use parent 'JSON::WebToken::Crypt';
use Crypt::OpenSSL::RSA ();
our $ALGORITHM2SIGNING_METHOD_MAP = {
RS256 => 'use_sha256_hash',
RS384 => 'use_sha384_hash',
RS512 => 'use_sha512_hash',
RSA1_5 => 'use_pkcs1_padding',
};
sub sign {
... | movabletype/mt-plugin-google-openid-connect | plugins/GoogleOpenIDConnect/extlib/JSON/WebToken/Crypt/RSA.pm | Perl | mit | 870 |
=head1 NAME
SGN::Controller::AJAX::Image - image ajax requests
=head1 DESCRIPTION
Implements the following endpoints:
GET /ajax/image/<image_id>
GET /ajax/image/<image_id>/stock/<stock_id>/display_order
POST /ajax/image/<image_id>/stock/<stock_id>/display_order/<display_order>
GET /ajax/image/<image_id... | solgenomics/sgn | lib/SGN/Controller/AJAX/Image.pm | Perl | mit | 19,245 |
#!/usr/bin/perl
print "\$a value restore after loop : ";
$a = 1;
print $a;
foreach $a(2, 3, 4) {
print $a;
}
print $a;
print "\nchange loop variable value, result in value change : ";
@a = (1, 2, 3);
print @a;
foreach $c(@a) {
$c = 4 if $c == 2;
}
print @a;
print "\nable to access part of array : ";
@a = (1, 2, 3)... | doc-cloud/perl | control-structure/control-structure.pl | Perl | mit | 870 |
package SQL::Statement::Util;
sub type {
my($self)=@_;
return 'function' if $self->isa('SQL::Statement::Util::Function');
return 'column' if $self->isa('SQL::Statement::Util::Column');
}
package SQL::Statement::Util::Column;
use base 'SQL::Statement::Util';
sub new {
my $class = shift;
... | carlgao/lenga | images/lenny64-peon/usr/share/perl5/SQL/Statement/Util.pm | Perl | mit | 2,623 |
=head1 NAME
WWW::Mechanize::Examples - Sample programs that use WWW::Mechanize
=head1 SYNOPSIS
Plenty of people have learned WWW::Mechanize, and now, you can too!
Following are user-supplied samples of WWW::Mechanize in action.
If you have samples you'd like to contribute, please send 'em to
C<< <andy@petdance.com>... | carlgao/lenga | images/lenny64-peon/usr/share/perl5/WWW/Mechanize/Examples.pod | Perl | mit | 15,830 |
#!/usr/bin/env perl
# ------------------------------------------------------------------------------
##The MIT License (MIT)
##
##Copyright (c) 2016 Jordi Abante
##
##Permission is hereby granted, free of charge, to any person obtaining a copy
##of this software and associated documentation files (the "Software"), to d... | jordiabante/myutils | src/fasta_split/perl/fasta_split.pl | Perl | mit | 2,955 |
=head1 NAME
Mail::Message::Field::Address - One e-mail address
=head1 INHERITANCE
Mail::Message::Field::Address
is a Mail::Identity
is a User::Identity::Item
=head1 SYNOPSIS
my $addr = Mail::Message::Field::Address->new(...);
my $ui = User::Identity->new(...);
my $addr = Mail::Message::Field::Address-... | carlgao/lenga | images/lenny64-peon/usr/share/perl5/Mail/Message/Field/Address.pod | Perl | mit | 6,107 |
#!/usr/bin/perl -w
use strict;
my $genomeRseq = '/opt/index/hs/genes_longName.fa';
my $indir = 'Hs4Rs';
my $infile = 'aligned.sam';
my $outdir = 'HsRs';
opendir(DIR,'.') or die "$!\n";
while(my $subdir = readdir(DIR)) {
next unless -d $subdir;
next if $subdir eq '.';
next if $subdir eq '..';
next if ... | cckim47/kimlab | rnaseq/alignAndModel/model_HsRs.pl | Perl | mit | 626 |
#! /usr/bin/perl -w
#
# colorgcc
#
# Version: 2.0.5
#
# $Id: colorgcc,v 1.10 1999/04/29 17:15:52 jamoyers Exp $
#
# A wrapper to colorize the output from compilers whose messages
# match the "gcc" format.
#
# Requires the ANSIColor module from CPAN.
#
# Usage:
#
# In a directory that occurs in your PATH _before_ the d... | stephensolis/modmap-generator-cpp | external/colorgcc.pl | Perl | mit | 20,854 |
# <@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... | gitpan/Mail-SpamAssassin | lib/Mail/SpamAssassin/Plugin/WhiteListSubject.pm | Perl | apache-2.0 | 4,221 |
#
# 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... | golgoth31/centreon-plugins | hardware/server/hp/proliant/snmp/mode/globalstatus.pm | Perl | apache-2.0 | 4,080 |
## OpenXPKI::Crypto::X509
## Rewritten 2005 by Michael Bell for the OpenXPKI project
## (C) Copyright 2003-2006 by The OpenXPKI Project
use strict;
use warnings;
package OpenXPKI::Crypto::X509;
use OpenXPKI::Debug;
use OpenXPKI::DN;
use Math::BigInt;
use Digest::SHA qw(sha1_base64);
use OpenXPKI::DateTime;
use base... | stefanomarty/openxpki | core/server/OpenXPKI/Crypto/X509.pm | Perl | apache-2.0 | 15,212 |
%%
%% Class sun.io.CharToByteConverter
%% NOTICE: Do not edit this file. This file has been generated from:
%% java.awt.event.ActionEvent
%%
:- class('CharToByteConverter').
:- use_package(objects).
ojo> es publico
:- export('CharToByteConverter'/0).
:- export(byteOff/1).
ojo> es publico
:- export(canConvert/2).
ojo>... | leuschel/ecce | www/CiaoDE/ciao/library/javaobs/sun/io/CharToByteConverter.pl | Perl | apache-2.0 | 4,182 |
package SentenceSentenceFactorType;
use strict;
use warnings;
use Feature::CosineSimilarity;
use Moose;
use namespace::autoclean;
# feature definitions
has 'feature_definitions' => ( is => 'rw' , isa => 'ArrayRef' , lazy => 1 , builder => '_sentence_sentence_feature_definitions_builder' );
sub _sentence_sentence_fe... | ypetinot/web-summarization | summarizers/graph-summarizer-4/src/SentenceSentenceFactorType.pm | Perl | apache-2.0 | 897 |
#
# 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 | cloud/azure/database/redis/mode/load.pm | Perl | apache-2.0 | 4,598 |
#
# 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 | hardware/server/sun/mgmt_cards/mode/showenvironment.pm | Perl | apache-2.0 | 13,156 |
#
# 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 | cloud/aws/ec2/mode/discovery.pm | Perl | apache-2.0 | 4,264 |
=head1 TITLE
C<my Dog $spot> is just an assertion
=head1 VERSION
Maintainer: Piers Cawley <pdcawley@bofh.org.uk>
Date: 13 Sep 2000
Last Modified: 25 Sep 2000
Mailing List: perl6-language-objects@perl.org
Number: 218
Version: 2
Status: Frozen
=head1 ABSTRACT
The behaviour of the <my Dog $spot> syntax ... | autarch/perlweb | docs/dev/perl6/rfc/218.pod | Perl | apache-2.0 | 4,098 |
package VMOMI::DiagnosticPartitionType;
use parent 'VMOMI::SimpleType';
use strict;
use warnings;
1;
| stumpr/p5-vmomi | lib/VMOMI/DiagnosticPartitionType.pm | Perl | apache-2.0 | 103 |
=head1 NAME
mod_perl Tutorials and Presentations
=head1 Description
Over the years, mod_perl talks have been held at several conferences
about Perl, Apache or Open Source. Many of those giving talks put some
information online, and you can learn a lot from that.
If you know of any other mod_perl tutorials and prese... | Distrotech/mod_perl | docs/src/docs/offsite/presentations.pod | Perl | apache-2.0 | 2,403 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This file is part of VivoMind Prolog Unicode Resources
% SPDX-License-Identifier: CC0-1.0
%
% VivoMind Prolog Unicode Resources is free software distributed using the
% Creative Commons CC0 1.0 Universal (CC0 1.0) - Public Domain Ded... | LogtalkDotOrg/logtalk3 | library/unicode_data/unicode_categories/unicode_category_mn_mark_nonspacing.pl | Perl | apache-2.0 | 43,038 |
#!/usr/bin/perl
# This file was retrieved from
# https://www.ruby-forum.com/attachment/1583/fastcgi-wrapper.pl
# on May 31, 2014 and modified slightly for use in haskell.org infra.
use FCGI;
use Socket;
use POSIX qw(setsid);
require 'syscall.ph';
&daemonize;
# This keeps the program alive or something after exec'i... | haskell-infra/ansible | centos/roles/nagios/files/fastcgi-wrapper.pl | Perl | bsd-2-clause | 3,241 |
package Sisimai::Reason::Suspend;
use feature ':5.10';
use strict;
use warnings;
sub text { 'suspend' }
sub description { 'Email rejected due to a recipient account is being suspended' }
sub match {
# Try to match that the given text and regular expressions
# @param [String] argv1 String to be matched wi... | azumakuniyuki/p5-Sisimai | lib/Sisimai/Reason/Suspend.pm | Perl | bsd-2-clause | 3,064 |
package POE::API::Peek;
{
$POE::API::Peek::VERSION = '2.20';
}
# ABSTRACT: Peek into the internals of a running POE environment
use 5.006001;
use warnings;
use strict;
BEGIN {
use POE;
my $ver = $POE::VERSION;
$ver =~ s/_.+$//;
if($ver < '1.300') {
die(__PACKAGE__." is only certified for POE version 1.300 a... | gitpan/POE-API-Peek | lib/POE/API/Peek.pm | Perl | bsd-3-clause | 24,157 |
#!%PERL% -w
package Vhffs::Panel;
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw( display );
use strict;
use utf8;
use POSIX qw(locale_h);
use locale;
use Locale::gettext;
use CGI::Session;
use File::Spec;
use Encode;
use Template;
use Vhffs;
use Vhffs::User;
use Vhffs::Group;
use Vhffs::Functions;
use Vhffs... | najamelan/vhffs-4.5 | vhffs-api/src/Vhffs/Panel.pm | Perl | bsd-3-clause | 14,589 |
#
# ServiceClass.pm : part of the Mace toolkit for building distributed systems
#
# Copyright (c) 2011, Charles Killian, James W. Anderson, Adolfo Rodriguez, Dejan Kostic
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the foll... | jojochuang/eventwave | perl5/Mace/Compiler/ServiceClass.pm | Perl | bsd-3-clause | 3,921 |
package Bio::KBase::DataStoreInterface::DataStoreInterfaceImpl;
use strict;
use Bio::KBase::Exceptions;
# Use Semantic Versioning (2.0.0-rc.1)
# http://semver.org
our $VERSION = "0.1.0";
=head1 NAME
AbstractHandle
=head1 DESCRIPTION
The AbstractHandle module provides a programmatic
access to a remote file store.
... | kbase/handle_service | lib/Bio/KBase/DataStoreInterface/DataStoreInterfaceImpl.pm | Perl | mit | 9,638 |
###########################################################################
#
# 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_IO.pod | Perl | mit | 9,542 |
package WebService::Telnic;
use warnings;
use strict;
=head1 NAME
WebService::Telnic - Interface to Telnic's SOAP API's
=head1 VERSION
Version 0.2
=cut
our $VERSION = '0.2';
=head1 AUTHOR
Peter Makholm, C<< <peter at makholm.net> >>
=head1 BUGS
Please report any bugs or feature requests to C<bug-webservice-t... | pmakholm/telnic-perl | lib/WebService/Telnic.pm | Perl | mit | 3,624 |
# please insert nothing before this line: -*- mode: cperl; cperl-indent-level: 4; cperl-continued-statement-offset: 4; indent-tabs-mode: nil -*-
package TestFilter::out_str_subreq_modperl;
use strict;
use warnings FATAL => 'all';
use Apache::Test;
use Apache::TestUtil;
use Apache2::RequestRec ();
use Apache2::Reques... | dreamhost/dpkg-ndn-perl-mod-perl | t/filter/TestFilter/out_str_subreq_modperl.pm | Perl | apache-2.0 | 1,947 |
package Paws::MobileHub::ExportBundleResult;
use Moose;
has DownloadUrl => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'downloadUrl');
has _request_id => (is => 'ro', isa => 'Str');
1;
### main pod documentation begin ###
=head1 NAME
Paws::MobileHub::ExportBundleResult
=head1 ATT... | ioanrogers/aws-sdk-perl | auto-lib/Paws/MobileHub/ExportBundleResult.pm | Perl | apache-2.0 | 568 |
# 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 u... | Mega-DatA-Lab/mxnet | perl-package/AI-MXNet/lib/AI/MXNet/Symbol.pm | Perl | apache-2.0 | 42,975 |
package Action::itemGroupReview;
use ItemConstants;
use Item;
use Session;
sub run {
our $q = shift;
our $dbh = shift;
our %in = map { $_ => $q->param($_) } $q->param;
our $user = Session::getUser($q->env, $dbh);
our $debug = 1;
our $sth;
our $sql;
our $userType = $review_type_map{$user->{rev... | SmarterApp/ItemAuthoring | sbac-iaip/perl/Action/itemGroupReview.pm | Perl | apache-2.0 | 10,032 |
# 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 ... | apache/lucy | perl/lib/Lucy/Store/RAMFileHandle.pm | Perl | apache-2.0 | 896 |
#------------------------------------------------------------------------------
# File: FLIR.pm
#
# Description: Read FLIR meta information
#
# Revisions: 2013/03/28 - P. Harvey Created
#
# References: 1) http://u88.n24.queensu.ca/exiftool/forum/index.php/topic,4898.0.html
# 2) http://www.nu... | project802/Focus-Points | focuspoints.lrdevplugin/bin/exiftool/lib/Image/ExifTool/FLIR.pm | Perl | apache-2.0 | 56,492 |
# input check functions
sub checkReportName {
my ($userName, $reportNameID, $reportName) = @_;
if (length($reportName) == 0) {return("Please enter a report name");}
if ($reportNameID ne $reportName) {
if(-e "$perfhome/var/db/users/$userName/reports/$reportName.ser") {return("Report Name is already taken");}
}
}... | ktenzer/perfstat | ui/reportMonitor/content/layoutReport/lib_inputCheck.pl | Perl | apache-2.0 | 324 |
#!/usr/bin/perl -w
# $Id: smcontrol.pl,v 8.8 2008/07/21 21:31:43 ca Exp $
use strict;
use Getopt::Std;
use FileHandle;
use Socket;
my $sendmailDaemon = "/usr/sbin/sendmail -q30m -bd";
##########################################################################
#
# &get_controlname -- read ControlSocketName option fr... | dplbsd/soc2013 | head/contrib/sendmail/contrib/smcontrol.pl | Perl | bsd-2-clause | 7,581 |
package Fastq_reader;
use strict;
use warnings;
use PerlIO::gzip;
sub new {
my ($packagename, $fastqFile) = @_;
## note: fastqFile can be a filename or an IO::Handle
my $self = { fastqFile => undef,
fileHandle => undef };
bless ($self, $packagename);
## create filehandle
my $fileh... | vipints/oqtans | oqtans_tools/Trinity/r2013_08_14/PerlLib/Fastq_reader.pm | Perl | bsd-3-clause | 3,183 |
package API::Asn;
#
#
# 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, software
... | serDrem/incubator-trafficcontrol | traffic_ops/app/lib/API/Asn.pm | Perl | apache-2.0 | 4,945 |
#! c:\perl\bin\perl.exe
#-----------------------------------------------------------
# muicache_tln.pl
# Plugin for Registry Ripper, NTUSER.DAT edition - gets the
# MUICache values
#
# Change history
# 20130425 - added alertMsg() functionality
# 20120522 - updated to collect info from Win7 USRCLASS.DAT
#
#
# copyr... | mhmdfy/autopsy | RecentActivity/release/rr-full/plugins/muicache_tln.pl | Perl | apache-2.0 | 2,701 |
#------------------------------------------------------------------------
# Copyright 2008-2009 (c) Jeff Brown <spadix@users.sourceforge.net>
#
# This file is part of the ZBar Bar Code Reader.
#
# The ZBar Bar Code Reader is free software; you can redistribute it
# and/or modify it under the terms of the GNU Lesser... | krunalsoni01/yocto-zbar | zbar-0.8/perl/ZBar/Image.pod | Perl | mit | 3,600 |
#Copyright 2009, 2010 Daniel Gaston, andrew Roger Lab
#This code is copyrighted under the GNU General Public License Version 3.0
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eith... | GastonLab/fundi-dev | RAxML.pm | Perl | mit | 3,082 |
#!/usr/bin/env perl
use strict;
use warnings;
use Fcntl;
### Initialization Section
use Log::Log4perl qw(:easy);
Log::Log4perl->easy_init($INFO);
use Getopt::Long;
my $linenumberreport = 10000000;
my $ranksfileout = "ranks.bin";
my $nodesfileout = "nodes.bin";
my @files2download = qw(ftp://ftp.ncbi.nlm.nih.gov/p... | greatfireball/NCBI-Taxonomy | make_taxid_indizes.pl | Perl | mit | 7,004 |
sub BackToForwardSlash
{
my( $path ) = shift;
$path =~ s,\\,/,g;
return $path;
}
sub RemoveFileName
{
my( $in ) = shift;
$in = &BackToForwardSlash( $in );
$in =~ s,/[^/]*$,,;
return $in;
}
sub RemovePath
{
my( $in ) = shift;
$in = &BackToForwardSlash( $in );
$in =~ s,^(.*)/([^/]*)$,$2,;
return $in;
}
sub ... | SCell555/hl2-asw-port | src/devtools/bin/valve_perl_helpers.pl | Perl | mit | 10,926 |
:- ensure_loaded('$REGULUS/PrologLib/compatibility').
:- module(ebl_grammar_probs,
[sents_file_or_files_to_grammar_probs_data_file/3,
sents_file_to_grammar_probs_data_file/3]
).
/*
sents_file_to_grammar_probs_data_file(+InFile, +GrammarName, +OutFile)
1. InFile
Annotated wavfiles file.
2. GrammarNam... | TeamSPoon/logicmoo_workspace | packs_sys/logicmoo_nlu/ext/regulus/Prolog/ebl_grammar_probs.pl | Perl | mit | 4,292 |
#!/usr/bin/env perl
use strict;
my @pidfiles = @ARGV;
my %alllibs;
my %ctglibreads;
my %ctglibpid;
unless(scalar(@pidfiles) > 1) {
die "Usage: $0 [BAM pid summary files...]\n";
}
foreach my $file (@pidfiles) {
my $lib = $file;
$lib =~ s/.+\///g;
$lib =~ s/\.pid_summary\.txt$//;
$alllibs{$lib} = 1... | mccrowjp/utilities | bam_pid_summary_merge.pl | Perl | mit | 1,275 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.