code stringlengths 2 1.05M | repo_name stringlengths 5 101 | path stringlengths 4 991 | language stringclasses 3
values | license stringclasses 5
values | size int64 2 1.05M |
|---|---|---|---|---|---|
#!/usr/bin/perl
use warnings;
use strict;
use Getopt::Long;
use FindBin;
use List::Util qw(max);
sub usage{
print <<USAGE;
$FindBin::Script [OPTIONS]
A script to get window statistics from
a gene positions file.
Assume the table contains four columns:
ID Chr Start End
Particu... | lileiting/gfat | projects/window_stats.pl | Perl | bsd-2-clause | 3,667 |
#!/usr/bin/perl
# Copyright (c) 2016, "ma16". All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of condi... | ma16/rpio | script/Max7219/count.pl | Perl | bsd-2-clause | 3,249 |
$os = lc($^O);
$isWindows = ($os =~ /win/);
#print "$isWindows\n";
clear($ARGV[0]);
sub clear {
my $file = $_[0];
if (-d $file) {
opendir(DIR, $file) || die ("could not open dir $file");
my @nextFiles = readdir(DIR);
closedir(DIR);
my $nextFile = "";
foreach $nextFile (@nextFiles) {
if (... | NCIP/catrip | codebase/scripts/clearcvs.pl | Perl | bsd-3-clause | 786 |
:- use_module('../metagol').
%% tell metagol to use BK
body_pred(mother/2).
body_pred(father/2).
%% metarules
metarule([P,Q],([P,A,B]:-[[Q,A,B]])).
metarule([P,Q,R],([P,A,B]:-[[Q,A,C],[R,C,B]])).
%% background knowledge
mother(ann,amy).
mother(ann,andy).
mother(amy,amelia).
mother(linda,gavin).
father(steve,amy).
fa... | metagol/metagol | examples/sequential1.pl | Perl | bsd-3-clause | 850 |
#! /usr/bin/perl
################################################################################
## NAME: kontroll-stats-gather-5.0.x_linux-x86.pl
## VERSION: 2.0.1
## DATE: 2008-12-01
## ID: $Id$
## WEBSITE: http://kontrollsoft.com
## EMAIL: kontact@kontrollsoft.com
## LICENSE: PLEASE REFER TO THE LICENSE.txt file bu... | ithoq/kontrollbase | bin/kontroll-stats-gather-5.0.x_linux-x86-2.0.1.pl | Perl | bsd-3-clause | 49,938 |
#
# ParsedVar.pm : part of the Mace toolkit for building distributed systems
#
# Copyright (c) 2010, Sunghwan Yoo, Charles Killian
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redi... | jojochuang/eventwave | perl5/Mace/Compiler/ParseTreeObject/ParsedVar.pm | Perl | bsd-3-clause | 2,425 |
package DDG::Goodie::Poker;
# ABSTRACT: Returns requested statistic for the requested poker hand
use DDG::Goodie;
triggers any => 'poker';
zci answer_type => "poker";
zci is_cached => 1;
primary_example_queries 'poker odds three of a kind';
secondary_example_queries 'probability poker flush';
description 'returns r... | Acidburn0zzz/zeroclickinfo-goodies | lib/DDG/Goodie/Poker.pm | Perl | apache-2.0 | 2,628 |
#!/usr/bin/perl
use strict;
use warnings;
use Digest::MD5 qw(md5_hex);
use File::Find;
use Getopt::Std;
use vars qw($opt_d $opt_o $opt_v $opt_h);
use Cwd qw(abs_path);
no warnings 'File::Find';
getopts('d:o:vh');
my $usage = "Usage: $0 -d \"directories\" -o output_file [-v]";
if (defined $opt_h) {
print "$usag... | 0x08e/SENginx | web-defacement.pl | Perl | bsd-3-clause | 1,563 |
package URI::tn3270;
use strict;
use warnings;
our $VERSION = '1.76';
use parent 'URI::_login';
sub default_port { 23 }
1;
| operepo/ope | client_tools/svc/rc/usr/share/perl5/vendor_perl/URI/tn3270.pm | Perl | mit | 128 |
# !!!!!!! 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/Cuneifor.pl | Perl | mit | 435 |
# 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 compl... | maksimatveev/centreon-plugins | apps/centreon/map/jmx/mode/sessions.pm | Perl | apache-2.0 | 3,858 |
#-----------------------------------------------------------
# wordwheelquery.pl
# For Windows 7
#
# Change history
# 20100330 - created
#
# References
# http://www.winhelponline.com/blog/clear-file-search-mru-history-windows-7/
#
# copyright 2010 Quantum Analytics Research, LLC
#----------------------------------... | APriestman/autopsy | thirdparty/rr-full/plugins/wordwheelquery.pl | Perl | apache-2.0 | 2,118 |
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
# This file is machine-generated by mktables from the Unicode
# database, Version 6.1.0. Any changes made here will be lost!
# !!!!!!! INTERNAL PERL USE ONLY !!!!!!!
# This file is for internal use by core Perl only. The format and even the
# name or existence of this ... | Dokaponteam/ITF_Project | xampp/perl/lib/unicore/lib/Blk/Phoenici.pl | Perl | mit | 423 |
#! /usr/bin/env perl
##**************************************************************
##
## Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
## University of Wisconsin-Madison, WI.
##
## Licensed under the Apache License, Version 2.0 (the "License"); you
## may not use this file except in compliance... | djw8605/htcondor | src/condor_tests/x_doublejeopardy.pl | Perl | apache-2.0 | 931 |
package HTML::Hard::Disk;
use strict;
use HTML::TokeParser;
use File::Find;
use File::Copy;
use vars qw($VERSION);
$VERSION = "0.2.1";
# Two utility functions
sub is_older
{
my $file1 = shift;
my $file2 = shift;
my @stat1 = stat($file1);
my @stat2 = stat($file2);
return ($stat1[9] <= $stat2[9])... | gitpan/HTML-Hard-Disk | lib/HTML/Hard/Disk.pm | Perl | mit | 7,508 |
package inc::MakeMaker;
use Moose;
use inc::MMHelper;
extends 'Dist::Zilla::Plugin::MakeMaker::Awesome';
around _build_MakeFile_PL_template => sub {
my $orig = shift;
my $self = shift;
my $tmpl = $self->$orig;
my $extra = inc::MMHelper::makefile_pl_extra;
$tmpl =~ s/^(WriteMakefile\()/$extra\n$1/m... | gitpan/Parse-Keyword | inc/MakeMaker.pm | Perl | mit | 629 |
#!/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/combineprotdists.by.length.compare.pl | Perl | mit | 20,674 |
use strict;
use warnings;
use LWP::UserAgent;
if (scalar @ARGV < 2 or scalar @ARGV > 3) {
print STDERR "Usage: $0 <host> <port> [cafile]\n";
exit 1;
}
my ($host, $port, $cafile) = @ARGV;
my $ua = LWP::UserAgent->new;
if (defined $cafile) {
eval {
$ua->ssl_opts(SSL_ca_file => $cafile);
};
i... | ouspg/trytls | stubs/perl-lwp/run.pl | Perl | mit | 782 |
#!/usr/bin/perl
# Written by Dr. Ken Lunde (lunde@adobe.com)
# Senior Computer Scientist 2, Adobe Inc.
# Version 2019-03-27
#
# This tool lists the glyphs in the specified font, which can be a
# CIDFont resource, a name-keyed Type 1 font (PFA), or an 'sfnt'
# (TrueType or OpenType) font. By default, glyphs are listed ... | adobe-type-tools/perl-scripts | glyph-list.pl | Perl | mit | 2,831 |
##############################################################################
# $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/distributions/Perl-Critic/lib/Perl/Critic/Policy/ControlStructures/ProhibitUnlessBlocks.pm $
# $Date: 2012-07-02 22:16:39 -0700 (Mon, 02 Jul 2012) $
# $Author: thaljef $
# ... | amidoimidazol/bio_info | Beginning Perl for Bioinformatics/lib/Perl/Critic/Policy/ControlStructures/ProhibitUnlessBlocks.pm | Perl | mit | 3,000 |
# Copyright (c) 2009-2015 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.
=pod
=head1 NAME
Date::Manip::Migration5to6 - how to upgrade from 5.xx to 6.00
=head1 SYNOPSIS
When upgrading from Date::Manip 5.xx to 6.00,... | jkb78/extrajnm | local/lib/perl5/Date/Manip/Migration5to6.pod | Perl | mit | 3,972 |
package GD::Barcode;
require Exporter;
use strict;
use vars qw($VERSION @ISA $errStr);
@ISA = qw(Exporter);
$VERSION=1.15;
my @aLoaded = ();
#------------------------------------------------------------------------------
# new (for GD::Barcode)
#--------------------------------------------------------------------------... | carlgao/lenga | images/lenny64-peon/usr/share/perl5/GD/Barcode.pm | Perl | mit | 4,909 |
# Copyright (c) 2010 - Action Without Borders
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, mo... | quile/if-framework | framework/lib/IF/Qualifier.pm | Perl | mit | 30,324 |
#!/usr/bin/env perl
use Catalyst::ScriptRunner;
Catalyst::ScriptRunner->run('OpenClimateClient', 'CGI');
1;
=head1 NAME
openclimateclient_cgi.pl - Catalyst CGI
=head1 SYNOPSIS
See L<Catalyst::Manual>
=head1 DESCRIPTION
Run a Catalyst application as a CGI script.
=head1 AUTHORS
Catalyst Contributors, see Catal... | blakecrosley/openclimate | OpenClimateClient/script/openclimateclient_cgi.pl | Perl | mit | 462 |
/*
verb(X, be) :-
root@X -- [be],
language@X -- english,
X <> [+invertsubj],
cat@THERE -- there,
NP <> [np, theta(exists)],
tverb(X, THERE, NP, 'VB').
*/
verb(X, be) :-
root@X -- [be],
language@X -- english,
-def@X,
-target@X,
PRED <> [+predicative, -zero, saturated, post... | AllanRamsay/dgParser | verbs.pl | Perl | mit | 2,593 |
package WWW::Livesite::Args;
use strict;
use Perl::Module;
use Data::OrderedHash;
use Tie::Hash;
use base qw(Tie::ExtraHash);
our $VERSION = 0;
our $Field_Delimiter = '&'; # Used when re-creating the query-string
our $Assignment_Operator = '='; # Used when re-creating the query-string
# ---
sub _unescape {
... | ryangies/lsn-data-hub | src/lib/WWW/Livesite/Args.pm | Perl | mit | 1,859 |
# You may distribute this module under the same terms as perl itself
# POD documentation - main docs before the code
=pod
=head1 NAME
Bio::EnsEMBL::Compara::Production::EPOanchors::RemoveAnchorOverlaps
=cut
=head1 SYNOPSIS
parameters
{input_analysis_id=> ?,method_link_species_set_id=> ?,input_method_link_specie... | adamsardar/perl-libs-custom | EnsemblAPI/ensembl-compara/modules/Bio/EnsEMBL/Compara/Production/EPOanchors/RemoveAnchorOverlaps.pm | Perl | apache-2.0 | 6,707 |
# Copyright 2020, Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | googleads/google-ads-perl | lib/Google/Ads/GoogleAds/V10/Resources/CombinedAudience.pm | Perl | apache-2.0 | 1,184 |
# Copyright 2020, Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | googleads/google-ads-perl | lib/Google/Ads/GoogleAds/V10/Resources/CustomerConversionGoal.pm | Perl | apache-2.0 | 1,158 |
=head1 Perl 6 Summary for 2005-12-05 through 2005-12-12
All~
Welcome to another Perl 6 summary. This week, like last, Parrot has produced the highest volume of emails. Fine by me, Parrot tends to be easiest to summarize. This summary is brought to you by Snow (the latest soft toy in the house). I would say you sh... | autarch/perlweb | docs/dev/perl6/list-summaries/2005/p6summary.2005-12-12.pod | Perl | apache-2.0 | 13,995 |
% CVS: $Id: essln.pl,v 1.3 1998/11/26 05:18:40 pets Exp $
% ESSLN - Version 2, written in standard Prolog
%======================================================================
% This file contains the code of ESSLN's version 2, which is written
% in standard Prolog (This version does not use the special built-in
% pr... | pschachte/groundness | benchmarks/essln.pl | Perl | apache-2.0 | 56,078 |
#!/usr/bin/perl
use Reader;
use Graph;
$runClosure = 1;
$runReduction = 1;
$indir = 'DATA/IN';
$outdir = 'DATA/OUT';
$doc = 'ABC19980108.1830.0711.tml';
$doc = 'ABC19980114.1830.0611.tml';
#$doc = 'ABC19980304.1830.1636.tml';
#$doc = 'APW19980227.0489.tml';
#$doc = 'wsj_0006.tml';
$in = @ARGV ? shift @ARGV : "$ind... | tarsqi/ttk | deprecated/sputlink/sputlink.pl | Perl | apache-2.0 | 1,665 |
#!/usr/bin/perl
# IBM_PROLOG_BEGIN_TAG
#
# Copyright 2003,2016 IBM International Business Machines Corp.
#
# 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.... | open-power/HTX | bin/hxediag/ib_info.pl | Perl | apache-2.0 | 7,348 |
=head1 LICENSE
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.
You may obta... | Ensembl/ensembl-hdf5 | scripts/query_eqtl_table.pl | Perl | apache-2.0 | 3,026 |
#
# (c) Jan Gehring <jan.gehring@gmail.com>
#
# vim: set ts=2 sw=2 tw=0:
# vim: set expandtab:
package Rex::Virtualization::LibVirt::clone;
use strict;
use warnings;
our $VERSION = '0.56.1'; # VERSION
use Rex::Logger;
use Rex::Commands::Run;
use Rex::Helper::Run;
use XML::Simple;
use Data::Dumper;
sub execute {
... | gitpan/Rex | lib/Rex/Virtualization/LibVirt/clone.pm | Perl | apache-2.0 | 613 |
#!/usr/bin/perl
use strict;
use Cwd;
use File::Spec;
use File::Basename;
use Cwd 'abs_path';
=head
=cut
# directory of where this script is called
my $cwd = dirname($0);
sub usage {
print "\nUsage: " . basename($0) . " [ INPUT-DIR ] [ OUTPUT-FILE ] ";
}
if ( @ARGV != 2 ) {
usage;
print "\n\n\tPlease ensure... | ikalatskaya/ISOWN | bin/generate_training_data_set.pl | Perl | apache-2.0 | 1,148 |
#!/usr/bin/env perl
#
# huebro.pl - Monitors, logs and restores Philips Hue light bulb states after a power failure.
#
# Copyright 2015 - Jan Fredrik Leversund <kluzz@radical.org>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# Yo... | kluzzebass/huebro | huebro.pl | Perl | apache-2.0 | 19,747 |
#
# 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/storage/storageaccount/mode/accountusedcapacity.pm | Perl | apache-2.0 | 7,212 |
package OpenXPKI::Server::Workflow::Activity::Tools::AppendCertificateMetadata;
use strict;
use base qw( OpenXPKI::Server::Workflow::Activity );
use OpenXPKI::Server::Context qw( CTX );
use OpenXPKI::Exception;
use OpenXPKI::Debug;
use OpenXPKI::Serialization::Simple;
use OpenXPKI::Server::Database; # to get AUTO_ID
... | oliwel/openxpki | core/server/OpenXPKI/Server/Workflow/Activity/Tools/AppendCertificateMetadata.pm | Perl | apache-2.0 | 4,851 |
#!/usr/local/ActivePerl-5.8/bin/perl
require "../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 => "tcp");
#add metric 0
$obj = Metric->new( rrdIndex =... | ktenzer/perfstat | misc/serialize/create/WindowsNT/tcp.pl | Perl | apache-2.0 | 3,222 |
#!/usr/bin/perl
#
# install.pl - Compile and install dotfiles
#
# Copyright (c) 2013 nandhp <nandhp@gmail.com>
# License: Simplified (2-clause) BSD, see COPYING.BSD
use File::Find;
use File::Spec;
use File::Basename;
use Text::ParseWords;
use Data::Dumper;
use warnings;
use strict;
my $COMMENTS = "#;!%'";
my $BASE = ... | nandhp/dotfiles | lib/install.pl | Perl | bsd-2-clause | 8,707 |
package Yahoo::SysBuilder::Modules;
use strict;
use warnings 'all';
use YAML qw();
use POSIX qw();
use Yahoo::SysBuilder::Utils qw(read_file is_xen_paravirt);
sub new {
my $class = shift;
my $version = ( POSIX::uname() )[2]; # release
my %config = (
'pcimap' => "/lib/modules/$version/modu... | eam/ysysbuilder | lib/Yahoo/SysBuilder/Modules.pm | Perl | bsd-3-clause | 3,787 |
#ExStart:1
use lib 'lib';
use strict;
use warnings;
use utf8;
use File::Slurp; # From CPAN
use JSON;
use AsposeStorageCloud::StorageApi;
use AsposeStorageCloud::ApiClient;
use AsposeStorageCloud::Configuration;
use AsposeEmailCloud::EmailApi;
use AsposeEmailCloud::ApiClient;
use AsposeEmailCloud::Configuration;
use A... | aspose-email/Aspose.Email-for-Cloud | Examples/Perl/Email-Properties/SetMessageProperty.pl | Perl | mit | 1,790 |
=head1 NAME
libavdevice - multimedia device handling library
=head1 DESCRIPTION
The libavdevice library provides a generic framework for grabbing from
and rendering to many common multimedia input/output devices, and
supports several input and output devices, including Video4Linux2,
VfW, DShow, and ALSA.
=head1 ... | devlato/kolibrios-llvm | contrib/sdk/sources/ffmpeg/doc/libavdevice.pod | Perl | mit | 841 |
/* Part of INCLP(R)
Author: Leslie De Koninck
E-mail: Leslie.DeKoninck@cs.kuleuven.be
WWW: http://www.swi-prolog.org
Copyright (c) 2006-2011, K.U. Leuven
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are perm... | TeamSPoon/logicmoo_workspace | docker/rootfs/usr/local/share/swipl/doc/packages/examples/inclpr/benchmarks.pl | Perl | mit | 6,017 |
# 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... | apache/avro | lang/perl/lib/Avro/DataFileWriter.pm | Perl | apache-2.0 | 6,424 |
package OpenXPKI::Server::Workflow::Activity::Tools::Approve;
use strict;
use base qw( OpenXPKI::Server::Workflow::Activity );
use OpenXPKI::Server::Context qw( CTX );
use OpenXPKI::Exception;
use OpenXPKI::Serialization::Simple;
use OpenXPKI::Debug;
use Workflow::Exception qw(configuration_error);
use English;
use ... | stefanomarty/openxpki | core/server/OpenXPKI/Server/Workflow/Activity/Tools/Approve.pm | Perl | apache-2.0 | 9,514 |
package Google::Ads::AdWords::v201406::UrlList;
use strict;
use warnings;
__PACKAGE__->_set_element_form_qualified(1);
sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201406' };
our $XML_ATTRIBUTE_CLASS;
undef $XML_ATTRIBUTE_CLASS;
sub __get_attr_class {
return $XML_ATTRIBUTE_CLASS;
}
use Class::S... | gitpan/GOOGLE-ADWORDS-PERL-CLIENT | lib/Google/Ads/AdWords/v201406/UrlList.pm | Perl | apache-2.0 | 1,340 |
=head1 LICENSE
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licen... | mjg17/ensembl | misc-scripts/surgery/SeqStoreConverter/vega/VBasicConverter.pm | Perl | apache-2.0 | 7,197 |
#------------------------------------------------------------------------------
# File: DarwinCore.pm
#
# Description: Darwin Core XMP tags
#
# Revisions: 2013-01-28 - P. Harvey Created
#
# References: 1) http://rs.tdwg.org/dwc/index.htm
#-------------------------------------------------------------------... | gitzain/SortPhotos | Image-ExifTool/lib/Image/ExifTool/DarwinCore.pm | Perl | mit | 13,246 |
# <@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/HTMLEval.pm | Perl | apache-2.0 | 5,458 |
package Moose::Meta::Method::Accessor::Native::String::prepend;
BEGIN {
$Moose::Meta::Method::Accessor::Native::String::prepend::AUTHORITY = 'cpan:STEVAN';
}
{
$Moose::Meta::Method::Accessor::Native::String::prepend::VERSION = '2.0602';
}
use strict;
use warnings;
use Moose::Role;
with 'Moose::Meta::Method::Acce... | leighpauls/k2cro4 | third_party/perl/perl/vendor/lib/Moose/Meta/Method/Accessor/Native/String/prepend.pm | Perl | bsd-3-clause | 873 |
#!/usr/bin/env perl
#
#
# Script to convert GERALD export files to SAM format.
#
#
#
########## License:
#
# The MIT License
#
# Original SAMtools version 0.1.2 copyright (c) 2008-2009 Genome Research Ltd.
# Modifications from version 0.1.2 to 2.0.0 copyright (c) 2010 Illumina, Inc.
#
# Permission is hereby granted, fr... | wanpinglee/scissors | src/outsources/samtools/misc/export2sam.pl | Perl | mit | 15,255 |
#line 1
package Module::Install::Fetch;
use strict;
use Module::Install::Base ();
use vars qw{$VERSION @ISA $ISCORE};
BEGIN {
$VERSION = '1.04';
@ISA = 'Module::Install::Base';
$ISCORE = 1;
}
sub get_file {
my ($self, %args) = @_;
my ($scheme, $host, $path, $file) =
$args{url} =~ m|^(\w+)://(... | xiaokai-wang/nginx-discovery | modules/nginx-upsync-module/test/inc/Module/Install/Fetch.pm | Perl | bsd-2-clause | 2,455 |
#
# 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... | chjp2046/fbthrift | thrift/lib/perl/lib/Thrift/Protocol.pm | Perl | apache-2.0 | 9,942 |
#!/usr/bin/env perl
use strict;
use warnings;
use constant N_GRP => 6;
my $chcnt = 0;
my $idlen = 0;
my $numlen = 4;
my @ch;
my @hr;
while (<>) {
chomp;
# printf "LINE: {%s}\n", $_;
unless (/^\s*(\w+)\s*:\s*(.*)\|$/) {
next;
}
my ($id, $line) = ($1, $2);
if (uc($id) =~ /STATISTICS/) {
if (@hr != 0) {
... | zeroxia/mystery | archive/2013/perl/tabify.pl | Perl | mit | 1,726 |
#!/usr/bin/perl
use strict;
use warnings;
my $file = shift or die("Usage: $0 <Matrix_file_U133.gz>\n");
my $u133dict = "/net/isi-dcnl/ifs/user_data/jochan/Group/qgong/hg19/Annotation/HG-U133A_2.na34.annot.txt";
my %u133gs;
open IN, $u133dict or die($!);
while (<IN>) {
chomp;
my @a = split;
$u133gs{ $a[0] ... | littlegq/PerlPrograms | U133AMatrixGeneSymbolConvertor.pl | Perl | mit | 654 |
#!/usr/bin/perl
use strict;
use warnings;
use autodie;
use lib 'lib';
use RUM::SpliceSignals;
my @donor = RUM::SpliceSignals->donor;
my @donor_rev = RUM::SpliceSignals->donor_rev;
my @acceptor = RUM::SpliceSignals->acceptor;
my @acceptor_rev = RUM::SpliceSignals->acceptor_rev;
# Written by Gregory R. ... | itmat/rum | util/sam2xs-flag.pl | Perl | mit | 3,004 |
#!/usr/bin/perl -w
use strict;
use Getopt::Long;
use FindBin qw($Bin $Script);
use File::Basename qw(basename dirname);
use Data::Dumper;
&usage if @ARGV<1;
#open IN,"" ||die "Can't open the file:$\n";
#open OUT,"" ||die "Can't open the file:$\n";
sub usage {
my $usage = << "USAGE";
Description of ... | zhoujj2013/lncfuntk | bin/NetworkConstruction/CalcConfidentScore.pl | Perl | mit | 2,378 |
# -------------------------------------------------------------------------------------
# Author: Sourabh S Joshi (cbrghostrider); Copyright - All rights reserved.
# For email, run on linux (perl v5.8.5):
# perl -e 'print pack "H*","736f75726162682e732e6a6f73686940676d61696c2e636f6d0a"'
... | cbrghostrider/Hacking | HackerRank/Algorithms/RegEx/hackerrankLanguage.pl | Perl | mit | 910 |
package Module::Build::Config;
use strict;
use warnings;
our $VERSION = '0.4216';
$VERSION = eval $VERSION;
use Config;
sub new {
my ($pack, %args) = @_;
return bless {
stack => {},
values => $args{values} || {},
}, $pack;
}
sub get {
my ($self, $key) = @_;
return $self->{values}{$key} if ref($se... | jkb78/extrajnm | local/lib/perl5/Module/Build/Config.pm | Perl | mit | 1,102 |
# -----------------------------------------------
# DevOps::Cli::Config
# -----------------------------------------------
# Description:
# the config command
#
#
# -----------------------------------------------
# Copyright Chris Williams 2013
# -----------------------------------------------
package DevOps::Cli::C... | chrisjwilliams/devops | DevOps/Cli/Config.pm | Perl | mit | 2,273 |
package TCManager::Chart;
use Mojo::Base 'Mojolicious::Controller';
use Date::Calc qw/Time_to_Date Date_to_Time Add_Delta_Days/;
use Mojo::JSON;
#
#
#
sub cTotalsHistory {
my $s = shift;
my ($empID) = $s->param("empID") =~ /(\d+)/;
my $oldestPeriod = $s->currentPeriod() - 27;
my %totals;
for my... | ryanzachry/timeclock | manager/lib/TCManager/Chart.pm | Perl | mit | 4,761 |
# Copyright 2020, Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | googleads/google-ads-perl | lib/Google/Ads/GoogleAds/V10/Services/CustomConversionGoalService/MutateCustomConversionGoalsRequest.pm | Perl | apache-2.0 | 1,243 |
=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... | andrewyatz/public-plugins | lucene/modules/EnsEMBL/Web/Factory/Search.pm | Perl | apache-2.0 | 2,008 |
#
# 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/alcatel/pss/1830/snmp/plugin.pm | Perl | apache-2.0 | 1,372 |
#
# 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/acmepacket/snmp/mode/listrealm.pm | Perl | apache-2.0 | 3,035 |
#
# 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/voip/asterisk/snmp/mode/externalcalls.pm | Perl | apache-2.0 | 8,821 |
#!/usr/bin/env perl
# Licensed to Elasticsearch under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not ... | qwerty4030/elasticsearch | dev-tools/es_release_notes.pl | Perl | apache-2.0 | 7,516 |
=head1 LICENSE
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Copyright [2016] EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a ... | danstaines/ensembl | modules/Bio/EnsEMBL/Mapper/IndelCoordinate.pm | Perl | apache-2.0 | 3,340 |
# 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/CampaignDraftService/ListCampaignDraftAsyncErrorsRequest.pm | Perl | apache-2.0 | 1,155 |
=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/TextSequence/Markup/VariationConservation.pm | Perl | apache-2.0 | 1,528 |
# 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/UserDataService/UploadUserDataResponse.pm | Perl | apache-2.0 | 1,136 |
#
# 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 | centreon/plugins/backend/http/curlconstants.pm | Perl | apache-2.0 | 969 |
package Google::Ads::AdWords::v201402::CampaignFeedService::mutateResponse;
use strict;
use warnings;
{ # BLOCK to scope variables
sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201402' }
__PACKAGE__->__set_name('mutateResponse');
__PACKAGE__->__set_nillable();
__PACKAGE__->__set_minOccurs();
__PACKAGE... | gitpan/GOOGLE-ADWORDS-PERL-CLIENT | lib/Google/Ads/AdWords/v201402/CampaignFeedService/mutateResponse.pm | Perl | apache-2.0 | 1,807 |
#! /usr/bin/perl
# Author: BaconKwan
# Email: pkguan@genedenovo.com
# Version: 1.0
# Create date:
# Usage:
use utf8;
use strict;
use warnings;
my ($base_count, $read_count, $q20_count, $gc_count, $N_count) = (0, 0, 0, 0);
open IN, "gzip -cd $ARGV[0] |" || die $!;
while(<IN>){
my $base = <IN>;
<IN>;
my $quality ... | BaconKwan/Perl_programme | utility/stat_gz.pl | Perl | apache-2.0 | 1,248 |
=head1 LICENSE
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.
You may obta... | muffato/ensembl | modules/Bio/EnsEMBL/DBSQL/ArchiveStableIdAdaptor.pm | Perl | apache-2.0 | 47,794 |
use strict;
use warnings;
package Boilerplater::Type::Object;
use base qw( Boilerplater::Type );
use Boilerplater::Parcel;
use Boilerplater::Util qw( verify_args );
use Scalar::Util qw( blessed );
use Carp;
our %new_PARAMS = (
const => undef,
specifier => undef,
indirection => 1,
parcel =... | robertkrimen/Search-Kino03 | boilerplater/lib/Boilerplater/Type/Object.pm | Perl | apache-2.0 | 2,152 |
#!/usr/bin/perl
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/usr/targeting/common/xmltohb/create_ekb_targattr.pl $
#
# OpenPOWER HostBoot Project
#
# Contributors Listed Below - COPYRIGHT 2017
# [+] International Business Machines Corp.
#
#
# Licensed under the Apache License, Ve... | Over-enthusiastic/hostboot | src/usr/targeting/common/xmltohb/create_ekb_targattr.pl | Perl | apache-2.0 | 6,913 |
:- module(lqsort, [test/2], [lazy]).
:- use_module(library(prolog_sys), [statistics/2]).
:- use_module(library(lists), [append/3]).
:- use_module(library('lazy/lazy_lib'), _).
:- use_module(library(random)).
:- lazy qsort/2.
qsort([X|L], R) :-
partition(L, X, L1, L2),
qsort(L2, R2),
qsort(L1, R1),
append... | leuschel/ecce | www/CiaoDE/ciao/contrib/lazy/examples/lqsort.pl | Perl | apache-2.0 | 746 |
package VMOMI::VmfsMountFault;
use parent 'VMOMI::HostConfigFault';
use strict;
use warnings;
our @class_ancestors = (
'HostConfigFault',
'VimFault',
'MethodFault',
);
our @class_members = (
['uuid', undef, 0, ],
);
sub get_class_ancestors {
return @class_ancestors;
}
sub get_class_members {
... | stumpr/p5-vmomi | lib/VMOMI/VmfsMountFault.pm | Perl | apache-2.0 | 454 |
#!/usr/bin/env perl
# vim:ts=4:sw=4:expandtab
#
# © 2010-2011 Michael Stapelberg and contributors
#
# syntax: ./complete-run.pl --display :1 --display :2
# to run the test suite on the X11 displays :1 and :2
# use 'Xdummy :1' and 'Xdummy :2' before to start two
# headless X11 servers
#
use strict;
use warnings;
use EV... | freexploit/i3wm | testcases/complete-run.pl | Perl | bsd-3-clause | 5,957 |
#!/usr/bin/perl
# Copyright (c) AB_Life 2011
# Writer: xuxiong <xuxiong19880610@163.com>
# Program Date: 2011.
# Modifier: xuxiong <xuxiong19880610@163.com>
# Last Modified: 2011.
use strict;
use Data::Dumper;
use FindBin qw($Bin $Script);
use File::Basename qw(basename dirname);
use List::Util qw(... | ablifedev/ABLIRC | ABLIRC/bin/Clip-Seq/MC/random_IP/random_IP.pl | Perl | mit | 1,896 |
/* Part of Extended Libraries for SWI-Prolog
Author: Edison Mera Menendez
E-mail: efmera@gmail.com
WWW: https://github.com/edisonm/xlibrary
Copyright (C): 2014, Process Design Center, Breda, The Netherlands.
All rights reserved.
Redistribution and use in source and bin... | TeamSPoon/logicmoo_workspace | packs_lib/xlibrary/prolog/atomics_atom.pl | Perl | mit | 3,521 |
#!/usr/bin/perl -w
my $USAGE = "Usage: $0 #-expected-vnodes logfile [logfiles ...]";
my @ids;
my $nv = 0;
die "$USAGE\n" if scalar @ARGV < 2;
my $expected = shift;
die "$USAGE\n#-expected-vnodes must be numeric.\n" unless $expected =~ /^\d+$/;
for $i (0 .. $#ARGV) {
dofile ($ARGV[$i], $i);
}
@ids = sort { $a->[... | sit/dht | tst/stable.pl | Perl | mit | 3,237 |
package Eldhelm::Util::CommandLine;
=pod
=head1 NAME
Eldhelm::Util::CommandLine - A utility class for parsing script arguments.
=head1 SYNOPSIS
use strict;
use Eldhelm::Util::CommandLine;
my $cmd = Eldhelm::Util::CommandLine->new(
argv => \@ARGV,
items => [ 'exmplain what should be listed here' ],
... | wastedabuser/strezov-tool | lib/Eldhelm/Util/CommandLine.pm | Perl | mit | 2,284 |
#
# Copyright (C) 2012 cogroo <cogroo@cogroo.org>
#
# 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 ... | cogroo/cogroo4 | cogroo-eval/scripts/teste.pl | Perl | apache-2.0 | 796 |
package Zonemaster::LDNS::RRList;
use strict;
use warnings;
1;
=head1 NAME
Zonemaster::LDNS::RR - common baseclass for all classes representing resource records.
=head1 SYNOPSIS
my $rrlist = $packet->all;
=head1 INSTANCE METHODS
=over
=item count()
Returns the number of items in the list.
=item push($rr)... | dotse/net-ldns | lib/Zonemaster/LDNS/RRList.pm | Perl | bsd-2-clause | 482 |
#------------------------------------------------------------------------------
# File: ja.pm
#
# Description: ExifTool Japanese language translations
#
# Notes: This file generated automatically by Image::ExifTool::TagInfoXML
#----------------------------------------------------------------------------... | wilg/mini_exiftool_vendored | vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/ja.pm | Perl | mit | 207,422 |
package SDBM_File;
use strict;
use warnings;
require Tie::Hash;
require XSLoader;
our @ISA = qw(Tie::Hash);
our $VERSION = "1.14";
our @EXPORT_OK = qw(PAGFEXT DIRFEXT PAIRMAX);
use Exporter "import";
XSLoader::load();
1;
__END__
=head1 NAME
SDBM_File - Tied access to sdbm files
=head1 SYNOPSIS
use Fcntl; ... | operepo/ope | bin/usr/lib/perl5/core_perl/SDBM_File.pm | Perl | mit | 3,540 |
#!/usr/bin/perl -w
use strict;
use encoding 'utf8';
binmode(STDIN, ":utf8");
binmode(STDOUT, ":utf8");
binmode(STDERR, ":utf8");
print "[+] Checking whether docker is running.\n";
my $service_status = `systemctl status docker.service`;
#print $service_status;
if($service_status =~ m/Active: inactive/) {
print ... | xunzhang/dynet | examples/tensorboard/rundocker.perl | Perl | apache-2.0 | 471 |
package HTTP::AppServer;
# Simple CRUD server for JSON objects and plain files.
# 2010 by Tom Kirchner
#
# routes:
# POST /create = erzeugt neues JSON-Dokument, liefert UUId zurueck
# GET /read/<uuid> = liefert JSON-Dokument oder Fehler zurueck
# POST /update/<uuid> = aendert JSON-Dokument (erzeugt neue Revisio... | btovar/cvmfs | test/mock_services/HTTP/AppServer.pm | Perl | bsd-3-clause | 6,913 |
=head1 NAME
perlfaq4 - Data Manipulation
=head1 DESCRIPTION
This section of the FAQ answers questions related to manipulating
numbers, dates, strings, arrays, hashes, and miscellaneous data issues.
=head1 Data: Numbers
=head2 Why am I getting long decimals (eg, 19.9499999999999) instead of the numbers I should be ... | Dokaponteam/ITF_Project | xampp/perl/lib/perlfaq4.pod | Perl | mit | 89,487 |
#use strict;
# usage perl harness.pl [testNum]
# where testNum is an integer from 1 to 41
# testNum may also be a list of integers denoting tests to be run
# ommitting testNum will lead to all tests being run
#
# this harness outputs the results to the file results.html as well
# as reporting them to... | Distrotech/xerces-c | tests/src/xinclude/harness.pl | Perl | apache-2.0 | 7,327 |
% Loads all tests. Names are relative to CWD.
:- load_files([
tests/link,
tests/header,
tests/list_item,
tests/block,
tests/span_link,
tests/span,
tests/html,
tests/file
], [ if(not_loaded) ]).
| rla/prolog-markdown | tests/tests.pl | Perl | mit | 227 |
package Win32::Service;
#
# Service.pm
# Written by Douglas_Lankshear@ActiveWare.com
#
# subsequently hacked by Gurusamy Sarathy <gsar@cpan.org>
#
$VERSION = '0.06';
require Exporter;
require DynaLoader;
require Win32 unless defined &Win32::IsWinNT;
die "The Win32::Service module works only on Windows NT" unless Wi... | amidoimidazol/bio_info | Beginning Perl for Bioinformatics/lib/Win32/Service.pm | Perl | mit | 2,206 |
use strict;
use CXGN::MasonFactory;
my $m = CXGN::MasonFactory->new();
$m->exec("/homepage/oldhighlights.mas");
| solgenomics/sgn | cgi-bin/oldhighlights.pl | Perl | mit | 116 |
:- module(main, []).
% Catch uncaught errors/warnings and shut down
% when they occur.
:- dynamic(loading/1).
:- asserta(loading(0)).
% The first hook is for detecting
% loading state.
user:message_hook(Term, _, _):-
( Term = load_file(start(Level, _))
-> asserta(loading(Level))
; ( Term = load_f... | rla/expenses | main.pl | Perl | mit | 3,285 |
use strict;
use warnings;
package DashboardPassport;
use lib ".", "..", "../..";
use base qw(Passport);
use Crypt::CBC;
use Digest::MD5 qw(md5_base64);
use POSIX qw(strftime);
use DashboardUtils qw(:constants);
use Data::Dumper;
use Log;
sub getLoginParams {
my $self = shift;
my ($additional_params) = @_;
... | facascante/slimerp | fifs/web/dashboard/DashboardPassport.pm | Perl | mit | 7,616 |
use strict;
use warnings;
# handler for custom size format eg: v32x16, 32x2
NODE SZ => {terminal => 1, mapto => 'size',
handler => sub{
local($_)=@_;
my $first = '';
s/^([vp]\d+x?)// and $first = $1;
again: s/(\d+)x(\d+)/$1*$2/e and goto again;
uc $first.$_;
}
};
NODE ENCODEDIN => {terminal => 1, lowe... | MahdiSafsafi/opcodesDB | db/aarch64/nodes.pl | Perl | mit | 519 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.