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 Shinya Mochida
*
* Licensed under the Apache License,Version2.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... | mike-neck/gradle-testkit-support | src/test/groovy/org/mikeneck/gradle/plugin/model/TestKitSupportFields.java | Java | apache-2.0 | 1,988 |
package com.yeepay.g3.sdk.yop.unmarshaller;
import com.yeepay.g3.sdk.yop.client.YopClient;
import com.yeepay.g3.sdk.yop.client.YopRequest;
import com.yeepay.g3.sdk.yop.client.YopResponse;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.c... | yp-creative/yop-java-sdk-old | src/test/java/com/yeepay/g3/sdk/yop/unmarshaller/JacksonJsonMarshallerTest.java | Java | apache-2.0 | 5,960 |
/**
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | googleads/google-ads-java | google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/services/stub/GrpcKeywordPlanAdGroupServiceCallableFactory.java | Java | apache-2.0 | 815 |
/*
* Licensed to CRATE Technology GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not us... | EvilMcJerkface/crate | server/src/main/java/io/crate/exceptions/InvalidSchemaNameException.java | Java | apache-2.0 | 1,498 |
package com.github.davidmoten.s3repo;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintStream;
import java.util.UUID;
import org.junit.Assert;
import org.junit.Test;
import com.github.davidmoten.security.Hmac;
public class BasicAuthenticationTest {
@Test
public void test() {
Strin... | davidmoten/maven-s3-repo-beanstalk | src/test/java/com/github/davidmoten/s3repo/BasicAuthenticationTest.java | Java | apache-2.0 | 1,252 |
/*
* Copyright 2010 The Lucene Interval Field 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 appli... | Cue/lucene-interval-fields | src/main/java/com/greplin/interval/package-info.java | Java | apache-2.0 | 732 |
package de.tomgrill.gdxfirebase.core.auth;
public interface AuthStateListener {
void onAuthStateChanged(FirebaseAuth firebaseAuth);
}
| TomGrill/gdx-firebase | core/src/de/tomgrill/gdxfirebase/core/auth/AuthStateListener.java | Java | apache-2.0 | 139 |
// hola
package com.hurence.logisland.agent.rest.api;
import com.hurence.logisland.agent.rest.model.*;
import com.hurence.logisland.agent.rest.api.ConfigsApiService;
import com.hurence.logisland.agent.rest.api.factories.ConfigsApiServiceFactory;
import io.swagger.annotations.ApiParam;
import com.hurence.logisland.a... | MiniPlayer/log-island | logisland-framework/logisland-agent/src/gen/java/com/hurence/logisland/agent/rest/api/ConfigsApi.java | Java | apache-2.0 | 1,997 |
package org.docksidestage.hangar.dbflute.exbhv;
import org.docksidestage.hangar.dbflute.bsbhv.BsWhiteCompoundPkBhv;
/**
* The behavior of WHITE_COMPOUND_PK.
* <p>
* You can implement your original methods here.
* This class remains when re-generating.
* </p>
* @author DBFlute(AutoGenerator)
*/
public class Whi... | dbflute-test/dbflute-test-active-hangar | src/main/java/org/docksidestage/hangar/dbflute/exbhv/WhiteCompoundPkBhv.java | Java | apache-2.0 | 369 |
/*
* 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 ... | Maccimo/commons-bcel | src/main/java/org/apache/bcel/generic/L2D.java | Java | apache-2.0 | 1,799 |
/*
* Copyright 2015 Yan Zhenjie
*
* 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... | zqh110110/base_http_rxjava_databing_commonutil | sample/src/main/java/com/yanzhenjie/nohttp/sample/activity/cache/CacheNoneCacheRequestNetWorkActivity.java | Java | apache-2.0 | 4,936 |
/*
* <!--
* Copyright (c) 2015-2019 Automation RockStars Ltd.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License v2.0
* which accompanies this distribution, and is available at
* http://www.apache.org/licenses/LICENSE-2... | AutomationRockstars/Design | design/gireat/src/main/java/com/automationrockstars/gir/ui/AbstractWebElementDecorator.java | Java | apache-2.0 | 2,276 |
package awsomethree.com.townkitchen.activities;
import com.parse.ui.ParseLoginDispatchActivity;
/**
* Created by smulyono on 4/8/15.
*/
public class MainDispatchActivity extends ParseLoginDispatchActivity{
@Override
protected Class<?> getTargetClass() {
return TutorialActivity.class;
}
}
| awsomethree/townkitchen | app/src/main/java/awsomethree/com/townkitchen/activities/MainDispatchActivity.java | Java | apache-2.0 | 314 |
/**
* 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... | aaronwalker/camel | camel-core/src/test/java/org/apache/camel/builder/NotifyBuilderTest.java | Java | apache-2.0 | 34,055 |
/*
* Copyright (c) 2016. Bottle Rocket 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 ... | BottleRocketStudios/Android-GroundControl | GroundControl/groundcontrol/src/androidTest/java/com/bottlerocketstudios/groundcontrol/test/integration/CacheClearingTest.java | Java | apache-2.0 | 5,292 |
package com.osisoft.xml.services.pidataservice;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Logger;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFea... | osimloeff/Integrating-PI-System-with-R-White-Paper | Legacy/v1/Integrating-PI-System-with-R/Chapter9 - Developing Apps/Java/SampleApp_JRIandPISystem/src/com/osisoft/xml/services/pidataservice/PITimeSeriesService.java | Java | apache-2.0 | 2,704 |
package com.box.sdk;
import com.box.sdk.sharedlink.BoxSharedLinkWithoutPermissionsRequest;
import com.eclipsesource.json.Json;
import com.eclipsesource.json.JsonArray;
import com.eclipsesource.json.JsonObject;
import com.eclipsesource.json.JsonValue;
import java.net.MalformedURLException;
import java.net.URL;
import j... | box/box-java-sdk | src/main/java/com/box/sdk/BoxWebLink.java | Java | apache-2.0 | 13,265 |
package com.wangyin.ak47.core.handler;
import com.wangyin.ak47.core.message.SimpleRequest;
import com.wangyin.ak47.core.message.SimpleResponse;
import com.wangyin.ak47.common.Logger;
import com.wangyin.ak47.core.Codec;
import com.wangyin.ak47.core.HandlerContext;
import com.wangyin.ak47.core.Message;
import com.wangyi... | JD-wangyin/Ak47 | core/src/main/java/com/wangyin/ak47/core/handler/CodecDriverHandler.java | Java | apache-2.0 | 1,587 |
package com.kenny.security.tool;
import org.springframework.util.AntPathMatcher;
import org.springframework.util.PathMatcher;
public class AntUrlPathMatcher implements UrlMatcher {
private boolean requiresLowerCaseUrl;
private PathMatcher pathMatcher;
public AntUrlPathMatcher() {
this(true);
}
public AntUrl... | zengguoyu/sample | sample-modules/sample-security/src/main/java/com/kenny/security/tool/AntUrlPathMatcher.java | Java | apache-2.0 | 1,214 |
/*
* Copyright 2002-2015 SCOOP Software GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | copper-engine/copper-engine | projects/copper-coreengine/src/main/java/org/copperengine/core/WaitHook.java | Java | apache-2.0 | 1,655 |
package org.spincast.plugins.gson.tests.utils;
public enum WidgetEnum {
FIRST,
SECOND,
THIRD;
@Override
public String toString() {
return super.toString().toLowerCase();
}
}
| spincast/spincast-framework | spincast-plugins/spincast-plugins-gson-parent/spincast-plugins-gson-tests/src/test/java/org/spincast/plugins/gson/tests/utils/WidgetEnum.java | Java | apache-2.0 | 210 |
// Code generated by Wire protocol buffer compiler, do not edit.
// Source file: ../wire-runtime/src/test/proto/retrofit_service.proto
package com.squareup.services;
import com.squareup.services.anotherpackage.SendDataRequest;
import com.squareup.services.anotherpackage.SendDataResponse;
import retrofit.http.Body;
imp... | wakandan/wire | wire-runtime/src/test/java/com/squareup/services/RetrofitService.java | Java | apache-2.0 | 574 |
/**
* 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... | plusplusjiajia/hadoop | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/TestParentQueue.java | Java | apache-2.0 | 44,087 |
package microservices.sample.discovery.hazelcast;
import com.hazelcast.core.HazelcastInstance;
import microservices.sample.discovery.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.concurrent.TimeUnit;
import static java.util.concurrent.TimeUnit.SECONDS;
import static org.... | masgari/microservices-sample | hazelcast-discovery/src/integrationTest/java/microservices/sample/discovery/hazelcast/HazelcastServiceRegistryTest.java | Java | apache-2.0 | 3,284 |
/*
* 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 ... | wcm-io-devops/maven-eclipse-plugin | src/test/java/org/apache/maven/plugin/eclipse/it/AbstractEclipsePluginIT.java | Java | apache-2.0 | 36,330 |
package example.service;
import example.repo.Customer1544Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer1544Service {
public Customer1544Service(Customer1544Repository repo) {}
}
| spring-projects/spring-data-examples | jpa/deferred/src/main/java/example/service/Customer1544Service.java | Java | apache-2.0 | 225 |
/**
* Copyright (C) 2013 Motown.IO (info@motown.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 required by appl... | quann169/MotownBlueCurrent | operator-api/json/src/test/java/io/motown/operatorapi/json/restapi/util/OperatorApiResponseBuilderTest.java | Java | apache-2.0 | 2,284 |
/*******************************************************************************
* Copyright (c) 2014 eBay Software 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
*
* ... | eBay/ostara | ostara-service/src/main/java/org/ostara/cmd/ICmdMeta.java | Java | apache-2.0 | 1,126 |
package com.encryptlang.lua;
import com.encryptlang.lua.ast.*;
import com.encryptlang.lua.ast.expr.*;
import com.encryptlang.lua.ast.stat.*;
import com.encryptlang.lua.ast.stat.FuncCallStat;
import java.util.ArrayList;
import java.util.List;
public class LuaParser extends LLkParser {
public LuaParser(LuaLexer l... | jonnywei/encrypt-lang | src/main/java/com/encryptlang/lua/LuaParser.java | Java | apache-2.0 | 23,110 |
/**
* 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... | Microsoft-CISL/hadoop-prototype | hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/ProtobufRpcEngine.java | Java | apache-2.0 | 24,562 |
package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 联系客户统计数据
*
* @a... | Wechat-Group/WxJava | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUserBehaviorStatistic.java | Java | apache-2.0 | 2,766 |
package io.github.likangr.tvhelper.handler;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
/**
* Created by cdy on 2016/2/3.
* 快速生成适配工具类
*/
public class Di... | LikangR/TvHelper | app/src/main/java/io/github/likangr/tvhelper/handler/DimenTool.java | Java | apache-2.0 | 3,603 |
package redis.clients.redisson.client.protocol.decoder;
import java.io.IOException;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import redis.clients.redisson.cluster.ClusterNodeInfo;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
public class ClusterNodesDecoderTest {
... | qq1588518/JRediClients | src/test/java/redis/clients/redisson/client/protocol/decoder/ClusterNodesDecoderTest.java | Java | apache-2.0 | 1,694 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycompany.diplom.shop;
import com.mycompany.diplom.util.DataSource;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;... | nortrix/cursovik | src/main/java/com/mycompany/diplom/shop/ArticleDao.java | Java | apache-2.0 | 2,444 |
/*
* 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 ... | bowenli86/flink | flink-clients/src/main/java/org/apache/flink/client/program/PerJobMiniClusterFactory.java | Java | apache-2.0 | 6,724 |
package ru.guar73873.githubclientapp;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate... | ArturVasilov/AndroidCourses | GithubClientApp/app/src/main/java/ru/guar73873/githubclientapp/MainActivity.java | Java | apache-2.0 | 1,127 |
/*
* 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... | blackcathacker/kc.preclean | coeus-it/src/test/java/org/kuali/kra/irb/actions/approve/ProtocolApproveServiceImplTest.java | Java | apache-2.0 | 7,256 |
/*
* Copyright (c) 2021, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.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.apac... | lessthanoptimal/BoofCV | main/boofcv-ip/src/main/java/boofcv/alg/interpolate/impl/ImplBilinearPixel_F32.java | Java | apache-2.0 | 2,853 |
package de.nl.moo.data.loader.constructions;
import de.nl.moo.data.beans.constructions.ConstructionsBuilderBean;
import de.nl.moo.data.dao.GameBeanDAO;
import de.nl.moo.data.loader.AbstractGameFunctionBeanLoader;
import org.springframework.beans.factory.annotation.Autowired;
public class ConstructionsBuilderBeanLoade... | dayaftereh/master-of-orion | src/main/java/de/nl/moo/data/loader/constructions/ConstructionsBuilderBeanLoader.java | Java | apache-2.0 | 669 |
/*
* (C) Copyright 2014 Kurento (http://kurento.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 applicab... | SJarygin/KVCS | kurento-one2one-call-advanced/src/main/java/org/kurento/tutorial/one2onecalladv/One2OneCallAdvApp.java | Java | apache-2.0 | 1,965 |
package com.frameworkset.platform.cms.driver.context;
/**
*
* <p>Title: BatchContext</p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2006</p>
*
* <p>Company: 三一集团</p>
* @Date 2007-4-10 10:55:21
* @author biaoping.yin
* @version 1.0
*/
public interface BatchContext extends CMSContext {
}
| tzou24/BPS | BPS/src/com/frameworkset/platform/cms/driver/context/BatchContext.java | Java | apache-2.0 | 325 |
/*
* Gregory Pellegrin
* pellegrin.gregory.work@gmail.com
*/
package Universe;
import Entity.Entity;
import Entity.Missile;
import Entity.Ship;
import Serveur.Serveur;
import Util.Clock;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
public class Universe
{
public static final in... | GregoryPellegrin/AsteroidsServeur | AsteroidsServeur/src/Universe/Universe.java | Java | apache-2.0 | 3,053 |
/*
* Copyright (c) 2002-2018 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundatio... | HuangLS/neo4j | community/consistency-check/src/main/java/org/neo4j/consistency/checking/full/RecordCheckWorker.java | Java | apache-2.0 | 3,673 |
/*
* Copyright (c) 2002-2018 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundatio... | HuangLS/neo4j | community/kernel/src/main/java/org/neo4j/kernel/impl/store/record/RelationshipTypeTokenRecord.java | Java | apache-2.0 | 1,084 |
package com.cattong.weibo.impl.sina;
import static com.cattong.commons.util.ParseUtil.getBoolean;
import static com.cattong.commons.util.ParseUtil.getRawString;
import static com.cattong.commons.util.ParseUtil.getUnescapedString;
import org.json.JSONException;
import org.json.JSONObject;
import com.cattong.commons.L... | Terry-L/YiBo | YiBoLibrary/src/com/cattong/weibo/impl/sina/SinaRelationshipAdaptor.java | Java | apache-2.0 | 1,990 |
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | underhilllabs/dccsched | tests/src/com/google/android/apps/iosched/io/StubHttpClient.java | Java | apache-2.0 | 7,038 |
/*
* 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... | joel-costigliola/assertj-core | src/test/java/org/assertj/core/api/objectarray/ObjectArrayAssert_isSubsetOf_Test.java | Java | apache-2.0 | 1,457 |
/**
* Copyright 2011 (C) 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 appli... | maguro/jr4me-server | core/src/main/java/com/toolazydogs/jr4me/server/model/CallError.java | Java | apache-2.0 | 1,093 |
/*
* 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... | freeVM/freeVM | enhanced/archive/classlib/java6/modules/swing/src/test/api/java/common/javax/swing/text/DefaultStyledDocument_ElementBufferTest.java | Java | apache-2.0 | 5,646 |
/*******************************************************************************
* Copyright 2014, 2016 gwt-ol3
*
* 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... | mazlixek/gwt-ol3 | gwt-ol3-demo/src/main/java/com/github/tdesjardins/ol3/demo/client/example/Example.java | Java | apache-2.0 | 967 |
package build.pluto.builder;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class BuildCycle {
private BuildRequest<?, ?, ?, ?> initial;
private List<BuildRequest<?, ?, ?, ?>> cycle;
public BuildCycle(BuildRequest<?, ?, ?, ?> initial, List<BuildReques... | pluto-build/pluto | src/build/pluto/builder/BuildCycle.java | Java | apache-2.0 | 1,623 |
/*
* Copyright 2016-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... | sdwilsh/buck | src/com/facebook/buck/android/GenerateCodeForMergedLibraryMap.java | Java | apache-2.0 | 5,076 |
/*
* 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 ... | moparisthebest/beehive | beehive-netui-compiler/src/main/java/org/apache/beehive/netui/compiler/typesystem/impl/declaration/ConstructorDeclarationImpl.java | Java | apache-2.0 | 1,248 |
/*
* Copyright 2013 Gunnar Kappei.
*
* 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... | moosbusch/xbLIDO | src/net/opengis/gml/impl/MultiCenterOfDocumentImpl.java | Java | apache-2.0 | 2,529 |
// Copyright 2020 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... | werkt/bazel | src/test/java/com/google/devtools/build/lib/skyframe/TreeArtifactValueTest.java | Java | apache-2.0 | 25,877 |
/*
* Copyright (c) 2017. Dark Phoenixs (Open-Source Organization).
*
* 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... | DarkPhoenixs/message-queue-client-framework | src/main/java/org/darkphoenixs/rocketmq/codec/RocketmqMessageDecoder.java | Java | apache-2.0 | 1,011 |
/*
* Copyright (c) 2010-2017 Evolveum
*
* 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... | arnost-starosta/midpoint | gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/wizard/resource/component/schemahandling/modal/ExpressionVariableEditorDialog.java | Java | apache-2.0 | 9,920 |
package com.rubick.cac.android.contact.ui.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import com.nineoldandroids.view.ViewPropertyAnimator;
import com.rubick.cac.android.R;
import com.rubick.cac.android.contact.ui.widget.CACCardContaine... | bblue000/CACProject | CACAndroid/app/src/main/java/com/rubick/cac/android/contact/ui/activity/MainActivity.java | Java | apache-2.0 | 1,646 |
/*
* Copyright 2013, Rogue.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 required by applicable law or agreed to in... | roguexz/rogue.io | modules/framework-model/src/main/java/rogue/app/framework/model/adapter/AppObjectAdapter.java | Java | apache-2.0 | 10,706 |
/*
* Copyright Terracotta, 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 ... | alexsnaps/ehcache3 | core-spi-test/src/main/java/org/ehcache/internal/store/StoreSPITest.java | Java | apache-2.0 | 6,349 |
package com.lachesis.mnisqm.module.user.domain;
public class TotalInfo {
private Integer nurseSum;
private Integer postPearsonSum;
private Integer patientSum;
private Integer criticalPatientSum;
private Integer surgeryPatientSum;
private Integer leaveNurseSum;
private Integer ... | gavin2lee/incubator | mnisqm/mnisqm-services/src/main/java/com/lachesis/mnisqm/module/user/domain/TotalInfo.java | Java | apache-2.0 | 1,623 |
package rosas.dataprocessor;
import junit.framework.Assert;
import org.junit.Test;
/**
* Created by Zhuang on 2015/8/25.
*/
public class Interference_Level_UDFTEST {
Interference_Level_UDF ave;
@Test
public void evaluatesExpression() {
ave = new Interference_Level_UDF();
try {
... | frankzye1/ROSASHadoop | Rosas.DataProcessor/src/test/java/rosas/dataprocessor/Interference_Level_UDFTEST.java | Java | apache-2.0 | 533 |
/*
* 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... | ebyhr/presto | plugin/trino-hive/src/main/java/io/trino/plugin/hive/HiveTableRedirectionsProvider.java | Java | apache-2.0 | 1,002 |
package com.vaporwarecorp.mirror.feature.alexa;
import com.vaporwarecorp.mirror.feature.Command;
public interface AlexaCommand extends Command {
// -------------------------- OTHER METHODS --------------------------
void executeCommand(String command);
boolean matches(String command);
}
| jreyes/mirror | app/src/main/java/com/vaporwarecorp/mirror/feature/alexa/AlexaCommand.java | Java | apache-2.0 | 300 |
/*
* Copyright (c) 2013-2015 by appPlant UG. All rights reserved.
*
* @APPPLANT_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apache License
* Version 2.0 (the 'License'). You may not use this file except in
* complia... | sxagan/cordova-plugin-hlpush | src/android/notification/TriggerReceiver.java | Java | apache-2.0 | 2,050 |
/**
* 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... | scranton/camel | platforms/spring-boot/components-starter/camel-aws-starter/src/main/java/org/apache/camel/component/aws/sqs/springboot/SqsComponentAutoConfiguration.java | Java | apache-2.0 | 4,005 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... | freeVM/freeVM | enhanced/archive/classlib/java6/modules/security/src/test/impl/java/org/apache/harmony/security/tests/x509/ORAddressTest.java | Java | apache-2.0 | 2,865 |
// Copyright (C) 2013 The Android Open Source 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 ... | Distrotech/gerrit | gerrit-gwtui/src/main/java/com/google/gerrit/client/change/RelatedChanges.java | Java | apache-2.0 | 14,607 |
/*
* Copyright 2021 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... | googleads/google-ads-java | google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/resources/LabelName.java | Java | apache-2.0 | 5,329 |
package com.fordprog.matrix.interpreter.semantic;
import com.fordprog.matrix.interpreter.CodePoint;
import com.fordprog.matrix.interpreter.type.Matrix;
import com.fordprog.matrix.interpreter.type.Rational;
import com.fordprog.matrix.interpreter.type.Type;
import java.util.Objects;
public class Symbol {
private fi... | daergoth/MatrixC | src/main/java/com/fordprog/matrix/interpreter/semantic/Symbol.java | Java | apache-2.0 | 2,594 |
/**
* redpen: a text inspection tool
* Copyright (C) 2014 Recruit Technologies Co., Ltd. and contributors
* (see CONTRIBUTORS.md)
*
* 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
*
* ... | johtani/redpen | redpen-core/src/test/java/org/unigram/docvalidator/validator/section/SectionValidatorFactoryTest.java | Java | apache-2.0 | 2,506 |
package ca.spacek.gkdd.blacklist.gk;
import com.google.common.reflect.Reflection;
import ca.spacek.gkdd.blacklist.SuggestionBlackLister;
/**
* Created by temp on 22/04/14.
*/
public class OnSuggestedWordCallbackProxyFactory {
private final SuggestionBlackLister suggestionBlackLister;
private final PackageR... | nickspacek/xposed-keyboard-tweaks | src/main/java/ca/spacek/gkdd/blacklist/gk/OnSuggestedWordCallbackProxyFactory.java | Java | apache-2.0 | 854 |
/*
* Copyright (C) 2013 salesforce.com, inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | igor-sfdc/aura | aura-util/src/test/java/org/auraframework/test/perf/PerfUtil.java | Java | apache-2.0 | 1,890 |
/*
* Copyright 2015 Karl Bennett
*
* 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... | shiver-me-timbers/smt-waiting-parent | smt-waiting-test/smt-waiting-aspect-integration/smt-waiting-aspect-test-executions/src/main/java/shiver/me/timbers/waiting/execution/WaitingDefaultsClass.java | Java | apache-2.0 | 919 |
package com.orctom.was.model;
import com.google.common.base.Strings;
import com.google.common.collect.Maps;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* Shell Command
* Created by hao on 11/11/15.
*/
public class Command {
private String executable;
private String workingDir... | orctom/was-util | src/main/java/com/orctom/was/model/Command.java | Java | apache-2.0 | 2,499 |
/*
* Generated by XDoclet - Do not edit!
*/
package org.dcm4chex.archive.ejb.interfaces;
/**
* Local interface for MWLItem.
* @xdoclet-generated at ${TODAY}
* @copyright The XDoclet Team
* @author XDoclet
* @version 2.19.0-SNAPSHOT
*/
public interface MWLItemLocal
extends javax.ejb.EJBLocalObject
{
/**
... | medicayun/medicayundicom | dcm4jboss-all/trunk/dcm4jboss-ejb/target/xdoclet/java/org/dcm4chex/archive/ejb/interfaces/MWLItemLocal.java | Java | apache-2.0 | 1,145 |
/*
* Copyright 2002-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-projects/spring-framework | spring-jdbc/src/main/java/org/springframework/jdbc/support/DatabaseMetaDataCallback.java | Java | apache-2.0 | 1,942 |
package com.beanframework.user;
public class EmailDuplicatedException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
public EmailDuplicatedException(String msg) {
super(msg);
}
public EmailDuplicatedException(String msg, Throwable t) {
super(msg, t);
}
} | beanproject/beanframework | bin/user/src/main/java/com/beanframework/user/EmailDuplicatedException.java | Java | apache-2.0 | 311 |
/**
* Copyright 2010 - 2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | morj/xodus | benchmarks/src/test/java/jetbrains/exodus/benchmark/env/EnvWithPrefixingTokyoCabinetLikeBenchmarkTest.java | Java | apache-2.0 | 923 |
package com.csy.maksmaigin.chat.utils;
/**
* Created by chensy160806 on 2016/10/14.
* 聊天的一些常量
*/
public class ChatConstant {
public static final String KEY_CHAT_TYPE = "chatType";//聊天类型,是单聊还是群聊
public static final int TYPE_SINGLE_CHAT = 0;//单聊
public static final int TYPE_GROUP_CHAT = 1;//群聊
publ... | chensy-and/maksmaigin | maksmaigin/app/src/main/java/com/csy/maksmaigin/chat/utils/ChatConstant.java | Java | apache-2.0 | 1,334 |
package io.cattle.platform.allocator.constraint;
import io.cattle.platform.allocator.service.AllocationAttempt;
import io.cattle.platform.allocator.service.AllocationCandidate;
import io.cattle.platform.core.model.Host;
public class ComputeContstraint implements Constraint {
long computeFree;
public Compute... | hibooboo2/cattle | code/iaas/allocator/src/main/java/io/cattle/platform/allocator/constraint/ComputeContstraint.java | Java | apache-2.0 | 1,103 |
package com.twu.biblioteca;
public class Book {
private int bookId;
private String bookName;
private String author;
private String yearPublished;
private boolean available;
public Book(){}
public Book(int bookId,String bookName,String author,String yearPublished) {
this.bookId = ... | xthong/twu-biblioteca-xthong | src/com/twu/biblioteca/Book.java | Java | apache-2.0 | 1,195 |
package rules.jvm.external;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class ByteStreams {
private static final int COPY_BUFFER_SIZE = 1024 * 100;
private ByteStreams() {
// Utility methods
}
public static byte[] toB... | bazelbuild/rules_jvm_external | private/tools/java/rules/jvm/external/ByteStreams.java | Java | apache-2.0 | 772 |
package net.fernandezgodinho.pedro.dovahzuldictionary;
import net.fernandezgodinho.pedro.helpers.ArrayHelpers;
import android.content.Context;
import android.graphics.Color;
import android.view.View;
import android.widget.TextView;
public class TranslatorWord extends TextView {
ArrayHelpers ah = new ArrayHelpers();
... | zolianmawia/Dovahzul-Dictionary | src/net/fernandezgodinho/pedro/dovahzuldictionary/TranslatorWord.java | Java | apache-2.0 | 2,884 |
package org.openntf.domino.xsp.session;
import org.openntf.domino.AutoMime;
import org.openntf.domino.Database;
import org.openntf.domino.Session;
import org.openntf.domino.commons.LifeCycleManager;
import org.openntf.domino.ext.Session.Fixes;
import org.openntf.domino.session.ISessionFactory;
import org.openntf.domin... | rPraml/org.openntf.domino | domino/xsp/src/main/java/org/openntf/domino/xsp/session/AbstractXPageSessionFactory.java | Java | apache-2.0 | 2,333 |
package com.business.service;
import com.business.domain.QueryPurItem;
import com.business.domain.QueryPurStatistic;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;
import java.util.Map;
/**
* Created by billb on 2015-05-12.
*/
public interface Q... | DongpoAlex/business | src/main/java/com/business/service/QueryPurService.java | Java | apache-2.0 | 584 |
/*
* Copyright © 2013-2018 camunda services GmbH and various authors (info@camunda.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... | xasx/camunda-bpm-platform | qa/integration-tests-engine/src/test/java/org/camunda/bpm/integrationtest/deployment/callbacks/PostDeployInjectDefaultEngineTest.java | Java | apache-2.0 | 2,020 |
package br.com.emmanuelneri.monolitica.service;
import br.com.emmanuelneri.monolitica.model.Usuario;
import br.com.emmanuelneri.monolitica.util.GenericService;
import javax.inject.Named;
@Named
public class UsuarioService extends GenericService<Usuario, Long> {
public Usuario buscaParaLogin(String email) {
... | mensonones/arq-monolitica-manutencao | src/main/java/br/com/emmanuelneri/monolitica/service/UsuarioService.java | Java | apache-2.0 | 494 |
package org.opencds.cqf.cql.engine.fhir.data;
public class TestFhirLibrary {
//@Test
/* TODO: These tests haven't been run for a while. Why not just deleting them? I am not sure what their purpose is.
public void TestCBP() throws IOException, JAXBException {
File xmlFile = new File(URLDecoder.dec... | DBCG/cql_engine | engine.fhir/src/test/java/org/opencds/cqf/cql/engine/fhir/data/TestFhirLibrary.java | Java | apache-2.0 | 3,782 |
package pokeraidbot.domain.tracking;
import net.dv8tion.jda.api.entities.Guild;
import net.dv8tion.jda.api.entities.Member;
import net.dv8tion.jda.api.entities.User;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import po... | magnusmickelsson/pokeraidbot | src/main/java/pokeraidbot/domain/tracking/PokemonTrackingTarget.java | Java | apache-2.0 | 6,245 |
/*******************************************************************************
* 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 ... | ist-dresden/sling | bundles/scripting/sightly/java-compiler/src/main/java/org/apache/sling/scripting/sightly/java/compiler/impl/JavaSource.java | Java | apache-2.0 | 7,041 |
/**
* Package for JVM instructions.
*/
package sds.classfile.bytecode; | g1144146/SDS | src/main/java/sds/classfile/bytecode/package-info.java | Java | apache-2.0 | 72 |
/*
* Copyright © 2013-2018 camunda services GmbH and various authors (info@camunda.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... | xasx/camunda-bpm-platform | engine/src/test/java/org/camunda/bpm/engine/test/bpmn/multiinstance/TaskCompletionListener.java | Java | apache-2.0 | 1,168 |
package io.smart7.commerce.web;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
@Navigation(Section.HOME)
public class HomeController {
@GetMapping({"/","/home"})
public String home() {
return "home";
}
}
| feurle/smart7-commerce | src/main/java/io/smart7/commerce/web/HomeController.java | Java | apache-2.0 | 288 |
package xworker.dataObject.swt.bind.reflect;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.swt.widgets.Widget;
import org.xmeta.ActionContext;
import org.xmeta.Thing;
import xworker.dataObject.swt.bind.BinderItem;
import xworker.dataObject.swt.bind.DataObjectBinder;
public class ... | x-meta/xworker | xworker_swt/src/main/java/xworker/dataObject/swt/bind/reflect/MaximumItem.java | Java | apache-2.0 | 1,291 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: NamenodeProtocol.proto
package org.apache.hadoop.hdfs.protocol.proto;
public final class NamenodeProtocolProtos {
private NamenodeProtocolProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registr... | bruthe/hadoop-2.6.0r | src/proto/java/org/apache/hadoop/hdfs/protocol/proto/NamenodeProtocolProtos.java | Java | apache-2.0 | 516,514 |
/* ###
* IP: GHIDRA
*
* 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 writin... | NationalSecurityAgency/ghidra | Ghidra/Debug/Framework-TraceModeling/src/test/java/ghidra/trace/database/map/DBTraceAddressSnapRangePropertyMapSpaceTest.java | Java | apache-2.0 | 13,118 |
/*
* Copyright (c) 2021, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.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.apac... | lessthanoptimal/BoofCV | demonstrations/src/main/java/boofcv/demonstrations/shapes/DetectBlackPolygonApp.java | Java | apache-2.0 | 5,996 |
package org.smartrplace.sim.simple.devices.thermostat;
import org.ogema.core.model.simple.SingleValueResource;
import org.ogema.tools.simulation.service.api.model.SimulatedQuantity;
public class ThermostatSetpoint implements SimulatedQuantity {
private final ThermostatPattern pattern;
public ThermostatSetpoint(... | ogema/tutorial | src/simulations/simple-devices/src/main/java/org/smartrplace/sim/simple/devices/thermostat/ThermostatSetpoint.java | Java | apache-2.0 | 649 |
/*
* Copyright 2014 DataGenerator 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 l... | shraddha-patel/DGWithSpark | dg-core/src/main/java/org/finra/datagenerator/distributor/multithreaded/DefaultDistributor.java | Java | apache-2.0 | 4,834 |