repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
deeplearning4j/deeplearning4j | nd4j/nd4j-parameter-server-parent/nd4j-parameter-server-node/src/main/java/org/nd4j/parameterserver/distributed/enums/TransportType.java | 1273 | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | apache-2.0 |
Azure/azure-mobile-apps-js-client | sdk/test/tests/target/cordova/purge.tests.js | 9178 | // ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
/**
* @file unit tests for the 'purge' module
*
*/
var Platform = require('../../../../src/Pl... | apache-2.0 |
tenggyut/HIndex | hbase-secondaryindex/src/main/java/org/apache/hadoop/hbase/index/client/RangeExpression.java | 2836 | /**
* 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 |
roaet/python-neutronclient | neutronclient/neutron/v2_0/lb/v2/member.py | 4933 | # Copyright 2013 Mirantis Inc.
# Copyright 2014 Blue Box Group, Inc.
# Copyright 2015 Hewlett-Packard Development Company, L.P.
# All Rights Reserved
#
# Author: Ilya Shakhat, Mirantis Inc.
# Author: Craig Tracey <craigtracey@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# ... | apache-2.0 |
openkp/openkp | src/test/java/pl/openkp/business/uzytkownicy/boundary/UzytkownikResourceTest.java | 2862 | /**
* 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
* distribute... | apache-2.0 |
ReviakinAleksey/newman | src/test/scala/com/stackmob/newman/test/client/ReadCachingDummyHttpClientSpecs.scala | 6680 | /**
* Copyright 2012-2013 StackMob
*
* 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 i... | apache-2.0 |
lukecwik/incubator-beam | sdks/python/apache_beam/io/external/generate_sequence_test.py | 1961 | #
# 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 us... | apache-2.0 |
KittyPass/kitty_pass | db/migrate/20150610101902_create_proteus.rb | 499 | class CreateProteus < ActiveRecord::Migration
def change
create_table :proteus do |t|
t.string :hostname
t.string :identifier
t.string :serial_number
t.string :inventory_number
t.string :root_password
t.string :ipv4_gateway
t.string :ipv6_gateway
t.references :model... | apache-2.0 |
googleapis/google-cloud-ruby | google-cloud-debugger-v2/lib/google-cloud-debugger-v2.rb | 839 | # frozen_string_literal: true
# Copyright 2020 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | apache-2.0 |
huitseeker/deeplearning4j | deeplearning4j-scaleout/spark/dl4j-spark-nlp-java8/src/main/java/org/deeplearning4j/spark/models/sequencevectors/learning/sequence/SparkDM.java | 4347 | package org.deeplearning4j.spark.models.sequencevectors.learning.sequence;
import org.deeplearning4j.exception.DL4JInvalidInputException;
import org.deeplearning4j.models.embeddings.learning.impl.elements.RandomUtils;
import org.deeplearning4j.models.sequencevectors.sequence.Sequence;
import org.deeplearning4j.models.... | apache-2.0 |
mccxj/tidb | distsql/distsql_test.go | 7493 | // Copyright 2018 PingCAP, 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 i... | apache-2.0 |
roambotics/swift | stdlib/public/stubs/Random.cpp | 3691 | //===--- Random.cpp -------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | apache-2.0 |
maxml/sample-apps | smarthousedemo/source/src/org/kaaproject/kaa/demo/smarthousedemo/ThermostatActivity.java | 965 | /**
* Copyright 2014-2016 CyberVision, 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 applicabl... | apache-2.0 |
shanti/olio | webapp/rails/trunk/vendor/plugins/rspec/spec/spec/matchers/match_spec.rb | 1927 | #
# 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 |
census-instrumentation/opencensus-go | stats/record.go | 4429 | // Copyright 2018, OpenCensus 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 agree... | apache-2.0 |
srmooney/PiFrame | home/pi/Documents/NodeFrame bak/node_modules/onoff/node_modules/epoll/test/performance-check.js | 1041 | /*
* Determine approximately how many EPOLLIN events can be handled per second.
*
* This test expects a newline as input on stdin. It polls for events on stdin
* but doesn't read stdin until the test has completed. This results in a
* continuous stream of events while the test is running.
*
* Note that the rate ... | apache-2.0 |
luotao1/Paddle | paddle/fluid/operators/mkldnn/transpose_mkldnn_op.cc | 8432 | /* Copyright (c) 2018 PaddlePaddle 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 applic... | apache-2.0 |
occ-data/tukey-middleware | config_gen/config_gen.py | 15536 | # Copyright 2013 Open Cloud Consortium
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 |
jingtangliao/ff | Demos/DemoMaskedLaplacianSynthetic.cpp | 3204 | /*=========================================================================
*
* Copyright David Doria 2011 daviddoria@gmail.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
*
*... | apache-2.0 |
galpha/gradoop | gradoop-flink/src/main/java/org/gradoop/flink/model/impl/functions/epgm/Clone.java | 1268 | /*
* Copyright © 2014 - 2021 Leipzig University (Database Research 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
*
* Unles... | apache-2.0 |
QiJune/Paddle | paddle/contrib/float16/float16_transpiler.py | 11067 | # Copyright (c) 2018 PaddlePaddle 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 app... | apache-2.0 |
youdonghai/intellij-community | python/src/com/jetbrains/python/codeInsight/intentions/PyConvertMethodToPropertyIntention.java | 4481 | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | apache-2.0 |
sbespalov/strongbox | strongbox-commons/src/main/java/org/carlspring/strongbox/yaml/YAMLMapperFactory.java | 297 | package org.carlspring.strongbox.yaml;
import javax.annotation.Nonnull;
import java.util.Set;
import com.fasterxml.jackson.dataformat.yaml.YAMLMapper;
/**
* @author Przemyslaw Fusik
*/
public interface YAMLMapperFactory
{
YAMLMapper create(@Nonnull final Set<Class<?>> contextClasses);
}
| apache-2.0 |
EnMasseProject/enmasse | vendor/github.com/prometheus/prometheus/storage/tsdb/tsdb.go | 8650 | // Copyright 2017 The Prometheus 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... | apache-2.0 |
osswangxining/mvel-jsr223 | mvel-jsr223/src/org/mvel2/ast/ForEachNode.java | 7886 | /**
* MVEL 2.0
* Copyright (C) 2007 The Codehaus
* Mike Brock, Dhanji Prasanna, John Graham, Mark Proctor
*
* 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.or... | apache-2.0 |
knoguchi/druid | server/src/main/java/org/apache/druid/client/indexing/ClientCompactQueryTuningConfig.java | 4864 | /*
* 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 |
tdiesler/camel | core/camel-management/src/test/java/org/apache/camel/management/ManagedNamePatternJvmSystemPropertyTest.java | 2485 | /*
* 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 |
snnn/bazel | src/test/java/com/google/devtools/build/lib/rules/objc/LegacyObjcFrameworkTest.java | 1238 | // Copyright 2017 The Bazel 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 appl... | apache-2.0 |
pedroSG94/rtmp-rtsp-stream-client-java | rtplibrary/src/main/java/com/pedro/rtplibrary/network/AdapterBitrateParser.java | 1817 | /*
* Copyright (C) 2021 pedroSG94.
*
* 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 i... | apache-2.0 |
hustcat/docker | vendor/src/github.com/docker/libnetwork/network.go | 30348 | package libnetwork
import (
"encoding/json"
"fmt"
"net"
"strings"
"sync"
log "github.com/Sirupsen/logrus"
"github.com/docker/docker/pkg/stringid"
"github.com/docker/libnetwork/config"
"github.com/docker/libnetwork/datastore"
"github.com/docker/libnetwork/driverapi"
"github.com/docker/libnetwork/etchosts"
... | apache-2.0 |
aidancasey/azure-sdk-tools | WindowsAzurePowershell/src/Management.Test/Tests/Services/SubscriptionsManagerTests.cs | 4186 | using System;
using System.IO;
using System.Security.Cryptography.X509Certificates;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.WindowsAzure.Management.Model;
using Microsoft.WindowsAzure.Management.Properties;
using Microsoft.WindowsAzure.Management.Services;
using Microsoft.WindowsAzure.Manag... | apache-2.0 |
markosbg/debug | rabix-bindings-draft2/src/main/java/org/rabix/bindings/draft2/helper/Draft2BeanHelper.java | 1015 | package org.rabix.bindings.draft2.helper;
import java.util.List;
import java.util.Map;
public class Draft2BeanHelper {
public static <T> T getValue(String key, Object raw) {
return getValue(key, raw, null);
}
@SuppressWarnings("unchecked")
public static <T> T getValue(String key, Object raw, T defaultVa... | apache-2.0 |
jamiepg1/xcode-maven-plugin | modules/xcode-maven-plugin/src/main/java/com/sap/prd/mobile/ios/mios/XCodeVersionInfoMojo.java | 13368 | /*
* #%L
* xcode-maven-plugin
* %%
* Copyright (C) 2012 SAP AG
* %%
* 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 |
victorbrodsky/order-lab | orderflex/src/App/OrderformBundle/Repository/PartRepository.php | 16367 | <?php
/**
* Copyright (c) 2017 Cornell University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | apache-2.0 |
prabushi/devstudio-tooling-esb | plugins/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/providers/assistants/EsbModelingAssistantProviderOfSmooksMediatorEditPart.java | 899 | package org.wso2.developerstudio.eclipse.gmf.esb.diagram.providers.assistants;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.wso2.developerstudio.eclipse.gmf.esb.diagram.providers.EsbElementTypes;
im... | apache-2.0 |
sachindeorah/geofeatures | GeoFeatures/boost/geometry/strategies/geographic/distance_andoyer.hpp | 6683 | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// This file was modified by Oracle on 2014.
// Modifications copyright (c) 2014 Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
// Use, m... | apache-2.0 |
javimosch/hideberg | src/client/smc/js/controllers/Orders/Modals/FinishCtrl.js | 1942 | angular.module('shopmycourse.controllers')
/**
* @name OrdersFinishCtrl
* @function Controleur
* @memberOf shopmycourse.controllers
* @description Finalisation de la commande
*/
.controller('OrdersFinishCtrl', function($scope, $ionicLoading, $ionicSlideBoxDelegate, $ionicPopup, $ionicHistory, DeliveryAPI, Current... | apache-2.0 |
codepoke/libgdx | gdx/src/com/badlogic/gdx/maps/tiled/BaseTmxMapLoader.java | 15450 |
package com.badlogic.gdx.maps.tiled;
import com.badlogic.gdx.assets.AssetLoaderParameters;
import com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader;
import com.badlogic.gdx.assets.loaders.FileHandleResolver;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gd... | apache-2.0 |
nagyist/marketcetera | photon/photon/plugins/org.marketcetera.photon.module.ui/src/main/java/org/marketcetera/photon/internal/module/ui/ModulePropertiesPreferencePage.java | 12254 | package org.marketcetera.photon.internal.module.ui;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IMenuListener;
import org.eclipse.jface.action... | apache-2.0 |
bshp/midPoint | gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/component/icon/TopRightIconCssStyle.java | 744 | /*
* Copyright (c) 2010-2019 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.gui.impl.component.icon;
/**
* Created by honchar
*/
public class TopRightIconCssStyle implements... | apache-2.0 |
dstufft/cryptography | cryptography/hazmat/primitives/constant_time.py | 1590 | # 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 the Li... | apache-2.0 |
lburgazzoli/spring-boot | spring-boot-project/spring-boot/src/main/java/org/springframework/boot/EnvironmentConverter.java | 4598 | /*
* Copyright 2012-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 |
iouri-s/azure-powershell | src/ServiceManagement/Services/Commands.Test/CloudService/Development/DisableAzureRemoteDesktopCommandTest.cs | 9616 | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | apache-2.0 |
zeliard/aws-sdk-cpp | aws-cpp-sdk-sqs/source/model/CreateQueueResult.cpp | 1953 | /*
* Copyright 2010-2015 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 "license" file... | apache-2.0 |
thebsdbox/infrakit | pkg/fsm/types.go | 4453 | package fsm // import "github.com/docker/infrakit/pkg/fsm"
// ID is the id of the instance in a given set. It's unique in that set.
type ID uint64
// FSM is the interface that returns ID and state of the fsm instance safely.
type FSM interface {
// ID returns the ID of the instance
ID() ID
// State returns the ... | apache-2.0 |
nickmain/blockly | demos/blockfactory_old/blocks.js | 25828 | /**
* Blockly Demos: Block Factory Blocks
*
* Copyright 2012 Google Inc.
* https://developers.google.com/blockly/
*
* 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.ap... | apache-2.0 |
liuzcgithub/chef-repo | cookbooks/CLM_E1_APP_COOKBOOK/files/default/ssea-clm-full-distribute-db2-cfg_nonroot/InstallCLMapps.py | 7844 |
###################################################
def deployJazzApp(app_name,nname,sname):
print "====== installing " + app_name + " Web Application on WAS on " + nname + "server " + sname + "======\n"
app_war= app_name + '.war'
installed_appname = app_name + '_war'
app_ctx = '/' + app_name
ap... | apache-2.0 |
chenc10/Spark-PAF | network/shuffle/src/main/java/org/apache/spark/network/shuffle/mesos/MesosExternalShuffleClient.java | 3077 | /*
* 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 |
Yaliang/presto | presto-main/src/test/java/com/facebook/presto/block/TestMapBlock.java | 13291 | /*
* 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 |
Xuvasi/asset-interop | Bacnet to AIP Gateway Example Code/src/com/serotonin/bacnet4j/type/constructed/LogData.java | 6832 | /*
* ============================================================================
* GNU General Public License
* ============================================================================
*
* Copyright (C) 2006-2011 Serotonin Software Technologies Inc. http://serotoninsoftware.com
* @author Matthew Lohbihler
*... | apache-2.0 |
Xaerxess/guava | guava/src/com/google/common/math/LongMath.java | 39444 | /*
* Copyright (C) 2011 The Guava 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 |
amitmawkin/Hygieia | api/src/test/java/com/capitalone/dashboard/service/ScoreCriteriaSettingsServiceTest.java | 3556 | package com.capitalone.dashboard.service;
import com.capitalone.dashboard.model.score.ScoreValueType;
import com.capitalone.dashboard.model.score.settings.*;
import com.capitalone.dashboard.repository.ScoreCriteriaSettingsRepository;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.dat... | apache-2.0 |
zamattiac/SHARE | tests/share/disambiguation/test_agent.py | 5002 | import pytest
from share import models
from share.change import ChangeGraph
from share.models import ChangeSet
from tests.share.models.factories import NormalizedDataFactory
from tests.share.normalize.factories import *
initial = [
Preprint(
identifiers=[WorkIdentifier(1)],
agent_relations=[
... | apache-2.0 |
c3bd/cassandraxml | src/java/org/apache/cassandra/db/marshal/FileSizeType.java | 2389 | package org.apache.cassandra.db.marshal;
import imc.disxmldb.dom.typesystem.ValueType;
import java.nio.ByteBuffer;
import java.util.HashMap;
import java.util.Map;
import org.apache.cassandra.utils.ByteBufferUtil;
public class FileSizeType extends AbstractType<String> {
public static int KILO_BYTES = 1024;
public... | apache-2.0 |
graetzer/arangodb | 3rdParty/boost/1.71.0/libs/graph/example/astar-cities.cpp | 6681 |
//
//=======================================================================
// Copyright (c) 2004 Kristopher Beevers
//
// 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)
//=======================================... | apache-2.0 |
raja15792/googleads-java-lib | modules/ads_lib/src/main/java/com/google/api/ads/adwords/lib/conf/AdWordsApiConfiguration.java | 2573 | // Copyright 2011 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | apache-2.0 |
davidkarlsen/camel | components/camel-mail/src/test/java/org/apache/camel/component/mail/MailPollEnrichTest.java | 3345 | /*
* 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 |
MiriamAG/reto-3 | programacion/Proyecto/src/com/clases/Parte.java | 8465 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.clases;
import java.math.BigDecimal;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql... | apache-2.0 |
jasongzcity/MyAlgorithm | leetcode/src/MajorityElement_169/Solution.java | 678 | package MajorityElement_169;
/**
* Given an array of size n, find the majority element.
* The majority element is the element that appears more than ⌊ n/2 ⌋ times.
*
* You may assume that the array is non-empty and the majority element
* always exist in the array.
*/
public class Solution {
// O(1) space one... | apache-2.0 |
billchen198318/bamboobsc | core-lib/BASE/com/netsteadfast/greenstep/base/service/IBaseService.java | 2259 | /*
* Copyright 2012-2016 bambooCORE, greenstep of copyright Chen Xin Nien
*
* 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 |
libow/hobbes | lib/hobbes/lang/typepreds.C | 3781 |
#include <hobbes/lang/typepreds.H>
#include <hobbes/lang/expr.H>
#include <hobbes/lang/typeinf.H>
namespace hobbes {
void UnqualifierSet::add(const std::string& name, const UnqualifierPtr& uq) {
if (this->uqs.find(name) != this->uqs.end()) {
throw std::runtime_error("Redefinition of the '" + name + "' type pre... | apache-2.0 |
unlimitedlabs/orchestra | orchestra/tests/workflows/test_certifications.py | 6548 | from orchestra.models import WorkerCertification
from orchestra.tests.helpers import OrchestraTestCase
from orchestra.tests.helpers.fixtures import CertificationFactory
from orchestra.tests.helpers.fixtures import UserFactory
from orchestra.tests.helpers.fixtures import WorkerCertificationFactory
from orchestra.tests.h... | apache-2.0 |
msebire/intellij-community | platform/core-api/src/com/intellij/lang/ASTNode.java | 8963 | /*
* Copyright 2000-2015 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 |
mesos/mesos-rxjava | mesos-rxjava-recordio/src/main/java/com/mesosphere/mesos/rx/java/recordio/package-info.java | 766 | /*
* Copyright (C) 2015 Mesosphere, 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 ... | apache-2.0 |
PerfectMemory/rabbitmq | recipes/user_management.rb | 1298 | # -*- coding: utf-8 -*-
#
# Cookbook Name:: rabbitmq
# Recipe:: user_management
#
# Copyright 2013, Grégoire Seux
# Copyright 2013, 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 Li... | apache-2.0 |
detiber/lib_openshift | lib_openshift/models/v1_secret_spec.py | 4171 | # coding: utf-8
"""
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
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 |
luci/luci-go | machine-db/client/cli/oses.go | 2342 | // Copyright 2017 The LUCI 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 |
stephane-martin/salt-debian-packaging | salt-2016.3.2/salt/modules/freebsdservice.py | 8692 | # -*- coding: utf-8 -*-
'''
The service module for FreeBSD
.. important::
If you feel that Salt should be using this module to manage services on a
minion, and it is using a different module (or gives an error similar to
*'service.start' is not available*), see :ref:`here
<module-provider-override>`.
'... | apache-2.0 |
bollwyvl/CesiumWidget | CesiumWidget/static/CesiumWidget/cesium/Specs/Scene/QuadtreeTileSpec.js | 6082 | /*global defineSuite*/
defineSuite([
'Scene/QuadtreeTile',
'Core/GeographicTilingScheme',
'Core/Math',
'Core/Rectangle',
'Core/WebMercatorTilingScheme'
], function(
QuadtreeTile,
GeographicTilingScheme,
CesiumMath,
Rectangle,
... | apache-2.0 |
sdnwiselab/onos | protocols/pcep/pcepio/src/main/java/org/onosproject/pcepio/types/LocalNodeDescriptorsTlv.java | 8612 | /*
* Copyright 2016-present Open Networking 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 appli... | apache-2.0 |
Zhangsongsong/GraduationPro | 毕业设计/code/android/YYFramework/src/com/easemob/livestream/data/TestAvatarRepository.java | 1232 | package com.easemob.livestream.data;
import android.content.Context;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import app.config.DemoApplication;
/**
* Created by wei on 2016/7/4.
*/
public class TestAvatarRepository {
static List<Integer> avatarlist = new ArrayList<>();
... | apache-2.0 |
cmanlh/jquery-component | com/lifeonwalden/jqc/contextmenu/contextmenu.js | 15620 | /*
Copyright 2017 cmanlh
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 |
missedone/testng | src/main/java/org/testng/util/Strings.java | 2202 | package org.testng.util;
import org.testng.collections.Maps;
import java.util.Map;
public final class Strings {
private Strings() {
// Utility class. Defeat instantiation.
}
//TODO: When TestNG moves to JDK11 as the default JDK this method needs to be deprecated and removed
//because now this method is ... | apache-2.0 |
kou/zulip | static/js/stats/stats.js | 36820 | "use strict";
const Plotly = require("plotly.js/lib/core");
Plotly.register([require("plotly.js/lib/bar"), require("plotly.js/lib/pie")]);
const font_14pt = {
family: "Source Sans Pro",
size: 14,
color: "#000000",
};
let last_full_update = Infinity;
// TODO: should take a dict of arrays and do it for a... | apache-2.0 |
ijuma/kafka | streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java | 31930 | /*
* 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 |
apparentlymart/camlistore-debian | pkg/blobserver/localdisk/localdisk.go | 3920 | /*
Copyright 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | apache-2.0 |
apache/incubator-asterixdb | hyracks-fullstack/hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/buffermanager/IPartitionedTupleBufferManager.java | 4853 | /*
* 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 |
goose3/goose3 | docs/source/conf.py | 5445 | # -*- coding: utf-8 -*-
#
# goose3 documentation build configuration file, created by
# sphinx-quickstart on Sat Jan 6 10:10:16 2018.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | apache-2.0 |
ruks/carbon-apimgt | components/apimgt/org.wso2.carbon.apimgt.gateway/src/test/java/org/wso2/carbon/apimgt/gateway/handlers/throttling/ThrottleHandlerTest.java | 35510 | /*
* Copyright (c) 2017, 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... | apache-2.0 |
hardfish/justTest | cdmi/src/test/java/org/jclouds/snia/cdmi/v1/features/DataApiExpectTest.java | 1067 | /*
* 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 |
iheartradio/fastly-sqs | src/main/scala/com/iheart/sqs/DBUtils.scala | 3785 | package com.iheart.sqs
import java.text.SimpleDateFormat
import java.time.{LocalDateTime, ZoneId}
import java.util.Date
import scala.concurrent.duration._
import com.iheart.sqs.Utils._
import org.mapdb.{DBMaker, Serializer}
import play.Logger
import scala.collection.JavaConverters._
import java.util.concurrent.Exec... | apache-2.0 |
SebastianKersten/Mimoto | src/userinterface/MimotoCMS/ComponentController.php | 1994 | <?php
// classpath
namespace Mimoto\UserInterface\MimotoCMS;
// Silex classes
use Mimoto\Data\MimotoDataUtils;
use Mimoto\Mimoto;
use Mimoto\Core\CoreConfig;
// Symfony classes
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\JsonResponse;
// Silex classes
use Silex\Application;
... | apache-2.0 |
achristianson/nifi-minifi-cpp | nanofi/tests/CTailFileDelimitedTests.cpp | 8412 | /**
*
* 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 |
omegaga/peloton | tests/concurrency/transaction_test.cpp | 7562 | //===----------------------------------------------------------------------===//
//
// Peloton
//
// transaction_test.cpp
//
// Identification: tests/concurrency/transaction_test.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===----------------------------------... | apache-2.0 |
MyRobotLab/pyrobotlab | home/brotherbrown831/inmoov/bots/gestures/eyeslooking.py | 579 | def eyeslooking(data):
for y in range(0, 5):
if (data == "can i have your attention"):
i01.mouth.speak("ok you have my attention")
stopit()
if (data == "inmoov"):
stopit()
x = (random.randint(1, 6))
if x == 1:
i01.head.eyeX.moveTo(80)
... | apache-2.0 |
hangxin1940/elasticsearch-cn-out-of-box | plugins/HQ/js/view/document/DocumentListView.js | 7449 | /*
Copyright 2013 Roy Russo
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
di... | apache-2.0 |
nssales/Strata | modules/collect/src/main/java/com/opengamma/strata/collect/io/PropertySet.java | 7405 | /**
* Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.collect.io;
import java.util.Map;
import java.util.Map.Entry;
import com.google.common.base.MoreObjects;
import com.google.common.collect.ArrayListMul... | apache-2.0 |
houjinyun/hjy | FileUploaderAndDownloader/src/main/java/com/hjy/http/upload/uploader/BaseUploader.java | 458 | package com.hjy.http.upload.uploader;
import com.hjy.http.upload.FileUploadInfo;
import com.hjy.http.upload.listener.OnFileTransferredListener;
import java.io.IOException;
/**
* Created by hjy on 7/9/15.<br>
*/
public abstract class BaseUploader {
public abstract String upload(FileUploadInfo fileUploadInfo, O... | apache-2.0 |
tqchen/tvm | python/tvm/micro/__init__.py | 1292 | # 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 u... | apache-2.0 |
ARM-software/astc-encoder | Source/Fuzzers/fuzz_astc_physical_to_symbolic.cpp | 3026 | // SPDX-License-Identifier: Apache-2.0
// ----------------------------------------------------------------------------
// Copyright 2020-2021 Arm Limited
//
// 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 ... | apache-2.0 |
noddi/druid | processing/src/main/java/io/druid/segment/incremental/IncrementalIndexAdapter.java | 10373 | /*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | apache-2.0 |
partofthething/home-assistant | tests/components/huisbaasje/test_config_flow.py | 5127 | """Test the Huisbaasje config flow."""
from unittest.mock import patch
from homeassistant import config_entries, data_entry_flow, setup
from homeassistant.components.huisbaasje.config_flow import (
HuisbaasjeConnectionException,
HuisbaasjeException,
)
from homeassistant.components.huisbaasje.const import DOMAI... | apache-2.0 |
doom369/netty | testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketHalfClosedTest.java | 28575 | /*
* Copyright 2017 The Netty Project
*
* The Netty Project 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:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | apache-2.0 |
xunzhang/orc | java/core/src/java/org/apache/orc/impl/IntegerWriter.java | 1330 | /**
* 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 |
sekikn/ambari | ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/MetadataHolder.java | 6111 | /*
* 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 |
fanwu123/mvptodo | Application/src/main/java/com/fanwu/chat/utils/ActivityCollector.java | 1411 | package com.fanwu.chat.utils;
import android.content.Intent;
import com.fanwu.chat.mvp.BaseActivity;
import java.util.ArrayList;
import java.util.List;
/**
* Created by yuyidong on 15/8/9.
*/
public class ActivityCollector {
private static final String TAG = ActivityCollector.class.getSimpleName();
priv... | apache-2.0 |
xasx/assertj-core | src/test/java/org/assertj/core/api/longarray/LongArrayAssert_doesNotHaveDuplicates_Test.java | 1259 | /*
* 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 |
lwf/proxymgr | spec/unit/watcher/base_spec.rb | 854 | require 'spec_helper'
describe ProxyMgr::Watcher::Base do
before(:each) do
@sm = double(ProxyMgr::ServiceManager)
end
it 'is valid if port is correctly specified' do
watcher = ProxyMgr::Watcher::Dummy.new('test', {'port' => 8080}, @sm)
watcher.valid?.should == true
end
it 'does not start if por... | apache-2.0 |
tgraf/cilium | api/v1/server/restapi/daemon/patch_config_responses.go | 3217 | // Code generated by go-swagger; DO NOT EDIT.
// Copyright 2017-2021 Authors of Cilium
// SPDX-License-Identifier: Apache-2.0
package daemon
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"net/http"
"github.com/go-open... | apache-2.0 |
mbode/flink | flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/functions/aggfunctions/MaxWithRetractAggFunction.java | 11887 | /*
* 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 |