repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
dmlloyd/openjdk-modules | jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/reader/xmlschema/ct/ChoiceContentComplexTypeBuilder.java | 3137 | /*
* Copyright (c) 1997, 2012, 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 ... | gpl-2.0 |
PitonFoundation/Data-Engine | sites/all/libraries/leaflet/spec/suites/dom/DomEventSpec.js | 2698 | describe('DomEvent', function() {
var el;
function simulateClick(el) {
if (document.createEvent) {
var e = document.createEvent('MouseEvents');
e.initMouseEvent('click', true, true, window,
0, 0, 0, 0, 0, false, false, false, false, 0, null);
return el.dispatchEvent(e);
} else if (el.fire... | gpl-2.0 |
msfuae/bscms-en | sites/all/modules/contrib/ultimate_cron/plugins/ultimate_cron/logger/database.class.php | 14492 | <?php
/**
* @file
* Database logger for Ultimate Cron.
*/
define('ULTIMATE_CRON_DATABASE_LOGGER_CLEANUP_METHOD_DISABLED', 1);
define('ULTIMATE_CRON_DATABASE_LOGGER_CLEANUP_METHOD_EXPIRE', 2);
define('ULTIMATE_CRON_DATABASE_LOGGER_CLEANUP_METHOD_RETAIN', 3);
/**
* Class for using database as log storage.
*/
class... | gpl-2.0 |
quantsini/cog | Frameworks/TagLib/taglib/taglib/mpeg/mpegproperties.cpp | 7023 | /***************************************************************************
copyright : (C) 2002 - 2008 by Scott Wheeler
email : wheeler@kde.org
***************************************************************************/
/************************************************************... | gpl-2.0 |
sgaluzin/pechki | administrator/components/com_jshopping/models/statictext.php | 829 | <?php
/**
* @version 4.6.0 26.06.2014
* @author MAXXmarketing GmbH
* @package Jshopping
* @copyright Copyright (C) 2010 webdesigner-profi.de. All rights reserved.
* @license GNU/GPL
*/
defined('_JEXEC') or die('Restricted access');
jimport( 'joomla.application.component.model');
class Jshoppin... | gpl-2.0 |
pspanja/ezpublish-kernel | eZ/Publish/API/Repository/Values/ContentType/ContentTypeDraft.php | 455 | <?php
/**
* File containing the eZ\Publish\API\Repository\Values\ContentType\ContentTypeDraft class.
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
namespace eZ\Publish\API\Repository\Va... | gpl-2.0 |
numo16/wesnoth | src/hotkey_handler_sp.hpp | 2303 | /*
Copyright (C) 2014 - 2015 by Chris Beck <render787@gmail.com>
Part of the Battle for Wesnoth Project http://www.wesnoth.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 v... | gpl-2.0 |
Sweetgrassbuffalo/ReactionSweeGrass-v2 | imports/plugins/included/shipping-rates/server/hooks/hooks.js | 2118 | import { check } from "meteor/check";
import { Shipping, Packages } from "/lib/collections";
import { Logger, Reaction, Hooks } from "/server/api";
import { Cart as CartSchema } from "/lib/collections/schemas";
// callback ran on getShippingRates hook
function getShippingRates(rates, cart) {
check(cart, CartSchema);... | gpl-3.0 |
Git-Host/Android-IMSI-Catcher-Detector | app/src/main/java/com/SecUpwN/AIMSICD/enums/StatesDbViewer.java | 1738 | /* Android IMSI-Catcher Detector | (c) AIMSICD Privacy Project
* -----------------------------------------------------------
* LICENSE: http://git.io/vki47 | TERMS: http://git.io/vki4o
* -----------------------------------------------------------
*/
package com.SecUpwN.AIMSICD.enums;
import android.content.Conte... | gpl-3.0 |
berfinsari/metricbeat | membeat/vendor/github.com/elastic/beats/packetbeat/flows/flow.go | 565 | package flows
import (
"sync/atomic"
"time"
)
type biFlow struct {
id rawFlowID
killed uint32
createTS time.Time
ts time.Time
dir flowDirection
stats [2]*flowStats
prev, next *biFlow
}
type Flow struct {
stats *flowStats
}
func newBiFlow(id rawFlowID, ts time.Time, dir flowDirec... | gpl-3.0 |
SlateScience/MozillaJS | js/src/jit-test/tests/jaeger/recompile/bug676764.js | 191 |
try { with( {"a":1} ) {
(function () {
for (;;) {
t
}
})()
} } catch (e) {}
with( {"b":2} ) {
(function () {
for (b = 0; b < 18; ++b) {}
})();
}
| mpl-2.0 |
gody01/SuiteCRM | modules/Emails/vardefs.php | 26332 | <?php
/**
*
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
*
* SuiteCRM is an extension to SugarCRM Community Edition developed by SalesAgility Ltd.
* Copyright (C) 2011 - 2018 SalesAgility Ltd.
*
* This program is f... | agpl-3.0 |
kerautret/DGtal0.6-ForIPOL | src/boost-1.75/boost/accumulators/statistics/sum.hpp | 3884 | ///////////////////////////////////////////////////////////////////////////////
// sum.hpp
//
// Copyright 2005 Eric Niebler. 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)
#ifndef BOOST_ACCUMULATORS_STATISTICS... | lgpl-3.0 |
Phaneendra-Huawei/demo | protocols/ospf/protocol/src/main/java/org/onosproject/ospf/protocol/lsa/linksubtype/LinkSubTypes.java | 1358 | /*
* Copyright 2016-present Open Networking Laboratory
*
* 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 appli... | apache-2.0 |
shahrzadmn/skia | tests/RefDictTest.cpp | 2399 | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkRefDict.h"
#include "Test.h"
class TestRC : public SkRefCnt {
public:
private:
typedef SkRefCnt INHERITED;
};
DEF_TEST(RefDict, reporter) {
TestRC ... | apache-2.0 |
zgchizi/oppia-uc | core/templates/dev/head/components/RatingDisplayDirectiveSpec.js | 3364 | // Copyright 2014 The Oppia 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 ap... | apache-2.0 |
mbrukman/angular | modules/angular2/src/di/injector.ts | 28635 | import {Map, List, MapWrapper, ListWrapper} from 'angular2/src/facade/collection';
import {ResolvedBinding, Binding, Dependency, BindingBuilder, bind} from './binding';
import {
AbstractBindingError,
NoBindingError,
CyclicDependencyError,
InstantiationError,
InvalidBindingError,
OutOfBoundsError
} from './e... | apache-2.0 |
mdaniel/intellij-community | platform/platform-impl/src/com/intellij/ide/gdpr/ConsentConfigurable.java | 1362 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.gdpr;
import com.intellij.ide.IdeBundle;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.options.ConfigurableBase... | apache-2.0 |
leafclick/intellij-community | platform/util/ui/src/com/intellij/util/ui/MouseEventHandler.java | 1454 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.ui;
import javax.swing.event.MouseInputListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelE... | apache-2.0 |
mcdan/sling | bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrNodeResourceIterator.java | 5194 | /*
* 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 |
rowanmiller/Demo-MVADec14 | StartingSource/CycleSales/src/CycleSales/node_modules/grunt-bower-task/node_modules/es5-ext/array/#/contains.js | 185 | 'use strict';
var indexOf = require('./e-index-of');
module.exports = function (searchElement/*, position*/) {
return indexOf.call(this, searchElement, arguments[1]) > -1;
};
| apache-2.0 |
tunneln/CarnotKE | jyhton/out/production/jyhton/test323.py | 725 | """
Tests using a path inside a zip file for zip imports
"""
import support
import zipfile, time
def addZipEntry(zip, name, data):
entry = zipfile.ZipInfo()
entry.filename = name
entry.date_time = time.gmtime(time.time())
zip.writestr(entry, data)
zip = zipfile.ZipFile("test323.zip", "w", zipfile.ZI... | apache-2.0 |
GunoH/intellij-community | plugins/lombok/testData/action/delombok/builder/afterBuilderSimplePredefined.java | 1205 | public class BuilderSimplePreDefined {
private int myInt;
private String myString;
BuilderSimplePreDefined(int myInt, String myString) {
this.myInt = myInt;
this.myString = myString;
}
public static BuilderSimplePreDefinedBuilder builder() {
return new BuilderSimplePreDefinedBuilder();
}
st... | apache-2.0 |
Maccimo/intellij-community | java/java-tests/testData/inspection/patternVariableCanBeUsed/beforeSimpleNot.java | 167 | // "Replace 's' with pattern variable" "false"
class X {
void test(Object obj) {
if (!(obj instanceof String)) {
String <caret>s = (String)obj;
}
}
} | apache-2.0 |
christophd/camel | components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/csv/BindySimpleCsvAutospanLineTest.java | 3073 | /*
* 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 |
krousey/kube-deploy | imagebuilder/vendor/google.golang.org/api/container/v1/container-gen.go | 91179 | // Package container provides access to the Google Container Engine API.
//
// See https://cloud.google.com/container-engine/
//
// Usage example:
//
// import "google.golang.org/api/container/v1"
// ...
// containerService, err := container.New(oauthHttpClient)
package container // import "google.golang.org/api/... | apache-2.0 |
mdaniel/intellij-community | platform/vcs-impl/src/com/intellij/openapi/vcs/changes/committed/VcsConfigurationChangeListener.java | 1059 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.vcs.changes.committed;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vcs.versionBrowser.CommittedChangeList;
import com.in... | apache-2.0 |
GunoH/intellij-community | plugins/github/src/org/jetbrains/plugins/github/api/data/request/GithubLabelsCollectionRequest.java | 537 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.github.api.data.request;
import org.jetbrains.annotations.NotNull;
import java.util.Collection;
@SuppressWarnings({"FieldCanBeLocal", "UnusedDecla... | apache-2.0 |
adessaigne/camel | core/camel-core/src/test/java/org/apache/camel/impl/StartStopAndShutdownRouteTest.java | 2308 | /*
* 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 |
Kwangseob/graphhopper-ios | dependencies/trove/src/gnu/trove/impl/sync/TSynchronizedCharCollection.java | 4841 | ///////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2008, Robert D. Eden All Rights Reserved.
// Copyright (c) 2009, Jeff Randall All Rights Reserved.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General P... | apache-2.0 |
lvdongr/spark | common/unsafe/src/test/java/org/apache/spark/unsafe/memory/MemoryBlockSuite.java | 6238 | /*
* 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 |
sae-bom/rust | src/libstd/sync/mutex.rs | 18111 | // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | apache-2.0 |
crazyin2009/moquette-mqtt | broker/src/main/java/org/dna/mqtt/moquette/messaging/spi/impl/events/PubAckEvent.java | 1093 | /*
* Copyright (c) 2012-2014 The original author or authors
* ------------------------------------------------------
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distributi... | apache-2.0 |
pistol54/SaltarelleCompiler | Runtime/CoreLib.Script/TaskCompletionSource.js | 1423 | ///////////////////////////////////////////////////////////////////////////////
// TaskCompletionSource
var ss_TaskCompletionSource = function#? DEBUG TaskCompletionSource$##() {
this.task = new ss_Task();
this.task.status = 3;
};
ss_TaskCompletionSource.__typeName = 'ss.TaskCompletionSource';
ss.TaskCompletionSour... | apache-2.0 |
uschindler/elasticsearch | server/src/main/java/org/elasticsearch/index/reindex/UpdateByQueryRequest.java | 6106 | /*
* 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... | apache-2.0 |
GunoH/intellij-community | platform/util/ui/src/com/intellij/util/ui/BlockBorder.java | 3417 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.ui;
import com.intellij.ui.Gray;
import org.jetbrains.annotations.ApiStatus;
import javax.swing.border.Border;
import java.awt.*;
/** @deprecated anci... | apache-2.0 |
tmagomedov/clBLAS | src/library/blas/functor/gcn_sgemm.cc | 19182 | #include <stdio.h>
#include <string.h>
#include <clBLAS.h>
#include <devinfo.h>
#include "clblas-internal.h"
#include "solution_seq.h"
#include <functor.h>
#include <binary_lookup.h>
#include <iostream>
#include <functor_xgemm.h>
#include <tahiti.h>
#include <hawaii.h>
#include <gcn_sgemm.h>
#include "BinaryBuild.h... | apache-2.0 |
asashour/selenium | java/client/src/org/openqa/selenium/json/JsonType.java | 983 | // Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... | apache-2.0 |
kaviththiranga/developer-studio | jaggery/org.eclipse.php.core/src/org/eclipse/php/internal/core/format/IFormatterProcessorFactory.java | 1532 | /*******************************************************************************
* Copyright (c) 2009 IBM Corporation 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 a... | apache-2.0 |
spatialdev/onadata | onadata/apps/logger/management/commands/import_briefcase.py | 1129 | #!/usr/bin/env python
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand
from django.utils.translation import ugettext as _
from optparse import make_option
from onadata.libs.utils.briefcase_client import BriefcaseClient
class Command(BaseCommand):
help = _("Insert a... | bsd-2-clause |
ropik/chromium | chrome/installer/test/alternate_version_generator.cc | 23805 | // Copyright (c) 2011 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.
// The file contains the implementation of the mini_installer re-versioner.
// The main function (GenerateNextVersion) does the following in a temp di... | bsd-3-clause |
ersanliqiao/mlpack | src/mlpack/methods/ann/convolution_rules/naive_convolution.hpp | 6134 | /**
* @file naive_convolution.hpp
* @author Shangtong Zhang
* @author Marcus Edel
*
* Implementation of the convolution.
*/
#ifndef __MLPACK_METHODS_ANN_CONVOLUTION_RULES_NAIVE_CONVOLUTION_HPP
#define __MLPACK_METHODS_ANN_CONVOLUTION_RULES_NAIVE_CONVOLUTION_HPP
#include <mlpack/core.hpp>
#include "border_modes.h... | bsd-3-clause |
sivaprakashniet/push_pull | p2p/lib/python2.7/site-packages/bleach/__init__.py | 15427 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
try: # Python 2.7+
from logging import NullHandler
except ImportError:
class NullHandler(logging.Handler):
def emit(self, record):
pass
import re
import html5lib
from html5lib.sanitizer import HTMLSanitizer
fro... | bsd-3-clause |
bantudevelopment/smis | vendor/gedmo1/doctrine-extensions/lib/Gedmo/Tree/Mapping/Driver/Yaml.php | 9652 | <?php
namespace Gedmo\Tree\Mapping\Driver;
use Gedmo\Mapping\Driver\File;
use Gedmo\Mapping\Driver;
use Gedmo\Exception\InvalidMappingException;
use Gedmo\Tree\Mapping\Validator;
/**
* This is a yaml mapping driver for Tree
* behavioral extension. Used for extraction of extended
* metadata from yaml specifically ... | bsd-3-clause |
dsebastien/DefinitelyTyped | types/json-schema-traverse/index.d.ts | 3622 | // Type definitions for json-schema-traverse 0.4
// Project: https://github.com/epoberezkin/json-schema-traverse#readme
// Definitions by: Piotr Błażejewicz (Peter Blazejewicz) <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Traverse JSON Schema passing e... | mit |
seryl/traefik | integration/vendor/github.com/docker/libcompose/yaml/external.go | 947 | package yaml
import (
"fmt"
)
// External represents an external network entry in compose file.
// It can be a boolean (true|false) or have a name
type External struct {
External bool
Name string
}
// MarshalYAML implements the Marshaller interface.
func (n External) MarshalYAML() (tag string, value interface... | mit |
Omegaphora/external_robolectric | src/test/java/com/xtremelabs/robolectric/shadows/ContextTest.java | 7904 | package com.xtremelabs.robolectric.shadows;
import android.app.Activity;
import android.content.Context;
import com.xtremelabs.robolectric.WithTestDefaultsRunner;
import org.hamcrest.CoreMatchers;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.io.... | mit |
extend1994/cdnjs | ajax/libs/leaflet.toolbar.js/0.1.2/leaflet.toolbar-src.js | 8922 | (function(window, document, undefined) {
"use strict";
L.Toolbar = L.Class.extend({
statics: {
baseClass: 'leaflet-toolbar'
},
includes: L.Mixin.Events,
options: {
className: '',
filter: function() { return true; },
actions: []
},
initialize: function(options) {
L.setOptions(this, options);
this.... | mit |
Phrlog/Geeker | backend/web/js/ckeditor/plugins/placeholder/lang/et.js | 351 | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("placeholder","et",{title:"Kohahoidja omadused",toolbar:"Kohahoidja loomine",text:"Kohahoidja tekst",edit:"Kohahoidja muutmine",textMissing:"Kohahoid... | mit |
hfenton/concurrent-ruby | examples/thread_local_var_bench.rb | 606 | #!/usr/bin/env ruby
#$: << File.expand_path('../../lib', __FILE__)
require 'concurrent'
require 'concurrent/atomic/thread_local_var'
require 'benchmark'
include Concurrent
N_THREADS = 100
N_VARS = 100
vars = N_VARS.times.collect { ThreadLocalVar.new(0) }
def test_threadlocal_perf(vars)
threads = N_THREADS.ti... | mit |
Gudii/Rocket.Chat | server/startup/migrations/v067.js | 283 | RocketChat.Migrations.add({
version: 67,
up: function() {
if (RocketChat && RocketChat.models && RocketChat.models.LivechatDepartment) {
RocketChat.models.LivechatDepartment.model.update({}, {
$set: {
showOnRegistration: true
}
}, { multi: true });
}
}
});
| mit |
oleg-andreyev/symfony | src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/ValueToDuplicatesTransformerTest.php | 3289 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Form\Tests\Extension\Core\DataTransformer;
use PHPUni... | mit |
mojo1643/Dalal_v2 | vendor/bundle/ruby/gems/redis-3.0.7/lib/redis/connection/ruby.rb | 8350 | require "redis/connection/registry"
require "redis/connection/command_helper"
require "redis/errors"
require "socket"
class Redis
module Connection
module SocketMixin
CRLF = "\r\n".freeze
def initialize(*args)
super(*args)
@timeout = nil
@buffer = ""
end
def ti... | mit |
ryantheleach/SpongeAPI | src/main/java/org/spongepowered/api/data/manipulator/mutable/block/RailDirectionData.java | 1927 | /*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... | mit |
joeyparrish/cdnjs | ajax/libs/highcharts/6.2.0/js/es-modules/modules/variwide.src.js | 9656 | /**
* Highcharts variwide module
*
* (c) 2010-2018 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
import H from '../parts/Globals.js';
import '../parts/AreaSeries.js';
var addEvent = H.addEvent,
seriesType = H.seriesType,
seriesTypes = H.seriesTypes,
each = H.each,
pick ... | mit |
giangnguyennet/searchkick | test/reindex_v2_job_test.rb | 777 | require_relative "test_helper"
class TestReindexV2Job < Minitest::Test
def setup
skip unless defined?(ActiveJob)
super
Searchkick.disable_callbacks
end
def teardown
Searchkick.enable_callbacks
end
def test_create
product = Product.create!(name: "Boom")
Product.searchkick_index.refr... | mit |
hyonholee/azure-sdk-for-net | sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/RestorePointType.cs | 1811 | // <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// re... | mit |
afuechsel/openhab2 | addons/binding/org.openhab.binding.tado/src/main/java/org/openhab/binding/tado/internal/TadoBindingConstants.java | 2883 | /**
* Copyright (c) 2010-2019 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.... | epl-1.0 |
vedmaka/Revive-wikibiz-modified | www/admin/account-settings-maintenance.php | 5002 | <?php
/*
+---------------------------------------------------------------------------+
| Revive Adserver |
| http://www.revive-adserver.com |
| ... | gpl-2.0 |
ZephyrSurfer/dolphin | Source/Core/VideoBackends/Software/SWRenderer.cpp | 4625 | // Copyright 2009 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include "VideoBackends/Software/SWRenderer.h"
#include <string>
#include "Common/CommonTypes.h"
#include "Common/GL/GLContext.h"
#include "Core/HW/Memmap.h"
#include "VideoBackends/Software/EfbCopy.h"
#include "VideoBackends/S... | gpl-2.0 |
drupalprojects/console | Test/Generator/JsTestGeneratorTest.php | 1200 | <?php
/**
* @file
* Contains Drupal\Console\Test\Generator\JsTestGeneratorTest.
*/
namespace Drupal\Console\Test\Generator;
use Drupal\Console\Generator\JsTestGenerator;
use Drupal\Console\Test\DataProvider\JsTestDataProviderTrait;
class JsTestGeneratorTest extends GeneratorTest
{
use JsTestDataProviderTrait... | gpl-2.0 |
glukolog/xcsoar | src/Util/WCharUtil.hpp | 3193 | /*
* Copyright (C) 2011-2015 Max Kellermann <max@duempel.org>
*
* 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 conditi... | gpl-2.0 |
bstark-synergy/CCC-drupal8 | libraries/jquery.intl-tel-input/src/spec/tests/methods/getNumber.js | 1994 | "use strict";
describe("getNumber: ", function() {
describe("initialising plugin with valid US number and utils.js", function() {
beforeEach(function() {
intlSetup(true);
input = $("<input value='+17024181234'>");
input.intlTelInput();
});
afterEach(function() {
input.intlTelIn... | gpl-2.0 |
itamair/italomairo | sites/all/modules/ckeditor/ckfinder/plugins/fileeditor/codemirror/js/tokenizejavascript.js | 6771 | /* Tokenizer for JavaScript code */
var tokenizeJavaScript = (function() {
// Advance the stream until the given character (not preceded by a
// backslash) is encountered, or the end of the line is reached.
function nextUntilUnescaped(source, end) {
var escaped = false;
while (!source.endOfLine()) {
... | gpl-2.0 |
Gargamel1989/ThreesandUO | Scripts/Mobiles/Vendors/SBInfo/SBButcher.cs | 1791 | using System;
using System.Collections.Generic;
using Server.Items;
namespace Server.Mobiles
{
public class SBButcher : SBInfo
{
private List<GenericBuyInfo> m_BuyInfo = new InternalBuyInfo();
private IShopSellInfo m_SellInfo = new InternalSellInfo();
public SBButcher()
{
}
p... | gpl-2.0 |
Gargamel1989/ThreesandUO | Scripts/Items/Aquarium/AquariumFood.cs | 639 | using System;
using Server;
using Server.Mobiles;
namespace Server.Items
{
public class AquariumFood : Item
{
public override int LabelNumber{ get{ return 1074819; } } // Aquarium food
[Constructable]
public AquariumFood() : base( 0xEFC )
{
}
public AquariumFood( Serial serial ) : ba... | gpl-2.0 |
chrjoh/Demo-shop | test/functional/store_controller_test.rb | 162 | require 'test_helper'
class StoreControllerTest < ActionController::TestCase
test "should get index" do
get :index
assert_response :success
end
end
| gpl-3.0 |
SysBind/moodle | mod/lesson/report.php | 17317 | <?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle... | gpl-3.0 |
hernad/easyrec | easyrec-utils/src/main/java/gnu/trove/procedure/TFloatProcedure.java | 1608 | ///////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2001, Eric D. Friedman All Rights Reserved.
//
// 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 Foun... | gpl-3.0 |
softwareanimal/TextSecure-WinterBreak2015 | src/org/thoughtcrime/securesms/sms/OutgoingTextMessage.java | 1851 | package org.thoughtcrime.securesms.sms;
import org.thoughtcrime.securesms.database.model.SmsMessageRecord;
import org.thoughtcrime.securesms.recipients.Recipient;
import org.thoughtcrime.securesms.recipients.Recipients;
public class OutgoingTextMessage {
private final Recipients recipients;
private final String ... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Rabao/npcs/Agado-Pugado.lua | 5701 | -----------------------------------
-- Area: Rabao
-- NPC: Agado-Pugado
-- Starts and Finishes Quest: Trial by Wind
-- @pos -17 7 -10 247
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/g... | gpl-3.0 |
devs1991/test_edx_docmode | venv/lib/python2.7/site-packages/testtools/matchers/_doctest.py | 3867 | # Copyright (c) 2009-2012 testtools developers. See LICENSE for details.
__all__ = [
'DocTestMatches',
]
import doctest
import re
from ..compat import str_is_unicode
from ._impl import Mismatch
class _NonManglingOutputChecker(doctest.OutputChecker):
"""Doctest checker that works with unicode rather tha... | agpl-3.0 |
harterj/moose | modules/tensor_mechanics/src/materials/ComputeDilatationThermalExpansionFunctionEigenstrain.C | 1685 | //* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html
#in... | lgpl-2.1 |
TheProjecter/project-qtcreator | src/libs/3rdparty/botan/src/rng/x931_rng/x931_rng.cpp | 2744 | /*
* ANSI X9.31 RNG
* (C) 1999-2009 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/x931_rng.h>
#include <botan/xor_buf.h>
#include <algorithm>
namespace Botan {
/**
* Generate a buffer of random bytes
*/
void ANSI_X931_RNG::randomize(byte out[], u32bit length)
{
if(!is_seede... | lgpl-2.1 |
RomSunZ/StockSharp | Connectors/InteractiveBrokers/Java/Client/IApiEnum.java | 289 | /* Copyright (C) 2013 Interactive Brokers LLC. All rights reserved. This code is subject to the terms
* and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable. */
package com.ib.client;
public interface IApiEnum {
String getApiString();
}
| lgpl-3.0 |
TonyChai24/test | gerrit-server/src/main/java/com/google/gerrit/server/git/GarbageCollectionLogFile.java | 1698 | // Copyright (C) 2012 The Android Open Source Project
//
// 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 |
gastaldi/wildfly-swarm | testsuite/testsuite-maven-plugin/src/test/resources/testing-project/src/main/java/org/wildfly/swarm/test/HelloServlet.java | 1164 | /**
* Copyright 2016 Red Hat, Inc, and individual contributors.
*
* 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 ... | apache-2.0 |
leafclick/intellij-community | java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/convertToSingleReturn/beforeSynchronized.java | 244 | // "Transform body to single exit-point form" "true"
class Test {
String <caret>test(int x) {
synchronized(this) {
if(x == 0) return "foo";
if(x == 1) return "bar";
return "baz";
}
}
} | apache-2.0 |
tiblu/etherpad-lite | src/node/utils/ExportTxt.js | 7749 | /**
* TXT export
*/
/*
* 2013 John McLear
*
* 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... | apache-2.0 |
takeshineshiro/keystone | keystone/common/sql/migrate_repo/versions/062_drop_assignment_role_fk.py | 1283 | # 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
# distributed under t... | apache-2.0 |
pragnagopa/azure-mobile-services-test | sdk/managed/test/Microsoft.WindowsAzure.MobileServices.iOS.Test/TestPlatform/PushTestUtility.cs | 4640 | // ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
using Microsoft.WindowsAzure.MobileServices.TestFramework;
using System;
using System.Collections.... | apache-2.0 |
mbebenita/shumway.ts | tests/Fidelity/test262/suite/ch07/7.8/7.8.3/S7.8.3_A3.4_T4.js | 991 | // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart
*
* @path ch07/7.8/7.8.3/S7.8.3_A3.4_T4.js
* @description ExponentPart :: E -DecimalDigits
*/
//CHECK#0
if... | apache-2.0 |
kyvinh/home-assistant | tests/components/sensor/test_wunderground.py | 6144 | """The tests for the WUnderground platform."""
import unittest
from homeassistant.components.sensor import wunderground
from homeassistant.const import TEMP_CELSIUS
from tests.common import get_test_home_assistant
VALID_CONFIG_PWS = {
'platform': 'wunderground',
'api_key': 'foo',
'pws_id': 'bar',
'mo... | apache-2.0 |
westerhofffl/appengine-mapreduce | java/src/test/java/com/google/appengine/tools/mapreduce/impl/sort/SortTest.java | 13881 | package com.google.appengine.tools.mapreduce.impl.sort;
import static java.nio.charset.StandardCharsets.US_ASCII;
import com.google.appengine.tools.mapreduce.KeyValue;
import com.google.appengine.tools.mapreduce.OutputWriter;
import com.google.appengine.tools.mapreduce.impl.IncrementalTaskContext;
import com.google.c... | apache-2.0 |
wpc/cruisecontrol.rb | vendor/rails/actionpack/test/activerecord/pagination_test.rb | 5132 | require File.dirname(__FILE__) + '/../active_record_unit'
class PaginationTest < ActiveRecordTestCase
fixtures :topics, :replies, :developers, :projects, :developers_projects
class PaginationController < ActionController::Base
self.template_root = "#{File.dirname(__FILE__)}/../fixtures/"
def simple... | apache-2.0 |
zlcnju/kettle | plugins/pur/core/src/main/java/com/pentaho/di/revision/RevisionResource.java | 6649 | /*!
* Copyright 2010 - 2015 Pentaho 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 requi... | apache-2.0 |
maas-ufcg/manageiq | lib/miq_automation_engine/service_models/miq_ae_service_manageiq-providers-amazon-cloud_manager-provision.rb | 161 | module MiqAeMethodService
class MiqAeServiceManageIQ_Providers_Amazon_CloudManager_Provision < MiqAeServiceManageIQ_Providers_CloudManager_Provision
end
end
| apache-2.0 |
yzwudi/wonder | vendor/rmrevin/yii2-fontawesome/FontAwesome.php | 2181 | <?php
/**
* FontAwesome.php
* @author Revin Roman
* @link https://rmrevin.ru
*/
namespace rmrevin\yii\fontawesome;
use rmrevin\yii\fontawesome\component;
/**
* Class FA
* @package rmrevin\yii\fontawesome
*/
class FontAwesome
{
/** @var string CSS Class prefix */
public static $cssPrefix = 'fa';
... | bsd-3-clause |
seem-sky/FrameworkBenchmarks | php-lithium/libraries/lithium/analysis/logger/adapter/Syslog.php | 2870 | <?php
/**
* Lithium: the most rad php framework
*
* @copyright Copyright 2012, Union of RAD (http://union-of-rad.org)
* @license http://opensource.org/licenses/bsd-license.php The BSD License
*/
namespace lithium\analysis\logger\adapter;
/**
* The Syslog adapter facilitates logging messages to a `sysl... | bsd-3-clause |
hoastoolshop/react-native | ReactAndroid/src/main/java/com/facebook/react/modules/core/PermissionAwareActivity.java | 982 | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.modules.core;
import android.app.Activity;
/**
* Interface used to denote activities that can forward perm... | bsd-3-clause |
rbenech/RiWebApps | mqtt-test/node_modules/browserify/test/pkg.js | 457 | var browserify = require('../');
var vm = require('vm');
var test = require('tap').test;
var path = require('path');
var pkg = require('./pkg/package.json');
pkg.__dirname = path.join(__dirname, 'pkg');
test('package', function (t) {
t.plan(2);
var b = browserify(__dirname + '/pkg/main.js');
b.on('pa... | unlicense |
lujinming1/hejicaoye | node_modules/react-error-overlay/lib/__tests__/get-source-map.js | 3847 | import _regeneratorRuntime from 'babel-runtime/regenerator';
var _this = this;
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { ... | mit |
elmago79/dgp | vendor/phpdocumentor/phpdocumentor/src/phpDocumentor/Compiler/Linker/Linker.php | 13051 | <?php
/**
* phpDocumentor
*
* PHP Version 5.3
*
* @copyright 2010-2014 Mike van Riel / Naenius (http://www.naenius.com)
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link http://phpdoc.org
*/
namespace phpDocumentor\Compiler\Linker;
use phpDocumentor\Compiler\CompilerPassInterfac... | mit |
burnflare/Twillio-node | node_modules/orm/test/integration/property-timezones.js | 2830 | var should = require('should');
var helper = require('../support/spec_helper');
var common = require('../common');
var ORM = require('../../');
if (common.protocol() == "mongodb") return;
if (common.protocol() == "sqlite" && !common.getConfig().pathname) {
// sqlite needs a pathname for this test (because ... | mit |
shwnd/angularstarter | API/node_modules/everyauth/lib/modules/vimeo.js | 678 | var oauthModule = require('./oauth');
var vimeo = module.exports =
oauthModule.submodule('vimeo')
.apiHost('http://vimeo.com/api/rest/v2')
.oauthHost('http://vimeo.com')
.entryPath('/auth/vimeo')
.callbackPath('/auth/vimeo/callback')
.fetchOAuthUser( function (accessToken, accessTokenSecret, params) {
... | mit |
sweethousecr/house | vendor/yiisoft/yii2/captcha/CaptchaAction.php | 12704 | <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\captcha;
use Yii;
use yii\base\Action;
use yii\base\InvalidConfigException;
use yii\helpers\Url;
use yii\web\Response;
/**
* CaptchaAction renders a CA... | mit |
StudioBOZ/thirdClass | app/code/core/Mage/Adminhtml/Block/Report/Product/Grid.php | 3897 | <?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... | mit |
uhoh-itsmaciek/sequel | lib/sequel/plugins/tree.rb | 4839 | module Sequel
module Plugins
# The Tree plugin adds additional associations and methods that allow you to
# treat a Model as a tree.
#
# A column for holding the parent key is required and is :parent_id by default.
# This may be overridden by passing column name via :key.
#
# Optional... | mit |
mono/referencesource | System.Activities/System/Activities/DynamicUpdate/DynamicUpdateMap.cs | 24420 | // <copyright>
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
namespace System.Activities.DynamicUpdate
{
using System;
using System.Activities.DynamicUpdate;
using System.Activities.XamlIntegration;
using System.Collections.Generic;
using System.Collections.ObjectM... | mit |
seogi1004/cdnjs | ajax/libs/waud.js/0.9.15/waud.js | 51945 | (function (console, $hx_exports, $global) { "use strict";
function $extend(from, fields) {
function Inherit() {} Inherit.prototype = from; var proto = new Inherit();
for (var name in fields) proto[name] = fields[name];
if( fields.toString !== Object.prototype.toString ) proto.toString = fields.toString;
return prot... | mit |