repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
lindong28/kafka | streams/src/main/java/org/apache/kafka/streams/processor/Processor.java | 2612 | /*
* 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 n... | apache-2.0 |
flaminc/olingo-odata4 | fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/microsoft/test/odata/services/odatawcfservice/types/CustomerCollectionComposableInvoker.java | 1294 | /*
* 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 ma... | apache-2.0 |
lshain-android-source/tools-idea | java/compiler/impl/src/com/intellij/compiler/options/CompilerOptionsManager.java | 1718 | /*
* 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... | apache-2.0 |
alanch-ms/PTVS | Python/Product/PythonTools/PythonTools/WebProject/PythonWebLauncherOptions.cs | 6675 | // Python Tools for Visual Studio
// Copyright(c) Microsoft 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
//... | apache-2.0 |
robertojrojas/go-qemu | examples/hypervisor_domain_list/main.go | 1716 | // Copyright 2016 The go-qemu 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... | apache-2.0 |
jacksonic/vjlofvhjfgm | src/foam/swift/ui/DAOTableViewSource.js | 4560 | /**
* @license
* Copyright 2018 The FOAM 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 ... | apache-2.0 |
ramtej/Qi4j.Repo.4.Sync | core/runtime/src/main/java/org/qi4j/runtime/association/NamedAssociationsModel.java | 5117 | /*
* Copyright (c) 2011-2013, Niclas Hedhman. All Rights Reserved.
* Copyright (c) 2014, Paul Merlin. 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
*
* ... | apache-2.0 |
osuosl/omnibus-software | config/software/libossp-uuid.rb | 1028 | #
# Copyright 2012-2014 Chef Software, 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 ... | apache-2.0 |
mikelewis0/EasySRL | src/edu/uw/easysrl/rebanking/Rebanker.java | 5527 | package edu.uw.easysrl.rebanking;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import com.google.common.collect.HashMultimap;
import com.google.common.collect.Multimap;
import e... | apache-2.0 |
brix-cms/brix-cms | brix-core/src/main/java/org/brixcms/plugin/site/resource/admin/ViewPropertiesTab.java | 3917 | /**
* 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
* distribu... | apache-2.0 |
stanojevic/beer | src/beer/data/judgments/WMT11.scala | 4018 | package beer.data.judgments
import java.io.File
import scala.io.Source
import scala.collection.mutable.{Map => MutableMap}
private class WMT11 (dir:String) {
val csv = dir+"/wmt11-maneval-indivsystems.RNK_results.csv"
val references_dir = dir+"/wmt11-data/plain/references/" // newstest2011-ref.$lang
val sys... | apache-2.0 |
ntt-sic/neutron | neutron/db/migration/alembic_migrations/versions/e197124d4b9_add_unique_constrain.py | 1778 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2013 OpenStack 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... | apache-2.0 |
GAIPS-INESC-ID/FAtiMA-Emotional-Appraisal | Components/Utilities/DataStructures/IOpenSet.cs | 612 | using System.Collections.Generic;
namespace Utilities.DataStructures
{
public interface IOpenSet<T> where T : class
{
void Initialize();
void Replace(NodeRecord<T> nodeToBeReplaced, NodeRecord<T> nodeToReplace);
NodeRecord<T> GetBestAndRemove();
NodeRecord<T> PeekBest();
... | apache-2.0 |
awhitford/DependencyCheck | core/src/main/java/org/owasp/dependencycheck/data/nuget/XPathMSBuildProjectParser.java | 3319 | /*
* This file is part of dependency-check-core.
*
* 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 |
sibok666/flowable-engine | modules/flowable5-test/src/test/java/org/activiti/standalone/history/FullHistoryTest.java | 83826 | /* 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... | apache-2.0 |
gemxd/gemfirexd-oss | tests/core/src/main/java/com/gemstone/gemfire/management/internal/cli/domain/AbstractImpl.java | 789 | /*
* Copyright (c) 2010-2015 Pivotal Software, 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 req... | apache-2.0 |
knative-sandbox/kn-plugin-func | vendor/github.com/tektoncd/pipeline/pkg/client/clientset/versioned/typed/pipeline/v1beta1/generated_expansion.go | 810 | /*
Copyright 2020 The Tekton 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... | apache-2.0 |
sergeyevstifeev/docker | integration-cli/docker_cli_exec_test.go | 18839 | // +build !test_no_exec
package main
import (
"bufio"
"fmt"
"os"
"os/exec"
"path/filepath"
"reflect"
"sort"
"strings"
"sync"
"testing"
"time"
)
func TestExec(t *testing.T) {
defer deleteAllContainers()
runCmd := exec.Command(dockerBinary, "run", "-d", "--name", "testing", "busybox", "sh", "-c", "echo t... | apache-2.0 |
smithab/azure-sdk-for-net | src/ResourceManagement/Resource/Microsoft.Azure.Management.ResourceManager/Generated/IPolicyAssignmentsOperations.cs | 10284 | // 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 0.14.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
... | apache-2.0 |
IgnacioDomingo/rome-modules | src/main/java/com/rometools/modules/opensearch/impl/OpenSearchModuleImpl.java | 4207 | /*
* 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... | apache-2.0 |
lrytz/scala | test/files/neg/t10296-after/UnusedMacro_1.scala | 200 |
import scala.reflect.macros.whitebox.Context
object UnusedMacro {
def macroImpl(c: Context)(body: c.Expr[Int]): c.Tree = {
import c.universe._
val _ = body
Literal(Constant(42))
}
}
| apache-2.0 |
PaycoinFoundation/paycoinj | core/src/main/java/io/xpydev/paycoinj/net/NioClient.java | 3915 | /*
* Copyright 2013 Google Inc.
* Copyright 2014 Andreas Schildbach
*
* 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 |
goodwinnk/intellij-community | python/testSrc/com/jetbrains/python/PythonHighlightingTest.java | 11442 | // Copyright 2000-2017 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.jetbrains.python;
import com.intellij.openapi.editor.colors.EditorColorsManager;
import com.intellij.openapi.editor.colors.EditorColorsScheme;
import com.intellij.ope... | apache-2.0 |
alibaba/fastjson | src/test/java/com/alibaba/json/bvt/serializer/features/WriteNonStringValueAsStringTestIntegerField.java | 935 | package com.alibaba.json.bvt.serializer.features;
import org.junit.Assert;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
import junit.framework.TestCase;
public class WriteNonStringValueAsStringTestIntegerField extends TestCase {
public void test_0() throws Exceptio... | apache-2.0 |
zstackorg/zstack | core/src/main/java/org/zstack/core/ansible/SshYamlChecker.java | 2980 | package org.zstack.core.ansible;
import org.apache.logging.log4j.util.Strings;
import org.zstack.utils.Utils;
import org.zstack.utils.logging.CLogger;
import org.zstack.utils.ssh.Ssh;
import org.zstack.utils.ssh.SshResult;
import java.util.HashMap;
import java.util.Map;
import java.util.stream.Collectors;
/**
* Cre... | apache-2.0 |
salyh/javamailspec | geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TimerService.java | 2771 | /*
* 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 |
AArnott/roslyn | src/VisualStudio/Core/Next/Remote/ServiceHubRemoteHostClient.cs | 6067 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Diagnostics;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.ErrorReporting;
using Microsoft... | apache-2.0 |
qiuxin2012/BigDL | spark/dl/src/main/scala/com/intel/analytics/bigdl/utils/tf/loaders/Conv2DBackpropFilter.scala | 2406 | /*
* Copyright 2016 The BigDL 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 agr... | apache-2.0 |
ya7lelkom/googleads-java-lib | modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201405/InvalidEmailError.java | 1745 |
package com.google.api.ads.dfp.jaxws.v201405;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
/**
*
* Caused by supplying a value for an email attribute that is ... | apache-2.0 |
suhand/product-as | modules/integration/tests-integration/tests-ldap-userstore/src/test/java/org/wso2/appserver/integration/tests/readonlyldap/ReadOnlyLDAPUserStoreManagerTestCase.java | 13436 | /*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lice... | apache-2.0 |
leeyazhou/sharding-jdbc | sharding-scaling/sharding-scaling-mysql/src/test/java/org/apache/shardingsphere/shardingscaling/mysql/MySQLLogPositionManagerTest.java | 3826 | /*
* 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 |
elasticjob/elastic-job | elasticjob-infra/elasticjob-infra-common/src/main/java/org/apache/shardingsphere/elasticjob/infra/exception/JobStatisticException.java | 1136 | /*
* 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 |
jiaphuan/models | research/object_detection/inference/detection_inference.py | 5505 | # Copyright 2017 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 applica... | apache-2.0 |
susinda/devstudio-tooling-esb | plugins/org.wso2.developerstudio.eclipse.gmf.esb/src/org/wso2/developerstudio/eclipse/gmf/esb/MQTTSubscriptionQOS.java | 6087 | /**
* 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 |
googleapis/google-cloud-php | AppEngineAdmin/src/V1/UpdateServiceRequest.php | 9098 | <?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/appengine/v1/appengine.proto
namespace Google\Cloud\AppEngine\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Request message for `Services.UpdateServic... | apache-2.0 |
mahak/vitess | go/vt/vitessdriver/rows.go | 1421 | /*
Copyright 2019 The Vitess 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, soft... | apache-2.0 |
mbiang/cloudformstest | Automate/CloudFormsPOC/Integration/Amazon/RDS.class/__methods__/createrdsinstance.rb | 4574 | begin
@task = nil
@service = nil
# Simple logging method
def log(level, msg)
$evm.log(level, msg)
end
# Error logging convenience
def log_err(err)
log(:error, "#{err.class} #{err}")
log(:error, "#{err.backtrace.join("\n")}")
end
# standard dump of $evm.root
def dump_root()
log(:i... | apache-2.0 |
attila-kiss-it/querydsl | querydsl-codegen-utils/src/main/java/com/querydsl/codegen/utils/MethodEvaluator.java | 1886 | /*
* Copyright 2010, Mysema Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writin... | apache-2.0 |
xstefank/SilverWare-Demos | demos/openalt-2015/src/main/java/io/silverware/demos/openalt/RegisterTemperature.java | 1943 | /*
* -----------------------------------------------------------------------\
* SilverWare
*
* Copyright (C) 2010 - 2013 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 c... | apache-2.0 |
jwren/intellij-community | plugins/java-decompiler/engine/src/org/jetbrains/java/decompiler/main/rels/NestedMemberAccess.java | 16593 | // 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 org.jetbrains.java.decompiler.main.rels;
import org.jetbrains.java.decompiler.code.CodeConstants;
import org.jetbrains.java.decompiler.main.ClassesProcessor.ClassNode;
im... | apache-2.0 |
yugangw-msft/azure-sdk-for-net | sdk/insights/Azure.ResourceManager.Insights/src/Generated/Models/LogSearchRuleResourceCollection.Serialization.cs | 1398 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using System.Text.Json;
using Azure.Core;
namespace Azure.ResourceManager.Insights.Models
{
public partial class LogSearchRuleResourceCollectio... | apache-2.0 |
bradtm/pulsar | pulsar-broker/src/test/java/org/apache/pulsar/broker/loadbalance/SimpleLoadManagerImplTest.java | 26093 | /**
* 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 |
apache/incubator-johnzon | johnzon-jsonb/src/test/java/org/apache/johnzon/jsonb/JohnzonProviderTest.java | 1184 | /*
* 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 ma... | apache-2.0 |
iostackproject/IO-Bandwidth-Differentiation | swift/cli/ringbuilder.py | 46849 | #! /usr/bin/env python
# Copyright (c) 2010-2012 OpenStack 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 ... | apache-2.0 |
baslr/ArangoDB | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js | 1124 | // Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.4.4.21-8-b-iii-1-30
description: >
Array.prototype.reduce - element changed by getter on current
iterations is observed in subsequent iterations on an Array
---... | apache-2.0 |
sul-dlss/squash-web | spec/models/watch_spec.rb | 1415 | # Copyright 2013 Square 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 ... | apache-2.0 |
Selventa/model-builder | tools/groovy/src/src/main/org/codehaus/groovy/runtime/dgmimpl/arrays/ShortArrayPutAtMetaMethod.java | 4157 | /*
* Copyright 2003-2007 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 app... | apache-2.0 |
liuyuanyuan/dbeaver | plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/core/CoreFeatures.java | 1598 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2019 Serge Rider (serge@jkiss.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/license... | apache-2.0 |
jimhotchkin-wf/wGulp | test/integration/modes/browserify/src/app.ts | 266 | declare var document: Document;
declare var require;
var Hat = require('./hat');
var Hello:any = require('./hello').Hello;
var React:any = require('react');
var hat = new Hat('World');
var str = hat.go();
React.renderComponent(Hello({name: str}), document.body);
| apache-2.0 |
hxf0801/guvnor | guvnor-structure/guvnor-structure-backend/src/main/java/org/guvnor/structure/backend/config/Added.java | 941 | /*
* Copyright 2012 JBoss 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 |
googleapis/google-cloud-php | AutoMl/src/V1/resources/prediction_service_descriptor_config.php | 613 | <?php
return [
'interfaces' => [
'google.cloud.automl.v1.PredictionService' => [
'BatchPredict' => [
'longRunning' => [
'operationReturnType' => '\Google\Cloud\AutoMl\V1\BatchPredictResult',
'metadataReturnType' => '\Google\Cloud\AutoMl\V1... | apache-2.0 |
alexcreasy/pnc | build-coordinator/src/test/java/org/jboss/pnc/coordinator/test/BuildCoordinatorBeans.java | 1236 | /**
* JBoss, Home of Professional Open Source.
* Copyright 2014-2020 Red Hat, Inc., and individual 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... | apache-2.0 |
vherilier/jmeter | test/src/org/apache/jmeter/control/TestSwitchController.java | 11696 | /*
* 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 |
artem-aliev/tinkerpop | gremlin-python/src/test/java/org/apache/tinkerpop/gremlin/python/jsr223/PythonGremlinScriptEngineTest.java | 1284 | /*
* 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")... | apache-2.0 |
OpenTrons/opentrons-api | app/src/protocol/index.js | 2243 | // @flow
// protocol state and loading actions
import { getFeatureFlags } from '../config/selectors'
import {
fileToProtocolFile,
parseProtocolData,
fileIsBinary,
fileIsBundle,
} from './protocol-data'
import type { ThunkAction } from '../types'
import type {
OpenProtocolAction,
UploadProtocolAction,
Inv... | apache-2.0 |
djechelon/spring-security | core/src/main/java/org/springframework/security/authorization/AuthorityReactiveAuthorizationManager.java | 4175 | /*
* Copyright 2002-2018 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | apache-2.0 |
darciopacifico/omr | tags/module_1_0/JazzOMR/bsn/src/main/java/br/com/dlp/jazzomr/poc/ExamInstanceXMLHandler.java | 8531 | package br.com.dlp.jazzomr.poc;
import java.io.IOException;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xml.sax.Attributes;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.... | apache-2.0 |
lshain-android-source/tools-idea | java/java-psi-api/src/com/intellij/codeInsight/AnnotationUtil.java | 20159 | /*
* 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... | apache-2.0 |
ened/ExoPlayer | library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/DefaultOggSeekerTest.java | 7812 | /*
* Copyright (C) 2016 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 app... | apache-2.0 |
missioncommand/mil-sym-android | renderer/src/main/java/sec/geo/shape/Circle.java | 2430 | package sec.geo.shape;
import sec.geo.GeoPoint;
import sec.geo.ShapeObject;
import sec.geo.GeoEllipse;
import sec.geo.kml.KmlOptions.AltitudeMode;
public class Circle /*extends APivot*/ { //APivot extends AExtrusion
protected GeoPoint pivot;
protected double radiusMeters;
private ShapeObject shape;
... | apache-2.0 |
voke/google-adwords-api | test/examples/v201109_1/test_campaign_management.rb | 3670 | #!/usr/bin/env ruby
# Encoding: utf-8
#
# Author:: api.dklimkin@gmail.com (Danial Klimkin)
#
# Copyright:: Copyright 2012, Google Inc. All Rights Reserved.
#
# License:: Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# ... | apache-2.0 |
arvindsv/gocd | common/src/main/java/com/thoughtworks/go/remote/work/AgentWorkContext.java | 3533 | /*
* Copyright 2020 ThoughtWorks, 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 agr... | apache-2.0 |
documentcloud/document-viewer | public/javascripts/DV/models/document.js | 4571 | DV.model.Document = function(viewer){
this.viewer = viewer;
this.currentPageIndex = 0;
this.offsets = [];
this.baseHeightsPortion = [];
this.baseHeightsPortionOffsets = [];
this.paddedOffsets = [];
this.originalPageText = {};
thi... | apache-2.0 |
IllusionRom-deprecated/android_platform_tools_idea | python/src/com/jetbrains/python/inspections/PyDocstringTypesInspection.java | 5888 | /*
* 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... | apache-2.0 |
ropik/TypeScript | bin/lib.core.es6.d.ts | 215295 | /*! *****************************************************************************
Copyright (c) Microsoft 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:/... | apache-2.0 |
rpmoore/ds3_java_sdk | ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ImportAllPoolsSpectraS3Response.java | 1220 | /*
* ******************************************************************************
* Copyright 2014-2019 Spectra Logic 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. A copy of the License i... | apache-2.0 |
philliprower/cas | api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/hazelcast/HazelcastWANReplicationTargetClusterProperties.java | 4382 | package org.apereo.cas.configuration.model.support.hazelcast;
import org.apereo.cas.configuration.support.RequiresModule;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
/**
* This is {@link HazelcastWANReplicationTargetClusterProperties}.
*
* @author Misagh Moayyed
* @since 6.1.0
*/
@... | apache-2.0 |
lshain-android-source/tools-idea | java/compiler/impl/src/com/intellij/compiler/impl/CompilerErrorTreeView.java | 7768 | /*
* 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... | apache-2.0 |
apache/commons-jcs | src/experimental/org/apache/commons/jcs/auxiliary/lateral/http/server/AbstractDeleteCacheServlet.java | 10142 | package org.apache.commons.jcs.auxiliary.lateral.http.server;
/*
* 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... | apache-2.0 |
fishstick/vcloud-rest | examples/example.rb | 5189 | ### vcloud-rest example.rb
### fabio@rapposelli.org - github.com/frapposelli
require 'vcloud-rest/connection'
begin
gem "awesome_print"
rescue LoadError
system("gem install awesome_print")
Gem.clear_paths
end
require 'awesome_print'
###
### This Example shows how to utilize vcloud-rest to fetch information fro... | apache-2.0 |
SwimGlass/rubi | progs/miller.rb | 590 | def modPow(b, p, m)
res = 1
while p > 0
if p % 2 == 1
res = (res * b) % m
end
b = (b * b) % m
p = p / 2
end
res
end
def prime(n)
if n < 2
return 0
elsif n == 2
return 1
elsif n % 2 == 0
return 0
end
d = n - 1
while d % 2 == 0; d = d / 2; end
for q = 0, q < 30, q++
a = (rand() % (n - 2))... | bsd-2-clause |
useabode/redash | node_modules/plotly.js/src/fonts/mathjax_config.js | 621 | /**
* Copyright 2012-2017, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
/* global MathJax:false */
/**
* Check and configure MathJax
*/
if(typeof MathJax !== 'undefined') {
expo... | bsd-2-clause |
timsutton/homebrew-cask | Casks/lingon-x.rb | 754 | cask 'lingon-x' do
if MacOS.version <= :high_sierra
version '6.6.4'
sha256 'fc788402fa16df39a3d48cdc501dae31368ec6fd69ffe0026ba99932b28cae19'
else
version '7.3'
sha256 '7eff602f723735e51169c875ea84778fe79dcb5b01258ebdd44ec54ceeee2389'
end
url "https://www.peterborgapps.com/downloads/LingonX#{ve... | bsd-2-clause |
jpcy/bgfx | 3rdparty/spirv-tools/source/fuzz/instruction_message.cpp | 2528 | // Copyright (c) 2019 Google 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
//
// Unless required by applicable law or agreed to ... | bsd-2-clause |
victorpopkov/homebrew-fonts | Casks/font-wire-one.rb | 348 | cask 'font-wire-one' do
version '1.000'
sha256 '1cf739c8fc17663059c2544be19cf590404e17fc9ec1778a080e13de5282e9fc'
url 'https://googlefontdirectory.googlecode.com/hg-history/67342bc472599b4c32201ee4a002fe59a6447a42/ofl/wireone/WireOne.ttf'
homepage 'http://www.google.com/fonts/specimen/Wire%20One'
license :of... | bsd-2-clause |
Sethtroll/runelite | cache/src/main/java/net/runelite/cache/definitions/WorldMapDefinition.java | 1830 | /*
* Copyright (c) 2017, Adam <Adam@sigterm.info>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* li... | bsd-2-clause |
sscotth/homebrew-cask | Casks/marginnote.rb | 625 | cask 'marginnote' do
version '3.6.11'
sha256 '0c7560beecdd91396452890a919147c902191fc07ad6da841a81ac67832d5010'
# marginstudy.com/ was verified as official when first introduced to the cask
url "https://marginstudy.com/mac/MarginNote#{version.major}.dmg"
appcast "https://dist.marginnote.cn/marginnote#{versio... | bsd-2-clause |
MatterHackers/agg-sharp | agg/Platform/FileDialogs/SaveFileDialogParams.cs | 679 | using System;
namespace MatterHackers.Agg.Platform
{
public class SaveFileDialogParams : FileDialogParams
{
/// The following are examples of valid Filter string values:
/// Word Documents|*.doc
/// All Files|*.*
/// Word Documents|*.doc|Excel Worksheets|*.xls|PowerPoint Presentations|*.ppt|Office Fil... | bsd-2-clause |
bmichotte/sugarcube | lib/ios/sugarcube-constants/symbol.rb | 31138 | =begin
Adds constant lookups to the Symbol class. These methods are prefixed with `ui`
or `ns` to make their intent clear, and to provide a little bit of "namespacing"
# alignment
:left.nsalignment => NSTextAlignmentLeft
# uicolors
:black.uicolor => UIColor.blackColor
You can extend the defaults by ... | bsd-2-clause |
EIDSS/EIDSS-Legacy | EIDSS v6/eidss.webui/Utils/MenuCategory.cs | 1141 | using System;
using System.Collections.Generic;
using System.Xml.Linq;
namespace eidss.webui.Utils
{
public class MenuCategory
{
public string Name { get; set; }
public bool IsActive { get; set; }
public List<MenuItem> Items { get; set; }
public MenuCategory(stri... | bsd-2-clause |
nask0/phalcon-skeletons | library/Phalcon/Mvc/Model/MetaData/Memcache.php | 2437 | <?php
/**
* Phalcon Framework
* This source file is subject to the New BSD License that is bundled
* with this package in the file docs/LICENSE.txt.
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@phalconphp.com so we can s... | bsd-3-clause |
INCF/lib9ML | nineml/abstraction/componentclass/visitors/queriers.py | 9896 | from past.builtins import basestring
from copy import copy
import sympy
from sympy import sympify
from sympy.logic.boolalg import BooleanTrue, BooleanFalse
from sympy.functions.elementary.piecewise import ExprCondPair
from ...expressions import reserved_identifiers
from nineml.visitors import BaseVisitor, BaseVisitorWi... | bsd-3-clause |
mowema/verano | vendor/zendframework/zendframework/library/Zend/ProgressBar/Adapter/Exception/RuntimeException.php | 557 | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
n... | bsd-3-clause |
pbrunet/pythran | third_party/boost/simd/include/functions/modf.hpp | 173 | #ifndef BOOST_SIMD_INCLUDE_FUNCTIONS_MODF_HPP_INCLUDED
#define BOOST_SIMD_INCLUDE_FUNCTIONS_MODF_HPP_INCLUDED
#include <boost/simd/ieee/include/functions/modf.hpp>
#endif
| bsd-3-clause |
pongad/api-client-staging | generated/java/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecordProto.java | 2811 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/monitoring/v3/mutation_record.proto
package com.google.monitoring.v3;
public final class MutationRecordProto {
private MutationRecordProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite re... | bsd-3-clause |
steffeli/inf5750-tracker-capture | dhis-api/src/main/java/org/hisp/dhis/trackedentityattributevalue/TrackedEntityAttributeValueService.java | 4960 | package org.hisp.dhis.trackedentityattributevalue;
/*
* Copyright (c) 2004-2015, University of Oslo
* 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 ... | bsd-3-clause |
espadrine/opera | chromium/src/third_party/WebKit/Source/core/platform/SharedBufferChunkReader.cpp | 5262 | /*
* Copyright (C) 2011 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | bsd-3-clause |
hzhao/galago-git | utility/src/main/java/org/lemurproject/galago/utility/btree/disk/DiskBTreeReader.java | 7038 | // BSD License (http://lemurproject.org/galago-license)
package org.lemurproject.galago.utility.btree.disk;
import org.lemurproject.galago.utility.CmpUtil;
import org.lemurproject.galago.utility.Parameters;
import org.lemurproject.galago.utility.buffer.CachedBufferDataStream;
import org.lemurproject.galago.utility.buf... | bsd-3-clause |
dan-passaro/django-cachalot | cachalot/tests/models.py | 1008 | # coding: utf-8
from __future__ import unicode_literals
from django.conf import settings
from django.db.models import (
Model, CharField, ForeignKey, BooleanField, DateField, DateTimeField,
ManyToManyField, BinaryField)
class Test(Model):
name = CharField(max_length=20)
owner = ForeignKey(settings.A... | bsd-3-clause |
jfinkels/networkx | networkx/algorithms/tests/test_cycles.py | 8279 | #!/usr/bin/env python
from nose.tools import *
import networkx
import networkx as nx
from networkx.algorithms import find_cycle
FORWARD = nx.algorithms.edgedfs.FORWARD
REVERSE = nx.algorithms.edgedfs.REVERSE
class TestCycles:
def setUp(self):
G=networkx.Graph()
nx.add_cycle(G, [0,1,2,3])
n... | bsd-3-clause |
ayumin/kozuchi | app/models/friend/rejection.rb | 292 | class Friend::Rejection < Friend::Permission
validate :validates_not_rejected
private
def validates_not_rejected
errors.add_to_base("すでにフレンド関係を拒否しています。") if Friend::Rejection.find_by_user_id_and_target_id(self.user_id, self.target_id)
end
end | bsd-3-clause |
jack-pappas/PyTables | tables/description.py | 36300 | # -*- coding: utf-8 -*-
########################################################################
#
# License: BSD
# Created: September 21, 2002
# Author: Francesc Alted
#
# $Id$
#
########################################################################
"""Classes for describing columns for ``Table`` objects."""
# Im... | bsd-3-clause |
pvanhorn/openthread | src/ncp/ncp_base_radio.cpp | 12607 | /*
* Copyright (c) 2016-2017, The OpenThread 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:
* 1. Redistributions of source code must retain the above copyright
* ... | bsd-3-clause |
meego-tablet-ux/meego-app-browser | views/test/test_views_delegate.cc | 1004 | // 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.
#include "views/test/test_views_delegate.h"
TestViewsDelegate::TestViewsDelegate() {}
TestViewsDelegate::~TestViewsDelegate() {}
ui::Clipboard* Test... | bsd-3-clause |
OrchardCMS/Brochard | src/OrchardCore/OrchardCore.Navigation.Core/NavigationManager.cs | 10419 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Routing;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.Logging;
using O... | bsd-3-clause |
littleflylongbow/guichan | include/guichan/widgets/dropdown.hpp | 9825 | /* _______ __ __ __ ______ __ __ _______ __ __
* / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\
* / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / /
* / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / /
* / /_// /\ / /_// / // / // /_/_ ... | bsd-3-clause |
Cadair/ginga | ginga/tests/test_imap.py | 2738 | #
# Unit Tests for the imap.py functions
#
# Rajul Srivastava (rajul09@gmail.com)
#
import unittest
import logging
import numpy as np
import ginga.imap
from ginga.imap import IntensityMap
class TestError(Exception):
pass
class TestCmap(unittest.TestCase):
def setUp(self):
pass
def test_Inten... | bsd-3-clause |
atul-bhouraskar/django | django/db/migrations/serializer.py | 12965 | import builtins
import collections.abc
import datetime
import decimal
import enum
import functools
import math
import os
import pathlib
import re
import types
import uuid
from django.conf import SettingsReference
from django.db import models
from django.db.migrations.operations.base import Operation
from django.db.mig... | bsd-3-clause |
zzuegg/jmonkeyengine | jme3-vr/src/main/java/com/jme3/system/jopenvr/VR_IVRRenderModels_FnTable.java | 8649 | package com.jme3.system.jopenvr;
import com.sun.jna.Callback;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import com.sun.jna.ptr.IntByReference;
import com.sun.jna.ptr.PointerByReference;
import java.util.Arrays;
import java.util.List;
/**
* <i>native declaration : headers\openvr_capi.h:2251</i>... | bsd-3-clause |
Segs/Segs | Utilities/SEGSAdmin/SyntaxHighlighter.cpp | 2128 | /*
* SEGS - Super Entity Game Server
* http://www.segs.dev/
* Copyright (c) 2006 - 2019 SEGS Team (see AUTHORS.md)
* This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details.
*/
/*!
* @addtogroup SEGSAdmin Projects/CoX/Utilities/SEGSAdmin
* @{
*/
#include "SyntaxHighli... | bsd-3-clause |