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
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This file is part of Beaver Parser Generator. * * Copyright (C) 2003,2004 Alexander Demenchuk <alder@softanvil.com>. * * All rights reserved. * * See the file "LICENSE" fo...
ben8p/smallEditor
src/beaver/spec/Production.java
Java
gpl-2.0
7,137
/******************************************************************************* * oltpbenchmark.com * * Project Info: http://oltpbenchmark.com * Project Members: Carlo Curino <carlo.curino@gmail.com> * Evan Jones <ej@evanjones.ca> * DIFALLAH Djellel Eddine <djelleleddine.d...
apavlo/h-store
src/benchmarks/edu/brown/benchmark/wikipedia/util/WikipediaUtil.java
Java
gpl-3.0
5,628
/* Copyright 2017 Red Hat, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
yersan/wildfly-core
testsuite/standalone/src/test/java/org/jboss/as/test/integration/management/cli/ForLoopTestCase.java
Java
lgpl-2.1
10,213
/** * Copyright 2005-2014 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...
ricepanda/rice-git2
rice-middleware/ksb/web/src/main/java/org/kuali/rice/ksb/security/admin/web/JavaSecurityManagementForm.java
Java
apache-2.0
3,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...
kenchen1101/jstorm
jstorm-core/src/main/java/backtype/storm/tuple/ITuple.java
Java
apache-2.0
3,725
/* * 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...
scorpionvicky/elasticsearch
libs/geo/src/main/java/org/elasticsearch/geometry/LinearRing.java
Java
apache-2.0
2,446
/* * 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 ...
alanfgates/hive
ql/src/java/org/apache/hadoop/hive/ql/exec/SparkMemoryExhaustionChecker.java
Java
apache-2.0
3,786
/* * 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; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.xpack.ml.dataframe.process; import org.e...
robin13/elasticsearch
x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/dataframe/process/AnalyticsResultProcessorTests.java
Java
apache-2.0
15,009
/* * 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 m...
vineetgarg02/hive
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/messaging/CommitTxnMessage.java
Java
apache-2.0
1,871
package org.apereo.cas.web.flow.decorator; import org.apereo.cas.util.scripting.WatchableGroovyScriptResource; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import lombok.val; import org.springframework.context.ApplicationContext; import org.springframework.core.io.Resource; import org.spri...
rrenomeron/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/decorator/GroovyLoginWebflowDecorator.java
Java
apache-2.0
1,063
/******************************************************************************* * Copyright 2014 See AUTHORS file. * * 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...
libgdx/ashley
ashley/tests/com/badlogic/ashley/signals/SignalTests.java
Java
apache-2.0
4,233
/* * Pager Tag Library * * Copyright (C) 2002 James Klicman <james@jsptags.com> * * 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 the License, or (a...
besom/bbossgroups-mvn
bboss_taglib/src/main/java/com/frameworkset/common/tag/pager/tags/PrevTag.java
Java
apache-2.0
1,527
/* * 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...
Schizo/KSS
library/src/main/java/com/google/android/exoplayer/text/webvtt/WebvttParser.java
Java
apache-2.0
10,510
/* * 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-tools/hadoop-azure-datalake/src/test/java/org/apache/hadoop/fs/adl/AdlMockWebServer.java
Java
apache-2.0
3,304
/** * 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...
justinleet/metron
metron-platform/metron-parsing/metron-parsing-storm/src/test/java/org/apache/metron/parsers/topology/ParserTopologyBuilderTest.java
Java
apache-2.0
6,494
/* * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
fazlan-nazeem/carbon-ml
components/ml/org.wso2.carbon.ml.core/src/main/java/org/wso2/carbon/ml/core/spark/transformations/NormalRowsFilter.java
Java
apache-2.0
2,001
package edu.gemini.spModel.gemini.seqcomp; import edu.gemini.pot.sp.ISPSeqComponent; import edu.gemini.shared.util.immutable.DefaultImList; import edu.gemini.spModel.config.AbstractSeqComponentCB; import edu.gemini.spModel.data.config.DefaultParameter; import edu.gemini.spModel.data.config.IConfig; import edu.gemini.s...
arturog8m/ocs
bundle/edu.gemini.pot/src/main/java/edu/gemini/spModel/gemini/seqcomp/SeqRepeatOffsetBaseCB.java
Java
bsd-3-clause
3,670
package redis.clients.jedis; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Set; import org.apache.commons.pool2.impl.GenericObjectPoolConfig; import redis.clients.jedis.exceptions.JedisConnectionException; public class JedisSlotBasedConnectionHandler extends Jedis...
StevenTsai/jedis
src/main/java/redis/clients/jedis/JedisSlotBasedConnectionHandler.java
Java
mit
1,904
/* * Copyright (c) 2010, 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 ...
rokn/Count_Words_2015
testing/openjdk2/nashorn/src/jdk/nashorn/internal/ir/ExpressionStatement.java
Java
mit
3,304
/****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * * This program is free software, you can redistribute it and/or modify it * ...
armenrz/adempiere
base/src/org/compiere/model/I_PA_Goal.java
Java
gpl-2.0
10,598
/* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. The MySQL Connector/J is licensed under the terms of the GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most MySQL Connectors. There are special exceptions to the terms and conditions of the GPLv2 as it is appl...
slockhart/sql-app
mysql-connector-java-5.1.34/src/com/mysql/jdbc/DatabaseMetaDataUsingInfoSchema.java
Java
gpl-2.0
75,947
/****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * * This program is free software, you can redistribute it and/or modify it * ...
armenrz/adempiere
base/src/org/compiere/model/I_PA_BenchmarkData.java
Java
gpl-2.0
5,517
package com.caucho.hessian.test; import java.io.IOException; /** * Empty object for short-encoding testing */ public class A3 implements java.io.Serializable { public boolean equals(Object v) { return v != null && getClass().equals(v.getClass()); } public String toString() { return getClass().g...
mdaniel/svn-caucho-com-resin
modules/hessian/src/com/caucho/hessian/test/A3.java
Java
gpl-2.0
343
/* * Copyright (c) 2003, 2012, 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-langtools
src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/InheritableTaglet.java
Java
gpl-2.0
2,184
/* * #%L * BSD implementations of Bio-Formats readers and writers * %% * Copyright (C) 2005 - 2017 Open Microscopy Environment: * - Board of Regents of the University of Wisconsin-Madison * - Glencoe Software, Inc. * - University of Dundee * %% * Redistribution and use in source and binary forms, with or...
melissalinkert/bioformats
components/formats-bsd/src/loci/formats/gui/GUITools.java
Java
gpl-2.0
9,329
/****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * * This program is free software, you can redistribute it and/or modify it * ...
erpcya/adempierePOS
base/src/org/compiere/model/I_C_BP_Relation.java
Java
gpl-2.0
7,838
/* * Copyright (c) 1998, 2008, 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 ...
smarr/GraalJVMCI8
src/share/tools/IdealGraphVisualizer/Filter/src/com/sun/hotspot/igv/filter/CustomFilter.java
Java
gpl-2.0
4,643
/** * Copyright © 2002 Instituto Superior Técnico * * This file is part of FenixEdu Academic. * * FenixEdu Academic 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 3 of the License...
jcarvalho/fenixedu-academic
src/main/java/org/fenixedu/academic/domain/accounting/postingRules/gratuity/DFAGratuityPR.java
Java
lgpl-3.0
9,224
/* * Copyright 2016 ThoughtWorks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
ind9/gocd
config/config-api/src/main/java/com/thoughtworks/go/presentation/TaskViewModel.java
Java
apache-2.0
2,442
/** * Licensed to Apereo under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright ownership. Apereo * licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use * this file except in compli...
phillips1021/uPortal
uPortal-persondir/src/main/java/org/apereo/portal/persondir/LocalAccountQuery.java
Java
apache-2.0
1,493
/* * 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 ...
YolandaMDavis/nifi
nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/PutMongoRecord.java
Java
apache-2.0
9,193
package org.zstack.sdk; import java.util.HashMap; import java.util.Map; public class ChangeZoneStateAction extends AbstractAction { private static final HashMap<String, Parameter> parameterMap = new HashMap<>(); public static class Result { public ErrorCode error; public ChangeZoneStateResul...
Alvin-Lau/zstack
sdk/src/main/java/org/zstack/sdk/ChangeZoneStateAction.java
Java
apache-2.0
2,378
/* * 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 ...
tkpanther/ignite
modules/core/src/main/java/org/apache/ignite/internal/processors/datastructures/GridCacheAtomicReferenceImpl.java
Java
apache-2.0
11,101
/* * 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...
jmluy/elasticsearch
client/rest-high-level/src/main/java/org/elasticsearch/client/GraphClient.java
Java
apache-2.0
2,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 n...
Nimco/sling
tooling/support/provisioning-model/src/main/java/org/apache/sling/provisioning/model/Feature.java
Java
apache-2.0
5,273
/* * Copyright (c) 2014, Cloudera, Inc. All Rights Reserved. * * Cloudera, Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"). You may not use this file except in * compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
nvoron23/oryx
oryx-app-common/src/main/java/com/cloudera/oryx/app/rdf/predict/WeightedPrediction.java
Java
apache-2.0
3,952
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * 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:...
domix/libgdx
gdx/src/com/badlogic/gdx/scenes/scene2d/actions/AddAction.java
Java
apache-2.0
1,755
/* * Copyright 2015 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...
packet-tracker/onos
core/api/src/main/java/org/onosproject/ui/table/cell/ConnectPointFormatter.java
Java
apache-2.0
1,239
/* * 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 ...
Panos-Bletsos/spark-cost-model-optimizer
common/network-shuffle/src/test/java/org/apache/spark/network/shuffle/RetryingBlockFetcherSuite.java
Java
apache-2.0
11,899
/* * 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 ...
tripodsan/jackrabbit
jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NamespaceStorage.java
Java
apache-2.0
1,722
/** * 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 */...
mvolaart/openhab2-addons
addons/binding/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/GlobalCacheHandlerFactory.java
Java
epl-1.0
2,744
/* * Copyright (c) 2018, 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/sun/security/rsa/TestKeyPairGeneratorInit.java
Java
gpl-2.0
2,073
/* * $Id: SmithWatermanGotoh.java,v 1.10 2006/02/09 13:27:36 ahmed Exp $ * * 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 2 * of the License, or (at your option) any later...
fw1121/Pandoras-Toolbox-for-Bioinformatics
src/Trinity/Butterfly/src/src/jaligner/SmithWatermanGotoh.java
Java
gpl-3.0
10,396
/** * 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....
sintjuri/openmrs-core
api/src/test/java/org/openmrs/PersonAttributeTest.java
Java
mpl-2.0
7,385
/** * Licensed to Apereo under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Apereo licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in ...
ASU-Capstone/uPortal-Forked
uportal-war/src/main/java/org/jasig/portal/utils/cache/UsernameTaggedCacheEntryPurger.java
Java
apache-2.0
2,567
/* * Copyright 2016 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 app...
jomarko/kie-wb-common
kie-wb-common-forms/kie-wb-common-dynamic-forms/kie-wb-common-dynamic-forms-api/src/main/java/org/kie/workbench/common/forms/dynamic/service/shared/impl/MapModelRenderingContext.java
Java
apache-2.0
2,121
/* * 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; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.xpack.monitoring.exporter.http; import o...
robin13/elasticsearch
x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/exporter/http/HttpExportBulk.java
Java
apache-2.0
8,383
package com.google.typography.font.sfntly.table.opentype; import com.google.typography.font.sfntly.data.ReadableFontData; import com.google.typography.font.sfntly.data.WritableFontData; import com.google.typography.font.sfntly.table.opentype.component.TagOffsetsTable; import com.google.typography.font.sfntly.table.ope...
jtanx/sfntly-java-mod
src/com/google/typography/font/sfntly/table/opentype/ScriptTable.java
Java
apache-2.0
3,906
/* * Copyright 2017 NAVER Corp. * * 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 ...
majinkai/pinpoint
web/src/main/java/com/navercorp/pinpoint/web/mapper/stat/sampling/sampler/join/EagerSamplingHandler.java
Java
apache-2.0
5,658
package com.mixpanel.android.viewcrawler; import android.util.Log; import com.mixpanel.android.java_websocket.client.WebSocketClient; import com.mixpanel.android.java_websocket.drafts.Draft_17; import com.mixpanel.android.java_websocket.exceptions.NotSendableException; import com.mixpanel.android.java_websocket.excep...
dreamseekerkun/mixpanel-android
src/main/java/com/mixpanel/android/viewcrawler/EditorConnection.java
Java
apache-2.0
6,373
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
pwz3n0/presto
presto-redis/src/main/java/com/facebook/presto/redis/RedisConnectorModule.java
Java
apache-2.0
3,497
/* * 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...
gfyoung/elasticsearch
client/rest/src/test/java/org/elasticsearch/client/RestClientMultipleHostsTests.java
Java
apache-2.0
19,730
package org.zstack.sdk; public class CreateZoneResult { public ZoneInventory inventory; public void setInventory(ZoneInventory inventory) { this.inventory = inventory; } public ZoneInventory getInventory() { return this.inventory; } }
Alvin-Lau/zstack
sdk/src/main/java/org/zstack/sdk/CreateZoneResult.java
Java
apache-2.0
273
// Copyright 2016 Twitter. 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...
zhangzhonglai/heron
heron/api/src/java/com/twitter/heron/api/spout/MultiScheme.java
Java
apache-2.0
874
/** * 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...
isavin/camel
camel-core/src/test/java/org/apache/camel/issues/DynamicRouterWithInterceptorTest.java
Java
apache-2.0
5,008
/* * 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 ...
akuznetsov-gridgain/ignite
modules/core/src/test/java/org/apache/ignite/internal/processors/cache/expiry/IgniteCacheAtomicReplicatedExpiryPolicyTest.java
Java
apache-2.0
1,172
/* * 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 ...
samaitra/jena
jena-arq/src/main/java/org/apache/jena/sparql/util/QueryExecUtils.java
Java
apache-2.0
13,808
/* * 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...
openweave/openweave-core
third_party/android/platform-libcore/android-platform-libcore/luni/src/test/java/tests/api/javax/net/ssl/SSLEngineTest.java
Java
apache-2.0
65,354
/** * 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...
rchallapalli/drill
exec/java-exec/src/main/codegen/templates/RecordValueAccessor.java
Java
apache-2.0
2,908
/* * 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; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.xpack.sql.plan.physical; import org.elas...
robin13/elasticsearch
x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/plan/physical/Unexecutable.java
Java
apache-2.0
887
/*========================================================================= * Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved. * This product is protected by U.S. and international copyright * and intellectual property laws. Pivotal products are covered by * more patents listed at http://www.pivo...
fengshao0907/incubator-geode
gemfire-core/src/main/java/com/gemstone/gemfire/cache/query/CqListener.java
Java
apache-2.0
2,069
// -*- mode: java; c-basic-offset: 2; -*- // Copyright 2009-2011 Google, All Rights reserved // Copyright 2011-2012 MIT, All rights reserved // Released under the MIT License https://raw.github.com/mit-cml/app-inventor/master/mitlicense.txt package com.google.appinventor.client.widgets.dnd; import com.google.gwt.user...
AppScale/appinventor
src/com/google/appinventor/client/widgets/dnd/DragSource.java
Java
mit
3,045
/* * WorldEdit, a Minecraft world manipulation toolkit * Copyright (C) sk89q <http://www.sk89q.com> * Copyright (C) WorldEdit team and contributors * * 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 Sof...
CameronRedmore/TF-WorldEdit
worldedit-core/src/legacy/java/com/sk89q/worldedit/masks/BlockMask.java
Java
gpl-3.0
2,065
/* * SonarQube, open source software quality management tool. * Copyright (C) 2008-2014 SonarSource * mailto:contact AT sonarsource DOT com * * SonarQube 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 Found...
jblievremont/sonarqube
sonar-plugin-api/src/main/java/org/sonar/api/charts/Chart.java
Java
lgpl-3.0
1,380
/* * 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...
vogellacompany/dagger
compiler/src/it/functional-tests/src/main/java/test/builder/TestComponentWithGenericBuilderInterface.java
Java
apache-2.0
1,800
public class IfElseWithoutCurlyBraces { boolean then(Double v1, Double v2) { if (v1 == null || v2 == null) return v1 == v2; else return Math.random() > 0.5; } boolean elze(Double v1, Double v2) { if (v1 != null && v2 != null) return Math.random() > 0.5; else return v2 == v1; } boolean isNega...
dahlstrom-g/intellij-community
plugins/InspectionGadgets/test/com/siyeh/igtest/bugs/number_equality/IfElseWithoutCurlyBraces.java
Java
apache-2.0
1,866
/* * Copyright 2013 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...
romartin/kie-wb-common
kie-wb-common-widgets/kie-wb-common-ui/src/main/java/org/kie/workbench/common/widgets/client/datamodel/AsyncPackageDataModelOracle.java
Java
apache-2.0
8,767
/* * Copyright 2000-2013 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
signed/intellij-community
java/java-psi-impl/src/com/intellij/psi/impl/java/stubs/JavaMethodElementType.java
Java
apache-2.0
9,195
// 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.tree; import com.intellij.util.ui.tree.TreeUtil; import org.junit.Assert; import org.junit.Test; import javax.swing.tree.DefaultMutableTreeNode; import j...
dahlstrom-g/intellij-community
platform/platform-tests/testSrc/com/intellij/ui/tree/TreePathUtilTest.java
Java
apache-2.0
9,611
public class Test { public int test(int x) { int y = 42; try { y = getY(x, y); } catch (ArithmeticException e) { } return y; } private int getY(int x, int y) { foo(); y = y / x; return y; } void foo() {} }
siosio/intellij-community
java/java-tests/testData/refactoring/extractMethodInplace/RuntimeCatchWithLastAssignment_after.java
Java
apache-2.0
304
/* * 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...
gingerwizard/elasticsearch
server/src/main/java/org/elasticsearch/common/settings/SecureSetting.java
Java
apache-2.0
7,322
package org.assertj.android.recyclerview.v7.api.widget; import android.support.v7.widget.RecyclerView; import org.assertj.core.api.AbstractAssert; import static android.support.v7.widget.RecyclerView.ViewHolder; import static org.assertj.core.api.Assertions.assertThat; /** Assertions for {@link RecyclerView.Adapter}...
MichaelEvans/assertj-android
assertj-android-recyclerview-v7/src/main/java/org/assertj/android/recyclerview/v7/api/widget/RecyclerViewAdapterAssert.java
Java
apache-2.0
1,867
/* * Copyright 2003-2010 Dave Griffith, Bas Leijdekkers * * 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...
siosio/intellij-community
plugins/IntentionPowerPak/src/com/siyeh/ipp/base/MutablyNamedIntention.java
Java
apache-2.0
1,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 may ...
Todd-start/RocketMQ
common/src/main/java/org/apache/rocketmq/common/constant/PermName.java
Java
apache-2.0
1,807
/* * Licensed to ElasticSearch and Shay Banon 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...
Kreolwolf1/Elastic
src/main/java/org/elasticsearch/common/io/ThrowableObjectOutputStream.java
Java
apache-2.0
2,303
/** * Licensed to Apereo under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Apereo licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in ...
Jasig/SSP-Platform
uportal-war/src/main/java/org/jasig/portal/io/xml/IDataImporter.java
Java
apache-2.0
1,456
/* * 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...
strahanjen/strahanjen.github.io
elasticsearch-master/core/src/main/java/org/elasticsearch/index/query/SpanNotQueryBuilder.java
Java
bsd-3-clause
10,516
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.jme3.gde.materialdefinition.navigator.node; import com.jme3.gde.materialdefinition.MatDefDataObject; import com.jme3.gde.materialdefinition.editor.Selectable; import com.jme3.gde.materialdefinition.f...
OpenGrabeso/jmonkeyengine
sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/navigator/node/MappingNode.java
Java
bsd-3-clause
4,440
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
ryantheleach/SpongeCommon
src/main/java/org/spongepowered/common/mixin/core/data/types/MixinBlockWallEnumType.java
Java
mit
1,967
package info.ephyra.search.searchers; import info.ephyra.querygeneration.Query; import info.ephyra.search.Result; import info.ephyra.search.Search; import info.ephyra.util.HTMLConverter; import java.util.ArrayList; /** * <p>A <code>KnowledgeMiner</code> deploys a document retrieval system to * search an...
TScottJ/OpenEphyra
src/info/ephyra/search/searchers/KnowledgeMiner.java
Java
gpl-2.0
4,969
/* * Copyright (c) 2008, 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 ...
greghaskins/openjdk-jdk7u-jdk
test/java/nio/file/Files/CopyAndMove.java
Java
gpl-2.0
40,616
/* * Copyright (c) 2005, 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 ...
isaacl/openjdk-jdk
test/javax/xml/crypto/dsig/KeySelectors.java
Java
gpl-2.0
18,103
package net.minecraft.server; import java.util.Iterator; public class WorldManager implements IWorldAccess { private MinecraftServer server; public WorldServer world; // CraftBukkit - private -> public public WorldManager(MinecraftServer minecraftserver, WorldServer worldserver) { this.server = ...
didoupimpon/1.7.2
src/main/java/net/minecraft/server/WorldManager.java
Java
gpl-3.0
2,868
/** * Copyright (C) 2011 Whisper Systems * * 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. * * This program is...
ther12k/TextSecure
src/org/thoughtcrime/securesms/mms/VideoSlide.java
Java
gpl-3.0
1,851
/* * 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...
asedunov/intellij-community
python/src/com/jetbrains/python/codeInsight/testIntegration/CreateTestDialog.java
Java
apache-2.0
4,827
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.intellij.lang.xpath.context; import com.intellij.codeInsight.intention.IntentionAction; import com.intellij.psi.PsiElement; import org.intellij.lang.xpath.psi.XPathVa...
smmribeiro/intellij-community
plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/context/SimpleVariableContext.java
Java
apache-2.0
999
/* * 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 ...
rombert/jackrabbit-oak
oak-remote/src/main/java/org/apache/jackrabbit/oak/remote/content/ContentRemoteRepository.java
Java
apache-2.0
3,096
/* * Copyright 2000-2016 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...
asedunov/intellij-community
platform/lang-impl/src/com/intellij/openapi/roots/ui/configuration/actions/ModuleDeleteProvider.java
Java
apache-2.0
6,640
/******************************************************************************* * 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/PHPProjectCreationWizard.java
Java
apache-2.0
9,410
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
ShailShah/alluxio
examples/src/main/java/alluxio/examples/keyvalue/KeyValueStoreOperations.java
Java
apache-2.0
5,268
/* * Copyright 2002-2013 Drew Noakes * * 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...
Odrahcyr/amanda-xmp
Source/com/drew/metadata/TagDescriptor.java
Java
apache-2.0
9,082
/* * Copyright (c) 2009-2012 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of ...
PlanetWaves/clockworkengine
trunk/jme3-core/src/main/java/com/jme3/scene/LightNode.java
Java
apache-2.0
4,007
/* * Copyright 2020 The Bazel Authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
dslomov/bazel
src/tools/android/java/com/google/devtools/build/android/desugar/testing/junit/DesugarRuleBuilder.java
Java
apache-2.0
15,457
/** * 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/BlockInfoContiguous.java
Java
apache-2.0
2,482
/* * 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-reactive-streams/src/main/java/org/apache/camel/component/reactive/streams/ReactiveStreamsConstants.java
Java
apache-2.0
1,740
package com.vaadin.tests.tooltip; import java.util.Iterator; import com.vaadin.event.Transferable; import com.vaadin.event.TransferableImpl; import com.vaadin.event.dd.DragAndDropEvent; import com.vaadin.event.dd.DropHandler; import com.vaadin.event.dd.DropTarget; import com.vaadin.event.dd.TargetDetails; import com....
Darsstar/framework
uitest/src/main/java/com/vaadin/tests/tooltip/DragAndDropWrapperTooltips.java
Java
apache-2.0
5,029
/* * 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 ...
tadayosi/camel
components/camel-microprofile/camel-microprofile-metrics/src/test/java/org/apache/camel/component/microprofile/metrics/MicroProfileMetricsTagTest.java
Java
apache-2.0
4,176
/* * 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.react.uimanager; import android.view.MotionEvent; /** Interface for the root native view of a React native a...
exponent/exponent
android/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootView.java
Java
bsd-3-clause
634
/////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2008, Robert D. Eden All Rights Reserved. // Copyright (c) 2009, Jeff Randall All Rights Reserved. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General P...
JianpingZeng/xcc
xcc/external/trove/gnu/trove/impl/unmodifiable/TUnmodifiableShortShortMap.java
Java
bsd-3-clause
5,346
package org.motechproject.mtraining.service.impl; import org.motechproject.mtraining.domain.Chapter; import org.motechproject.mtraining.domain.Course; import org.motechproject.mtraining.domain.CourseUnitState; import org.motechproject.mtraining.domain.Lesson; import org.motechproject.mtraining.domain.Quiz; import org....
koshalt/modules
mtraining/src/main/java/org/motechproject/mtraining/service/impl/CourseStructureServiceImpl.java
Java
bsd-3-clause
9,080