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 |
|---|---|---|---|---|---|
// Copyright JS Foundation and other contributors, http://js.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 r... | slaff/jerryscript | tests/jerry-test-suite/11/11.07/11.07.02/11.07.02-003.js | JavaScript | apache-2.0 | 674 |
/*
* 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.
*/
/**
* Contains the action definitions for SLM. For the transport ... | GlenRSmith/elasticsearch | x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/action/package-info.java | Java | apache-2.0 | 490 |
<?php
namespace Sabre\VObject\Recur\EventIterator;
use DateTime;
use DateTimeZone;
use Sabre\VObject\Reader;
class ExpandFloatingTimesTest extends \PHPUnit_Framework_TestCase {
use \Sabre\VObject\PHPUnitAssertions;
function testExpand() {
$input = <<<ICS
BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
UI... | ArcherSys/ArcherSys | vendor/sabre/vobject/tests/VObject/Recur/EventIterator/ExpandFloatingTimesTest.php | PHP | mit | 2,389 |
/*
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, ... | pragkent/aliyun-disk | vendor/k8s.io/kubernetes/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/well_known_annotations.go | GO | mit | 913 |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesRvHookup = (props) => (
<SvgIcon {...props}>
<path d="M20 17v-6c0-1.1-.9-2-2-2H7V7l-3 3 3 3v-2h4v3H4v3c0 1.1.9 2 2 2h2c0 1.66 1.34 3 3 3s3-1.34 3-3h8v-2h-2zm-9 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1... | ichiohta/material-ui | src/svg-icons/places/rv-hookup.js | JavaScript | mit | 534 |
/**
* @abstract
* @class Ext.chart.series.Cartesian
* @extends Ext.chart.series.Series
*
* Common base class for series implementations which plot values using x/y coordinates.
*
* @constructor
*/
Ext.define('Ext.chart.series.Cartesian', {
extend: 'Ext.chart.series.Series',
config: {
/**
... | DawidMyslak/native-vs-html5_android-performance | www/TakePhoto/touch/src/chart/series/Cartesian.js | JavaScript | mit | 3,929 |
package registry
import (
"fmt"
"sort"
"strings"
"text/tabwriter"
"golang.org/x/net/context"
"github.com/docker/docker/api/types"
registrytypes "github.com/docker/docker/api/types/registry"
"github.com/docker/docker/cli"
"github.com/docker/docker/cli/command"
"github.com/docker/docker/opts"
"github.com/do... | Originate/exosphere | vendor/github.com/moby/moby/cli/command/registry/search.go | GO | mit | 3,550 |
/*
* Copyright (C) 2008-2017 TrinityCore <http://www.trinitycore.org/>
*
* 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 License, or (at your
* option) any later ve... | Keldo/TrinityCore | src/server/scripts/Outland/HellfireCitadel/BloodFurnace/boss_the_maker.cpp | C++ | gpl-2.0 | 3,723 |
/*
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, ... | lojies/kubernetes | cmd/kubeadm/app/util/apiclient/init_dryrun.go | GO | apache-2.0 | 6,278 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | wseyler/pentaho-kettle | ui/src/main/java/org/pentaho/di/ui/spoon/SpoonPerspective.java | Java | apache-2.0 | 3,197 |
// Copyright (C) 2004-2014 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... | xinchoubiology/gcc | libstdc++-v3/testsuite/27_io/basic_istream/tellg/wchar_t/sstream.cc | C++ | gpl-2.0 | 2,726 |
#!/usr/bin/python
"""
Ansible module to manage the ssh known_hosts file.
Copyright(c) 2014, Matthew Vernon <mcv21@cam.ac.uk>
This module 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 Li... | andreaso/ansible | lib/ansible/modules/system/known_hosts.py | Python | gpl-3.0 | 12,710 |
// Package logging provides access to the Google Cloud Logging API.
//
// See https://cloud.google.com/logging/docs/
//
// Usage example:
//
// import "google.golang.org/api/logging/v1beta3"
// ...
// loggingService, err := logging.New(oauthHttpClient)
package logging // import "google.golang.org/api/logging/v1be... | BradErz/kops | vendor/google.golang.org/api/logging/v1beta3/logging-gen.go | GO | apache-2.0 | 174,915 |
/*
* 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")... | aaronzirbes/incubator-groovy | src/main/org/codehaus/groovy/ast/stmt/ReturnStatement.java | Java | apache-2.0 | 2,280 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package co... | Helena-High/school-app | node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java | Java | apache-2.0 | 4,366 |
# encoding: utf-8
module Mongoid
module Validatable
# Validates whether or not a field is unique against the documents in the
# database.
#
# @example Define the uniqueness validator.
#
# class Person
# include Mongoid::Document
# field :title
#
# validates_uniqu... | charliehq/mongoid | lib/mongoid/validatable/uniqueness.rb | Ruby | mit | 10,323 |
/*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
package im.actor.runtime.js.crypto;
import com.google.gwt.core.client.JavaScriptObject;
public class RsaKey extends JavaScriptObject {
protected RsaKey() {
}
public final native String getPrivateKey()/*-{ return this.privateKey; }-*/;
publ... | luoxiaoshenghustedu/actor-platform | actor-apps/runtime-js/src/main/java/im/actor/runtime/js/crypto/RsaKey.java | Java | mit | 393 |
// 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.
//
/*=============================================================================
**
**
**
** Purpose: This class i... | swgillespie/coreclr | src/mscorlib/src/System/Threading/ThreadStart.cs | C# | mit | 862 |
<?php
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\Table\d7\FieldDataFieldInteger.
*
* THIS IS A GENERATED FILE. DO NOT EDIT.
*
* @see core/scripts/migrate-db.sh
* @see https://www.drupal.org/sandbox/benjy/2405029
*/
namespace Drupal\migrate_drupal\Tests\Table\d7;
use Drupal\migrate_drupal\Tests\Dump\... | komejo/d8demo-dev | web/core/modules/migrate_drupal/src/Tests/Table/d7/FieldDataFieldInteger.php | PHP | mit | 2,545 |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Build.Logging.StructuredLogger
{
/// <summary>
/// Class representation of a logged item group entry.
/// </summary>
internal class... | cdmihai/msbuild | src/Samples/XmlFileLogger/ObjectModel/ItemGroup.cs | C# | mit | 909 |
// ----------------------------------------------------------------------------------
//
// 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... | AzureAutomationTeam/azure-powershell | src/StackAdmin/Resources/Commands.ResourceManager/Cmdlets/SdkModels/Deployments/PSResourceGroupDeployment.cs | C# | apache-2.0 | 2,004 |
// Copyright 2012 Google Inc. 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 applicabl... | esacosta/u-mooc | edu-courses/assets/js/activity-1.4.js | JavaScript | apache-2.0 | 3,756 |
//// [noImplicitReturnsWithoutReturnExpression.ts]
function isMissingReturnExpression(): number {
return;
}
function isMissingReturnExpression2(): any {
return;
}
function isMissingReturnExpression3(): number|void {
return;
}
function isMissingReturnExpression4(): void {
return;
}
function isMissin... | plantain-00/TypeScript | tests/baselines/reference/noImplicitReturnsWithoutReturnExpression.js | JavaScript | apache-2.0 | 820 |
// 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 "sync/util/cryptographer.h"
#include <algorithm>
#include "base/base64.h"
#include "base/basictypes.h"
#include "base/logging.h"
#include "... | KitKatXperience/platform_external_chromium_org | sync/util/cryptographer.cc | C++ | bsd-3-clause | 10,916 |
/**
* @author TristanVALCKE / https://github.com/Itee
*/
/* global QUnit */
import { PointLightHelper } from '../../../../src/helpers/PointLightHelper';
export default QUnit.module( 'Helpers', () => {
QUnit.module( 'PointLightHelper', () => {
// INHERITANCE
QUnit.todo( "Extending", ( assert ) => {
assert... | Aldrien-/three.js | test/unit/src/helpers/PointLightHelper.tests.js | JavaScript | mit | 745 |
// 2001-11-25 Phil Edwards <pme@gcc.gnu.org>
//
// Copyright (C) 2001-2014 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 Sof... | xinchoubiology/gcc | libstdc++-v3/testsuite/ext/mt_allocator/check_delete.cc | C++ | gpl-2.0 | 1,085 |
/**
* @license
* Copyright 2013 Palantir Technologies, 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... | mo-norant/FinHeartBel | website/node_modules/tslint/lib/rules/memberAccessRule.d.ts | TypeScript | gpl-3.0 | 1,404 |
'use strict';
var fs = require('fs');
var path = require('path');
var readdirp = require('readdirp');
var handlebars = require('handlebars');
var async = require('./async');
/**
* Regex pattern for layout directive. {{!< layout }}
*/
var layoutPattern = /{{!<\s+([A-Za-z0-9\._\-\/]+)\s*}}/;
/**
* Constructor
*/
... | vietpn/ghost-nodejs | node_modules/express-hbs/lib/hbs.js | JavaScript | mit | 17,800 |
// 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.IO;
namespace System.Net
{
/// <summary>
/// <para>The FtpWebResponse class contains the resul... | krk/corefx | src/System.Net.Requests/src/System/Net/FtpWebResponse.cs | C# | mit | 5,923 |
WebMock.disable_net_connect!(allow: 'coveralls.io')
# iTunes Lookup API
RSpec.configure do |config|
config.before(:each) do
# iTunes Lookup API by Apple ID
["invalid", "", 0, '284882215', ['338986109', 'FR']].each do |current|
if current.kind_of? Array
id = current[0]
country = current[... | mathiasAichinger/fastlane_core | spec/itunes_search_api_spec.rb | Ruby | mit | 2,907 |
var baz = "baz";
export default baz;
| EliteScientist/webpack | test/statsCases/import-context-filter/templates/baz.noimport.js | JavaScript | mit | 38 |
define(
[
"js/views/baseview", "underscore", "js/models/metadata", "js/views/abstract_editor",
"js/models/uploads", "js/views/uploads",
"js/models/license", "js/views/license",
"js/views/video/transcripts/metadata_videolist",
"js/views/video/translations_editor"
],
functi... | MakeHer/edx-platform | cms/static/js/views/metadata.js | JavaScript | agpl-3.0 | 21,517 |
# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
require File.expand_path(File.... | srinuvasuv/fat_free_crm | spec/controllers/entities/campaigns_controller_spec.rb | Ruby | mit | 24,917 |
<?php
/**
* Unit test class for the MultiLineAssignment sniff.
*
* PHP version 5
*
* @category PHP
* @package PHP_CodeSniffer
* @author Greg Sherwood <gsherwood@squiz.net>
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licen... | danalec/dotfiles | sublime/.config/sublime-text-3/Packages/anaconda_php/plugin/handlers_php/linting/phpcs/CodeSniffer/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php | PHP | mit | 1,893 |
<?php
global $wpdb, $wp_version, $yarpp;
/* Enforce YARPP setup: */
$yarpp->enforce();
if(!$yarpp->enabled() && !$yarpp->activate()) {
echo '<div class="updated">'.__('The YARPP database has an error which could not be fixed.','yarpp').'</div>';
}
/* Check to see that templates are in the right place */
if (!$ya... | sarahkpeck/it-starts-with | wp-content/plugins/yet-another-related-posts-plugin/includes/yarpp_options.php | PHP | gpl-2.0 | 5,985 |
/**
* Copyright (c) 2016 hustcc
* License: MIT
* https://github.com/hustcc/timeago.js
**/
/* jshint expr: true */
!function (root, factory) {
if (typeof module === 'object' && module.exports)
module.exports = factory(root);
else
root.timeago = factory(root);
}(typeof window !== 'undefined' ? w... | froala/cdnjs | ajax/libs/timeago.js/2.0.0/timeago.js | JavaScript | mit | 8,824 |
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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 agre... | akosyakov/intellij-community | platform/usageView/src/com/intellij/usages/impl/GroupNode.java | Java | apache-2.0 | 11,143 |
package testclient
import (
ktestclient "k8s.io/kubernetes/pkg/client/testclient"
"k8s.io/kubernetes/pkg/fields"
"k8s.io/kubernetes/pkg/labels"
"k8s.io/kubernetes/pkg/watch"
templateapi "github.com/openshift/origin/pkg/template/api"
)
// FakeTemplates implements TemplateInterface. Meant to be embedded into a st... | domenicbove/origin | pkg/client/testclient/fake_templates.go | GO | apache-2.0 | 2,068 |
package im.actor.model.api.rpc;
/*
* Generated by the Actor API Scheme generator. DO NOT EDIT!
*/
import im.actor.model.droidkit.bser.Bser;
import im.actor.model.droidkit.bser.BserParser;
import im.actor.model.droidkit.bser.BserObject;
import im.actor.model.droidkit.bser.BserValues;
import im.actor.model.droidkit.... | Rogerlin2013/actor-platform | actor-apps/core/src/main/java/im/actor/model/api/rpc/RequestSendMessage.java | Java | mit | 2,557 |
require "spec_helper"
describe Mongoid::Relations::Referenced::In do
let(:person) do
Person.create
end
describe "#=" do
context "when the relation is named target" do
let(:target) do
User.new
end
context "when the relation is referenced from an embeds many" do
cont... | peterwillcn/mongoid | spec/mongoid/relations/referenced/in_spec.rb | Ruby | mit | 30,037 |
// 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 Microsoft.Win32.SafeHandles;
using System.Diagnostics;
using System.Globalization;
using System.Security.Crypt... | ptoonen/corefx | src/Common/src/System/Net/Security/CertificateValidation.Unix.cs | C# | mit | 2,411 |
/* ------------------------------------------------------------------
* Copyright (C) 1998-2009 PacketVideo
*
* 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.o... | raj-bhatia/grooveip-ios-public | submodules/externals/opencore-amr/opencore/codecs_v2/audio/gsm_amr/amr_wb/dec/src/q_gain2_tab.cpp | C++ | gpl-2.0 | 5,030 |
require 'will_paginate/core_ext'
module WillPaginate
# A mixin for ActiveRecord::Base. Provides +per_page+ class method
# and hooks things up to provide paginating finders.
#
# Find out more in WillPaginate::Finder::ClassMethods
#
module Finder
def self.included(base)
base.extend ClassMethods
... | gkneighb/insoshi | vendor/plugins/will_paginate/lib/will_paginate/finder.rb | Ruby | agpl-3.0 | 10,582 |
//
// basic_serial_port.hpp
// ~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
// Copyright (c) 2008 Rep Invariant Systems, Inc. (info@repinvariant.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or c... | julien3/vertxbuspp | vertxbuspp/asio/include/asio/basic_serial_port.hpp | C++ | apache-2.0 | 24,579 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See the LICENSE file in builder/azure for license information.
package arm
import (
"golang.org/x/crypto/ssh"
"testing"
)
func TestFart(t *testing.T) {
}
func TestAuthorizedKeyShouldParse(t *testing.T) {
testSubject,... | stardog-union/stardog-graviton | vendor/github.com/mitchellh/packer/builder/azure/arm/openssh_key_pair_test.go | GO | apache-2.0 | 980 |
import {isPresent, RegExpWrapper, StringWrapper} from 'angular2/src/core/facade/lang';
import {MapWrapper} from 'angular2/src/core/facade/collection';
import {Parser} from 'angular2/src/core/change_detection/change_detection';
import {CompileStep} from './compile_step';
import {CompileElement} from './compile_element... | shahata/angular | modules/angular2/src/core/render/dom/compiler/property_binding_parser.ts | TypeScript | apache-2.0 | 4,415 |
public class Test {
void fooBarGoo() {
try {}
finally {}
fbg<caret>
}
} | smmribeiro/intellij-community | java/java-tests/testData/codeInsight/completion/normal/MethodCallAfterFinally.java | Java | apache-2.0 | 87 |
import frappe
def execute():
duplicates = frappe.db.sql("""select email_group, email, count(name)
from `tabEmail Group Member`
group by email_group, email
having count(name) > 1""")
# delete all duplicates except 1
for email_group, email, count in duplicates:
frappe.db.sql("""delete from `tabEmail Group Me... | hassanibi/erpnext | erpnext/patches/v6_2/remove_newsletter_duplicates.py | Python | gpl-3.0 | 407 |
import { Subscriber } from '../Subscriber';
import { tryCatch } from '../util/tryCatch';
import { errorObject } from '../util/errorObject';
/**
* Compares all values of two observables in sequence using an optional comparor function
* and returns an observable of a single boolean value representing whether or not the... | rospilot/rospilot | share/web_assets/nodejs_deps/node_modules/rxjs/_esm2015/operators/sequenceEqual.js | JavaScript | apache-2.0 | 4,896 |
/*
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, ... | wjiangjay/origin | vendor/k8s.io/kubernetes/pkg/volume/aws_ebs/aws_ebs_block.go | GO | apache-2.0 | 6,460 |
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | npuichigo/ttsflow | third_party/tensorflow/tensorflow/core/common_runtime/session_factory.cc | C++ | apache-2.0 | 4,469 |
/*
* 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... | queirozfcom/elasticsearch | core/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/InternalTerms.java | Java | apache-2.0 | 10,492 |
// Copyright 2015 Google Inc. 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... | dmirubtsov/k8s-executor | vendor/k8s.io/kubernetes/vendor/github.com/google/cadvisor/info/v2/conversion.go | GO | apache-2.0 | 7,941 |
cask 'netbeans-java-se' do
version '8.2'
sha256 '91652f03d8abba0ae9d76a612ed909c9f82e4f138cbd510f5d3679280323011b'
url "https://download.netbeans.org/netbeans/#{version}/final/bundles/netbeans-#{version}-javase-macosx.dmg"
name 'NetBeans IDE for Java SE'
homepage 'https://netbeans.org/'
pkg "NetBeans #{ve... | wastrachan/homebrew-cask | Casks/netbeans-java-se.rb | Ruby | bsd-2-clause | 426 |
<?php
/*
* Copyright 2014 Google 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 agreed t... | drthomas21/WordPress_Tutorial | wordpress_htdocs/wp-content/plugins/swg-youtube-vids/vendor/google/apiclient-services/src/Google/Service/Dataproc/DataprocEmpty.php | PHP | apache-2.0 | 667 |
<?php
/*
* Copyright 2014 Google 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 agreed t... | drthomas21/WordPress_Tutorial | wordpress_htdocs/wp-content/plugins/swg-youtube-vids/vendor/google/apiclient-services/src/Google/Service/DoubleClickBidManager/QueryMetadata.php | PHP | apache-2.0 | 3,146 |
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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 agre... | samthor/intellij-community | platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesViewContentEP.java | Java | apache-2.0 | 3,337 |
package com.marshalchen.common.demoofui.showcaseview.legacy;
import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Toast;
import com.marshalchen.common.demoofui.R;
public class... | cymcsg/UltimateAndroid | deprecated/UltimateAndroidNormal/DemoOfUI/src/com/marshalchen/common/demoofui/showcaseview/legacy/MultipleShowcaseSampleActivity.java | Java | apache-2.0 | 2,332 |
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2014-Today OpenERP SA (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms ... | diogocs1/comps | web/addons/sale_layout/models/sale_layout.py | Python | apache-2.0 | 4,907 |
/*
* Copyright 2012, 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | valery-barysok/Apktool | brut.apktool.smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/DexBackedDexFile.java | Java | apache-2.0 | 10,213 |
/* Copyright 2012 Mozilla 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 applicable law or agreed... | sreym/cdnjs | ajax/libs/pdf.js/1.3.177/pdf.js | JavaScript | mit | 313,996 |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | marsorp/blog | presto166/presto-main/src/main/java/com/facebook/presto/sql/planner/sanity/NoSubqueryExpressionLeftChecker.java | Java | apache-2.0 | 1,903 |
var FormData = require('form-data');
function form(obj) {
var form = new FormData();
if (obj) {
Object.keys(obj).forEach(function (name) {
form.append(name, obj[name]);
});
}
return form;
}
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = form;... | carmine/northshore | ui/node_modules/popsicle/dist/form.js | JavaScript | apache-2.0 | 353 |
if (!self.GLOBAL || self.GLOBAL.isWindow()) {
test(() => {
assert_equals(document.title, "foo");
}, '<title> exists');
test(() => {
assert_equals(document.querySelectorAll("meta[name=timeout][content=long]").length, 1);
}, '<meta name=timeout> exists');
}
scripts.push('expect-title-meta.js');
| scheib/chromium | third_party/blink/web_tests/external/wpt/infrastructure/server/resources/expect-title-meta.js | JavaScript | bsd-3-clause | 312 |
"""
By specifying the 'proxy' Meta attribute, model subclasses can specify that
they will take data directly from the table of their base class table rather
than using a new table of their own. This allows them to act as simple proxies,
providing a modified interface to the data from the base class.
"""
from django.db ... | benjaminjkraft/django | tests/proxy_models/models.py | Python | bsd-3-clause | 4,514 |
/*
*
* 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"); y... | alejo8591/cyav | unidad-4/testappavantel3/plugins/org.apache.cordova.network-information/src/firefoxos/NetworkProxy.js | JavaScript | mit | 2,982 |
/*
* bag.js - js/css/other loader + kv storage
*
* Copyright 2013-2014 Vitaly Puzrin
* https://github.com/nodeca/bag.js
*
* License MIT
*/
/*global define*/
(function (root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(factory);
} else if (typeof module === 'obje... | kiwi89/cdnjs | ajax/libs/bagjs/1.0.0/bag.js | JavaScript | mit | 24,235 |
// Copyright (C) 2012-2015 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... | zjh171/gcc | libstdc++-v3/testsuite/23_containers/unordered_map/debug/iterator_self_move_assign_neg.cc | C++ | gpl-2.0 | 1,039 |
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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 agre... | consulo/consulo-apache-subversion | src/main/java/org/jetbrains/idea/svn/SvnCopiesRefreshManager.java | Java | apache-2.0 | 1,939 |
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2013 Erwin Coumans http://bulletphysics.org
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 the use of this software.
Permission is grant... | LauriM/PropellerEngine | thirdparty/Bullet/src/Bullet3Collision/BroadPhaseCollision/b3DynamicBvh.cpp | C++ | bsd-2-clause | 36,826 |
/*!
* Cropper v0.4.0
* https://github.com/fengyuanchen/cropperjs
*
* Copyright (c) 2015 Fengyuan Chen
* Released under the MIT license
*
* Date: 2015-12-02T06:35:32.008Z
*/
(function (global, factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
module.exports = g... | redmunds/cdnjs | ajax/libs/cropperjs/0.4.0/cropper.js | JavaScript | mit | 83,381 |
var isIterateeCall = require('./isIterateeCall'),
rest = require('../rest');
/**
* Creates a function like `_.assign`.
*
* @private
* @param {Function} assigner The function to assign values.
* @returns {Function} Returns the new assigner function.
*/
function createAssigner(assigner) {
return rest(functio... | zverevalexei/bierman-topology | web/node_modules/bower/node_modules/lodash/internal/createAssigner.js | JavaScript | mit | 984 |
/*
Copyright The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softw... | Stackdriver/heapster | vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/batch/internalversion/fake/fake_job.go | GO | apache-2.0 | 4,578 |
cask 'gqrx' do
version '2.11.5'
sha256 '896cefcb2825840178b6dbfb894b01543b1c8225539e6969052133223a59ffee'
# github.com/csete/gqrx was verified as official when first introduced to the cask
url "https://github.com/csete/gqrx/releases/download/v#{version.major_minor_patch}/Gqrx-#{version}.dmg"
appcast 'https:/... | reelsense/homebrew-cask | Casks/gqrx.rb | Ruby | bsd-2-clause | 1,698 |
/*
* Copyright 2000-2012 JetBrains s.r.o.
*
* 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 agre... | ivan-fedorov/intellij-community | plugins/svn4idea/src/org/jetbrains/idea/svn/svnkit/lowLevel/SVNStoppableInputStream.java | Java | apache-2.0 | 6,260 |
/*
* Copyright 2000-2013 JetBrains s.r.o.
*
* 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 agre... | caot/intellij-community | platform/bootstrap/src/com/intellij/ide/WindowsCommandLineProcessor.java | Java | apache-2.0 | 2,035 |
/// <reference path="../../typings/_custom.d.ts" />
/*
* TODO: ES5 for now until I make a webpack plugin for protractor
*/
describe('App', function() {
var subject;
var result;
beforeEach(function() {
browser.get('/');
});
afterEach(function() {
expect(subject).toEqual(result);
});
it('sh... | yanivefraim/angular2-webpack-starter | test/app/app.e2e.js | JavaScript | mit | 916 |
#pragma once
#define WIN32_MEAN_AND_LEAN
#include <Windows.h>
#undef WIN32_MEAN_AND_LEAN
#include <mfapi.h>
#include <mfidl.h>
#include <stdint.h>
#include <vector>
#include <util/windows/ComPtr.hpp>
#define MF_LOG(level, format, ...) \
blog(level, "[Media Foundation encoder]: " format, ##__VA_ARGS__)
#define MF_... | Palakis/obs-studio | plugins/win-mf/mf-aac-encoder.hpp | C++ | gpl-2.0 | 2,383 |
<?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 ... | sorted2323/msi | testauthorize/report/courseoverview/version.php | PHP | gpl-3.0 | 1,219 |
using System;
using NLog;
using NLog.Targets;
using NLog.Targets.Wrappers;
class Example
{
static void Main(string[] args)
{
try
{
NLog.Internal.InternalLogger.LogToConsole = true;
NLog.Internal.InternalLogger.LogLevel = LogLevel.Trace;
Console.WriteLine("Se... | reasyrf/XBeeMultiTerminal | src/NLog/examples/targets/Configuration API/Mail/Buffered/Example.cs | C# | gpl-3.0 | 1,532 |
"""
SCGI-->WSGI application proxy, "SWAP".
(Originally written by Titus Brown.)
This lets an SCGI front-end like mod_scgi be used to execute WSGI
application objects. To use it, subclass the SWAP class like so::
class TestAppHandler(swap.SWAP):
def __init__(self, *args, **kwargs):
self.prefix =... | endlessm/chromium-browser | third_party/catapult/third_party/Paste/paste/util/scgiserver.py | Python | bsd-3-clause | 5,612 |
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softw... | emelyan1987/FoodDelivery | tests/system/core/Utf8.php | PHP | mit | 4,412 |
/**
* Copyright 2013 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 agreed to ... | demns/todomvc-perf-comparison | todomvc/react/node_modules/reactify/node_modules/react-tools/node_modules/jstransform/visitors/__tests__/type-function-syntax-test.js | JavaScript | mit | 7,860 |
<?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... | angusty/symfony-study | vendor/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetRunningConferenceResponse.php | PHP | mit | 1,572 |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="it_IT">
<context>
<name>VTranslateMeasurements</name>
<message>
<location filename="../../src/libs/vpatterndb/vtranslatemeasurements.cpp" line="190"/>
<source>height</source>
<comment>Name in a formula. Don&... | FashionFreedom/Seamly2D | share/translations/measurements_p8_it_IT.ts | TypeScript | gpl-3.0 | 231,740 |
package compute
// SecurityApplicationsClient is a client for the Security Application functions of the Compute API.
type SecurityApplicationsClient struct {
ResourceClient
}
// SecurityApplications obtains a SecurityApplicationsClient which can be used to access to the
// Security Application functions of the Compu... | TheWeatherCompany/terraform | vendor/github.com/hashicorp/go-oracle-terraform/compute/security_applications.go | GO | mpl-2.0 | 5,793 |
package matchers
import (
"fmt"
"reflect"
"strings"
"github.com/onsi/gomega/format"
"gopkg.in/yaml.v2"
)
type MatchYAMLMatcher struct {
YAMLToMatch interface{}
}
func (matcher *MatchYAMLMatcher) Match(actual interface{}) (success bool, err error) {
actualString, expectedString, err := matcher.toStrings(actua... | KarolKraskiewicz/autoscaler | vertical-pod-autoscaler/vendor/github.com/onsi/gomega/matchers/match_yaml_matcher.go | GO | apache-2.0 | 2,453 |
#
# Author:: Joe Williams (<joe@joetify.com>)
# Author:: Tyler Cloke (<tyler@opscode.com>)
# Copyright:: Copyright (c) 2009 Joe Williams
# 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 ma... | ckaushik/chef | lib/chef/resource/mdadm.rb | Ruby | apache-2.0 | 2,207 |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... | Piicksarn/cdnjs | ajax/libs/forerunnerdb/1.3.50/fdb-core+views.js | JavaScript | mit | 223,891 |
// 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.
/******************************************************************************
* This file is auto-generated from ... | krk/coreclr | tests/src/JIT/HardwareIntrinsics/X86/Bmi1.X64/TrailingZeroCount.UInt64.cs | C# | mit | 7,684 |
<?php
/**
* @file
* Contains \Drupal\toolbar\Controller\ToolbarController.
*/
namespace Drupal\toolbar\Controller;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Ajax\AjaxResponse;
use Drupal\Core\Controller\ControllerBase;
use Drupal\toolbar\Ajax\SetSubtreesCommand;
/**
* Defines a controller for the too... | komejo/article-test | web/core/modules/toolbar/src/Controller/ToolbarController.php | PHP | gpl-2.0 | 1,674 |
# orm/exc.py
# Copyright (C) 2005-2016 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""SQLAlchemy ORM exceptions."""
from .. import exc as sa_exc, util
NO_STATE = (Attribut... | pcu4dros/pandora-core | workspace/lib/python3.5/site-packages/sqlalchemy/orm/exc.py | Python | mit | 5,439 |
package network
// Copyright (c) Microsoft and contributors. 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
//
// Unl... | kgrygiel/autoscaler | vertical-pod-autoscaler/vendor/github.com/Azure/azure-sdk-for-go/arm/network/expressroutecircuitpeerings.go | GO | apache-2.0 | 16,778 |
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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 agre... | asedunov/intellij-community | xml/dom-openapi/src/com/intellij/util/xml/DomNameStrategy.java | Java | apache-2.0 | 1,707 |
--TEST--
phpunit --configuration tests/_files/phpunit-example-extension
--FILE--
<?php
$_SERVER['argv'][1] = '--configuration';
$_SERVER['argv'][2] = __DIR__ . '/../_files/phpunit-example-extension';
require __DIR__ . '/../bootstrap.php';
PHPUnit\TextUI\Command::main();
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and... | nusendra/nusendra-blog | vendor/phpunit/phpunit/tests/end-to-end/phar-extension.phpt | PHP | mit | 597 |
package storage
import (
"fmt"
"path"
"strings"
"github.com/docker/distribution/digest"
)
const storagePathVersion = "v2"
// pathMapper maps paths based on "object names" and their ids. The "object
// names" mapped by pathMapper are internal to the storage system.
//
// The path layout in the storage backend is... | philiplb/flynn | vendor/github.com/docker/distribution/registry/storage/paths.go | GO | bsd-3-clause | 16,435 |
import {Credentials} from '../credentials';
import {AWSError} from '../error';
import STS = require('../../clients/sts');
export class TemporaryCredentials extends Credentials {
/**
* Creates a new temporary credentials object.
* @param {Object} options - a map of options that are passed to the AWS.STS.a... | ChaseGHMU/AlexaSymptomChecker | src/node_modules/aws-sdk/lib/credentials/temporary_credentials.d.ts | TypeScript | mit | 1,654 |
<?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... | T0MM0R/magento | web/lib/Zend/View/Helper/Cycle.php | PHP | gpl-2.0 | 4,843 |
<?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\Security\Guard\Firewall;
use Symfony\Component\HttpFo... | toncatalansuazo/SymfonyDashboard | vendor/symfony/symfony/src/Symfony/Component/Security/Guard/Firewall/GuardAuthenticationListener.php | PHP | mit | 9,036 |
/**
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* Unobtrusive Form Validation library
*
* Inspired by: Chris Campbell <www.particletree.com>
*
* @package Joomla.Framework
* @subpackage ... | google-code/asianspecialroad | plugins/media/system/js/validate-jquery-uncompressed.js | JavaScript | gpl-2.0 | 5,696 |