repo_name
stringlengths
5
108
path
stringlengths
6
333
size
stringlengths
1
6
content
stringlengths
4
977k
license
stringclasses
15 values
ernestp/consulo
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/XExpressionImpl.java
3535
/* * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
apache-2.0
zuesgooogle/game-server
src/main/java/com/simplegame/server/bus/client/io/action/BusOutAction.java
640
package com.simplegame.server.bus.client.io.action; import javax.annotation.Resource; import com.simplegame.core.action.annotation.ActionMapping; import com.simplegame.core.action.annotation.ActionWorker; import com.simplegame.core.message.Message; import com.simplegame.server.bus.client.io.command.ClientIoCommands; ...
apache-2.0
badlogicmanpreet/aura
aura-impl/src/main/java/org/auraframework/impl/system/DefinitionImpl.java
11852
/* * Copyright (C) 2013 salesforce.com, 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 ...
apache-2.0
robjcaskey/Unofficial-Coffee-Mud-Upstream
com/planet_ink/fakedb/ResultSet.java
30543
package com.planet_ink.fakedb; import java.io.InputStream; import java.io.Reader; import java.sql.NClob; import java.sql.RowId; import java.sql.SQLException; import java.sql.SQLXML; import java.util.Map; /* Copyright 2001 Thomas Neumann Licensed under the Apache License, Version 2.0 (the "License")...
apache-2.0
SmartDeveloperHub/sdh-scm-harvester
frontend/src/test/java/org/smartdeveloperhub/harvesters/scm/frontend/core/util/AbstractCappedContainerHandlerTestHelper.java
4942
/** * #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# * This file is part of the Smart Developer Hub Project: * http://www.smartdeveloperhub.org/ * * Center for Open Middleware * http://www.centeropenmiddleware.com/ * #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-...
apache-2.0
cbeams-archive/spring-framework-2.5.x
src/org/springframework/beans/TypeMismatchException.java
3697
/* * Copyright 2002-2008 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
apache-2.0
SciGaP/SEAGrid-Desktop-GUI
src/main/java/org/gridchem/client/gui/filebrowser/FileBrowser.java
2787
/*Copyright (c) 2004,University of Illinois at Urbana-Champaign. All rights reserved. * * Created on Jun 14, 2006 * * Developed by: CCT, Center for Computation and Technology, * NCSA, University of Illinois at Urbana-Champaign * OSC, Ohio Supercomputing Center * TACC, Texas Advanced Computing Cen...
apache-2.0
nevenr/vertx-auth
vertx-auth-jwt/src/test/java/io/vertx/ext/auth/test/jwt/DummyVerticle.java
544
package io.vertx.ext.auth.test.jwt; import io.vertx.core.AbstractVerticle; import io.vertx.ext.auth.KeyStoreOptions; import io.vertx.ext.auth.jwt.JWTAuth; import io.vertx.ext.auth.jwt.JWTAuthOptions; public class DummyVerticle extends AbstractVerticle { private static final JWTAuthOptions config = new JWTAuthOpt...
apache-2.0
Ariah-Group/Finance
af_webapp/src/main/java/org/kuali/kfs/sys/businessobject/format/ExplicitKualiDecimalFormatter.java
1889
/* * Copyright 2012 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 applic...
apache-2.0
lagom/lagom
jackson/src/test/java/com/lightbend/lagom/serialization/AbstractEvent2.java
559
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.serialization; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.lightbend.lagom.javadsl.immutable.ImmutableStyle; import org.immutables.value.Value; import org.immutables.value.Value.Parameter; ...
apache-2.0
d4rken/myolib
myolib/src/main/java/eu/darken/myolib/processor/classifier/WarmUpResultClassifierEvent.java
1487
package eu.darken.myolib.processor.classifier; import eu.darken.myolib.processor.BaseDataPacket; import eu.darken.myolib.tools.ByteHelper; public class WarmUpResultClassifierEvent extends ClassifierEvent { /** * Possible warm-up results for Myo. */ public enum WarmUpResult { UNKNOWN((byte) 0...
apache-2.0
wangdan/DownloadManager
downloader/src/main/java/org/aisen/download/DownloadController.java
2163
package org.aisen.download; import android.os.Handler; import android.os.Looper; import android.os.Message; import org.aisen.download.core.DownloadInfo; import org.aisen.download.utils.Constants; import org.aisen.download.utils.DLogger; import java.util.Vector; /** * 用于刷新UI * * Created by wangdan on 16/6/14. */...
apache-2.0
t0nyren/spatedb
src/main/java/com/ricemap/spateDB/core/RTree.java
57963
/* * 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...
apache-2.0
gregwhitaker/catnap
catnap-springboot/src/main/java/com/github/gregwhitaker/catnap/springboot/annotation/EnableCatnap.java
1203
/* * Copyright 2016 Greg Whitaker * * 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 ...
apache-2.0
dzielins42/urban-bear
src/main/java/pl/dzielins42/dmtools/generator/religion/BasicPantheonGenerator.java
5109
package pl.dzielins42.dmtools.generator.religion; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import pl.dzielins42.dmtools.model.enumeration.Alignment; import pl.dzielins42.dmtools.model.enumeration.Gender; import pl.dzielins42.dmtools.model.religion.Deity; import pl.dzielins42.dmtools...
apache-2.0
jcodagnone/jiolsucker
iolsucker/src/test/java/ar/com/leak/iolsucker/view/common/FSRepositoryTest.java
8278
/** * Copyright (c) 2005-2011 Juan F. Codagnone <http://juan.zaubersoftware.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
apache-2.0
thcomp/Android_BluetoothHelper
app/src/main/java/jp/co/thcomp/bluetoothhelper/BleReceiveDataProvider.java
7875
package jp.co.thcomp.bluetoothhelper; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Arrays; public class BleReceiveDataProvider extends BleDataProvider { public static final int AddPacketResultSuccess = -1; public sta...
apache-2.0
WhiteBearSolutions/WBSAirback
packages/wbsairback-tomcat/wbsairback-tomcat-7.0.22/test/org/apache/el/TestMethodExpressionImpl.java
15575
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
apache-2.0
SolaceSamples/solace-samples-java
src/main/java/com/solace/samples/java/snippets/HowToConsumeDirectMessage.java
11744
/* * Copyright 2021 Solace Corporation. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
apache-2.0
AssafMashiah/assafmashiah-yaml
src/test/java/org/yaml/snakeyaml/util/UriEncoderTest.java
1781
/** * Copyright (c) 2008-2011, http://www.snakeyaml.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 require...
apache-2.0
delebash/orientdb-parent
enterprise/src/main/java/com/orientechnologies/orient/enterprise/channel/binary/OAsynchChannelServiceThread.java
2656
/* * Copyright 2010-2012 Luca Garulli (l.garulli--at--orientechnologies.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Un...
apache-2.0
CS122B-CWP/cs122b
project2/src/main/java/project2/jdbc/bean/OrderSingleBean.java
1033
package project2.jdbc.bean; import org.json.JSONObject; public class OrderSingleBean { private int qty; private double unit_price; private int movie_id; private String title; public int getQty() { return qty; } public void setQty(int qty) { this.qty = qty; } public double getUnit_pri...
apache-2.0
don-philipe/graphhopper
core/src/main/java/com/graphhopper/util/gpx/GpxFromInstructions.java
10232
/* * Licensed to GraphHopper GmbH under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * GraphHopper GmbH licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not ...
apache-2.0
lpff/coolweather
src/com/coolweather/app/receiver/AutoUpdateReceiver.java
419
package com.coolweather.app.receiver; import com.coolweather.app.service.AutoUpdateService; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class AutoUpdateReceiver extends BroadcastReceiver{ @Override public void onReceive(Context context,Intent i...
apache-2.0
sabob/ratel
ratel/src/com/google/ratel/deps/jackson/databind/jsonschema/JsonSerializableSchema.java
2431
package com.google.ratel.deps.jackson.databind.jsonschema; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Retention; import java.lang.annotation.ElementType; import java.lang.annotation.Target; import com.google.ratel.deps.jackson.annotation.JacksonAnnotation; /** * Annotation that can be ...
apache-2.0
im-sure/LeetCode
src/_0382LinkedListRandomNode.java
550
import java.util.Random; public class _0382LinkedListRandomNode { ListNode head; Random r; public _0382LinkedListRandomNode(ListNode head) { this.head = head; r = new Random(); } public int getRandom() { ListNode thisN = head; ListNode result = null; for (int n = 1; ...
apache-2.0
christian-posta/wildfly-swarm
fractions/javaee/webservices/src/main/java/org/wildfly/swarm/webservices/runtime/WSDLHostCustomizer.java
693
package org.wildfly.swarm.webservices.runtime; import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; import org.wildfly.swarm.container.Interface; import org.wildfly.swarm.spi.api.Customizer; import org.wildfly.swarm.spi.runtime.annotations.Post; import org.wildfly.swarm.webservices.WebServic...
apache-2.0
thilinamb/mqtt-client-example
src/main/java/com/thilinamb/mqtt/client/sub/SubscriberCallback.java
882
package com.thilinamb.mqtt.client.sub; import org.eclipse.paho.client.mqttv3.IMqttDeliveryToken; import org.eclipse.paho.client.mqttv3.MqttCallback; import org.eclipse.paho.client.mqttv3.MqttMessage; import java.util.logging.Logger; /** * Subscriber callback * Author: Thilina * Date: 7/19/14 */ public class Subs...
apache-2.0
McLeodMoores/starling
projects/analytics/src/main/java/com/opengamma/analytics/math/matrix/DoubleMatrix1D.java
3045
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.analytics.math.matrix; import java.util.Arrays; import org.apache.commons.lang.Validate; /** * A minimal implementation of a vector (in the mathematical sen...
apache-2.0
shufudong/bboss
bboss-persistent/src/com/frameworkset/common/poolman/sql/PrimaryKeyCache.java
5515
/***************************************************************************** * * * This file is part of the tna framework distribution. * * Documentation and updates may be get from biaoping.yin the author of * * ...
apache-2.0
mynewyear/java_pft
mantis-tests/src/test/java/ru/stqa/pft/mantis/appmanager/HttpSession.java
2406
package ru.stqa.pft.mantis.appmanager; import org.apache.http.HttpEntity; import org.apache.http.NameValuePair; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.Ht...
apache-2.0
mpi2/exportlibrary
exportlibrary.xmlvalidationresourcescollection/src/test/java/org/mousephenotype/dcc/exportlibrary/xmlvalidationresourcescollection/impress/utils/InstantiatorTest.java
3784
/** * Copyright (C) 2013 Julian Atienza Herrero <j.atienza at har.mrc.ac.uk> * * MEDICAL RESEARCH COUNCIL UK MRC * * Harwell Mammalian Genetics Unit * * http://www.har.mrc.ac.uk * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the Licens...
apache-2.0
thilinamb/debs14-grand-challenge
src/main/java/edu/colostate/cs/storm/util/OutlierTracker.java
810
package edu.colostate.cs.storm.util; import java.util.HashSet; import java.util.Set; /** * Author: Thilina * Date: 12/6/14 */ public class OutlierTracker { private Set<String> completeSet = new HashSet<String>(); private Set<String> outlierSet = new HashSet<String>(); public void addMember(String key)...
apache-2.0
CesarPantoja/jena
jena-arq/src/main/java/org/apache/jena/riot/system/StreamRDFLib.java
7950
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
apache-2.0
mike-tr-adamson/java-driver
driver-core/src/test/java/com/datastax/driver/core/PreparedStatementTest.java
19674
/* * Copyright (C) 2012-2015 DataStax 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 app...
apache-2.0
alibaba/nacos
api/src/main/java/com/alibaba/nacos/api/remote/response/ResponseCode.java
1875
/* * Copyright 1999-2020 Alibaba Group Holding 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 applica...
apache-2.0
JoshEliYang/PriceTag
src/main/java/cn/springmvc/service/ShopService.java
65
package cn.springmvc.service; public interface ShopService { }
apache-2.0
is-apps/NotificationPortlet
notification-portlet-webapp/src/main/java/org/jasig/portlet/notice/service/jpa/action/CompleteOnRedirectAction.java
2861
/** * 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 ...
apache-2.0
qafedev/qafe-platform
qafe-business/src/test/java/test/com/qualogy/qafe/business/integration/adapter/DummyPersonMoreComplexObject.java
1065
/** * Copyright 2008-2017 Qualogy Solutions B.V. * * 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...
apache-2.0
TatsianaKasiankova/pentaho-kettle
engine/src/main/java/org/pentaho/di/job/entries/deletefolders/JobEntryDeleteFolders.java
15930
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2017 by Pentaho : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (th...
apache-2.0
reportportal/service-api
src/main/java/com/epam/ta/reportportal/ws/controller/FileStorageController.java
5705
/* * Copyright 2019 EPAM Systems * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
apache-2.0
shensiduanxing/devops-metadata-svc
src/main/java/org/flysnow/cloud/buildmeta/ui/resteasy/exception/BuildMetadataServiceException.java
557
package org.flysnow.cloud.buildmeta.ui.resteasy.exception; import java.io.Serializable; public class BuildMetadataServiceException extends RuntimeException implements Serializable { private static final long serialVersionUID = 7786141544419367058L; public BuildMetadataServiceException(){ super(); } public B...
apache-2.0
Sargul/dbeaver
plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/tasks/MySQLToolTableCheckSettings.java
2432
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2021 DBeaver Corp and others * * 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/LICE...
apache-2.0
guiguegon/GeoApi
app/src/androidTest/java/es/guiguegon/geoapi/ExampleInstrumentedTest.java
741
package es.guiguegon.geoapi; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumentation test, which will execute on an Android ...
apache-2.0
dragonzhou/humor
src/ca/pfv/spmf/test/MainTestKMeans_saveToFile.java
910
package ca.pfv.spmf.test; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URL; import ca.pfv.spmf.algorithms.clustering.kmeans.AlgoKMeans; /** * Example of how to use the KMEans algorithm, in source code. */ public class MainTestKMeans_saveToFile { public static void ma...
apache-2.0
donbeave/grails-console-charts
src/gwt/grails/plugin/console/charts/client/gin/DesktopModule.java
1050
/* * Copyright 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 applicab...
apache-2.0
adeelahmedkhanabbasi/QuranTeacher
QuranTeacher/src/QuranTeacher/ AudioPreferencesPanel.java
6792
/* * In the name of Allah * This file is part of The "Quran Teacher or Learn Arabic" Project. Use is subject to * license terms. * * @author: Fazle Rabbi Rahat * */ package QuranTeacher; import javax.swing.ButtonGroup; import javax.swing.JComboBox; import javax.swing.JPanel; import java....
apache-2.0
haoch/kylin
source-kafka/src/main/java/org/apache/kylin/source/kafka/util/KafkaRequester.java
7848
/* * * * 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 * * (th...
apache-2.0
McLeodMoores/starling
projects/util/src/main/java/com/opengamma/DataDuplicationException.java
954
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma; /** * Runtime exception used to indicate that the action would create a duplicate. * <p> * A typical use case is when adding data and a similar item alread...
apache-2.0
flipkart-incubator/hbase-object-mapper
src/test/java/com/flipkart/hbaseobjectmapper/testcases/TestsReactiveHBDAO.java
29551
package com.flipkart.hbaseobjectmapper.testcases; import com.flipkart.hbaseobjectmapper.HBAdmin; import com.flipkart.hbaseobjectmapper.Records; import com.flipkart.hbaseobjectmapper.WrappedHBColumnTC; import com.flipkart.hbaseobjectmapper.testcases.daos.reactive.CitizenDAO; import com.flipkart.hbaseobjectmapper.testca...
apache-2.0
A-Miracle/QiangHongBao
themelib/src/main/java/com/afollestad/appthemeengine/views/ATERadioButton.java
1317
package com.afollestad.appthemeengine.views; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; import androidx.appcompat.widget.AppCompatRadioButton; import com.afollestad.appthemeengine.ATE; import com.afollestad.appthemeengine.R; /** * @author Aidan Follesta...
apache-2.0
dmillett/prank
src/test/java/net/prank/core/PranksterTest.java
12515
package net.prank.core; import net.prank.example.ExampleObject; import net.prank.example.ExampleScoreCard; import org.junit.Test; import java.math.BigDecimal; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import java.util.concurrent.Future; import java.util.concurrent...
apache-2.0
quanla/quan-util-core
src/main/java/qj/util/cache/Cache2.java
615
package qj.util.cache; import java.util.ArrayList; import qj.util.funct.F2; public class Cache2<A, B, T> { private final F2<A, B, T> func; ArrayList<Holder> holders = new ArrayList<Holder>(); public Cache2(F2<A, B, T> func) { this.func = func; } public T get(A a, B b) { for (Holder holder : holders) { ...
apache-2.0
adligo/tests4j_4jacoco.adligo.org
src/org/adligo/tests4j_4jacoco/plugin/discovery/CircularDependenciesDiscovery.java
4828
package org.adligo.tests4j_4jacoco.plugin.discovery; import java.io.IOException; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import org.adligo.tests4j.models.shared.association.ClassAssociationsLocal; import org.adligo.tests4j.models.sha...
apache-2.0
benbenw/jmeter
src/functions/src/main/java/org/apache/jmeter/functions/TimeShift.java
9758
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may ...
apache-2.0
ashward/buddycloud-server-java
src/test/java/org/buddycloud/channelserver/packetprocessor/iq/namespace/pubsub/set/PublishTest.java
17181
package org.buddycloud.channelserver.packetprocessor.iq.namespace.pubsub.set; import java.util.ArrayList; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import junit.framework.Assert; import org.buddycloud.channelserver.Configuration; import org.buddycloud.channelserver.c...
apache-2.0
neykov/incubator-brooklyn
utils/common/src/main/java/brooklyn/util/javalang/StackTraceSimplifier.java
6792
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
apache-2.0
wardev/orekit
src/main/java/org/orekit/propagation/events/DihedralFieldOfViewDetector.java
9006
/* Copyright 2002-2014 CS Systèmes d'Information * Licensed to CS Systèmes d'Information (CS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * CS licenses this file to You under the Apache License, Versi...
apache-2.0
blue7zz/BlueDemo
permission/src/test/java/top/blue7/permission/ExampleUnitTest.java
398
package top.blue7.permission; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void a...
apache-2.0
aws/aws-sdk-java
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUseCaseResultJsonUnmarshaller.java
3047
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
apache-2.0
sdgdsffdsfff/appleframework
apple-distributed/src/test/java/com/appleframework/distributed/id/snowflake/IdProviderTest.java
640
package com.appleframework.distributed.id.snowflake; import com.appleframework.distributed.id.snowflake.IdProvider; import com.appleframework.distributed.id.snowflake.IdProviderFactory; public class IdProviderTest { public static void main(String[] args) throws Exception { IdProviderFactory idProviderFact...
apache-2.0
bingoogolapple/J2EENote
algorithmhome/src/main/java/com/bingoogol/algorithmhome/dao/UserInfoDao.java
177
package com.bingoogol.algorithmhome.dao; public interface UserInfoDao { public int plusPrice(String sellerid, int price); public int minusPrice(String buyerid, int price); }
apache-2.0
jluisred/HotSpots
src/fr/eurecom/hotspots/web/main.java
1105
package fr.eurecom.hotspots.web; import java.io.File; import java.io.IOException; import java.util.List; import org.apache.commons.io.FileUtils; import com.googlecode.mp4parser.authoring.tracks.TextTrackImpl.Line; import fr.eurecom.hotspots.core.HotSpotGenerator; import fr.eurecom.hotspots.datastructures.Timeline; ...
apache-2.0
LorenzReinhart/ONOSnew
providers/ietfte/tunnel/src/main/java/org/onosproject/provider/te/tunnel/TeTunnelRestconfProvider.java
14517
/* * 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...
apache-2.0
aws/aws-sdk-java-v2
services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/internal/AttributeConfiguration.java
1882
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file ...
apache-2.0
dadarom/dubbo
dubbo-remoting/dubbo-remoting-netty4/src/main/java/com/alibaba/dubbo/remoting/transport/netty4/logging/FormattingTuple.java
2138
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
apache-2.0
aws/aws-sdk-java
aws-java-sdk-devicefarm/src/main/java/com/amazonaws/services/devicefarm/model/transform/CreateDevicePoolRequestProtocolMarshaller.java
2719
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
apache-2.0
UCL/EIDP-4
eidpdata/src/main/java/uk/ac/ucl/eidp/data/NodeQualifier.java
823
package uk.ac.ucl.eidp.data; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.PARAMETER; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; import ja...
apache-2.0
leonarduk/unison
src/main/java/uk/co/sleonard/unison/input/DataHibernatorWorker.java
4719
/** * DataHibernatorWorker.java * * Created on 24 October 2007, 18:10 * * To change this template, choose Tools | Template Manager and open the template in the editor. */ package uk.co.sleonard.unison.input; import java.util.ArrayList; import java.util.ListIterator; import java.util.concurrent.LinkedBlockingQue...
apache-2.0
yangjiandong/MobileBase.G
MobileBase/src/main/java/com/ek/mobileapp/model/Entity.java
380
package com.ek.mobileapp.model; import java.io.Serializable; public abstract class Entity implements Serializable { protected int id; public int getId() { return id; } protected String cacheKey; public String getCacheKey() { return cacheKey; } public void setCacheKey(S...
apache-2.0
zpao/buck
test/com/facebook/buck/parser/DefaultUnconfiguredTargetNodeFactoryTest.java
6692
/* * 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...
apache-2.0
nherbaut/jdev2015T6A01
dvd2c-box/src/main/java/com/enseirb/telecom/dngroup/dvd2c/service/impl/ThridPartyStorageServiceImpl.java
2150
package com.enseirb.telecom.dngroup.dvd2c.service.impl; import java.net.URI; import java.util.ArrayList; import java.util.Collections; import java.util.List; import javax.inject.Inject; import javax.ws.rs.core.UriBuilder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype....
apache-2.0
rao2100/SpringBootStarter
src/test/java/com/rao2100/starter/utils/SystemdJournalUtilsTest.java
1156
/* * 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 com.rao2100.starter.utils; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.Befo...
apache-2.0
Saber-Tecnologias/acervo-app
app/src/main/java/br/ufpe/sabertecnologias/acervoapp/ui/callbacks/GruposCallback.java
351
package br.ufpe.sabertecnologias.acervoapp.ui.callbacks; import java.util.ArrayList; import br.ufpe.sabertecnologias.acervoapp.modelo.dados.Grupo; /** * Created by joaotrindade on 25/10/16. */ public interface GruposCallback{ public void abrirGrupo(Grupo g); public void exit(); void notifyGrupoControll...
apache-2.0
nblair/sometime
sometime-war/src/main/java/org/jasig/schedassist/web/security/DelegateCalendarAccountUserDetailsImpl.java
5819
/** * 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...
apache-2.0
punkhorn/camel-upstream
components/camel-spring/src/test/java/org/apache/camel/spring/MainTest.java
2166
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
apache-2.0
Tankernn/TankernnGameEngine
src/main/java/eu/tankernn/gameEngine/particles/ParticleRenderer.java
4913
package eu.tankernn.gameEngine.particles; import java.nio.FloatBuffer; import java.util.List; import java.util.Map; import org.lwjgl.BufferUtils; import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL15; import org.lwjgl.opengl.GL31; import org.lwjgl.util.vector.Matrix4f; import org.lwjgl.util.vector.Vector3f; imp...
apache-2.0
mynamecsl/ppweather
src/com/ppweather/app/activity/WeatherActivity.java
5935
package com.ppweather.app.activity; import com.ppweather.app.R; import com.ppweather.app.service.AutoUpdateService; import com.ppweather.app.util.HttpCallbackListener; import com.ppweather.app.util.HttpUtil; import com.ppweather.app.util.Utility; import android.app.Activity; import android.content.Intent; import andr...
apache-2.0
arrow-acs/acn-sdk-android
sdk/src/main/java/com/konexios/api/models/AuditLogModel.java
4939
/* * Copyright (c) 2017-2019 Arrow Electronics, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License 2.0 * which accompanies this distribution, and is available at * http://apache.org/licenses/LICENSE-2.0 * * Contributors: * Arrow...
apache-2.0
huahuajjh/card_recycle
src/main/java/com/tqmars/cardrecycle/application/User/dto/CreateUserInput.java
2014
package com.tqmars.cardrecycle.application.User.dto; /** * Created by jjh on 1/14/17. */ public class CreateUserInput { private String account; private String pwd; private String qq; private String tel; private String businessId; private String businessPwd; private String smsCode; pri...
apache-2.0
frank29259/java
Data_structure/Stack/Friend/postfix.java
756
public class postfix { public static void main(String[] args) { // TODO Auto-generated method stub String post = "52+32*-"; IntStack stack = new IntStack(post.length()); char op; int op1=0 , op2=0; for(int i=0; i<post.length();i++){ op = post.charAt(i); if(op=='+'){ op1=stack.pop(); op2=sta...
apache-2.0
universal-development/myip-app
webapp/src/main/java/com/unidev/myip/web/IndexController.java
1013
package com.unidev.myip.web; import com.unidev.myip.MyIPService; import com.unidev.platform.web.WebUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servle...
apache-2.0
hilemz/yahoo-finance-api
yahoo-finance-api/src/main/java/pl/hilemz/yahoofinanceapi/ParseUtils.java
7707
/* * Copyright 2015 hilemz * * http://www.wykop.pl/ludzie/hilemz/ * * 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...
apache-2.0
dufangyu1990/NewFarmTool
OkHttpFinal/src/main/java/cn/finalteam/okhttpfinal/StringHttpRequestCallback.java
918
/* * Copyright (C) 2015 pengjianbo(pengjianbosoft@gmail.com), 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 requ...
apache-2.0
nouribygi/Masnavi
app/src/main/java/com/nouribygi/masnavi/database/MasnaviDataProvider.java
3332
package com.nouribygi.masnavi.database; import android.app.SearchManager; import android.content.ContentProvider; import android.content.ContentResolver; import android.content.ContentValues; import android.content.UriMatcher; import android.database.Cursor; import android.net.Uri; import com.nouribygi.masnavi.util.M...
apache-2.0
Notronix/JaLAPI
src/main/java/com/notronix/lw/impl/method/orders/GetOrderViewsMethod.java
615
package com.notronix.lw.impl.method.orders; import com.google.gson.Gson; import com.notronix.lw.api.model.UserOrderView; import com.notronix.lw.impl.method.AbstractLinnworksAPIMethod; import java.util.Arrays; import java.util.List; public class GetOrderViewsMethod extends AbstractLinnworksAPIMethod<List<Use...
apache-2.0
ChamaraPhilipsuom/product-is
modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/analytics/authentication/AnalyticsLoginTestCase.java
34987
/* * Copyright (c) 2016, 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...
apache-2.0
KritikalFabric/corefabric.io
src/contrib/java/com/cisco/qte/jdtn/bp/EidMap.java
14806
/** Copyright (c) 2011, Cisco Systems, 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 conditions and t...
apache-2.0
lumeng689/luapp
practise/src/main/java/org/luapp/practise/leetcode/RemoveNthNodeFromEndOfList.java
1829
package org.luapp.practise.leetcode; /** * Created by lum on 2015/3/16. */ public class RemoveNthNodeFromEndOfList { public static class ListNode { int val; ListNode next; ListNode(int x) { val = x; next = null; } } public static ListNode removeN...
apache-2.0
leapframework/framework
base/core/src/main/java/leap/core/security/UserPrincipal.java
1031
/* * Copyright 2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
cltl/coreference-evaluation
src/main/java/eu/newsreader/conversion/ReduceConllResponse.java
2884
package eu.newsreader.conversion; import eu.newsreader.util.Util; import java.io.File; import java.io.FileOutputStream; import java.io.OutputStream; import java.util.ArrayList; /** * Created by piek on 12/15/14. */ public class ReduceConllResponse { static public void main (String[] args) { try { ...
apache-2.0
Nithanim/netty-packet-library
library/src/test/java/me/nithanim/netty/packetlib/handler/PacketEncoderTest.java
3734
package me.nithanim.netty.packetlib.handler; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import java.util.Arrays; import me.nithanim.netty.packetlib.packets.Packet; import me.nithanim.netty.packetlib.testpackets.TestPacketEmpty; import me.nithanim.netty.packetlib.testpackets.TestPacketFull; import...
apache-2.0
orientechnologies/orientdb
core/src/main/java/com/orientechnologies/orient/core/storage/cluster/v1/OPaginatedClusterV1.java
69403
/* * Copyright 2010-2013 OrientDB LTD (info--at--orientdb.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
apache-2.0
KnowledgeAndAction/-
app/src/main/java/cn/hicc/information/sensorsignin/utils/Utils.java
3608
package cn.hicc.information.sensorsignin.utils; import android.app.Activity; import android.app.ActivityManager; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.net.ConnectivityManager; import android.net.NetworkInfo...
apache-2.0
eric-stanley/cgeo
main/src/cgeo/calendar/ICalendar.java
895
package cgeo.calendar; public interface ICalendar { static final String CALENDAR_ADDON_URI = "market://details?id=cgeo.calendar"; static final String INTENT = "cgeo.calendar.RESERVE"; static final String URI_SCHEME = "add"; static final String URI_HOST = "cgeo.org"; static final String PARAM_SHO...
apache-2.0
googleads/googleads-java-lib
modules/dfp_appengine/src/main/java/com/google/api/ads/admanager/jaxws/v202202/CustomFieldServiceInterfaceupdateCustomFieldOptions.java
2990
// Copyright 2022 Google LLC // // 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 writi...
apache-2.0
BolkunetsAlexandr/java-training
task 5/autoservice-api/src/com/senla/bolkunets/autoservice/api/managers/IOrdersManager.java
1054
package com.senla.bolkunets.autoservice.api.managers; import java.util.Comparator; import java.util.Date; import java.util.List; import com.senla.bolkunets.autoservice.api.beans.IOrder; import com.senla.bolkunets.autoservice.api.enums.OrderStatus; public interface IOrdersManager { List<IOrder> getOrders(); vo...
apache-2.0
rylexr/android-simple-search-app
app/src/androidTest/java/com/tinbytes/simplesearchapp/ApplicationTest.java
950
/* * Copyright 2015 Tinbytes 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...
apache-2.0
opensingular/singular-server
requirement/requirement-module/src/main/java/org/opensingular/requirement/module/admin/healthsystem/extension/JobsAdminEntry.java
1087
/* * Copyright (C) 2016 Singular Studios (a.k.a Atom Tecnologia) - www.opensingular.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
apache-2.0
smanvi-pivotal/geode
geode-core/src/test/java/org/apache/geode/internal/cache/RollbackFunction.java
5585
/* * 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 ...
apache-2.0