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 org.pg5100.ejb.multithreading.jse;
import org.pg5100.ejb.multithreading.Counter;
public class Example01 implements Counter{
private int x;
@Override
public void incrementCounter() {
x = x + 1;
}
@Override
public int getCounter() {
return x;
}
}
| banesp/pg5100_autumn_2016 | ejb/multithreading/src/main/java/org/pg5100/ejb/multithreading/jse/Example01.java | Java | lgpl-3.0 | 302 |
/*************************************************************************
*
* ADOBE CONFIDENTIAL
* __________________
*
* Copyright 2002 - 2007 Adobe Systems Incorporated
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Adobe Systems Incorporate... | SOASTA/BlazeDS | modules/core/src/java/flex/management/jmx/MBeanAttributeInfo.java | Java | lgpl-3.0 | 3,309 |
/*
* SonarQube CSS Plugin
* Copyright (C) 2013-2016 Tamas Kende and David RACODON
* mailto: kende.tamas@gmail.com and david.racodon@gmail.com
*
* 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 ... | SonarQubeCommunity/sonar-css | sonar-css-plugin/src/main/java/org/sonar/plugins/css/CssRulesDefinition.java | Java | lgpl-3.0 | 1,495 |
/**
* Copyright (C) 2013 Inera AB (http://www.inera.se)
*
* This file is part of Inera Axel (http://code.google.com/p/inera-axel).
*
* Inera Axel 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, e... | sklaxel/inera-axel | shs/shs-camel/src/main/java/se/inera/axel/shs/camel/ShsMessageToDataParListProcessor.java | Java | lgpl-3.0 | 1,894 |
/* ===========================================================
* AFreeChart : a free chart library for Android(tm) platform.
* (based on JFreeChart and JCommon)
* ===========================================================
*
* (C) Copyright 2010, by ICOMSYSTECH Co.,Ltd.
* (C) Copyright 2000-2008, by ... | djun100/afreechart | src/org/afree/data/Values2D.java | Java | lgpl-3.0 | 2,818 |
package cz.cas.mbu.genexpi.standalone;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.List;
public class TasksReadResult<T> {
private final List<T> inferenceTasks;
/**
* keeps track of which tasks corresponds to lines in original file (useful when some tasks cannot be executed and are ... | martincerny/genexpi | genexpi-standalone/src/main/java/cz/cas/mbu/genexpi/standalone/TasksReadResult.java | Java | lgpl-3.0 | 1,243 |
package net.minecraft.src;
public class Direction
{
public static final int[] offsetX = new int[] {0, -1, 0, 1};
public static final int[] offsetZ = new int[] {1, 0, -1, 0};
public static final String[] directions = new String[] {"SOUTH", "WEST", "NORTH", "EAST"};
/** Maps a Direction value (2D) to a ... | Neil5043/Minetweak | src/main/java/net/minecraft/src/Direction.java | Java | lgpl-3.0 | 1,270 |
/**
* This file is part of Berlin Text System.
*
* The software Berlin Text System serves as a client user interface for working with
* text corpus data. See: aaew.bbaw.de
*
* The software Berlin Text System was developed at the Berlin-Brandenburg Academy
* of Sciences and Humanities, Jägerstr. 22/23, D... | JKatzwinkel/bts | org.bbaw.bts.model.corpus/src/org/bbaw/bts/corpus/btsCorpusModel/impl/BTSMarkerImpl.java | Java | lgpl-3.0 | 29,127 |
package org.hy.commons.web.example.request.dispatcher;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServ... | hy2708/hy2708-repository | java/commons/commons-web-example/src/main/java/org/hy/commons/web/example/request/dispatcher/RequestDispatcherServlet_Include.java | Java | lgpl-3.0 | 4,078 |
/*
* Copyright (c) 2008-2020, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | mdogan/hazelcast | hazelcast/src/main/java/com/hazelcast/query/package-info.java | Java | apache-2.0 | 744 |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... | medicayun/medicayundicom | dcm4jboss-all/tags/DCM4CHEE_2_14_1/dcm4jboss-ejb/src/java/org/dcm4chex/archive/ejb/entity/SeriesBean.java | Java | apache-2.0 | 37,785 |
/*
* Copyright 2017 By_syk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | by-syk/NanoIconPack | nanoiconpack/src/main/java/com/by_syk/lib/nanoiconpack/bean/AppBean.java | Java | apache-2.0 | 4,075 |
// Copyright (C) 2009 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 ... | sudosurootdev/gerrit | gerrit-gwtui/src/main/java/com/google/gerrit/client/auth/openid/OpenIdSsoPanel.java | Java | apache-2.0 | 2,587 |
/*
* 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 ... | MichaelTong/cassandra-rapid | src/java/org/apache/cassandra/cql3/statements/PermissionsManagementStatement.java | Java | apache-2.0 | 3,322 |
/*
* #%L
* Eureka Services
* %%
* Copyright (C) 2012 - 2013 Emory University
* %%
* This program is dual licensed under the Apache 2 and GPLv3 licenses.
*
* Apache License, Version 2.0:
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with... | candyam5522/eureka | eureka-services/src/main/java/edu/emory/cci/aiw/cvrg/eureka/services/util/SuperUserDefaultPasswordGenerator.java | Java | apache-2.0 | 1,874 |
/*
* Copyright (C) 2015 Square, 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 agre... | madtrax/keywhiz | server/src/test/java/keywhiz/service/resources/admin/SessionLoginResourceIntegrationTest.java | Java | apache-2.0 | 3,980 |
package com.capitalone.dashboard.collector;
import com.capitalone.dashboard.model.SonarProject;
import com.capitalone.dashboard.util.Supplier;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.json.simple.JSONObject;
import org.json.simple.parser.ParseException;
import org... | tabladrum/Hygieia | collectors/build/sonar/src/main/java/com/capitalone/dashboard/collector/DefaultSonar56Client.java | Java | apache-2.0 | 1,805 |
package org.hl7.fhir.instance.model.api;
/*
* #%L
* HAPI FHIR - Core Library
* %%
* Copyright (C) 2014 - 2017 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 copy of the Licens... | botunge/hapi-fhir | hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IDomainResource.java | Java | apache-2.0 | 919 |
/*
* 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... | retomerz/intellij-community | platform/core-impl/src/com/intellij/psi/impl/DocumentCommitThread.java | Java | apache-2.0 | 36,735 |
/*
* 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... | airlift/aircompressor | src/test/java/io/airlift/compress/thirdparty/ZstdJniCompressor.java | Java | apache-2.0 | 1,436 |
/**
* Copyright 2011-2019 Asakusa Framework Team.
*
* 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... | akirakw/asakusafw | iterative-project/asakusa-iterative-common/src/test/java/com/asakusafw/iterative/common/basic/CursorUtilTest.java | Java | apache-2.0 | 2,495 |
/*
* 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 ... | sekikn/ambari | ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/PrepareEnableKerberosServerAction.java | Java | apache-2.0 | 6,856 |
package org.carlspring.strongbox.forms.cron;
import org.carlspring.strongbox.validation.cron.CronTaskConfigurationFormValid;
import java.util.Collections;
import java.util.List;
import org.apache.commons.lang3.ObjectUtils;
/**
* @author Przemyslaw Fusik
*/
@CronTaskConfigurationFormValid(message = "Invalid cron ... | strongbox/strongbox | strongbox-web-forms/src/main/java/org/carlspring/strongbox/forms/cron/CronTaskConfigurationForm.java | Java | apache-2.0 | 1,644 |
package com.twitter.finagle.http;
/**
* Java friendly versions of {@link com.twitter.finagle.http.Status}.
*
* @deprecated as of 2017-02-13. Please use the {@link com.twitter.finagle.http.Status}
* instances directly.
*/
@Deprecated
public final class Statuses {
private Statuses() { }
public static final Sta... | koshelev/finagle | finagle-base-http/src/main/java/com/twitter/finagle/http/Statuses.java | Java | apache-2.0 | 4,831 |
/*
* Copyright 2013, The Sporting Exchange 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 applicabl... | betfair/cougar | cougar-test/cougar-normal-code-tests/src/test/java/com/betfair/cougar/tests/updatedcomponenttests/standardtesting/rpc/RPCPostRequestTypesDateTimeSetNoOffsetTest.java | Java | apache-2.0 | 4,860 |
/*
* 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... | danielmitterdorfer/elasticsearch | plugins/ingest-useragent/src/main/java/org/elasticsearch/ingest/useragent/IngestUserAgentPlugin.java | Java | apache-2.0 | 3,780 |
/*
* Copyright (c) 2016 Network New Technologies 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... | networknt/undertow-server | traceability/src/test/java/com/networknt/traceability/TraceabilityHandlerTest.java | Java | apache-2.0 | 8,100 |
/*
* IzPack - Copyright 2001-2012 Julien Ponge, All Rights Reserved.
*
* http://izpack.org/
* http://izpack.codehaus.org/
*
* Copyright 2012 Tim Anderson
*
* 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... | mtjandra/izpack | izpack-panel/src/main/java/com/izforge/izpack/panels/userinput/gui/text/GUITextField.java | Java | apache-2.0 | 5,028 |
// Copyright (C) 2009 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 ... | NextGenIntelligence/gerrit | gerrit-server/src/main/java/com/google/gerrit/server/auth/ldap/LdapRealm.java | Java | apache-2.0 | 12,171 |
/**
* (C) Copyright IBM Corp. 2010, 2015
*
* 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 a... | Myasuka/systemml | system-ml/src/main/java/com/ibm/bi/dml/runtime/instructions/cp/StringInitCPInstruction.java | Java | apache-2.0 | 3,606 |
package com.gadgetmonks.carntoonage;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.net.Uri;
import android.os.AsyncTask;
import android.support.v4.app.NotificationCompat;
import android.util.Log;
import com.comm... | patrickcurl/carntoonage | app/src/main/java/com/gadgetmonks/carntoonage/ComicNotifier.java | Java | apache-2.0 | 5,415 |
/*
* Copyright 2001-2004 The Apache Software 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... | apache/axis1-java | samples/encoding-sample/src/test/java/test/functional/TestElementSample.java | Java | apache-2.0 | 1,401 |
// Copyright (C) 2017 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 ... | WANdisco/gerrit | java/com/google/gerrit/elasticsearch/ElasticConfiguration.java | Java | apache-2.0 | 4,215 |
/**
* Copyright (C) 2014 android10.org. All rights reserved.
* @author Fernando Cejas (the android10 coder)
*/
package com.fernandocejas.android10.sample.data.repository.datasource;
import android.content.Context;
import com.fernandocejas.android10.sample.data.cache.UserCache;
import com.fernandocejas.android10.sam... | bboyfeiyu/Android-CleanArchitecture | data/src/main/java/com/fernandocejas/android10/sample/data/repository/datasource/UserDataStoreFactory.java | Java | apache-2.0 | 1,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"); ... | adufilie/flex-falcon | compiler/src/org/apache/flex/swf/types/BevelFilter.java | Java | apache-2.0 | 4,533 |
/*
* Copyright 2019 StreamSets 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... | kunickiaj/datacollector | orchestrator-lib/src/main/java/com/streamsets/pipeline/lib/startJob/InstanceNameSuffix.java | Java | apache-2.0 | 1,148 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.json;
import java.nio.*;
import java.nio.charset.*;
import java.util.*;
import java.util.functio... | redkale/redkale | src/main/java/org/redkale/convert/json/JsonByteBufferWriter.java | Java | apache-2.0 | 27,251 |
/*
* Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | dsukhoroslov/hazelcast | hazelcast/src/main/java/com/hazelcast/map/impl/ExpirationTimeSetter.java | Java | apache-2.0 | 6,827 |
/**
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.measure.fx;
import java.util.Optional;
import com.opengamma.strata.basics.ReferenceData;
import com.opengamma.strata.basics.currency.FxRate;
import com... | jmptrader/Strata | modules/measure/src/main/java/com/opengamma/strata/measure/fx/FxRateMarketDataFunction.java | Java | apache-2.0 | 2,274 |
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.javaFacade;
import com.intellij.psi.*;
import com.intellij.psi.search.GlobalSearchScope;
import com.intellij.psi.util.PsiTree... | jwren/intellij-community | plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/javaFacade/KotlinJavaFacadeTest.java | Java | apache-2.0 | 10,762 |
/**
* 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... | legend-hua/hadoop | hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/WasbRemoteCallHelper.java | Java | apache-2.0 | 5,081 |
package org.sagebionetworks.web.client.callback;
import org.sagebionetworks.web.client.jsni.ReferenceJSNIObject;
import com.google.gwt.core.client.JsArray;
public interface OnSelectCallback {
void onSelect(JsArray<ReferenceJSNIObject> selected);
}
| Sage-Bionetworks/SynapseWebClient | src/main/java/org/sagebionetworks/web/client/callback/OnSelectCallback.java | Java | apache-2.0 | 252 |
// 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... | GabrielBrascher/cloudstack | plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/manager/VmwareManager.java | Java | apache-2.0 | 4,237 |
/**
* 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... | oscerd/camel | components/camel-xstream/src/main/java/org/apache/camel/dataformat/xstream/AbstractXStreamWrapper.java | Java | apache-2.0 | 10,612 |
/*
* Copyright 2011 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... | mariofusco/optaplanner | optaplanner-examples/src/main/java/org/optaplanner/examples/nurserostering/swingui/EmployeePanel.java | Java | apache-2.0 | 11,464 |
/*
* Copyright 2012-2018 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | lburgazzoli/spring-boot | spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/server/ManagementServerProperties.java | Java | apache-2.0 | 3,496 |
/*
* 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... | facebook/presto | presto-hive/src/test/java/com/facebook/presto/hive/TestAbstractDwrfEncryptionInformationSource.java | Java | apache-2.0 | 13,802 |
package com.intellij.spring.webflow.graph.impl;
import com.intellij.spring.webflow.WebflowIcons;
import com.intellij.spring.webflow.util.WebflowUtil;
import com.intellij.spring.webflow.graph.WebflowNodeType;
import com.intellij.spring.webflow.model.xml.SubflowState;
import com.intellij.spring.webflow.model.xml.Webflow... | consulo/consulo-spring | webflow/src/com/intellij/spring/webflow/graph/impl/SubflowStateNode.java | Java | apache-2.0 | 1,215 |
/*
* 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 ... | shroman/ignite | modules/core/src/main/java/org/apache/ignite/ssl/SSLServerSocketFactoryWrapper.java | Java | apache-2.0 | 2,676 |
/*
* Copyright 2002-2006 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 requi... | andreagenso/java2scala | test/J2s/Parser/java/ParseStateTests.java | Java | apache-2.0 | 2,150 |
package com.thinkbiganalytics.search;
/*-
* #%L
* kylo-search-solr
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* 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://w... | claudiu-stanciu/kylo | plugins/search-solr/src/main/java/com/thinkbiganalytics/search/SolrSearchService.java | Java | apache-2.0 | 6,170 |
package org.deeplearning4j.rottentomatoes.data;
import org.deeplearning4j.models.rntn.Tree;
import org.deeplearning4j.text.movingwindow.Window;
import org.deeplearning4j.text.movingwindow.Windows;
import java.util.List;
/**
* Created by agibsonccc on 10/24/14.
*/
public class SpanUtil {
public static void m... | rickyHong/deeplearning4j-examples | src/main/java/org/deeplearning4j/rottentomatoes/data/SpanUtil.java | Java | apache-2.0 | 2,707 |
/*
* Copyright 2016-present 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 appli... | donNewtonAlpha/onos | cli/src/main/java/org/onosproject/cli/net/DpisListCommand.java | Java | apache-2.0 | 14,437 |
// Copyright 2019 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 appl... | bazelbuild/bazel | src/main/java/com/google/devtools/build/lib/skyframe/PlatformMappingValue.java | Java | apache-2.0 | 11,811 |
/*
* 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 ... | jdeppe-pivotal/geode | geode-core/src/main/java/org/apache/geode/cache/query/internal/parse/ASTLiteral.java | Java | apache-2.0 | 9,007 |
package com.payneteasy.superfly.api;
import java.io.Serializable;
/**
* Used to obtain info about a user actions with no regard to roles or
* preferences.
*
* @author Roman Puchkovskiy
* @since 1.1
*/
public class SSOUserWithActions implements Serializable {
private static final long serialVersionUID = -43... | rpuch/superfly | superfly-remote-api/src/main/java/com/payneteasy/superfly/api/SSOUserWithActions.java | Java | apache-2.0 | 1,741 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | apache/commons-dbutils | src/main/java/org/apache/commons/dbutils/handlers/columns/FloatColumnHandler.java | Java | apache-2.0 | 1,340 |
/*
* 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... | winstonewert/elasticsearch | qa/backwards-5.0/src/test/java/org/elasticsearch/backwards/Backwards50ClientYamlTestSuiteIT.java | Java | apache-2.0 | 1,669 |
/*
* Copyright (c) 2005-2010 Grameen Foundation USA
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | vorburger/mifos-head | application/src/main/java/org/mifos/accounts/savings/interest/CompoundingInterestCalculator.java | Java | apache-2.0 | 1,043 |
/*
* 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 ... | InspurUSA/nifi | nifi-nar-bundles/nifi-standard-services/nifi-lookup-services-bundle/nifi-lookup-services/src/main/java/org/apache/nifi/lookup/SimpleKeyValueLookupService.java | Java | apache-2.0 | 3,190 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/language/v1/language_service.proto
package com.google.cloud.language.v1;
public interface TokenOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.cloud.language.v1.Token)
com.google.protobuf.MessageOrBuilde... | speedycontrol/googleapis | output/com/google/cloud/language/v1/TokenOrBuilder.java | Java | apache-2.0 | 2,662 |
package com.zplesac.connectionbuddy.sampleapp.dagger.modules;
import android.content.Context;
import android.content.res.Resources;
import dagger.Module;
import dagger.Provides;
/**
* Created by Željko Plesac on 02/09/15.
*/
@Module
public class ContextModule {
private Context context;
public ContextModu... | zplesac/android_connectionbuddy | sampleapp/src/main/java/com/zplesac/connectionbuddy/sampleapp/dagger/modules/ContextModule.java | Java | apache-2.0 | 583 |
/**
* 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... | gruter/cloudata | src/examples/simple_web_index/org/cloudata/examples/web/TestWebPage.java | Java | apache-2.0 | 2,776 |
/*
* Copyright 2013 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | Anish2/error-prone | core/src/main/java/com/google/errorprone/refaster/UStatement.java | Java | apache-2.0 | 1,912 |
package org.qcri.rheem.basic.operators;
import de.hpi.isg.profiledb.instrumentation.StopWatch;
import de.hpi.isg.profiledb.store.model.Experiment;
import de.hpi.isg.profiledb.store.model.Subject;
import org.junit.Assert;
import org.junit.Test;
import org.qcri.rheem.core.api.Configuration;
import org.qcri.rheem.core.ap... | jonasrk/rheem | rheem-basic/src/test/java/org/qcri/rheem/basic/operators/TextFileSourceTest.java | Java | apache-2.0 | 3,059 |
/*
* 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... | msebire/intellij-community | platform/lang-impl/src/com/intellij/codeInsight/completion/actions/HippieWordCompletionHandler.java | Java | apache-2.0 | 15,648 |
/**
* 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... | juwi/hbase | hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java | Java | apache-2.0 | 81,338 |
/*
* Copyright (C) 2015 Google Inc.
* Copyright (C) 2015 Keith M. Hughes.
*
* 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 r... | kmhughes/robotbrains-examples | data/cloud/scala/org.robotbrains.data.cloud.timeseries.server/src/main/scala/org/robotbrains/support/web/server/HttpDynamicPostRequestHandler.java | Java | apache-2.0 | 1,108 |
/*
* Swift Parallel Scripting Language (http://swift-lang.org)
* Code from Java CoG Kit Project (see notice below) with modifications.
*
* Copyright 2005-2014 University of Chicago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... | swift-lang/swift-k | cogkit/modules/provider-coaster/src/org/globus/cog/coaster/channels/NIOSender.java | Java | apache-2.0 | 7,454 |
/*
* Copyright 2012-2019 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | lburgazzoli/spring-boot | spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/test/autoconfigure/restdocs/webclient/UsersDocumentationTests.java | Java | apache-2.0 | 1,568 |
/*
* Copyright 2011 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... | padmaragl/drools-wb | drools-wb-screens/drools-wb-guided-dtable-editor/drools-wb-guided-dtable-editor-client/src/main/java/org/drools/workbench/screens/guided/dtable/client/widget/analysis/condition/StringConditionInspector.java | Java | apache-2.0 | 7,233 |
package com.leanstacks.ws.security;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;... | mwarman/skeleton-ws-spring-boot | src/main/java/com/leanstacks/ws/security/AccountAuthenticationProvider.java | Java | apache-2.0 | 2,935 |
/*
* 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... | Yaliang/presto | presto-main/src/test/java/com/facebook/presto/sql/analyzer/TestFeaturesConfig.java | Java | apache-2.0 | 13,593 |
/**
* 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... | juwi/hbase | hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestLoadIncrementalHFilesSplitRecovery.java | Java | apache-2.0 | 21,598 |
/**
* 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... | onders86/camel | components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsSimpleHeaderTest.java | Java | apache-2.0 | 3,103 |
/*
* 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 ... | ueshin/apache-flink | flink-table/flink-table-runtime-blink/src/main/java/org/apache/flink/table/typeutils/DecimalSerializer.java | Java | apache-2.0 | 5,524 |
/*
* Copyright 2021 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... | marques-work/gocd | api/api-shared-v10/src/main/java/com/thoughtworks/go/apiv10/admin/shared/representers/materials/DependencyMaterialRepresenter.java | Java | apache-2.0 | 2,366 |
/*
* 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 ... | Sephiroth-Lin/incubator-carbondata | core/src/main/java/org/apache/carbondata/core/util/ValueCompressionUtil.java | Java | apache-2.0 | 25,793 |
/* CredentialAvatar
*
* Created on Apr 23, 2004
*
* Copyright (C) 2004 Internet Archive.
*
* This file is part of the Heritrix web crawler (crawler.archive.org).
*
* Heritrix is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser Public License as published by
* the Fre... | gaowangyizu/myHeritrix | myHeritrix/src/org/archive/crawler/datamodel/credential/CredentialAvatar.java | Java | apache-2.0 | 6,889 |
/*
* Copyright (C) 2007-2008 Castafiore
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* Thi... | eucleed/hatzouf | iot.ui/src/org/castafiore/ui/ex/form/AbstractStatefullComponent.java | Java | apache-2.0 | 1,566 |
package io.ray.streaming.operator.impl;
import io.ray.streaming.api.collector.Collector;
import io.ray.streaming.api.context.RuntimeContext;
import io.ray.streaming.api.function.impl.ReduceFunction;
import io.ray.streaming.message.KeyRecord;
import io.ray.streaming.message.Record;
import io.ray.streaming.operator.Chai... | richardliaw/ray | streaming/java/streaming-api/src/main/java/io/ray/streaming/operator/impl/ReduceOperator.java | Java | apache-2.0 | 1,474 |
/*
* 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 ... | ilantukh/ignite | modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/pagemem/PageMemoryEx.java | Java | apache-2.0 | 6,438 |
/*
* Copyright 2015 - 2019 Anton Tananaev (anton@traccar.org)
*
* 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 b... | tananaev/traccar | src/main/java/org/traccar/protocol/T800xProtocolDecoder.java | Java | apache-2.0 | 10,050 |
/**
* Copyright 2011-2019 Asakusa Framework Team.
*
* 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... | akirakw/asakusafw | directio-project/asakusa-directio-dmdl/src/main/java/com/asakusafw/dmdl/directio/text/tabular/TabularTextEmitter.java | Java | apache-2.0 | 9,350 |
/*
Copyright 2020 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | kubernetes-client/java | examples/examples-release-14/src/main/java/io/kubernetes/client/examples/FluentExample.java | Java | apache-2.0 | 2,616 |
/*
* 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... | pfirmstone/JGDMS | qa/src/org/apache/river/test/spec/io/marshalinputstream/LoadClass_NullArgsTest.java | Java | apache-2.0 | 3,296 |
/*
* Copyright (c) 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.apache.org/... | pasindujw/product-emm | modules/mobile-agents/android/client/client/src/main/java/org/wso2/emm/agent/api/ApplicationManager.java | Java | apache-2.0 | 10,453 |
/*
* 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"... | boneman1231/org.apache.felix | trunk/ipojo/composite/src/main/java/org/apache/felix/ipojo/composite/service/instantiator/ServiceInstantiatorDescription.java | Java | apache-2.0 | 4,632 |
/*
* 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... | snorden/parquet-mr-apache-parquet-1.7.0 | parquet-avro/src/test/java/org/apache/parquet/avro/TestAvroSchemaConverter.java | Java | apache-2.0 | 10,072 |
package azkaban.executor;
import java.util.ArrayList;
import java.util.stream.Collectors;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class ExecutableRampExceptionalItemsTest {
private static final String RAMP_ID1 = "daliSpark";
private static final String FLOW_NAME1 = "projec... | HappyRay/azkaban | azkaban-common/src/test/java/azkaban/executor/ExecutableRampExceptionalItemsTest.java | Java | apache-2.0 | 2,522 |
package net.grandcentrix.tray.publicapi;
import net.grandcentrix.tray.core.TrayStorage;
import net.grandcentrix.tray.mock.TestTrayModulePreferences;
import net.grandcentrix.tray.provider.TrayProviderTestCase;
/**
* Created by pascalwelsch on 6/3/15.
*/
public class RenamePreference extends TrayProviderTestCase {
... | grandcentrix/tray | library/src/androidTest/java/net/grandcentrix/tray/publicapi/RenamePreference.java | Java | apache-2.0 | 1,552 |
/*
* 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 ... | mohanaraosv/commons-vfs | core/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpRandomAccessContent.java | Java | apache-2.0 | 4,077 |
package org.alien4cloud.tosca.editor;
import java.util.List;
import java.util.Set;
import javax.inject.Inject;
import org.alien4cloud.tosca.model.definitions.DeploymentArtifact;
import org.alien4cloud.tosca.model.templates.NodeTemplate;
import org.alien4cloud.tosca.model.templates.Topology;
import org.apache.commons... | alien4cloud/alien4cloud | alien4cloud-rest-api/src/main/java/org/alien4cloud/tosca/editor/EditorRepositoryController.java | Java | apache-2.0 | 5,341 |
// ----------------------------------------------------------------------------
// Copyright 2007-2013, GeoTelematic Solutions, Inc.
// All rights reserved
// ----------------------------------------------------------------------------
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not... | vimukthi-git/OpenGTS_2.4.9 | src/org/opengts/war/report/presentation/BodyColumnTemplate.java | Java | apache-2.0 | 8,491 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, 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");
* you may ... | jmartisk/hibernate-validator | engine/src/main/java/org/hibernate/validator/internal/metadata/descriptor/ExecutableDescriptorImpl.java | Java | apache-2.0 | 3,645 |
/**
* Copyright 2016 LinkedIn Corp. 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 applica... | xiahome/ambry | ambry-rest/src/main/java/com.github.ambry.rest/RestServerMain.java | Java | apache-2.0 | 3,734 |
/*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | ge0ffrey/optaplanner | optaplanner-core/src/test/java/org/optaplanner/core/impl/testdata/domain/shadow/manytomany/TestdataManyToManyShadowedSolution.java | Java | apache-2.0 | 2,841 |
package net.finmath.integration;
import java.util.function.DoubleUnaryOperator;
import java.util.stream.DoubleStream;
import java.util.stream.IntStream;
import net.finmath.randomnumbers.MersenneTwister;
/**
* A simple integrator using Monte-Carlo integration.
*
* The constructor has an optional argument to allo... | BBreiden/finmath-lib | src/main/java/net/finmath/integration/MonteCarloIntegrator.java | Java | apache-2.0 | 2,489 |
package com.inqbarna.tablefixheaders;
import java.util.Stack;
import android.view.View;
/**
* The Recycler facilitates reuse of views across layouts.
*
* @author Brais Gabín (InQBarna)
*/
public class Recycler {
private Stack<View>[] views;
/**
* Constructor
*
* @param size
* The number ... | neiljaywarner/NJWBergFixedHeaders | library/src/com/inqbarna/tablefixheaders/Recycler.java | Java | apache-2.0 | 1,266 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache/incubator-systemml | src/main/java/org/apache/sysds/runtime/instructions/cp/BinaryScalarScalarCPInstruction.java | Java | apache-2.0 | 4,053 |