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 |
|---|---|---|---|---|---|
#
# 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
# distributed under ... | delphix/dxtoolkit | bin/dx_get_js_datasources.pl | Perl | apache-2.0 | 6,432 |
package OpenXPKI::Test::CertHelper::Workflow;
use Moose;
use utf8;
=head1 NAME
OpenXPKI::Test::CertHelper::Workflow - Test helper that creates certificates
using OpenXPKI workflows
=head1 DESCRIPTION
This class is not intended for direct use. Please use the class methods in
L<OpenXPKI::Test::CertHelper> instead.
=... | aleibl/openxpki | qatest/lib/OpenXPKI/Test/CertHelper/Workflow.pm | Perl | apache-2.0 | 7,145 |
package Paws::EMR::SetTerminationProtection;
use Moose;
has JobFlowIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1);
has TerminationProtected => (is => 'ro', isa => 'Bool', required => 1);
use MooseX::ClassAttribute;
class_has _api_call => (isa => 'Str', is => 'ro', default => 'SetTerminati... | ioanrogers/aws-sdk-perl | auto-lib/Paws/EMR/SetTerminationProtection.pm | Perl | apache-2.0 | 2,122 |
# 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/NetworkSettings.pm | Perl | apache-2.0 | 1,255 |
package Paws::EMR::InstanceGroupStatus;
use Moose;
has State => (is => 'ro', isa => 'Str');
has StateChangeReason => (is => 'ro', isa => 'Paws::EMR::InstanceGroupStateChangeReason');
has Timeline => (is => 'ro', isa => 'Paws::EMR::InstanceGroupTimeline');
1;
### main pod documentation begin ###
=head1 NAME
P... | ioanrogers/aws-sdk-perl | auto-lib/Paws/EMR/InstanceGroupStatus.pm | Perl | apache-2.0 | 1,687 |
#!/usr/bin/perl
require "/perfstat/build/serialize/create/ServiceConfig.pl";
#add create new service
$service = Service->new( RRA => "RRA:AVERAGE:0.5:1:288 RRA:AVERAGE:0.5:7:288 RRA:AVERAGE:0.5:30:288 RRA:AVERAGE:0.5:365:288",
rrdStep => "300",
serviceName => "socket",
);
#add metric 0
$obj = ... | ktenzer/perfstat | misc/serialize/create/WindowsNT/022404/socket.pl | Perl | apache-2.0 | 4,464 |
#!/usr/bin/perl -w
use warnings;
use strict;
use 5.010;
use Time::Piece;
use IO::Handle;
use Locale::Currency::Format;
# Works with Firefox version 43
# https://ftp.mozilla.org/pub/firefox/releases/43.0/win32/en-US/
# ProvidentAvp1.pl
# Input file: ARGV[0] = Sales Report in .CSV format
# Output file: Provident... | familymcqueens/ProvidentAvpXpress | ProvidentAvp1.pl | Perl | apache-2.0 | 9,335 |
=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.ap... | mn1/ensembl-analysis | modules/Bio/EnsEMBL/Analysis/Runnable/BestPmatch.pm | Perl | apache-2.0 | 3,546 |
# OpenXPKI::Server::Workflow::Condition::WorkflowContextBulk
# Written by Martin Bartosch for the OpenXPKI project 2009
# Copyright (c) 2009 by The OpenXPKI Project
package OpenXPKI::Server::Workflow::Condition::WorkflowContextBulk;
use strict;
use warnings;
use base qw( Workflow::Condition );
use DateTime;
use Workfl... | stefanomarty/openxpki | core/server/OpenXPKI/Server/Workflow/Condition/WorkflowContextBulk.pm | Perl | apache-2.0 | 5,563 |
#
# (c) Jan Gehring <jan.gehring@gmail.com>
#
# vim: set ts=2 sw=2 tw=0:
# vim: set expandtab:
package Rex::Cron;
use strict;
use warnings;
our $VERSION = '0.56.1'; # VERSION
use Rex::Commands::Gather;
sub create {
my ($class) = @_;
my $type = "Linux";
if ( operating_system_is("SunOS") ) {
$type = "SunO... | gitpan/Rex | lib/Rex/Cron.pm | Perl | apache-2.0 | 480 |
package Google::Ads::AdWords::v201809::CampaignService::CampaignServiceInterfacePort;
use strict;
use warnings;
use Class::Std::Fast::Storable;
use Scalar::Util qw(blessed);
use base qw(SOAP::WSDL::Client::Base);
# only load if it hasn't been loaded before
require Google::Ads::AdWords::v201809::TypeMaps::CampaignServi... | googleads/googleads-perl-lib | lib/Google/Ads/AdWords/v201809/CampaignService/CampaignServiceInterfacePort.pm | Perl | apache-2.0 | 9,165 |
# 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/Enums/ConversionActionCountingTypeEnum.pm | Perl | apache-2.0 | 859 |
=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-production | modules/Bio/EnsEMBL/Production/Pipeline/FileDump/Assembly_Chain.pm | Perl | apache-2.0 | 10,016 |
=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 obt... | willmclaren/ensembl-variation | modules/Bio/EnsEMBL/Variation/DBSQL/VariationFeatureAdaptor.pm | Perl | apache-2.0 | 73,279 |
#!/usr/bin/perl
require "/perfstat/build/serialize/create/ServiceConfig.pl";
#add create new service
$service = Service->new( RRA => "RRA:AVERAGE:0.5:1:1728 RRA:AVERAGE:0.5:6:1296 RRA:AVERAGE:0.5:24:996 RRA:AVERAGE:0.5:144:730",
rrdStep => "300",
serviceName => "cpu",
);
#add metric 0
$obj = Met... | ktenzer/perfstat | misc/serialize/create/Linux/20904/cpu.pl | Perl | apache-2.0 | 6,548 |
package VMOMI::InvalidProfileReferenceHost;
use parent 'VMOMI::RuntimeFault';
use strict;
use warnings;
our @class_ancestors = (
'RuntimeFault',
'MethodFault',
);
our @class_members = (
['reason', undef, 0, 1],
['host', 'ManagedObjectReference', 0, 1],
['profile', 'ManagedObjectReference', 0, 1... | stumpr/p5-vmomi | lib/VMOMI/InvalidProfileReferenceHost.pm | Perl | apache-2.0 | 577 |
package t::RedisParser;
use Test::Base -Base;
use IPC::Run3;
use Cwd;
use Test::LongString;
our @EXPORT = qw( run_tests );
$ENV{LUA_CPATH} = "?.so;" . ($ENV{LUA_CPATH} || "") . ';' . "/usr/local/openresty-debug/lualib/?.so;/usr/local/openresty/lualib/?.so;;";
#$ENV{LUA_PATH} = ($ENV{LUA_PATH} || "" ) . '... | caidongyun/nginx-openresty-windows | lua-redis-parser-0.10/t/RedisParser.pm | Perl | bsd-2-clause | 1,553 |
use strict;
use warnings;
use diagnostics;
use 5.20.1;
use Win32::Clipboard;
use autodie;
use Imager;
use Getopt::Long;
use Path::Tiny;
my $fileName;
(GetOptions('file|f=s' => \$fileName) && $fileName) or die "Usage: $0 --file|-f Name";
path($fileName)->touchpath;
my $clip = Win32::Clipboard();
if($clip->IsBitmap(... | lust4life/quick.dirty.perl | Perl STH/tools/pasteIntoFile.pl | Perl | bsd-3-clause | 600 |
# better color the HP display
# prayer-safe HP is colored as dark gray
# it also doesn't "miss" like the real hpmon
# by Eidolos
include "stats";
our $notified = 0;
each_iteration
{
$botl{hp} =~ s{(HP:)(\d+\(\d+\))}{
my $color = '';
if ($curhp * 7 <= $maxhp || $curhp <= 5) { $color = "\e[1;30m" }
e... | Sec42/interhack | plugins/hpmon.pl | Perl | mit | 955 |
package Teng::Schema::Table;
use strict;
use warnings;
use Class::Accessor::Lite
rw => [ qw(
name
primary_keys
columns
escaped_columns
sql_types
row_class
base_row_class
) ]
;
use Carp ();
use Class::Load ();
sub new {
my ($class, %args) = @_;
my ... | rosiro/wasarabi | local/lib/perl5/Teng/Schema/Table.pm | Perl | mit | 3,393 |
# Pod::Man -- Convert POD data to formatted *roff input.
#
# This module translates POD documentation into *roff markup using the man
# macro set, and is intended for converting POD documents written as Unix
# manual pages to manual pages that can be read by the man(1) command. It is
# a replacement for the pod2man co... | operepo/ope | bin/usr/share/perl5/core_perl/Pod/Man.pm | Perl | mit | 78,692 |
# 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/europe. Olson data version 2012c
#
# Do not edit this file directly.
#
package DateTime::Tim... | leighpauls/k2cro4 | third_party/perl/perl/vendor/lib/DateTime/TimeZone/Asia/Krasnoyarsk.pm | Perl | bsd-3-clause | 6,215 |
#!/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
## ... | SolidWallOfCode/trafficserver | tools/sni_lua_to_yaml.pl | Perl | apache-2.0 | 1,490 |
#-----------------------------------------------------------
# autoendtasks.pl
#
# History
# 20081128 - created
#
# Ref:
# http://support.microsoft.com/kb/555619
# This Registry setting tells XP (and Vista) to automatically
# end non-responsive tasks; value may not exist on Vista.
#
# copyright 2008 H. Carvey... | APriestman/autopsy | thirdparty/rr-full/plugins/autoendtasks.pl | Perl | apache-2.0 | 1,744 |
# -*- Mode: cperl; coding: utf-8; cperl-indent-level: 4 -*-
# vim: ts=4 sts=4 sw=4:
package CPAN::Distribution;
use strict;
use Cwd qw(chdir);
use CPAN::Distroprefs;
use CPAN::InfoObj;
use File::Path ();
@CPAN::Distribution::ISA = qw(CPAN::InfoObj);
use vars qw($VERSION);
$VERSION = "1.9602";
# Accessors
sub cpan_comm... | Dokaponteam/ITF_Project | xampp/perl/lib/CPAN/Distribution.pm | Perl | mit | 148,573 |
package OIDC::Lite::Server::GrantHandlers;
use strict;
use warnings;
use OIDC::Lite::Server::GrantHandler::AuthorizationCode;
use OAuth::Lite2::Server::GrantHandler::Password;
use OAuth::Lite2::Server::GrantHandler::RefreshToken;
use OAuth::Lite2::Server::GrantHandler::ClientCredentials;
use OAuth::Lite2::Server::Gran... | movabletype/mt-plugin-google-openid-connect | plugins/GoogleOpenIDConnect/extlib/OIDC/Lite/Server/GrantHandlers.pm | Perl | mit | 2,640 |
remove([H | T], H, T).
remove([H | T], E, [H | Tr]) :-
H =\= E,
remove(T, E, Tr).
eqset([], []).
eqset([H1 | T1], X) :-
remove(X, H1, Y),
eqset(T1, Y).
getNth([H | _], 1, H).
getNth([_ | T], N, X) :-
N > 1,
N1 is N - 1,
getNth(T, N1, X).
| rusucosmin/courses | ubb/plf/P1/14.pl | Perl | mit | 271 |
#!/usr/bin/perl -w
# Copyright 2001, 20002 Rob Edwards
# For updates, more information, or to discuss the scripts
# please contact Rob Edwards at redwards@utmem.edu or via http://www.salmonella.org/
#
# This file is part of The Phage Proteome Scripts developed by Rob Edwards.
#
# Tnese scripts are free... | linsalrob/bioinformatics | phage_tree/drawtras.scaled.pl | Perl | mit | 7,203 |
:- use_module(library(lists)).
:- use_module(library(random)).
:- use_module(library(clpfd)).
:- use_module(library(samsort)).
config_file('tp2_config.pl').
read_config :-
config_file(F),
open(F, read, Str),
read_file(Str, _),
close(Str).
read_file(Stream, []) :-
at_end_of_stream(Stream).
read_fi... | DDuarte/feup-plog-cequis_cloud | tp2.pl | Perl | mit | 7,019 |
use v6;
sub load_input {
my %replacements;
my @input = open("input").lines;
my $molecule = @input.pop;
@input.pop;
for (@input) {
my ($a,$b) = .split(/ \s* \=\> \s* /);
%replacements{$a}.push($b);
}
return ($molecule, %replacements);
}
sub locations_of {
my ($str1, $str... | gugod/advent-of-code | 2015/day-19/solve.perl6.pl | Perl | cc0-1.0 | 2,531 |
package Paws::DataPipeline::ReportTaskProgress;
use Moose;
has Fields => (is => 'ro', isa => 'ArrayRef[Paws::DataPipeline::Field]', traits => ['NameInRequest'], request_name => 'fields' );
has TaskId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'taskId' , required => 1);
use Moos... | ioanrogers/aws-sdk-perl | auto-lib/Paws/DataPipeline/ReportTaskProgress.pm | Perl | apache-2.0 | 2,050 |
# 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/InvoiceService.pm | Perl | apache-2.0 | 1,071 |
package Paws::Lightsail::Region;
use Moose;
has AvailabilityZones => (is => 'ro', isa => 'ArrayRef[Paws::Lightsail::AvailabilityZone]', request_name => 'availabilityZones', traits => ['NameInRequest']);
has ContinentCode => (is => 'ro', isa => 'Str', request_name => 'continentCode', traits => ['NameInRequest']);
... | ioanrogers/aws-sdk-perl | auto-lib/Paws/Lightsail/Region.pm | Perl | apache-2.0 | 2,274 |
#
# 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 | hardware/server/dell/cmc/snmp/mode/hardware.pm | Perl | apache-2.0 | 4,101 |
=head1 LICENSE
Copyright (c) 1999-2011 The European Bioinformatics Institute and
Genome Research Limited. All rights reserved.
This software is distributed under a modified Apache license.
For license details, please see
http://www.ensembl.org/info/about/code_licence.html
=head1 CONTACT
Please email comme... | adamsardar/perl-libs-custom | EnsemblAPI/ensembl-variation/modules/Bio/EnsEMBL/Variation/Utils/VariationEffect.pm | Perl | apache-2.0 | 15,002 |
package Paws::RedShift::DeleteEventSubscription;
use Moose;
has SubscriptionName => (is => 'ro', isa => 'Str', required => 1);
use MooseX::ClassAttribute;
class_has _api_call => (isa => 'Str', is => 'ro', default => 'DeleteEventSubscription');
class_has _returns => (isa => 'Str', is => 'ro', default => 'Pa... | ioanrogers/aws-sdk-perl | auto-lib/Paws/RedShift/DeleteEventSubscription.pm | Perl | apache-2.0 | 1,717 |
package Paws::CloudWatchLogs::CreateLogGroup;
use Moose;
has KmsKeyId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'kmsKeyId' );
has LogGroupName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'logGroupName' , required => 1);
has Tags => (is => 'ro', is... | ioanrogers/aws-sdk-perl | auto-lib/Paws/CloudWatchLogs/CreateLogGroup.pm | Perl | apache-2.0 | 2,172 |
#!/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/examples/solutions/metadata_1.pl | Perl | apache-2.0 | 2,858 |
package Paws::StorageGateway::ListLocalDisks;
use Moose;
has GatewayARN => (is => 'ro', isa => 'Str', required => 1);
use MooseX::ClassAttribute;
class_has _api_call => (isa => 'Str', is => 'ro', default => 'ListLocalDisks');
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::StorageGateway... | ioanrogers/aws-sdk-perl | auto-lib/Paws/StorageGateway/ListLocalDisks.pm | Perl | apache-2.0 | 1,597 |
#
# 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 | centreon/common/adic/tape/snmp/mode/components/global.pm | Perl | apache-2.0 | 3,247 |
package VMOMI::VirtualMachineConfigInfoNpivWwnType;
use parent 'VMOMI::SimpleType';
use strict;
use warnings;
1;
| stumpr/p5-vmomi | lib/VMOMI/VirtualMachineConfigInfoNpivWwnType.pm | Perl | apache-2.0 | 115 |
###########################################################################
#
# 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/el_GR.pod | Perl | mit | 10,959 |
package Agua::Common::User;
use Moose::Role;
use Moose::Util::TypeConstraints;
=head2
PACKAGE Agua::Common::User
PURPOSE
USER METHODS FOR Agua::Common
=cut
use Data::Dumper;
#has 'requestor' => ( isa => 'Str|Undef', is => 'rw', default => '' );
sub getUsers {
my $self = shift;
$self->logDebug("()");
... | agua/agua | lib/Agua/Common/User.pm | Perl | mit | 10,731 |
package PPOBackend::MySQL;
# PPOBackend::MySQL - MySQL backend for PPO
# $Id: MySQL.pm,v 1.11 2010-03-23 13:57:51 paczian Exp $
use strict;
use warnings;
use DBI;
use base qw( PPOBackend );
1;
=pod
=head1 NAME
PPOBackend::MySQL - MySQL backend for PPO
=head1 DESCRIPTION
This package implements the abstract ... | wilke/MG-RAST | src/PPO/PPOBackend/MySQL.pm | Perl | bsd-2-clause | 6,628 |
#!/usr/bin/env perl
# Pragmas.
use strict;
use warnings;
# Modules.
use Person::ID::CZ::RC;
# Object.
my $obj = Person::ID::CZ::RC->new(
'rc' => '840229/1330',
);
# Get error.
my $error = $obj->error || '-';
# Print out.
print "Personal number: ".$obj->rc."\n";
print "Year: ".$obj->year."\n";
print "Month:... | tupinek/Person-ID-CZ-RC | examples/ex3.pl | Perl | bsd-2-clause | 758 |
## This file is part of simpleserver
## Copyright (C) 2000-2015 Index Data.
## 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 copyri... | indexgeo/simpleserver | GRS1.pm | Perl | bsd-3-clause | 10,395 |
#!/usr/bin/env perl
##fix
# Split the multi-allelic sites in a VCF onto multiple rows, one alt allele per row
# Jared Evans evans.jared@mayo.edu
# 10/2014
# David Rider
# 07/2016
# Add the option to supply your own INFO keys on the command line to use for splitting
use strict;
#use warnings;
#use Data::Dumper;
use Ge... | Steven-N-Hart/VariantDB_Challenge | submissions/StevenNHart/MongoDB_Sharded/scripts/gVCF_split.pl | Perl | mit | 7,214 |
#-----------------------------------------------------------
# svc2.pl
# Plugin for Registry Ripper; Access System hive file to get the
# services, display short format (hence "svc", shortened version
# of service.pl plugin); outputs info in .csv format
#
# Change history
# 20081129 - created
#
# Ref:
# ... | kefir-/autopsy | RecentActivity/release/rr-full/plugins/svc2.pl | Perl | apache-2.0 | 4,457 |
#
# 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/centreon/sql/mode/partitioning.pm | Perl | apache-2.0 | 5,516 |
#
# 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/hp/lefthand/snmp/mode/components/rcc.pm | Perl | apache-2.0 | 4,069 |
#!/usr/bin/env perl
use strict;
use warnings;
use FindBin;
use lib ("$FindBin::Bin/../../PerlLib");
use Fastq_reader;
my $usage = "usage: $0 file.fastq\n\n";
my $fastq_file = $ARGV[0] or die $usage;
main: {
my $fastq_reader = new Fastq_reader($fastq_file);
my $tab_tmp_file = "$fastq_file.tab";
open ... | HPCHub/trinityrnaseq | util/misc/sort_fastq.pl | Perl | bsd-3-clause | 1,186 |
#------------------------------------------------------------------------------
# File: Ricoh.pm
#
# Description: Ricoh EXIF maker notes tags
#
# Revisions: 03/28/2005 - P. Harvey Created
#
# References: 1) http://www.ozhiker.com/electronics/pjmt/jpeg_info/ricoh_mn.html
# 2) http://h... | opf-attic/ref | tools/fits/0.6.1/tools/exiftool/perl/lib/Image/ExifTool/Ricoh.pm | Perl | apache-2.0 | 15,021 |
package Module::Build::Version;
use strict;
use vars qw($VERSION);
$VERSION = '0.87'; ### XXX sync with version of version.pm below
use version 0.87;
our @ISA = qw(version);
1;
=head1 NAME
Module::Build::Version - DEPRECATED
=head1 DESCRIPTION
Module::Build now lists L<version> as a C<configure_requires> dependen... | Dokaponteam/ITF_Project | xampp/perl/lib/Module/Build/Version.pm | Perl | mit | 361 |
package Math::BigInt;
#
# "Mike had an infinite amount to do and a negative amount of time in which
# to do it." - Before and After
#
# The following hash values are used:
# value: unsigned int with actual value (as a Math::BigInt::Calc or similiar)
# sign : +,-,NaN,+inf,-inf
# _a : accuracy
# _p : precis... | leighpauls/k2cro4 | third_party/cygwin/lib/perl5/5.10/Math/BigInt.pm | Perl | bsd-3-clause | 151,391 |
#!/usr/bin/perl
# Simple script to generate a 302 HTTP redirect
print "Status: 302 Moved Temporarily\r\n";
print "Location: success200.html\r\n";
print "Content-type: text/html\r\n";
print "\r\n";
print <<HERE_DOC_END
<html><body>
This page should not be seen - it is a 302 redirect to another page.
The key aspect is ... | nwjs/chromium.src | third_party/blink/web_tests/http/tests/navigation/resources/redirect302.pl | Perl | bsd-3-clause | 506 |
package DDG::Goodie::URLDecode;
# ABSTRACT: Displays the decoded URL for a percent encoded uri
use DDG::Goodie;
use URI::Escape::XS qw(decodeURIComponent);
use warnings;
use strict;
my $trigger_words = qr#urlunescape|unescapeurl|(unescape url)|decodeurl|(decode url)|urldecode|(url decode)|(url unescape)#;
triggers q... | Faiz7412/zeroclickinfo-goodies | lib/DDG/Goodie/URLDecode.pm | Perl | apache-2.0 | 1,760 |
package ComplaintGroup::Tokenizer::Backend;
use ComplaintGroup::Tokenizer::Backend::KyotoCabinet;
use ComplaintGroup::Tokenizer::Backend::Redis;
sub new {
my $invocant = shift;
my $class = ref( $invocant ) || $invocant;
my $self = {
@_,
};
return bless $self, $class;
}
sub store ($$$) {
my ($self,$key,$va... | petermblair/libemail | complaintgroup/lib/ComplaintGroup/Tokenizer/Backend.pm | Perl | mit | 840 |
package Eldhelm::AI::NeuralNetwork::Neuron;
use strict;
use Carp qw(confess longmess);
use Data::Dumper;
use Eldhelm::AI::NeuralNetwork::TransferFunction;
my $eta = .2;
my $alpha = .5;
sub new {
my ($class, %args) = @_;
my $self = {%args};
bless $self, $class;
$self->{value} = 1 if $self->{bias} && !$self->{... | wastedabuser/eldhelm-platform | lib/Eldhelm/AI/NeuralNetwork/Neuron.pm | Perl | mit | 2,750 |
package O2::Template::Critic::Policy::RequireO2Tag;
use strict;
use Readonly;
use base 'O2::Template::Critic::Policy';
my %tags = (
input => 'input',
form => 'form',
a => ['link', 'popupWindow'],
html => 'header',
select => 'select',
option => 'option',
# link => 'addCssFile',
script => 'ad... | haakonsk/O2-Framework | lib/O2/Template/Critic/Policy/RequireO2Tag.pm | Perl | mit | 1,494 |
#!/usr/bin/env perl
# Author: Christiana Evelyn Johnson
# Copyright (c) 2014 Reno Bridgewire
# license: The MIT License (MIT)
use v5.10.0;
package Koike::Part;
use warnings;
use strict;
use Math::Trig;
use Clone 'clone';
BEGIN
{
use Exporter ();
our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
... | bridgewire/SillyGCodeProjects | perl/Koike/Part.pm | Perl | mit | 39,100 |
# back compatibility package for any code explicitly checking
# that the filehandle object is a Fh
package Fh;
$Fh::VERSION = '4.26';
1;
| jkb78/extrajnm | local/lib/perl5/Fh.pm | Perl | mit | 139 |
#!/usr/bin/env perl
#
# use fc-list to list all fonts and shows sorted font name
#
use strict;
my %hh = {};
my $ret = qx('fc-list');
my $cnt = 0;
while ( $ret =~ m/([^\n]+)\n/g ) {
my $line = $1;
#print $line,"\t";
if ($line =~ m/:\s*([^:]+)\s*:/ ) {
#print $1,"\n";
$hh{$1} ++;
}
$... | ericosur/myqt | qml/list_fontname.pl | Perl | mit | 389 |
# -*- perl -*-
# !!! DO NOT EDIT !!!
# This file was automatically generated.
package Net::Amazon::Validate::ItemSearch::us::MusicLabel;
use 5.006;
use strict;
use warnings;
sub new {
my ($class , %options) = @_;
my $self = {
'_default' => 'Music',
%options,
};
push @{$self->{_options... | carlgao/lenga | images/lenny64-peon/usr/share/perl5/Net/Amazon/Validate/ItemSearch/us/MusicLabel.pm | Perl | mit | 1,192 |
#!/usr/bin/perl -w
# get some sequences from a fasta file
use strict;
my $inf=shift || die "file of sequences we need?";
open(IN, $inf) || die "Can't open $inf";
my %need;
while (<IN>) {chomp; $need{$_}=1}
close IN;
my $fa=shift || die "fasta file?";
open(IN, $fa) || die "Can't iope $fa";
my $print;
while (<IN>) {
... | linsalrob/bioinformatics | bin/getseqs.pl | Perl | mit | 429 |
#!/usr/bin/env perl
=head1 NAME
sample from fasta
=head1 DESCRIPTION
This script takes a fasta file and a number of sequences (n) to sample. It writes n
randomly selected sequences to the output file.
This script can also clean the fasta file: Linebreaks in the sequence as well as empty
lines ... | nterhoeven/sequence_processing | sample_from_fasta.pl | Perl | mit | 4,603 |
/* Part of SWI-Prolog
Author: Jan Wielemaker
E-mail: J.Wielemaker@vu.nl
WWW: http://www.swi-prolog.org
Copyright (c) 2008-2015, University of Amsterdam
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permit... | TeamSPoon/logicmoo_workspace | docker/rootfs/usr/local/lib/swipl/library/http/http_hook.pl | Perl | mit | 3,673 |
package Hadouken::AsyncSocket;
use strict;
use warnings;
use utf8;
use Errno;
use AnyEvent;
use AnyEvent::HTTP;
use AnyEvent::HTTP::Request;
use AnyEvent::HTTP::Response;
use AnyEvent::Util;
use AnyEvent::Socket;
use AnyEvent::Handle;
use HTTP::Request::Common ();
use HTTP::Request;
use HTTP::Response;
use HTTP::Cook... | gitdek/hadouken | lib/Hadouken/AsyncSocket.pm | Perl | mit | 7,790 |
package Redismq::StrictSequenceTRQueue;
use strict;
use warnings;
use Moo;
use Redismq::RedisScript::PopSS;
extends 'Redismq::TimedRetryQueue';
has '+pop_s'
=> (
is => 'lazy',
default => sub { Redismq::RedisScript::PopSS->new(
redis => $_[0]->redis
);
},
);
1;
=head1 ... | pedrofrazao/smq | Redismq/StrictSequenceTRQueue.pm | Perl | mit | 615 |
# 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/CustomerAssetService/GetCustomerAssetRequest.pm | Perl | apache-2.0 | 1,059 |
package SDBM_File;
use strict;
use vars qw($VERSION @ISA);
require Tie::Hash;
require DynaLoader;
@ISA = qw(Tie::Hash DynaLoader);
$VERSION = "1.00" ;
bootstrap SDBM_File $VERSION;
1;
__END__
=head1 NAME
SDBM_File - Tied access to sdbm files
=head1 SYNOPSIS
use SDBM_File;
tie(%h, 'SDBM_File', 'Op.dbmx', O... | wolispace/cow_windows_server | oldcow_on_apache/perl/lib/SDBM_File.pm | Perl | apache-2.0 | 401 |
#
# 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 | storage/emc/isilon/snmp/mode/clusterusage.pm | Perl | apache-2.0 | 9,009 |
# 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/GoogleAdsService.pm | Perl | apache-2.0 | 1,921 |
# 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/HotelPerformanceViewService/GetHotelPerformanceViewRequest.pm | Perl | apache-2.0 | 1,073 |
package Google::Ads::AdWords::v201809::SharedCriterionService::mutateResponse;
use strict;
use warnings;
{ # BLOCK to scope variables
sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201809' }
__PACKAGE__->__set_name('mutateResponse');
__PACKAGE__->__set_nillable();
__PACKAGE__->__set_minOccurs();
__PACK... | googleads/googleads-perl-lib | lib/Google/Ads/AdWords/v201809/SharedCriterionService/mutateResponse.pm | Perl | apache-2.0 | 1,822 |
=pod
=head1 NAME
OSSL_STORE_LOADER,
OSSL_STORE_LOADER_fetch,
OSSL_STORE_LOADER_up_ref,
OSSL_STORE_LOADER_free,
OSSL_STORE_LOADER_get0_provider,
OSSL_STORE_LOADER_get0_properties,
OSSL_STORE_LOADER_is_a,
OSSL_STORE_LOADER_get0_description,
OSSL_STORE_LOADER_do_all_provided,
OSSL_STORE_LOADER_names_do_all,
OSSL_STORE_L... | openssl/openssl | doc/man3/OSSL_STORE_LOADER.pod | Perl | apache-2.0 | 16,226 |
#
# 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 | network/alcatel/omniswitch/snmp/mode/hardware.pm | Perl | apache-2.0 | 3,791 |
#!/usr/bin/perl
# Obeyed env variables:
# OXI_TEST_ONLY (Str: comma separated list of tests dirs/files)
# OXI_TEST_ALL (Bool: 1 = run all tests)
# OXI_TEST_COVERAGE (Bool: 1 = only run coverage tests)
# OXI_TEST_GITREPO (Str: Git repository)
# OXI_TEST_GITBRANCH (Str: Git branch, default b... | stefanomarty/openxpki | tools/docker-test/startup.pl | Perl | apache-2.0 | 8,337 |
package Paws::Rekognition::Eyeglasses;
use Moose;
has Confidence => (is => 'ro', isa => 'Num');
has Value => (is => 'ro', isa => 'Bool');
1;
### main pod documentation begin ###
=head1 NAME
Paws::Rekognition::Eyeglasses
=head1 USAGE
This class represents one of two things:
=head3 Arguments in a call to a se... | ioanrogers/aws-sdk-perl | auto-lib/Paws/Rekognition/Eyeglasses.pm | Perl | apache-2.0 | 1,503 |
=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/Component/Family/ComparaFamily.pm | Perl | apache-2.0 | 1,065 |
# OpenXPKI::Crypto::Profile::CRL.pm
# Written 2005 by Michael Bell for the OpenXPKI project
# Copyright (C) 2005-2006 by The OpenXPKI Project
=head1 Name
OpenXPKI::Crypto::Profile::CRL - cryptographic profile for CRLs.
=cut
use strict;
use warnings;
package OpenXPKI::Crypto::Profile::CRL;
use base qw(OpenXPKI::C... | durko/openxpki | core/server/OpenXPKI/Crypto/Profile/CRL.pm | Perl | apache-2.0 | 6,575 |
package Paws::ApiGateway::DeleteDeployment;
use Moose;
has DeploymentId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'deploymentId', required => 1);
has RestApiId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'restApiId', required => 1);
use MooseX::ClassAttribute;... | ioanrogers/aws-sdk-perl | auto-lib/Paws/ApiGateway/DeleteDeployment.pm | Perl | apache-2.0 | 2,082 |
package Paws::OpsWorksCM::AssociateNode;
use Moose;
has EngineAttributes => (is => 'ro', isa => 'ArrayRef[Paws::OpsWorksCM::EngineAttribute]', required => 1);
has NodeName => (is => 'ro', isa => 'Str', required => 1);
has ServerName => (is => 'ro', isa => 'Str', required => 1);
use MooseX::ClassAttribute;
... | ioanrogers/aws-sdk-perl | auto-lib/Paws/OpsWorksCM/AssociateNode.pm | Perl | apache-2.0 | 2,372 |
:- module(tmpbased_common, [module_to_addressfile/2], []).
common_directory('/tmp/'). % Directory where address files are saved
module_to_addressfile(Mod, AddrPath) :-
atom_concat(Mod,'_address',AddrFile),
common_directory(Dir),
atom_concat(Dir, AddrFile, AddrPath).
| leuschel/ecce | www/CiaoDE/ciao/library/actmods/tmpbased_common.pl | Perl | apache-2.0 | 293 |
package Video::Delay::Func;
# Pragmas.
use strict;
use warnings;
# Modules.
use Class::Utils qw(set_params);
use English qw(-no_match_vars);
use Error::Pure qw(err);
# Version.
our $VERSION = 0.07;
# Constructor.
sub new {
my ($class, @params) = @_;
# Create object.
my $self = bless {}, $class;
# Math functio... | tupinek/Video-Delay | Delay/Func.pm | Perl | bsd-2-clause | 3,357 |
#
# Copyright (c) 2011-14, Mitchell Cooper
#
# Evented::Object: a simple yet featureful base class event framework.
# https://github.com/cooper/evented-object
#
package Evented::Object::EventFire; # leave this package name the same FOREVER.
use warnings;
use strict;
use utf8;
use 5.010;
##########################
##... | gitpan/Evented-Object | lib/Evented/Object/EventFire.pm | Perl | bsd-3-clause | 4,203 |
# caldera-driver.pl
# Functions for printer drivers as generated by COAS
%paper_sizes = ( 'a4', 'A4',
'a3', 'A3',
'a5', 'A5',
'letter', 'US Letter',
'legal', 'Legal',
'ledger', 'Ledger' );
$driver_dir = "/etc/sysconfig/printers";
$base_driver = "$module_root_directory/base_coas_driver";
$webmin_windows_... | xtso520ok/webmin | lpadmin/old-caldera-driver.pl | Perl | bsd-3-clause | 9,911 |
# vim:ts=4:sw=4:expandtab
# © 2010-2012 Michael Stapelberg (see also: LICENSE)
use v5.14;
use utf8;
package RaumZeitChef 1.9.1;
# These modules are in core:
use File::Basename ();
# All these modules are not in core:
use AnyEvent;
use Moose;
use RaumZeitChef::IRC;
use RaumZeitChef::Config;
use RaumZeitChef::Log;
us... | raumzeitlabor/raumzeitchef-ircbot | lib/RaumZeitChef.pm | Perl | bsd-3-clause | 2,885 |
#!/usr/bin/env perl6
use v6;
sub get-slice(@list, $start, $end)
{
@list[$start - 1 ... $end - 1];
}
say get-slice(<a b c d e>, 2, 4);
=begin pod
=head1 NAME
P18 - Extract a slice from a list. Indices start at 1.
=end pod
# vim: ft=perl6
| Mitali-Sodhi/CodeLingo | Dataset/perl/P18-topo.pl | Perl | mit | 248 |
/*
Compile EBNF rules (==>) to BNF rules (=>).
- i.e. expanding out *, +, ?, 'or'
stephen.cresswell@tso.co.uk
*/
ebnf_to_bnf:-
retractall(_=>_),
remember(change),
rewrite_until_stable.
rewrite_until_stable:-
change,
!,
retractall(change),
rewrite_any,
rewrite_until_stable.
rewrite_until_stable.
rewr... | OpenTriply/YASGUI.YASQE | lib/grammar/util/rewrite.pl | Perl | mit | 1,873 |
package Paws::RDS::ReservedDBInstancesOfferingMessage;
use Moose;
has Marker => (is => 'ro', isa => 'Str');
has ReservedDBInstancesOfferings => (is => 'ro', isa => 'ArrayRef[Paws::RDS::ReservedDBInstancesOffering]', request_name => 'ReservedDBInstancesOffering', traits => ['NameInRequest',]);
has _request_id ... | ioanrogers/aws-sdk-perl | auto-lib/Paws/RDS/ReservedDBInstancesOfferingMessage.pm | Perl | apache-2.0 | 858 |
#!/usr/bin/perl -w
use strict;
my ($arch, $patfile, $infile, $outfile, $libdir, $thread_arch) = @ARGV;
if (not $arch or not $patfile or not $infile or not $outfile or not $libdir) {
die "Usage: $0 arch thread_arch pattern-file in-file out-file libdir [ threadarch ]";
}
$thread_arch ||= '';
open IN, "<$infile"
o... | google/copr-sundry | third_party/subtrees/perl/clean-manifest.pl | Perl | apache-2.0 | 800 |
# 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 | perl/lib/Lucy/Search/PolyCompiler.pm | Perl | apache-2.0 | 896 |
package Paws::IAM::GetAccessKeyLastUsedResponse;
use Moose;
has AccessKeyLastUsed => (is => 'ro', isa => 'Paws::IAM::AccessKeyLastUsed');
has UserName => (is => 'ro', isa => 'Str');
has _request_id => (is => 'ro', isa => 'Str');
1;
### main pod documentation begin ###
=head1 NAME
Paws::IAM::GetAccessKeyLas... | ioanrogers/aws-sdk-perl | auto-lib/Paws/IAM/GetAccessKeyLastUsedResponse.pm | Perl | apache-2.0 | 600 |
package #
Date::Manip::TZ::amjune00;
# 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/amjune00.pm | Perl | bsd-2-clause | 47,735 |
# !!!!!!! 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/Hst/NA.pl | Perl | mit | 485 |
{
"id": "test-container-force-killing",
"containers" : [{
"name": "busybox-with-tty",
"image": "busybox",
"command": ["/bin/sh"]
}],
"resource": {
"vcpu": 1,
"memory": 256
},
"tty": true
}
| gao-feng/hyper-public | hack/pods/busybox-tty.pod | Perl | apache-2.0 | 297 |
#-----------------------------------------------------------
# watp
#
# Change history:
# 20190506 - created
#
# Ref:
#
#
# copyright 2019 QAR,LLC
# Author: H. Carvey, keydet89@yahoo.com
#-----------------------------------------------------------
package watp;
use strict;
my %config = (hive => "Software... | sleuthkit/autopsy | thirdparty/rr-full/plugins/watp.pl | Perl | apache-2.0 | 1,482 |
# 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... | Dokaponteam/ITF_Project | xampp/perl/vendor/lib/DateTime/TimeZone/America/Nassau.pm | Perl | mit | 33,003 |
package HTTP::AppServer::Plugin::AllRetriever;
# Plugin for HTTP::AppServer that retrieves files from a document root.
# 2010 by Tom Kirchner
#use 5.010000;
use strict;
use warnings;
use IO::File;
use JSON;
use Path::Trim;
use HTTP::AppServer::Plugin;
use base qw(HTTP::AppServer::Plugin);
use File::MimeInfo;
our $VER... | btovar/cvmfs | test/mock_services/Services/httpd/HTTP/AppServer/Plugin/AllRetriever.pm | Perl | bsd-3-clause | 2,840 |
package Bot::Deadline;
use strict;
use warnings;
use Time::Piece;
use Time::Seconds;
use POSIX qw/ceil/;
sub new {
my ($class, %args) = @_;
return bless \%args, $class;
}
sub leftdays {
my ($self, $date) = @_;
my $event_date = localtime->strptime($date, '%Y-%m-%d');
my $current_date = localtime;
my $days = ceil... | akimacho/UUInfo_Bot | lib/Bot/Deadline.pm | Perl | mit | 402 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.