code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
# -*- coding: utf-8 -*- """ Python API for language and translation management. """ from collections import namedtuple from django.conf import settings from django.utils.translation import ugettext as _ from dark_lang.models import DarkLangConfig # Named tuples can be referenced using object-like variable # deferen...
louyihua/edx-platform
common/djangoapps/lang_pref/api.py
Python
agpl-3.0
1,986
/* * CommandWithArg.java * * Copyright (C) 2009-12 by RStudio, Inc. * * Unless you have received this program directly from RStudio pursuant * to the terms of a commercial license agreement with RStudio, then * this program is licensed to you under the terms of version 3 of the * GNU Affero General Public Licen...
maligulzar/Rstudio-instrumented
src/gwt/src/org/rstudio/core/client/CommandWithArg.java
Java
agpl-3.0
682
/** * 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...
Guavus/hbase
hbase-common/src/main/java/org/apache/hadoop/hbase/types/OrderedFloat32.java
Java
apache-2.0
2,533
// 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 "base/run_loop.h" #include "base/bind.h" #if defined(OS_WIN) #include "base/message_loop/message_pump_dispatcher.h" #endif namespace base ...
wubenqi/zutils
zutils/base/run_loop.cc
C++
apache-2.0
2,073
require 'chef/provisioning/aws_driver/aws_resource' class Chef::Resource::AwsKeyPair < Chef::Provisioning::AWSDriver::AWSResource aws_sdk_type AWS::EC2::KeyPair, id: :name # Private key to use as input (will be generated if it does not exist) attribute :private_key_path, :kind_of => String # Public key to use...
tarak/chef-provisioning-aws
lib/chef/resource/aws_key_pair.rb
Ruby
apache-2.0
796
/* * Copyright 2003,2004 The Apache Software Foundation * * 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 a...
HubSpot/cglib
cglib/src/main/java/net/sf/cglib/proxy/Mixin.java
Java
apache-2.0
8,394
/** * Copyright 2007-2016, Kaazing Corporation. 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 require...
cmebarrow/gateway
transport/http/src/test/java/org/kaazing/gateway/transport/http/bridge/filter/HttpxeProtocolFilterTest.java
Java
apache-2.0
66,272
/* * 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 ...
pwong-mapr/incubator-drill
exec/java-exec/src/main/java/org/apache/drill/exec/schema/BackedRecord.java
Java
apache-2.0
1,390
/* * Copyright 2012-2017 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...
jbovet/spring-boot
spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/SpyBeanWithNameOnTestFieldForMultipleExistingBeansTests.java
Java
apache-2.0
1,967
/* 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, ...
Stackdriver/heapster
vendor/k8s.io/kubernetes/pkg/kubectl/cmd/cmd_test.go
GO
apache-2.0
6,357
<?php /** * * * Created on July 7, 2007 * * Copyright © 2006 Yuri Astrakhan "<Firstname><Lastname>@gmail.com" * * 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 of the L...
BRL-CAD/web
wiki/includes/api/ApiQueryExtLinksUsage.php
PHP
bsd-2-clause
7,300
/// Copyright (c) 2012 Ecma International. All rights reserved. /** * @path ch15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-93-1.js * @description Object.defineProperties will update [[Value]] attribute of named data property 'P' successfully when [[Configurable]] attribute is true and [[Writable]] attribute is false but no...
Oceanswave/NiL.JS
Tests/tests/sputnik/ch15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-93-1.js
JavaScript
bsd-3-clause
1,285
/// Copyright (c) 2012 Ecma International. All rights reserved. /** * @path ch15/15.4/15.4.4/15.4.4.17/15.4.4.17-7-c-ii-10.js * @description Array.prototype.some - callbackfn is called with 1 formal parameter */ function testcase() { function callbackfn(val) { return val > 10; } ...
Oceanswave/NiL.JS
Tests/tests/sputnik/ch15/15.4/15.4.4/15.4.4.17/15.4.4.17-7-c-ii-10.js
JavaScript
bsd-3-clause
388
/// Copyright (c) 2012 Ecma International. All rights reserved. /** * @path ch10/10.4/10.4.3/10.4.3-1-49gs.js * @description Strict - checking 'this' from a global scope (FunctionExpression with a strict directive prologue defined within a FunctionExpression) * @noStrict */ var f1 = function () { var f = fun...
Oceanswave/NiL.JS
Tests/tests/sputnik/ch10/10.4/10.4.3/10.4.3-1-49gs.js
JavaScript
bsd-3-clause
506
/// Copyright (c) 2012 Ecma International. All rights reserved. /** * @path ch15/15.4/15.4.4/15.4.4.19/15.4.4.19-8-b-16.js * @description Array.prototype.map - decreasing length of array does not delete non-configurable properties */ function testcase() { function callbackfn(val, idx, obj) { ...
Oceanswave/NiL.JS
Tests/tests/sputnik/ch15/15.4/15.4.4/15.4.4.19/15.4.4.19-8-b-16.js
JavaScript
bsd-3-clause
1,006
// Type definitions for riot v2.6.0 // Project: https://github.com/riot/riot // Definitions by: Boriss Nazarovs <https://github.com/Stubb0rn> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace riot { /** * Current version number as string */ const version: string; ...
smrq/DefinitelyTyped
types/riot/index.d.ts
TypeScript
mit
12,881
<?php namespace Concrete\Core\StyleCustomizer\Style; use Core; use \Concrete\Core\StyleCustomizer\Style\Value\ColorValue; use Less_Tree_Color; use Less_Tree_Call; use Less_Tree_Dimension; use View; use Request; use \Concrete\Core\Http\Service\Json; class ColorStyle extends Style { public function render($value =...
LinkedOpenData/challenge2015
docs/concrete5/updates/concrete5.7.5.1_remote_updater/concrete/src/StyleCustomizer/Style/ColorStyle.php
PHP
mit
3,566
/* * 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 Software Foundation. * * This code is distributed in the hope that it will be ...
md-5/jdk10
test/jdk/java/util/concurrent/tck/AtomicBoolean9Test.java
Java
gpl-2.0
7,537
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: #ident "$Id$" /*====== This file is part of PerconaFT. Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved. PerconaFT is free software: you can redistribute it and/or modif...
ChengXiaoZ/MariaDBserver
storage/tokudb/PerconaFT/src/tests/test_4015.cc
C++
gpl-2.0
5,525
<p>Auf dieser Seite k&ouml;nnen Sie eine Nachricht vorbereiten, die erst zu einem sp&auml;teren Zeitpunkt verschickt werden soll. Sie k&ouml;nnen alle erforderlichen Angaben erfassen - ausser an welche Liste(n) die Nachricht versendet werden soll. Dies geschieht erst in dem Moment, wo Sie eine vorbereitete Nachricht ta...
washingtonstateuniversity/WSU-Lists
www/admin/help/de/preparemessage.php
PHP
gpl-2.0
2,382
using System.Web.Mvc; using System.Web.Routing; using SmartStore.Web.Framework.Mvc.Routes; namespace SmartStore.Clickatell { public partial class RouteProvider : IRouteProvider { public void RegisterRoutes(RouteCollection routes) { routes.MapRoute("SmartStore.Clickatell", "Plu...
Li-Yanzhi/SmartStoreNET
src/Plugins/SmartStore.Clickatell/RouteProvider.cs
C#
gpl-3.0
700
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. import os from wptrunner.update.base import Step, StepRunner from wptrunner.update.update import LoadConfig, SyncFromU...
UK992/servo
tests/wpt/update/update.py
Python
mpl-2.0
1,349
define([ 'css!theme/liveblog', 'tmpl!theme/container', 'tmpl!theme/item/base', 'plugins/wrappup-toggle', 'plugins/scroll-pagination', 'plugins/permanent-link', 'plugins/user-comments' ], function(){ });
vladnicoara/SDLive-Blog
plugins/livedesk-embed/gui-themes/themes/tageswoche.min.js
JavaScript
agpl-3.0
209
// Copyright 2016 Canonical Ltd. // Licensed under the AGPLv3, see LICENCE file for details. package logfwd import ( "fmt" "github.com/juju/errors" "github.com/juju/version" "gopkg.in/juju/names.v2" ) // canonicalPEN is the IANA-registered Private Enterprise Number // assigned to Canonical. Among other things, ...
ericsnowcurrently/juju
logfwd/origin.go
GO
agpl-3.0
6,547
/* * 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 ...
ist-dresden/sling
testing/org.apache.sling.testing.paxexam/src/test/java/org/apache/sling/testing/paxexam/SlingOptionsEventadminIT.java
Java
apache-2.0
1,546
import { PlatformRef } from '@angular/core'; export * from './private_export_testing'; /** * @experimental API related to bootstrapping are still under review. */ export declare const platformBrowserDynamicTesting: (extraProviders?: any[]) => PlatformRef; /** * NgModule for testing. * * @stable */ export declare ...
oleksandr-minakov/northshore
ui/node_modules/@angular/platform-browser-dynamic/testing.d.ts
TypeScript
apache-2.0
689
/** * 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...
dennishuo/hadoop
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/amrmproxy/AbstractRequestInterceptor.java
Java
apache-2.0
5,223
// "Replace with Optional.ofNullable() chain" "GENERIC_ERROR_OR_WARNING" import java.util.Optional; class Test { interface V {} interface Type { V getValue(); } // IDEA-179273 public Optional<V> foo(Type arg) { return Optional.ofNullable(arg).map(Type::getValue); } }
siosio/intellij-community
java/java-tests/testData/inspection/conditionalCanBeOptional/afterOptionalReturn.java
Java
apache-2.0
291
/* 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, ...
liyinan926/kubernetes
pkg/kubectl/polymorphichelpers/canbeautoscaled.go
GO
apache-2.0
1,298
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
jasontedor/elasticsearch-hadoop
mr/src/itest/java/org/elasticsearch/hadoop/integration/rest/ssl/BasicSSLServer.java
Java
apache-2.0
5,006
/* * 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; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.integration; import org.elasticsearch.ac...
GlenRSmith/elasticsearch
x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/integration/DocumentLevelSecurityRandomTests.java
Java
apache-2.0
5,357
const url_base = "/permissions-policy/experimental-features/resources/"; window.messageResponseCallback = null; function setFeatureState(iframe, feature, origins) { iframe.setAttribute("allow", `${feature} ${origins};`); } // Returns a promise which is resolved when the <iframe> is navigated to |url| // and "load...
chromium/chromium
third_party/blink/web_tests/external/wpt/permissions-policy/experimental-features/resources/common.js
JavaScript
bsd-3-clause
3,063
/** Added to editors of custom graph types */ [System.AttributeUsage(System.AttributeTargets.All, Inherited = false, AllowMultiple = true)] public class CustomGraphEditorAttribute : System.Attribute { /** Graph type which this is an editor for */ public System.Type graphType; /** Name displayed in the inpector */ ...
NBurrichter/Brainzzz
UnityGame/Brainz/Assets/AstarPathfindingProject/Editor/CustomGraphEditorAttribute.cs
C#
mit
551
# -*- coding: utf-8 -*- import os.path import shutil import uuid import re from django.test import TestCase from django.contrib.auth.models import User from mock import patch, Mock, PropertyMock from docker.errors import APIError as DockerAPIError, DockerException from readthedocs.projects.models import Project from...
stevepiercy/readthedocs.org
readthedocs/rtd_tests/tests/test_doc_building.py
Python
mit
15,211
/* * File: urlstream.cpp * ------------------- * This file contains the implementation of the iurlstream class. * Please see urlstream.h for information about how to use these classes. * * @author Marty Stepp * @version 2015/07/05 * - removed static global Platform variable, replaced by getPlatform as needed *...
shawlu95/SuperWordLadder
lib/StanfordCPPLib/io/urlstream.cpp
C++
mit
2,486
<?php /* * The RandomLib library for securely generating random numbers and strings in PHP * * @author Anthony Ferrara <ircmaxell@ircmaxell.com> * @copyright 2011 The Authors * @license http://www.opensource.org/licenses/mit-license.html MIT License * @version Build @@version@@ */ namespace RandomLi...
masmike/accu
vendor/ircmaxell/random-lib/test/Unit/RandomLib/Mixer/HashTest.php
PHP
mit
1,704
# coding=utf-8 # (c) 2018, NetApp Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from ansible.modules.storage.netapp.netapp_e_mgmt_interface import MgmtInterface from units.modules.utils import AnsibleExitJson, AnsibleFailJson, ModuleTestCase, set_module_args __metac...
thaim/ansible
test/units/modules/storage/netapp/test_netapp_e_mgmt_interface.py
Python
mit
28,142
/********** This library 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 2.1 of the License, or (at your option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.) This libr...
DDTChen/CookieVLC
vlc/contrib/android/live555/liveMedia/QCELPAudioRTPSource.cpp
C++
gpl-2.0
16,387
<?php /** * Shopware 5 * Copyright (c) shopware AG * * According to our dual licensing model, this program can be used either * under the terms of the GNU Affero General Public License, version 3, * or under a proprietary license. * * The texts of the GNU Affero General Public License with an additional * perm...
ShopwareHackathon/shopware_search_optimization
shopware.php
PHP
agpl-3.0
3,731
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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.apa...
zhencui/azure-powershell
src/ServiceManagement/Services/Commands.Test/Environment/GetAzureEnvironmentTests.cs
C#
apache-2.0
3,485
/* * 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 ...
irudyak/ignite
modules/web-console/web-agent/src/main/java/org/apache/ignite/console/demo/AgentMetadataDemo.java
Java
apache-2.0
3,471
package org.apache.lucene.search.similarities; /* * 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 L...
smartan/lucene
src/main/java/org/apache/lucene/search/similarities/LMDirichletSimilarity.java
Java
apache-2.0
3,519
import { ThisSideUp32 } from "../../"; export = ThisSideUp32;
markogresak/DefinitelyTyped
types/carbon__icons-react/lib/this-side-up/32.d.ts
TypeScript
mit
63
// Type definitions for the Facebook Javascript SDK // Project: https://developers.facebook.com/docs/javascript // Definitions by: Amrit Kahlon <https://github.com/amritk/> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import fb = facebook; declare var FB: fb.FacebookStatic; declare namespace face...
subash-a/DefinitelyTyped
facebook-js-sdk/index.d.ts
TypeScript
mit
2,970
var assert = require('assert'); var R = require('..'); describe('add', function() { it('adds together two numbers', function() { assert.strictEqual(R.add(3, 7), 10); }); it('is curried', function() { var incr = R.add(1); assert.strictEqual(incr(42), 43); }); });
kairyan/ramda
test/add.js
JavaScript
mit
287
import { SendToBack32 } from "../../"; export = SendToBack32;
markogresak/DefinitelyTyped
types/carbon__icons-react/lib/send-to-back/32.d.ts
TypeScript
mit
63
<?php namespace CommerceGuys\Intl\Language; use CommerceGuys\Intl\LocaleResolverTrait; use CommerceGuys\Intl\Exception\UnknownLanguageException; /** * Manages languages based on JSON definitions. */ class LanguageRepository implements LanguageRepositoryInterface { use LocaleResolverTrait; /** * Per-l...
bashrc/hubzilla-debian
src/library/intl/src/Language/LanguageRepository.php
PHP
mit
2,786
import { WindGusts24 } from "../../"; export = WindGusts24;
markogresak/DefinitelyTyped
types/carbon__icons-react/lib/wind-gusts/24.d.ts
TypeScript
mit
61
/** * Copyright (c) 2010-2016, openHAB.org and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ package org...
evansj/openhab
bundles/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/model/adapter/TrimToNullStringAdapter.java
Java
epl-1.0
1,031
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2015 - ROLI Ltd. Permission is granted to use this software under the terms of either: a) the GPL v2 (or any later version) b) the Affero GPL v3 Details...
reuk/waveguide
wayverb/JuceLibraryCode/modules/juce_gui_basics/layout/juce_ComponentBuilder.cpp
C++
gpl-2.0
8,800
var URL = require("../url2"); var tests = [ { source: "", target: "", relative: "" }, { source: "foo/bar/", target: "foo/bar/", relative: "" }, { source: "foo/bar/baz", target: "foo/bar/", relative: "./" }, { ...
AlexanderDolgan/sputnik
wp-content/themes/node_modules/gulp.spritesmith/node_modules/url2/test/url2-spec.js
JavaScript
gpl-2.0
2,582
# barber patches to re-route raw compilation via ember compat handlebars class Barber::Precompiler def sources [File.open("#{Rails.root}/vendor/assets/javascripts/handlebars.js"), precompiler] end def precompiler if !@precompiler source = File.read("#{Rails.root}/app/assets/javascripts/disco...
gsambrotta/discourse
lib/freedom_patches/raw_handlebars.rb
Ruby
gpl-2.0
2,215
<?php /** * @package Joomla.UnitTest * @subpackage Linkedin * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ /** * Test class for JLinkedinCommunications. * * @package Joomla.Unit...
philip-sorokin/joomla-cms
tests/unit/suites/libraries/joomla/linkedin/JLinkedinCommunicationsTest.php
PHP
gpl-2.0
10,137
<?php function _wpsc_get_exchange_rate( $from, $to ) { if ( $from == $to ) { return 1; } $key = "wpsc_exchange_{$from}_{$to}"; if ( $rate = get_transient( $key ) ) { return (float) $rate; } $url = add_query_arg( array( 'a' => '1', 'from' => $from, 'to' => $to ), 'http://ww...
ericbarns/WP-e-Commerce
wpsc-includes/currency.helpers.php
PHP
gpl-2.0
1,953
import { Mongo } from "meteor/mongo"; /** * Client side collections */ export const Countries = new Mongo.Collection(null);
deetail/kimchi4u
client/collections/countries.js
JavaScript
gpl-3.0
128
from inspect import ismethod, isfunction import os import time import traceback from CodernityDB.database import RecordDeleted, RecordNotFound from couchpotato import md5, get_db from couchpotato.api import addApiView from couchpotato.core.event import fireEvent, addEvent from couchpotato.core.helpers.encoding import ...
coderb0t/CouchPotatoServer
couchpotato/core/plugins/release/main.py
Python
gpl-3.0
20,734
package aws import ( "fmt" "log" "math" "regexp" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" events "github.com/aws/aws-sdk-go/service/cloudwatchevents" "github.com/hashicorp/terraform...
hartzell/terraform
vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudwatch_event_target.go
GO
mpl-2.0
11,014
from edxmako.shortcuts import render_to_string from pipeline.conf import settings from pipeline.packager import Packager from pipeline.utils import guess_type from static_replace import try_staticfiles_lookup def compressed_css(package_name): package = settings.PIPELINE_CSS.get(package_name, {}) if package: ...
liuqr/edx-xiaodun
common/djangoapps/pipeline_mako/__init__.py
Python
agpl-3.0
2,354
/* * 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 ...
ijokarumawak/nifi
nifi-nar-bundles/nifi-standard-services/nifi-hbase-client-service-api/src/main/java/org/apache/nifi/hbase/DeleteRequest.java
Java
apache-2.0
2,100
// 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. #nullable disable using System; using System.Diagnostics; using Roslyn.Utilities; namespace Microsoft.CodeAnalysi...
physhi/roslyn
src/Workspaces/Core/Portable/Differencing/SequenceEdit.cs
C#
apache-2.0
3,081
// Copyright 2015 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 icmp import ( "fmt" "net" "reflect" "testing" "golang.org/x/net/internal/iana" "golang.org/x/net/ipv4" "golang.org/x/net/ipv6" ) func TestMars...
muzining/net
x/net/icmp/extension_test.go
GO
bsd-3-clause
8,186
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
mxOBS/deb-pkg_trusty_chromium-browser
third_party/libc++/trunk/test/input.output/iostream.format/quoted.manip/quoted.pass.cpp
C++
bsd-3-clause
5,616
/* * Planck.js v0.1.34 * * Copyright (c) 2016-2017 Ali Shakiba http://shakiba.me/planck.js * Copyright (c) 2006-2013 Erin Catto http://www.gphysics.com * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from...
PeterDaveHello/jsdelivr
files/planck/0.1.34/planck-with-testbed.js
JavaScript
mit
464,606
module.exports = function isString (value) { return Object.prototype.toString.call(value) === '[object String]' }
chrisdavidmills/express-local-library
node_modules/helmet-csp/lib/is-string.js
JavaScript
mit
116
/* * Copyright (c) 2007 Mockito contributors * This program is made available under the terms of the MIT License. */ package org.mockitousage.verification; import static org.mockito.Mockito.*; import java.util.LinkedList; import java.util.List; import java.util.Map; import org.junit.Before; import org.junit.Test...
GeeChao/mockito
test/org/mockitousage/verification/NoMoreInteractionsVerificationTest.java
Java
mit
3,508
/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
KatharineYe/ews-java-api
src/main/java/microsoft/exchange/webservices/data/core/request/MoveCopyItemRequest.java
Java
mit
3,795
import { Teammates } from "../../"; export = Teammates;
georgemarshall/DefinitelyTyped
types/carbon__pictograms-react/lib/teammates/index.d.ts
TypeScript
mit
57
self.description = "Install a package from a sync db with fnmatch'ed NoExtract" sp = pmpkg("dummy") sp.files = ["bin/dummy", "usr/share/man/man8", "usr/share/man/man1/dummy.1"] self.addpkg2db("sync", sp) self.option["NoExtract"] = ["usr/share/man/*"] self.args = "-S %s" % sp.name self.addrul...
kylon/pacman-fakeroot
test/pacman/tests/sync502.py
Python
gpl-2.0
513
// 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 "content/browser/renderer_host/media/audio_sync_reader.h" #include <algorithm> #include "base/command_line.h" #include "base/memory/shared_...
qtekfun/htcDesire820Kernel
external/chromium_org/content/browser/renderer_host/media/audio_sync_reader.cc
C++
gpl-2.0
6,518
<?php /** * Discussion * * @package ThematicCoreLibrary * @subpackage Discussion */ /** * Custom callback function to list comments in the Thematic style. * * If you want to use your own comments callback for wp_list_comments, filter list_comments_arg * * @param object $comment * @param array $args * ...
bourroush/blog-17aout
wp-content/themes/thematic/library/extensions/discussion.php
PHP
gpl-2.0
2,891
// Generated by CoffeeScript 1.4.0 (function() { var RoomIO; RoomIO = require('./room').RoomIO; exports.RequestIO = (function() { function RequestIO(socket, request, io) { this.socket = socket; this.request = request; this.manager = io; } RequestIO.prototype.broadcast = function(...
mekinney/transparica
webapp/node_modules/express.io/compiled/request.js
JavaScript
gpl-2.0
1,285
/* * Copyright (c) 2014, 2015, 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 ...
md-5/jdk10
test/jdk/java/awt/datatransfer/DataFlavor/MimeTypeSerializationTest.java
Java
gpl-2.0
3,301
// Copyright 2016 Canonical Ltd. // Licensed under the AGPLv3, see LICENCE file for details. package interact import ( "testing" gc "gopkg.in/check.v1" ) func TestPackage(t *testing.T) { gc.TestingT(t) }
mjs/juju
cmd/juju/interact/package_test.go
GO
agpl-3.0
211
# -*- coding: utf-8 -*- from . import project_sla from . import analytic_account from . import project_sla_control from . import project_issue from . import project_task from . import report
sergiocorato/project-service
project_sla/__init__.py
Python
agpl-3.0
191
from nose.tools import * from framework.mongo import database as db from scripts.remove_wiki_title_forward_slashes import main from tests.base import OsfTestCase from tests.factories import NodeWikiFactory, ProjectFactory class TestRemoveWikiTitleForwardSlashes(OsfTestCase): def test_forward_slash_is_removed_...
rdhyee/osf.io
scripts/tests/test_remove_wiki_title_forward_slashes.py
Python
apache-2.0
1,335
name "runit_test" maintainer "Opscode, Inc." maintainer_email "cookbooks@opscode.com" license "Apache 2.0" description "This cookbook is used with test-kitchen to test the parent, runit cookbok" version "1.0.0"
dialoghq/runit
test/kitchen/cookbooks/runit_test/metadata.rb
Ruby
apache-2.0
258
package hclog import ( "bufio" "bytes" "encoding" "encoding/json" "fmt" "log" "os" "reflect" "runtime" "sort" "strconv" "strings" "sync" "sync/atomic" "time" ) var ( _levelToBracket = map[Level]string{ Debug: "[DEBUG]", Trace: "[TRACE]", Info: "[INFO] ", Warn: "[WARN] ", Error: "[ERROR]", ...
xanzy/terraform-provider-cosmic
vendor/github.com/hashicorp/go-hclog/int.go
GO
apache-2.0
11,348
/* Copyright 2015 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, ...
victorgp/kubernetes
pkg/controller/podautoscaler/horizontal.go
GO
apache-2.0
33,818
// 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/browser/ui/global_error/global_error_service.h" #include <algorithm> #include "base/stl_util.h" #include "chrome/browser/chrome_not...
aospx-kitkat/platform_external_chromium_org
chrome/browser/ui/global_error/global_error_service.cc
C++
bsd-3-clause
3,238
// 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 "google_apis/gaia/gaia_oauth_client.h" #include "base/json/json_reader.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #inc...
Gateworks/platform-external-chromium_org
google_apis/gaia/gaia_oauth_client.cc
C++
bsd-3-clause
13,657
// Copyright 2015 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/browser/usb/usb_chooser_context_factory.h" #include "chrome/browser/content_settings/host_content_settings_map_factory.h" #include "chro...
endlessm/chromium-browser
chrome/browser/usb/usb_chooser_context_factory.cc
C++
bsd-3-clause
1,559
// Code generated by protoc-gen-gogo. // source: combos/both/one.proto // DO NOT EDIT! /* Package one is a generated protocol buffer package. It is generated from these files: combos/both/one.proto It has these top-level messages: Subby SampleOneOf */ package one import proto "github.com/gogo/protobuf/prot...
ae6rt/decap
web/vendor/github.com/gogo/protobuf/test/oneof3/combos/both/one.pb.go
GO
mit
99,707
<?php /** * @package Joomla.UnitTest * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ JLoader::register('JFolder', JPATH_PLATFORM . '/joomla/filesystem/folder.php'); /** * Test class for JFolde...
yiendos/pomander
tests/unit/suites/libraries/joomla/filesystem/JFolderTest.php
PHP
gpl-2.0
10,715
/* * Copyright (c) 2006, 2015, 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 ...
FauxFaux/jdk9-langtools
test/tools/javac/enum/6350057/T6350057.java
Java
gpl-2.0
3,605
<?php /** * @package Joomla.UnitTest * @subpackage Linkedin * * @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ /** * Test class for JLinkedinPeople. * * @package Joomla.UnitTest * ...
810/joomla-cms
tests/unit/suites/libraries/joomla/linkedin/JLinkedinPeopleTest.php
PHP
gpl-2.0
13,369
<?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 an...
akellehe/Restructuring-the-Edifice
wp-includes/ZendGdata-1.11.11/tests/Zend/Gdata/Gbase/QueryTest.php
PHP
gpl-2.0
1,464
<?php /* Copyright (C) 2014 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2015 Frederic France <frederic.france@free.fr> * * 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 So...
atm-robin/dolibarr
htdocs/core/actions_fetchobject.inc.php
PHP
gpl-3.0
1,522
// Inspired from https://github.com/tsi/inlineDisqussions (function () { 'use strict'; var website = openerp.website, qweb = openerp.qweb; website.blog_discussion = openerp.Class.extend({ init: function(options) { var self = this ; self.discus_identifier; ...
jjscarafia/odoo
addons/website_blog/static/src/js/website_blog.inline.discussion.js
JavaScript
agpl-3.0
9,713
/* * Copyright (c) 2005-2009, 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.ap...
madhawa-gunasekara/carbon-commons
components/event/org.wso2.carbon.event.ws/src/main/java/org/wso2/carbon/event/ws/internal/builders/exceptions/InvalidExpirationTimeException.java
Java
apache-2.0
1,026
require "cmd/missing" require "formula" require "keg" require "language/python" require "version" class Volumes def initialize @volumes = get_mounts end def which path vols = get_mounts path # no volume found if vols.empty? return -1 end vol_index = @volumes.index(vols[0]) # ...
wolfd/homebrew
Library/Homebrew/cmd/doctor.rb
Ruby
bsd-2-clause
40,730
require 'formula' class Sratom < Formula homepage 'http://drobilla.net/software/sratom/' url 'http://download.drobilla.net/sratom-0.4.6.tar.bz2' sha1 '5f7d18e4917e5a2fee6eedc6ae06aa72d47fa52a' bottle do cellar :any sha256 "9023b8427d0e4068c7ca9e9a66a18545c51af3e30fcf9566db74aacceff18d2b" => :yosemite ...
robrix/homebrew
Library/Formula/sratom.rb
Ruby
bsd-2-clause
738
// 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 "ui/views/corewm/window_animations.h" #include <math.h> #include <algorithm> #include <vector> #include "base/command_line.h" #include "ba...
DirtyUnicorns/android_external_chromium-org
ui/views/corewm/window_animations.cc
C++
bsd-3-clause
21,476
/* @flow */ function a(x: {[key: string]: ?string}, y: string): string { if (x[y]) { return x[y]; } return ""; } function b(x: {y: {[key: string]: ?string}}, z: string): string { if (x.y[z]) { return x.y[z]; } return ""; } function c(x: {[key: string]: ?string}, y: {z: string}): string { if (x[...
JohnyDays/flow
tests/refinements/property.js
JavaScript
bsd-3-clause
1,303
// Copyright 2012-2015 Oliver Eilhard. All rights reserved. // Use of this source code is governed by a MIT-license. // See http://olivere.mit-license.org/license.txt for details. package elastic import ( "encoding/json" "fmt" "log" "net/url" "strings" "github.com/olivere/elastic/uritemplates" ) var ( _ = fm...
seekingalpha/bosun
vendor/github.com/olivere/elastic/put_mapping.go
GO
mit
5,940
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using UICore; namespace SlimTuneUI.CoreVis { [DisplayName("Hotspots")] public partial class HotSpots : UserControl, IVisualizer { ...
mohdmasd/slimtune
CoreVis/HotSpots.cs
C#
mit
5,633
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace spec\Sylius\Bundle\UserBundle\Reloader; use Doctrine\Common\Persistence\ObjectManager; use ...
wwojcik/Sylius
src/Sylius/Bundle/UserBundle/spec/Reloader/UserReloaderSpec.php
PHP
mit
1,079
/* * Power BI Visualizations * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the ""Software""), to deal * in the Software without restriction, inc...
yduit/PowerBI-visuals
src/Clients/PowerBIVisualsPlayground/sampleDataViews/SalesByCountryData.ts
TypeScript
mit
5,374
<?php /** * @package Joomla.Site * @subpackage mod_custom * * @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; if ($params->def('prepare_content', 1)) { JPluginHe...
810/joomla-cms
modules/mod_custom/mod_custom.php
PHP
gpl-2.0
626
// license:BSD-3-Clause // copyright-holders:Ryan Holtz //============================================================ // // clearreader.cpp - BGFX clear state JSON reader // //============================================================ #include <bgfx/bgfx.h> #include "clearreader.h" #include "clear.h" clear_stat...
johnparker007/mame
src/osd/modules/render/bgfx/clearreader.cpp
C++
gpl-2.0
2,264
/* Copyright 2017 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, ...
shakamunyi/kubernetes
vendor/k8s.io/sample-apiserver/pkg/client/informers/externalversions/wardle/v1alpha1/interface.go
GO
apache-2.0
1,483