repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
mwilliamson-firefly/aws-sdk-net | sdk/src/Services/RDS/Generated/Model/ModifyDBClusterParameterGroupRequest.cs | 4221 | /*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | apache-2.0 |
mirego/j2objc | tree_shaker/src/main/java/com/google/devtools/treeshaker/TypeGraphBuilder.java | 3997 | /*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribu... | apache-2.0 |
wenpos/elasticsearch | core/src/test/java/org/elasticsearch/index/shard/IndexShardIT.java | 38113 | /*
* 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 |
dayutianfei/impala-Q | tests/metadata/test_ddl.py | 14163 | #!/usr/bin/env python
# Copyright (c) 2012 Cloudera, 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 requir... | apache-2.0 |
MSG134/IVCT_Framework | IEEE1516e/src/main/java/hla/rti1516e/exceptions/TimeConstrainedIsNotEnabled.java | 807 | /*
* The IEEE hereby grants a general, royalty-free license to copy, distribute,
* display and make derivative works from this material, for all purposes,
* provided that any use of the material contains the following
* attribution: "Reprinted with permission from IEEE 1516.1(TM)-2010".
* Should you require additi... | apache-2.0 |
fayland/binary-static | src/javascript/binary/websocket_pages/trade/purchase.js | 11927 | const Contract = require('./contract').Contract;
const Symbols = require('./symbols').Symbols;
const Tick = require('./tick').Tick;
const WSTickDisplay = require('./tick_trade').WSTickDisplay;
const Content = require('../../common_functions/content').Con... | apache-2.0 |
chkir/backups | backups-service/src/main/java/com/yammer/backups/policy/LastDurationRetentionPolicy.java | 1979 | package com.yammer.backups.policy;
/*
* #%L
* Backups
* %%
* Copyright (C) 2013 - 2014 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... | apache-2.0 |
vivekjuneja/AppStash | vamp/vagrant/modules/consul/spec/defines/consul_watch_spec.rb | 7177 | require 'spec_helper'
describe 'consul::watch' do
let(:facts) {{ :architecture => 'x86_64', :version => '0.4.0' }}
let(:title) { "my_watch" }
describe 'version checks' do
context 'with version < 0.4.0' do
let (:facts) {{ :architecture => 'x86_64' }}
let(:hiera_data) {{ 'consul::version' => '0.3.... | apache-2.0 |
icloudkit/net.cloudkit | net.cloudkit.enterprises/src/test/java/net/cloudkit/enterprises/xml/message/XMLReader.java | 11002 | /*
* Copyright (C) 2016. The CloudKit 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 a... | apache-2.0 |
xavivars/abot | Abot/Core/CsQueryHyperLinkParser.cs | 3143 | using Abot.Poco;
using CsQuery;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Abot.Core
{
/// <summary>
/// Parser that uses CsQuery https://github.com/jamietre/CsQuery to parse page links
/// </summary>
[Serializable]
public class CSQueryHyperlinkParser : HyperLinkP... | apache-2.0 |
Shan1024/carbon-uuf | samples/components/org.wso2.carbon.uuf.sample.simple-auth/src/main/pages/login.js | 1746 | /*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) 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
*
* ... | apache-2.0 |
cloverink/ebisu | wp-content/plugins/formidable/classes/models/FrmEntryMeta.php | 13482 | <?php
if ( ! defined('ABSPATH') ) {
die( 'You are not allowed to call this page directly.' );
}
class FrmEntryMeta {
/**
* @param string $meta_key
*/
public static function add_entry_meta( $entry_id, $field_id, $meta_key = null, $meta_value ) {
global $wpdb;
if ( FrmAppHelper::is_empt... | apache-2.0 |
frapid/frapid | src/Libraries/Frapid.WebApi/DataAccess/FormRepository.cs | 48987 | using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Security;
using Frapid.ApplicationState.Cache;
using Frapid.Configuration;
using Frapid.Configuration.Db;
using Frapid.DataAccess;
using Frapid.DataAccess.Model... | apache-2.0 |
mhajas/keycloak | testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/adapter/page/PhotozClientAuthzTestApp.java | 11062 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... | apache-2.0 |
mogoweb/webkit_for_android5.1 | v8/src/lithium.cc | 7667 | // Copyright 2011 the V8 project authors. 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 ... | apache-2.0 |
chrisvfabio/hospital-java | src/com/chrisvfabio/app/Staff.java | 1009 | /*
* Copyright (c) 2014 Chris Fabio
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 |
Shopify/collins | test/ApplicationSpecification.scala | 839 | package test
import org.specs2._
import specification._
import play.api.Play
import play.api.test.FakeApplication
import play.api.test.Helpers._
trait ApplicationSpecification extends mutable.Specification with ResourceFinder {
private def collinsDatabase = Map[String,String](
"db.collins.driver" -> "org.h2.D... | apache-2.0 |
anastasia-tarasova/indy-sdk | libindy/src/services/blob_storage/default_reader.rs | 2117 | extern crate digest;
extern crate sha2;
extern crate rust_base58;
use self::digest::{FixedOutput, Input};
use self::sha2::Sha256;
use self::rust_base58::ToBase58;
use super::{ReadableBlob, Reader, ReaderType};
use errors::prelude::*;
use serde_json;
use std::fs::File;
use std::io::{Read, Seek, SeekFrom};
use std::pa... | apache-2.0 |
dropbox/DropboxBusinessAdminTool | Source/DfBAdminToolkit/Presenter/IDataMigrationPresenter.cs | 148 | namespace DfBAdminToolkit.Presenter {
public interface IDataMigrationPresenter
: IPresenter {
void UpdateSettings();
}
} | apache-2.0 |
levi-h/aluminumproject | tests/src/test/java/com/googlecode/aluminumproject/context/g11n/EnvironmentBasedDateFormatProviderTest.java | 4324 | /*
* Copyright 2010-2012 Aluminum 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 law or agre... | apache-2.0 |
anthonydahanne/terracotta-platform | management/monitoring-service/src/main/java/org/terracotta/management/service/monitoring/DefaultPassiveEntityMonitoringService.java | 3734 | /*
* Copyright Terracotta, 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 ... | apache-2.0 |
blueboxgroup/ursula-monitoring | sensu/plugins/check-dir-new-files.rb | 2355 | #! /usr/bin/env ruby
#
# check-dir-new-files
#
# DESCRIPTION:
# Checks the number of specific files in a directory
#
# OUTPUT:
# plain text
#
# PLATFORMS:
# Linux, BSD
#
# DEPENDENCIES:
# gem: sensu-plugin
#
# USAGE:
# #YELLOW
#
# NOTES:
#
# LICENSE:
# Copyright 2014 Sonian, Inc. and contributors. <suppor... | apache-2.0 |
mongodb/mongo-php-driver | tests/bson-corpus/decimal128-3-valid-135.phpt | 889 | --TEST--
Decimal128: [basx038] conform to rules and exponent will be in permitted range).
--DESCRIPTION--
Generated by scripts/convert-bson-corpus-tests.php
DO NOT EDIT THIS FILE
--FILE--
<?php
require_once __DIR__ . '/../utils/basic.inc';
$canonicalBson = hex2bin('1800000013640079DF0D8648700000000000000000223000');... | apache-2.0 |
msebire/intellij-community | java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateFieldFromUsageFix.java | 6508 | /*
* Copyright 2000-2017 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... | apache-2.0 |
Durgesh1988/core | server/app/model/v2.0/providers/base-provider.js | 1425 | /*
Copyright [2016] [Relevance Lab]
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, soft... | apache-2.0 |
robertoschwald/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/IdPInitiatedProfileHandlerController.java | 8567 | package org.apereo.cas.support.saml.web.idp.profile;
import org.apereo.cas.authentication.AuthenticationSystemSupport;
import org.apereo.cas.authentication.principal.Service;
import org.apereo.cas.authentication.principal.ServiceFactory;
import org.apereo.cas.authentication.principal.WebApplicationService;
import org.... | apache-2.0 |
wiltonlazary/arangodb | 3rdParty/iresearch/core/analysis/analyzers.cpp | 8392 | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 by EMC 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... | apache-2.0 |
modulexcite/msgpack-cli | test/MsgPack.UnitTest/gen/map/MsgPack_Serialization_PolymorphicMemberTypeKnownType_PolymorphicPrivateSetterPropertyAndConstructorAsObjectSerializer.cs | 9047 | //------------------------------------------------------------------------------
// <auto-generated>
// このコードはツールによって生成されました。
// ランタイム バージョン:4.0.30319.34209
//
// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
// コードが再生成されるときに損失したりします。
// </auto-generated>
//---------------------------------------------------------... | apache-2.0 |
paulcastro/openwhisk | tests/src/test/scala/common/WskTestHelpers.scala | 11549 | /*
* 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 |
domeo/DomeoClient | src/org/mindinformatics/gwt/domeo/plugins/resource/pubmed/model/JsoPubMedEntry.java | 1117 | package org.mindinformatics.gwt.domeo.plugins.resource.pubmed.model;
import com.google.gwt.core.client.JavaScriptObject;
public class JsoPubMedEntry extends JavaScriptObject implements IDocumentBibliographicData {
protected JsoPubMedEntry() {}
public final native String getUrl() /*-{ return this.url; }-*/;
publ... | apache-2.0 |
frenemations/WPFoverlay | WpfOverlay/bin/Debug/ICSharpCode.AvalonEdit/Editing/SelectionMouseHandler.cs | 22363 | // Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
... | apache-2.0 |
haoyanjun21/jstorm | jstorm-core/src/main/java/storm/trident/windowing/WindowsStateUpdater.java | 3387 | /**
* 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 |
xingwu1/azure-sdk-for-node | test/services/table/tableservice-batch-tests.js | 12037 | //
// 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
//
// Unless require... | apache-2.0 |
harjup/WizardBroadcast | Assets/Vendor/JsonDotNet/Source/WinRT/RT_NullValueHandling.cs | 2066 | #if UNITY_WINRT && !UNITY_EDITOR && !UNITY_WP8
#region License
// Copyright (c) 2007 James Newton-King
//
// 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 ... | apache-2.0 |
gabelula/b-counted | .google_appengine/google/appengine/api/images/__init__.py | 15334 | #!/usr/bin/env python
#
# Copyright 2007 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 o... | apache-2.0 |
enzovici/PoC-TruthChain | client/lib/js/plugins/ledger_utils.js | 629 | import BigchainDBLedgerPlugin from 'ilp-plugin-bigchaindb';
const connectToBigchainDBLedger = (account) => {
const ledgerPlugin = new BigchainDBLedgerPlugin({
auth: {
account: {
id: account.vk,
key: account.sk,
uri: {
api: `htt... | apache-2.0 |
andreeadanielachivu/PracticalTest02 | proiect_colocviu/PracticalTest022/app/src/androidTest/java/ro/pub/cs/systems/pdsd/practicaltest02/ApplicationTest.java | 381 | package ro.pub.cs.systems.pdsd.practicaltest02;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public App... | apache-2.0 |
neilconway/mesos | src/docker/executor.hpp | 3476 | // 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 |
gzsombor/ranger | kms/src/main/java/org/apache/hadoop/crypto/key/VerifyIsDBMasterkeyCorrect.java | 3064 | /*
* 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 |
KevinLoiseau/manageiq | app/helpers/toolbar_helper.rb | 7349 | module ToolbarHelper
# Public interface
# Render a list of buttons (toolbar) to html
#
# Called directly when updating toolbars in an existing page.
#
def buttons_to_html(buttons_in)
groups = split_to_groups(Array(buttons_in))
groups.collect do |buttons|
buttons = Array(buttons)
# exc... | apache-2.0 |
shuwnyuantee/binary-static | src/javascript/binary/websocket_pages/user/new_account/virtual_acc_opening.js | 3928 | pjax_config_page("new_account/virtualws", function(){
return {
onLoad: function() {
if (getCookieItem('login')) {
window.location.href = page.url.url_for('user/my_accountws');
return;
}
Content.populate();
var virtualForm = $('#virtual-form');
handle_residence_st... | apache-2.0 |
kaazing/snmp4j | src/org/snmp4j/util/VariableTextFormat.java | 3555 | /*_############################################################################
_##
_## SNMP4J - VariableTextFormat.java
_##
_## Copyright (C) 2003-2009 Frank Fock and Jochen Katz (SNMP4J.org)
_##
_## Licensed under the Apache License, Version 2.0 (the "License");
_## you may not use this file... | apache-2.0 |
hcvazquez/UFFOptimizer | src/transform/fileRestore.js | 1158 | "use strict";
var through = require('through2')
var path = require("../model/utilpath.js");
module.exports = function (file) {
if (file.endsWith('.js') && path.isInstrumentable(file)) {
var fs = require('fs');
var fileOriginal = path.getBackupName(file);
fs.unlink(file, function (err) {... | apache-2.0 |
cilium/cilium | api/v1/server/restapi/prefilter/delete_prefilter.go | 1796 | // Code generated by go-swagger; DO NOT EDIT.
// Copyright 2017-2022 Authors of Cilium
// SPDX-License-Identifier: Apache-2.0
package prefilter
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the generate command
import (
"net/http"
"github.com/go-openapi/r... | apache-2.0 |
debovis/webanno | webanno-brat/src/main/java/de/tudarmstadt/ukp/clarin/webanno/brat/curation/AnnotationOption.java | 1732 | /*******************************************************************************
* Copyright 2012
* Ubiquitous Knowledge Processing (UKP) Lab and FG Language Technology
* Technische Universität Darmstadt
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in comp... | apache-2.0 |
linux-on-ibm-z/kubernetes | test/e2e/storage/testsuites/snapshottable.go | 17358 | /*
Copyright 2018 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | apache-2.0 |
zaqwes8811/matlab_ext | img_video/opencv_tut.py | 1275 | #!/usr/bin/env python
# coding: utf-8
import time
import numpy as np
import cv2
cap = cv2.VideoCapture('../Documents/sample.avi')
rois = []
frame_counter = 0
while cap.isOpened():
ret, frame = cap.read()
#if not ret:
# break
frame_counter += 1
#If the last frame is reached, reset the capture a... | apache-2.0 |
microsoft/TypeScript | tests/baselines/reference/gettersAndSetters.js | 2141 | //// [gettersAndSetters.ts]
// classes
class C {
public fooBack = "";
static barBack:string = "";
public bazBack = "";
public get Foo() { return this.fooBack;} // ok
public set Foo(foo:string) {this.fooBack = foo;} // ok
static get Bar() {return C.barBack;} // ok
static set Bar(bar:st... | apache-2.0 |
begoldsm/azure-sdk-for-node | lib/services/serviceFabric/lib/models/deployedApplicationsHealthEvaluation.js | 2672 | /*
* 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
* regenerated.
*/
'... | apache-2.0 |
catalintrif/infotranspub-backend | modules/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/model/AgencyAndIdInstance.java | 2362 | /**
* Copyright (C) 2011 Brian Ferris <bdferris@onebusaway.org>
*
* 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 requ... | apache-2.0 |
arangodb/arangodb | tests/Cache/TransactionManager.cpp | 3222 | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | apache-2.0 |
petedavis/MassTransit | src/MassTransit.Reactive/ServiceBusExtensions.cs | 3084 | // Copyright 2007-2008 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 re... | apache-2.0 |
huhuang03/ThAnLib | views/PullToRefresh/app/src/main/java/base/tonghu/com/pulltorefresh/MainActivity.java | 342 | package base.tonghu.com.pulltorefresh;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.ac... | apache-2.0 |
mehdi149/OF_COMPILER | gen-src/main/java/org/projectfloodlight/openflow/protocol/ver15/OFAsyncConfigPropFlowStatsMasterVer15.java | 8121 | // Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... | apache-2.0 |
GabrielSantosDoNascimentoSilva/ListaTelefonica | ListaTelefonica/js/app.js | 49 | angular.module("listaTelefonica",["ngMessages"]); | apache-2.0 |
emiapwil/alto-server | plugins/autoird/autoird.py | 4994 | #!/usr/bin/env python3
import bottle
import logging
import palto.utils
import palto.paltomanager
import palto.palto_config
from .basicird import SimpleIRD
def can_autogenerate(backend):
try:
config = backend.config
if not config.has_section('ird'):
return False
return True
... | apache-2.0 |
youtube/doorman | vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/grpc.go | 1531 | // Copyright 2016 CoreOS, 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 in... | apache-2.0 |
zapbot/zap-extensions | addOns/ascanrulesBeta/src/main/java/org/zaproxy/zap/extension/ascanrulesBeta/MessageCache.java | 4340 | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | apache-2.0 |
wsaccaco/lift | examples/skittr/src/main/scala/bootstrap/liftweb/Boot.scala | 2794 | package bootstrap.liftweb
/*
* Copyright 2007-2010 WorldWide Conferencing, LLC
*
* 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
*
* ... | apache-2.0 |
jmrozanec/cron-utils | src/test/java/com/cronutils/Issue338Test.java | 719 | package com.cronutils;
import com.cronutils.descriptor.CronDescriptor;
import com.cronutils.model.Cron;
import com.cronutils.model.CronType;
import com.cronutils.model.definition.CronDefinitionBuilder;
import com.cronutils.parser.CronParser;
import org.junit.Assert;
import org.junit.Test;
import java.util.Locale;
pu... | apache-2.0 |
JingchengDu/hbase | hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupManager.java | 18596 | /**
* 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 |
VladiMihaylenko/omim | map/transit/transit_display.hpp | 3411 | #pragma once
#include "map/transit/transit_reader.hpp"
#include "map/bookmark_manager.hpp"
#include "map/routing_mark.hpp"
#include "drape_frontend/color_constants.hpp"
#include "drape_frontend/route_shape.hpp"
#include "routing/route.hpp"
#include <functional>
#include <map>
#include <string>
#include <vector>
e... | apache-2.0 |
seata/seata | saga/seata-saga-processctrl/src/main/java/io/seata/saga/proctrl/HierarchicalProcessContext.java | 1847 | /*
* Copyright 1999-2019 Seata.io Group.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | apache-2.0 |
tarikgwa/test | html/var/generation/Magento/Catalog/Model/ProductTypes/Config/Reader/Proxy.php | 2271 | <?php
namespace Magento\Catalog\Model\ProductTypes\Config\Reader;
/**
* Proxy class for @see \Magento\Catalog\Model\ProductTypes\Config\Reader
*/
class Proxy extends \Magento\Catalog\Model\ProductTypes\Config\Reader
{
/**
* Object Manager instance
*
* @var \Magento\Framework\ObjectManagerInterface... | apache-2.0 |
ryanms15/test-node-client | node-spectate-test/watch.js | 2588 | var Observer = require('./lib/observer.js')
, KeyframeParser = require('./lib/parser/keyframe.js')
, co = require('co')
var euw = new Observer(process.argv[2])
euw.getGame(process.argv[4], process.argv[5] || 'EUW1', function(err, game) {
console.log(game);
game.setObserverKey(process.argv[3])
spectate... | apache-2.0 |
unrealinux/FinancialDataCrawlingPlatform | src/github.com/derekparker/delve/_fixtures/fputest/fputest.go | 408 | package main
import "runtime"
func fputestsetup(f64a, f64b, f64c, f64d float64, f32a, f32b, f32c, f32d float32)
func main() {
var f64a float64 = 1.1
var f64b float64 = 1.2
var f64c float64 = 1.3
var f64d float64 = 1.4
var f32a float32 = 1.5
var f32b float32 = 1.6
var f32c float32 = 1.7
var f32d float32 = 1.8... | apache-2.0 |
jabesq/home-assistant | tests/components/mqtt_json/test_device_tracker.py | 6084 | """The tests for the JSON MQTT device tracker platform."""
import json
import logging
import os
from asynctest import patch
import pytest
from homeassistant.setup import async_setup_component
from homeassistant.components.device_tracker.legacy import (
YAML_DEVICES, ENTITY_ID_FORMAT, DOMAIN as DT_DOMAIN)
from home... | apache-2.0 |
blogify/blogify | src/Middleware/DenyIfBeingEdited.php | 1569 | <?php
namespace jorenvanhocht\Blogify\Middleware;
use App\User;
use Closure;
use Illuminate\Contracts\Auth\Guard;
use jorenvanhocht\Blogify\Models\Post;
class DenyIfBeingEdited
{
/**
* Holds the Guard Contract
*
* @var \Illuminate\Contracts\Auth\Guard
*/
protected $auth;
/**
* ... | apache-2.0 |
yoinx/kernel_adiutor | app/src/main/java/com/grarak/kerneladiutor/fragments/BaseFragment.java | 2105 | /*
* Copyright (C) 2015 Willi Ye
*
* 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... | apache-2.0 |
GunoH/intellij-community | platform/platform-impl/src/com/intellij/openapi/fileEditor/TextEditorWithPreview.java | 21334 | // 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.openapi.fileEditor;
import com.intellij.codeHighlighting.BackgroundEditorHighlighter;
import com.intellij.icons.AllIcons;
import com.intellij.ide.IdeBundle;
... | apache-2.0 |
wegtam/playframework | dev-mode/routes-compiler/src/main/scala/play/routes/compiler/templates/package.scala | 17996 | /*
* Copyright (C) Lightbend Inc. <https://www.lightbend.com>
*/
package play.routes.compiler
import scala.collection.immutable.ListMap
import scala.util.matching.Regex
/**
* Helper methods used in the templates
*/
package object templates {
/**
* Mark lines with source map information.
*/
def markLin... | apache-2.0 |
apache/sqoop | src/test/org/apache/sqoop/manager/TestMainframeManager.java | 6376 | /**
* 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 |
yoanngern/iahm_2016 | wp-content/plugins/event-espresso-core-reg/payment_methods/Bank/help_tabs/payment_methods_overview_bank_draft.help_tab.php | 1356 | <p><strong><?php _e('Bank Draft', 'event_espresso'); ?></strong></p>
<p>
<?php _e('Adjust the settings for the bank draft payment gateway.', 'event_espresso'); ?>
</p>
<p><strong><?php _e('Bank Draft Settings', 'event_espresso'); ?></strong></p>
<ul>
<li>
<strong><?php _e('Page Title', 'event_espresso'); ?></strong><br... | apache-2.0 |
amihalik/incubator-rya | extras/periodic.notification/tests/src/test/java/org/apache/rya/periodic/notification/application/PeriodicNotificationApplicationIT.java | 25839 | /*
* 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 |
atom/crashpad | handler/mac/crash_report_exception_handler.cc | 10251 | // Copyright 2015 The Crashpad 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 ... | apache-2.0 |
robertnishihara/ray | rllib/offline/input_reader.py | 4266 | import logging
import numpy as np
import threading
from ray.rllib.policy.sample_batch import MultiAgentBatch
from ray.rllib.utils.annotations import PublicAPI
from ray.rllib.utils.framework import try_import_tf
from typing import Dict, List
from ray.rllib.utils.typing import TensorType, SampleBatchType
tf1, tf, tfv =... | apache-2.0 |
adelton/origin | test/integration/gc_default_test.go | 4169 | package integration
import (
"testing"
"time"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/wait"
kapi "k8s.io/kubernetes/pkg/api"
buildapi "github.com/openshift/origin/pkg/build/api"
buildclient "github.com/openshift/origin/pkg/bui... | apache-2.0 |
racker/omnibus | source/db-5.0.26.NC/java/src/com/sleepycat/util/ExceptionWrapper.java | 1044 | /*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2000, 2010 Oracle and/or its affiliates. All rights reserved.
*
* $Id$
*/
package com.sleepycat.util;
/**
* Interface implemented by exceptions that can contain nested exceptions.
*
* @author Mark Hayes
*/
public interface Excepti... | apache-2.0 |
rtkasodariya/interview | python/string/rabinkarp.py | 1598 | #Rabin Karp algorithm
# Java code https://github.com/mission-peace/interview/blob/master/src/com/interview/string/RabinKarpSearch.java
prime = 101
def pattern_matching(text, pattern):
m = len(pattern)
n = len(text)
pattern_hash = create_hash(pattern, m - 1)
text_hash = create_hash(text, m - 1)
for... | apache-2.0 |
Manzalab/kalulu | app/minigames/caterpillar/assets/data/params.js | 8118 | define ([], function () {
/**
* This configuration object is used to parameter the minigames using the Detection Signal Theory.
* It contains both global and local remediation settings.
**/
return {
baseConfig : { // the "baseConfig" settings are a base to all difficulty levels, overri... | apache-2.0 |
shanti/olio | webapp/rails/trunk/vendor/plugins/rspec-rails/spec/rails_suite.rb | 942 | #
# 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 not... | apache-2.0 |
tim777z/ambrose | common/src/test/java/com/twitter/ambrose/service/impl/InMemoryStatsServiceTest.java | 3708 | /*
Copyright 2012 Twitter, 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 in writing, software
distr... | apache-2.0 |
prabushi/devstudio-tooling-esb | plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/APIHandlerPropertyItemProvider.java | 6302 | /**
* Copyright 2009-2012 WSO2, Inc. (http://wso2.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | apache-2.0 |
QBNemo/spring-mvc-showcase | src/main/java/org/springframework/web/servlet/view/tiles3/SimpleSpringPreparerFactory.java | 2654 | /*
* Copyright 2002-2012 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... | apache-2.0 |
pkilambi/ceilometer | tools/make_test_data.py | 6961 | #!/usr/bin/env python
#
# Copyright 2012 New Dream Network, LLC (DreamHost)
#
# 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 requ... | apache-2.0 |
yflou520/appinventor-sources | appinventor/blocklyeditor/src/backpack.js | 16293 | /**
* Visual Blocks Editor
*
* Copyright 2011 Google Inc.
* http://blockly.googlecode.com/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lice... | apache-2.0 |
kjirou/reversi-tactics | src/mixins/BattlerMixin.js | 907 | import assert from 'assert';
import { ARMY_COLORS } from '../consts';
/*
* Mix in battler role to UnitModel
*/
const BattlerMixin = {
/*
* The army that it belongs
* {ArmyModel|null}
*/
_belongingArmy: null,
_position: null,
battlerMixinConstructor({ belongingArmy }) {
assert(this.hasOwnPro... | apache-2.0 |
unstab1e/sitecoreyaf8 | yafsrc/YAF.Core/Extensions/MembershipUserExtensions.cs | 1805 | /* Yet Another Forum.NET
* Copyright (C) 2003-2005 Bjørnar Henden
* Copyright (C) 2006-2013 Jaben Cargman
* Copyright (C) 2014-2015 Ingo Herbote
* http://www.yetanotherforum.net/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* dist... | apache-2.0 |
cert-se/megatron-java | src-test/se/sitic/megatron/rss/RssManagerTest.java | 13503 | package se.sitic.megatron.rss;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util... | apache-2.0 |
seanzwx/tmp | seatalk/platform/framework/framework-service/src/main/java/com/sean/service/constant/_P.java | 910 | package com.sean.service.constant;
import com.sean.service.annotation.ParameterConfig;
import com.sean.service.annotation.ParameterProviderConfig;
import com.sean.service.enums.DataType;
/**
* 框架内置参数,外部不得使用
* @author sean
*/
@ParameterProviderConfig(description = "框架内置接口参数")
public class _P
{
@ParameterConfig(dat... | apache-2.0 |
gisfromscratch/webapp-builder-demos | samples/Sample Widgets/WebAppWidgets/widgets/Splash/setting/nls/nl/strings.js | 459 | define(
({
instruction: "Bepaal de content die wordt weergegeven op het splash-scherm van uw applicatie. Het splash-scherm verschijnt vóór de applicatie laadt. ",
defaultContent: "Voeg hier tekst, koppelingen en kleine afbeeldingen toe.",
requireConfirm: "Bevestiging vereisen om door te gaan",
confi... | apache-2.0 |
maciej-zygmunt/unitime | JavaSource/org/unitime/timetable/api/connectors/BuildingsConntector.java | 8838 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may... | apache-2.0 |
gdefias/JavaDemo | DemoJava/guice-demo/src/main/java/com/github/greengerong/price/PriceService.java | 412 | package com.github.greengerong.price;
/**
* ***************************************
* *
* Auth: green gerong *
* Date: 2014 *
* blog: http://greengerong.github.io/ *
* github: https://github.com/greengerong *
* *
* ****************************************
*/
... | apache-2.0 |
modulexcite/NCache | Integration/MemCached/Clients/.NET memcached Client Library/Src/NativeHandler.cs | 13894 | // Copyright (c) 2015 Alachisoft
//
// 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... | apache-2.0 |
touwolf/bridje-framework | bridje-sql/src/main/java/org/bridje/sql/BuildFkReferencesStep.java | 1270 | /*
* Copyright 2017 Bridje Framework.
*
* 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 agr... | apache-2.0 |
ninqing/tddl | tddl-parser/src/main/java/com/alibaba/cobar/parser/ast/stmt/dal/ShowBroadcasts.java | 981 | /*
* Copyright 1999-2012 Alibaba Group.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | apache-2.0 |
cbeams-archive/spring-framework-2.5.x | test/org/springframework/web/servlet/view/velocity/TestVelocityEngine.java | 1483 | /*
* Copyright 2002-2006 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... | apache-2.0 |
h2oai/h2o-3 | h2o-extensions/xgboost/src/main/java/hex/tree/xgboost/MemoryCheck.java | 1509 | package hex.tree.xgboost;
import oshi.SystemInfo;
import oshi.hardware.GlobalMemory;
import oshi.hardware.HardwareAbstractionLayer;
import water.util.PrettyPrint;
public class MemoryCheck {
public static Report runCheck(double offHeapRatio) {
SystemInfo systemInfo = new SystemInfo();
HardwareAbst... | apache-2.0 |
zzcclp/carbondata | core/src/main/java/org/apache/carbondata/core/datastore/blocklet/EncodedBlocklet.java | 6853 | /*
* 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 |
tdyas/pants | src/python/pants/backend/jvm/tasks/jvmdoc_gen.py | 10104 | # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import contextlib
import multiprocessing
import os
import re
import subprocess
from collections import namedtuple
from multiprocessing.pool import ThreadPool
from pants.backend.jvm.tasks.... | apache-2.0 |