repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
roblayton/mouse-arrow | node_modules/grunt-contrib-jshint/node_modules/jshint/src/state.js | 493 | "use strict";
var state = {
syntax: {},
reset: function () {
this.tokens = {
prev: null,
next: null,
curr: null
};
this.option = {};
this.ignored = {};
this.directive = {};
this.jsonMode = false;
this.jsonWarnings = [];
this.lines = [];
this.tab = "";
this.cache = {}; // Node.JS doesn'... | bsd-3-clause |
BrennanConroy/corefx | src/System.Data.SqlClient/tests/Tools/TDS/TDS/ColInfo/TDSColumnStatus.cs | 1011 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
namespace Microsoft.SqlServer.TDS.ColInfo
{
/// <summary>
/// Status of the column
/// <... | mit |
unsiloai/syntaxnet-ops-hack | tensorflow/contrib/learn/python/learn/estimators/multioutput_test.py | 1696 | # Copyright 2016 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 applica... | apache-2.0 |
yxcoin/yxcoin | src/boost_1_55_0/boost/multiprecision/concepts/mp_number_archetypes.hpp | 7882 | ///////////////////////////////////////////////////////////////
// Copyright 2012 John Maddock. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_
#ifndef BOOST_MATH_CONCEPTS_ER_HPP
#define BOOST_MATH_CONCEPTS_ER_HPP
#i... | mit |
dhoehna/corefx | src/System.Data.SqlClient/src/Microsoft/SqlServer/Server/ExtendedClrTypeCode.cs | 3329 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//------------------------------------------------------------------------------
namespace Microsoft.SqlServer.Se... | mit |
eltondias/SistemaGalenica | vendor/zendframework/zendframework/library/Zend/Session/SaveHandler/MongoDBOptions.php | 5447 | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace... | bsd-3-clause |
dougminhlam/kaldi-hugo-cms-template | src/js/cms-preview-templates/post.js | 667 | import React from "react";
import format from "date-fns/format";
export default class PostPreview extends React.Component {
render() {
const {entry, widgetFor} = this.props;
return <div className="mw6 center ph3 pv4">
<h1 className="f2 lh-title b mb3">{ entry.getIn(["data", "title"])}</h1>
<div ... | mit |
rlugojr/cdnjs | ajax/libs/qoopido.js/3.2.7/support/element/canvas/todataurl/png.js | 629 | /*!
* Qoopido.js library v3.2.7, 2014-5-19
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(t){window.qoopido.register("support/element/canvas/todataurl/png",t,["../../../../support","../todataurl"])}(function(t,e,a,n,o,r){"use strict";var s=t.support;return s... | mit |
GrantBarnard/PixelsCoffeeCode_Theme | templates/comments.php | 3994 | <?php
if (post_password_required()) {
return;
}
?>
<section id="comments">
<?php if (have_comments()) : ?>
<h3><?php printf(_n('One Response to “%2$s”', '%1$s Responses to “%2$s”', get_comments_number(), 'roots'), number_format_i18n(get_comments_number()), get_the_title()); ?></h3... | mit |
jackdoyle/cdnjs | ajax/libs/qoopido.js/3.3.9/jquery/plugin/emerge.js | 660 | /*!
* Qoopido.js library v3.3.9, 2014-6-3
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(e){window.qoopido.register("jquery/plugins/emerge",e,["../../dom/element/emerge","jquery"])}(function(e,r,t,n,o){"use strict";var c,i=e.jquery||o.jQuery,u=t.pop(),g="eme... | mit |
esod/paulsodlaw | sites/all/libraries/ckeditor/_samples/php/standalone.php | 2253 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
-->
<html xmlns="http://www.w3.org/1999/xhtml">
... | gpl-2.0 |
PrimozGodec/Primerjalna_knjizevnost | node_modules/bower/node_modules/mout/number/toUInt.js | 324 |
/**
* "Convert" value into a 32-bit unsigned integer.
* IMPORTANT: Value will wrap at 2^32.
*/
function toUInt(val){
// we do not use lang/toNumber because of perf and also because it
// doesn't break the functionality
return val >>> 0;
}
module.exports = toUInt... | mit |
richpolis/sf2MalosHabitos | vendor/jms/security-extra-bundle/JMS/SecurityExtraBundle/Tests/Fixtures/Annotation/NonSecurityAnnotation.php | 748 | <?php
/*
* Copyright 2011 Johannes M. Schmitt <schmittjoh@gmail.com>
*
* 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 requir... | mit |
raphael1981/joomlacmc1234 | administrator/components/com_media/views/imageslist/tmpl/default.php | 817 | <?php
/**
* @package Joomla.Administrator
* @subpackage com_media
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
?>
<?php if (count($this->images) > 0 || coun... | gpl-2.0 |
karim89/mtat | lib/requirejs.php | 5384 | <?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 |
dgoodwin/origin | cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/vendor/github.com/gogo/protobuf/test/oneof3/combos/unsafeboth/onepb_test.go | 12710 | // Code generated by protoc-gen-gogo.
// source: combos/unsafeboth/one.proto
// DO NOT EDIT!
/*
Package one is a generated protocol buffer package.
It is generated from these files:
combos/unsafeboth/one.proto
It has these top-level messages:
Subby
SampleOneOf
*/
package one
import testing "testing"
import math_... | apache-2.0 |
jepeng-miao/jepeng | wp-admin/includes/class-wp-screen.php | 34417 | <?php
/**
* Screen API: WP_Screen class
*
* @package WordPress
* @subpackage Administration
* @since 4.4.0
*/
/**
* Core class used to implement an admin screen API.
*
* @since 3.3.0
*/
final class WP_Screen {
/**
* Any action associated with the screen. 'add' for *-add.php and *-new.php screens. Empty ot... | apache-2.0 |
xiuzhifu/go | src/net/http/triv.go | 3236 | // 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.
// +build ignore
package main
import (
"bytes"
"expvar"
"flag"
"fmt"
"io"
"log"
"net/http"
"os"
"os/exec"
"strconv"
"sync"
)
// hello world, the w... | bsd-3-clause |
Swatinem/jsdelivr | files/wordpress/3.8/js/colorpicker.js | 29083 | // ===================================================================
// Author: Matt Kruse <matt@mattkruse.com>
// WWW: http://www.mattkruse.com/
//
// NOTICE: You may use this code for any purpose, commercial or
// private, without any further permission from the author. You may
// remove this notice from your final... | mit |
dmonllao/moodle | lib/classes/event/completion_defaults_updated.php | 3067 | <?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 |
aina1205/virtualliverf1 | vendor/plugins/attachment_fu/test/validation_test.rb | 1623 | require File.expand_path(File.join(File.dirname(__FILE__), 'test_helper'))
class ValidationTest < Test::Unit::TestCase
def test_should_invalidate_big_files
@attachment = SmallAttachment.new
assert !@attachment.valid?
assert @attachment.errors.on(:size)
@attachment.size = 2000
assert !@attach... | bsd-3-clause |
freedesktop-unofficial-mirror/gstreamer-sdk__gcc | libjava/classpath/java/security/MessageDigestSpi.java | 5659 | /* MessageDigestSpi.java --- The message digest service provider interface.
Copyright (C) 1999, 2005 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 Fre... | gpl-2.0 |
jameskumar/go | src/runtime/zgoos_plan9.go | 336 | // generated by gengoos.go using 'go generate'
package runtime
const theGoos = `plan9`
const goos_android = 0
const goos_darwin = 0
const goos_dragonfly = 0
const goos_freebsd = 0
const goos_linux = 0
const goos_nacl = 0
const goos_netbsd = 0
const goos_openbsd = 0
const goos_plan9 = 1
const goos_solaris = 0
const g... | bsd-3-clause |
wzzlYwzzl/kdashboard | Godeps/_workspace/src/k8s.io/kubernetes/pkg/client/cache/listers.go | 18243 | /*
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 |
JoelPub/wordpress-amazon | blog/wp-admin/network/privacy.php | 267 | <?php
/**
* Network Privacy administration panel.
*
* @package WordPress
* @subpackage Multisite
* @since 4.9.0
*/
/** Load WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' );
require( ABSPATH . 'wp-admin/privacy.php' );
| gpl-2.0 |
jhoffjann/aufeinwort | ghost/node_modules/validator/test/validator.test.js | 24348 | var node_validator = require('../lib'),
util = require('util')
Validator = new node_validator.Validator(),
ValidatorError = node_validator.ValidatorError,
assert = require('assert');
function dateFixture() {
return {
tomorrow: new Date(Date.now() + 86400000)
, yesterday: new Date(Date... | mit |
krichter722/gcc | gcc/testsuite/g++.dg/ext/complex7.C | 126 | // { dg-options "" }
class A
{
static const _Complex double x = 1.0 + 2.0i;
};
// { dg-prune-output "constexpr. needed" }
| gpl-2.0 |
kiki091/LintasEbtke | vendor/symfony/console/Exception/InvalidOptionException.php | 508 | <?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\Console\Exception;
/**
* Represents an incorrect opt... | gpl-3.0 |
driebit/symfony1 | lib/plugins/sfPropelPlugin/lib/vendor/propel/Propel.php | 27256 | <?php
/*
* $Id: Propel.php 1691 2010-04-19 22:01:20Z francois $
*
* 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... | mit |
chriskmanx/qmole | QMOLEDEV/icu4c-4_8_1_1/source/common/schriter.cpp | 3655 | /*
******************************************************************************
* Copyright (C) 1998-2010, International Business Machines Corporation and
* others. All Rights Reserved.
******************************************************************************
*
* File schriter.cpp
*
* Modification History:
*
* ... | gpl-3.0 |
staugs/blog | node_modules/bower/node_modules/bower-registry-client/node_modules/bower-config/node_modules/mout/lang/inheritPrototype.js | 463 | var createObject = require('./createObject');
/**
* Inherit prototype from another Object.
* - inspired by Nicholas Zackas <http://nczonline.net> Solution
* @param {object} child Child object
* @param {object} parent Parent Object
*/
function inheritPrototype(child, parent){
var ... | mit |
satishpatil2k13/ODPI-Hadoop | hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUGIWithExternalKdc.java | 2560 | /**
* 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 ... | apache-2.0 |
LaVraiePrimaire/homepage | node_modules/protractor/testapp/bindings/bindings.js | 882 | function BindingsCtrl($scope) {
$scope.planets = [
{ name: 'Mercury',
radius: 1516
},
{ name: 'Venus',
radius: 3760
},
{ name: 'Earth',
radius: 3959,
moons: ['Luna']
},
{ name: 'Mars',
radius: 2106,
moons: ['Phobos', 'Deimos']
},
{ name: 'Jupiter... | apache-2.0 |
freedesktop-unofficial-mirror/gstreamer-sdk__gcc | gcc/testsuite/g++.dg/template/nontype10.C | 246 | // { dg-do compile }
// Contributed by: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
#include <cstddef>
template <int T> struct A {};
template <void* T> struct B {};
A<NULL> a; // { dg-warning "NULL" }
B<NULL> b; // { dg-error "" }
| gpl-2.0 |
eddyb/servo | tests/wpt/web-platform-tests/tools/pytest/testing/test_collection.py | 23182 | import pytest, py
from _pytest.main import Session, EXIT_NOTESTSCOLLECTED
class TestCollector:
def test_collect_versus_item(self):
from pytest import Collector, Item
assert not issubclass(Collector, Item)
assert not issubclass(Item, Collector)
def test_compat_attributes(self, testdir,... | mpl-2.0 |
jleonhard/angular2-webpack-jquery-bootstrap | node_modules/@types/lodash/upperCase.d.ts | 57 | import { upperCase } from "./index";
export = upperCase;
| mit |
andyinabox/cdnjs | ajax/libs/mojio-js/3.5.0/mojio-js.js | 87074 | // version 3.5.0
!function(e) {
if ("object" == typeof exports) module.exports = e(); else if ("function" == typeof define && define.amd) define(e); else {
var o;
"undefined" != typeof window ? o = window : "undefined" != typeof global ? o = global : "undefined" != typeof self && (o = self),
... | mit |
zhengcq315/TestReportCenter | lib/vendor/symfony/lib/widget/sfWidgetFormSchema.class.php | 22962 | <?php
/*
* This file is part of the symfony package.
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* sfWidgetFormSchema represents an array of fields.
*
* A fi... | lgpl-2.1 |
abenjamin765/cdnjs | ajax/libs/rxjs/2.2.10/rx.virtualtime.js | 13481 | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'unde... | mit |
easyddb/dummy_alma | vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Tests/Fixtures/ExtensionPresentBundle/Command/FooCommand.php | 507 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HttpKernel\Tests\Fixtures\ExtensionP... | mit |
anmoya/anmoya.github.io | core/server/index.js | 7547 | // # Bootup
// This file needs serious love & refactoring
// Module dependencies
var express = require('express'),
hbs = require('express-hbs'),
compress = require('compression'),
fs = require('fs'),
uuid = require('node-uuid'),
_ = require('lodash'),
Pr... | mit |
dalanmiller/homebrew | Library/Formula/par.rb | 1175 | class Par < Formula
desc "Paragraph reflow for email"
homepage "http://www.nicemice.net/par/"
url "http://www.nicemice.net/par/Par152.tar.gz"
version "1.52"
sha256 "33dcdae905f4b4267b4dc1f3efb032d79705ca8d2122e17efdecfd8162067082"
bottle do
cellar :any_skip_relocation
revision 1
sha256 "2dd2b18... | bsd-2-clause |
mu4ddi3/gajdaw-zad-29-01 | vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/TwigExtensionTest.php | 9464 | <?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\TwigBundle\Tests\DependencyInjection;
use Symfony\Bundle... | mit |
mattfelsen/homebrew-cask | Casks/mongodbpreferencepane.rb | 360 | cask :v1 => 'mongodbpreferencepane' do
version :latest
sha256 :no_check
url 'https://github.com/remysaissy/mongodb-macosx-prefspane/raw/master/download/MongoDB.prefPane.zip'
name 'MongoDB-PrefsPane'
name 'mongodb-macosx-prefspane'
homepage 'https://github.com/remysaissy/mongodb-macosx-prefspane'
license ... | bsd-2-clause |
nassafou/serApp | vendor/symfony/symfony/src/Symfony/Component/Finder/Tests/Iterator/FilePathsIteratorTest.php | 2791 | <?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\Finder\Tests\Iterator;
use Symfony\Component\Finder\I... | mit |
DiamondLovesYou/skia-sys | src/animator/SkDrawOval.cpp | 536 |
/*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkDrawOval.h"
#include "SkAnimateMaker.h"
#include "SkCanvas.h"
#if SK_USE_CONDENSED_INFO == 0
const SkMemberInfo SkOval::fInfo[] = {
SK_... | bsd-3-clause |
mindprince/test-infra | vendor/k8s.io/code-generator/_examples/apiserver/clientset/internalversion/fake/doc.go | 695 | /*
Copyright 2018 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 |
Chivan/Dirigendo | vendor/symfony/symfony/src/Symfony/Component/Routing/Matcher/Dumper/MatcherDumper.php | 884 | <?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\Routing\Matcher\Dumper;
use Symfony\Component\Routing... | mit |
phoenixcqcq/mobilbonus-test | vendor/zendframework/zendframework/library/Zend/Mail/Storage/Part/Exception/RuntimeException.php | 530 | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace ... | bsd-3-clause |
BigBoss424/portfolio | v8/development/node_modules/atob/bin/atob.js | 122 | #!/usr/bin/env node
'use strict';
var atob = require('../node-atob');
var str = process.argv[2];
console.log(atob(str));
| apache-2.0 |
monarch-games/engine | source-archive/core/overlay/components/overlay.tsx | 627 |
import {h, Component} from "preact"
import {observer} from "mobx-preact"
import {Stick} from "./stick.js"
import {MenuBar} from "./menu-bar.js"
import {OverlayProps} from "./components-interfaces.js"
@observer
export class Overlay extends Component<OverlayProps> {
render() {
const {overlayStore} = this.props
re... | isc |
adiabat/btcd | wire/msgblock.go | 10511 | // Copyright (c) 2013-2016 The btcsuite developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package wire
import (
"bytes"
"fmt"
"io"
"github.com/adiabat/btcd/chaincfg/chainhash"
)
// defaultTransactionAlloc is the default size used for the backing array
... | isc |
sprintly/sprintly-kanban | app/actions/velocity-actions-test.js | 2287 | /*eslint-env node, mocha */
var sinon = require('sinon')
var VelocityActions = require('./velocity-actions')
describe('VelocityActions', function() {
beforeEach(function() {
this.appDispatcher = VelocityActions.__get__('AppDispatcher')
this.sinon = sinon.sandbox.create()
})
afterEach(function() {
t... | isc |
thelabnyc/django-oscar-cch | src/oscarcch/tests/test_cch_nine_digits_zip.py | 14854 | from unittest import mock
from decimal import Decimal as D
from freezegun import freeze_time
from oscar.core.loading import get_model, get_class
from ..calculator import CCHTaxCalculator
from .base import BaseTest
from .base import p
Basket = get_model("basket", "Basket")
ShippingAddress = get_model("order", "Shipping... | isc |
io7m/jfunctional | com.io7m.jfunctional.core/src/main/java/com/io7m/jfunctional/Failure.java | 2898 | /*
* 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" AN... | isc |
loganknecht/GlobalGameJam2015 | Assets/FullInspector2/Serializers/FullSerializer/Samples/FullSerializer/Editor/SampleFullSerializerCustomTypeEditorEditors.cs | 2220 | using UnityEditor;
using UnityEngine;
namespace FullInspector.Samples.FullSerializer {
[CustomPropertyEditor(typeof(CustomTypeEditorNonGeneric))]
public class SampleFullSerializerCustomTypeEditorEditors :
PropertyEditor<CustomTypeEditorNonGeneric> {
public override CustomTypeEditorNonGe... | isc |
gilesbradshaw/react-resolver-csp | dist/js-csp/src/impl/process.js | 3488 | "use strict";
var dispatch = require("./dispatch");
var select = require("./select");
var Channel = require("./channels").Channel;
var FnHandler = function FnHandler(f) {
this.f = f;
};
FnHandler.prototype.is_active = function () {
return true;
};
FnHandler.prototype.commit = function () {
return this.f;
};
... | isc |
johnwchadwick/gcmtools | nall/string/trim.hpp | 1330 | #ifdef NALL_STRING_INTERNAL_HPP
namespace nall {
//limit defaults to zero, which will underflow on first compare; equivalent to no limit
template<unsigned Limit> char* ltrim(char *str, const char *key) {
unsigned limit = Limit;
if(!key || !*key) return str;
while(strbegin(str, key)) {
char *dest = str, *src... | isc |
sobstel/golazon | components/Search/hooks/useAsyncDispatch.ts | 148 | import { Dispatch } from "react";
export default function useAsyncDispatch(dispatch: Dispatch<unknown>) {
return (action) => action(dispatch);
}
| isc |
utah-scs/RAMCloud | src/LinearizableObjectRpcWrapper.cc | 8017 | /* Copyright (c) 2014-2015 Stanford University
*
* Permission to use, copy, modify, and 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 THE AUTHOR(... | isc |
dcrdata/dcrdata | cmd/dcrdata/api/insight/apiroutes_test.go | 5339 | // Copyright (c) 2019-2021, The Decred developers
// See LICENSE for details.
package insight
import (
"reflect"
"testing"
"time"
apitypes "github.com/decred/dcrdata/v7/api/types"
)
func Test_dateFromStr(t *testing.T) {
ymdFormat := "2006-01-02"
today := time.Now().UTC().Truncate(24 * time.Hour)
tests := []s... | isc |
holizz/lavender | spec/converter_spec.rb | 2837 | require 'spec_helper'
describe Lavender::Converter do
it "should render anything that isn't YAML with the default layout/processor" do
layout = <<END
<body>
<%= yield %>
</body>
END
page = <<END
%p My paragraph
END
c = Lavender::Converter.new(:page => page, :layouts => {:default => {:erb => layout}},... | isc |
xdv/ripple-lib-java | ripple-bouncycastle/src/main/java/org/ripple/bouncycastle/ocsp/Req.java | 2708 | package org.ripple.bouncycastle.ocsp;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Set;
import org.ripple.bouncycastle.asn1.ASN1Encoding;
import org.ripple.bouncycastle.asn1.DERObjectIdentifier;
import org.ripple.bouncycastle.asn1.ocsp.Request;
import org.ripple.bouncycastle.asn1.x509.X509... | isc |
rolandpoulter/shipster | dashboard/src/machine.js | 1499 | /*jshint esnext:true*/
import {WebAPI} from './web-api';
import {App} from './app';
export class Machine {
static inject() { return [App, WebAPI]; }
constructor(app, api) {
this.app = app;
this.api = api;
}
activate(params, qs, config) {
this.app.selectedMenu = this.app.selectedMenu || 'machines... | isc |
bleepbloop/Pivy | scons/scons-local-1.2.0.d20090919/SCons/Tool/ifl.py | 2814 | """SCons.Tool.ifl
Tool-specific initialization for the Intel Fortran compiler.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The SCons... | isc |
Martodox/cloudrm-server | src/components/automation-manager/automation-manager.js | 2229 | import { events, eventBus } from '../../services/event-bus';
export class AutomationManager {
autoEventMap = {};
autoEventMapFlat = {};
constructor(SocketServer) {
this.socketServer = SocketServer;
this.socketServer.socketIo.on('connection', socket => {
socket.on('*', payload =... | isc |
sittercity/flagon | spec/flagon/inspector_spec.rb | 1200 | require 'flagon/inspector'
describe Flagon::Inspector do
let(:loader) { double(:loader, get_flag: true, exists?: true) }
subject { described_class.new(loader) }
it "can check a flag" do
expect(subject.enabled?(:a_flag)).to be true
end
it "can execute a block if the flag is enabled" do
test_object =... | isc |
io7m/jparasol | io7m-jparasol-tests/src/test/java/com/io7m/jparasol/tests/protobuf/ProtobufCompactedVertexShaderMetaTest.java | 9584 | /*
* Copyright © 2013 <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" AN... | isc |
rchodava/datamill | core/src/main/java/foundation/stack/datamill/http/impl/UriTemplate.java | 3790 | package foundation.stack.datamill.http.impl;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @author Ravi Chodavarapu (rchodava@gmail.com)
*/
public class UriTemplate {
private static final String TEMPLATE_REGEX = "(:\\s*([^\\}]*)\\s*)?";
private static final String... | isc |
atomantic/buzzphrase | test/methods/node.js | 762 | const assert = require("chai").assert;
const exec = require("child_process").exec;
module.exports = function () {
it("runs as globally installed node app", function (done) {
exec(
"node " + __dirname + "/../../bin.js",
function (error, stdout, stderr) {
assert.isNull(error);
assert(st... | isc |
dennybritz/neal-react | build/components/navbar.js | 6325 | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DropdownMenu = exports.DropdownToggle = exports.NavItem = exports.Navbar = undefined;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in sourc... | isc |
versatica/mediasoup | node/tests/test-multiopus.js | 5345 | const { toBeType } = require('jest-tobetype');
const mediasoup = require('../lib/');
const { UnsupportedError } = require('../lib/errors');
const { createWorker } = mediasoup;
expect.extend({ toBeType });
let worker;
let router;
let transport;
const mediaCodecs = [
{
kind : 'audio',
mimeType : 'audio/mu... | isc |
osmlab/osmlint | validators/mixedLayer/map.js | 5984 | 'use strict';
var turf = require('@turf/turf');
var rbush = require('rbush');
var _ = require('underscore');
var flatten = require('geojson-flatten');
module.exports = function(tileLayers, tile, writeData, done) {
var layer = tileLayers.osm.osm;
var listOfHighways = {};
var highwaysBboxes = [];
var majorRoads ... | isc |
r3mus/lodash-uuid | index.js | 3145 | (function () {
var isNode = typeof module !== 'undefined' &&
typeof module.exports !== 'undefined',
_;
if (isNode) {
_ = require('lodash').runInContext();
}
else {
// browser environment
_ = window._;
}
var mixins = (function () {
var extendWi... | isc |
MiguelAngelCifredo/AmigoInvisible | app/src/main/java/utils/Comunicador.java | 242 | package utils;
public class Comunicador {
private static Object objeto = null;
public static void setObjeto(Object newObjeto) {
objeto = newObjeto;
}
public static Object getObjeto() {
return objeto;
}
} | isc |
MirekSz/webpack-es6-ts | app/mods/mod1317.js | 76 | import mod1316 from './mod1316';
var value=mod1316+1;
export default value;
| isc |
jaysoo/react-transact | test/components-test.js | 5599 | require('./setup')
const mount = require('enzyme').mount
const createStore = require('redux').createStore
const connect = require('react-redux').connect
const Provider = require('react-redux').Provider
const React = require('react')
const test = require('tape')
const sinon = require('sinon')
const RunContext = require(... | isc |
TealCube/strife | src/main/java/land/face/strife/managers/SpawnerManager.java | 3904 | package land.face.strife.managers;
import com.tealcube.minecraft.bukkit.facecore.utilities.MessageUtils;
import java.util.HashMap;
import java.util.Map;
import land.face.strife.StrifePlugin;
import land.face.strife.data.Spawner;
import land.face.strife.data.StrifeMob;
import org.apache.commons.lang.StringUtils;
import... | isc |
memakeit/mmi-form | classes/mmi/form/plugin/jquery/validation.php | 154 | <?php defined('SYSPATH') or die('No direct script access.');
class MMI_Form_Plugin_JQuery_Validation extends Kohana_MMI_Form_Plugin_JQuery_Validation {}
| isc |
tabone/dvc | cli.js | 1435 | #!/usr/bin/env node
'use strict'
const fs = require('fs')
const DVC = require('./index')
const argv = require('minimist')(process.argv.slice(2))
getModuleNames()
.then(getOutdatedDeps)
.catch((err) => {
if (err.code === 'ENOENT') {
console.log('usage:')
console.log(' dvc [--registry <url>] [<pkg-... | isc |
Hobbit71/oc-registry | node_modules/oc/client/settings.js | 272 | 'use strict';
module.exports = {
messages: {
componentMissing: 'Configuration is not valid - Component not found',
registryUrlMissing: 'Configuration is not valid - Registry location not found',
serverSideRenderingFail: 'Server-side rendering failed'
}
}; | isc |
mike-burns/libtls.rb | lib/libtls/config.rb | 3854 | require 'libtls/raw'
require 'libtls/exn'
module LibTLS
##
# A TLS configuration
#
# This object is an abstraction over the libtls configuration. It can be used
# as a shorthand for configuring the struct tls context.
#
# config = LibTLS::Config.new(
# ca_path: '/etc/ssl',
# key_mem: [key_p... | isc |
TMROTV/SocialCG | client/controllers/home.js | 3394 | 'use strict';
module.exports = function (app) {
var c = function ($scope, remoteService, $interval) {
var messages = remoteService.messages;
var approvals = remoteService.approvals;
var onair = remoteService.onair;
$scope.unapproveall = function(){
approvals.remove('al... | isc |
thaelina/Screeps-ThaeAI | src/creep/setup/worker.ts | 1406 | 'use strict';
import {CreepSetup} from './base';
let setup: CreepSetup = new CreepSetup('worker');
setup.minRCL = 1;
setup.RCL = {
1: {
maxSpawned: 6,
baseBody: [WORK, CARRY, MOVE],
multiBody: [WORK, CARRY, MOVE],
maxMulti: 0,
minEnergy: 200,
weight: 500
},
2: {
maxSpawned: 8,
ba... | isc |
simple-statistics/simple-statistics | src/logit.d.ts | 118 | /**
* https://simplestatistics.org/docs/#logit
*/
declare function logit(p: number): number;
export default logit;
| isc |
evshiron/ingress-model-viewer | src/orbit-controls.js | 9496 | import { setParams } from './utils';
import { vec3 } from 'gl-matrix';
const PI_HALF = Math.PI / 2.0;
const MIN_LOG_DIST = 5.0;
function cloneTouch(touch)
{
return {identifier: touch.identifier, x: touch.clientX, y: touch.clientY};
}
function getTouchIndex(touches, touch)
{
for(var i = 0; i < touches.length; i++... | mit |
juanhenriquez/move-rails | app/models/group/group_member.rb | 132 | class Group::GroupMember < ApplicationRecord
self.table_name = "group_members"
belongs_to :group
belongs_to :user
end
| mit |
poooi/plugin-battle-detail | lib/csv-stringify/sync.js | 393 | var StringDecoder,stringify
StringDecoder=require("string_decoder").StringDecoder,stringify=require("./index"),module.exports=function(r,e){var i,n,t,o,g,u
for(null==e&&(e={}),i=[],r instanceof Buffer&&(n=new StringDecoder,r=n.write(r)),u=new stringify.Stringifier(e),u.push=function(r){return r?i.push(r.toString()):voi... | mit |
websanova/vue-auth | src/lib/utils.js | 2660 | function isObject(val) {
if (val !== null && typeof val === 'object' && val.constructor !== Array ) {
return true;
}
return false;
}
function toArray(val) {
return (typeof val) === 'string' || (typeof val) === 'number' ? [val] : val;
}
function extend(mainObj, appendObj) {
var i, ii, key,... | mit |
DipeshKazi/C-Repository | Problem2.1/Problem2.1/Source.cpp | 1875 | #include <iostream>
#include <String>
double CelsiustoFahrenheit1 (double celsius8am)
{
double fahrenheit8am;
fahrenheit8am = celsius8am * 1.2 + 32;
return fahrenheit8am;
}
double CelsiustoFahrenheit2 (double celsius12am)
{
double fahrenheit12am;
fahrenheit12am = celsius12am * 1.2 + 32;
return fahrenheit1... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/jquery.tablesorter/2.21.2/js/widgets/widget-filter.min.js | 130 | version https://git-lfs.github.com/spec/v1
oid sha256:4d22cea69a37d8289ea4be9a03f9e4d36d32bc358816ef4b91cdac9ba938e620
size 24693
| mit |
samuelCosta/IPUM | application/controllers/utilizador.php | 20861 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Utilizador extends CI_Controller {
// function __construct() {
// parent::__construct();
//
// if($this->session ->userdata('conectado')==false){
// redirect('Welcome');
//
// }
/... | mit |
mickknutson/spring-cloud-config | student_files/code/spring-cloud-configuration-server/solution-code/src/test/java/com/baselogic/cloud/ConfigurationServerApplicationTests.java | 1559 | package com.baselogic.cloud;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.embedded.LocalServerPort;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.web.client.Te... | mit |
infazz/Gravity-Forms-Input-data-cache | js/scripts.js | 4698 | (function($){
$(document).ready(function(){
function elementStartsWith(el, str) {
return $(el).map( function(i,e) {
var classes = e.className.split(' ');
for (var i=0, j=classes.length; i < j; i++) {
if (classes[i].substr(0, str.length) == str) return e;
}
}).get(0);
}
funct... | mit |
juui2/juui | src/app/app.module.ts | 613 | import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {HttpModule} from '@angular/http';
import {MaterialModule} from '@angular/material';
import {FlexLayoutModule} from '@angular/flex-layout';
import 'hammerjs';
import {AppC... | mit |
easanles/atletismo-edu | src/Easanles/AtletismoBundle/Form/Type/TprmType.php | 1076 | <?php
# Copyright (c) 2016 Eduardo Alonso Sanlés
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
namespace Easanles\AtletismoBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsR... | mit |
gsterndale/yourkarma | spec/support/vcr.rb | 228 | require 'vcr'
VCR.configure do |c|
c.hook_into :webmock
c.cassette_library_dir = 'spec/cassettes'
c.default_cassette_options = {
record: :none,
allow_playback_repeats: true
}
c.configure_rspec_metadata!
end
| mit |
bmiquel/Site | src/Miquel/SiteBundle/MiquelSiteBundle.php | 128 | <?php
namespace Miquel\SiteBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class MiquelSiteBundle extends Bundle
{
}
| mit |
Da-Technomancer/Crossroads | src/main/java/com/Da_Technomancer/crossroads/tileentities/alchemy/TeslaCoilTileEntity.java | 9112 | package com.Da_Technomancer.crossroads.tileentities.alchemy;
import com.Da_Technomancer.crossroads.API.IInfoTE;
import com.Da_Technomancer.crossroads.API.Properties;
import com.Da_Technomancer.crossroads.API.alchemy.LooseArcRenderable;
import com.Da_Technomancer.crossroads.API.packets.ModPackets;
import com.Da_Technom... | mit |
Biles430/FPF_PIV | FPF_PIV_CODE/Drummonds_Scripts/PIV_Outer.py | 3722 | import pandas as pd
from pandas import DataFrame
import numpy as np
import PIV
import h5py
import matplotlib.pyplot as plt
import hotwire as hw
################################################
# PURPOSE
# 1. Compute Integral Parameters
# 2. Outer Normalize
# 3. Plot
############################################... | mit |