repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
YousefED/DefinitelyTyped
types/node-schedule/node-schedule-tests.ts
5532
import nodeSchedule = require("node-schedule"); /** * Test for {@link Job} class. */ function testJob() { let name: string = ''; let jc: nodeSchedule.JobCallback = null; let callback: () => void = null; let jobSpec: nodeSchedule.Job = new nodeSchedule.Job(jc); let job: nodeSchedule.Job = new nod...
mit
markogresak/DefinitelyTyped
types/echarts/options/series/custom.d.ts
346658
declare namespace echarts { namespace EChartOption { /** * **custom series** * * `custom series` supports customizing graphic elements, and then generate * more types of charts. * * echarts manages the creation, deletion, animation and interaction ...
mit
B3n30/citra-1
src/common/logging/filter.cpp
3038
// Copyright 2014 Citra Emulator Project // Licensed under GPLv2 or any later version // Refer to the license.txt file included. #include <algorithm> #include "common/logging/backend.h" #include "common/logging/filter.h" #include "common/string_util.h" namespace Log { namespace { template <typename It> Level GetLevel...
gpl-2.0
georchestra/georchestra
mapfishapp/src/main/webapp/lib/proj4js/lib/defs/EPSG2664.js
118
Proj4js.defs["EPSG:2664"] = "+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +ellps=krass +units=m +no_defs";
gpl-3.0
GH1995/tools
archives/cpp-primer-5th/GCC_pre_C11/18/Sales_data.cc
3831
/* * This file contains code from "C++ Primer, Fifth Edition", by Stanley B. * Lippman, Josee Lajoie, and Barbara E. Moo, and is covered under the * copyright and warranty notices given in that book: * * "Copyright (c) 2013 by Objectwrite, Inc., Josee Lajoie, and Barbara E. Moo." * * * "The authors and publi...
gpl-3.0
GFI-Informatique/georchestra
mapfishapp/src/main/webapp/lib/proj4js/lib/defs/EPSG32157.js
146
Proj4js.defs["EPSG:32157"] = "+proj=tmerc +lat_0=40.5 +lon_0=-108.75 +k=0.9999375 +x_0=600000 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs";
gpl-3.0
dev-pnt/gers-pruebas
modules/Meetings/field_arrays.php
3290
<?php if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); /********************************************************************************* * SugarCRM Community Edition is a customer relationship management program developed by * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc. * * This ...
agpl-3.0
IrishLAs/SugarCRM-Public
modules/Notes/metadata/subpanels/ForHistory.php
4588
<?php if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); /********************************************************************************* * SugarCRM Community Edition is a customer relationship management program developed by * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc. * * This ...
agpl-3.0
sanguinariojoe/FreeCAD
src/Mod/Path/App/FeatureArea.cpp
8671
/**************************************************************************** * Copyright (c) 2017 Zheng Lei (realthunder) <realthunder.dev@gmail.com> * * * * This file is part of the FreeCAD CAx development system. * * ...
lgpl-2.1
mbborgez/fenix
src/main/java/org/fenixedu/academic/domain/accessControl/PersistentTeachersWithGradesToSubmitGroup.java
1828
/** * Copyright © 2002 Instituto Superior Técnico * * This file is part of FenixEdu Academic. * * FenixEdu Academic is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License...
lgpl-3.0
NSAmelchev/ignite
modules/core/src/test/java/org/apache/ignite/internal/processors/cache/local/GridCacheLocalTxMultiThreadedSelfTest.java
3183
/* * 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
LegNeato/buck
src/com/facebook/buck/util/UnixUserIdFetcher.java
1148
/* * Copyright 2015-present Facebook, 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 law or...
apache-2.0
MikeThomsen/nifi
nifi-nar-bundles/nifi-standard-services/nifi-lookup-services-bundle/nifi-lookup-services/src/main/java/org/apache/nifi/lookup/db/DatabaseRecordLookupService.java
9202
/* * 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
NSAmelchev/ignite
modules/core/src/main/java/org/apache/ignite/internal/processors/odbc/odbc/OdbcStreamingBatchRequest.java
3000
package org.apache.ignite.internal.processors.odbc.odbc; /* * 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 th...
apache-2.0
alex-ionochkin/koding
go/src/vendor/github.com/kr/binarydist/diff_test.go
1293
package binarydist import ( "bytes" "io/ioutil" "os" "os/exec" "testing" ) var diffT = []struct { old *os.File new *os.File }{ { old: mustWriteRandFile("test.old", 1e3, 1), new: mustWriteRandFile("test.new", 1e3, 2), }, { old: mustOpen("testdata/sample.old"), new: mustOpen("testdata/sample.new"), }...
apache-2.0
coldstartdk/hassio-addons
prometheus/storage/local/test_helpers.go
2539
// Copyright 2014 The Prometheus 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...
apache-2.0
deasmi/terraform-provider-libvirt
vendor/github.com/mitchellh/packer/builder/amazon/chroot/step_snapshot.go
2589
package chroot import ( "errors" "fmt" "time" "github.com/aws/aws-sdk-go/service/ec2" awscommon "github.com/hashicorp/packer/builder/amazon/common" "github.com/hashicorp/packer/packer" "github.com/mitchellh/multistep" ) // StepSnapshot creates a snapshot of the created volume. // // Produces: // snapshot_id...
apache-2.0
mogoweb/webkit_for_android5.1
webkit/Source/WebCore/platform/graphics/chromium/cc/CCCanvasLayerImpl.cpp
3195
/* * Copyright (C) 2011 Google 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: * * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
apache-2.0
DeepakRajendranMsft/azure-powershell
src/ResourceManager/Network/Commands.Network/Models/PSExpressRouteCircuitRoutesTable.cs
919
// // Copyright (c) Microsoft. 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 l...
apache-2.0
charithag/carbon-device-mgt
components/apimgt-extensions/org.wso2.carbon.apimgt.webapp.publisher/src/test/java/org/wso2/carbon/apimgt/webapp/publisher/utils/MockServletContext.java
6038
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
apache-2.0
fasterthanlime/homebrew
Library/Homebrew/caveats.rb
4459
class Caveats attr_reader :f def initialize(f) @f = f end def caveats caveats = [] caveats << f.caveats if f.caveats.to_s.length > 0 caveats << f.keg_only_text if f.keg_only? && f.respond_to?(:keg_only_text) caveats << bash_completion_caveats caveats << zsh_completion_caveats cavea...
bsd-2-clause
carlmod/homebrew-cask
Casks/streakerbar.rb
395
cask :v1 => 'streakerbar' do version '1.0' sha256 '70c4e5863d1eaaf4c8ed96e1e110ca9f48de811bdffb92beb024827e08947e72' url "http://github.com/chaserx/streakerbar/releases/download/v#{version}/streakerbar.zip" appcast 'http://github.com/chaserx/streakerbar/releases.atom' name 'streakerbar' homepage 'https://g...
bsd-2-clause
quantumsteve/homebrew
Library/Formula/elasticsearch.rb
4053
class Elasticsearch < Formula desc "Distributed search & analytics engine" homepage "https://www.elastic.co/products/elasticsearch" url "https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.2.1/elasticsearch-2.2.1.tar.gz" sha256 "7d43d18a8ee8d715d827ed26b4f...
bsd-2-clause
victorv/arrayfire
src/backend/opencl/select.hpp
645
/******************************************************* * Copyright (c) 2015, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause **********************************************...
bsd-3-clause
joone/chromium-crosswalk
content/test/gpu/page_sets/gpu_rasterization_tests.py
3786
# Copyright 2014 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. from telemetry.story import story_set as story_set_module from gpu_tests import gpu_test_base class GpuRasterizationBlueBoxPage(gpu_test_base.PageBase): ...
bsd-3-clause
antiface/mne-python
tutorials/plot_cluster_stats_spatio_temporal.py
7497
""" .. _tut_stats_cluster_source_1samp: ================================================================= Permutation t-test on source data with spatio-temporal clustering ================================================================= Tests if the evoked response is significantly different between conditions acros...
bsd-3-clause
josharian/go.ssa
src/image/draw/bench_test.go
5788
// Copyright 2011 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. package draw import ( "image" "image/color" "testing" ) const ( dstw, dsth = 640, 480 srcw, srch = 400, 300 ) // bench benchmarks drawing src and mask i...
bsd-3-clause
wjdeclan/stansbury-computer-graphics
ClientGame/stdafx.cpp
108
#include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
bsd-3-clause
thiz11/platform_external_owasp_sanitizer
src/tests/org/owasp/html/UrlTextExampleTest.java
2472
// Copyright (c) 2013, Mike Samuel // 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 conditions an...
bsd-3-clause
tsibelman/orleans
test/TestGrains/ObserverGrain.cs
907
using System.Threading.Tasks; using Orleans; using UnitTests.GrainInterfaces; namespace UnitTests.Grains { public class ObserverGrain : Grain, IObserverGrain, ISimpleGrainObserver { protected ISimpleGrainObserver Observer { get; set; } // supports only a single observer protected ISimpleObser...
mit
r0k3/lila
modules/site/src/main/Socket.scala
762
package lila.site import scala.concurrent.duration.Duration import akka.actor._ import play.api.libs.iteratee._ import play.api.libs.json._ import actorApi._ import lila.socket._ import lila.socket.actorApi.SendToFlag private[site] final class Socket(timeout: Duration) extends SocketActor[Member](timeout) { over...
mit
Saldum/Paymill-Codeigniter
application/libraries/Paymill/tests/Services/Paymill/ClientsTest.php
4452
<?php /** * @see Services_Paymill_Exception */ require_once '../lib/Services/Paymill/Exception.php'; /** * @see Services_Paymill_Customer */ require_once '../lib/Services/Paymill/Clients.php'; /** * @see Services_Paymill_BaseTest */ require_once 'TestBase.php'; /** * Services_Paymill_Customer test case. */ ...
mit
cyberid41/sculpin
src/Sculpin/Core/Permalink/PermalinkInterface.php
585
<?php /* * This file is a part of Sculpin. * * (c) Dragonfly Development Inc. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sculpin\Core\Permalink; /** * Permalink Interface. * * @author Beau Simensen <beau@dflyde...
mit
jrrall/simple_node
server.js
233
var Composer = require('./index'); Composer(function (err, server) { if (err) { throw err; } server.start(function () { console.log('Started the plot device on port ' + server.info.port); }); });
mit
pyKy/kivy-doc-ja
kivy/input/postproc/calibration.py
3305
''' Calibration =========== .. versionadded:: 1.9.0 Recalibrate input device to a specific range / offset. Let's say you have 3 1080p displays, the 2 firsts are multitouch. By default, both will have mixed touch, the range will conflict with each others: the 0-1 range will goes to 0-5760 px (remember, 3 * 1920 = 576...
mit
burzum/Robo
tests/unit/CommandStackTest.php
815
<?php use Codeception\Util\Stub; class CommandStackTest extends \Codeception\TestCase\Test { public function testExecStackExecutableIsTrimmedFromCommand() { $commandStack = Stub::make('Robo\Task\CommandStack', array( 'executable' => 'some-executable' )); verify($commandStack...
mit
msanchex/testmasm
libs/charisma/bower_components/datatables/media/unit_testing/tests_onhold/1_dom/bJQueryUI.js
760
// DATA_TEMPLATE: dom_data oTest.fnStart( "bJQueryUI" ); $(document).ready( function () { $('#example').dataTable( { "bJQueryUI": true } ); oTest.fnTest( "Header elements are fully wrapped by DIVs", null, function () { var test = true; $('#example thead th').each( function () { if...
mit
b923242/scharfrichter
NAudio/CoreAudioApi/Interfaces/IAudioRenderClient.cs
488
using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace NAudio.CoreAudioApi.Interfaces { [Guid("F294ACFC-3146-4483-A7BF-ADDCA7C260E2"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] interface IAudioRenderClient { int ...
mit
progre/DefinitelyTyped
react-icons/md/looks-two.d.ts
188
// TypeScript Version: 2.1 import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; export default class MdLooksTwo extends React.Component<IconBaseProps, any> { }
mit
sensukho/mgcommunity
vendor/sonata-project/media-bundle/Listener/ORM/MediaEventSubscriber.php
1298
<?php /* * This file is part of the Sonata project. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\MediaBundle\Listener\ORM; use Doctrine\Common\EventArg...
mit
mocsy/coreclr
tests/src/CoreMangLib/cti/system/enum/enumiconvertibletouint16.cs
5891
using System; /// <summary> /// System.Enum.IConvertibleToUint16(System.Type,IFormatProvider ) /// </summary> public class EnumIConvertibleToUint16 { #region Public Methods public bool RunTests() { bool retVal = true; TestLibrary.TestFramework.LogInformation("[Positive]"); retVal =...
mit
ravifreek63/jvm
jdk/src/share/demo/jfc/Metalworks/ContrastMetalTheme.java
5019
/* * Copyright (c) 1998, 2011, Oracle and/or its affiliates. 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 * no...
gpl-2.0
mlundblad/gnome-shell
tests/interactive/border-radius.js
2121
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- const Clutter = imports.gi.Clutter; const St = imports.gi.St; const UI = imports.testcommon.ui; function test() { let stage = new Clutter.Stage({ width: 640, height: 480 }); UI.init(stage); let vbox = new St.BoxLayout({ width: stage.width, ...
gpl-2.0
PrasadG193/gcc_gimple_fe
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/exceptions_badbit_throw.cc
1711
// Copyright (C) 2003-2016 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library 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, or (at your op...
gpl-2.0
YuZhang/ndnSIM
examples/ndn-triangle-calculate-routes.cc
3754
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2013 University of California, Los Angeles * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation...
gpl-3.0
maanboyz/android-rage-maker
src/com/tmarki/comicmaker/ImageSelect.java
7099
// Rage Comic Maker for Android (c) Tamas Marki 2011-2013 // This program 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 versi...
gpl-3.0
selmentdev/selment-toolchain
source/gcc-latest/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc
1734
// Copyright (C) 2003-2016 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library 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, or (at your op...
gpl-3.0
applifireAlgo/OnlineShopEx
onlineshopping/src/main/webapp/ext/packages/sencha-core/src/data/NodeInterface.js
81227
/** * This class is used as a set of methods that are applied to the prototype of a * Model to decorate it with a Node API. This means that models used in conjunction with a tree * will have all of the tree related methods available on the model. In general this class will * not be used directly by the developer. ...
gpl-3.0
vipul-sharma20/oh-mainline
vendor/packages/sqlparse/tests/test_grouping.py
13177
# -*- coding: utf-8 -*- import pytest import sqlparse from sqlparse import sql from sqlparse import tokens as T from tests.utils import TestCaseBase class TestGrouping(TestCaseBase): def test_parenthesis(self): s = 'select (select (x3) x2) and (y2) bar' parsed = sqlparse.parse(s)[0] se...
agpl-3.0
murugamsm/webmail-lite
libraries/OAuthClient/login_with_foursquare.php
2177
<?php /* * login_with_foursquare.php * * @(#) $Id: login_with_foursquare.php,v 1.1 2013/10/13 09:41:36 mlemos Exp $ * */ /* * Get the http.php file from http://www.phpclasses.org/httpclient */ require('http.php'); require('oauth_client.php'); $client = new oauth_client_class; $client->server = 'Foursqu...
agpl-3.0
arildb/tiki-azure
lib/test/language/fixtures/language_writestringstofile_first_call.php
68
<?php // File header $lang = array( "Errors" => "Ошибки", );
lgpl-2.1
TomPradat/thelia
core/lib/Thelia/Action/ModuleHook.php
9507
<?php /*************************************************************************************/ /* This file is part of the Thelia package. */ /* */ /* Copyright (c) OpenStudio ...
lgpl-3.0
jmluy/elasticsearch
client/rest-high-level/src/test/java/org/elasticsearch/client/ml/dataframe/stats/outlierdetection/ParametersTests.java
1435
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
apache-2.0
kuali/kc-rice
rice-middleware/impl/src/main/java/org/kuali/rice/kew/rule/RuleValidationAttribute.java
1515
/** * Copyright 2005-2015 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by a...
apache-2.0
changgyun-woo/webida-client
apps/ide/ProjectWizard-templates/presentation/google-html5/project/js/slide-controller.js
3847
/* * Copyright (c) 2012-2015 S-Core Co., Ltd. * * 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 ...
apache-2.0
CesarPantoja/jena
jena-core/src/test/java/org/apache/jena/rdfxml/xmloutput/TestWriterInterface.java
3177
/* * 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 ...
apache-2.0
CesarPantoja/jena
jena-cmds/src/main/java/tdb/tdbrecovery.java
1731
/* * 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 ...
apache-2.0
spinolacastro/magento-scalable
php/app/code/core/Mage/Sales/Model/Entity/Order/Shipment/Item/Collection.php
1480
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
apache-2.0
cripure/openpne3
lib/vendor/Zend/Feed/Builder.php
17921
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license a...
apache-2.0
tr3vr/jena
jena-core/src/main/java/org/apache/jena/datatypes/xsd/impl/XSDDurationType.java
4469
/* * 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 ...
apache-2.0
phreakocious/ohai
spec/unit/plugins/eucalyptus_spec.rb
5196
# # Author:: Tim Dysinger (<tim@dysinger.net>) # Author:: Christopher Brown (cb@opscode.com) # Copyright:: Copyright (c) 2008 Opscode, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You...
apache-2.0
ueshin/apache-flink
flink-end-to-end-tests/flink-stream-state-ttl-test/src/main/java/org/apache/flink/streaming/tests/TtlStateUpdateSource.java
2835
/* * 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 ...
apache-2.0
mehrdada/grpc
src/core/tsi/alts/handshaker/alts_handshaker_service_api_util.cc
5118
/* * * Copyright 2018 gRPC 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 agree...
apache-2.0
SeanKilleen/elasticsearch-net
src/Nest/DSL/Query/MoreLikeThisQueryDescriptor.cs
9010
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using Nest.Resolvers.Converters; using Newtonsoft.Json; using System.Linq.Expressions; namespace Nest { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] [JsonConverter(typeof(ReadAsTypeConverter<MoreLikeThisQ...
apache-2.0
vsekhar/elastic-go
src/vendor/golang_org/x/net/http2/hpack/tables.go
10348
// Copyright 2014 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. package hpack import ( "fmt" ) // headerFieldTable implements a list of HeaderFields. // This is used to implement the static and dynamic tables. type header...
bsd-3-clause
binhdarkcu/Giggs
wp-includes/js/mce-view.js
20804
/* global tinymce */ /** * Note: this API is "experimental" meaning that it will probably change * in the next few releases based on feedback from 3.9.0. * If you decide to use it, please follow the development closely. */ // Ensure the global `wp` object exists. window.wp = window.wp || {}; ( function( $ ) { 'u...
gpl-2.0
nickpellant/our-boxen
vendor/bundle/ruby/2.1.0/gems/puppet-3.7.1/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/module_release_spec.rb
4200
require 'spec_helper' require 'semantic/dependency/module_release' describe Semantic::Dependency::ModuleRelease do def source @source ||= Semantic::Dependency::Source.new end def make_release(name, version, deps = {}) source.create_release(name, version, deps) end let(:no_dependencies) do make_...
mit
maovt/p3_web
public/js/release/JBrowse/View/Export.js
1357
define("JBrowse/View/Export", [ 'dojo/_base/declare', 'dojo/_base/lang', 'dojo/_base/array' ], function( declare, lang, array ) { return declare( null, { /** * Data export driver base class. * @constructs */ constructor: function( args ) { args = args || {...
mit
jonpstone/portfolio-project-rails-mean-movie-reviews
vendor/bundle/ruby/2.4.0/gems/nenv-0.3.0/lib/nenv/builder.rb
145
require 'nenv/environment' module Nenv module Builder def self.build(&block) Class.new(Nenv::Environment, &block) end end end
mit
alexhardwicke/GitVersion
src/GitVersionCore/VersioningModes/VersioningModeExtension.cs
651
namespace GitVersion { using System; using GitVersion.VersioningModes; public static class VersioningModeExtension { public static VersioningModeBase GetInstance(this VersioningMode _this) { switch (_this) { case VersioningMode.ContinuousDelivery...
mit
kevinsimper/isomorphic-apps-presentation
node_modules/surge/node_modules/moniker/lib/moniker.js
2558
var Fs = require('fs'), Path = require('path'); exports.choose = choose; exports.noun = noun; exports.verb = verb; exports.adjective = adjective; exports.read = read; exports.generator = generator; exports.Dictionary = Dictionary; exports.Generator = Generator; // ## Shortcuts ## function noun(opt) { return ...
mit
bsherrill480/portfolio
gulp/tasks/development.js
230
import gulp from 'gulp'; import runSequence from 'run-sequence'; gulp.task('dev', ['clean'], function(cb) { global.isProd = false; runSequence(['styles', 'images', 'fonts', 'views'], 'browserify', 'watch', cb); });
mit
pombredanne/fuzzywuzzy
fuzzywuzzy/StringMatcher.py
2437
#!/usr/bin/env python # encoding: utf-8 """ StringMatcher.py ported from python-Levenshtein [https://github.com/miohtama/python-Levenshtein] License available here: https://github.com/miohtama/python-Levenshtein/blob/master/COPYING """ from Levenshtein import * from warnings import warn class StringMatcher: """...
mit
surkovalex/xbmc
xbmc/addons/GUIDialogAddonSettings.cpp
41956
/* * Copyright (C) 2005-2015 Team Kodi * http://kodi.tv * * This Program 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 2, or (at your option) * any later version. * * T...
gpl-2.0
moio/spacewalk
java/code/src/com/redhat/rhn/frontend/action/schedule/ActionSystemsSetupAction.java
3602
/** * Copyright (c) 2009--2014 Red Hat, Inc. * * This software is licensed to you under the GNU General Public License, * version 2 (GPLv2). There is NO WARRANTY for this software, express or * implied, including the implied warranties of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. You should have rece...
gpl-2.0
gsmaxwell/phase_offset_rx
gnuradio-core/src/examples/pfb/channelize.py
6621
#!/usr/bin/env python # # Copyright 2009 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio 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, or (at your option) # ...
gpl-3.0
AHettinga/Rpg-Game
lib/slick/src/org/newdawn/slick/svg/inkscape/LineProcessor.java
3525
package org.newdawn.slick.svg.inkscape; import java.util.StringTokenizer; import org.newdawn.slick.geom.Line; import org.newdawn.slick.geom.Polygon; import org.newdawn.slick.geom.Transform; import org.newdawn.slick.svg.Diagram; import org.newdawn.slick.svg.Figure; import org.newdawn.slick.svg.Loader; import org.newda...
gpl-3.0
vidyacraghav/cplusdratchio
deps/boost_1_55_0/libs/asio/example/cpp03/http/server3/request_parser.cpp
6236
// // request_parser.cpp // ~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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_0.txt) // #include "request_parser.hpp" #...
gpl-3.0
kaikim/flamingo2
flamingo2-terminal-nodejs/term.js-0.0.4/example/index.js
2328
#!/usr/bin/env node /** * term.js * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License) */ var http = require('http') , express = require('express') , io = require('socket.io') , pty = require('pty.js') , terminal = require('../'); /** * term.js */ process.title = 'term.js'; /** * Dump */ va...
gpl-3.0
deniz1a/OpenRA
OpenRA.Mods.Common/Traits/Voiced.cs
2075
#region Copyright & License Information /* * Copyright 2007-2015 The OpenRA Developers (see AUTHORS) * This file is part of OpenRA, which is free software. It is made * available to you under the terms of the GNU General Public License * as published by the Free Software Foundation. For more information, * see COP...
gpl-3.0
nightauer/quickdic-dictionary.dictionary
jars/icu4j-52_1/main/tests/framework/src/com/ibm/icu/dev/test/AbstractTestLog.java
3718
/** ******************************************************************************* * Copyright (C) 2003-2011, International Business Machines Corporation and * others. All Rights Reserved. ******************************************************************************* */ package com.ibm.icu.dev.test; import java...
apache-2.0
bowdenk7/nodejstools
Nodejs/Product/Nodejs/Debugger/DebugEngine/AD7PendingBreakpoint.cs
11231
//*********************************************************// // Copyright (c) Microsoft. All rights reserved. // // Apache 2.0 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
trekawek/sling
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/context/models/OsgiServiceModel.java
1241
/* * 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 ...
apache-2.0
nvoron23/titan
titan-core/src/main/java/com/thinkaurelius/titan/util/datastructures/IntHashSet.java
1799
package com.thinkaurelius.titan.util.datastructures; import com.carrotsearch.hppc.IntIntOpenHashMap; import com.carrotsearch.hppc.cursors.IntCursor; import java.util.Iterator; /** * Implementation of {@link IntSet} against {@link IntIntOpenHashMap}. * * @author Matthias Broecheler (me@matthiasb.com) */ public cl...
apache-2.0
edombowsky/util
util-hashing/src/main/scala/com/twitter/hashing/Distributor.scala
364
package com.twitter.hashing trait Distributor[A] { def entryForHash(hash: Long): (Long, A) def nodeForHash(hash: Long): A def nodeCount: Int def nodes: Seq[A] } class SingletonDistributor[A](node: A) extends Distributor[A] { def entryForHash(hash: Long) = (hash, node) def nodeForHash(hash: Long) = node ...
apache-2.0
nwjs/blink
Source/platform/TaskSynchronizer.cpp
2644
/* * Copyright (C) 2007, 2008, 2013 Apple 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: * * 1. Redistributions of source code must retain the above copyright * notice, this lis...
bsd-3-clause
MTDdk/FrameworkBenchmarks
frameworks/PHP/sw-fw-less/config/coroutine.php
138
<?php return [ 'enable_preemptive_scheduler' => envInt('COROUTINE_PREEMPTIVE_SCHEDULER', 0), 'hook_flags' => SWOOLE_HOOK_ALL, ];
bsd-3-clause
giantbits/conTainr
protected/modules/containr/extensions/bootstrap/widgets/TbJsonPickerColumn.php
2768
<?php /** * TbJsonPickerColumn class * * The TbJsonPickerColumn works with TbJsonGridView and allows you to create a column that will display a picker element * The picker is a special plugin that renders a dropdown on click, which contents can be dynamically updated. * * @author: antonio ramirez <antonio@clevert...
bsd-3-clause
ericpp/hippyvm
test_phpt/lang/operators/bitwiseOr_variationStr.phpt
12105
--TEST-- Test | operator : various numbers as strings --FILE-- <?php $strVals = array( "0","65","-44", "1.2", "-7.7", "abc", "123abc", "123e5", "123e5xyz", " 123abc", "123 abc", "123abc ", "3.4a", "a5.9" ); error_reporting(E_ERROR); foreach ($strVals as $strVal) { foreach($strVals as $otherVal)...
mit
markogresak/DefinitelyTyped
types/carbon__icons-react/next/TouchInteraction.d.ts
49
export { TouchInteraction as default } from "./";
mit
carlosefr/vagrant
test/unit/plugins/guests/coreos/cap/change_host_name_test.rb
1048
require_relative "../../../../base" describe "VagrantPlugins::GuestCoreOS::Cap::ChangeHostName" do let(:described_class) do VagrantPlugins::GuestCoreOS::Plugin .components .guest_capabilities[:coreos] .get(:change_host_name) end let(:machine) { double("machine") } let(:comm) { VagrantTes...
mit
labdogg1003/monotouch-samples
TransitionsDemo/TransitionsDemo/ViewController.cs
2340
// This file has been autogenerated from a class added in the UI designer. using System; using Foundation; using UIKit; using TransitionsDemo.AnimationControllers; using TransitionsDemo.InteractionControllers; namespace TransitionsDemo { public partial class ViewController : UIViewController, IUIViewControllerTransit...
mit
markogresak/DefinitelyTyped
types/jslib-html5-camera-photo/jslib-html5-camera-photo-tests.ts
2821
import CameraPhoto, { FACING_MODES, IMAGE_TYPES, CaptureConfigOption } from 'jslib-html5-camera-photo'; const videoElement = document.createElement('video'); // pass the video element to the constructor. const cameraPhoto = new CameraPhoto(videoElement); // default camera and resolution cameraPhoto .startCamera(...
mit
brigand/react
fixtures/fiber-debugger/src/describeFibers.js
2574
let nextFiberID = 1; const fiberIDMap = new WeakMap(); function getFiberUniqueID(fiber) { if (!fiberIDMap.has(fiber)) { fiberIDMap.set(fiber, nextFiberID++); } return fiberIDMap.get(fiber); } function getFriendlyTag(tag) { switch (tag) { case 0: return '[indeterminate]'; case 1: return...
mit
GeraintEdwards/joomla-cms
administrator/templates/hathor/html/com_contact/contacts/default.php
10750
<?php /** * @package Joomla.Administrator * @subpackage Template.hathor * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::addIncludePath(JPATH_COMPONENT....
gpl-2.0
malaporte/kaziranga
src/jdk/internal/dynalink/linker/MethodTypeConversionStrategy.java
4644
/* * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
gpl-2.0
bxm156/Teach-Pilot
mod/voicepodcaster/lib/php/common/XmlArchive.php
4364
<?php /* * Created on May 30, 2007 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ class XmlArchive{ var $id; var $nameDisplay; var $preview; var $url; var $param; var $url_params; var $tooltipAvailability; var $tooltipDial; v...
gpl-2.0
justinwm/astor
examples/math_0c1e6fb/src/main/java/org/apache/commons/math3/optim/nonlinear/vector/JacobianMultivariateVectorOptimizer.java
4527
/* * 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 ...
gpl-2.0
Almish/CekeAlmish
components/com_jce/editor/libraries/js/tree.js
5530
/* JCE Editor - 2.4.6 | 19 January 2015 | http://www.joomlacontenteditor.net | Copyright (C) 2006 - 2014 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */ (function($){$.widget("ui.tree",{options:{rootName:'Root',rootClass:'root',loaderClass:'load',collapseTree:...
gpl-2.0
kasobus/EDENS-Mautic
vendor/rackspace/php-opencloud/lib/OpenCloud/CloudMonitoring/Exception/CheckException.php
717
<?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-3.0