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 |
|---|---|---|---|---|---|
package com.xeiam.xchange.bitcoinde.service.polling;
import java.io.IOException;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.bitcoinde.Bitcoinde;
import com.xeiam.xchange.bitcoinde.dto.marketdata.BitcoindeOrderBook;
import com.xeiam.xchange.bitcoinde.dto.marketdata.BitcoindeRate;
import com.xeiam.xcha... | codeck/XChange | xchange-bitcoinde/src/main/java/com/xeiam/xchange/bitcoinde/service/polling/BitcoindeMarketDataServiceRaw.java | Java | mit | 1,210 |
/*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | RallySoftware/eclipselink.runtime | foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/workbenchintegration/TypeConversionConverterDataClassIsArrayTest.java | Java | epl-1.0 | 3,113 |
/*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | RallySoftware/eclipselink.runtime | utils/eclipselink.utils.workbench.test/mappingsplugin/source/org/eclipse/persistence/tools/workbench/test/models/readonly/Address.java | Java | epl-1.0 | 5,857 |
/*******************************************************************************
* Copyright (c) 2011, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | RallySoftware/eclipselink.runtime | moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/externalizedmetadata/mappings/collectionreference/CollectionReferenceMappingTestCases.java | Java | epl-1.0 | 4,613 |
/**
* Internal support classes for the JUnit Jupiter test engine.
*/
package org.junit.jupiter.engine.support;
| sbrannen/junit-lambda | junit-jupiter-engine/src/main/java/org/junit/jupiter/engine/support/package-info.java | Java | epl-1.0 | 114 |
package fitnesse.slim.converters;
public class PrimitiveIntConverter extends IntConverter {
public static final Integer DEFAULT_VALUE = Integer.valueOf(0);
@Override
public Integer fromString(String arg) {
Integer i = super.fromString(arg);
return i != null ? i : DEFAULT_VALUE;
}
}
| amolenaar/fitnesse | src/fitnesse/slim/converters/PrimitiveIntConverter.java | Java | epl-1.0 | 301 |
/*
* Copyright (c) 2011, 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 ... | smarr/graal | graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/lang/Math_abs.java | Java | gpl-2.0 | 2,225 |
/**
* Copyright (c) 2009--2014 Red Hat, Inc.
*
* This software is licensed to you under the GNU General Public License,
* version 2 (GPLv2). There is NO WARRANTY for this software, express or
* implied, including the implied warranties of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. You should have rece... | mcalmer/spacewalk | java/code/src/com/redhat/rhn/frontend/action/configuration/channel/ChannelFilesListSubmit.java | Java | gpl-2.0 | 6,871 |
/*
* Copyright (c) 2012, 2017, 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 ... | YouDiSN/OpenJDK-Research | jdk9/jdk/src/java.base/share/classes/java/lang/invoke/MethodHandleInfo.java | Java | gpl-2.0 | 14,591 |
/*
* Copyright (c) 2009, 2019, 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 ... | md-5/jdk10 | test/hotspot/jtreg/runtime/InvocationTests/invokevirtual/ClassGenerator.java | Java | gpl-2.0 | 1,858 |
/* Copyright (C) 2003-2015 JabRef contributors.
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 version.
This progr... | iksmada/DC-UFSCar-ES2-201601-GrupoDilema | src/main/java/net/sf/jabref/model/database/EntrySorter.java | Java | gpl-2.0 | 4,050 |
package amidst.map;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
public class ByteArrayHub {
private File path;
private long key;
pr... | jacobsjo/AMIDST-2-48-nogui | src/amidst/map/ByteArrayHub.java | Java | gpl-3.0 | 2,205 |
/*************************************************************************
* Copyright 2009-2012 Eucalyptus Systems, Inc.
*
* 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; version 3 of the ... | eethomas/eucalyptus | clc/modules/reporting/src/main/java/com/eucalyptus/reporting/modules/address/AddressUsageEventListener.java | Java | gpl-3.0 | 4,048 |
//#############################################################################
//# #
//# Copyright (C) <2014> <IMS MAXIMS> #
//# #
... | open-health-hub/openMAXIMS | openmaxims_workspace/ValueObjects/src/ims/core/clinical/vo/CommunityServicesRefVoCollection.java | Java | agpl-3.0 | 5,370 |
//#############################################################################
//# #
//# Copyright (C) <2014> <IMS MAXIMS> #
//# #
... | open-health-hub/openMAXIMS | openmaxims_workspace/DomainObjects/src/ims/clinical/domain/objects/MDTNotes.java | Java | agpl-3.0 | 13,633 |
//#############################################################################
//# #
//# Copyright (C) <2014> <IMS MAXIMS> #
//# #
... | open-health-hub/openMAXIMS | openmaxims_workspace/ValueObjects/src/ims/clinicaladmin/vo/beans/ProcedureHotlistShortVoBean.java | Java | agpl-3.0 | 4,033 |
//#############################################################################
//# #
//# Copyright (C) <2014> <IMS MAXIMS> #
//# #
... | open-health-hub/openMAXIMS | openmaxims_workspace/ValueObjects/src/ims/clinical/vo/lookups/ReferralCategoryCollection.java | Java | agpl-3.0 | 4,379 |
//#############################################################################
//# #
//# Copyright (C) <2014> <IMS MAXIMS> #
//# #
... | open-health-hub/openMAXIMS | openmaxims_workspace/Assessment/src/ims/assessment/forms/searchandselectassessmentdialog/GlobalContext.java | Java | agpl-3.0 | 2,971 |
//#############################################################################
//# #
//# Copyright (C) <2014> <IMS MAXIMS> #
//# #
... | open-health-hub/openMAXIMS | openmaxims_workspace/Clinical/src/ims/clinical/forms/patientproblems/GlobalContext.java | Java | agpl-3.0 | 12,958 |
// This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5007.25751)
// Copyright (C) 1995-2014 IMS MAXIMS. All rights reserved.
// WARNING: DO NOT MODIFY the content of this file
package ims.RefMan.vo;
/**
* Linked to core.configuration.ContractConfig business object (ID: ... | open-health-hub/openMAXIMS | openmaxims_workspace/ValueObjects/src/ims/RefMan/vo/ContractConfigShortVo.java | Java | agpl-3.0 | 8,293 |
//#############################################################################
//# #
//# Copyright (C) <2014> <IMS MAXIMS> #
//# #
... | open-health-hub/openMAXIMS | openmaxims_workspace/ValueObjects/src/ims/spinalinjuries/vo/lookups/RemedialIndependence.java | Java | agpl-3.0 | 4,901 |
/*
* GitReviewPanel.java
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public Licen... | brsimioni/rstudio | src/gwt/src/org/rstudio/studio/client/workbench/views/vcs/git/dialog/GitReviewPanel.java | Java | agpl-3.0 | 19,771 |
package org.exist.client.xacml;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.exist.client.ClientFrame;
import org.exist.security.Account;
import org.exist.security.xacml.XACMLConstants;
import org.exist.xmldb.UserManagementService;
import org.xmldb.api.base.... | shabanovd/exist | src/org/exist/client/xacml/UserAttributeHandler.java | Java | lgpl-2.1 | 3,515 |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | bstansberry/wildfly-core | patching/src/main/java/org/jboss/as/patching/runner/AbstractPatchingTask.java | Java | lgpl-2.1 | 6,615 |
package com.google.api.ads.dfp.jaxws.v201408;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ProductTemplateError.Reason.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleTyp... | stoksey69/googleads-java-lib | modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201408/ProductTemplateErrorReason.java | Java | apache-2.0 | 13,976 |
/**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.fudgemsg;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;... | jeorme/OG-Platform | projects/OG-Financial/src/main/java/com/opengamma/financial/fudgemsg/FuturePriceCurveDataFudgeBuilder.java | Java | apache-2.0 | 3,660 |
package hex.schemas;
import hex.svd.SVDModel;
import water.api.*;
import water.api.schemas3.KeyV3;
import water.api.schemas3.ModelOutputSchemaV3;
import water.api.schemas3.ModelSchemaV3;
public class SVDModelV99 extends ModelSchemaV3<SVDModel, SVDModelV99, SVDModel.SVDParameters, SVDV99.SVDParametersV99, SVDModel.SVD... | mathemage/h2o-3 | h2o-algos/src/main/java/hex/schemas/SVDModelV99.java | Java | apache-2.0 | 1,296 |
/**
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in co... | pspaude/uPortal | uportal-war/src/test/java/org/jasig/portal/events/aggr/concuser/JpaConcurrentUserAggregationDaoTest.java | Java | apache-2.0 | 4,110 |
package org.apereo.cas.web.flow;
import org.apereo.cas.authentication.Credential;
import org.apereo.cas.authentication.adaptive.AdaptiveAuthenticationPolicy;
import org.apereo.cas.web.flow.resolver.CasDelegatingWebflowEventResolver;
import org.apereo.cas.web.flow.resolver.CasWebflowEventResolver;
import org.apereo.cas... | creamer/cas | core/cas-server-core-webflow/src/main/java/org/apereo/cas/web/flow/AbstractNonInteractiveCredentialsAction.java | Java | apache-2.0 | 2,243 |
package org.junit.tests.validation;
import static org.junit.Assert.assertEquals;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.JUnitCore;
import org.junit.runner.Request;
import org.junit.runner.Result;
public class ValidationTest {
public static class WrongBeforeClass {
@BeforeClass... | Cantara/log4jna | thirdparty/junit/org/junit/tests/validation/ValidationTest.java | Java | apache-2.0 | 928 |
/*
* 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.watcher.history;
import com.carrot... | GlenRSmith/elasticsearch | x-pack/plugin/watcher/src/internalClusterTest/java/org/elasticsearch/xpack/watcher/history/HistoryTemplateTimeMappingsTests.java | Java | apache-2.0 | 4,187 |
package uk.ac.edukapp.model;
import java.util.List;
import javax.persistence.*;
import uk.ac.edukapp.model.Userrole;
import org.codehaus.jackson.annotate.JsonIgnore;
/**
* The persistent class for the useraccount database table.
*
*/
@Entity
@Table(name = "useraccount")
public class Useraccount {
private stat... | palaniyappanBala/edukapp | src/main/java/uk/ac/edukapp/model/Useraccount.java | Java | apache-2.0 | 3,080 |
package org.apache.lucene.facet.util;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.lucene.facet.search.CategoryListIterator;
import org.apache.lucene.index.AtomicReaderContext;
import org.apache.lucene.util.IntsRef;
/*
* Licensed to the Apache Software Foundation ... | pkarmstr/NYBC | solr-4.2.1/lucene/facet/src/java/org/apache/lucene/facet/util/MultiCategoryListIterator.java | Java | apache-2.0 | 2,292 |
/**
* Copyright 2012-2013 Zuse Institute Berlin
*
* 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... | scalaris-team/scalaris | contrib/wikipedia/src/de/zib/scalaris/examples/wikipedia/ScalarisDataHandlerNormalised.java | Java | apache-2.0 | 21,697 |
/**
* Copyright (C) 2011-2020 Red Hat, Inc. (https://github.com/Commonjava/indy)
*
* 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
... | Commonjava/indy | ftests/core/src/main/java/org/commonjava/indy/ftest/core/store/AddRemoteRepoThenModifyAndVerifyTest.java | Java | apache-2.0 | 1,958 |
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.model.option.definition.twoasset;
import org.apache.commons.lang.ObjectUtils;
import org.apache.commons.lang.Validate;
import org.threeten.... | DevStreet/FinanceAnalytics | projects/OG-Analytics/src/main/java/com/opengamma/analytics/financial/model/option/definition/twoasset/StandardTwoAssetOptionDataBundle.java | Java | apache-2.0 | 12,840 |
/**
* Copyright (C) 2009-2015 Dell, Inc.
* See annotations for authorship information
*
* ====================================================================
* 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 co... | greese/dasein-cloud-core | src/main/java/org/dasein/cloud/compute/SpotVirtualMachineRequestStatus.java | Java | apache-2.0 | 919 |
/*
* 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")... | maheshika/wso2-synapse | modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyServiceMessageReceiver.java | Java | apache-2.0 | 10,574 |
/* 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... | subhrajyotim/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/ExecutionQueryImpl.java | Java | apache-2.0 | 8,450 |
/*
* Copyright 2016-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | sdnwiselab/onos | core/api/src/main/java/org/onosproject/ui/model/topo/package-info.java | Java | apache-2.0 | 1,177 |
// "Move 'return' closer to computation of the value of 'n'" "true"
class T {
int f(int a[]) {
int n = 0;
for (int i=0; i<a.length; i++) {
if (n < a[i]) n = a[i];
if (n > 100) {
// at the end 1
return /* return 1 */ n /* return 2 */;
... | goodwinnk/intellij-community | java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/returnSeparatedFromComputation/afterForBreakComment.java | Java | apache-2.0 | 545 |
/*
* Copyright 2013-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... | prasenjit-net/spring-boot | spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ShellProperties.java | Java | apache-2.0 | 12,174 |
/*
* 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... | speedplane/elasticsearch | src/main/java/org/elasticsearch/action/admin/indices/stats/IndicesStatsRequestBuilder.java | Java | apache-2.0 | 3,822 |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2021 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | thc202/zap-extensions | addOns/commonlib/src/main/java/org/zaproxy/addon/commonlib/http/HttpDateUtils.java | Java | apache-2.0 | 3,749 |
/**
* Copyright (C) 2011-2020 Red Hat, Inc. (https://github.com/Commonjava/indy)
*
* 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
... | Commonjava/indy | bindings/jaxrs/src/main/java/org/commonjava/indy/core/bind/jaxrs/admin/ReplicationHandler.java | Java | apache-2.0 | 4,040 |
package org.xnio;
import java.io.IOException;
import java.net.SocketAddress;
import org.xnio.channels.BoundChannel;
import org.xnio.channels.StreamChannel;
import org.xnio.channels.StreamSinkChannel;
import org.xnio.channels.StreamSourceChannel;
/**
* An XNIO I/O factory which can be used to create channels.
*
* @... | xnio/xnio | api/src/main/java/org/xnio/XnioIoFactory.java | Java | apache-2.0 | 7,032 |
/*
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... | lummyare/lummyare-test | java/client/src/org/openqa/selenium/internal/seleniumemulation/IsTextPresent.java | Java | apache-2.0 | 1,263 |
/**
* Copyright (C) 2011-2020 Red Hat, Inc. (https://github.com/Commonjava/indy)
*
* 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
... | pkocandr/indy | subsys/infinispan/src/main/java/org/commonjava/indy/subsys/infinispan/CacheKeyMatcher.java | Java | apache-2.0 | 994 |
/*
* 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... | goodwinnk/intellij-community | xml/dom-openapi/src/com/intellij/patterns/DomPatterns.java | Java | apache-2.0 | 3,991 |
/*
* 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 ... | masaki-yamakawa/geode | geode-core/src/main/java/org/apache/geode/internal/cache/ServerBuilder.java | Java | apache-2.0 | 6,489 |
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.policies;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore... | thiliniish/developer-studio | esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/policies/MediatorFlowMediatorFlowCompartment17CanonicalEditPolicy.java | Java | apache-2.0 | 14,792 |
package org.apereo.cas.memcached;
import org.apereo.cas.configuration.model.support.memcached.BaseMemcachedProperties;
import org.apereo.cas.memcached.kryo.CasKryoPool;
import org.apereo.cas.memcached.kryo.CasKryoTranscoder;
import lombok.experimental.UtilityClass;
import lombok.extern.slf4j.Slf4j;
import lombok.val;... | robertoschwald/cas | support/cas-server-support-memcached-core/src/main/java/org/apereo/cas/memcached/MemcachedUtils.java | Java | apache-2.0 | 3,085 |
package org.apache.mesos.logstash.state;
import org.apache.mesos.Protos;
import org.apache.mesos.logstash.util.ProtoTestUtil;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import java.security.InvalidParameterException;
import static org.mockito.Matchers.any;
im... | frankscholten/logstash | logstash-scheduler/src/test/main/java/org/apache/mesos/logstash/state/LSTaskStatusTest.java | Java | apache-2.0 | 2,554 |
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.google.bigquery;
import java.net.URISyntaxException;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.apache.camel.spi.EndpointUriFac... | nikhilvibhav/camel | components/camel-google/camel-google-bigquery/src/generated/java/org/apache/camel/component/google/bigquery/GoogleBigQueryEndpointUriFactory.java | Java | apache-2.0 | 2,102 |
package org.jpacman.framework.model;
/**
* Get informed about the number of points
* earned and the points still available.
*
* @author Arie van Deursen, TU Delft, Jan 21, 2012
*/
public interface IPointInspector {
/**
* @return The amount of food eaten so far.
*/
int getFoodEaten();
/**
... | 09zwcbupt/jpacman-framework | src/main/java/org/jpacman/framework/model/IPointInspector.java | Java | apache-2.0 | 489 |
/*
* 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")... | phrinx/incubator-openaz | openaz-xacml/src/main/java/org/apache/openaz/xacml/std/datatypes/DataTypeXPathExpression.java | Java | apache-2.0 | 2,577 |
/*
* Copyright 2012-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... | 10045125/spring-boot | spring-boot-tools/spring-boot-dependency-tools/src/main/java/org/springframework/boot/dependency/tools/PropertiesFileDependencies.java | Java | apache-2.0 | 2,414 |
package org.apache.hadoop.hdfs;
import junit.framework.TestCase;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.io.RandomAccessFile;
import java.lang.reflect.Method;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.util.*;
import java.util.concu... | shakamunyi/hadoop-20 | src/test/org/apache/hadoop/hdfs/TestFileAppend4.java | Java | apache-2.0 | 46,717 |
/*
* 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 ... | qfdk/nifi | nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/Notify.java | Java | apache-2.0 | 13,987 |
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | googleapis/google-api-java-client-services | clients/google-api-services-driveactivity/v2/1.31.0/com/google/api/services/driveactivity/v2/model/PermissionChange.java | Java | apache-2.0 | 3,458 |
/*
* Copyright (c) Facebook, Inc. and 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 applic... | facebook/buck | src/com/facebook/buck/cxx/FrameworkPathArg.java | Java | apache-2.0 | 1,574 |
/*
* 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... | smgoller/geode | geode-gfsh/src/integrationTest/java/org/apache/geode/management/internal/cli/shell/GfshInitFileIntegrationTest.java | Java | apache-2.0 | 12,110 |
/*
* Copyright 2017 The gRPC Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | dapengzhang0/grpc-java | core/src/main/java/io/grpc/internal/GzipInflatingBuffer.java | Java | apache-2.0 | 15,975 |
/*
* Copyright 2011 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... | wabson/spring-social-google | spring-social-google/src/test/java/org/springframework/social/google/connect/GoogleAdapterTest.java | Java | apache-2.0 | 2,103 |
/*
* Copyright 2000-2016 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Darsstar/framework | shared/src/main/java/com/vaadin/shared/ui/MarginInfo.java | Java | apache-2.0 | 6,302 |
/*
* 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... | android-ia/platform_tools_idea | platform/vcs-impl/src/com/intellij/openapi/vcs/changes/VcsGuess.java | Java | apache-2.0 | 3,152 |
package org.motechproject.openmrs.resource;
import org.motechproject.openmrs.domain.Provider;
import org.motechproject.openmrs.config.Config;
/**
* Interface for providers management.
*/
public interface ProviderResource {
/**
* Creates the given provider on the OpenMRS server. The given {@code config} wi... | ScottKimball/modules | openmrs/src/main/java/org/motechproject/openmrs/resource/ProviderResource.java | Java | bsd-3-clause | 1,317 |
/**
* Copyright (c) 2013, Groupon, Inc.
* 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 conditi... | groupon/Selenium-Grid-Extras | SeleniumGridExtras/src/main/java/com/groupon/seleniumgridextras/downloader/Downloader.java | Java | bsd-3-clause | 3,655 |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
... | BurtBiel/autorest | AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodyboolean/AutoRestBoolTestService.java | Java | mit | 1,562 |
/**
* Copyright (C) 2012-2015 52°North Initiative for Geospatial Open Source
* Software GmbH
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*
* If the program is linked with... | nuest/SOS | core/api/src/main/java/org/n52/sos/ogc/ows/DCP.java | Java | gpl-2.0 | 3,204 |
package sun.util.resources;
import java.util.ListResourceBundle;
public final class CurrencyNames_ko_KR extends LocaleNamesBundle {
protected final Object[][] getContents() {
return new Object[][] {
{ "KRW", "\uFFE6" },
};
}
}
| Distrotech/icedtea7-2.3 | generated/sun/util/resources/CurrencyNames_ko_KR.java | Java | gpl-2.0 | 265 |
/*
* Copyright (C) 2014 The Android Open Source Project
* Copyright (c) 1996, 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 Publi... | AdmireTheDistance/android_libcore | ojluni/src/main/java/java/sql/Connection.java | Java | gpl-2.0 | 64,463 |
/*
* This project is licensed under the open source MPL V2.
* See https://github.com/openMF/android-client/blob/master/LICENSE.md
*/
package com.mifos.objects;
import java.util.HashMap;
import java.util.Map;
public class Currency {
private String code;
private String name;
private Integer decimalPla... | mdzyuba/android-client | mifosng-android/src/main/java/com/mifos/objects/Currency.java | Java | mpl-2.0 | 2,456 |
/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco 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, or
... | nguyentienlong/community-edition | projects/repository/source/java/org/alfresco/service/cmr/thumbnail/ThumbnailParentAssociationDetails.java | Java | lgpl-3.0 | 2,714 |
/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco 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, or
* (at y... | nguyentienlong/community-edition | projects/repository/source/java/org/alfresco/repo/search/impl/lucene/LuceneAlfrescoXPathQueryLanguage.java | Java | lgpl-3.0 | 3,267 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2014, 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... | rcernich/jboss-eap-quickstarts | inter-app/shared/src/main/java/org/jboss/as/quickstarts/interapp/shared/Bar.java | Java | apache-2.0 | 1,106 |
/**
* Copyright 2014 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 t... | ReactiveX/RxJavaJoins | src/main/java/rx/joins/Pattern7.java | Java | apache-2.0 | 3,064 |
/*
* Copyright 2002-2016 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... | SanjayUser/SpringSecurityPro | web/src/main/java/org/springframework/security/web/util/RedirectUrlBuilder.java | Java | apache-2.0 | 2,428 |
/*
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package javax.swing.plaf.nimbus;
import java.awt.Color;
/**
* ShadowEffect - base class with all the ... | shun634501730/java_source_cn | src_en/javax/swing/plaf/nimbus/ShadowEffect.java | Java | apache-2.0 | 1,916 |
/*
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 use this f... | dlaboss/incubator-quarks | connectors/file/src/main/java/org/apache/edgent/connectors/file/runtime/AbstractWriterFile.java | Java | apache-2.0 | 1,856 |
package ca.uhn.fhir.rest.server.audit;
/*
* #%L
* HAPI FHIR Structures - DSTU1 (FHIR v0.80)
* %%
* Copyright (C) 2014 - 2015 University Health Network
* %%
* 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 cop... | dhf0820/hapi-fhir-1.2 | hapi-fhir-structures-dstu/src/main/java/ca/uhn/fhir/rest/server/audit/DiagnosticReportAuditor.java | Java | apache-2.0 | 2,465 |
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.master.portfolio;
import com.opengamma.DataNotFoundException;
import com.opengamma.id.UniqueId;
import com.opengamma.master.AbstractChangeProvidingMaster;
impo... | McLeodMoores/starling | projects/master/src/main/java/com/opengamma/master/portfolio/PortfolioMaster.java | Java | apache-2.0 | 2,007 |
/**
*
* 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"); ... | throughsky/lywebank | hbase-server/src/main/java/org/apache/hadoop/hbase/util/HMerge.java | Java | apache-2.0 | 12,034 |
/*
* This file is part of the Heritrix web crawler (crawler.archive.org).
*
* Licensed to the Internet Archive (IA) by one or more individual
* contributors.
*
* The IA licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
*... | nlevitt/webarchive-commons | src/main/java/org/archive/util/ProgressStatisticsReporter.java | Java | apache-2.0 | 1,251 |
/*
* Copyright 2000-2017 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 | java/openapi/src/com/intellij/openapi/projectRoots/JavaSdkVersionUtil.java | Java | apache-2.0 | 1,619 |
/*
* 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... | SaintBacchus/parquet-mr | parquet-thrift/src/test/java/org/apache/parquet/thrift/TestParquetReadProtocol.java | Java | apache-2.0 | 6,284 |
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.model.option.pricing.analytic;
import org.testng.annotations.Test;
import com.opengamma.util.test.TestGroup;
/**
* Test.
*/
@Test(group... | McLeodMoores/starling | projects/analytics/src/test/java/com/opengamma/analytics/financial/model/option/pricing/analytic/JuZhongModelTest.java | Java | apache-2.0 | 497 |
/*
* 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 ... | shirshanka/gobblin | gobblin-data-management/src/main/java/org/apache/gobblin/data/management/source/LoopingDatasetFinderSource.java | Java | apache-2.0 | 13,222 |
/*
* Copyright 2015 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under t... | Salaboy/jbpm | jbpm-test-coverage/src/test/java/org/jbpm/test/functional/timer/GlobalQuartzRAMTimerServiceTest.java | Java | apache-2.0 | 3,053 |
/*
* 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/indices/recovery/RecoveryStatus.java | Java | apache-2.0 | 2,893 |
/*
* 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... | jexp/idea2 | platform/lang-impl/src/com/intellij/psi/impl/cache/impl/todo/TodoIndexEntry.java | Java | apache-2.0 | 1,429 |
/*
* 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 ... | plutext/sling | bundles/api/src/main/java/org/apache/sling/api/resource/query/Query.java | Java | apache-2.0 | 4,668 |
/*
* 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... | xuzha/elasticsearch | core/src/test/java/org/elasticsearch/indices/store/IndicesStoreIntegrationIT.java | Java | apache-2.0 | 28,113 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2013, 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... | jboss-fuse/quickstarts | switchyard/jca-inflow-hornetq/src/main/java/org/switchyard/quickstarts/jca/inflow/GreetingGateway.java | Java | apache-2.0 | 1,785 |
/*
* 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... | robin13/elasticsearch | server/src/main/java/org/elasticsearch/monitor/process/ProcessService.java | Java | apache-2.0 | 2,234 |
/*
* Copyright 2019 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... | droolsjbpm/drools | kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/MisleadingRule.java | Java | apache-2.0 | 1,631 |
/*
Copyright 2007-2009 WebDriver committers
Copyright 2007-2009 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 appli... | hugs/selenium | support/src/java/org/openqa/selenium/lift/find/PageTitleFinder.java | Java | apache-2.0 | 1,439 |
/*
* Copyright 2014 JBoss, by 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 ... | wmedvede/uberfire-extensions | uberfire-metadata/uberfire-metadata-backends/uberfire-metadata-backend-lucene/src/main/java/org/uberfire/ext/metadata/backend/lucene/index/LuceneIndexFactory.java | Java | apache-2.0 | 1,003 |
/****************************************************************
* 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... | aduprat/james-jsieve | core/src/main/java/org/apache/jsieve/parser/address/AddressNode.java | Java | apache-2.0 | 1,394 |
/*
* 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 ... | smgoller/geode | geode-cq/src/distributedTest/java/org/apache/geode/cache/query/cq/dunit/CqDataOptimizedExecuteDUnitTest.java | Java | apache-2.0 | 2,114 |