repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
jentfoo/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/DescribeGlobalTableRequest.java
3672
/* * Copyright 2014-2019 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 "licen...
apache-2.0
citizenmatt/gallio
src/Gallio/Gallio.UI/ControlPanel/Preferences/NamespaceDoc.cs
1072
// Copyright 2005-2010 Gallio Project - http://www.gallio.org/ // Portions Copyright 2000-2004 Jonathan de Halleux // // 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.a...
apache-2.0
rameshdharan/cloud-bigtable-client
bigtable-hbase-parent/bigtable-hbase/src/main/java/com/google/cloud/bigtable/hbase/adapters/Adapters.java
3851
/* * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
apache-2.0
skunkiferous/Util
jactor2-coreSt/src/main/java/org/agilewiki/jactor2/core/impl/stReactors/PoolThreadReactorStImpl.java
1290
package org.agilewiki.jactor2.core.impl.stReactors; import org.agilewiki.jactor2.core.impl.stPlant.PlantStImpl; import org.agilewiki.jactor2.core.reactors.IsolationReactor; import org.agilewiki.jactor2.core.reactors.NonBlockingReactor; import org.agilewiki.jactor2.core.reactors.impl.PoolThreadReactorImpl; abstract pu...
apache-2.0
chmyga/component-runtime
component-runtime-beam/src/test/java/org/talend/test/FileOutput.java
1651
/** * Copyright (C) 2006-2020 Talend Inc. - www.talend.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 appli...
apache-2.0
googleads/googleads-java-lib
examples/admanager_axis/src/main/java/admanager/axis/v202105/siteservice/SubmitSiteForApproval.java
7356
// Copyright 2020 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
RockeyHoo/wechat
wechat-mp-sdk/src/main/java/org/rockey/wechat/mp/sdk/vo/message/reply/MusicReply.java
974
package org.rockey.wechat.mp.sdk.vo.message.reply; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import org.rockey.wechat.mp.sdk.factory.ReplyEnumFactory; import org.rockey...
apache-2.0
nemanja88/azure-powershell
src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Properties/AssemblyInfo.cs
2148
// ---------------------------------------------------------------------------------- // // 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
nuest/worldviz
src/main/java/org/n52/v3d/worldviz/featurenet/shapes/Circle.java
1337
package org.n52.v3d.worldviz.featurenet.shapes; import java.util.ArrayList; import org.n52.v3d.triturus.gisimplm.GmPoint; import org.n52.v3d.triturus.t3dutil.T3dVector; import org.n52.v3d.triturus.vgis.VgPoint; /** * * @author Adhitya Kamakshidasan */ public class Circle { public ArrayList<T3dVector> cir...
apache-2.0
SAP/openui5
src/sap.m/test/sap/m/demokit/sample/TextArea/Component.js
197
sap.ui.define(['sap/ui/core/UIComponent'], function(UIComponent) { "use strict"; return UIComponent.extend("sap.m.sample.TextArea.Component", { metadata : { manifest: "json" } }); });
apache-2.0
lmjacksoniii/hazelcast
hazelcast/src/main/java/com/hazelcast/cache/impl/CacheMXBeanImpl.java
1936
/* * Copyright (c) 2008-2016, Hazelcast, 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 ...
apache-2.0
fabioCollini/DaggerMock
daggermockTests/src/test/java/it/cosenonjaviste/daggermock/nesteddependency/MyComponent4.java
795
/* * Copyright 2016 Fabio Collini. * * 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
googleapis/google-api-ruby-client
google-api-client/generated/google/apis/speech_v2beta1/representations.rb
5368
# Copyright 2015 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,...
apache-2.0
bisigc/art
ui/test/spec/controllers/userviewcontroller.js
614
'use strict'; describe('Controller: UserviewcontrollerCtrl', function () { // load the controller's module beforeEach(module('uiApp')); var UserviewcontrollerCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new();...
apache-2.0
Shmuma/hbase
src/test/java/org/apache/hadoop/hbase/master/TestZKBasedOpenCloseRegion.java
13784
/** * Copyright 2010 The Apache Software Foundation * * 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-2.0
concourse/concourse
skymarshal/token/middleware_test.go
4015
package token_test import ( "time" "net/http" "net/http/httptest" "github.com/concourse/concourse/skymarshal/token" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("Token Middleware", func() { var ( err error expiry time.Time r *http.Request w *h...
apache-2.0
vespa-engine/vespa
container-search/src/main/java/com/yahoo/search/dispatch/Dispatcher.java
11288
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.search.dispatch; import com.google.inject.Inject; import com.yahoo.component.AbstractComponent; import com.yahoo.component.ComponentId; import com.yahoo.compress.Compressor; import com.yahoo.conta...
apache-2.0
leowh/colla
app/oa/block/view/index.html.php
466
<?php /** * The index view file of block module of RanZhi. * * @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com) * @license ZPL (http://zpl.pub/page/zplv12.html) * @author Yidong Wang <yidong@cnezsoft.com> * @package block * @versio...
apache-2.0
terrancesnyder/solr-analytics
solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java
31135
/* * 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
iSergio/gwt-cs
cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/scene/TileDiscardPolicy.java
1735
/* * Copyright 2018 iserge. * * 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 w...
apache-2.0
WeTheInternet/collide
client/src/main/java/collide/demo/shared/SharedClass.java
1206
package collide.demo.shared; import xapi.annotation.compile.MagicMethod; import xapi.log.X_Log; import xapi.util.X_Runtime; import com.google.gwt.reflect.client.strategy.ReflectionStrategy; import java.io.File; /** * This is a test class for our reflection api; * it is annotated for gwt to pull out reflection dat...
apache-2.0
jshvarts/OfflineSampleApp
app/src/main/java/com/example/offline/domain/SyncCommentUseCase.java
553
package com.example.offline.domain; import com.example.offline.model.Comment; import io.reactivex.Completable; /** * Responsible for syncing a comment with remote repository. */ public class SyncCommentUseCase { private final RemoteCommentRepository remoteCommentRepository; public SyncCommentUseCase(Remot...
apache-2.0
rameshthoomu/fabric
examples/chaincode/java/RangeExample/src/main/java/example/RangeExample.java
2528
/* Copyright DTCC 2016 All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wr...
apache-2.0
MobileManAG/KURAVIS
src/main/java/com/mobileman/kuravis/core/domain/treatment_review/statistics/TreatmentCostStatistics.java
4535
/******************************************************************************* * Copyright 2015 MobileMan GmbH * www.mobileman.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
ye-kyaw-thu/sylbreak
python/sylbreak3.py
2649
#!/usr/bin/env python3 #-*- coding:utf-8 -*- import argparse import re ## syllable breaking tool for Myanmar language ## usage: sylbreak3.py -i input-file ## e.g. usage1: python ./sylbreak3.py -i ../data/my-input.txt ## usage2: ./sylbreak3.py -i ../data/my-input.txt -o out.txt -s " " ## ## Date: 21 ...
apache-2.0
rlugojr/incubator-trafodion
core/sql/exp/exp_comp.cpp
38033
/********************************************************************** // @@@ START COPYRIGHT @@@ // // 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. ...
apache-2.0
johngmyers/airlift
jaxrs/src/main/java/io/airlift/jaxrs/testing/MockRequest.java
9446
/* * Copyright 2010 Proofpoint, 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 agree...
apache-2.0
mifos/1.5.x
application/src/main/java/org/mifos/customers/group/persistence/GroupPersistence.java
11822
/* * Copyright (c) 2005-2010 Grameen Foundation USA * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
apache-2.0
knowmetools/km-api
km_api/functional_tests/know_me/subscriptions/test_get_apple_subscription.py
1403
from rest_framework import status from rest_framework.reverse import reverse from test_utils import serialized_time URL = reverse("know-me:apple-subscription-detail") def test_get_anonymous(api_client): """ Anonymous users should receive a permissions error if they send a GET request to the view. "...
apache-2.0
aws/aws-sdk-java
aws-java-sdk-simpleworkflow/src/main/java/com/amazonaws/services/simpleworkflow/model/transform/RequestCancelExternalWorkflowExecutionInitiatedEventAttributesJsonUnmarshaller.java
4240
/* * Copyright 2017-2022 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 "licen...
apache-2.0
akzeitions/HerokuTeste
traccar-web/web/app/view/Report.js
2933
/* * Copyright 2015 - 2016 Anton Tananaev (anton@traccar.org) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. *...
apache-2.0
achoraev/RunnerMeter
SportsMeter/src/main/java/com/runner/sportsmeter/models/Coordinates.java
1227
package com.runner.sportsmeter.models; import com.parse.*; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * Created by angelr on 22-Oct-15. */ @ParseClassName("Coordinates") public class Coordinates extends ParseObject { public Coordinates(){} public ParseUser getCurrentUse...
apache-2.0
0x1mason/appium-dotnet-driver
appium-dotnet-driver/Appium/Interfaces/IFindByIosUIAutomation.cs
891
using System.Collections.ObjectModel; namespace OpenQA.Selenium.Appium.src.Appium.Interfaces { interface IFindByIosUIAutomation { /// <summary> /// Finds the first of elements that match the Ios UIAutomation selector supplied /// </summary> /// <param name="selector">an Ios UIA...
apache-2.0
OSUCartography/JMapProjLib
src/com/jhlabs/map/proj/Eckert6Projection.java
1950
/* Copyright 2010 Bernhard Jenny 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 dist...
apache-2.0
brettfo/roslyn
src/Features/Core/Portable/FindUsages/IRemoteFindUsagesService.cs
8549
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Collections.Immutable; using System...
apache-2.0
codinuum/cca
samples/java/1/IntrospectionHelper.java
58443
/* * 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
prady00/Laravel-Swagger-REST
vendor/jlapp/swaggervel/src/Jlapp/Swaggervel/routes.php
3587
<?php use Swagger\Swagger; Route::any(Config::get('swaggervel::app.doc-route').'/{page?}', function($page='api-docs.json') { $filePath = Config::get('swaggervel::app.doc-dir') . "/{$page}"; if (File::extension($filePath) === "") { $filePath .= ".json"; } if (!File::Exists($filePath)...
apache-2.0
JNOSQL/artemis
artemis-document/src/main/java/org/jnosql/artemis/document/DocumentRepositoryAsyncSupplier.java
980
/* * Copyright (c) 2019 Otávio Santana and others * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Apache License v2.0 which accompanies this distribution. * The Eclipse Public License is available at http://ww...
apache-2.0
phosphene/rails4.x-test-demo
spec/support/devise.rb
135
RSpec.configure do |config| config.include Devise::TestHelpers, :type => :controller config.use_transactional_fixtures = false end
apache-2.0
axbaretto/beam
bistro/remote/RemoteWorkers.cpp
31148
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "bistro/bistro/remote/RemoteWorkers.h" #include <thrift/lib/cpp2/protocol/DebugProtocol.h> #include "bistro/bistro/if/ge...
apache-2.0
ysb33r/asciidoctorj
asciidoctorj-core/src/test/java/org/asciidoctor/converter/WhenConverterIsRegistered.java
5946
package org.asciidoctor.converter; import org.asciidoctor.Asciidoctor; import org.asciidoctor.MemoryLogHandler; import org.asciidoctor.OptionsBuilder; import org.asciidoctor.SafeMode; import org.asciidoctor.arquillian.api.Unshared; import org.asciidoctor.jruby.internal.JRubyAsciidoctor; import org.asciidoctor.util.Cla...
apache-2.0
yahoo/pulsar
pulsar-client/src/main/java/org/apache/pulsar/client/impl/TypedMessageBuilderImpl.java
11134
/** * 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
Fokko/incubator-airflow
airflow/operators/papermill_operator.py
2297
# -*- coding: utf-8 -*- # # 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 #...
apache-2.0
appbels/Org
Org/Schema/Thing/Place/CivicStructure/PlaceOfWorship.class.php
1060
<?php namespace Org\Schema\Thing\Place\CivicStructure; /** * Class PlaceOfWorship * Place of worship, such as a church, synagogue, or mosque. * @author AppBels <app.bels@gmail.com> * @name PlaceOfWorship * @namespace Org\Schema\Thing\Place\CivicStructure * @package Org\Schema * @see h...
apache-2.0
iamjarvo/couchbase-jruby-client
test/mock.rb
2310
class CouchbaseServer attr_accessor :host, :port, :num_nodes, :buckets_spec def real? true end def initialize(params = {}) @host, @port = ENV['COUCHBASE_SERVER'].split(':') @port = @port.to_i if @host.nil? || @host.empty? || @port == 0 raise ArgumentError, 'Check COUCHBASE_SERVER variab...
apache-2.0
Esri/arcgis-pro-sdk-community-samples
Map-Exploration/OverlayGroundSurface/ExportGeometry.cs
2772
/* Copyright 2020 Esri 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
vitorgv/spring-security
messaging/src/main/java/org/springframework/security/messaging/util/matcher/SimpMessageTypeMatcher.java
2677
/* * Copyright 2002-2015 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 applica...
apache-2.0
edom/web
concurrent/lock/src/main/java/com/spacetimecat/concurrent/semaphore/Semaphore.java
553
package com.spacetimecat.concurrent.semaphore; /** * <p> * Counting semaphore. * </p> */ public interface Semaphore { /** * <p> * Acquire a unit. * </p> * * @return * true if we now own a unit; * false if the semaphore did not have any unit left to give to us. */...
apache-2.0
wiacekm/gatling
gatling-app/src/main/scala/io/gatling/app/classloader/FileSystemBackedClassLoader.scala
4079
/* * Copyright 2011-2018 GatlingCorp (http://gatling.io) * * 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
MartinBechtle/jcanary
jcanary-api/src/main/java/com/martinbechtle/jcanary/api/Dependency.java
1908
package com.martinbechtle.jcanary.api; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; import static com.martinbechtle.jrequire.Require.notEmpty; import static com.martinbechtle.jrequire.Require.notNull; /** * Represents a dependency of the system. It'...
apache-2.0
scorpionvicky/elasticsearch
server/src/main/java/org/elasticsearch/search/fetch/subphase/highlight/FieldHighlightContext.java
2034
/* * 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
OpenFeign/feign
core/src/main/java/feign/template/QueryTemplate.java
6953
/* * Copyright 2012-2022 The Feign 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
sandymariscal22/BrandsCsCart
public_html/app/schemas/exim/products.php
16418
<?php /*************************************************************************** * * * (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev * * * * This...
apache-2.0
webadvancedservicescom/magento
app/code/Magento/Newsletter/Controller/Adminhtml/Subscriber/ExportXml.php
836
<?php /** * * @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com) */ namespace Magento\Newsletter\Controller\Adminhtml\Subscriber; use Magento\Framework\App\ResponseInterface; use Magento\Framework\App\Filesystem\DirectoryList; class ExportXml extends \Magento\Newsletter\Controller\Admi...
apache-2.0
Craftware/Kornell
kornell-gwt/src/main/java/kornell/gui/client/KornellConstantsHelper.java
702
package kornell.gui.client; import java.util.MissingResourceException; import com.google.gwt.core.client.GWT; import kornell.core.error.KornellErrorTO; public class KornellConstantsHelper { private static KornellConstants constants = GWT.create(KornellConstants.class); public static String getMessage(Stri...
apache-2.0
tokee/lucene
src/test/org/apache/lucene/index/TestIndexWriterMergePolicy.java
9702
package org.apache.lucene.index; /** * 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, Versi...
apache-2.0
datenstrudel/bulbs-core
src/test/java/net/datenstrudel/bulbs/core/domain/model/bulb/CmdHwExecutorTest.java
5677
/* * 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 net.datenstrudel.bulbs.core.domain.model.bulb; import net.datenstrudel.bulbs.core.application.messaging.BulbsCoreEventProcess...
apache-2.0
komamj/KomaMusic
app/src/main/java/com/koma/music/data/model/MusicPlaybackTrack.java
3026
/* * Copyright (C) 2017 Koma MJ * * 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
mF2C/COMPSs
compss/runtime/adaptors/agent/RESTagent/commons/src/main/java/es/bsc/compss/agent/rest/types/messages/LostNodeNotification.java
1357
/* * Copyright 2002-2019 Barcelona Supercomputing Center (www.bsc.es) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
apache-2.0
SowaLabs/OpenNLP
opennlp-tools/src/main/java/opennlp/tools/util/featuregen/GeneratorFactory.java
19040
/* * 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
jpaw/jpaw
jpaw-cmdline/src/main/java/de/jpaw/cmdline/CmdlineCallback.java
114
package de.jpaw.cmdline; public interface CmdlineCallback { void readParameters(CmdlineParserContext ctx); }
apache-2.0
mozilla-japan/gitfab2
config/initializers/01_keychain.rb
106
path = Rails.root.join 'config', 'keychain.yml' KEYS = YAML.load(ERB.new(IO.read path).result)[Rails.env]
apache-2.0
alban/scope
report/node.go
6401
package report import ( "time" "github.com/weaveworks/common/mtime" ) // Node describes a superset of the metadata that probes can collect // about a given node in a given topology, along with the edges (aka // adjacency) emanating from the node. type Node struct { ID string `json:"i...
apache-2.0
zalando/freshly
web/server/Array_distinct.js
263
Array.prototype.distinct = function () { var known = {}; var result = []; this.forEach(item => { if (!known[item]) { known[item] = true; result.push(item); } }); return result; };
apache-2.0
0x6e6562/diffa
client-support/src/test/scala/net/lshift/diffa/client/ScanParticipantRestClientTest.scala
5835
/** * Copyright (C) 2010-2012 LShift 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 agre...
apache-2.0
mandarjog/mixr
pkg/config/listChecker/bindingEvaluator.go
1123
// Copyright 2016 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 ...
apache-2.0
d80harri/wr3
wr.db/src/test/java/net/d80harri/wr/db/MyTest.java
1184
package net.d80harri.wr.db; import net.d80harri.wr.db.model.Item; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;...
apache-2.0
sevenler/JFinal_Authority_Johnny
jfinal-authority/src/main/java/com/jayqqaa12/system/controller/LogCtrl.java
1285
package com.jayqqaa12.system.controller; import java.io.File; import java.io.IOException; import com.jayqqaa12.jbase.jfinal.ext.ctrl.JsonController; import com.jayqqaa12.jbase.jfinal.ext.spring.Inject; import com.jayqqaa12.jbase.util.Fs; import com.jayqqaa12.model.json.SendJson; import com.jayqqaa12.system.model.Log;...
apache-2.0
stripe/stripe-dotnet
src/StripeTests/Infrastructure/Public/SystemNetHttpClientTest.cs
5503
namespace StripeTests { using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threading; using System.Threading.Tasks; using Moq; using Moq.Protected; using Newtonsoft.Json.Linq; using Stripe; using Xunit; public class Sy...
apache-2.0
benjchristensen/RxJava
src/main/java/io/reactivex/internal/operators/flowable/FlowableTakeUntil.java
3970
/** * Copyright 2016 Netflix, 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 w...
apache-2.0
DEVSENSE/PTVS
Common/Tests/Utilities.UI/UI/SolutionExplorerTree.cs
7642
// Visual Studio Shared Project // 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
Flauschbaellchen/gaming-base
engines/game_florensia/test/models/florensia/item/ship_c_weapon_test.rb
162
require 'test_helper' module Florensia class Item::ShipCWeaponTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end end
apache-2.0
benjchristensen/RxJava
src/test/java/io/reactivex/internal/schedulers/SingleSchedulerTest.java
2318
/** * Copyright 2016 Netflix, 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 w...
apache-2.0
LiberatorUSA/GUCEF
plugins/CORE/dstorepluginPARSIFALXML/premake5.lua
1961
-------------------------------------------------------------------- -- This file was automatically generated by ProjectGenerator -- which is tooling part the build system designed for GUCEF -- (Galaxy Unlimited Framework) -- For the latest info, see http://www.VanvelzenSoftware.com/ -- -- The contents of this file...
apache-2.0
covito/legend-shop
src/main/webapp/plugins/fckeditor/editor/dialog/fck_flash/fck_flash.js
8276
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
apache-2.0
atiq-shumon/DotNetProjects
Hospital_ERP_VS13-WCF_WF/AH.ModuleController/UI/DRS/Reports/Viewer/ViewerSelector.cs
633
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AH.ModuleController.UI.DRS.Reports.Viewer { public enum ViewerSelector { InvestigationReport, SpecimenReport, SpecimenDetailsReport, StainReport, CultureAndSensiReport, ...
apache-2.0
awsdocs/aws-doc-sdk-examples
python/example_code/pinpoint/pinpoint_send_sms_message_api.py
2761
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 """ Purpose Shows how to use the AWS SDK for Python (Boto3) with Amazon Pinpoint to send SMS messages. """ # snippet-start:[pinpoint.python.pinpoint_send_sms_message_api.complete] import logging import boto3 f...
apache-2.0
googleapis/sphinx-docfx-yaml
tests/example/format/google/__init__.py
649
# Copyright 2021 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 in writing, ...
apache-2.0
mnunberg/couchbase-python-client
couchbase/iops/base.py
4972
# # Copyright 2013, Couchbase, 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 l...
apache-2.0
1170197998/Objective_C-DEMO
JSPatchDemo/JSPatchDemo/test.js
1548
defineClass('ViewController', { rightButtonItemClick() { var tableViewCtrl = TableViewController.alloc().init() self.navigationController().pushViewController_animated(tableViewCtrl, YES) tableViewCtrl.setTitle("JS创建的控制器"); } }) defineClass('TableViewController : UITableViewController <UIAlertViewDelegate>', [...
apache-2.0
googleads/googleads-php-lib
src/Google/AdsApi/AdManager/Util/v202108/StatementBuilder.php
8453
<?php /** * Copyright 2017 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 ...
apache-2.0
Yannic/closure-compiler
externs/browser/whatwg_encoding.js
1496
/* * Copyright 2015 The Closure Compiler 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 ...
apache-2.0
consulo/consulo-android
android/android/src/com/android/tools/idea/editors/theme/attributes/TableLabel.java
1166
/* * Copyright (C) 2014 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
bmckinney/dataverse-canonical
src/main/java/edu/harvard/iq/dataverse/DatasetVersion.java
37123
package edu.harvard.iq.dataverse; import edu.harvard.iq.dataverse.util.MarkupChecker; import edu.harvard.iq.dataverse.DatasetFieldType.FieldType; import edu.harvard.iq.dataverse.util.StringUtil; import java.io.Serializable; import java.sql.Timestamp; import java.text.ParseException; import java.text.SimpleDateFormat; ...
apache-2.0
tumf/swift3
swift3/test/unit/test_acl.py
8333
# Copyright (c) 2014 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 applicable law or agreed to ...
apache-2.0
Epi-Info/Epi-Info-Community-Edition
Epi.Core/Project.cs
61131
using System; using System.Data; using System.Globalization; using System.IO; using System.Text; using System.Windows.Forms; using System.Xml; using System.Security.Cryptography; using Epi; using System.Collections.Generic; using Epi.Collections; using Epi.Data; using Epi.Fields; using Epi.Resources; usin...
apache-2.0
xtwxy/actor-editor
plugins/com.wincom.actor.editor.flow/src/com/wincom/actor/editor/flow/FlowImages.java
1111
/******************************************************************************* * Copyright (c) 2003, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, an...
apache-2.0
xiaonanln/myleetcode-python
src/Minimum Path Sum.py
1360
class Solution: # @param grid, a list of lists of integers # @return an integer def minPathSum(self, grid): if not grid: return 0 if not grid[0]: return 0 ROWS = len(grid) COLS = len(grid[0]) DP = [] for row in grid: DP.append( [N...
apache-2.0
ConsecroMUD/ConsecroMUD
com/suscipio_solutions/consecro_mud/Abilities/Thief/Thief_SneakAttack.java
2660
package com.suscipio_solutions.consecro_mud.Abilities.Thief; import com.suscipio_solutions.consecro_mud.Abilities.interfaces.Ability; import com.suscipio_solutions.consecro_mud.Common.interfaces.CMMsg; import com.suscipio_solutions.consecro_mud.Common.interfaces.PhyStats; import com.suscipio_solutions.consecro_mud.MOBS...
apache-2.0
nextsmsversion/macchina.io
platform/JS/V8/v8-3.28.4/src/arm64/decoder-arm64.cc
2556
// Copyright 2013 the V8 project 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 "src/v8.h" #if V8_TARGET_ARCH_ARM64 #include "src/arm64/decoder-arm64.h" #include "src/globals.h" #include "src/utils.h" namespace v8 { nam...
apache-2.0
lunisolar/magma
magma-asserts/src/test/java/eu/lunisolar/magma/asserts/func/supplier/LCharSupplierAssertTest.java
4366
/* * This file is part of "lunisolar-magma". * * (C) Copyright 2014-2019 Lunisolar (http://lunisolar.eu/). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
apache-2.0
fungku/netsuite-php
src/Classes/SupportCaseStatusStage.php
927
<?php /** * This file is part of the SevenShores/NetSuite library * AND originally from the NetSuite PHP Toolkit. * * New content: * @package ryanwinchester/netsuite-php * @copyright Copyright (c) Ryan Winchester * @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0 * @link https://githu...
apache-2.0
fiskinator/WAB2.0_JBox_MutualAid
widgets/Search/nls/zh-cn/strings.js
219
define( ({ _widgetLabel: "搜索", searchResult: "搜索结果", showAllResults: "显示搜索结果 ", showAll: "显示搜索结果", more: "更多", untitled: "无标题" }) );
apache-2.0
amitdhiman000/MyOffers
backup/CRUDModel.py
1951
from django.db import models import logging class CRUDQueryset(models.query.QuerySet): def withurl(self): print('This is called from custom query set') for item in self: item.url = item.url() print(item.url) return self class CRUDManager(models.Manager): def get_queryset(self): return CRUDQueryset(...
apache-2.0
socrata-platform/spandex
spandex-integration-tests/src/test/scala/com/socrata/spandex/secondary/CopyDropHandlerSpec.scala
2085
package com.socrata.spandex.secondary import org.scalatest.prop.PropertyChecks import org.scalatest.{FunSuiteLike, Matchers} import com.socrata.datacoordinator.secondary.LifecycleStage import com.socrata.spandex.common.SpandexIntegrationTest import com.socrata.spandex.common.client._ class CopyDropHandlerSpec extend...
apache-2.0
degauhta/dgagarsky
chapter_009/lesson_3/src/test/java/ru/dega/package-info.java
88
/** * package-info class. * * @author Denis * @since 09.08.2017 */ package ru.dega;
apache-2.0
andresvie/rootlang
parser/parser_test.go
22560
package parser import ( "testing" "rootlang/lexer" "rootlang/ast" "strconv" ) func TestLetStatementLiteralValue(t *testing.T) { input := ` let x = 5; let y = 10; let foobar = 838383; ` l := lexer.New(input) p := New(l) statementsExpected := []ast.LetStatement{createLiteralLetStatement("x", ...
apache-2.0
osgi/bundles
osgi.logger/src/osgi/logger/provider/AbstractLogger.java
17125
package osgi.logger.provider; import java.io.IOException; import java.io.PrintWriter; import java.io.Writer; import java.lang.reflect.Array; import java.util.Formatter; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.osgi.framework.Bundle; import org.osgi.framework.ServiceReference; import ...
apache-2.0
MReichenbach/visitmeta
visualization/src/main/java/de/hshannover/f4/trust/visitmeta/network/GraphPool.java
4531
/* * #%L * ===================================================== * _____ _ ____ _ _ _ _ * |_ _|_ __ _ _ ___| |_ / __ \| | | | ___ | | | | * | | | '__| | | / __| __|/ / _` | |_| |/ __|| |_| | * | | | | | |_| \__ \ |_| | (_| | _ |\__ \| _ | * |_| |_| \__,_|___/...
apache-2.0
bruce-dunwiddie/tsql-parser
TSQL_Parser/TSQL_Parser/Tokens/TSQLIncompleteIdentifierToken.cs
415
using System; namespace TSQL.Tokens { public class TSQLIncompleteIdentifierToken : TSQLIncompleteToken { internal TSQLIncompleteIdentifierToken( int beginPosition, string text) : base( beginPosition, text) { } #pragma warning disable 1591 public override TSQLTokenType Type { get ...
apache-2.0