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 2015 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.ap...
sekigor/hawkular-agent
hawkular-wildfly-agent/src/main/java/org/hawkular/agent/monitor/inventory/MeasurementType.java
Java
apache-2.0
1,408
package com.loocweather.app; 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); } }
wangchuyi11/loocweather
app/src/test/java/com/loocweather/app/ExampleUnitTest.java
Java
apache-2.0
312
package com.credit.actions.party; import com.credit.managers.EMF; import com.credit.managers.SessionManager; import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionSupport; import entities.ChoicesPartiesEntity; import entities.UsersEntity; import javax.persistence.EntityManager; import jav...
smile59/credit_mut
src/com/credit/actions/party/RegisterBetAction.java
Java
apache-2.0
1,732
/* * Copyright 2014-2019 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...
jentfoo/aws-sdk-java
aws-java-sdk-acmpca/src/main/java/com/amazonaws/services/acmpca/model/transform/UpdateCertificateAuthorityResultJsonUnmarshaller.java
Java
apache-2.0
1,742
package com.example.androidwork.foodsharing.Activities.Fragments.Lockers; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; public class LockersFragmentPagerAdapter extends FragmentPagerAdapter { public static final int LOC...
Johnny850807/Food-Sharing
Food-Sharing/FoodSharing/app/src/main/java/com/example/androidwork/foodsharing/Activities/Fragments/Lockers/LockersFragmentPagerAdapter.java
Java
apache-2.0
657
package org.qfox.jestful.gson; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import org.qfox.jestful.commons.IOKit; import org.qfox.jestful.core.*; import org.qfox.jestful.core.formatting.RequestSerializer; import org.qfox.jestful.core.io.MultipartOutputStream; import java.io.IOException; import ja...
core-lib/jestful
jestful-gson/src/main/java/org/qfox/jestful/gson/GsonRequestSerializer.java
Java
apache-2.0
2,464
package edu.the.way.of.testing.infrastructure; import edu.the.way.of.testing.Flight; import edu.the.way.of.testing.SeatClass; import java.time.LocalDate; import java.time.format.DateTimeFormatter; /** * User: pcierpiatka */ public class FlightTestBuilder { private Flight flight; private DateTimeFormatter ...
pcierpiatka/testing_presentation
src/test/edu/the/way/of/testing/infrastructure/FlightTestBuilder.java
Java
apache-2.0
2,646
/* * Copyright 2014-2019 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...
jentfoo/aws-sdk-java
aws-java-sdk-directory/src/main/java/com/amazonaws/services/directory/model/transform/TrustMarshaller.java
Java
apache-2.0
5,187
/* * Copyright (C) 2013 Square, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
anton46/picasso
picasso/src/main/java/com/squareup/picasso/Downloader.java
Java
apache-2.0
4,750
package leetcode.medium; /** * Created by wangxiaoyi on 15/11/18. */ public class BestTimetoBuyandSellStock { public int maxProfit(int[] prices) { //int max = Integer.MIN_VALUE; int max = 0; int len = prices.length; if(len < 2) return 0; else { // prices[0] = 0...
grokcoder/leetcode
src/main/java/leetcode/medium/BestTimetoBuyandSellStock.java
Java
apache-2.0
841
/* * Copyright (C) 2018 Muhammad Tayyab Akram * * 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...
mta452/Tehreer-Android
tehreer-android/src/main/java/com/mta/tehreer/layout/TextAlignment.java
Java
apache-2.0
1,175
package se.l4.vibe.sampling; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.notNullValue; import static org.hamcrest.MatcherAssert.assertThat; import java.util.concurrent.ThreadLocalRandom; import org.junit.Test; public class SamplerTest { @Test public void testAddingListenerS...
LevelFourAB/vibe
vibe-api/src/test/java/se/l4/vibe/sampling/SamplerTest.java
Java
apache-2.0
1,245
package com.maxheapsize.quant.infrastructure; import org.concordion.api.ResultSummary; import org.concordion.internal.ConcordionBuilder; import org.testng.annotations.Test; public abstract class AbstractConcordionTestNgTest { @Test(groups = {"concordion"}) public void processSpecification() throws Throwable { ...
oliverwehrens/quant
src/test/java/com/maxheapsize/quant/infrastructure/AbstractConcordionTestNgTest.java
Java
apache-2.0
491
/** * Copyright 2007-2015, Kaazing Corporation. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
chao-sun-kaazing/gateway
management/src/test/java/org/kaazing/gateway/management/test/util/TestLoginModule.java
Java
apache-2.0
1,892
/* * Copyright 2019 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 ...
vam-google/google-cloud-java
google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerStub.java
Java
apache-2.0
18,998
/* * 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-tests/hyracks-storage-am-lsm-invertedindex-test/src/test/java/org/apache/hyracks/storage/am/lsm/invertedindex/LSMInvertedIndexInsertTest.java
Java
apache-2.0
1,072
package com.qh.common.domain; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.alibaba.fastjson.JSON; /** * tree TODO <br> * * @author kangxu2 2017-1-7 * */ public class Tree<T> { /** * 节点ID */ private String id; /** * 显示节点文本 */ private String text; /** * 节点状态...
chyzh1689/pay
pay-product/src/main/java/com/qh/common/domain/Tree.java
Java
apache-2.0
2,572
/** * $Id: QuestionManagerImpl.java 3951 2010-11-02 10:13:17Z orangeforjava $ */ package org.openuap.cms.survey.manager.impl; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.openuap.base.util.QueryInfo; import org.openuap.base.util.context.PageBuilder; i...
juweiping/ocms
src/org/openuap/cms/survey/manager/impl/QuestionManagerImpl.java
Java
apache-2.0
12,810
package pl.com.turski.service.shipment; import com.google.appengine.repackaged.com.google.common.collect.Lists; import org.hibernate.validator.constraints.NotBlank; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereot...
trak17/Trak
src/main/java/pl/com/turski/service/shipment/ShipmentStatusServiceImpl.java
Java
apache-2.0
2,100
package com.intel.icecp.core.mock; import com.intel.icecp.core.Channel; import com.intel.icecp.core.metadata.Persistence; import com.intel.icecp.node.messages.UndefinedMessage; import org.junit.Test; import java.net.URI; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import static ...
icecp/icecp
icecp-node/src/test/java/com/intel/icecp/core/mock/MockChannelsTest.java
Java
apache-2.0
929
/* * 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 ...
Madhuka/incubator-zeppelin
zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java
Java
apache-2.0
54,280
package mobi.cloudymail.mailclient; import mobi.cloudymail.mailclient.net.ServerAgent; import mobi.cloudymail.util.MyApp; import mobi.cloudymail.util.Utils; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import a...
glorycloud/GloryMail
CloudyMail/src/mobi/cloudymail/mailclient/AlarmReceiver.java
Java
apache-2.0
2,155
package com.Android2.model; import android.os.Parcel; import android.os.Parcelable; import com.Android2.controller.IMapNodeController; import com.google.android.gms.maps.model.LatLng; /** * Created by cirkus on 24.07.2017. */ public class MapNode implements Parcelable { public LatLng location = null; publ...
j0rg3n/skattejakt
app/src/main/java/com/Android2/model/MapNode.java
Java
apache-2.0
954
package fr.free.nrw.commons.utils; import fr.free.nrw.commons.location.LatLng; import java.text.NumberFormat; public class LengthUtils { /** Returns a formatted distance string between two points. * @param point1 LatLng type point1 * @param point2 LatLng type point2 * @return string distance ...
tobias47n9e/apps-android-commons
app/src/main/java/fr/free/nrw/commons/utils/LengthUtils.java
Java
apache-2.0
2,208
// // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2 generiert // Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // �nderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. // Generiert: 2014.02.04...
milg0/onvif-java-lib
src/org/onvif/ver10/schema/MediaCapabilitiesExtension.java
Java
apache-2.0
3,816
/* * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.imageio.plugins.gif; import javax.imageio.ImageTypeSpecifier; import javax.imageio.met...
haikuowuya/android_system_code
src/com/sun/imageio/plugins/gif/GIFStreamMetadata.java
Java
apache-2.0
11,058
/* * JBoss, Home of Professional Open Source. * Copyright 2020, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * unde...
wildfly-clustering/wildfly-clustering-tomcat
common/src/test/java/org/wildfly/clustering/tomcat/AbstractSmokeITCase.java
Java
apache-2.0
5,750
/* * Copyright 2017-present Open Networking Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
sdnwiselab/onos
core/store/primitives/src/main/java/org/onosproject/store/primitives/resources/impl/AtomixAtomicCounterMapCommands.java
Java
apache-2.0
8,989
/* * Copyright (C) Scott Cranton, Jakub Korab, and Christian Posta * https://github.com/CamelCookbook * * 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/lice...
CamelCookbook/camel-cookbook-examples
06-splitting-aggregating/src/test/java/org/camelcookbook/splitjoin/splitaggregate/SplitAggregateExceptionHandlingSpringTest.java
Java
apache-2.0
2,164
package com.zhongshu.maintenanceexpert.bean; import java.io.Serializable; import java.util.List; /** * Created by a on 2017/4/25. */ public class CameraOrderBean implements Serializable { /** * status : 调取成功 * data : [{"order_id":"1","uid":"654","title":"biaoti","details":"问题描述","address":"Jordan",...
officerteam/zhongshuyunwei
app/src/main/java/com/zhongshu/maintenanceexpert/bean/CameraOrderBean.java
Java
apache-2.0
3,523
public class TestIfElseIf { /** * @param args */ public static void main(String[] args) { boolean a = true; boolean b = true; if(a){ System.out.println("a"); }else if(b){ System.out.println("b"); }else{ System.out.println("c"); } } }
atulsm/Test_Projects
src/TestIfElseIf.java
Java
apache-2.0
272
/* * Copyright Strimzi authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.strimzi.systemtest.resources.kubernetes; import io.fabric8.kubernetes.api.model.rbac.ClusterRoleBinding; import io.fabric8.kubernetes.api.model.rbac.ClusterRoleBindingBu...
scholzj/barnabas
systemtest/src/main/java/io/strimzi/systemtest/resources/kubernetes/ClusterRoleBindingResource.java
Java
apache-2.0
2,773
package com.bluesensenetworks.proximitysense.model; import com.bluesensenetworks.proximitysense.model.actions.ActionBase; public interface RangingListener { void didReceiveAction(ActionBase action); }
BlueSenseNetworks/Android
ProximitySenseSDK/lib/src/main/java/com/bluesensenetworks/proximitysense/model/RangingListener.java
Java
apache-2.0
211
/* * Copyright 2017 IBM Corp. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
lpatino10/android-sdk
library/src/main/java/com/ibm/watson/developer_cloud/android/library/audio/StreamPlayer.java
Java
apache-2.0
3,143
/* * 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 ...
Ile2/struts2-showcase-demo
src/plugins/embeddedjsp/src/main/java/org/apache/struts2/el/lang/FunctionMapperImpl.java
Java
apache-2.0
6,042
package org.funsec.hmac; import org.junit.Test; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.time.Instant; import java.util.Arrays; import java.util.TimeZone; impor...
gerritjvv/cryptoplayground
hmac/java/hmac/src/test/java/org/funsec/hmac/TOTPTest.java
Java
apache-2.0
4,078
/* * jupiter-interface * * Copyright (c) 2017, Michael Aichler. * 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...
maichler/sbt-jupiter-interface
src/library/src/test/java/net/aichler/jupiter/internal/filter/GlobFilterTest.java
Java
apache-2.0
2,253
/* * Copyright 2014-2019 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...
jentfoo/aws-sdk-java
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/ListThingGroupsRequest.java
Java
apache-2.0
10,222
/* * Copyright 2014-2019 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...
jentfoo/aws-sdk-java
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/transform/CreateDeploymentConfigRequestMarshaller.java
Java
apache-2.0
3,230
package ca.uhn.fhir.jpa.dao.dstu3; /* * #%L * HAPI FHIR JPA Server * %% * Copyright (C) 2014 - 2016 University Health Network * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
Cloudyle/hapi-fhir
hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoValueSetDstu3.java
Java
apache-2.0
15,946
/* * 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-cloudfront/src/main/java/com/amazonaws/services/cloudfront/model/transform/DeleteRealtimeLogConfigRequestMarshaller.java
Java
apache-2.0
3,291
package com.github.neuralnetworks.calculation.neuronfunctions; import com.github.neuralnetworks.architecture.Connections; import com.github.neuralnetworks.architecture.Layer; import com.github.neuralnetworks.calculation.ConnectionCalculator; import com.github.neuralnetworks.calculation.memory.ValuesProvider; import j...
lehmann/BrainSimulator
app/src/main/java/com/github/neuralnetworks/calculation/neuronfunctions/AparapiTanh.java
Java
apache-2.0
1,375
package com.clever.presenter.impl; import com.clever.presenter.SplashPresenter; import com.clever.ui.interf.SplashView; /** * @author liuhea * @date 2016-12-29</p> */ public class SplashPresenterImpl implements SplashPresenter { private SplashView mSplashView; public SplashPresenterImpl(...
liuhea/Clever
app/src/main/java/com/clever/presenter/impl/SplashPresenterImpl.java
Java
apache-2.0
754
/* * Copyright 2017 Yahoo 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...
yahoo/athenz
servers/zts/src/main/java/com/yahoo/athenz/zts/cert/X509CertRequest.java
Java
apache-2.0
24,840
/* * 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...
clonetwin26/buck
src/com/facebook/buck/apple/project_generator/WorkspaceAndProjectGenerator.java
Java
apache-2.0
40,488
/* * Copyright (c) 2009 Piotr Piastucki * * This file is part of Patchca CAPTCHA library. * * Patchca is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * ...
blademainer/common_utils
common_helper/src/main/java/com/xiongyingqi/captcha/utils/encoder/EncoderHelper.java
Java
apache-2.0
1,317
package org.ibase4j.service; import org.ibase4j.model.SysDept; import top.ibase4j.core.base.BaseService; /** * @author ShenHuaJie * @since 2018年4月24日 上午10:59:30 */ public interface SysDeptService extends BaseService<SysDept> { }
iBase4J/iBase4J
iBase4J-SYS-Facade/src/main/java/org/ibase4j/service/SysDeptService.java
Java
apache-2.0
259
/** * 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...
kingargyle/turmeric-bot
camel-core/src/test/java/org/apache/camel/impl/DefaultCamelContextAutoStartupTest.java
Java
apache-2.0
3,088
/* * Copyright 2019 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 ...
google/android-kerberos-authenticator
src/main/javatests/com/google/android/apps/work/kerberosauthenticator/BaseAuthenticatorActivityTest.java
Java
apache-2.0
5,567
/* * Copyright 2011 Henry Coles * * 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 ...
tectronics/pitestrunner
pitest/src/test/java/org/pitest/mutationtest/engine/gregor/MethodInfoTest.java
Java
apache-2.0
6,688
/** * Copyright 2014 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 applicable law or agreed t...
akarnokd/RxJavaFlow
src/main/java/rx/internal/operators/OnSubscribeUsing.java
Java
apache-2.0
4,699
package br.edu.ifpe.tads.pdm.book_tea; import android.os.Bundle; import android.app.Activity; public class BookReadActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_book_read); } ...
DavidBorges/BooK_Tea_Rebuild
Book_Tea/app/src/main/java/br/edu/ifpe/tads/pdm/book_tea/BookReadActivity.java
Java
apache-2.0
322
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p4beta1/image_annotator.proto package com.google.cloud.vision.v1p4beta1; public interface AsyncBatchAnnotateFilesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p4beta1.As...
vam-google/google-cloud-java
google-api-grpc/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/AsyncBatchAnnotateFilesResponseOrBuilder.java
Java
apache-2.0
2,123
package com.ribose.jenkins.plugin.awscodecommittrigger.it.feature; import com.ribose.jenkins.plugin.awscodecommittrigger.it.AbstractFreestyleTestProject; import com.ribose.jenkins.plugin.awscodecommittrigger.it.fixture.ProjectFixture; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Par...
jenkinsci/aws-codecommit-trigger-plugin
src/test/java/com/ribose/jenkins/plugin/awscodecommittrigger/it/feature/AbstractFreestyleParamsTestProject.java
Java
apache-2.0
991
package com.allere.sample.thrift.service.impl; /** * 这个类用来实现自动生成消息类里面的Iface接口,属于 * 服务器端的消息处理实现 * */ import org.apache.thrift.TException; import com.allere.sample.thrift.service.HelloWorldService.Iface; public class HelloWorldImpl implements Iface { public HelloWorldImpl() { } @Override ...
enjoy0924/sample-java
src/com/allere/sample/thrift/service/impl/HelloWorldImpl.java
Java
apache-2.0
549
package org.marketcetera.marketdata.yahoo; import java.util.HashMap; import java.util.Map; import org.marketcetera.util.misc.ClassVersion; /* $License$ */ /** * Represents a field in a Yahoo market data request. * * @author <a href="mailto:colin@marketcetera.com">Colin DuPlantis</a> * @version $Id: YahooField....
nagyist/marketcetera
trunk/modules/marketdata/yahoo/src/main/java/org/marketcetera/marketdata/yahoo/YahooField.java
Java
apache-2.0
5,271
/* * Copyright © 2015 Cask Data, 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...
caskdata/cdap
cdap-explore-client/src/main/java/co/cask/cdap/explore/utils/ExploreTableNaming.java
Java
apache-2.0
1,818
package vigna.fastutil; /* * Copyright (C) 2002-2015 Sebastiano Vigna * * 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 * * Unles...
tommyettinger/doughyo
src/main/java/vigna/fastutil/BidirectionalIterator.java
Java
apache-2.0
1,685
/** * @author 54chen(陈臻) [chenzhen@xiaomi.com czhttp@gmail.com] * @since 2012-5-19 下午02:27:24 */ package com.chen.controllers; import com.chen.model.Chen; import net.paoding.rose.web.Invocation; import net.paoding.rose.web.paramresolver.ParamMetaData; import net.paoding.rose.web.paramresolver.ParamResolver; publi...
xiaowen118/test
src/main/java/com/chen/controllers/ChenBeanResolver.java
Java
apache-2.0
1,026
/* * Copyright 2010-2016 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 "lice...
trasa/aws-sdk-java
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/JobFlowInstancesConfig.java
Java
apache-2.0
45,300
/* * 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...
nezihyigitbasi/presto
presto-main/src/test/java/com/facebook/presto/sql/planner/iterative/rule/TestPickTableLayout.java
Java
apache-2.0
10,572
public class Solution { public List<List<Integer>> threeSum(int[] num) { Set<List<Integer>> set = new HashSet<> (); Arrays.sort(num); for(int i=0; i<num.length-2; i++) { int j=i+1, k=num.length-1; while(j < k) { int sum = num[i] + num[j] + num...
andrewlxia/practice
3Sum.java
Java
apache-2.0
834
package org.johnnei.javatorrent.bittorrent.tracker; import java.time.Clock; import java.time.Duration; import org.junit.jupiter.api.Test; import org.johnnei.javatorrent.test.DummyEntity; import org.johnnei.javatorrent.test.TestClock; import org.johnnei.javatorrent.torrent.Torrent; import static org.junit.jupiter.ap...
Johnnei/JavaTorrent
bittorrent/src/test/java/org/johnnei/javatorrent/bittorrent/tracker/TorrentInfoTest.java
Java
apache-2.0
2,213
package build.pluto.test.build.cycle.fixpoint; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.sugarj.common.FileCommands; public class FileUtils { public static List<File> readPathsFromFile(File file, File workingDir) throws IOException{ List<Stri...
pluto-build/pluto
test/build/pluto/test/build/cycle/fixpoint/FileUtils.java
Java
apache-2.0
842
package com.osahub.thehouse.controller; import java.io.IOException; import javax.servlet.*; import javax.servlet.http.*; import static com.osahub.thehouse.dao.UserDetailsDao.modifyPassword; @SuppressWarnings("serial") public class ChangePasswordController extends HttpServlet { public void doPost(HttpServletRequest...
danish1994/House_Of_Change
src/com/osahub/thehouse/controller/ChangePasswordController.java
Java
apache-2.0
561
package marcin_szyszka.mobileseconndhand; 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); ...
MarcinSzyszka/MobileSecondHand
AndroidStudio_Android/MobileSeconndHand/app/src/test/java/marcin_szyszka/mobileseconndhand/ExampleUnitTest.java
Java
apache-2.0
325
package com.github.neuralnetworks.calculation; import com.github.neuralnetworks.architecture.Connections; import com.github.neuralnetworks.architecture.Layer; import com.github.neuralnetworks.calculation.memory.ValuesProvider; import java.io.Serializable; import java.util.List; /** * Implementations of this interfa...
lehmann/BrainSimulator
app/src/main/java/com/github/neuralnetworks/calculation/ConnectionCalculator.java
Java
apache-2.0
1,165
/* * Copyright 2020 the original author or authors. * * 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 Apac...
christophd/citrus
catalog/citrus-endpoint-catalog/src/main/java/com/consol/citrus/dsl/endpoint/websocket/WebSocketEndpointCatalog.java
Java
apache-2.0
1,829
package com.box.l10n.mojito.aws.s3; import com.amazonaws.services.s3.AmazonS3; import org.junit.Assume; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation....
box/mojito
webapp/src/test/java/com/box/l10n/mojito/aws/s3/AmazonS3ConfigurationTest.java
Java
apache-2.0
1,281
package il.co.topq.kpi.client; import java.io.IOException; import il.co.topq.kpi.view.DataTable; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; public class Issues extends AbstractResource { public Issues(OkHttpClient client, String baseUrl) { super(client, baseUrl); } public D...
Top-Q/kpi-editor
src/test/java/il/co/topq/kpi/client/Issues.java
Java
apache-2.0
825
/* * Copyright (C) 2013 75py * * 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...
75py/XUtilities
src/com/nagopy/android/xposed/utilities/setting/ModNotificationExpandedClockSettings.java
Java
apache-2.0
4,205
/* 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/main/java/com/github/terma/fastselect/MultiShortRequest.java
Java
apache-2.0
1,937
/* * Copyright (C) 2009 JavaRosa * * 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 ...
dimagi/javarosa
javarosa/j2me/media/src/org/javarosa/media/audio/service/J2MEAudioCaptureService.java
Java
apache-2.0
10,141
/* * 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")...
pistolove/sourcecode4junit
Source4Tomcat/src/org/apache/tomcat/util/bcel/classfile/AnnotationDefault.java
Java
apache-2.0
3,166
/* * This file is part of the PDF Split And Merge source code * Copyright 2020 by Sober Lemur S.a.s di Vacondio Andrea (info@pdfsam.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...
torakiki/sejda-injector
src/test/java/org/pdfsam/injector/TransitiveDependencyTest.java
Java
apache-2.0
1,375
/* * Copyright 2013-2014 must-be.org * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
ernestp/consulo
platform/projectModel-api/src/com/intellij/openapi/roots/types/SourcesOrderRootType.java
Java
apache-2.0
1,138
package org.araqne.logstorage; public class UnsupportedLogFileTypeException extends RuntimeException { public UnsupportedLogFileTypeException(String type) { super(type); } private static final long serialVersionUID = 1L; }
araqne/logdb
araqne-logstorage/src/main/java/org/araqne/logstorage/UnsupportedLogFileTypeException.java
Java
apache-2.0
232
package com.sunsheng.coolweather.app; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { ...
jasonsun916/coolweather
app/src/androidTest/java/com/sunsheng/coolweather/app/ApplicationTest.java
Java
apache-2.0
359
package cn.felord.wepay.ali.sdk.api.request; import java.util.Map; import cn.felord.wepay.ali.sdk.api.AlipayRequest; import cn.felord.wepay.ali.sdk.api.internal.util.AlipayHashMap; import cn.felord.wepay.ali.sdk.api.response.AlipayMarketingCampaignCashDetailQueryResponse; import cn.felord.wepay.ali.sdk.api.AlipayObje...
NotFound403/WePay
src/main/java/cn/felord/wepay/ali/sdk/api/request/AlipayMarketingCampaignCashDetailQueryRequest.java
Java
apache-2.0
4,859
/* * Copyright 2007 the project originators. * * 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...
tolo/JServer
src/java/com/teletalk/jserver/tcp/http/HttpMessage.java
Java
apache-2.0
17,857
package com.bobs.mount; /** * Created by dokeeffe on 26/12/16. */ public enum GuideRate { SIDEREAL, LUNAR, SOLAR, OFF }
dokeeffe/auxremote
app/src/main/java/com/bobs/mount/GuideRate.java
Java
apache-2.0
127
/** * 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...
srijeyanthan/hops
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/ContainerPreemptEvent.java
Java
apache-2.0
2,020
package edu.jhu.pacaya.sch.tasks; import static edu.jhu.pacaya.sch.util.Indexed.enumerate; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.function.DoubleConsumer; import org.apache.commons.math3.linear.RealVector; import edu.jhu.pacaya.sch.Schedule; import edu.jhu.pa...
mgormley/pacaya
src/main/java/edu/jhu/pacaya/sch/tasks/SumPaths.java
Java
apache-2.0
10,231
/* * Copyright 2014 Avanza Bank AB * * 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...
AvanzaBank/astrix
astrix-metrics/src/test/java/com/avanza/astrix/metrics/DropwizardMetricsTest.java
Java
apache-2.0
2,943
/* * Copyright 2019 Baidu, Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
baidubce/bce-sdk-java
src/main/java/com/baidubce/services/cfc/model/UpdateTriggerRequest.java
Java
apache-2.0
3,724
// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
googleads/googleads-java-lib
modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201809/cm/OperatingSystemVersion.java
Java
apache-2.0
4,836
package com.gaborpeto.androidexercise.api.model; import com.google.gson.annotations.SerializedName; public class RemoteComment { @SerializedName("id") public int id; @SerializedName("postId") public int postId; @SerializedName("name") public String name; @SerializedName("email") public String email; ...
GaborPeto/android-exercise
api/src/main/java/com/gaborpeto/androidexercise/api/model/RemoteComment.java
Java
apache-2.0
1,573
/* * 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...
girirajsharma/elasticsearch
core/src/main/java/org/elasticsearch/index/mapper/GeoPointFieldMapperLegacy.java
Java
apache-2.0
14,641
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file ...
aws/aws-sdk-java-v2
services/s3/src/test/java/software/amazon/awssdk/services/s3/internal/resource/S3AccessPointResourceTest.java
Java
apache-2.0
17,352
package com.quollwriter.exporter; import java.util.*; import javax.swing.*; import javax.swing.tree.*; import com.quollwriter.data.*; public class ExportUtils { public static Project getSelectedItems (JTree tree, Project proj) { Project p = new Projec...
garybentley/quollwriter
src/com/quollwriter/exporter/ExportUtils.java
Java
apache-2.0
1,441
/* * Copyright 2014-2019 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...
jentfoo/aws-sdk-java
aws-java-sdk-kinesisanalyticsv2/src/main/java/com/amazonaws/services/kinesisanalyticsv2/model/EnvironmentPropertyDescriptions.java
Java
apache-2.0
5,981
package com.kagrana.keyword_driven_framework; import java.util.HashMap; /** * This library helps in automating Selenium tests and makes keyword driven * framework to execute TestNG tests. * * @author mayur * */ public class App { public static void main(String[] args) throws Exception { HashMap<String, Str...
selenium-webdriver-software-testing/keyword-driven-framework
src/main/java/com/kagrana/keyword_driven_framework/App.java
Java
apache-2.0
1,672
/* * Copyright 2011 Future Systems * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
araqne/logdb
araqne-logstorage/src/main/java/org/araqne/logstorage/engine/LogStorageMonitorEngine.java
Java
apache-2.0
10,490
/* * Copyright (C) 2015 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
jnbt/digits-android
digits/src/main/java/com/digits/sdk/android/DigitsCallback.java
Java
apache-2.0
1,660
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2011.06.16 at 09:21:1...
VT-Visionarium/osnap
src/main/java/x3d/model/X3DMetadataObject.java
Java
apache-2.0
3,960
/* * Copyright 2016 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 applicable law or agreed to in...
somasun/reactivesocket-java
rsocket-core/src/main/java/io/rsocket/util/Clock.java
Java
apache-2.0
1,088
/** * Copyright 2017 The GreyCat Authors. All rights reserved. * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless ...
electricalwind/greycat
greycat/src/main/java/greycat/internal/heap/HeapStringIntMap.java
Java
apache-2.0
14,947
/* * Copyright 2020 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
jesuino/droolsjbpm-integration
kie-spring-boot/kie-spring-boot-samples/jbpm-spring-boot-sample-basic/src/test/resources/kjars/kafka-process/src/main/java/com/myspace/kafka_process/Box.java
Java
apache-2.0
3,300
/* * 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-servicenetworking/v1beta/1.31.0/com/google/api/services/servicenetworking/v1beta/model/Subnetwork.java
Java
apache-2.0
6,002
package direct.interceptor.agent; import static net.bytebuddy.matcher.ElementMatchers.nameMatches; import static net.bytebuddy.matcher.ElementMatchers.not; import java.lang.instrument.Instrumentation; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; import net.byte...
NawaMan/DirectInterceptor
Agent/src/main/java/direct/interceptor/agent/Agent.java
Java
apache-2.0
4,023