code
stringlengths
3
1.04M
repo_name
stringlengths
5
109
path
stringlengths
6
306
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
3
1.04M
/* * 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 ...
tzulitai/flink
flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/client/HiveShimV211.java
Java
apache-2.0
952
/* 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...
lsmall/flowable-engine
modules/flowable-dmn-engine/src/main/java/org/flowable/dmn/engine/impl/hitpolicy/HitPolicyFirst.java
Java
apache-2.0
1,113
package org.keycloak.testsuite.console.page.clients.roles; import static org.keycloak.testsuite.console.page.clients.Client.ID; import org.keycloak.testsuite.console.page.roles.CreateRole; /** * * @author tkyjovsk */ public class CreateClientRole extends CreateRole { @Override public String getUriFragment...
ppolavar/keycloak
testsuite/integration-arquillian/tests/other/console/src/main/java/org/keycloak/testsuite/console/page/clients/roles/CreateClientRole.java
Java
apache-2.0
556
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.ui.content; import com.intellij.openapi.project.Project; import org.jetbrains.annotations.NotNull; public interface MessageView { ContentManager getConte...
jwren/intellij-community
platform/platform-impl/src/com/intellij/ui/content/MessageView.java
Java
apache-2.0
579
/* * Copyright 2011 gitblit.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 applicable law or ...
cesarmarinhorj/gitblit
src/main/java/com/gitblit/utils/ActivityUtils.java
Java
apache-2.0
6,389
/* * 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 ...
poornachandra/incubator-tephra
tephra-hbase-compat-1.0/src/main/java/org/apache/tephra/hbase/SecondaryIndexTable.java
Java
apache-2.0
6,569
package com.thaiopensource.validate.mns; import com.thaiopensource.xml.util.Name; import java.util.Vector; import java.util.Hashtable; class ContextMap { private Object rootValue; private Object otherValue; private final Hashtable nameTable = new Hashtable(); Object get(Vector context) { return get(cont...
vandenoever/jing
mod/nvdl/src/main/com/thaiopensource/validate/mns/ContextMap.java
Java
bsd-3-clause
1,506
/** * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ package org.dspace.app.webui.servlet; import java.io.IOException; import java.io.InputStream; import j...
mdiggory/dryad-repo
dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/servlet/ItemExportArchiveServlet.java
Java
bsd-3-clause
3,472
/** * Copyright (c) 2006-2009, Redv.com * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list o...
thenewmotion/jos
jos-service/src/main/java/cn/net/openid/jos/service/GenerateOneTimePasswordAfterReturningAdvice.java
Java
bsd-3-clause
2,704
package com.insightfullogic.java8.answers.chapter3; import com.insightfullogic.java8.examples.chapter1.Album; import com.insightfullogic.java8.examples.chapter1.SampleData; import com.insightfullogic.java8.answers.chapter3.Question1; import org.junit.Test; import java.util.List; import java.util.stream.Stream; impor...
yuanyuanlove/java-8-lambdas-exercises
src/test/java/com/insightfullogic/java8/answers/chapter3/Question1Test.java
Java
mit
1,486
/* * eXist Open Source Native XML Database * Copyright (C) 2001-2009 The eXist Project * http://exist-db.org * * This program 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 Foundation; either version 2 * o...
MjAbuz/exist
src/org/exist/xquery/functions/fn/FunOneOrMore.java
Java
lgpl-2.1
3,490
/* * 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 ...
nikhilvibhav/camel
components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrAuthTestBase.java
Java
apache-2.0
3,479
/* * 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 ...
nikhilvibhav/camel
tooling/camel-tooling-model/src/main/java/org/apache/camel/tooling/model/LanguageModel.java
Java
apache-2.0
1,537
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.plugins.cucumber.java.run; import cucumber.api.TestCase; import cucumber.api.TestStep; import cucumber.api.event.*; import gherkin.events.PickleEvent; impo...
allotria/intellij-community
plugins/cucumber-jvm-formatter/src/org/jetbrains/plugins/cucumber/java/run/CucumberJvm2Adapter.java
Java
apache-2.0
5,183
/******************************************************************************* * Copyright (c) 2009 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, and is a...
nwnpallewela/developer-studio
jaggery/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/wizards/WizardModel.java
Java
apache-2.0
2,227
/* * Copyright 2005 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...
droolsjbpm/drools
drools-compiler/src/main/java/org/drools/compiler/lang/descr/NotDescr.java
Java
apache-2.0
1,886
/* * 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...
ThalaivaStars/OrgRepo1
core/src/main/java/org/elasticsearch/action/delete/TransportDeleteAction.java
Java
apache-2.0
8,775
/* * 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 ...
nikhilvibhav/camel
components/camel-mybatis/src/test/java/org/apache/camel/component/mybatis/MyBatisDeleteListTest.java
Java
apache-2.0
2,508
/* * 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 ...
cleliameneghin/sling
contrib/commons/mom/jobs/core/src/main/java/org/apache/sling/jobs/JobManager.java
Java
apache-2.0
7,575
/* * 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 ...
robzor92/hops
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/zlib/ZlibCompressor.java
Java
apache-2.0
12,778
/* * 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 ...
ultratendency/hbase
hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/QuotaSnapshotStore.java
Java
apache-2.0
3,286
/* * 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...
JuudeDemos/android-sdk-20
src/org/apache/harmony/tests/javax/security/auth/callback/CallbackHandlerTest.java
Java
apache-2.0
1,638
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.vcs.changes.committed; import com.intellij.openapi.util.Pair; import com.intellij.openapi.vcs.RepositoryLocation; import com.intellij.openapi.vcs.ver...
allotria/intellij-community
platform/vcs-api/src/com/intellij/openapi/vcs/changes/committed/VcsCommittedListsZipper.java
Java
apache-2.0
789
/* * 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 ...
lindzh/incubator-rocketmq
test/src/main/java/org/apache/rocketmq/test/util/TestUtil.java
Java
apache-2.0
3,780
package com.twitter.elephantbird.crunch; import com.twitter.elephantbird.mapreduce.input.LzoThriftBlockInputFormat; import org.apache.crunch.ReadableData; import org.apache.crunch.io.FormatBundle; import org.apache.crunch.io.ReadableSource; import org.apache.crunch.io.impl.FileSourceImpl; import org.apache.crunch.type...
canojim/elephant-bird
crunch/src/main/java/com/twitter/elephantbird/crunch/LzoThriftSource.java
Java
apache-2.0
2,426
// "Transform body to single exit-point form" "true" class Test { String test(String[] strings) { String result = null; boolean finished = false; if (strings.length > 2) { String string = strings[0]; if (string.equals(strings[1])) { result = foo(string...
siosio/intellij-community
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/convertToSingleReturn/afterNestedIfUnknownPlusCall.java
Java
apache-2.0
473
/* * [The "BSD license"] * Copyright (c) 2010 Terence Parr * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * ...
pballand/congress
thirdparty/antlr3-antlr-3.5/tool/src/main/java/org/antlr/misc/MultiMap.java
Java
apache-2.0
1,984
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.internal; import com.intellij.configurationStore.StoreReloadManager; import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSys...
siosio/intellij-community
platform/platform-impl/src/com/intellij/internal/ReloadProjectAction.java
Java
apache-2.0
756
/* * Copyright (C) 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 ...
joshualitt/DataflowJavaSDK
sdk/src/main/java/com/google/cloud/dataflow/sdk/util/NullSideInputReader.java
Java
apache-2.0
1,917
/* * Copyright 2015 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 a...
jomarko/kie-wb-common
kie-wb-common-services/kie-wb-common-data-modeller-core/src/main/java/org/kie/workbench/common/services/datamodeller/driver/model/DriverResponse.java
Java
apache-2.0
783
/* * Copyright 2019 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apach...
thomasdarimont/keycloak
testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/authorization/AbstractPhotozAccountResourcesAdapterTest.java
Java
apache-2.0
8,293
/* * Copyright (C) 2010-2101 Alibaba Group Holding 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 the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
alibaba/otter
node/etl/src/test/java/com/alibaba/otter/node/etl/launcher/OtterLoaderFactoryIntegration.java
Java
apache-2.0
2,422
/* * Copyright 2009 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...
gstevey/gradle
subprojects/core-api/src/main/java/org/gradle/api/file/FileVisitDetails.java
Java
apache-2.0
970
/** * 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...
ronny-macmaster/hadoop
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/RoundRobinVolumeChoosingPolicy.java
Java
apache-2.0
3,750
/* * 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 ...
irudyak/ignite
modules/core/src/test/java/org/apache/ignite/cache/store/IgniteCacheExpiryStoreLoadSelfTest.java
Java
apache-2.0
7,640
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.react.animated; import com.facebook.react.bridge.Arguments; import com.facebook.react.bridge.Callback; import com....
hoastoolshop/react-native
ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedNodeTraversalTest.java
Java
bsd-3-clause
50,087
/** * Copyright (c) 2010-2019 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse....
clinique/openhab2
bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/message/NibeHeatPumpBaseMessage.java
Java
epl-1.0
2,756
/* * Copyright (c) 2015, 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...
apurtell/jdk8u-hotspot
test/compiler/escapeAnalysis/TestEABadMergeMem.java
Java
gpl-2.0
2,718
/** * Vosao CMS. Simple CMS for Google App Engine. * * Copyright (C) 2009-2010 Vosao development team. * * 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 Foundation; either * version 2.1 of t...
vosaocms/vosao
api/src/org/vosao/utils/ArrayUtil.java
Java
lgpl-2.1
1,886
/** * Vosao CMS. Simple CMS for Google App Engine. * * Copyright (C) 2009-2010 Vosao development team. * * 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 Foundation; either * version 2.1 of t...
vosaocms/vosao
api/src/org/vosao/entity/helper/ContentHelper.java
Java
lgpl-2.1
1,264
/* * 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 ...
alexzaitzev/ignite
modules/flume/src/main/java/org/apache/ignite/stream/flume/IgniteSink.java
Java
apache-2.0
5,926
/* * 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. */ package com.facebook.yoga; public abstract class YogaNodeFactory { public static YogaNode create() { return new YogaNodeJNIF...
facebook/css-layout
java/com/facebook/yoga/YogaNodeFactory.java
Java
bsd-3-clause
441
package im.actor.messenger.app.fragment.media; import android.os.Bundle; import android.support.v7.widget.SearchView; import android.view.*; import android.widget.ListView; import im.actor.messenger.R; import im.actor.messenger.app.fragment.BaseFragment; import im.actor.messenger.app.Intents; import im.actor.model.en...
ketoo/actor-platform
actor-apps/app-android/src/main/java/im/actor/messenger/app/fragment/media/DocumentsFragment.java
Java
mit
4,308
/* * Copyright 2010 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 i...
kmolcsan/kennymolc-quake2-gwt-port
src/com/google/gwt/corp/webgl/client/WebGLUnsignedByteArray.java
Java
gpl-2.0
5,512
/* * 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 ...
tr3vr/jena
jena-core/src/test/java/org/apache/jena/graph/compose/test/TestDyadic.java
Java
apache-2.0
2,820
/* * 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 ...
hequn8128/flink
flink-tests/src/test/java/org/apache/flink/test/windowing/sessionwindows/SessionWindowITCase.java
Java
apache-2.0
10,334
/* * ProGuard -- shrinking, optimization, obfuscation, and preverification * of Java bytecode. */ package proguard.annotation; import java.lang.annotation.*; /** * This annotation specifies to keep all getters and setters of the annotated * class from being shrunk, optimized, or obfuscated as entry p...
dslomov/bazel
third_party/java/proguard/proguard5.3.3/examples/annotations/src/proguard/annotation/KeepGettersSetters.java
Java
apache-2.0
476
// ================================================================================================= // Copyright 2011 Twitter, Inc. // ------------------------------------------------------------------------------------------------- // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use ...
abel-von/commons
src/java/com/twitter/common/checkstyle/NonOverriddenMethodNameCheck.java
Java
apache-2.0
2,286
/** * Copyright 2005-2015 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by a...
geothomasp/kualico-rice-kc
rice-framework/krad-data/src/main/java/org/kuali/rice/krad/data/metadata/MetadataMergeAction.java
Java
apache-2.0
1,709
/* 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...
JuudeDemos/android-sdk-20
src/org/apache/harmony/tests/java/nio/channels/CancelledKeyExceptionTest.java
Java
apache-2.0
1,885
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.debugger.streams.trace; import com.intellij.util.containers.ContainerUtil; import com.sun.jdi.Value; import org.jetbrains.annotations.NotNull; import java.u...
smmribeiro/intellij-community
plugins/stream-debugger/src/com/intellij/debugger/streams/trace/IntermediateState.java
Java
apache-2.0
570
/* * Copyright 2012 JBoss Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
amckee23/drools
drools-workbench-models/drools-workbench-models-commons/src/main/java/org/drools/workbench/models/commons/backend/imports/ImportsParser.java
Java
apache-2.0
1,868
/** * Copyright 2005-2015 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by a...
geothomasp/kualico-rice-kc
rice-middleware/location/web/src/main/java/org/kuali/rice/location/web/country/CountryMaintainableImpl.java
Java
apache-2.0
1,408
package com.xtremelabs.robolectric.res; import android.graphics.drawable.Drawable; import android.graphics.drawable.LayerDrawable; import android.graphics.drawable.StateListDrawable; import com.xtremelabs.robolectric.R; import com.xtremelabs.robolectric.Robolectric; import com.xtremelabs.robolectric.WithTestDefaultsRu...
MIPS/external-robolectric
src/test/java/com/xtremelabs/robolectric/res/DrawableResourceLoaderTest.java
Java
mit
5,125
/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty 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.or...
gpolitis/jitsi
src/net/java/sip/communicator/impl/protocol/jabber/extensions/jingle/RedirectPacketExtension.java
Java
apache-2.0
1,777
// Copyright (C) 2013 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 applicable ...
netroby/gerrit
gerrit-server/src/main/java/com/google/gerrit/server/notedb/ChangeNoteUtil.java
Java
apache-2.0
2,103
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
GlenRSmith/elasticsearch
server/src/main/java/org/elasticsearch/search/aggregations/bucket/terms/GlobalOrdinalsStringTermsAggregator.java
Java
apache-2.0
39,074
/* * * 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"); y...
Guavus/hbase
hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/model/CellSetModel.java
Java
apache-2.0
4,796
package com.mossle.user.web; import java.util.ArrayList; import java.util.List; import java.util.Map; import javax.annotation.Resource; import com.mossle.core.mapper.BeanMapper; import com.mossle.core.page.Page; import com.mossle.core.spring.MessageHelper; import com.mossle.core.util.ServletUtils; import com.mossle...
callmeyan/lemon
src/main/java/com/mossle/user/web/ProfileController.java
Java
apache-2.0
3,842
package pitt.search.semanticvectors.orthography; import java.io.IOException; import java.util.Enumeration; import java.util.LinkedList; import org.junit.Test; import pitt.search.semanticvectors.*; import pitt.search.semanticvectors.vectors.Vector; import pitt.search.semanticvectors.vectors.VectorType; impor...
anhth12/semanticvectors
src/test/java/pitt/search/semanticvectors/orthography/StringEditTestUnused.java
Java
bsd-3-clause
4,690
/******************************************************************************* * Copyright (c) 2005, 2008 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...
kaloyan-raev/che
plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-ltk-core-refactoring/src/main/java/org/eclipse/ltk/core/refactoring/model/AbstractRefactoringHistoryResourceMapping.java
Java
epl-1.0
5,037
/* * 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 ...
jongyoul/phoenix
phoenix-core/src/main/java/org/apache/phoenix/schema/PMetaData.java
Java
apache-2.0
1,462
package org.apache.lucene.codecs.lucene41; /* * 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 Licen...
smartan/lucene
src/main/java/org/apache/lucene/codecs/lucene41/Lucene41PostingsBaseFormat.java
Java
apache-2.0
1,867
package nxt.user; import nxt.peer.Peer; import org.json.simple.JSONStreamAware; import javax.servlet.http.HttpServletRequest; import java.io.IOException; import java.net.InetAddress; import static nxt.user.JSONResponses.LOCAL_USERS_ONLY; public final class RemoveBlacklistedPeer extends UserServlet.UserRequestHandle...
NTXcrypto/NTXcoin
src/nxt/user/RemoveBlacklistedPeer.java
Java
mit
977
/** * Copyright 2007-2016, Kaazing 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 * * Unless require...
a-zuckut/gateway
util/src/main/java/org/kaazing/gateway/util/http/DefaultUtilityHttpClient.java
Java
apache-2.0
1,651
/** * 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...
VicoWu/hadoop-2.7.3
hadoop-mapreduce-project/hadoop-mapreduce-examples/src/test/java/org/apache/hadoop/examples/terasort/TestTeraSort.java
Java
apache-2.0
3,780
/* * 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 ...
pwong-mapr/incubator-drill
exec/vector/src/main/java/org/apache/drill/exec/vector/accessor/ColumnReader.java
Java
apache-2.0
2,862
/* * Copyright 2012-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 ap...
donthadineshkumar/spring-boot
spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/ValueProvider.java
Java
apache-2.0
1,644
// "Remove 'IOException' from 'execute' throws list" "false" import java.io.*; class X { void execute() throws XXX, IOException, YYY, IOEx<caret>ception { } }
siosio/intellij-community
java/java-tests/testData/inspection/duplicateThrows/quickFix/beforeRemoveUnderCaret2.java
Java
apache-2.0
165
/** * 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...
sakanaou/storm
storm-client/src/jvm/org/apache/storm/streams/tuple/Tuple5.java
Java
apache-2.0
2,852
/* * 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...
jbertouch/elasticsearch
core/src/test/java/org/elasticsearch/bwcompat/TransportClientBackwardsCompatibilityIT.java
Java
apache-2.0
3,697
package sagan.tools; import java.util.List; public class EclipsePackage { private String name; private List<Architecture> architectures; public EclipsePackage(String name, List<Architecture> architectures) { this.name = name; this.architectures = architectures; } public String ge...
yhj630520/sagan
sagan-common/src/main/java/sagan/tools/EclipsePackage.java
Java
bsd-3-clause
447
/******************************************************************************* * Copyright (c) 2005 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, and is a...
Drifftr/devstudio-tooling-bps
plugins/org.eclipse.bpel.common.ui/src/org/eclipse/bpel/common/ui/details/viewers/ComboViewerCellEditor.java
Java
apache-2.0
1,854
/** * 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...
dennishuo/hadoop
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/StreamCapabilitiesPolicy.java
Java
apache-2.0
2,168
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
GlenRSmith/elasticsearch
server/src/test/java/org/elasticsearch/cluster/coordination/PreVoteCollectorTests.java
Java
apache-2.0
17,282
/** * Copyright (c) 2010-2016 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 */...
mvolaart/openhab
bundles/binding/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/IhcDataConverter.java
Java
epl-1.0
14,389
/** * Copyright (c) 2010-2016, 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 */ pac...
paolodenti/openhab
bundles/core/org.openhab.core.library/src/main/java/org/openhab/core/library/types/IncreaseDecreaseType.java
Java
epl-1.0
645
/* * 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...
md-5/jdk10
test/jdk/javax/swing/text/html/8034955/bug8034955.java
Java
gpl-2.0
1,742
/* * 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 ...
md-5/jdk10
src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/util/SimpleLocator.java
Java
gpl-2.0
4,018
/* * Pixel Dungeon * Copyright (C) 2012-2015 Oleg Dolya * * 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. * * T...
lilymark/pixel-dungeon
src/com/watabou/pixeldungeon/actors/buffs/Ooze.java
Java
gpl-3.0
1,667
/* * Copyright (c) 2005-2014, 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.apach...
ThilankaBowala/andes
modules/andes-core/broker/src/main/java/org/wso2/andes/qmf/QMFOperation.java
Java
apache-2.0
3,535
/* * 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 ...
netboynb/search-core
src/main/java/org/apache/solr/response/transform/ShardAugmenterFactory.java
Java
apache-2.0
1,486
package io.dropwizard.logging; import ch.qos.logback.classic.pattern.RootCauseFirstThrowableProxyConverter; import ch.qos.logback.classic.spi.IThrowableProxy; import java.util.regex.Pattern; import static io.dropwizard.logging.PrefixedThrowableProxyConverter.PATTERN; import static io.dropwizard.logging.PrefixedThrow...
shawnsmith/dropwizard
dropwizard-logging/src/main/java/io/dropwizard/logging/PrefixedRootCauseFirstThrowableProxyConverter.java
Java
apache-2.0
1,034
/* * 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 ...
jinglining/flink
flink-java/src/test/java/org/apache/flink/api/java/operator/ProjectionOperatorTest.java
Java
apache-2.0
4,386
/* * 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...
himanshuag/elasticsearch
core/src/main/java/org/elasticsearch/index/query/QueryParseContext.java
Java
apache-2.0
14,169
/* * Copyright (c) 2005-2010, 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....
jacklotusho/carbon-identity
components/entitlement/org.wso2.carbon.identity.entitlement/src/main/java/org/wso2/carbon/identity/entitlement/pdp/EntitlementEngine.java
Java
apache-2.0
19,615
package org.bouncycastle.jce.exception; import java.security.cert.CertPath; import java.security.cert.CertPathBuilderException; public class ExtCertPathBuilderException extends CertPathBuilderException implements ExtException { private Throwable cause; public ExtCertPathBuilderException(String messag...
thedrummeraki/Aki-SSL
src/org/bouncycastle/jce/exception/ExtCertPathBuilderException.java
Java
apache-2.0
652
/** * Copyright (c) 2010-2016, 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...
sedstef/openhab
bundles/persistence/org.openhab.persistence.cosm/src/main/java/org/openhab/persistence/cosm/internal/CosmEventTransformer.java
Java
epl-1.0
1,757
/* * Copyright (c) 2011, 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 ...
FauxFaux/jdk9-jdk
test/sun/security/ssl/SSLContextImpl/MD2InTrustAnchor.java
Java
gpl-2.0
13,240
/* * JBoss, Home of Professional Open Source * Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual * contributors by the @authors tag. See the copyright.txt in the * distribution for a full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * y...
PavelMikhailouski/jboss-eap-quickstarts
contacts-jquerymobile/src/main/java/org/jboss/quickstarts/contact/JaxRsActivator.java
Java
apache-2.0
1,265
/* * org.openmicroscopy.shoola.util.ui.WellGridElement * *------------------------------------------------------------------------------ * Copyright (C) 2006-2010 University of Dundee. All rights reserved. * * * This program is free software; you can redistribute it and/or modify * it under the terms of the...
simleo/openmicroscopy
components/insight/SRC/org/openmicroscopy/shoola/util/ui/WellGridElement.java
Java
gpl-2.0
2,963
package hudson.plugins.git.browser; import hudson.Extension; import hudson.model.Descriptor; import hudson.plugins.git.GitChangeSet; import hudson.plugins.git.GitChangeSet.Path; import hudson.scm.EditType; import hudson.scm.RepositoryBrowser; import hudson.scm.browsers.QueryBuilder; import hudson.util.FormValidation; ...
ialbors/git-plugin
src/main/java/hudson/plugins/git/browser/ViewGitWeb.java
Java
mit
3,888
/* * Copyright 2009-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
510529571/mybatis-3
src/test/java/org/apache/ibatis/submitted/typehandler/TypeHandlerTest.java
Java
apache-2.0
2,446
package com.iluwatar; /** * * There are two variations of the Adapter pattern: The class adapter implements * the adaptee's interface whereas the object adapter uses composition to * contain the adaptee in the adapter object. This example uses the object * adapter approach. * * The Adapter (GnomeEngi...
RepmujNetsik/java-design-patterns
adapter/src/main/java/com/iluwatar/App.java
Java
mit
641
/** * 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...
steveloughran/hadoop
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/scheduler/UpdateContainerSchedulerEvent.java
Java
apache-2.0
2,655
/* * 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 ...
labertasch/sling
testing/samples/bundle-with-it/src/test/java/org/apache/sling/testing/samples/bundlewit/SampleUnitTest.java
Java
apache-2.0
1,255
/* * Copyright (C) 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 ...
dhananjaypatkar/DataflowJavaSDK
sdk/src/main/java/com/google/cloud/dataflow/sdk/transforms/join/RawUnionValue.java
Java
apache-2.0
1,395
/** * 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...
hash-X/hadoop
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DecommissionManager.java
Java
apache-2.0
23,379
/* * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2015, Red Hat Inc. * 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 ...
liuxinglanyue/sa-jdi
src/main/java/sun/jvm/hotspot/debugger/linux/aarch64/LinuxAARCH64CFrame.java
Java
gpl-2.0
2,804
package com.puppycrawl.tools.checkstyle.annotation; public class NotOverride { /** * {@inheritDoc} */ private void bleh() { } /** * {@inheritDoc} */ public static void eh() { } /** * {@inheritDoc} */ public String junk = ""; void dodoo() {}...
lhanson/checkstyle
src/testinputs/com/puppycrawl/tools/checkstyle/annotation/NotOverride.java
Java
lgpl-2.1
323