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 club.baidu.hust.edu.cn.csapp.activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.content.res.Resources; import android.os.AsyncTask; import android.os.Bundle; im...
lin2020/csapp
app/src/main/java/club/baidu/hust/edu/cn/csapp/activity/NewsContentActivity.java
Java
apache-2.0
9,281
package com.example.prakhar.mobile.ui.more_movies_list; import android.support.annotation.IntDef; import android.support.annotation.Nullable; import android.support.v4.view.ViewCompat; import android.support.v7.widget.CardView; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import a...
prakh25/MovieApp
mobile/src/main/java/com/example/prakhar/mobile/ui/more_movies_list/MovieListAdapter.java
Java
apache-2.0
10,188
package org.camunda.bpm.demo.delegate; import org.camunda.bpm.engine.delegate.DelegateExecution; import org.camunda.bpm.engine.delegate.JavaDelegate; import org.camunda.bpm.engine.variable.Variables; import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.List; import java.util.U...
camunda/camunda-consulting
snippets/test-delegate-createinstances/src/main/java/org/camunda/bpm/demo/delegate/GenerateRandomDataDelegate.java
Java
apache-2.0
959
import java.awt.Color; import obpro.gui.BCanvas; /** * ’e‚ð•\Œ»‚·‚éƒNƒ‰ƒX */ public class Bullet extends ShootingCharacter { //’萔 private final int ALIVE = 1; private final int DEAD = 2; //ó‘Ô private int liveState = ALIVE; //ŠÖ˜AŽQÆ private ShootingGame5 game; //‘®« private Co...
macc704/ObproText
SamplesVol2/oo05/src_shooting/Bullet.java
Java
apache-2.0
1,447
package org.apache.maven.plugin.pmd; /* * 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...
dmlloyd/maven-plugins
maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.java
Java
apache-2.0
8,323
/* * Copyright 2015-2017 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...
trisberg/jdbc
spring-cloud-starter-stream-sink-jdbc/src/main/java/org/springframework/cloud/stream/app/jdbc/sink/JdbcSinkProperties.java
Java
apache-2.0
1,971
package com.example.mock; import android.support.annotation.DrawableRes; import com.example.BuildConfig; import com.example.R; import com.example.model.api.ImagesData; import com.example.model.api.ShotResponse; import com.example.networking.RestService; import retrofit2.mock.BehaviorDelegate; import retrofit2.mock.Moc...
athkalia/Just-Another-Android-App
app/src/debugAndQa/java/com/example/mock/MockRestService.java
Java
apache-2.0
1,600
/* 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...
roberthafner/flowable-engine
modules/flowable-engine/src/test/java/org/activiti/engine/test/bpmn/usertask/DisabledDefinitionInfoCacheTest.java
Java
apache-2.0
4,722
/* Part of the G4P library for Processing http://www.lagers.org.uk/g4p/index.html http://sourceforge.net/projects/g4p/files/?source=navbar Copyright (c) 2012 Peter Lager This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Lic...
automenta/vivisect
src/main/java/automenta/vivisect/gui/GTextAlign.java
Java
apache-2.0
2,894
package ro.msg.cm.controller; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import...
serban-petrescu/candidate-management
server/src/main/java/ro/msg/cm/controller/ImportController.java
Java
apache-2.0
3,294
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
googleapis/google-api-java-client-services
clients/google-api-services-workflows/v1/1.31.0/com/google/api/services/workflows/v1/model/Location.java
Java
apache-2.0
5,292
/** *类名称:用户业务操作日志 *公司: 吉贝克信息技术(北京)有限公司 *文件名:SysLog.java *作者: 张明金 *创建时间: 2013-09-27 09:59 *最后更新: 2013-09-27 09:59 * *1.作者: 张明金 2013-09-27 09:59 *初始版本 *本类提供以下方法: * **(如要修改,请注释 修改人、修改时间、修改说明) * */ package com.gbicc.bll.sys.bean; public class SysLog { private String idstr; //记录编码 private String appId; ...
748251120/bainian_audit01
audit3/src/java/com/gbicc/bll/sys/bean/SysLog.java
Java
apache-2.0
4,376
package com.xinran.qxviewslib.recylerview; import android.content.Context; import android.util.AttributeSet; import android.view.Gravity; import android.view.View; import android.view.ViewGroup; import android.widget.ProgressBar; import android.widget.TextView; import com.xinran.qxviewslib.R; import com.xinran.viewsl...
XinRan5312/viewslib
app/src/main/java/com/xinran/qxviewslib/recylerview/TestLoadingMoreFooter.java
Java
apache-2.0
3,561
/* * #%L * carewebframework * %% * Copyright (C) 2008 - 2016 Regenstrief Institute, 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/L...
carewebframework/carewebframework-core
org.carewebframework.shell/src/main/java/org/carewebframework/shell/designer/PropertyGrid.java
Java
apache-2.0
15,983
/* * (C) Copyright IBM Corp. 2020, 2021. * * 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...
watson-developer-cloud/java-sdk
assistant/src/test/java/com/ibm/watson/assistant/v1/model/OutputDataTest.java
Java
apache-2.0
14,637
package org.apache.aries.subsystem.itests.defect; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertSame; import static org.junit.Assert.fail; import java.io.ByteArrayInputStream; import java.io.By...
acartapanis/aries
subsystem/subsystem-itests/src/test/java/org/apache/aries/subsystem/itests/defect/Aries1383Test.java
Java
apache-2.0
87,574
package example.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class Customer1643 { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; private String firstName; private String l...
spring-projects/spring-data-examples
jpa/deferred/src/main/java/example/model/Customer1643.java
Java
apache-2.0
628
package com.peerless2012.qingniantuzhai.activity; import com.peerless2012.qingniantuzhai.R; /** * @Author peerless2012 * @Email peerless2012@126.com * @DateTime 2016/5/8 10:33 * @Version V1.0 * @Description: 设置界面 */ public class SettingActivity extends BaseActivity { @Override protected int getContentLayou...
peerless2012/qingniantuzhai
app/src/main/java/com/peerless2012/qingniantuzhai/activity/SettingActivity.java
Java
apache-2.0
550
/** * Copyright 2006-2017 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 * * Unle...
hobbitmr/MutiMybatisGenerator
mybatis-generator-core/src/main/java/org/mybatis/generator/internal/util/ClassloaderUtility.java
Java
apache-2.0
2,237
package com.thoughtworks.go.plugin.access.configrepo.contract.material; import com.google.gson.JsonObject; import com.thoughtworks.go.plugin.access.configrepo.contract.CRBaseTest; import org.junit.Test; import java.util.Map; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.Is.is; ...
VibyJocke/gocd
plugin-infra/go-plugin-access/test/com/thoughtworks/go/plugin/access/configrepo/contract/material/CRHgMaterialTest.java
Java
apache-2.0
1,782
package android.chenxiweather.com.chenxiweather.db; import org.litepal.crud.DataSupport; /** * Created by Administrator on 2017/7/14. */ public class Province extends DataSupport{ private int id; //省份ID private String provinceName; //省份名称 private int provinceCode; //省份代码 publ...
chenximaster/chenxiwather
app/src/main/java/android/chenxiweather/com/chenxiweather/db/Province.java
Java
apache-2.0
795
/** * 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...
shaikidris/incubator-falcon
prism/src/test/java/org/apache/falcon/service/FalconTopicSubscriberTest.java
Java
apache-2.0
4,765
package yinlei.applicaptionmarket.common; import javax.inject.Singleton; import dagger.Component; import yinlei.applicaptionmarket.data.DataStoreModule; import yinlei.applicaptionmarket.viewModels.UserViewModel; /** * 在此写用途 * * @version V1.0 <描述当前版本功能> * @FileName: Graph.java * @author: myName * @date: 2016-07...
wuyinlei/ApplicaptionMarket
src/main/java/yinlei/applicaptionmarket/common/Graph.java
Java
apache-2.0
661
package com.enjoyshop.bean; import com.chad.library.adapter.base.entity.MultiItemEntity; /** * Created by 高磊华 * Time 2017/8/7 * Describe: 首页 商品数据 */ public class HomeCampaignBean implements MultiItemEntity { /** * item为大图在左边的 */ public static final int ITEM_TYPE_LEFT = 0; /** * ite...
gaolh89/cniao5
app/src/main/java/com/enjoyshop/bean/HomeCampaignBean.java
Java
apache-2.0
1,532
//: enumerated/Burrito.java package com.yjl.javabase.thinkinjava.enumerated; import static com.yjl.javabase.thinkinjava.enumerated.Spiciness.*; public class Burrito { Spiciness degree; public Burrito(Spiciness degree) { this.degree = degree;} public String toString() { return "Burrito is "+ degree;} public sta...
yangjunlin-const/WhileTrueCoding
JavaBase/src/main/java/com/yjl/javabase/thinkinjava/enumerated/Burrito.java
Java
apache-2.0
552
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * 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...
gravitee-io/gravitee-gateway
gravitee-gateway-flow/src/main/java/io/gravitee/gateway/flow/condition/ConditionEvaluator.java
Java
apache-2.0
976
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * 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...
gravitee-io/gravitee-management-rest-api
gravitee-rest-api-service/src/test/java/io/gravitee/rest/api/service/PlanService_FindByIdTest.java
Java
apache-2.0
3,057
package divconq.locale; public interface ILocaleResource { ILocaleResource getParentLocaleResource(); int rateLocale(String locale); LocaleDefinition getLocaleDefinition(String locale); String getDefaultLocale(); LocaleDefinition getDefaultLocaleDefinition(); Dictionary getDictionary(); }
Gadreel/divconq
divconq.core/src/main/java/divconq/locale/ILocaleResource.java
Java
apache-2.0
297
/* * Copyright (c) 2005 - 2014, WSO2 Inc. (http://www.wso2.org) 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 ...
sacjaya/siddhi-3
modules/siddhi-core/src/main/java/org/wso2/siddhi/core/executor/condition/compare/less_than/LessThanCompareConditionExecutorDoubleLong.java
Java
apache-2.0
1,277
/* * Copyright 2015 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. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, soft...
droolsjbpm/drools
drools-mvel/src/test/java/org/drools/mvel/integrationtests/Query3Test.java
Java
apache-2.0
5,994
package org.gradle.test.performance.mediummonolithicjavaproject.p51; import org.junit.Test; import static org.junit.Assert.*; public class Test1024 { Production1024 objectUnderTest = new Production1024(); @Test public void testProperty0() { String value = "value"; objectUnderTest.s...
oehme/analysing-gradle-performance
my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p51/Test1024.java
Java
apache-2.0
2,110
package com.jvt.microservice.domain.base; import java.io.Serializable; import java.util.List; /** * Created by linqinghuang on 2017/9/9. */ public class PageResult<T> { public PageResult() { } public PageResult(List list, Long total) { this.list = list; this.total = total; } //...
c-jvt/jvt-microservice
jvt-domain/src/main/java/com/jvt/microservice/domain/base/PageResult.java
Java
apache-2.0
676
/* * 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 ...
StyleTang/incubator-rocketmq-externals
rocketmq-console/src/main/java/org/apache/rocketmq/console/service/impl/MessageTraceServiceImpl.java
Java
apache-2.0
11,096
package org.hbird.core.spacesystemmodel.util; import java.util.List; import org.hbird.core.spacesystemmodel.tmtc.Parameter; import org.hbird.core.spacesystemmodel.tmtc.ParameterGroup; /** * Simple utility method for returning the parameters frmo a paramete group. This is only here for camel routes where * using th...
JohannesKlug/hbird
src/core/space-system-model/src/main/java/org/hbird/core/spacesystemmodel/util/ParameterGroupParametersExtractor.java
Java
apache-2.0
612
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2019 Serge Rider (serge@jkiss.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/license...
liuyuanyuan/dbeaver
plugins/org.jkiss.dbeaver.data.gis.view/src/org/jkiss/dbeaver/ui/gis/panel/ManageCRSDialog.java
Java
apache-2.0
11,081
/* * Copyright 2014-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
griffon-plugins/griffon-devicons-plugin
subprojects/griffon-devicons-javafx/src/main/java/griffon/javafx/support/devicons/DevIcon.java
Java
apache-2.0
6,162
/* * Copyright 2012-2017 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...
dagnir/aws-sdk-java
aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/model/transform/StartGameSessionPlacementRequestMarshaller.java
Java
apache-2.0
4,306
package volume1; /** * 151 Power Crisis: 很簡單的呢, 題目比較難懂而已 * 測驗結果: 0.060 ms * 測驗日期: 2008-09-09 * * @author Raymond Wu (小璋丸) */ public class OJ_151 { public static boolean[] turnoff = new boolean[100]; public static char[] cinbuf = new char[256]; public static String readLine() { int ch, offset = 0; try ...
virus-warnning/uvajava
src/volume1/OJ_151.java
Java
apache-2.0
1,243
package cn.missfresh.geapplication.inject.annotate; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Created by gchen on 16/3/2. */ @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) pub...
g977284333/WxRedEnvelopePlugin
app/src/main/java/cn/missfresh/geapplication/inject/annotate/ViewInject.java
Java
apache-2.0
367
/* * 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...
consulo/consulo-spellchecker
src/main/java/com/intellij/spellchecker/quickfixes/AcceptWordAsCorrect.java
Java
apache-2.0
2,100
package org.apereo.cas.adaptors.yubikey.registry; import org.apereo.cas.adaptors.yubikey.YubiKeyAccount; import org.apereo.cas.adaptors.yubikey.YubiKeyAccountValidator; import org.apereo.cas.adaptors.yubikey.YubiKeyDeviceRegistrationRequest; import org.apereo.cas.adaptors.yubikey.YubiKeyRegisteredDevice; import lombo...
pdrados/cas
support/cas-server-support-yubikey/src/test/java/org/apereo/cas/adaptors/yubikey/registry/OpenYubiKeyAccountRegistryTests.java
Java
apache-2.0
1,701
package kdtree; import java.util.ArrayList; import java.util.Arrays; import java.util.PriorityQueue; import java.util.StringTokenizer; public class KDTree { private int maxLeafSize; private int size = 0; private Point[] points; private boolean isLeaf; private boolean isRoot = false; private KDTree left; privat...
luxzoli/OutlierDetection
Hadoop/MRDistanceBasedOutlierID/src/kdtree/KDTree.java
Java
apache-2.0
17,703
/* * Copyright (c) 2005-2010, 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.o...
lakshani/carbon-mobile-appmgt
components/org.wso2.carbon.appmgt.api/src/main/java/org/wso2/carbon/appmgt/api/dto/AppVersionUserUsageDTO.java
Java
apache-2.0
1,774
package com.rosaloves.bitlyj; import org.w3c.dom.Document; import com.rosaloves.bitlyj.Bitly.Provider; import com.rosaloves.bitlyj.data.Pair; /** * A method invokable via a Provider. * * $Id$ * * @author clewis Jul 19, 2010 * * @param <A> */ public interface BitlyMethod<A> { public String getName(); pu...
criedel/bitlyj
src/main/java/com/rosaloves/bitlyj/BitlyMethod.java
Java
apache-2.0
432
/** * #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# * This file is part of the LDP4j Project: * http://www.ldp4j.org/ * * Center for Open Middleware * http://www.centeropenmiddleware.com/ * #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# * ...
ldp4j/ldp4j
framework/server/core/src/main/java/org/ldp4j/server/controller/RetrievalScenario.java
Java
apache-2.0
2,394
package com.xinfan.msgbox.http.service.util; import java.beans.PropertyDescriptor; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import org.springframework.beans.BeansException; import org.springframework.beans.FatalBeanException; import org.springframework.util.Assert; public abstract class Be...
xinfan123/blue-server
bulu-service/src/main/java/com/xinfan/msgbox/http/service/util/BeanUtils.java
Java
apache-2.0
1,862
package org.hswebframework.web.crud.web.reactive; import io.swagger.v3.oas.annotations.Operation; import org.hswebframework.ezorm.rdb.mapping.ReactiveRepository; import org.hswebframework.ezorm.rdb.mapping.defaults.SaveResult; import org.hswebframework.web.api.crud.entity.RecordCreationEntity; import org.hswebframewor...
hs-web/hsweb-framework
hsweb-commons/hsweb-commons-crud/src/main/java/org/hswebframework/web/crud/web/reactive/ReactiveSaveController.java
Java
apache-2.0
5,920
package com.fincatto.documentofiscal.mdfe3.classes.nota; import java.util.List; import org.simpleframework.xml.*; import com.fincatto.documentofiscal.DFBase; import com.fincatto.documentofiscal.validadores.ListValidador; import com.fincatto.documentofiscal.validadores.StringValidador; /** * Created by Eldevan Nery...
jefperito/nfe
src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfo.java
Java
apache-2.0
4,913
/* * Copyright 2005 Robert Cooper, Temple of the Screaming Penguin * * 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...
rometools/rome
rome-modules/src/main/java/com/rometools/modules/itunes/io/ITunesParser.java
Java
apache-2.0
10,107
/* * Copyright 2013 Alex Holmes * * 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...
alexholmes/htuple
examples/src/test/java/com/htuple/SecondarySortTest.java
Java
apache-2.0
2,078
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
davehunt/selenium
java/client/src/org/openqa/selenium/interactions/ButtonReleaseAction.java
Java
apache-2.0
2,067
/* * Copyright 2016 Space Dynamics Laboratory - Utah State University Research 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/LICEN...
jbottel/openstorefront
server/openstorefront/openstorefront-core/model/src/main/java/edu/usu/sdl/openstorefront/core/view/UserWatchWrapper.java
Java
apache-2.0
1,160
/* * 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...
smflorentino/elasticsearch
core/src/test/java/org/elasticsearch/indices/settings/UpdateNumberOfReplicasIT.java
Java
apache-2.0
18,148
package com.king.applib.ui.customview; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; import androidx.annotation.ColorInt; import androidx.annotation.Nullable; import android.text.TextPaint; import android.uti...
hubme/WorkHelperApp
applib/src/main/java/com/king/applib/ui/customview/SimpleBadgeTextView.java
Java
apache-2.0
5,831
// Copyright Eagle Legacy Modernization LLC, 2010-date // Original author: Steven A. O'Hara, Jul 12, 2011 package com.eagle.programmar.Perl; import com.eagle.tokens.TokenSequence; import com.eagle.tokens.punctuation.PunctuationLeftBracket; import com.eagle.tokens.punctuation.PunctuationRightBracket; public class Per...
oharasteve/eagle
src/com/eagle/programmar/Perl/Perl_Subscript.java
Java
apache-2.0
505
/* * PackList is an open-source packing-list for Android * * Copyright (c) 2017 Nicolas Bossard and other contributors. * * 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...
nbossard/packlist
app/src/androidTest/java/com/nbossard/packlist/process/saving/ISavingTest.java
Java
apache-2.0
4,475
package com.github.kospiotr.spring; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; public class AppInjectNamedQualifier { public static void main(String[] args) { //create Inversion of Control container //create co...
kospiotr/spring-classes
12-AnnotationConfiguration/src/main/java/com/github/kospiotr/spring/AppInjectNamedQualifier.java
Java
apache-2.0
858
package com.chipcollector.acceptance; import cucumber.api.CucumberOptions; import cucumber.api.junit.Cucumber; import org.junit.runner.RunWith; @RunWith(Cucumber.class) @CucumberOptions(strict = true, format = {"pretty", "html:target/cucumber-report"}, features = "classpath:features/", glue = ...
onegambler/Chip-Collector-XP
src/test-acceptance/java/com/chipcollector/acceptance/PokerChipXPAT.java
Java
apache-2.0
417
package measure.producer; import java.io.IOException; import java.util.Map; import org.apache.kafka.common.serialization.Serializer; import org.codehaus.jackson.JsonGenerationException; import org.codehaus.jackson.map.JsonMappingException; import org.codehaus.jackson.map.ObjectMapper; import measure.message.Message;...
wangxuefei/measure
measure/src/main/java/measure/producer/MessageSerializer.java
Java
apache-2.0
862
package org.mp4parser.muxer.tracks; import org.mp4parser.boxes.iso23001.part7.CencSampleAuxiliaryDataFormat; import org.mp4parser.muxer.Track; import java.util.List; import java.util.UUID; /** * Track encrypted with common (CENC). ISO/IEC 23001-7. */ public interface CencEncryptedTrack extends Track { List<Cen...
olegloa/mp4parser
muxer/src/main/java/org/mp4parser/muxer/tracks/CencEncryptedTrack.java
Java
apache-2.0
448
package com.example.mobilesafer.activity; import android.app.Activity; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.content.DialogInterface; import android.content.Intent; import android.content.IntentFilter; import android.content.SharedPreferences; import android.os...
dai1995910/MobileSafer
src/com/example/mobilesafer/activity/SettingActivity.java
Java
apache-2.0
6,733
/* * Copyright 2016-2022 Talsma ICT * * 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...
talsma-ict/enumerables
enumerables-validation/src/test/java/nl/talsmasoftware/enumerables/validation/KnownValueValidatorTest.java
Java
apache-2.0
4,936
package org.nd4j.linalg.api.ops.impl.transforms; import lombok.val; import onnx.OnnxProto3; import org.nd4j.autodiff.samediff.SameDiff; import org.nd4j.imports.graphmapper.tf.TFGraphMapper; import org.nd4j.linalg.api.ops.DynamicCustomOp; import org.nd4j.linalg.api.ops.Op; import org.nd4j.linalg.exception.ND4JIllegalSt...
smarthi/nd4j
nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/transforms/Fill.java
Java
apache-2.0
3,855
/* Copyright 2015-2017 Artem Stasiuk 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, softw...
terma/fast-select
src/test/java/com/github/terma/fastselect/benchmark/SelectByStringCompressedByteBenchmark.java
Java
apache-2.0
3,445
package com.codebroker.demo.actor; /* * Copyright (C) 2020 Lightbend Inc. <https://www.lightbend.com> */ import akka.actor.testkit.typed.javadsl.LogCapturing; import akka.actor.testkit.typed.javadsl.TestKitJunitResource; import akka.actor.typed.ActorRef; import akka.actor.typed.ActorSystem; import akka.actor.typed...
zerosoft/CodeBroker
CodeBroker/src/test/java/com/codebroker/demo/actor/InteractionPatternsAskWithStatusTest.java
Java
apache-2.0
7,789
package io.github.sifu.springbootsell.exception; import io.github.sifu.springbootsell.enums.ResultEnum; /** * 销售异常 * * @author sifu */ public class SellException extends RuntimeException { private Integer code; public SellException(ResultEnum resultEnum){ super(resultEnum.getMessage()); ...
Gitsifu/sifu-spring-boot-sell
src/main/java/io/github/sifu/springbootsell/exception/SellException.java
Java
apache-2.0
482
/* * Copyright 2004 Felix Pahl. All rights reserved. * Use is subject to license terms. */ package info.joriki.util; abstract public class Option { final String description; protected ThreadLocal value = new ThreadLocal (); Option (String description) { this.description = description; } publi...
emistoolbox/emistoolbox
libs/joriki/src/info/joriki/util/Option.java
Java
apache-2.0
436
/* * Copyright 2013-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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
alexander071/cf-java-client
cloudfoundry-client/src/main/java/org/cloudfoundry/uaa/groups/_ListGroupsResponse.java
Java
apache-2.0
970
/* * Copyright 2010 ZXing 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 ...
btcontract/wallet
app/src/main/java/com/google/zxing/aztec/decoder/Decoder.java
Java
apache-2.0
15,660
package mx.jovannypcg.loggingusage.util; public class Constant { public static final String APP_TAG = "LoggingUsage"; }
jovannypcg/AndroidLoggingLibrariesUsage
app/src/main/java/mx/jovannypcg/loggingusage/util/Constant.java
Java
apache-2.0
125
/* * 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...
aws/aws-sdk-java
aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53domains/model/transform/CancelDomainTransferToAnotherAwsAccountResultJsonUnmarshaller.java
Java
apache-2.0
3,165
package dk.glutter.android.knr; import android.app.Application; import com.crashlytics.android.Crashlytics; import com.google.android.libraries.cast.companionlibrary.cast.CastConfiguration; import com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager; import dk.glutter.android.knr.ui.FullScreenPl...
izbrannick/Radio
mobile/src/main/java/dk/glutter/android/knr/KNRApplication.java
Java
apache-2.0
1,077
package distribution; import java.util.List; import org.springframework.context.support.ClassPathXmlApplicationContext; import commonservices.naming.NamingProxy; import distribution.beans.VMsConfigurationBean; import distribution.services.jcloud.VmBuilder; import distribution.services.model.RunningVM; public class ...
felipealencar/openstackmiddleware
src/distribution/VMManagerClientMobile.java
Java
apache-2.0
2,245
/* * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ /* * @(#)CompoundPK3.java 1.1 06/05/03 */ package com.sun.ts.tests.ejb30.persistence.types.primarykey.compound; /* * Class used to define a compound primary key for Entity beans....
datanucleus/tests
jpa/TCK_1.0/src/com/sun/ts/tests/ejb30/persistence/types/primarykey/compound/CompoundPK3.java
Java
apache-2.0
1,638
package org.artifactory.ui.rest.model.artifacts.browse.treebrowser.tabs.permission; import java.util.List; import org.artifactory.rest.common.model.BaseModel; import org.artifactory.rest.common.model.RestPaging; /** * @author Chen Keinan */ public class PagingModel extends BaseModel { PagingModel() { } ...
alancnet/artifactory
web/rest-ui/src/main/java/org/artifactory/ui/rest/model/artifacts/browse/treebrowser/tabs/permission/PagingModel.java
Java
apache-2.0
994
/* Copyright 2014-2016 PetaByte Research Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ...
petabyte-research/redflags
redflags-engine/src/main/java/hu/petabyte/redflags/engine/gear/indicator/hu/OpeningDateDiffersFromDeadlineIndicator.java
Java
apache-2.0
2,472
/* * Copyright 2014 http://Bither.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 applicable law or agree...
CryptArc/templecoin-bither
bither-android/src/net/bither/api/GetCookieApi.java
Java
apache-2.0
1,686
package org.globsframework.model.utils; import org.globsframework.metamodel.Field; import org.globsframework.metamodel.fields.DoubleField; import org.globsframework.metamodel.fields.IntegerField; import org.globsframework.metamodel.fields.StringField; import org.globsframework.model.Glob; import org.globsframework.mod...
MarcGuiot/globsframework
src/main/java/org/globsframework/model/utils/GlobFunctors.java
Java
apache-2.0
1,070
/* * Copyright (c) 2014 TIKINOU 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 t...
MythTV-Clients/MythTV-Service-API
src/main/java/org/mythtv/services/api/v028/beans/CastMember.java
Java
apache-2.0
2,575
/** * */ package cn.yoho.im.data; import java.util.LinkedList; /** * TTServerl�ӳ� * * @author ice.deng * */ public class TTServerPool { private static LinkedList<TTServer> freeConnections = new LinkedList<TTServer>(); private static LinkedList<TTServer> connections = new LinkedList<TT...
Groostav/CMPT880-term-project
intruder/benchs/cometd/src/main/java/cn/yoho/im/data/TTServerPool.java
Java
apache-2.0
3,737
/* * Copyright 1999-2011 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...
xiaomozhang/druid
druid-1.0.9/src/test/java/com/alibaba/druid/benckmark/wall/WallBenchmarkTest1.java
Java
apache-2.0
2,292
package uk.recurse.adtstool.stream; import uk.recurse.bitwrapper.annotation.Bits; import uk.recurse.bitwrapper.annotation.Bytes; import java.nio.ByteBuffer; import java.util.List; import static java.util.Arrays.asList; import static java.util.Collections.unmodifiableList; public interface AdtsFrame { List<Inte...
bencampion/adts-tool
src/main/java/uk/recurse/adtstool/stream/AdtsFrame.java
Java
apache-2.0
926
package com.saasovation.common.domain; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.util.Date; /** * @author : huanghy * @create : 2016/4/19 0019 ÏÂÎç 3:35 * @since : ${VERSION} */ public abstract class AbstractDomainEvent implements DomainEvent { ...
yangcy2016/saasovation-all
saasovation-common/src/main/java/com/saasovation/common/domain/AbstractDomainEvent.java
Java
apache-2.0
848
package ru.stqa.yuri.addressbook1.tests; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import ru.stqa.yuri.addressbook1.model.Contacts; import ru.stqa.yuri.addressbook1.model.GroupData1; import ru.stqa.yuri.addressbook1.model.NewContactData1; import java.util.concurrent.TimeUnit; im...
Juribt/Java_Challenge_
Addressbook_web_tests_1/src/test/java/ru/stqa/yuri/addressbook1/tests/addContactToGroup.java
Java
apache-2.0
3,412
/* * 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 ...
smanvi-pivotal/geode
geode-core/src/test/java/org/apache/geode/cache/query/functional/IndexWithSngleFrmAndMultCondQryJUnitTest.java
Java
apache-2.0
51,394
package cn.edu.ruc.iir.rainbow.common.exception; /** * Created by hank on 17-5-4. */ public class CommandException extends Exception { public CommandException (String message) { super (message); } @Override public String getMessage () { return super.getMessage(); } @...
dbiir/rainbow
rainbow-common/src/main/java/cn/edu/ruc/iir/rainbow/common/exception/CommandException.java
Java
apache-2.0
406
package br.com.pub.test.mongo; import static org.junit.Assert.*; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.mongodb.core.MongoTemplate; import org.springframewor...
thiagoandrade6/pubanywhere
src/test/java/br/com/pub/test/mongo/ItemTest.java
Java
apache-2.0
1,109
/* * #%L * GarethHealy :: JBoss Fuse Examples :: WS Playground :: WS SAML CXF * %% * Copyright (C) 2013 - 2018 Gareth Healy * %% * 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 * * ...
garethahealy/jboss-fuse-examples
ws-playground/ws-saml-cxf/src/main/java/com/garethahealy/wssaml/cxf/services/DefaultHelloWorldService.java
Java
apache-2.0
1,728
package de.predic8.a_simple; import org.apache.kafka.clients.consumer.ConsumerRecord; import org.apache.kafka.clients.consumer.KafkaConsumer; import org.apache.kafka.common.serialization.StringDeserializer; import java.util.Properties; import static java.time.Duration.ofSeconds; import static java.util.Collections.s...
predic8/apache-kafka-demos
src/main/java/de/predic8/a_simple/DruckConsumer.java
Java
apache-2.0
1,251
/* * Copyright 2015 Austin Keener, Michael Ritter, Florian Spieß, and the JDA contributors * * 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...
DV8FromTheWorld/JDA
src/main/java/net/dv8tion/jda/api/sharding/ThreadPoolProvider.java
Java
apache-2.0
1,721
package org.cucina.security.authentication; import org.cucina.security.model.User; import org.cucina.security.repository.UserRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.authentication.BadCredentialsException; import org.springframework.security.authent...
cucina/opencucina
nosql/security/src/main/java/org/cucina/security/authentication/RepositoryAuthenticationService.java
Java
apache-2.0
1,909
/** * 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 ...
jasonchw/inspektr
inspektr-support-spring/src/main/java/org/jasig/inspektr/audit/support/JdbcAuditTrailManager.java
Java
apache-2.0
8,571
/* * Copyright 2011 Chad Retz * * 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...
cretz/gwt-node
examples/features/src/org/gwtnode/examples/features/feature/Feature.java
Java
apache-2.0
786
package net.tomp2p.futures; import io.netty.buffer.Unpooled; import java.io.IOException; import net.tomp2p.message.Buffer; import net.tomp2p.message.Message; public class FutureDirect extends FutureResponse { final private boolean isRaw; private boolean convertToHeapBuffer = true; private Object object = null...
thirdy/TomP2P
core/src/main/java/net/tomp2p/futures/FutureDirect.java
Java
apache-2.0
3,922
package com.tortel.authenticator.common.data; import android.os.Parcel; import android.os.Parcelable; /** * A class which contains all the information about an account. */ public class AccountInfo implements Parcelable { private final int id; private final String secret; private final AccountDb.OtpType ...
Tortel/authenticator
common/src/main/java/com/tortel/authenticator/common/data/AccountInfo.java
Java
apache-2.0
2,505
package dev.jeka.core.tool.builtins.scaffold; import dev.jeka.core.api.depmanagement.resolution.JkDependencyResolver; import dev.jeka.core.api.utils.JkUtilsIO; import dev.jeka.core.api.utils.JkUtilsString; import dev.jeka.core.tool.JkClass; import dev.jeka.core.tool.JkDoc; import dev.jeka.core.tool.JkPlugin; import de...
jerkar/jerkar
dev.jeka.core/src/main/java/dev/jeka/core/tool/builtins/scaffold/JkPluginScaffold.java
Java
apache-2.0
2,289
package org.apache.solr.cloud; /* * 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...
cscorley/solr-only-mirror
core/src/java/org/apache/solr/cloud/Overseer.java
Java
apache-2.0
85,059
package psidev.psi.mi.jami.mitab.extension.datasource; import junit.framework.Assert; import org.junit.Test; import psidev.psi.mi.jami.binary.ModelledBinaryInteraction; import psidev.psi.mi.jami.factory.options.MIFileDataSourceOptions; import psidev.psi.mi.jami.model.ModelledInteraction; import psidev.psi.mi.jami.tab....
MICommunity/psi-jami
jami-mitab/src/test/java/psidev/psi/mi/jami/mitab/extension/datasource/MitabModelledBinaryStreamSourceTest.java
Java
apache-2.0
8,311
/****************************************************************************** * 版权所有 刘大磊 2013-07-01 * * 作者:刘大磊 * * 电话:13336390671 * * email:ldlqdsd@126.com ...
ldlqdsdcn/wms
base/src/main/java/com/delmar/base/dao/mybatis/EventTypeDaoMybatis.java
Java
apache-2.0
1,479
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
kiereleaseuser/uberfire
uberfire-extensions/uberfire-preferences/uberfire-preferences-processors/src/main/java/org/uberfire/ext/preferences/processors/WorkbenchPreferenceProcessor.java
Java
apache-2.0
6,110