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.pikater.web; import java.util.logging.Level; import java.util.logging.Logger; import org.pikater.shared.logging.GeneralPikaterLogger; import org.pikater.shared.logging.IPikaterLogger; /** * Special logger wrapper to be used by the web application. * * @author SkyCrawl */ public class PikaterWebLogger...
SkyCrawl/pikater-vaadin
src/org/pikater/web/PikaterWebLogger.java
Java
apache-2.0
857
/* * 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...
littlezhou/hadoop
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/pipeline/TestPipelineClose.java
Java
apache-2.0
8,956
package com.planet_ink.coffee_mud.WebMacros; import com.planet_ink.miniweb.interfaces.*; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.core.exceptions.*; import com.planet_ink.coffee_mud...
vjanmey/EpicMudfia
com/planet_ink/coffee_mud/WebMacros/QuestMaker.java
Java
apache-2.0
32,575
/* * Copyright (C) open knowledge GmbH * * 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 ...
openknowledge/jaxrs-versioning
jaxrs-versioning/src/main/java/de/openknowledge/jaxrs/versioning/conversion/Version.java
Java
apache-2.0
1,612
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
ohac/sha1coinj
core/src/main/java/com/google/sha1coin/core/AbstractWalletEventListener.java
Java
apache-2.0
1,767
/* 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 ...
OkieOth/othCache
memcachedCacheImpl/src/main/java/de/othsoft/cache/memcached/CacheImpl.java
Java
apache-2.0
18,579
/******************************************************************************* * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with th...
mbezjak/vhdllab
vhdllab-common/src/main/java/hr/fer/zemris/vhdllab/entity/ClientLog.java
Java
apache-2.0
2,807
package org.ajp.server.job; import java.util.concurrent.Callable; import org.ajp.server.job.JobResult.JobResultStatus; import org.ajp.server.model.JobRequest; public class Job implements Callable<JobResult> { private JobRequest jobRequest = null; public Job(final JobRequest jreq) { this.jobRequest = jreq; } ...
kartaa/AsyncJobProcessor
src/main/java/org/ajp/server/job/Job.java
Java
apache-2.0
506
/* * Copyright 2018 Pivotal, 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...
ajordens/clouddriver
clouddriver-cloudfoundry/src/main/java/com/netflix/spinnaker/clouddriver/cloudfoundry/client/Routes.java
Java
apache-2.0
8,900
/* * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
googleapis/java-datalabeling
proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotationOrBuilder.java
Java
apache-2.0
3,972
/** * Copyright 2015 Tobias Gierke <tobias.gierke@code-sourcery.de> * * 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...
toby1984/j2048
src/main/java/de/codesourcery/j2048/IInputProvider.java
Java
apache-2.0
1,279
/* * 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 ...
yardstick-benchmarks/yardstick-spark
src/main/java/org/yardstickframework/spark/model/Person.java
Java
apache-2.0
4,426
package Thread.Concurrent; /** * Created by Defias on 2017/8/27. * * CopyOnWriteArraySet * * 基于CopyOnWriteArrayList 的实现 * */ import java.util.concurrent.CopyOnWriteArraySet; public class TestCopyOnWriteArraySet { }
gdefias/StudyJava
InitJava/base/src/main/java/Thread/Concurrent/TestCopyOnWriteArraySet.java
Java
apache-2.0
234
package org.pac4j.cas.client; import org.junit.Test; import org.pac4j.core.context.MockWebContext; import org.pac4j.core.exception.HttpAction; import org.pac4j.core.util.TestsConstants; import org.pac4j.core.util.TestsHelper; import static org.junit.Assert.*; /** * This class tests the {@link CasProxyReceptor} clas...
JacobASeverson/pac4j
pac4j-cas/src/test/java/org/pac4j/cas/client/CasProxyReceptorTests.java
Java
apache-2.0
2,771
package jesg; import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeUnit; import org.openqa.selenium.Capabilities; import org.openqa.selenium.HasCapabilities; import org.openqa.selenium.WebDriver; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.Remote...
jesg/selenium-grid-demo
src/test/java/jesg/SeleniumGridTest.java
Java
apache-2.0
1,717
/* * Copyright 2009-2012 The MyBatis 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 requ...
binarytemple/mybatis-all-syncing-test
src/main/java/org/apache/ibatis/builder/MapperBuilderAssistant.java
Java
apache-2.0
18,210
package com.future.panels; import javax.swing.JPanel; public class PanelFactory { public static JPanel createPanel(String name) { JPanel panel; if(name.equals("SettingPanel")) { panel=new SettingPanel(); }else { panel=new MainPanel(); } return panel; } }
simpher/FutureStrategy
src/com/future/panels/PanelFactory.java
Java
apache-2.0
298
package com.intellij.util; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; // We don't use Java URI due to problem — http://cns-etuat-2.localnet.englishtown.com/school/e12/#school/45383/201/221/382?c=countrycode=cc|culturecode=en-us|partnercode=mkge // it is illegal URI (fragment ...
romankagan/DDBWorkbench
platform/platform-api/src/com/intellij/util/Url.java
Java
apache-2.0
785
/******************************************************************************* * Copyright 2013 SAP AG * * 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/l...
SAP/cloud-odata-java
odata-api/src/main/java/com/sap/core/odata/api/edm/EdmLiteralKind.java
Java
apache-2.0
959
package com.barbarum.tutorial.code.array; import com.barbarum.tutorial.util.PrintUtil; public class FindLongestBinarySequence { public static int find(int[] nums) { int[] ones = new int[nums.length]; countLeftOnes(nums, ones); countRightOnes(nums, ones); return findMaximum(ones)...
barbarum/barbarum-tutorial
src/main/java/com/barbarum/tutorial/code/array/FindLongestBinarySequence.java
Java
apache-2.0
1,761
package org.seasar.doma.internal.apt.meta.parameter; import static org.seasar.doma.internal.util.AssertionUtil.assertNotNull; public class OptionalIntListParameterMeta implements CallableSqlParameterMeta { private final String name; public OptionalIntListParameterMeta(String name) { assertNotNull(name); ...
domaframework/doma
doma-processor/src/main/java/org/seasar/doma/internal/apt/meta/parameter/OptionalIntListParameterMeta.java
Java
apache-2.0
554
/* * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
interactivespaces/interactivespaces-rosjava
rosjava/src/main/java/org/ros/concurrent/CancellableLoop.java
Java
apache-2.0
2,359
package org.projectiles; import static java.awt.Color.red; import static java.lang.Math.*; import java.awt.image.BufferedImage; import static java.lang.System.*; import org.rooms.*; import org.resources.AudioPack; import org.resources.Collisions; import org.resources.Element; import org.resources.ImagePack; import or...
zapper59/RangerHale---Space-Adventure
src/org/projectiles/AirBall.java
Java
apache-2.0
2,909
package lab2; import java.util.PriorityQueue; public class Lab2b { private static class Vector implements Comparable{ public double x, y, d; public DLList.Node node; public Vector(double x, double y){ this(x,y,null,100); } public Vector(double x, double y, DLList.Node n, double d){ this.x = x; ...
AlexanderSopov/datastruktur
src/lab2/Lab2b.java
Java
apache-2.0
2,889
package pub.devrel.easypermissions.helper; import android.app.Activity; import android.app.FragmentManager; import android.content.Context; import android.support.annotation.NonNull; import android.support.v4.app.ActivityCompat; /** * Permissions helper for {@link Activity}. */ class ActivityPermissionHelper extend...
SUPERCILEX/easypermissions
easypermissions/src/main/java/pub/devrel/easypermissions/helper/ActivityPermissionHelper.java
Java
apache-2.0
1,014
package com.lerx.integral.rule.dao.imp; import java.util.List; import org.springframework.dao.DataAccessException; import org.springframework.orm.hibernate3.support.HibernateDaoSupport; import com.lerx.integral.rule.dao.IIntegralRuleDao; import com.lerx.integral.rule.vo.IntegralRule; public class IntegralRuleDaoImp...
chenxyzy/cms
src/com/lerx/integral/rule/dao/imp/IntegralRuleDaoImp.java
Java
apache-2.0
3,349
/* * Copyright 2014 Hippo B.V. (http://www.onehippo.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
aharpour/user-management-dashboard
cms/src/main/java/nl/openweb/hippo/umd/webservices/HippoAuthenticationRequestHandler.java
Java
apache-2.0
4,730
/* * Copyright 2008-2009 Web Cohesion * * 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...
rwinch/spring-security-oauth
spring-security-oauth2/src/main/java/org/springframework/security/oauth2/config/ClientDetailsServiceBeanDefinitionParser.java
Java
apache-2.0
3,600
package com.cloud.dc.dao; import com.cloud.dc.AccountVlanMapVO; import com.cloud.dc.DomainVlanMapVO; import com.cloud.dc.PodVlanMapVO; import com.cloud.dc.Vlan; import com.cloud.dc.Vlan.VlanType; import com.cloud.dc.VlanVO; import com.cloud.network.dao.IPAddressDao; import com.cloud.utils.Pair; import com.cloud.utils....
remibergsma/cosmic
cosmic-core/engine/schema/src/main/java/com/cloud/dc/dao/VlanDaoImpl.java
Java
apache-2.0
15,800
package com.sky.gank.data.douban; import com.sky.gank.net.HttpUtil; import com.sky.gank.net.RetrofitService; import com.sky.gank.net.Urls; import io.reactivex.Observable; /** * 类名称: * 类功能: * 类作者:Sky * 类日期:2018/12/31 0031. **/ public class RemoteDoubanMovieDataSource implements DoubanMovieDataSource{ public...
SkyZhang007/LazyCat
gankio/src/main/java/com/sky/gank/data/douban/RemoteDoubanMovieDataSource.java
Java
apache-2.0
1,499
/* * Copyright 2009-2012 The MyBatis 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 a...
c340c340/mybatis-3.2.22
src/test/java/com/ibatis/sqlmap/ComplexTypeTest.java
Java
apache-2.0
1,486
package com.orangemile.replay; import com.higherfrequencytrading.chronicle.Excerpt; public interface ReplayHandler<T> { public T parse(int id, Excerpt e); public long getTime(int id, T t); public void replay(int id, T t, long realTime, long relativeTime); }
orangemile/chronicle-replay
src/app/java/com/orangemile/replay/ReplayHandler.java
Java
apache-2.0
283
/* * 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...
strapdata/elassandra5-rc
core/src/main/java/org/elasticsearch/search/profile/query/CollectorResult.java
Java
apache-2.0
7,878
package com.cody.app.business.launch; import android.animation.AnimatorSet; import android.animation.ValueAnimator; import android.content.Context; import android.support.annotation.Nullable; import android.util.AttributeSet; import android.view.animation.AccelerateDecelerateInterpolator; import java.util.ArrayList; ...
codyer/CleanFramework
app/src/demo/java/com/cody/app/business/launch/CharacterView.java
Java
apache-2.0
3,979
/* * Copyright 2014-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 app...
griffon-plugins/griffon-domain-plugin
subprojects/griffon-domain-core/src/main/java/org/codehaus/griffon/runtime/domain/AbstractGriffonDomainClassProperty.java
Java
apache-2.0
1,607
package org.grobid.core.utilities; import org.apache.commons.lang3.StringUtils; import org.grobid.core.analyzers.GrobidAnalyzer; import org.grobid.core.exceptions.GrobidException; import org.grobid.core.layout.LayoutToken; import org.grobid.core.lexicon.Lexicon; import java.io.BufferedReader; import java.io.IOExcepti...
alexduch/grobid
grobid-core/src/main/java/org/grobid/core/utilities/TextUtilities.java
Java
apache-2.0
47,103
package com.github.xiaofei_dev.suspensionnotification.util.bean; public class HomeData { private boolean isClickHome; private boolean isClickMenu; public boolean isClickHome() { return isClickHome; } public void setClickHome(boolean clickHome) { isClickHome = clickHome; } ...
xiaofei-dev/SuspendNotification
app/src/main/java/com/github/xiaofei_dev/suspensionnotification/util/bean/HomeData.java
Java
apache-2.0
480
package com.ksa.system.initialize.convert; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.ibatis.session.SqlSession; import com.ksa.context.ServiceContextUtils; import com.ksa.dao.security.RoleDao; import com.ksa.model.ModelUtils; import com.ksa.model.security.Role; import c...
whitesource/fs-agent
test_input/ksa/ksa-web-root/ksa-system-web/src/main/java/com/ksa/system/initialize/convert/UserConverter.java
Java
apache-2.0
3,005
/* * ==================================================================== * 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 ...
wso2/wso2-httpcore-nio
modules/httpcore-nio/src/test/java/org/apache/http/impl/nio/TestDefaultNHttpClientConnection.java
Java
apache-2.0
30,286
package nds_api.fs.btx0; import nds_api.RomMapping; import java.io.IOException; /** * * Reads data to translate to a {@link BasicTexture}. * * @author Whis * */ public final class BasicTextureReader { /** * The expected BTX0 file extension. */ private static final String BTX0_EXT = "BTX0"; ...
sinoz/nds-api
src/main/java/nds_api/fs/btx0/BasicTextureReader.java
Java
apache-2.0
828
/* * Copyright 2015 Suprema(biostar2@suprema.co.kr) * * 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...
BioStar2/BioStar2Android
BioStar2Android/BioStar2Client/src/main/java/com/supremainc/biostar2/adapter/base/BasePermissionAdapter.java
Java
apache-2.0
6,611
package cn.iam007.app.mall; import java.util.ArrayList; import android.annotation.TargetApi; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import android.support.v4.view.ViewPager; import android.support.v4.view.ViewPager.OnPageChangeListener; import android.view.View; i...
jiangerji/iam007-mobile-android
src/cn/iam007/app/mall/TestMainActivity.java
Java
apache-2.0
10,705
package ru.stqa.pft.sandbox; import org.testng.Assert; import org.testng.annotations.Test; import ru.stqa.rft.sandbox.Point; /** * Created by RomanovaD on 15.05.2017. */ public class PointTests { //Нулевые координаты @Test public void testDistanceZeroCoordinates(){ Point p1 = new Point(0,0); ...
romawkad/java_pft
sandbox/src/test/java/ru/stqa/pft/sandbox/PointTests.java
Java
apache-2.0
947
package com.google.api.ads.adwords.jaxws.v201406.cm; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for CampaignSharedSetError.Reason. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;...
nafae/developer
modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201406/cm/CampaignSharedSetErrorReason.java
Java
apache-2.0
1,010
package com.thaiopensource.relaxng.parse; public interface Parseable <P, NC, L, EA, CL extends CommentList <L>, A extends Annotations <L, EA, CL>> extends SubParser <P, NC, L, EA, CL, A> { P parse (SchemaBuilder ...
lsimons/phloc-schematron-standalone
phloc-schematron/jing/src/main/java/com/thaiopensource/relaxng/parse/Parseable.java
Java
apache-2.0
505
/* * 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...
paplorinc/intellij-community
platform/core-api/src/com/intellij/psi/util/CachedValue.java
Java
apache-2.0
6,496
package edu.stanford.futuredata.macrobase.analysis.classify.stats; import edu.stanford.futuredata.macrobase.util.MacrobaseInternalError; /** * Performs linear interpolation in a lazy manner: interpolation does not actually * occur until an evaluation is requested. */ public class LinearInterpolator { private d...
kexinrong/macrobase
lib/src/main/java/edu/stanford/futuredata/macrobase/analysis/classify/stats/LinearInterpolator.java
Java
apache-2.0
1,539
package com.google.api.ads.dfp.jaxws.v201403; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * * A {@code CreativePlaceholder} describes a slot that a cr...
nafae/developer
modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201403/CreativePlaceholder.java
Java
apache-2.0
7,288
package org.fogbeam.experimental.blackboard.concurrencystuff.jtp.hyde.chapter11; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.geom.Ellipse2D; import java.awt.image.BufferedImage; import javax.swing.JComponent; public cl...
mindcrime/AISandbox
blackboard/src/main/java/org/fogbeam/experimental/blackboard/concurrencystuff/jtp/hyde/chapter11/Squish.java
Java
apache-2.0
2,409
//region Copyright /*Copyright 2015-2016 尚尔路(sel8616@gmail.com/philshang@163.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by ...
cap-framework/cap-http
src/main/java/capframework/http/constant/Regular.java
Java
apache-2.0
1,095
/* * 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...
leafclick/intellij-community
xml/xml-analysis-impl/src/com/intellij/xml/util/CheckTagEmptyBodyInspection.java
Java
apache-2.0
3,650
package com.muses.data.model; import java.util.ArrayList; import java.util.List; public class AdminDataRecordExample { /** * This field was generated by MyBatis Generator. * This field corresponds to the database table suood_admin * * @mbggenerated */ protected String orderByClause; ...
suood/muses-mainproject
muses-manage-mapper/src/main/java/com/muses/data/model/AdminDataRecordExample.java
Java
apache-2.0
23,831
/******************************************************************************* * Copyright (c) 2005 - 2013 Nos Doughty * * 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 * * ...
llaith/toolkit
toolkit-core/src/main/java/org/llaith/toolkit/core/pump/impl/BufferSink.java
Java
apache-2.0
1,784
package net.hamnaberg.jsonstat; import net.hamnaberg.funclite.Optional; import java.util.*; public final class Category implements Iterable<String> { private final Map<String, String> labels = new LinkedHashMap<>(); private final Map<String, Integer> indices = new LinkedHashMap<>(); private final Map<S...
hamnis/json-stat.java
src/main/java/net/hamnaberg/jsonstat/Category.java
Java
apache-2.0
1,899
/* * Copyright © 2008-2009 Esko Luontola, www.orfjackal.net * * 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...
orfjackal/pommac
src/test/java/net/orfjackal/pommac/util/ZipUtilSpec.java
Java
apache-2.0
3,286
/* * Copyright 2015 Tawja. * * 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 w...
tawja/twj-main
twj-platform/twj-plugins/twj-plugin-database/twj-plugin-database-impl-hsql/src/main/java/org/tawja/platform/plugins/database/hsql/impl/HsqldbDatabaseServer.java
Java
apache-2.0
5,393
package com.monkeysarmy.fit.ui.debug; import android.view.View; import android.view.ViewGroup; /** * A {@link android.view.ViewGroup.OnHierarchyChangeListener hierarchy change listener} which recursively * monitors an entire tree of views. */ public final class HierarchyTreeChangeListener implements ViewGroup.OnHi...
niqo01/monkey
src/internalDebug/java/com/monkeysarmy/fit/ui/debug/HierarchyTreeChangeListener.java
Java
apache-2.0
1,757
/* * Copyright 2014 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...
ArtificerRepo/s-ramp-tck
src/main/java/org/oasis_open/docs/s_ramp/ns/s_ramp_v1/PolicyExpression.java
Java
apache-2.0
1,851
package com.mazebert.error; public abstract class Error extends RuntimeException { public Error(String message) { super(message); } public Error(String message, Throwable cause) { super(message, cause); } public abstract int getStatusCode(); @Override public boolean equal...
casid/mazebert-ladder
src/main/java/com/mazebert/error/Error.java
Java
apache-2.0
705
package com.pointr.tensorflow.api; import static com.pointr.tensorflow.api.TensorFlowIf.*; public class PcieDMAServer extends DMAServerBase implements TensorFlowIf.DMAServer { public PcieDMAServer() { String parentDir = System.getenv("GITDIR") + "/tfdma"; String ext = System.getProperty("os.name").equals("...
OpenChaiSpark/OCspark
tfdma/src/main/java/com/pointr/tensorflow/api/PcieDMAServer.java
Java
apache-2.0
2,774
/* * Copyright 2014-present Facebook, 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...
MarkRunWu/buck
src/com/facebook/buck/cxx/ArchiveScrubberStep.java
Java
apache-2.0
5,492
/** * Copyright (C) 2015 Red Hat, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
fabric8io/kubernetes-client
crd-generator/api/src/test/java/io/fabric8/crd/generator/v1/JsonSchemaTest.java
Java
apache-2.0
7,648
/* * Copyright 2017 Young Digital Planet S.A. * * 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...
YoungDigitalPlanet/empiria.player
src/main/java/eu/ydp/empiria/player/client/module/identification/IdentificationModule.java
Java
apache-2.0
7,707
/* * Copyright 2021 Apollo 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 i...
ctripcorp/apollo
apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/v1/controller/ItemController.java
Java
apache-2.0
7,531
package com.felix.unbiz.json.rpc.util; import java.util.Collection; /** * ClassName: CollectionUtils <br> * Function: 集合工具类 * * @author wangxujin */ public final class CollectionUtils { private CollectionUtils() { } /** * 判断集合是否为空 * * @param coll 集合对象 * * @return */ ...
wangxujin/json-rpc
src/main/java/com/felix/unbiz/json/rpc/util/CollectionUtils.java
Java
apache-2.0
666
package com.google.api.ads.dfp.jaxws.v201405; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * * An error having to do with {@link BaseRate}. * * * <p>Java class for BaseRateError complex t...
nafae/developer
modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201405/BaseRateError.java
Java
apache-2.0
1,565
/******************************************************************************* * Copyright (c) 2019 Christopher Smith - https://github.com/christophersmith * * 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 ...
christophersmith/summer-mqtt
summer-mqtt-core/src/main/java/com/github/christophersmith/summer/mqtt/core/util/MqttClientEventPublisher.java
Java
apache-2.0
8,095
package org.incode.module.document.dom.impl.docs.minio; import javax.inject.Inject; import org.apache.isis.applib.annotation.Action; import org.apache.isis.applib.annotation.ActionLayout; import org.apache.isis.applib.annotation.Mixin; import org.apache.isis.applib.annotation.SemanticsOf; import org.apache.isis.appli...
estatio/estatio
estatioapp/app/src/main/java/org/incode/module/document/dom/impl/docs/minio/Document_downloadExternalUrlAsBlob.java
Java
apache-2.0
1,351
package dataparser; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public class TestReadDate { public static void main(String[] args) { String file = "D:\\工作积累\\CSDN-中文IT社区-600万\\www.csdn.net.sql"; int cache = 10...
toulezu/play
sendEmail/test/dataparser/TestReadDate.java
Java
artistic-2.0
1,071
package com.sloop.adapter.utils; import android.content.Context; import android.support.annotation.NonNull; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import java.util.ArrayList; import java.util.List; /** * ListView 的通用适配器 * Auth...
GcsSloop/SUtils
library/src/main/java/com/sloop/adapter/utils/CommonAdapter.java
Java
artistic-2.0
2,424
package com.dozenx.game.engine.item.parser; import cola.machine.game.myblocks.engine.Constants; import cola.machine.game.myblocks.engine.modes.GamingState; import cola.machine.game.myblocks.manager.TextureManager; import cola.machine.game.myblocks.model.base.BaseBlock; import com.dozenx.game.engine.command.EquipPartTy...
ColaMachine/MyBlock
src/main/java/com/dozenx/game/engine/item/parser/ItemEquipParser.java
Java
bsd-2-clause
3,844
/** * anothergltry - Another GL try * Copyright (c) 2015, Matej Kormuth <http://www.github.com/dobrakmato> * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source ...
dobrakmato/jge
src/main/java/eu/matejkormuth/jge/exceptions/gl/ProgramLinkException.java
Java
bsd-2-clause
1,761
package com.myking520.github.client; import org.apache.mina.core.session.IoSession; /** * 客户端管理 */ public interface IClientManager { public IClient create(IoSession session); public void remove(IoSession session); }
myking520/gamefm
gamefm-net/src/main/java/com/myking520/github/client/IClientManager.java
Java
bsd-2-clause
232
/* * Copyright (c) 2002-2017, Manorrock.com. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright * notice, th...
manorrock/json
convert/src/main/java/com/manorrock/json/convert/JsonStringStringConverter.java
Java
bsd-2-clause
2,078
package demo.inpro.system.pento.nlu; import inpro.incremental.processor.RMRSComposer.Resolver; import inpro.irmrsc.rmrs.Formula; import inpro.irmrsc.rmrs.SimpleAssertion; import inpro.irmrsc.rmrs.SimpleAssertion.Type; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java....
ONatalia/Masterarbeit
src/demo/inpro/system/pento/nlu/PentoRMRSResolver.java
Java
bsd-2-clause
12,477
package org.fxmisc.richtext.demo; import java.util.Collection; import java.util.Collections; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.fxmisc.flowless.VirtualizedScrollPane; import org.fxmisc.richtext.CodeArea; import org.fxmisc.richtext.LineNumberFactory; import org.fxmisc.richtext.m...
cemartins/RichTextFX
richtextfx-demos/src/main/java/org/fxmisc/richtext/demo/XMLEditor.java
Java
bsd-2-clause
5,270
/*- * #%L * High-level BoneJ2 commands. * %% * Copyright (C) 2015 - 2020 Michael Doube, BoneJ developers * %% * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the...
bonej-org/BoneJ2
Modern/wrapperPlugins/src/main/java/org/bonej/wrapperPlugins/wrapperUtils/ResultUtils.java
Java
bsd-2-clause
6,867
package com.jme3.glhelper; import java.nio.ByteBuffer; import java.nio.FloatBuffer; import com.jme3.math.ColorRGBA; import com.jme3.shader.Shader; /** * OpenGL helper that does not rely on a specific binding. Its main purpose is to allow * to move the binding-agnostic OpenGL logic from the source code of the both...
chototsu/MikuMikuStudio
engine/src/jogl2/com/jme3/glhelper/Helper.java
Java
bsd-2-clause
1,955
/* * Copyright (c) 2016, JInterval Project. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
jinterval/jinterval
jinterval-expression/src/main/java/net/java/jinterval/expression/example/FireRisk.java
Java
bsd-2-clause
12,563
package cfvbaibai.cardfantasy.engine.feature; import java.util.List; import cfvbaibai.cardfantasy.CardFantasyRuntimeException; import cfvbaibai.cardfantasy.data.Feature; import cfvbaibai.cardfantasy.engine.CardInfo; import cfvbaibai.cardfantasy.engine.EntityInfo; import cfvbaibai.cardfantasy.engine.FeatureInfo; impor...
catree1988/CardFantasy-master
workspace/CardFantasyCore/src/cfvbaibai/cardfantasy/engine/feature/WeakenAllFeature.java
Java
bsd-2-clause
1,173
package com.zjgsu.abroadStu.model; import java.io.Serializable; /** * Created by JIADONG on 16/4/29. */ public class Admin implements Serializable { private Integer id; private String account; private String password; private String token; private String lastLoginIp; public String getAccou...
oGZo/zjgsu-abroadStu-web
backend/zjgsu-abroadStu/abroadStu-model/src/main/java/com/zjgsu/abroadStu/model/Admin.java
Java
bsd-2-clause
1,355
package ChanteySongs.Data; import java.io.*; import java.util.*; import java.text.*; import com.thoughtworks.xstream.*; public class DataUtil { public static final DateFormat formatter = new SimpleDateFormat("MM/dd/yyyy"); public static String getData(Scanner in, PrintWriter out, String name) { ...
wingerjc/ChanteySongs
source/java/ChanteySongs/Data/DataUtil.java
Java
bsd-2-clause
2,472
/* * This file is released under terms of BSD license * See LICENSE file for more information * @author Mikhail Zhigun */ package clawfc.depscan; import java.io.InputStream; import javax.xml.XMLConstants; import javax.xml.transform.stream.StreamSource; import javax.xml.validation.Schema; import javax.xml.validati...
clementval/claw-compiler
driver/src/clawfc/depscan/FortranFileProgramUnitInfoDeserializer.java
Java
bsd-2-clause
1,597
package org.oors; import java.util.Date; import javax.persistence.TypedQuery; import javax.swing.text.html.HTMLDocument; public abstract class Base extends OorsEventGenerator { private static final String NULL_ATTRIBUTE = "Null attribute parameter"; private static final String INVALID_VALUE_TYPE = "Attr...
belteshazzar/oors
oors/src/org/oors/Base.java
Java
bsd-2-clause
12,619
package cn.xz.study.design.pattern.singleton; public class LazySingleton { /** * volatile 确保线程改变了变量的值时 会立刻同步改变量的值 以保证改变量的值是最新的 */ private volatile static LazySingleton singleton = null; private LazySingleton(){ } public static LazySingleton getInstance(){ if(singleton == null){ synchronized (LazySi...
xyz327/studyResource
study-design-pattern/src/main/java/cn/xz/study/design/pattern/singleton/LazySingleton.java
Java
bsd-2-clause
601
package org.javafunk.matchbox.implementations; import org.hamcrest.Description; import org.hamcrest.StringDescription; import org.junit.Test; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; import static org.javafunk.matchbox.Matchers.successfullyMatches; import static org...
javafunk/matchbox
src/test/java/org/javafunk/matchbox/implementations/BetweenMatcherTest.java
Java
bsd-2-clause
2,115
package stallone.mc.pcca; import static stallone.api.API.*; import stallone.api.IAlgorithm; import stallone.api.algebra.Algebra; import stallone.api.algebra.IEigenvalueDecomposition; import stallone.api.cluster.IClustering; import stallone.api.doubles.Doubles; import stallone.api.doubles.IDoubleArray; import stallone....
markovmodel/stallone
src/stallone/mc/pcca/PCCA.java
Java
bsd-2-clause
11,313
package com.blazeloader.api.recipe; import com.google.common.collect.Lists; import net.minecraft.block.Block; import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.CraftingManager; import net.minecraft.item.crafting.IRe...
warriordog/BlazeLoader
src/com/blazeloader/api/recipe/ApiCrafting.java
Java
bsd-2-clause
12,203
package com.rhcloud.igorbotian.rsskit.rest; import com.fasterxml.jackson.databind.JsonNode; import org.apache.http.NameValuePair; import java.io.IOException; import java.util.Set; /** * @author Igor Botian <igor.botian@gmail.com> */ public interface RestEndpoint { JsonNode makeRequest(String endpoint, Set<Nam...
igorbotian/rsskit
src/main/java/com/rhcloud/igorbotian/rsskit/rest/RestEndpoint.java
Java
bsd-2-clause
479
package com.github.bednar.components.inject.service; import javax.annotation.Nonnull; /** * @author Jakub Bednář (07/01/2014 20:59) */ public final class CoffeeCompilerCfg { private Boolean bare = false; private CoffeeCompilerCfg() { } @Nonnull public static CoffeeCompilerCfg build() {...
bednar/components
src/main/java/com/github/bednar/components/inject/service/CoffeeCompilerCfg.java
Java
bsd-2-clause
608
package de.bht.ebus.spotsome.model; import java.util.Objects; import javax.persistence.Access; import javax.persistence.AccessType; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; ...
steven-maasch/spotsome
de.bht.ebus.spotsome/src/main/java/de/bht/ebus/spotsome/model/Spot.java
Java
bsd-2-clause
3,630
package io.iron.ironworker.client.builders; import java.util.Date; import java.util.HashMap; import java.util.Map; public class ScheduleOptionsObject { private Map<String, Object> options; public ScheduleOptionsObject() { options = new HashMap<String, Object>(); } public ScheduleOptionsObjec...
iron-io/iron_worker_java
src/main/java/io/iron/ironworker/client/builders/ScheduleOptionsObject.java
Java
bsd-2-clause
1,705
/* * Copyright (c) 2008, Christophe Delory * 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...
wenerme/Lizzy
src/java/christophedelory/playlist/wpl/Body.java
Java
bsd-2-clause
2,760
/* * VertexMenuListener.java * * Created on March 21, 2007, 1:50 PM; Updated May 29, 2007 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package com.jungstudy; import edu.uci.ics.jung.visualization.VisualizationViewer; /** * Used to indica...
buptwufengjiao/weibo4j
src/com/jungstudy/VertexMenuListener.java
Java
bsd-3-clause
660
/* * Copyright (C) 2016-2017 Fabrice Bouyé * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ package com.bouye.gw2.sab.scene.account; import api.web.gw2.mapping.v1.guilddetails.GuildDetails; import api.web.gw2.map...
fabricebouye/gw2-sab
gw2-sab/src/com/bouye/gw2/sab/scene/account/AccountInfoPaneController.java
Java
bsd-3-clause
11,512
/* * Copyright (c) 2009-2012, 2016 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this li...
bertleft/jmonkeyengine
jme3-bullet/src/main/java/com/jme3/bullet/joints/PhysicsJoint.java
Java
bsd-3-clause
5,286
/* * Copyright (c) 2008-2011 by Paul Seiferth, Zuse Institute Berlin * * Licensed under the BSD License, see LICENSE file for details. * */ package org.xtreemfs.test.common.libxtreemfs; import java.io.IOException; import java.net.InetSocketAddress; import junit.framework.TestCase; import org.junit.After; import...
gurkerl83/millipede-xtreemfs
java/servers/test/org/xtreemfs/test/common/libxtreemfs/ClientTest.java
Java
bsd-3-clause
8,942
/* Copyright (c) 2000-2004 jMock.org */ package org.jmock.core.stub; import org.jmock.core.Invocation; import org.jmock.core.Stub; import org.jmock.util.Assert; public class ThrowStub extends Assert implements Stub { private Throwable throwable; public ThrowStub(Throwable throwable) { this.throwabl...
al3xandru/testng-jmock
core/src/org/jmock/core/stub/ThrowStub.java
Java
bsd-3-clause
1,847
/* * 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.jme3.input.vr.oculus; import com.jme3.app.VREnvironment; import com.jme3.input.vr.HmdType; import com.jme3.input.vr.VRAPI;...
zzuegg/jmonkeyengine
jme3-vr/src/main/java/com/jme3/input/vr/oculus/OculusVR.java
Java
bsd-3-clause
20,261
/* Author: Robert Gazdziak (gazdzia2) */ /* Collaborated with: Thomas Lesniak (tlesnia2) */ import java.util.Random; import java.util.ArrayList; public class QLearningAgent implements Agent { public QLearningAgent() { this.rand = new Random(); } public void initialize(int numOfStates, int numOfActions) { ...
linyufly/QLearningMP
AutoTest/Code/Machine Problem 1 (Part 1)_gazdzia2_attempt_2014-09-22-20-19-36_QLearningAgent.java
Java
bsd-3-clause
2,454