repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
joshlory/droplet | vendor/ace/mode-matlab.js | 21661 | ace.define("ace/mode/matlab_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var MatlabHighlightRules = funct... | mit |
helenagarcia90/moodle-29 | blog/rsslib.php | 11498 | <?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle ... | gpl-3.0 |
toprockdk/battlemaster | node_modules/@angular/common/src/facade/errors.js | 3170 | var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
/**
* Convenience to throw an Error with 'unimplemented' as t... | mit |
mlloewen/chinhama | wp-content/plugins/updraftplus/vendor/rackspace/php-opencloud/lib/OpenCloud/ObjectStore/Constants/UrlType.php | 947 | <?php
/**
* Copyright 2012-2014 Rackspace US, Inc.
*
* 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 la... | gpl-2.0 |
mattijsbliek/record-client | webpack/webpack-isomorphic-tools.js | 3598 | var WebpackIsomorphicToolsPlugin = require('webpack-isomorphic-tools/plugin');
// see this link for more info on what all of this means
// https://github.com/halt-hammerzeit/webpack-isomorphic-tools
module.exports = {
// when adding "js" extension to asset types
// and then enabling debug mode, it may cause a we... | mit |
IT2-sotuken/telma | platforms/ios/cordova/node_modules/lodash-node/compat/functions/partial.js | 1272 | /**
* Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
* Build: `lodash modularize exports="node" -o ./compat/`
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investiga... | apache-2.0 |
alexmandujano/django | tests/admin_inlines/urls.py | 183 | from __future__ import absolute_import
from django.conf.urls import patterns, include
from . import admin
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
)
| bsd-3-clause |
fabien-d/electron | chromium_src/chrome/common/print_messages.cc | 1470 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/common/print_messages.h"
#include "base/basictypes.h"
#include "base/strings/string16.h"
#include "ui/gfx/geometry/size.h"
PrintMsg... | mit |
nds32/gcc | libjava/classpath/javax/swing/text/html/MultiAttributeSet.java | 5343 | /* MultiAttributeSet.java -- Multiplexes between a set of AttributeSets
Copyright (C) 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software ... | gpl-2.0 |
murilobr/spring-boot | spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/PropertyPlaceholderAutoConfigurationTests.java | 2853 | /*
* Copyright 2012-2014 the original author or authors.
*
* 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 ap... | apache-2.0 |
feiskyer/kubernetes | staging/src/k8s.io/apimachinery/pkg/util/sets/string.go | 4801 | /*
Copyright The Kubernetes Authors.
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, softw... | apache-2.0 |
lassemon/eportfolio | node_modules/protractor/lib/driverProviders/mock.js | 1721 | /*
* This is an mock implementation of the Driver Provider.
* It returns a fake webdriver and never actually contacts a selenium
* server.
*/
var webdriver = require('selenium-webdriver'),
q = require('q');
/**
* @constructor
*/
var MockExecutor = function() {
this.driver_ = null;
};
/**
* @param {!webdri... | mit |
barcadictni/cdnjs | ajax/libs/dustjs-helpers/1.3.0/dust-helpers.js | 20263 | /*! dustjs-helpers - v1.3.0
* https://github.com/linkedin/dustjs-helpers
* Copyright (c) 2014 Aleksander Williams; Released under the MIT License */
(function(dust){
//using the built in logging method of dust when accessible
var _log = dust.log ? function(mssg) { dust.log(mssg, "INFO"); } : function() {};
function i... | mit |
justdotJS/rowboat | frontend/node_modules/babel-preset-env/node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-runtime/node_modules/core-js/library/modules/_same-value.js | 190 | // 7.2.9 SameValue(x, y)
module.exports = Object.is || function is(x, y) {
// eslint-disable-next-line no-self-compare
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
};
| mit |
lenw/ansible-modules-core | cloud/rackspace/rax_cbs_attachments.py | 6622 | #!/usr/bin/python
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed... | gpl-3.0 |
SrGio/GestorFCT | vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php | 5427 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Form\Extension\Core\EventListener;
use Symfony\Compon... | mit |
Dignifiedquire/babel | packages/babel/test/fixtures/transformation/es6.modules-amd/export-specifier-default/actual.js | 36 | var a = 1;
export { a as default };
| mit |
elitetestnik/Back-track | libraries/domit/xml_saxy_parser.php | 25299 | <?php
/**
* SAXY is a non-validating, but lightweight and fast SAX parser for PHP, modelled on the Expat parser
* @package saxy-xmlparser
* @subpackage saxy-xmlparser-main
* @version 1.0
* @copyright (C) 2004 John Heinstein. All rights reserved
* @license http://www.gnu.org/copyleft/lesser.html LGPL License
* @author J... | apache-2.0 |
pierreg/tensorflow | tensorflow/core/framework/op_segment.cc | 2984 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
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 a... | apache-2.0 |
Samurais/kubernetes | pkg/apiserver/errors.go | 2585 | /*
Copyright 2014 The Kubernetes Authors All rights reserved.
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 ag... | apache-2.0 |
minhv1993/hatcai | concrete/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/OneToManyPersister.php | 8753 | <?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS B... | mit |
Bucklash/turnerdesign-master | components/com_content/views/categories/tmpl/default_items.php | 2551 | <?php
/**
* @package Joomla.Site
* @subpackage com_content
*
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
$class = ' class="first"';
JHtml::_('bootstrap.tool... | gpl-2.0 |
dcurado/mycenae | vendor/golang.org/x/text/internal/number/itoa.go | 2260 | // Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// TODO: use build tags once a low-level public API has been established in
// package strconv.
package number
const (
digits = "0123456789abcdefghijklmnopqr... | gpl-3.0 |
ento/homebrew | Library/Formula/ccze.rb | 1656 | class Ccze < Formula
desc "Robust and modular log colorizer"
homepage "https://packages.debian.org/wheezy/ccze"
url "https://mirrors.ocf.berkeley.edu/debian/pool/main/c/ccze/ccze_0.2.1.orig.tar.gz"
mirror "https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/c/ccze/ccze_0.2.1.orig.tar.gz"
sha256 "8... | bsd-2-clause |
asianventure1/comnews2 | administrator/components/com_media/layouts/toolbar/deletemedia.php | 493 | <?php
/**
* @package Joomla.Administrator
* @subpackage com_media
*
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
$title = JText::_('JTOOLBAR_DELETE');
?>
<bu... | gpl-2.0 |
yoanngern/newsroom14 | vendor/doctrine/dbal/lib/Doctrine/DBAL/SQLParserUtils.php | 8598 | <?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS B... | mit |
soltysh/kubernetes | staging/src/k8s.io/code-generator/cmd/informer-gen/generators/versioninterface.go | 3381 | /*
Copyright 2016 The Kubernetes Authors.
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, ... | apache-2.0 |
beannguyen/viettravel | vendor/phpspec/phpspec/src/PhpSpec/Formatter/Html/ReportPassedItem.php | 1111 | <?php
/*
* This file is part of PhpSpec, A php toolset to drive emergent
* design by specification.
*
* (c) Marcello Duarte <marcello.duarte@gmail.com>
* (c) Konstantin Kudryashov <ever.zet@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with t... | apache-2.0 |
fanchlerouge/moodle | admin/tool/monitor/classes/rule.php | 8761 | <?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle ... | gpl-3.0 |
saimasarifa/ftflFinalproject | vendor/phpunit/phpunit/tests/Regression/GitHub/1216.phpt | 720 | --TEST--
GH-1216: PHPUnit bootstrap must take globals vars even when the file is specified in command line
--FILE--
<?php
$_SERVER['argv'][1] = '--configuration';
$_SERVER['argv'][2] = dirname(__FILE__).'/1216/phpunit1216.xml';
$_SERVER['argv'][3] = '--debug';
$_SERVER['argv'][4] = '--bootstrap';
$_SERVER['argv'][5] =... | mit |
gaearon/cdnjs | ajax/libs/angular-gantt/1.2.6/angular-gantt-labels-plugin.js | 6309 | /*
Project: angular-gantt v1.2.6 - Gantt chart component for AngularJS
Authors: Marco Schweighauser, Rémi Alvergnat
License: MIT
Homepage: http://www.angular-gantt.com
Github: https://github.com/angular-gantt/angular-gantt.git
*/
(function(){
'use strict';
angular.module('gantt.labels', ['gantt', 'gantt.labels.... | mit |
jplabs/wptasks | wp-content/themes/canvas/functions/js/shortcode-generator/shortcodes/related.js | 291 | wooShortcodeMeta={
attributes:[
{
label:"Limit",
id:"limit",
help:"Number of posts to show (default: 5)."
},
{
label:"Image",
id:"image",
help:"Thumbnail size, 0 = off (default: 0)."
}
],
disablePreview:true,
defaultContent:"",
shortcode:"related_posts"
}; | gpl-2.0 |
xnox/linaro-gcc-4.7-src | gcc/testsuite/g++.dg/expr/call1.C | 216 | namespace NS_1 {
struct A {};
struct foo {};
}
namespace NS_2 {
template <typename T> void foo(T);
template <typename T>
void bar() {
NS_1::A a;
NS_2::foo(a);
}
template void bar<int>();
}
| gpl-2.0 |
nouveller/cdnjs | ajax/libs/codemirror/5.0.0/mode/haxe/haxe.js | 17064 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // A... | mit |
sunny2601/spree | sample/db/samples/product_option_types.rb | 469 | Spree::Sample.load_sample("products")
size = Spree::OptionType.find_by_presentation!("Size")
color = Spree::OptionType.find_by_presentation!("Color")
ror_baseball_jersey = Spree::Product.find_by_name!("Ruby on Rails Baseball Jersey")
ror_baseball_jersey.option_types = [size, color]
ror_baseball_jersey.save!
spree_ba... | bsd-3-clause |
davidxkr/active_merchant | lib/active_merchant/billing/gateways/net_registry.rb | 6377 | module ActiveMerchant
module Billing
# Gateway for netregistry.com.au.
#
# Note that NetRegistry itself uses gateway service providers. At the
# time of this writing, there are at least two (Quest and Ingenico).
# This module has only been tested with Quest.
#
# Also note that NetRegistry... | mit |
podgorskiy/TinyFEM | libs/boost/boost/variant/detail/apply_visitor_binary.hpp | 4654 | //-----------------------------------------------------------------------------
// boost variant/detail/apply_visitor_binary.hpp header file
// See http://www.boost.org for updates, documentation, and revision history.
//-----------------------------------------------------------------------------
//
// Copyright (c) 2... | mit |
taydakov/cdnjs | ajax/libs/qoopido.js/3.6.4/polyfill/array/indexof.js | 403 | /*!
* Qoopido.js library v3.6.4, 2015-4-29
* https://github.com/dlueth/qoopido.js
* (c) 2015 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(r){window.qoopido.register("polyfill/array/indexof",r)}(function(r,o,t,i,n,e,f){"use strict";return Array.prototype.indexOf||(Array.prototype.indexOf=function(r){for(var... | mit |
optimusThePrime/recrutementTest | vendor/symfony/symfony/src/Symfony/Component/Serializer/Normalizer/CustomNormalizer.php | 1878 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Serializer\Normalizer;
/**
* @author Jordi Boggiano ... | mit |
odooo/design | vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/SecurityExtensionTest.php | 4363 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bundle\SecurityBundle\Tests\DependencyInjection;
use Symfony\Bu... | mit |
0111001101111010/it325_website | assignments/midterm/bower_components/jquery-ui/ui/minified/i18n/jquery.ui.datepicker-tr.min.js | 806 | /*! jQuery UI - v1.10.4 - 2014-02-16
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(e){e.datepicker.regional.tr={closeText:"kapat",prevText:"<geri",nextText:"ileri>",currentText:"bugün",monthNames:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran... | apache-2.0 |
mycrazydog/ui-drupal | sites/all/modules/jquery_update/replace/ui/ui/jquery.ui.effect-fade.js | 558 | /*!
* jQuery UI Effects Fade 1.10.2
* http://jqueryui.com
*
* Copyright 2013 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/fade-effect/
*
* Depends:
* jquery.ui.effect.js
*/
(function( $, undefined ) {
$.effects.effect.fad... | gpl-2.0 |
kautzar/drpp4 | wp-content/plugins/easypay/includes/gateways/lib/Stripe/Balance.php | 291 | <?php
class Stripe_Balance extends Stripe_SingletonApiResource
{
/**
* @param string|null $apiKey
*
* @return Stripe_Balance
*/
public static function retrieve($apiKey=null)
{
$class = get_class();
return self::_scopedSingletonRetrieve($class, $apiKey);
}
}
| gpl-2.0 |
dsapala/websocket-proxy | Godeps/_workspace/src/github.com/gorilla/websocket/examples/chat/main.go | 878 | // Copyright 2013 The Gorilla WebSocket Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"flag"
"log"
"net/http"
"text/template"
)
var addr = flag.String("addr", ":8080", "http service address")
var homeTem... | apache-2.0 |
jonathan-fielding/cdnjs | ajax/libs/yui/3.7.3/loader-base/loader-base-debug.js | 94496 | YUI.add('loader-base', function (Y, NAME) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLER... | mit |
rajdeepd/docker | volume/drivers/adapter.go | 1153 | package volumedrivers
import "github.com/docker/docker/volume"
type volumeDriverAdapter struct {
name string
proxy *volumeDriverProxy
}
func (a *volumeDriverAdapter) Name() string {
return a.name
}
func (a *volumeDriverAdapter) Create(name string) (volume.Volume, error) {
err := a.proxy.Create(name)
if err !=... | apache-2.0 |
krousey/kubernetes | vendor/github.com/docker/docker/client/image_inspect.go | 878 | package client
import (
"bytes"
"encoding/json"
"io/ioutil"
"net/http"
"github.com/docker/docker/api/types"
"golang.org/x/net/context"
)
// ImageInspectWithRaw returns the image information and its raw representation.
func (cli *Client) ImageInspectWithRaw(ctx context.Context, imageID string) (types.ImageInspe... | apache-2.0 |
Slaffka/moodel | install/lang/ur/langconfig.php | 1302 | <?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle... | gpl-3.0 |
AlexTMjugador/mtasa-blue | vendor/google-breakpad/src/third_party/protobuf/protobuf/src/google/protobuf/compiler/cpp/cpp_helpers.cc | 13142 | // Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// http://code.google.com/p/protobuf/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistri... | gpl-3.0 |
jojimt/kubernetes | pkg/util/config/config_test.go | 2844 | /*
Copyright 2014 The Kubernetes Authors.
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, ... | apache-2.0 |
Dirbaio/btcd | cmd/showblock/showblock.go | 7596 | // Copyright (c) 2013 Conformal Systems LLC.
// Copyright (c) 2015 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package main
import (
"encoding/binary"
"errors"
"fmt"
"io"
"os"
"path/filepath"
"strconv"
"github.com/btcsuite/btclog"
... | isc |
Roasbeef/btcd | blockchain/example_test.go | 3891 | // Copyright (c) 2014-2016 The btcsuite developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package blockchain_test
import (
"fmt"
"math/big"
"os"
"path/filepath"
"github.com/roasbeef/btcd/blockchain"
"github.com/roasbeef/btcd/chaincfg"
"github.com/roa... | isc |
dwalldorf/owTracker | src/AppBundle/Exception/NotFoundException.php | 263 | <?php
namespace AppBundle\Exception;
use Symfony\Component\HttpFoundation\Response;
class NotFoundException extends ApiBaseException{
/**
* @return int
*/
public function getHttpStatusCode() {
return Response::HTTP_NOT_FOUND;
}
} | isc |
openstreetmap/iD | test/spec/validations/missing_tag.js | 4376 | describe('iD.validations.missing_tag', function () {
var context;
beforeEach(function() {
context = iD.coreContext().assetPath('../dist/').init();
});
function createWay(tags) {
var n1 = iD.osmNode({id: 'n-1', loc: [4,4]});
var n2 = iD.osmNode({id: 'n-2', loc: [4,5]});
... | isc |
heroku/heroku-pg | test/commands/killall.js | 1023 | 'use strict'
/* global describe it beforeEach afterEach */
const cli = require('heroku-cli-util')
const expect = require('unexpected')
const nock = require('nock')
const proxyquire = require('proxyquire')
const db = {id: 1, name: 'postgres-1', plan: {name: 'heroku-postgresql:hobby-dev'}}
const fetcher = () => {
ret... | isc |
ibc/MediaSoup | worker/deps/libwebrtc/libwebrtc/modules/congestion_controller/rtp/transport_feedback_adapter.cc | 9748 | /*
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | isc |
sjsyrek/maryamyriameliamurphies.js | source/tuple/func.js | 6471 | /**
* maryamyriameliamurphies.js
* A library of Haskell-style morphisms ported to ES2015 JavaScript.
*
* tuple/func.js
*
* @file Tuple functions.
* @license ISC
*/
/** @module tuple/func */
import {Tuple} from '../tuple';
import {error} from '../error';
/**
* The `unit` object, an empty tuple. Note that `i... | isc |
heroku/heroku-apps | test/commands/ps/stop.js | 795 | 'use strict'
/* globals commands describe beforeEach it */
const cli = require('heroku-cli-util')
const nock = require('nock')
const cmd = commands.find((c) => c.topic === 'ps' && c.command === 'stop')
describe('ps:stop', function () {
beforeEach(() => {
cli.mockConsole()
nock.cleanAll()
})
it('stops a... | isc |
evilsoft/crocks | src/core/isMap.spec.js | 988 | const test = require('tape')
const isFunction = require('./isFunction')
const unit = require('./_unit')
const isMap = require('./isMap')
test('isMap predicate function', t => {
t.ok(isFunction(isMap), 'is a function')
t.ok(isMap(new Map()), 'returns true when passed a Map')
t.notOk(isMap([]), 'returns false ... | isc |
xdv/ripple-lib-java | ripple-bouncycastle/src/main/java/org/ripple/bouncycastle/crypto/tls/DTLSReliableHandshake.java | 14103 | package org.ripple.bouncycastle.crypto.tls;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
import org.ripple.bouncycastle.util.Integers;
class DTLSReliableHandshake
{
private final static int MAX_RECEIVE_AHEAD ... | isc |
leighmcculloch/vagrant-docker-compose | lib/vagrant-docker-compose/cap/linux/docker_compose_get_info.rb | 793 | module VagrantPlugins
module DockerComposeProvisioner
module Cap
module Linux
module DockerComposeGetInfo
def self.docker_compose_get_info(machine, config)
comm = machine.communicate
kernel_name = ""
comm.execute("uname -s") do |type, data|
... | isc |
generalhenry/nodeschool-interactive | lib/proxy.js | 227 | var httpProxy = require('http-proxy');
var proxy = module.exports = httpProxy.createProxyServer({});
proxy.on('error', handleProxyError);
function handleProxyError(err) {
console.log('proxy error');
console.error(err);
} | isc |
isaacs/st | test/dot-common.js | 846 | const path = require('path')
const http = require('http')
const request = require('request')
const { test, teardown } = require('tap')
const st = require('../st.js')
let address
let server
const opts = {
dot: global.dot,
path: path.join(__dirname, 'fixtures', '.dotted-dir')
}
const mount = st(opts)
const req =... | isc |
beloblotskiy/avb-scite | SciTEStartup.lua | 137 | dofile (props["SciteDefaultHome"].."\\tools\\COMMON.lua")
dofile (props["SciteDefaultHome"].."\\tools\\highlighting_identical_text.lua") | isc |
vfil/rps | test/LogStore-specs.js | 554 | 'use strict';
var expect = require('chai').expect;
var LogStore = require('../src/js/domain/logStore.js');
describe('LogStore specs:', function () {
it('#record should record gesture for player', function () {
var logStore = LogStore();
logStore.record('p1', 'rock');
logStore.record('p1',... | isc |
mapbox/minjur | minjur-mp.cpp | 8010 |
#include <cstdlib>
#include <cstring>
#include <getopt.h>
#include <iostream>
#include <memory>
#include <string>
#include <osmium/area/assembler.hpp>
#include <osmium/area/multipolygon_collector.hpp>
#include <osmium/handler/check_order.hpp>
#include <osmium/io/any_input.hpp>
#include <osmium/memory/buffer.hpp>
#inc... | isc |
dennis95/dennix | kernel/src/keyboard.cpp | 5868 | /* Copyright (c) 2016, 2017, 2019, 2020 Dennis Wölfing
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ... | isc |
nolo-metrics/nolo-librato | lib/nolo-librato/version.rb | 81 | module Nolo # :nodoc:
module Librato # :nodoc:
VERSION = '0.1.5'
end
end
| isc |
shoegazer/shuffle-guru | src/actions/loginGenius.js | 37 | export const loginGenius = () => ({}) | isc |
a-hansen/aon | src/test/java/com/comfortanalytics/aon/SerializationTest.java | 4178 | package com.comfortanalytics.aon;
import java.math.BigDecimal;
import java.math.BigInteger;
import org.junit.Test;
import org.junit.jupiter.api.Assertions;
public class SerializationTest {
final Aobj largeObj = makeLargeObj();
@Test
public void testAon() {
byte[] buf = Aon.aonBytes(... | isc |
larvit/larvitproduct | test/00test.js | 62270 | /* eslint-disable require-jsdoc */
'use strict';
const elasticsearch = require('elasticsearch');
const uuidValidate = require('uuid-validate');
const Intercom = require('larvitamintercom');
const LUtils = require('larvitutils');
const log = new (new LUtils()).Log();
const {ProductLib, Product} = require(__dirname + '/... | isc |
pcarrier/joker | joker-api0/src/main/java/help/joker/api0/Joker.java | 2639 | package help.joker.api0;
import java.util.function.Function;
import java.util.function.Supplier;
public class Joker {
/**
* Invoke a {@link ThrowingSupplier}; if it throws a checked {@link Throwable}, wrap it into
* a {@link SilencedThrowable}.
*/
public static <T> T rte(ThrowingSupplier<T> sup... | isc |
transientlunatic/otter | otter/otter.py | 4100 | # -*- coding: utf-8 -*-
#import uuid
import os
from .html import *
from configparser import ConfigParser
from jinja2 import Template, Environment, FileSystemLoader
from pkg_resources import resource_string, resource_stream, resource_filename
default_config = resource_string(__name__, 'otter.conf')
class Otter():
... | isc |
HyVar/hyvar-rec | SpecificationGrammar/SpecificationGrammarLexer.py | 8072 | # Generated from SpecificationGrammar.g4 by ANTLR 4.7.2
from antlr4 import *
from io import StringIO
from typing.io import TextIO
import sys
def serializedATN():
with StringIO() as buf:
buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\"")
buf.write("\u00cc\b\1\4\2\t\2\4\3\t\3\4\4\t... | isc |
hayeswise/ingress-intel-total-conversion | dist/plugins/score-cycle-times.user.js | 4602 | // ==UserScript==
// @id iitc-plugin-score-cycle-times@jonatkins
// @name IITC plugin: Show scoreboard cycle/checkpoint times
// @category Info
// @version 0.1.0.20170225.54902
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL https://gi... | isc |
piranna/usrbinenv | server.js | 1943 | #!/bin/node
var ignoreEnvironment = false
var endLinesWithNull = false
var env = process.env
const NODEJS_BIN = 'node'
function unset(key)
{
if(env[key] == undefined)
{
console.error('Unknown environment key:',key)
process.exit(2)
}
env[key] = undefined
}
var argv = process.argv.slice(2)
// Opti... | isc |
martinezp/marionette-project | assets/js/app/about/show/show_view.js | 225 | ContactManager.module("AboutApp.Show", function(Show, ContactManager, Backbone, Marionette, $, _){
Show.AboutMessage = Marionette.ItemView.extend({
template: "ContactManager.AboutApp.Show.Templates.AboutMessage"
});
}); | isc |
akileez/toolz | src/date/quarterOfTheYear.js | 331 | function quarter (date) {
var month = date.getMonth() + 1
return (Math.ceil(month / 3))
}
module.exports = quarter
// Original Code - mout.js
// function quarter(date){
// var month = date.getMonth();
// if (month < 3) return 1;
// if (month < 6) return 2;
// if (month < 9) return 3;
// retu... | isc |
jrick/btcd | blockchain/indexers/txindex.go | 18136 | // Copyright (c) 2016 The btcsuite developers
// Copyright (c) 2016-2017 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package indexers
import (
"errors"
"fmt"
"github.com/decred/dcrd/blockchain"
"github.com/decred/dcrd/chaincfg/chainhash... | isc |
hitsl/bouser_db | bouser_db/__init__.py | 182 | # -*- coding: utf-8 -*-
from bouser_db import interfaces, service
from bouser_db import service
__author__ = 'mmalkov'
def make(config):
return service.DataBaseService(config) | isc |
kisom/goutils | cmd/stealchain-server/main.go | 2365 | package main
import (
"crypto/rand"
"crypto/tls"
"crypto/x509"
"encoding/hex"
"encoding/pem"
"flag"
"fmt"
"io/ioutil"
"net"
"os"
"github.com/kisom/goutils/die"
)
func main() {
cfg := &tls.Config{}
var sysRoot, listenAddr, certFile, keyFile string
var verify bool
flag.StringVar(&sysRoot, "ca", "", "pr... | isc |
elisee/space-crew | typings/main.d.ts | 380 | /// <reference path="main\ambient\express\express.d.ts" />
/// <reference path="main\ambient\mime\mime.d.ts" />
/// <reference path="main\ambient\node\node.d.ts" />
/// <reference path="main\ambient\serve-static\serve-static.d.ts" />
/// <reference path="main\ambient\socket.io-client\socket.io-client.d.ts" />
/// ... | isc |
io7m/jcanephora | com.io7m.jcanephora.fake/src/main/java/com/io7m/jcanephora/fake/FakeTimerQuery.java | 1699 | /*
* Copyright © 2016 <code@io7m.com> http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ... | isc |
danielschmitz/angular2-codigos | 03/AngularPanel/app/app.component.ts | 191 | import {Component} from '@angular/core';
import {Panel} from './container'
@Component({
selector: 'my-app',
templateUrl: 'app/app.component.html'
})
export class AppComponent { } | isc |
Hdom/cfm | classes/apts.php | 1693 | <?php
/**
* Created by PhpStorm.
* User: DennysO
* Date: 3/30/2015
* Time: 8:49 PM
*/
class apts {
private $con;
private $email;
public function __construct($email){
$this->con = new SQL();
$this->email = $email;
}
public function get_d_apts($d, $m, $y, $did)
{
$u... | mit |
hyperwallet/java-sdk | src/test/java/com/hyperwallet/clientsdk/model/HyperwalletReceiptPaginationOptionsTest.java | 807 | package com.hyperwallet.clientsdk.model;
import java.util.Date;
/**
* @author fkrauthan
*/
public class HyperwalletReceiptPaginationOptionsTest extends BaseModelTest<HyperwalletReceiptPaginationOptions> {
@Override
protected HyperwalletReceiptPaginationOptions createBaseModel() {
HyperwalletReceipt... | mit |
cscorley/swindle | setup.py | 538 | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='swindle',
version='0.0.1',
description='A LISP-like that throws away parentheses for Python-style indentation.',
long... | mit |
MarinMarinov/Databases | HW11EntityFramework/HW11EntityFramework/T1CreateDbContextForNorthwind/Category.cs | 1188 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.... | mit |
bdosorio/forest | src/common/forest-engine.spec.js | 3705 | describe('ForestEngine', function () {
var ForestEngine;
beforeEach(module('forest.engine'));
beforeEach(inject(function (_ForestEngine_) {
ForestEngine = _ForestEngine_;
}));
it('should have a list of trees', function () {
expect(ForestEngine.trees).toBeDefined();
});
it('... | mit |
AxioDL/PathShagged | Runtime/CGameHintInfo.hpp | 1335 | #pragma once
#include <string_view>
#include <vector>
#include "Runtime/IFactory.hpp"
#include "Runtime/RetroTypes.hpp"
namespace metaforce {
class CGameHintInfo {
public:
struct SHintLocation {
CAssetId x0_mlvlId;
CAssetId x4_mreaId;
TAreaId x8_areaId = kInvalidAreaId;
CAssetId xc_stringId;
SH... | mit |
JohnWhite80/list_grid_view | library/src/com/handmark/pulltorefresh/library/PullToRefreshBase.java | 46410 | /*******************************************************************************
* Copyright 2011, 2012 Chris Banes.
*
* 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.apac... | mit |
kerrizor/chatty_exceptions | lib/chatty_exceptions.rb | 265 | require "chatty_exceptions/version"
require 'mactts'
class Exception
attr_reader :initial_message
def initialize(message)
@initial_message = message
super
end
def to_s
Mac::TTS.say(@initial_message, :victoria)
@initial_message
end
end
| mit |
FlorianGrimm/Hefezopf | HefezopfWebHost/Properties/AssemblyInfo.cs | 266 | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("HefezopfWebHost")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("75451911-112e-4840-b847-dcd4a3328fd5")]
| mit |
32leaves/SDSL | execution/web/app/DatGUI.rb | 1039 | module DatGUI
class Folder
def initialize(parent)
@parent = parent
end
def add_folder(label)
folder = `self.parent.addFolder(label)`
Folder.new folder
end
def open
`self.parent.open()`
end
def close
`self.parent.close()`
end
def add(ref, id, cons... | mit |
Hades1996/Proyectos-U | NetBeansProjects/sist_distr/common/src/es/uned/common/Mensaje.java | 426 | package es.uned.common;
import java.io.Serializable;
public class Mensaje implements Serializable {
private static final long serialVersionUID = 6473037307367070437L;
private String cuerpo, remitente;
public Mensaje(String cuerpo, String remitente) {
this.cuerpo = cuerpo;
this.remitente = remitente;
}
p... | mit |
carsonfarmer/mappie | sources.py | 28916 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Map manager classes for mappie
Various classes for downloading, managing, and storing webmap images from
various webmap servers. Currently, mappie contains classes for downloading
and playing with OpenStreetMap map tiles, 3 types of Stamen map tiles, and
4 types of G... | mit |
TinEye/tineyeservices_python | tineyeservices/mobileengine_request.py | 1115 | # -*- coding: utf-8 -*-
# Copyright (c) 2018 TinEye. All rights reserved worldwide.
from .matchengine_request import MatchEngineRequest
class MobileEngineRequest(MatchEngineRequest):
"""
Class to send requests to a MobileEngine API.
Adding an image using data:
>>> from tineyeservices import Mob... | mit |
RisenEsports/RisenEsports.github.io | Console/app/node_modules/webpack-config/src/ConfigFactory.js | 1373 | import {
isFunction,
isObject
} from 'lodash';
import Config from './Config';
import ConfigList from './ConfigList';
import { env } from './ConfigArgv';
/**
* @private
* @type {WeakMap}
*/
const CONTAINER = new WeakMap();
/**
* @class
*/
class ConfigFactory {
/**
* @constructor
* @param {Co... | mit |
Azure/azure-sdk-for-java | sdk/resourcemanagerhybrid/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/implementation/SignedInUsersClientImpl.java | 20189 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.authorization.implementation;
import com.azure.core.annotation.ExpectedResponses;
import com.azure.core.annotation.Get;
import c... | mit |
ndlib/hesburgh_errors | server/app/controllers/application_controller.rb | 347 | class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
include HesburghErrors::ControllerErrorTrapping
unless Rails.configuration.consider_all_requests_local
setup_c... | mit |