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
/* Copyright (C) 2014 Zi-Xiang Lin <bdl9437@gmail.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 appli...
BDLin/android.explorer_layout
src/nkfust/selab/android/explorer/layout/processer/SetScreenSize.java
Java
apache-2.0
4,184
/** * Most of the code in the Qalingo project is copyrighted Hoteia and licensed * under the Apache License Version 2.0 (release version 0.8.0) * http://www.apache.org/licenses/LICENSE-2.0 * * Copyright (c) Hoteia, 2012-2014 * http://www.hoteia.com - http://twitter.com/hoteia - contact@h...
qalingo/qalingo-engine
apis/api-core/api-core-common/src/main/java/org/hoteia/qalingo/core/domain/TaxCountry.java
Java
apache-2.0
2,963
/* * Copyright (C) 2016 Lavoisier.io * * This file is part of the Lavoisier.io project. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0...
lavoisier/lavoisier.io
lavoisier-osgi/src/main/java/io/lavoisier/osgi/logging/Slf4jOSGiLoggingAdaptor.java
Java
apache-2.0
3,267
/* * Copyright 2011 frdfsnlght <frdfsnlght@gmail.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 appl...
AlmuraDev/Transporter
src/main/java/com/frdfsnlght/transporter/api/event/EntityArriveEvent.java
Java
apache-2.0
1,921
/** * SIX OVAL - https://nakamura5akihito.github.io/ * Copyright (C) 2010 Akihito Nakamura * * 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...
nakamura5akihito/six-oval
src/main/java/io/opensec/six/oval/model/ios/SnmpObject.java
Java
apache-2.0
2,538
/* * Copyright 2010 MIT Strategic Engineering Research Group * * 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...
ptgrogan/spacenet
src/main/java/edu/mit/spacenet/gui/demand/DemandsTab.java
Java
apache-2.0
24,371
package com.google.firebase.udacity.friendlychat; import android.app.Activity; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.TextView; import com.bumptech.glide.Glide; import java.uti...
Ashwin2692/Group-Chat-Application
app/src/main/java/com/google/firebase/udacity/friendlychat/MessageAdapter.java
Java
apache-2.0
1,794
/* * Copyright 2016 Google LLC. 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 app...
GoogleCloudPlatform/app-gradle-plugin
src/main/java/com/google/cloud/tools/gradle/appengine/sourcecontext/SourceContextPlugin.java
Java
apache-2.0
4,002
package com.nimbusds.jose.crypto; import java.security.Signature; import java.security.InvalidKeyException; import java.security.SignatureException; import java.security.interfaces.RSAPrivateKey; import net.jcip.annotations.ThreadSafe; import com.nimbusds.jose.JOSEException; import com.nimbusds.jose.JWSSigner; imp...
gesellix/Nimbus-JOSE-JWT
src/main/java/com/nimbusds/jose/crypto/RSASSASigner.java
Java
apache-2.0
2,097
/* * Copyright (c) 2016-present, RxJava 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-2.0 * * Unless required by applicable la...
ReactiveX/RxJava
src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableFlatMapCompletableCompletable.java
Java
apache-2.0
6,893
package com.doplgangr.secrecy.jobs; import com.doplgangr.secrecy.utils.Util; import com.path.android.jobqueue.Job; import com.path.android.jobqueue.Params; import org.apache.commons.io.FileUtils; import java.io.BufferedOutputStream; import java.io.File; import java.io.OutputStream; public class ShredFileJob extends...
SecrecySupportTeam/secrecy
app/src/main/java/com/doplgangr/secrecy/jobs/ShredFileJob.java
Java
apache-2.0
1,450
package com.ganxin.doingdaily.common.widgets.rowview.text; import com.ganxin.doingdaily.common.widgets.rowview.base.BaseRowDescriptor; /** * Description : TextRowDescriptor <br/> * author : WangGanxin <br/> * date : 2017/1/13 <br/> * email : mail@wangganxin.me <br/> */ public class TextRowDescriptor extends Bas...
WangGanxin/DoingDaily
app/src/main/java/com/ganxin/doingdaily/common/widgets/rowview/text/TextRowDescriptor.java
Java
apache-2.0
707
package com.docker.rpc; public abstract class RPCResponse extends RPCBase { protected RPCRequest request; public RPCResponse(String type) { super(type); } public RPCRequest getRequest() { return request; } public void setRequest(RPCRequest request) { this.request = request; } }
dobybros/scriptcore
SDockerCore/src/com/docker/rpc/RPCResponse.java
Java
apache-2.0
297
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0, (the "License"); you ma...
equella/Equella
Source/Plugins/Core/com.equella.core/src/com/tle/web/api/taxonomy/TaxonomyBeanSerializer.java
Java
apache-2.0
2,618
/* * Copyright 1999-2006 University of Chicago * * 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...
dCache/jglobus-1.8
src/org/globus/gsi/gssapi/auth/Authorization.java
Java
apache-2.0
1,947
package com.can.coolweather.db; import java.util.ArrayList; import java.util.List; import com.can.coolweather.model.City; import com.can.coolweather.model.County; import com.can.coolweather.model.Province; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import an...
can06/coolweather
src/com/can/coolweather/db/CoolWeatherDB.java
Java
apache-2.0
4,799
/* Generated by camel build tools - do NOT edit this file! */ package org.apache.camel.component.directvm; import java.net.URISyntaxException; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import org.apache.camel.spi.EndpointUriFactory; ...
nicolaferraro/camel
components/camel-directvm/src/generated/java/org/apache/camel/component/directvm/DirectVmEndpointUriFactory.java
Java
apache-2.0
2,093
/* * Copyright 2009-2013 by The Regents of the University of California * 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 from * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
tectronics/hyracks
hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/api/ILSMOperationTracker.java
Java
apache-2.0
2,971
package in.co.madhur.ganalyticsdashclock.API; import in.co.madhur.ganalyticsdashclock.Consts; import in.co.madhur.ganalyticsdashclock.Consts.APIPeriod; public class GPeriod extends GType { public GPeriod() { } public GPeriod(String Id, String Name) { super(Id, Name); } public GPeriod(APIPeriod Id, Stri...
madhur/GAnalytics
src/in/co/madhur/ganalyticsdashclock/API/GPeriod.java
Java
apache-2.0
427
/** * Copyright (C) 2015 Caratarse Auth Team <lucio.benfante@gmail.com> * * This file is part of Caratarse Auth Model. * * 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...
caratarse/caratarse-auth
caratarse-auth-model/src/main/java/org/caratarse/auth/model/po/attribute/DateAttribute.java
Java
apache-2.0
1,588
package com.fincatto.documentofiscal.cte300.webservices; import com.fincatto.documentofiscal.assinatura.AssinaturaDigital; import com.fincatto.documentofiscal.cte300.CTeConfig; import com.fincatto.documentofiscal.cte300.classes.CTAutorizador31; import com.fincatto.documentofiscal.cte300.classes.enviolote.CTeEnvio...
jefperito/nfe
src/main/java/com/fincatto/documentofiscal/cte300/webservices/WSRecepcaoLote.java
Java
apache-2.0
4,938
/** * Copyright (c) 2011-2013, kidzhou 周磊 (zhouleib1412@gmail.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...
tuohang/jfinal-framework
src/main/java/com/tuohang/framework/jfinal/ext/handler/AddHeaderHandler.java
Java
apache-2.0
2,084
/* * Copyright 2017 - 2018 Aitu Software Limited. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
aitusoftware/transport
src/test/java/com/aitusoftware/transport/messaging/TopicDispatcherRecordHandlerTest.java
Java
apache-2.0
3,292
/* * Copyright 2005-2014 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/ecl1.php * * Unless required by...
vivantech/kc_fixes
src/main/java/org/kuali/kra/committee/service/ScheduleCorrespondencePrint.java
Java
apache-2.0
823
package fi.vincit.multiusertest.rule.expectation; /** * Function call without return value * @since 1.0 */ public interface FunctionCall { void call() throws Throwable; }
Vincit/multi-user-test-runner
core/src/main/java/fi/vincit/multiusertest/rule/expectation/FunctionCall.java
Java
apache-2.0
179
/* * Copyright 2015 Sergej Meister * * 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...
SergejMeister/intellijob
src/main/java/com/intellijob/exceptions/BaseException.java
Java
apache-2.0
1,298
package typeinfo;//: typeinfo/Staff.java import java.util.*; public class Staff extends ArrayList<Position> { public void add(String title, Person person) { add(new Position(title, person)); } public void add(String... titles) { for(String title : titles) add(new Position(title)); } public Staf...
mayonghui2112/helloWorld
sourceCode/testMaven/thinkingInJava/src/main/java/typeinfo/Staff.java
Java
apache-2.0
2,075
/* * 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 io.hops.metadata.yarn.dal.rmstatestore; import io.hops.exception.StorageException; import io.hops.metadata.common.EntityDataA...
bcleenders/hops-metadata-dal
src/main/java/io/hops/metadata/yarn/dal/rmstatestore/CompletedContainersStatusDataAccess.java
Java
apache-2.0
626
package com.zr.action; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.z...
q631406010228/graduation_project
src/main/java/com/zr/action/UpdateReplyProcessAction.java
Java
apache-2.0
1,923
package com.diffey.view.progressview; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.ValueAnimator; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Color; import android.graphic...
Runpop/ProgressView
progressview/src/main/java/com/diffey/view/progressview/ProgressView.java
Java
apache-2.0
7,354
package com.sms.meal.backend; import com.parse.ParseException; import com.parse.ParseFile; import com.parse.ParseObject; import com.sms.meal.domainmeal.MyMeal; import java.util.ArrayList; import java.util.List; public class ParseMealParser implements MealParser<ParseObject> { public List<MyMeal> extractUnbooked...
kul3r4/sms
apiclient/src/main/java/com/sms/meal/backend/ParseMealParser.java
Java
apache-2.0
1,758
package de.mchllngr.quickopen.receiver; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Build; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import de.mchllngr.quickopen.model.ApplicationModel; import de.mchllngr.qui...
mchllngr/QuickOpen
app/src/main/java/de/mchllngr/quickopen/receiver/NotificationStarterReceiver.java
Java
apache-2.0
1,864
package com.zhukic.sectionedrecyclerview; import org.junit.Before; import org.junit.Test; import static org.assertj.core.api.Java6Assertions.assertThat; import static org.mockito.Mockito.mock; public class SectionManageIsFirstItemInSectionTest { private SectionManager sectionManager; private SectionProvide...
zhukic/Sectioned-RecyclerView
sectioned-recyclerview/src/test/java/com/zhukic/sectionedrecyclerview/SectionManageIsFirstItemInSectionTest.java
Java
apache-2.0
2,191
package com.huawei.esdk.fusionmanager.local.impl.autogen.storage; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous complex type. * * <p>Th...
eSDK/esdk_cloud_fm_r3_native_java
source/FM/V1R3/esdk_fm_native_java/src/main/java/com/huawei/esdk/fusionmanager/local/impl/autogen/storage/DeleteStorageResource.java
Java
apache-2.0
1,573
package com.kbeanie.multipicker.utils; import android.support.v4.content.FileProvider; /** * Created by kbibek on 12/16/16. */ public class AMPFileProvider extends FileProvider { }
ogero/android-multipicker-library
multipicker/src/main/java/com/kbeanie/multipicker/utils/AMPFileProvider.java
Java
apache-2.0
186
/** * 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...
aliyun-beta/aliyun-oss-hadoop-fs
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/RemoteBlockReader.java
Java
apache-2.0
17,550
/* * Copyright 2016 Miroslav Janíček * * 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...
kroepke/luna
luna-luajava-compat/src/main/java/org/classdump/luna/lib/luajava/LuaJavaLib.java
Java
apache-2.0
9,831
/* * 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-lexmodelbuilding/src/main/java/com/amazonaws/services/lexmodelbuilding/model/transform/CreateIntentVersionRequestProtocolMarshaller.java
Java
apache-2.0
2,690
/******************************************************************************* * Copyright 2010 Atos Worldline SAS * * Licensed by Atos Worldline SAS under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. *...
gbm-bailleul/padaf
preflight/src/main/java/net/padaf/preflight/font/FontValidator.java
Java
apache-2.0
2,064
import java.io.IOException; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import org.apache.thrift.protocol.TBinaryProtocol; import org.apache.thrift.transport.TNonblockingSocket; import org.apache.thrift.TException; import org.apache.thr...
RandyAbernethy/ThriftBook
part3/java/async/AsyncClient.java
Java
apache-2.0
3,140
/* * 版权所有 (c) 2015 。 李倍存 (iPso)。 * 所有者对该文件所包含的代码的正确性、执行效率等任何方面不作任何保证。 * 所有个人和组织均可不受约束地将该文件所包含的代码用于非商业用途。若需要将其用于商业软件的开发,请首先联系所有者以取得许可。 */ package org.ipso.lbc.common.aop; import org.apache.logging.log4j.Logger; import org.aspectj.lang.annotation.Aspect; import org.ipso.lbc.common.frameworks.logging.LoggerFactory; ...
misterresse/org.ipso.lbc.common
src/main/java/org/ipso/lbc/common/aop/AopTraceMethods.java
Java
apache-2.0
1,850
package net.brord.plugins.runescape.config; import java.util.LinkedList; import java.util.List; import java.util.Map; import net.brord.plugins.runescape.util.TimeUtil; import org.bukkit.ChatColor; import org.bukkit.configuration.file.FileConfiguration; /** * A template for a main config (or generally c...
kwek20/R-nescap-
Rünescapé/src/main/java/net/brord/plugins/runescape/config/MainConfig.java
Java
apache-2.0
1,783
/* * $Id$ * * SARL is an general-purpose agent programming language. * More details on http://www.sarl.io * * Copyright (C) 2014-2021 the original authors 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 ma...
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/controlflow/ISarlEarlyExitComputer.java
Java
apache-2.0
3,008
/* * 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 ...
sijie/bookkeeper
bookkeeper-server/src/main/java/org/apache/bookkeeper/tools/cli/commands/bookies/InfoCommand.java
Java
apache-2.0
4,110
/** * @author Roman Lotnyk(romanlotnik@yandex.ru) * @version 1 * @since 16.09.2017 */ package ru.lotnyk.todo_list.uttil;
RomanLotnyk/lotnyk
chapter_010/src/main/java/ru/lotnyk/todo_list/uttil/package-info.java
Java
apache-2.0
124
/* * 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 ...
djh4230/Apache-Phoenix
phoenix-core/src/main/java/org/apache/phoenix/coprocessor/ScanRegionObserver.java
Java
apache-2.0
13,917
package pl.craftgames.communityplugin.cdtp.tasks; import org.bukkit.Bukkit; import org.bukkit.scheduler.BukkitTask; import pl.craftgames.communityplugin.cdtp.CDTP; /** * Created by grzeg on 26.12.2015. */ public class TaskManager { private final CDTP plugin; private BukkitTask generalBukkitTask; publi...
grzegorz2047/CommunityDrivenPlugin
src/main/java/pl/craftgames/communityplugin/cdtp/tasks/TaskManager.java
Java
apache-2.0
659
package com.zn.zxw.intelligencize.model; import java.io.Serializable; import java.util.Date; import java.util.List; /** *±¸×¢:ÉçÇøÐÅÏ¢ */ public class CommunityInfo implements Serializable { public CommunityInfo() { } /** *±àºÅ */ private String _id;//±àºÅ /** *Âß¼­±à...
ice-coffee/EIM
src/com/zn/zxw/intelligencize/model/CommunityInfo.java
Java
apache-2.0
3,982
/* * 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 ...
arina-ielchiieva/drill
contrib/format-excel/src/main/java/org/apache/drill/exec/store/excel/ExcelFormatConfig.java
Java
apache-2.0
3,818
package fr.javatronic.blog.massive.annotation1.sub1; import fr.javatronic.blog.processor.Annotation_001; @Annotation_001 public class Class_7254 { }
lesaint/experimenting-annotation-processing
experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_7254.java
Java
apache-2.0
151
/* * Copyright (c) 2015 Henry Addo * * 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...
eyedol/raiburari
raiburari/src/main/java/com/addhen/android/raiburari/presentation/location/AppLocationManager.java
Java
apache-2.0
2,024
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.transform.persistence; import org.elasticsea...
gingerwizard/elasticsearch
x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/persistence/TransformInternalIndex.java
Java
apache-2.0
20,606
package relamapper.accountservice.repository; import org.springframework.data.jpa.repository.JpaRepository; import relamapper.accountservice.model.Account; import java.util.List; public interface AccountsRepository extends JpaRepository<Account, String> { Account getAccountByEmailIgnoreCase(String email); ...
Komode/relamapper
account-service/src/main/java/relamapper/accountservice/repository/AccountsRepository.java
Java
apache-2.0
427
/** * 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...
chicagozer/rheosoft
components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfConsumerMessageTest.java
Java
apache-2.0
4,546
package com.sloshify.controller; import org.springframework.validation.Errors; import org.springframework.validation.ValidationUtils; import org.springframework.validation.Validator; public class SongValidator implements Validator{ @Override public boolean supports(Class clazz) { //just validate the Song instanc...
michelle-gu/sloshify
src/com/sloshify/controller/SongValidator.java
Java
apache-2.0
804
package li.doerf.leavemealone; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
doerfli/leavemealone
app/src/test/java/li/doerf/leavemealone/ExampleUnitTest.java
Java
apache-2.0
314
/* * Copyright (C) 2012, 2013 by it's authors. Some 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 re...
lounge-io/back-up
src/eu/andlabs/studiolounge/ui/StatsFragment.java
Java
apache-2.0
2,482
/* * Copyright 2015-2021 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...
lastaflute/lastaflute-test-fortress
src/main/java/org/docksidestage/remote/fortress/products/purchases/index/RemoteProductsProductidPurchasesPurchaseidReturn.java
Java
apache-2.0
1,303
package com.hannesdorfmann.fragmentargs.processor; import java.util.HashSet; import java.util.Set; import javax.lang.model.element.Element; import javax.lang.model.element.Modifier; import junit.framework.Assert; import org.junit.Before; import org.junit.Test; import org.mockito.Mockito; /** * @author Hannes Dorfman...
sockeqwe/fragmentargs
processor/src/test/java/com/hannesdorfmann/fragmentargs/processor/CompareModifierUtilsTest.java
Java
apache-2.0
2,552
package hu.akarnokd.rxjava; import org.junit.Test; import io.reactivex.Observable; import io.reactivex.observers.TestObserver; public class ConcatWithTest { @Test public void concatWithTest() { Observable.fromCallable(() -> { System.out.println("start"); return "start"; ...
akarnokd/akarnokd-misc
src/test/java/hu/akarnokd/rxjava/ConcatWithTest.java
Java
apache-2.0
1,080
/* * Copyright 2008 JRimum Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by * applicable law or agreed to in ...
braully/bopepo
src/main/java/org/jrimum/bopepo/FatorDeVencimento.java
Java
apache-2.0
8,098
package me.vilsol.nmswrapper.wraps.unparsed; import me.vilsol.nmswrapper.reflections.ReflectiveClass; // TODO Implement @ReflectiveClass(name = "IAnimal") public interface NMSIAnimal { }
Vilsol/NMSWrapper
src/main/java/me/vilsol/nmswrapper/wraps/unparsed/NMSIAnimal.java
Java
apache-2.0
189
/* * Copyright 2015 Michael Quigley * * 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...
michaelquigley/zabbixj
zabbixj-core/src/main/java/com/quigley/zabbixj/agent/active/ActiveThread.java
Java
apache-2.0
12,990
package com.digitalplay.network.ireader.util; import java.io.IOException; import java.io.InputStream; import java.security.GeneralSecurityException; import java.security.MessageDigest; import java.security.SecureRandom; import org.apache.commons.lang3.Validate; /** * 支持SHA-1/MD5消息摘要的工具类. * * 返回ByteSource,可进一步被编码为...
eeyesonme/myspider
projects/ireader/src/main/java/com/digitalplay/network/ireader/util/Digests.java
Java
apache-2.0
2,623
/* * * Copyright 2015 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
ajoymajumdar/genie
genie-test/src/main/java/com/netflix/genie/test/categories/IntegrationTest.java
Java
apache-2.0
856
package com.tts.component.converter; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.serializer.SerializerFeature; import com.tts.util.JsonUtil; import org.springframework.http.HttpInputMessage; import org.springframework.http.HttpOutputMessage; import org.springframework.http.MediaType; import org.sprin...
Fish-Potato/tts-core
src/main/java/com/tts/component/converter/JsonHttpMessageConverter.java
Java
apache-2.0
2,783
package com.lyc.gank.widget; import android.annotation.SuppressLint; import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; import android.webkit.WebView; /** * Created by Liu Yuchuan on 2018/2/24. */ public class ScrollWebView extends WebView { private OnScrollListe...
SirLYC/Android-Gank-Share
app/src/main/java/com/lyc/gank/widget/ScrollWebView.java
Java
apache-2.0
1,477
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v9/errors/account_link_error.proto package com.google.ads.googleads.v9.errors; public final class AccountLinkErrorProto { private AccountLinkErrorProto() {} public static void registerAllExtensions( com.google.protob...
googleads/google-ads-java
google-ads-stubs-v9/src/main/java/com/google/ads/googleads/v9/errors/AccountLinkErrorProto.java
Java
apache-2.0
2,630
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.pom; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiTarget; import com.intellij.psi.search.searches.DefinitionsScopedSearch; import com.intel...
consulo/consulo
modules/base/lang-impl/src/main/java/com/intellij/pom/PomDefinitionSearch.java
Java
apache-2.0
1,110
/* * Copyright 2006-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 ap...
ua-eas/ksd-kc5.2.1-rice2.3.6-ua
rice-middleware/sampleapp/src/it/java/edu/samplu/mainmenu/test/PeopleFlowCreateNewSTJUnitBkMrkGen.java
Java
apache-2.0
1,051
/* * Copyright (c) 2011, Cloudera, Inc. All Rights Reserved. * * Cloudera, Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"). You may not use this file except in * compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
showyou/hoop-webhdfs-hue
hoop-server/src/main/java/com/cloudera/hoop/fs/FSUtils.java
Java
apache-2.0
5,152
/* * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * ...
nuxleus/closure-compiler
src/com/google/javascript/rhino/jstype/JSType.java
Java
apache-2.0
32,020
package com.foo; @DemoRepository public class TestRepository { public String testMethod() { return "hello world"; } }
jadekler/git-misc-2
java-annotations-testing/src/test/java/com/foo/TestRepository.java
Java
apache-2.0
135
/** * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.myboss.cn.common.persistence.dialect.db; import com.myboss.cn.common.persistence.dialect.Dialect; /** * DB2的分页数据库方言实现 * * @author poplar.yfyang * @version 1.0 2010-10-10 下午12:31 * @sin...
ChDiego/myboss
src/main/java/com/myboss/cn/common/persistence/dialect/db/DB2Dialect.java
Java
apache-2.0
3,237
package com.thinkgem.jeesite.modules.edu.entity; import com.thinkgem.jeesite.common.persistence.IdEntity; import org.hibernate.annotations.CacheConcurrencyStrategy; import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicUpdate; import javax.persistence.Basic; import javax.persistence....
mawanjin/edu
src/main/java/com/thinkgem/jeesite/modules/edu/entity/QuestionCategory.java
Java
apache-2.0
851
// Copyright 2014 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
davidzchen/bazel
src/main/java/com/google/devtools/build/lib/analysis/ConfiguredTarget.java
Java
apache-2.0
3,660
/* * 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");...
pfirmstone/river-internet
JGDMS/services/outrigger/outrigger-service/src/main/java/org/apache/river/outrigger/Store.java
Java
apache-2.0
2,165
/** * 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...
chicagozer/rheosoft
components/camel-sql/src/test/java/org/apache/camel/component/sql/SqlRouteTest.java
Java
apache-2.0
10,617
package com.example.fw; public class HelpersBase { protected final ApplicationManager manager; public HelpersBase(ApplicationManager applicationManager) { this.manager = applicationManager; } }
Angy1/addressbook-native-tests
src/com/example/fw/HelpersBase.java
Java
apache-2.0
203
package com.dm.wallpaper.board.databases; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.database.sqlite.SQLiteStatement; import android.support....
SikanderKamran/wallpaperboard
library/src/main/java/com/dm/wallpaper/board/databases/Database.java
Java
apache-2.0
16,661
package com.fflorio.simplevalueconverter.activities; import android.app.AlertDialog; import android.support.annotation.StringRes; import android.support.v7.app.AppCompatActivity; import com.fflorio.simplevalueconverter.R; /** * This Class was created for SimpleValueConverter on 20/12/16 * Designed and developed by...
fr4style/converter
SimpleValueConverter/app/src/main/java/com/fflorio/simplevalueconverter/activities/AbstractActivity.java
Java
apache-2.0
995
package io.cattle.platform.servicediscovery.api.action; import io.cattle.platform.api.action.ActionHandler; import io.cattle.platform.core.addon.ServiceLink; import io.cattle.platform.core.constants.ServiceConstants; import io.cattle.platform.core.dao.ServiceConsumeMapDao; import io.cattle.platform.core.model.Service;...
vincent99/cattle
code/iaas/service-discovery/api/src/main/java/io/cattle/platform/servicediscovery/api/action/AddServiceLinkActionHandler.java
Java
apache-2.0
1,298
package com.chenpan.commoner.mvp.presenter; import com.chenpan.commoner.base.pbase.BasePresenter; import com.chenpan.commoner.mvp.view.IMusicLocalView; /** * Created by Administrator on 2016/7/6. */ public class MusicLocalPresenter extends BasePresenter<IMusicLocalView> { }
a616707902/Commoner
Commoner/app/src/main/java/com/chenpan/commoner/mvp/presenter/MusicLocalPresenter.java
Java
apache-2.0
279
/* * Copyright 2012-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
spring-cloud/spring-cloud-commons
spring-cloud-commons/src/test/java/org/springframework/cloud/client/loadbalancer/LoadBalancerUriToolsTests.java
Java
apache-2.0
8,292
package com.twu.biblioteca.database; import com.twu.biblioteca.databasehandlers.MediaHandler; import com.twu.biblioteca.valueobjects.Book; import com.twu.biblioteca.valueobjects.Media; import com.twu.biblioteca.valueobjects.Movie; import com.twu.biblioteca.valueobjects.User; import java.util.ArrayList; /** * Create...
BaggeRob/twu-biblioteca-robertbagge
src/com/twu/biblioteca/database/MockDatabase.java
Java
apache-2.0
4,493
/* * The Apache License * * Copyright 2009 Marcelo Guimaraes <ataxexe@backpackcloud.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/license...
devnull-tools/trugger
src/test/java/com/backpackcloud/trugger/util/factory/ToNullConverter.java
Java
apache-2.0
840
/******************************************************************************* * Copyright 2014 Rafael Garcia Moreno. * * 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...
bladecoder/bladecoder-adventure-engine
adventure-editor/src/main/java/com/bladecoder/engineeditor/ui/VerbList.java
Java
apache-2.0
8,958
package cobar.client.demo.test; import java.rmi.RemoteException; import java.rmi.registry.LocateRegistry; import java.util.Random; import javax.annotation.Resource; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.naming.Reference; import ja...
lizwmaster/cobar-client-demo
cobar-client-demo/src/test/java/cobar/client/demo/test/JndiTest.java
Java
apache-2.0
3,044
/* * Copyright (C) 2014-2022 Philip Helger (www.helger.com) * philip[at]helger[dot]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/LICEN...
phax/ph-commons
ph-commons/src/main/java/com/helger/commons/typeconvert/ITypeConverterCallback.java
Java
apache-2.0
1,097
/* * Copyright 2017-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
GoogleCloudPlatform/spring-cloud-gcp
spring-cloud-gcp-pubsub/src/main/java/com/google/cloud/spring/pubsub/core/health/HealthTrackerImpl.java
Java
apache-2.0
4,796
package com.me.diankun.firstcode.service; import android.app.IntentService; import android.content.Intent; import android.util.Log; /** * IntentService,在onHandleIntent()方法中自动开启一个线程处理耗时操作,操作结束后,自动调用stopSelf() * <p/> * 注意:无参的构造函数调用有参的父类构造函数 */ public class MyIntentService extends IntentService { p...
qdiankun/firstcode
firstcode/chapter9_service/src/main/java/com/me/diankun/firstcode/service/MyIntentService.java
Java
apache-2.0
1,068
package com.workshop.rest.error; import java.util.List; public interface UserService { List<User> list(); long create(User user); User get(long id) throws UserIsInactiveException; void delete(long id); }
adko-pl/rest-workshop
error-handling/src/main/java/com/workshop/rest/error/UserService.java
Java
apache-2.0
225
/* * Copyright (c) 2010-2015 Pivotal Software, Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. You * may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
SnappyDataInc/snappy-store
gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/engine/GemFireXDQueryObserverAdapter.java
Java
apache-2.0
18,602
package com.apsolete.machinery.common; public interface OnResultListener<T> extends OnProgressListener { void onResult(T result); void onCompleted(int count); }
apsolete/Machinery
app/src/main/java/com/apsolete/machinery/common/OnResultListener.java
Java
apache-2.0
170
/* * Copyright 2012 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...
filip26/api-machine
src/test/java/org/sprintapi/api/http/header/adapter/HttpAcceptHeaderAdapterTest.java
Java
apache-2.0
8,377
/* * 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-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/model/transform/UntagStreamResultJsonUnmarshaller.java
Java
apache-2.0
1,589
package org.awesky.attack.test; /** * Created by vme on 2017/8/29. */ public class AttackTest { }
Awesky/awe-awesomesky
awe-awesomesky-attack/src/test/java/org/awesky/attack/test/AttackTest.java
Java
apache-2.0
101
/* * Copyright (c) 2015 David Venable. * * 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...
dlvenable/dynamic-dynamo
src/test/java/io/venable/amazonaws/dynamo/table/builder/PrimaryKeyBuilderImplTest.java
Java
apache-2.0
4,953
package cn.evilcoder.algorithm; import java.util.Arrays; /** * 素数 * Created by huangshanqi on 2016/7/10. * See more at <a href = "http://www.evilcoder.cn">www.evilcoder.cn</a> */ public class Prime { /** * 判断num是否是素数 * @param num * @return */ public static boolean isPrime(int num) { ...
huangshanqi/algorithom-tutorial
src/cn/evilcoder/algorithm/Prime.java
Java
apache-2.0
1,925
package com.github.shredder121.gh_event_api.handler.issues; import org.springframework.boot.test.SpringApplicationConfiguration; import org.springframework.context.annotation.Bean; import com.github.shredder121.gh_event_api.GHEventApiServer; import com.github.shredder121.gh_event_api.handler.AbstractHandlerTest; @Sp...
Shredder121/gh-event-api
src/test/java/com/github/shredder121/gh_event_api/handler/issues/IssuesHandlerTest.java
Java
apache-2.0
628