repo_name
stringlengths
5
108
path
stringlengths
6
333
size
stringlengths
1
6
content
stringlengths
4
977k
license
stringclasses
15 values
xiangyuan/googleio
src/com/google/android/apps/iosched/io/LocalExecutor.java
2372
/* * 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...
apache-2.0
gfyoung/elasticsearch
server/src/test/java/org/elasticsearch/index/similarity/ScriptedSimilarityTests.java
10451
/* * 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
zhiqinghuang/elasticsearch
plugins/discovery-ec2/src/main/java/org/elasticsearch/discovery/ec2/AwsEc2UnicastHostsProvider.java
9075
/* * 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
wangcy6/storm_app
frame/storm-master/external/storm-elasticsearch/src/main/java/org/apache/storm/elasticsearch/response/PercolateResponse.java
2082
/** * 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
dxxfire/nutz
test/org/nutz/ioc/loader/annotation/meta/ClassB.java
335
package org.nutz.ioc.loader.annotation.meta; import org.nutz.dao.Dao; import org.nutz.ioc.loader.annotation.Inject; import org.nutz.ioc.loader.annotation.IocBean; @IocBean public class ClassB { @Inject("refer:dao") public Dao dao; public void setDao(Dao dao) { this.dao = dao...
apache-2.0
android-ia/platform_external_robolectric
src/test/java/com/xtremelabs/robolectric/util/TestRunnable.java
191
package com.xtremelabs.robolectric.util; public class TestRunnable implements Runnable { public boolean wasRun = false; @Override public void run() { wasRun = true; } }
mit
md-5/jdk10
src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/XSWildcardDecl.java
24285
/* * reserved comment block * DO NOT REMOVE OR ALTER! */ /* * 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 ...
gpl-2.0
md-5/jdk10
test/jdk/java/awt/Mixing/AWT_Mixing/JScrollBarOverlapping.java
2568
/* * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
gpl-2.0
md-5/jdk10
src/java.desktop/share/classes/java/awt/image/BandCombineOp.java
11471
/* * Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
gpl-2.0
bhasudha/voldemort
src/java/voldemort/store/stats/Histogram.java
5108
/* * Copyright 2012 LinkedIn, 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
asedunov/intellij-community
platform/platform-impl/src/com/intellij/openapi/diff/impl/incrementalMerge/Change.java
8471
/* * 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
Stratehm/openhab2
addons/binding/org.openhab.binding.toon/src/main/java/org/openhab/binding/toon/ToonBindingConstants.java
3026
/** * Copyright (c) 2010-2017 by the respective copyright holders. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */...
epl-1.0
siosio/intellij-community
plugins/kotlin/j2k/old/tests/testData/fileOrElement/assignmentExpression/assignment.java
17
//statement x = 2
apache-2.0
twalpole/selenium
java/client/src/com/thoughtworks/selenium/SeleneseTestNgHelper.java
4644
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
apache-2.0
jinlongliu/onos
core/api/src/main/java/org/onosproject/net/topology/TopologyStoreDelegate.java
822
/* * Copyright 2014 Open Networking Laboratory * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
apache-2.0
maxkondr/onos-porta
core/store/serializers/src/main/java/org/onosproject/store/serializers/KryoSerializer.java
2299
/* * Copyright 2014 Open Networking Laboratory * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
apache-2.0
jpike88/crosswalk
runtime/android/core_internal/src/org/xwalk/core/internal/XWalkNotificationServiceImpl.java
10352
// Copyright (c) 2014 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.xwalk.core.internal; import java.util.HashMap; import android.app.Notification; import android.app.NotificationManager; import android.app....
bsd-3-clause
rscrimojr/incubator-trafficcontrol
traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/util/ResourceUrl.java
692
/* * * 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 * distri...
apache-2.0
hurricup/intellij-community
platform/lang-api/src/com/intellij/psi/codeStyle/extractor/processor/GenProcessor.java
2547
/* * 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
jknguyen/josephknguyen-selenium
java/client/src/org/openqa/selenium/WebDriverException.java
3504
/* Copyright 2007-2009 Selenium committers 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
ztx1491/jwatch
jwatch/src/main/java/org/jwatch/servlet/ActionConstants.java
1629
/** * JWatch - Quartz Monitor: http://code.google.com/p/jwatch/ * Copyright (C) 2011 Roy Russo and the original author or authors. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Founda...
lgpl-3.0
e3tar/opengse
testing/server-side/webapps-src/servlet-tests/web/WEB-INF/java/tests/javax_servlet/ServletRequest/GetParameterValues_1TestServlet.java
3884
/* * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletRequest/GetParameterValues_1TestServlet.java,v 1.2 2002/01/11 22:20:57 rlubke Exp $ * $Revision: 1.2 $ * $Date: 2002/01/11 22:20:57 $ * * ===============================================================...
apache-2.0
aakashysharma/opengse
testing/server-side/webapps-src/servlet-tests/web/WEB-INF/java/tests/javax_servlet/ServletContextListener/ContextListener.java
3659
/* * $Header: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/ServletContextListener/ContextListener.java,v 1.1 2002/01/11 22:20:57 rlubke Exp $ * $Revision: 1.1 $ * $Date: 2002/01/11 22:20:57 $ * * ==================================================================== *...
apache-2.0
rokn/Count_Words_2015
testing/drools-master/drools-verifier/src/main/java/org/drools/verifier/report/VerifierReportConfiguration.java
709
/* * Copyright 2010 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
mit
Xcorpio/spring-security
test/src/main/java/org/springframework/security/test/context/support/WithUserDetails.java
2406
/* * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
apache-2.0
jimzucker/hygieia-temp
core/src/main/java/com/capitalone/dashboard/model/Dashboard.java
1480
package com.capitalone.dashboard.model; import org.springframework.data.mongodb.core.mapping.Document; import java.util.ArrayList; import java.util.List; /** * A collection of widgets, collectors and application components that represent a software * project under development and/or in production use. * */ @Docu...
apache-2.0
bravevu/javaemvreader
src/main/java/sasc/emv/SignedDynamicApplicationData.java
5466
/* * Copyright 2010 sasc * * 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 writ...
apache-2.0
caoanhhao/AndEngine
src/org/andengine/util/adt/list/concurrent/SynchronizedList.java
2820
package org.andengine.util.adt.list.concurrent; import org.andengine.util.adt.list.IList; import org.andengine.util.adt.list.ListUtils; /** * (c) 2012 Zynga Inc. * * @author Nicolas Gramlich <ngramlich@zynga.com> * @since 14:23:50 - 01.02.2012 */ public class SynchronizedList<T> implements IList<T> { // =======...
apache-2.0
mahaliachante/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/transform/CreateVpnGatewayResultStaxUnmarshaller.java
2452
/* * 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 "l...
apache-2.0
sheofir/aws-sdk-java
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/UploadSigningCertificateResult.java
3634
/* * 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 "l...
apache-2.0
sheofir/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/InstanceNetworkInterfaceAssociation.java
6701
/* * 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 "l...
apache-2.0
rokn/Count_Words_2015
testing/openjdk2/jaxws/src/share/jaxws_classes/com/sun/xml/internal/rngom/digested/Annotation.java
3383
/* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
mit
rokn/Count_Words_2015
testing/openjdk2/langtools/test/tools/doclint/MissingThrowsTest.java
371
/* * @test /nodynamiccopyright/ * @bug 8004832 * @summary Add new doclint package * @build DocLintTester * @run main DocLintTester -Xmsgs:-missing MissingThrowsTest.java * @run main DocLintTester -Xmsgs:missing -ref MissingThrowsTest.out MissingThrowsTest.java */ /** */ public class MissingThrowsTest { /** ...
mit
irudyak/ignite
modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/index/DynamicColumnsConcurrentTransactionalPartitionedSelfTest.java
1383
/* * 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
fernandozhu/elasticsearch
core/src/main/java/org/elasticsearch/rest/action/admin/indices/RestIndexDeleteAliasesAction.java
2653
/* * 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
colczr/sakai
kernel/kernel-impl/src/main/java/org/sakaiproject/tool/impl/RebuildBreakdownServiceImpl.java
45294
/********************************************************************************** * $URL$ * $Id$ *********************************************************************************** * * Copyright (c) 2014 The Apereo Foundation. * * Licensed under the Educational Community License, Version 2.0 (the "License"); ...
apache-2.0
dulvac/sling
contrib/extensions/collection/src/main/java/org/apache/sling/resource/collection/impl/ResourceCollectionAdapterFactory.java
4085
/* * 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
stain/jdk8u
test/java/awt/print/PrinterJob/ImagePrinting/NullClipARGB.java
2677
/* * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
gpl-2.0
asedunov/intellij-community
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/surroundWithArray/afterGenericArrayCreation.java
161
// "Surround with array initialization" "true" import java.util.List; class A { public List<?>[] test(List<Number> list) { return new List[]{list}; } }
apache-2.0
carlesls2/sitappandroidv1
prova/facebook/src/com/facebook/GraphRequestBatch.java
8736
/** * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to use, * copy, modify, and distribute this software in source code or binary form for use * in connection with the web services and APIs provided by Facebook. * * As ...
lgpl-3.0
carlesls2/sitappandroidv1
prova/facebook/src/com/facebook/internal/LoginAuthorizationType.java
1434
/** * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to use, * copy, modify, and distribute this software in source code or binary form for use * in connection with the web services and APIs provided by Facebook. * * As ...
lgpl-3.0
WangTaoTheTonic/flink
flink-runtime/src/test/java/org/apache/flink/runtime/operators/CachedMatchTaskTest.java
16379
/* * 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
gorcz/Hystrix
hystrix-core/src/test/java/com/netflix/hystrix/collapser/CollapsedRequestObservableFunctionTest.java
6477
/** * Copyright 2015 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 i...
apache-2.0
573196010/powermock
examples/simple/src/test/java/demo/org/powermock/examples/simple/LoggerTest.java
2332
/* * Copyright 2008 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
diegotori/robolectric
robolectric-processor/src/test/resources/org/robolectric/Robolectric_Anything.java
1579
package org.robolectric; import java.util.HashMap; import java.util.Map; import javax.annotation.Generated; import org.robolectric.annotation.processing.objects.AnyObject; import org.robolectric.annotation.processing.objects.Dummy; import org.robolectric.annotation.processing.shadows.ShadowAnything; import org.robole...
mit
jackalchen/dex2jar
dex-ir/src/main/java/com/googlecode/dex2jar/ir/stmt/TableSwitchStmt.java
2232
/* * Copyright (c) 2009-2012 Panxiaobo * * 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 applicab...
apache-2.0
AlexSikia/dotty
tests/pos/java-interop/t1230/J.java
29
class J { public int foo ; }
bsd-3-clause
raphanda/ExoPlayer
demo/src/main/java/com/google/android/exoplayer/demo/Samples.java
8405
/* * 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
dahlstrom-g/intellij-community
java/java-tests/testData/refactoring/extractMethodNew/ParametrizedDuplicateNestedSubexpression.java
325
class C { public void foo(C c, long d, int i, String s) { <selection>b(s, 1).m(d, i())</selection>; b(s, i).m(d, k(d)); c.m(d, i); } private C b(String s, int i) { return new C(); } void m(long d, int i) { } private int i() { return 0; } private int k(long d) { return 0...
apache-2.0
weiwenqiang/GitHub
expert/realm-java/examples/moduleExample/library/src/main/java/io/realm/examples/librarymodules/model/Dog.java
867
/* * Copyright 2015 Realm 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 wr...
apache-2.0
jonathanmcelroy/DataCommunicationsProgram456
twitter4j/twitter4j-appengine/src/main/java/twitter4j/AppEngineTwitterImpl.java
1107
/* * Copyright 2007 Yusuke Yamamoto * * 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...
gpl-2.0
rokn/Count_Words_2015
testing/openjdk2/langtools/src/share/classes/com/sun/source/tree/BinaryTree.java
1723
/* * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
mit
YolandaMDavis/nifi
nifi-nar-bundles/nifi-evtx-bundle/nifi-evtx-processors/src/main/java/org/apache/nifi/processors/evtx/ResultProcessor.java
2188
/* * 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
akosyakov/intellij-community
platform/lang-impl/src/com/intellij/ide/impl/dataRules/VirtualFileRule.java
1985
/* * 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
tomwscott/GoCD
config/config-api/test/com/thoughtworks/go/util/ArtifactLogUtilTest.java
1311
/*************************GO-LICENSE-START********************************* * Copyright 2014 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...
apache-2.0
YolandaMDavis/nifi
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/request/ClientIdParameter.java
1475
/* * 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
snadakuduru/camel
components/camel-kestrel/src/main/java/org/apache/camel/component/kestrel/KestrelConsumer.java
13377
/** * 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
akosyakov/intellij-community
java/java-psi-impl/src/com/intellij/psi/impl/light/LightVariableBase.java
4345
/* * 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
akosyakov/intellij-community
python/psi-api/src/com/jetbrains/python/psi/Property.java
2217
/* * 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
odpi/hadoop
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/TestChildQueueOrder.java
19060
/** * 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
shreejay/elasticsearch
core/src/test/java/org/elasticsearch/common/geo/GeoJSONShapeParserTests.java
51859
/* * 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
idea4bsd/idea4bsd
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/committed/CacheSettingsDialog.java
1763
/* * 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
sintjuri/openmrs-core
api/src/test/java/org/openmrs/propertyeditor/WorkflowCollectionEditorTest.java
1437
/** * This Source Code Form is subject to the terms of the Mozilla Public License, * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under * the terms of the Healthcare Disclaimer located at http://openmrs.org/license....
mpl-2.0
android-ia/platform_tools_idea
jps/jps-builders/src/org/jetbrains/jps/javac/CompilationCanceledException.java
919
/* * Copyright 2000-2012 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
qwerty4030/elasticsearch
server/src/main/java/org/elasticsearch/action/termvectors/TransportShardMultiTermsVectorAction.java
4812
/* * 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
qq83387856/spring-boot
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/JarFileArchive.java
5376
/* * Copyright 2012-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 copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
apache-2.0
dgrif/binnavi
src/test/java/com/google/security/zynamics/binnavi/disassembly/CProjectFactory.java
1168
/* Copyright 2014 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 law or agreed to in ...
apache-2.0
asedunov/intellij-community
jps/model-api/src/org/jetbrains/jps/model/JpsDummyElement.java
714
/* * Copyright 2000-2012 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
jmandawg/camel
camel-core/src/test/java/org/apache/camel/impl/DefaultClassResolverTest.java
5472
/** * 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
actframework/FrameworkBenchmarks
frameworks/Java/dropwizard/src/main/java/com/example/helloworld/db/FortuneDAO.java
168
package com.example.helloworld.db; import com.example.helloworld.db.model.Fortune; import java.util.List; public interface FortuneDAO { List<Fortune> list(); }
bsd-3-clause
Greblys/openhab
bundles/persistence/org.openhab.persistence.exec/src/main/java/org/openhab/persistence/exec/internal/ExecService.java
3239
/** * Copyright (c) 2010-2015, openHAB.org and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ package org...
epl-1.0
alsmadi/CSCI-6617
src/main/java/net/floodlightcontroller/devicemanager/internal/DeviceIndex.java
4021
/** * Copyright 2012 Big Switch Networks, Inc. * Originally created by David Erickson, Stanford 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://...
apache-2.0
jerome-jacob/selenium
java/server/test/org/openqa/selenium/remote/server/FakeClock.java
1039
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
apache-2.0
rokn/Count_Words_2015
testing/openjdk2/jdk/test/javax/swing/JFileChooser/6484091/bug6484091.java
2086
/* * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
mit
rokn/Count_Words_2015
testing/openjdk2/jdk/test/com/sun/security/auth/module/LdapLoginModule/CheckConfigs.java
9304
/* * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
mit
asedunov/intellij-community
platform/xdebugger-api/src/com/intellij/xdebugger/settings/DebuggerSettingsCategory.java
197
package com.intellij.xdebugger.settings; public enum DebuggerSettingsCategory { ROOT /* will be placed under root "Debugger" node, use it with care */, GENERAL, DATA_VIEWS, STEPPING, HOTSWAP }
apache-2.0
rokn/Count_Words_2015
testing/openjdk2/jdk/test/java/lang/reflect/ReflectPermission/Exceptions.java
2852
/* * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
mit
liveqmock/platform-tools-idea
java/java-tests/testData/codeInsight/completion/normal/ChainedCallOnNextLine.java
68
class Foo { int a = new Foo(). t<caret>a().length(). .. }
apache-2.0
android-ia/platform_tools_idea
java/java-tests/testData/refactoring/inlineSuperClass/newArrayInitializerExpr/after/Usage.java
88
class Usage { void ba() { Test[][] s = new Test[][]{new Test[]{new Test()}}; } }
apache-2.0
martinstuga/elasticsearch
test/framework/src/main/java/org/elasticsearch/test/rest/spec/RestSpec.java
2549
/* * 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
queirozfcom/elasticsearch
core/src/test/java/org/elasticsearch/search/aggregations/bucket/HistogramIT.java
46500
/* * 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
rokn/Count_Words_2015
testing/openjdk2/hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/win32/coff/TestDebugInfo.java
13919
/* * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
mit
thedrummeraki/Aki-SSL
src/org/bouncycastle/math/ec/ScaleXPointMap.java
299
package org.bouncycastle.math.ec; public class ScaleXPointMap implements ECPointMap { protected final ECFieldElement scale; public ScaleXPointMap(ECFieldElement scale) { this.scale = scale; } public ECPoint map(ECPoint p) { return p.scaleX(scale); } }
apache-2.0
nknize/elasticsearch
server/src/test/java/org/elasticsearch/search/suggest/term/SuggestModeTests.java
2792
/* * 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
gwq5210/litlib
thirdparty/sources/protobuf/java/core/src/main/java/com/google/protobuf/MessageLiteOrBuilder.java
2717
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
gpl-3.0
huntergdavis/json_resume
JSONResumeViewer/app/src/main/java/com/hunterdavis/jsonresumeviewer/IconDownloadTask.java
2380
package com.hunterdavis.jsonresumeviewer; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.AsyncTask; import android.view.View; import android.widget.ImageView; import com.squareup.okhttp.Cache; import com.squareup.okhttp.OkHttpClient; import com...
isc
io7m/jsycamore
com.io7m.jsycamore.api/src/main/java/com/io7m/jsycamore/api/components/SyButtonReadableType.java
1796
/* * Copyright © 2016 <code@io7m.com> http://io7m.com * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND ...
isc
atomicint/aj8
server/src/main/java/org/apollo/game/msg/decoder/ThirdInventoryItemActionMessageDecoder.java
1099
package org.apollo.game.msg.decoder; import org.apollo.game.model.inter.Interfaces.InventoryAmountOption; import org.apollo.game.msg.MessageDecoder; import org.apollo.game.msg.annotate.DecodesMessage; import org.apollo.game.msg.impl.ItemActionMessage; import org.apollo.net.codec.game.DataTransformation; import org.apo...
isc
badlogic/avian
classpath/java/lang/Integer.java
4672
/* Copyright (c) 2008, Avian Contributors Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. There is NO WARRANTY for this software. See licens...
isc
pauldoo/scratch
Tuner/branches/0.2/src/AudioInput.java
1228
/* Tuner, a simple application to help you tune your musical instrument. Copyright (c) 2003, 2004, 2005, 2012 Paul Richards <paul.richards@gmail.com> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and thi...
isc
MikeBull94/svg-stockpile
api/src/test/java/com/mikebull94/stockpile/svg/processor/XmlEventProcessorTester.java
2996
package com.mikebull94.stockpile.svg.processor; import com.google.common.base.Preconditions; import com.mikebull94.stockpile.xml.XmlEventProcessor; import org.mockito.Mock; import javax.xml.stream.events.EndElement; import javax.xml.stream.events.StartElement; import javax.xml.stream.events.XMLEvent; import java.util...
isc
PaulNoth/hackerrank
practice/algorithms/sorting/correctness_and_the_loop_invariant/Solution.java
1125
import java.io.*; import java.util.*; public class Solution { public static void insertionSort(int[] ar){ for(int i = 1; i < ar.length; i++) { int num = ar[i]; int swapPos = i - 1; int l = i - 1; boolean isSwap = false; while(l >= 0) { ...
mit
tiffit/TaleCraft
src/main/java/talecraft/voxelator/shapes/VXShapeSphere.java
2552
package talecraft.voxelator.shapes; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.MathHelper; import talecraft.util.BlockRegion; import talecraft.util.MutableBlockPos; import talecraft.voxelator.BrushParameter; import talecraft.voxelator.CachedWorldDif...
mit
jkeeler16/portfolio-manager-java
src/com/es/manager/property/design/OpenFootageType.java
327
package com.es.manager.property.design; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name="openFootage") public class OpenFootageType extends OptionalFloorAreaTyp...
mit
Prototik/HoloEverywhere-Addon-Facebook-SDK
src/com/facebook/widget/WebDialog.java
28527
/** * Copyright 2010-present Facebook. * * 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...
mit
imjacobclark/SimplePing
src/main/java/com/uk/jacob/SimplePingApplication.java
312
package com.uk.jacob; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SimplePingApplication { public static void main(String[] args) { SpringApplication.run(SimplePingApplication.class, args); } }
mit
DirkyJerky/Study-J1
src/26/Main.java
473
import java.time.Duration; public class Main { public static void main (String[] args) throws Exception { if(args.length < 3) { die(); } Duration time = Duration.ZERO .plusHours(Long.parseLong(args[0])) .plusMinutes(Long.parseLong(args[1])) .plusSeconds(Long.parseLong(args[2])); System.out.p...
mit
Blackdread/filter-sort-jooq-api
src/main/java/org/blackdread/filtersortjooqapi/filter/FilteringJooq.java
9040
package org.blackdread.filtersortjooqapi.filter; import com.google.common.collect.ImmutableList; import org.apache.commons.lang3.StringUtils; import org.blackdread.filtersortjooqapi.exception.FilteringApiException; import org.jooq.Condition; import org.jooq.impl.DSL; import javax.validation.constraints.NotNull; impor...
mit
RezzedUp/skript-votifier-hook
src/main/java/com/rezzedup/skriptvotifierhook/expressions/VoterIpAddressExpression.java
778
package com.rezzedup.skriptvotifierhook.expressions; import ch.njol.skript.expressions.base.SimplePropertyExpression; import com.vexsoftware.votifier.model.Vote; public class VoterIpAddressExpression extends SimplePropertyExpression<Vote, String> { public static final String PATTERN = "[(voter|sender)] [ip(-| )]a...
mit
finky/Android-todolist
app/src/main/java/com/r_mades/todolist/fragments/TodoMainFragment.java
6890
package com.r_mades.todolist.fragments; import android.app.DatePickerDialog; import android.app.Fragment; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import andr...
mit