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 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | ryanzhang/dashbuilder | dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/DataSetHandlerImpl.java | Java | apache-2.0 | 9,868 |
package br.eti.arthurgregorio.shirotest.model.dao;
import br.eti.arthurgregorio.shirotest.model.entities.PersistentEntity;
import java.util.List;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
/**
*
* @param... | arthurgregorio/exemplos | ShiroTest/src/main/java/br/eti/arthurgregorio/shirotest/model/dao/AbstractDAO.java | Java | apache-2.0 | 1,749 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ScanControlService.proto
package cn.lhfei.hbase.ch08.coprocessor.generated;
/**
* @version 0.1
*
* @author Hefei Li
*
* @since Jun 13, 2016
*/
public final class ScanControlProtos {
private ScanControlProtos() {}
public static void regis... | lhfei/hbase-in-action | client-api/src/main/java/cn/lhfei/hbase/ch08/coprocessor/generated/ScanControlProtos.java | Java | apache-2.0 | 36,906 |
package com.goodgame.profiling.commons.systems.statistics;
import org.json.JSONObject;
public interface StatisticStore {
void storeMetrics();
JSONObject getMetrics();
}
| Tetha/bifroest | commons/src/main/java/com/goodgame/profiling/commons/systems/statistics/StatisticStore.java | Java | apache-2.0 | 182 |
package org.azizkhani.dao.baseInfo;
import org.azizkhani.core.QueryResult;
import org.azizkhani.dao.IGenericRepository;
import org.azizkhani.model.baseInfo.BaseInformation;
import org.springframework.stereotype.Repository;
public interface IBaseInformationRepository extends IGenericRepository<BaseInformation... | azizkhani/StarterKitProject | src/main/java/org/azizkhani/dao/baseInfo/IBaseInformationRepository.java | Java | apache-2.0 | 451 |
package ru.pft.sandbox;
import org.testng.Assert;
import org.testng.annotations.Test;
/**
* Created by Наташа on 28.02.2017.
*/
public class PrimeTests {
@Test
public void testPrimes() {
Assert.assertTrue(Primes.isPrimeFast(Integer.MAX_VALUE));
}
@Test
public void testNonPrimes() {
Assert.assert... | nratanova/java_pft | sandbox/src/test/java/ru/pft/sandbox/PrimeTests.java | Java | apache-2.0 | 514 |
/*
* Copyright 2015 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | ralic/closure-compiler | test/com/google/javascript/jscomp/lint/CheckJSDocStyleTest.java | Java | apache-2.0 | 22,888 |
/*
* 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/classes/ClassAssert_isAnnotation_Test.java | Java | apache-2.0 | 1,219 |
package org.datazup.apiinternal;
import org.datazup.exceptions.EvaluatorException;
import org.datazup.expression.context.ContextWrapper;
import org.datazup.pathextractor.PathExtractor;
import java.util.HashMap;
import java.util.Map;
/**
* Created by admin@datazup on 11/22/17.
*/
public abstract class ApiServiceBas... | datazup/dzupper-expression | src/main/java/org/datazup/apiinternal/ApiServiceBase.java | Java | apache-2.0 | 1,000 |
/*******************************************************************************
* Copyright 2007-2013 See AUTHORS file.
*
* 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... | x-meta/x-meta | src/main/java/org/xmeta/thingManagers/JarCategory.java | Java | apache-2.0 | 5,042 |
package com.beanu.l2_recycleview.demo.support.api;
import com.beanu.arad.http.IPageModel;
import java.util.List;
/**
* Created by Beanu on 2017/1/11.
*/
public class PageModel<T> implements IPageModel<T> {
public int totalPage;
public List<T> dataList;
public int currentPage;
@Override
publi... | liyanippon/working | java开发资料/dataStu/smart-farmer-android-master/l2_recycleview/src/main/java/com/beanu/l2_recycleview/demo/support/api/PageModel.java | Java | apache-2.0 | 541 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/datastore/v1/datastore.proto
package com.google.datastore.v1;
public interface ReadOptionsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.datastore.v1.ReadOptions)
com.google.protobuf.MessageOrBuilder {
... | vam-google/google-cloud-java | google-api-grpc/proto-google-cloud-datastore-v1/src/main/java/com/google/datastore/v1/ReadOptionsOrBuilder.java | Java | apache-2.0 | 1,344 |
/**
* Copyright (C) 2013-2020 Vasilis Vryniotis <bbriniotis@datumbox.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
*
* Unles... | datumbox/datumbox-framework | datumbox-framework-core/src/main/java/com/datumbox/framework/core/statistics/timeseries/Smoothing.java | Java | apache-2.0 | 6,217 |
/*
* 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-cloudfront/src/main/java/com/amazonaws/services/cloudfront/model/Signer.java | Java | apache-2.0 | 8,562 |
/*
* 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-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/transform/DescribeUserPoolResultJsonUnmarshaller.java | Java | apache-2.0 | 2,849 |
/**
* Copyright 2004-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/ecl2.php
*
* Unless requ... | kuali/kpme | core/impl/src/main/java/org/kuali/kpme/core/earncode/group/dao/EarnCodeGroupDaoOjbImpl.java | Java | apache-2.0 | 9,626 |
package com.willlee.leetcode.problems1_100;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
//leetcode39 40
public class Leetcode40 {
// 做该题的重要条件是无重复的数组,那么问题就很好解了。首先对数组从大到小排序。这是解题的关键。
// 1、target循环减去一个数,如果能一直减到到差值等于0,那么这个数组成的数组就是一个解,比如[2,2,2,2];
// 2、target减去一个数,然后形成了一个新的newTar... | WillleePang/java | Advance/src/main/java/com/willlee/leetcode/problems1_100/Leetcode40.java | Java | apache-2.0 | 4,033 |
/*
* Copyright (c) 2009-2020, Peter Abeles. All Rights Reserved.
*
* This file is part of Efficient Java Matrix Library (EJML).
*
* 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
*
* ... | lessthanoptimal/ejml | main/ejml-ddense/benchmarks/src/org/ejml/dense/block/decompose/chol/BenchmarkDecompositionCholesky_DDRB.java | Java | apache-2.0 | 2,452 |
package io.algobox.api.module.strategy.domain.mdb;
import io.algobox.strategy.StrategyEvent;
import io.algobox.strategy.StrategyEventType;
import io.algobox.price.PriceTick;
public final class StrategyEventMdb implements StrategyEvent {
public static final String COLLECTION_STRATEGY_EVENTS = "strategyEvents";
pub... | melphi/algobox | java/algobox/algobox-api/src/main/java/io/algobox/api/module/strategy/domain/mdb/StrategyEventMdb.java | Java | apache-2.0 | 2,045 |
package com.cloudera.impala.catalog;
import com.cloudera.impala.thrift.TCatalogObjectType;
import com.cloudera.impala.thrift.idriller.TFileReplica;
/**
* 控制该类大小,缓存千万级文件,内存占用在1GB以内
* 文件副本信息,即物理存储信息
* @author dayutianfei
*
*/
public class FileReplia implements CatalogObject {
public long id_; // 文件唯一标识,全局唯一
... | dayutianfei/impala-Q | fe/src/main/java/com/cloudera/impala/catalog/FileReplia.java | Java | apache-2.0 | 1,370 |
import com.gigaspaces.app.event_processing.common.Data;
import com.gigaspaces.app.event_processing.feeder.Feeder;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* A simple unit test that verifies the Processor processData method actually processes the Data
* object.
*/
public class Feeder... | GigaSpaces-POCs/payment-processing | POC/src/test/java/FeederTest.java | Java | apache-2.0 | 576 |
/**
*
*/
package me.learn.personal.month5;
import java.util.ArrayList;
import java.util.List;
/**
* Title 1522 :
*
* Date : Dec 28, 2020
*
* @author bramanarayan
*
*/
public class DiameterOfNAryTree {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub... | balajiboggaram/algorithms | src/me/learn/personal/month5/DiameterOfNAryTree.java | Java | apache-2.0 | 1,236 |
/*
* Copyright 2011 Inaiat H. Moraes.
*
* 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... | inaiat/jqplot4java | src/main/java/br/com/digilabs/jqplot/axis/X2Axis.java | Java | apache-2.0 | 942 |
/*
* Copyright 2002-2018 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... | kazuki43zoo/spring-security | config/src/test/java/org/springframework/security/config/annotation/sec2758/Sec2758Tests.java | Java | apache-2.0 | 5,106 |
package org.grails.plugin.resources.artefacts;
import org.codehaus.groovy.grails.commons.AbstractGrailsClass;
/**
* @author Luke Daley (ld@ldaley.com)
*/
public class DefaultResourceMapperClass extends AbstractGrailsClass implements ResourceMapperClass {
public DefaultResourceMapperClass(Class clazz) {
... | kpelykh/sharepast.com | sharepast-project/sp-gui/plugins/resources-1.1.6/src/java/org/grails/plugin/resources/artefacts/DefaultResourceMapperClass.java | Java | apache-2.0 | 380 |
package com.cloudibpm.blo.search;
import org.apache.solr.client.solrj.SolrClient;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import java.io.IOException;
/**
* This is just a sample for insert a index into Solr.
*
* 关于Solr安装的文档: http://www.jco... | CloudBPM/SwinFlowCloud-CloudSide | springboot_api/src/main/java/com/cloudibpm/blo/search/SearchEngineCleaner.java | Java | apache-2.0 | 4,110 |
package com.mindoo.domino.jna.test;
import java.util.Date;
import java.util.EnumSet;
import java.util.Vector;
import org.junit.Test;
import com.mindoo.domino.jna.NotesCollection;
import com.mindoo.domino.jna.NotesCollection.ViewLookupCallback;
import com.mindoo.domino.jna.NotesDatabase;
import com.mindoo.domino.jna.... | klehmann/domino-jna | domino-jna/src/test/java/com/mindoo/domino/jna/test/TestNoteLookup.java | Java | apache-2.0 | 7,502 |
package com.tjazi.profilesauthorizer.client;
import com.tjazi.profilesauthorizer.messages.SaveAuthorizationTokenRequestMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.client.RestTemplate;
import java.util.U... | tjazi-com/profiles_authorizer | client/src/main/java/com/tjazi/profilesauthorizer/client/ProfilesAuthorizerClientImpl.java | Java | apache-2.0 | 1,776 |
/*
* 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... | haozhun/presto | presto-main/src/main/java/com/facebook/presto/sql/planner/PlanOptimizers.java | Java | apache-2.0 | 27,329 |
package com.pipipark.spring.web.scaner;
import com.pipipark.scaner.core.ClassesScaner;
import com.pipipark.scaner.core.ScanEntity;
import com.pipipark.spring.PPPSpring;
import com.pipipark.spring.web.mvc.PPPMvcController;
/**
* 控制器扫描器.
* <pre style="color:#0072e3;padding-left:24px">
* 1. 实现控制器的集中管理。
* ... | pipipark/Tool | PPPark-Spring/src/main/java/com/pipipark/spring/web/scaner/ControllerScaner.java | Java | apache-2.0 | 841 |
package galaxyspace.systems.SolarSystem.planets.ceres.dimension.sky;
import org.lwjgl.opengl.GL11;
import asmodeuscore.api.dimension.IAdvancedSpace.StarColor;
import asmodeuscore.core.astronomy.sky.SkyProviderBase;
import galaxyspace.GalaxySpace;
import micdoodle8.mods.galacticraft.api.vector.Vector3;
import micdoodl... | BlesseNtumble/GalaxySpace | src/main/java/galaxyspace/systems/SolarSystem/planets/ceres/dimension/sky/SkyProviderCeres.java | Java | apache-2.0 | 5,375 |
package com.example;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;
@SpringBootApplication
@EnableConfigServer
public class MyConfigServerApplication {
public static void main(... | iwannarock/spring-cloud-demo | my-config-server/src/main/java/com/example/MyConfigServerApplication.java | Java | apache-2.0 | 406 |
package org.docksidestage.compatible10x.dbflute.whitebox.cbean.orderby;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.dbflute.cbean.ordering.ManualOrderOption;
import org.dbflute.cbean.result.ListResultBean;
import org.dbflute.cbean.scoping.SpecifyQuery;
import org.dbflute.excepti... | dbflute-test/dbflute-test-option-compatible10x | src/test/java/org/docksidestage/compatible10x/dbflute/whitebox/cbean/orderby/WxCBManualOrderSwitchOrderBasicTest.java | Java | apache-2.0 | 14,005 |
package contactus.repository;
import contactus.model.ContactGroup;
public interface ContactGroupRepository extends Repository<ContactGroup> {
}
| kokorin/Contactus | src/main/java/contactus/repository/ContactGroupRepository.java | Java | apache-2.0 | 146 |
package com.realcomp.prime.record.io;
import com.realcomp.prime.schema.FieldList;
import com.realcomp.prime.schema.SchemaException;
import java.io.IOException;
import java.util.logging.Logger;
public abstract class BaseRecordReader extends BaseRecordReaderWriter implements RecordReader{
private static final Logg... | real-comp/prime | src/main/java/com/realcomp/prime/record/io/BaseRecordReader.java | Java | apache-2.0 | 1,042 |
package net.powermatcher.runtime;
import java.util.UUID;
import org.flexiblepower.context.FlexiblePowerContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.powermatcher.api.AgentEndpoint;
import net.powermatcher.api.MatcherEndpoint;
import net.powermatcher.api.Session;
import net.powermatcher... | flexiblepower/powermatcher | net.powermatcher.runtime/src/net/powermatcher/runtime/SessionImpl.java | Java | apache-2.0 | 3,847 |
/*
* WbAnnotation.java
*
* This file is part of SQL Workbench/J, http://www.sql-workbench.net
*
* Copyright 2002-2015, Thomas Kellerer
*
* 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... | Taller/sqlworkbench-plus | src/workbench/sql/WbAnnotation.java | Java | apache-2.0 | 5,072 |
/**
* Copyright (C) 2014 Bruno Candido Volpato da Cunha (brunocvcunha@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
... | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyStreamUtils.java | Java | apache-2.0 | 2,971 |
/*
* 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... | gmrodrigues/crate | sql/src/main/java/io/crate/planner/Planner.java | Java | apache-2.0 | 33,065 |
package camelinaction;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder;
/**
* Using a Processor in the route to invoke HelloBean.
*/
public class InvokeWithProcessorRoute extends RouteBuilder {
@Override
public void configure() throws Except... | camelinaction/camelinaction2 | chapter4/bean/src/main/java/camelinaction/InvokeWithProcessorRoute.java | Java | apache-2.0 | 1,082 |
// 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... | cinderella/incubator-cloudstack | awsapi/src/com/amazon/ec2/RevokeSecurityGroupIngressType.java | Java | apache-2.0 | 30,424 |
package com.sequenceiq.cloudbreak.domain.stack.loadbalancer.aws;
/**
* Contains the ARNs for both a listener and the target group that listener forwards traffic to.
*/
public class AwsTargetGroupArnsDb {
private String listenerArn;
private String targetGroupArn;
public String getListenerArn() {
... | hortonworks/cloudbreak | core-model/src/main/java/com/sequenceiq/cloudbreak/domain/stack/loadbalancer/aws/AwsTargetGroupArnsDb.java | Java | apache-2.0 | 860 |
package com.pabloazana.marvelsample.resources;
import com.pabloazana.marvelsample.model.*;
import com.pabloazana.marvelsample.model.Character;
import com.pabloazana.marvelsample.net.ResourcesCallBacks.ResourcesCallBack;
import com.pabloazana.multipleheaderrecyclerview.model.RecycleBaseModel;
import java.security.NoSu... | pabloazana/marvelsample | app/src/main/java/com/pabloazana/marvelsample/resources/MarvelDataProviderInterface.java | Java | apache-2.0 | 851 |
/*
* Copyright 2015 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | jasonchaffee/apiman | gateway/engine/core/src/main/java/io/apiman/gateway/engine/auth/RequiredAuthType.java | Java | apache-2.0 | 2,452 |
/*
* Copyright (c) 2017-2021 VMware, 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.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
... | reactor/reactor-netty | reactor-netty-http/src/main/java/reactor/netty/http/client/HttpClientConnect.java | Java | apache-2.0 | 22,949 |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | googleapis/java-aiplatform | proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PurgeExecutionsMetadata.java | Java | apache-2.0 | 25,546 |
/**
* 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/ecl2.php
*
* Unless requ... | ua-eas/ksd-kc5.2.1-rice2.3.6-ua | rice-framework/krad-web-framework/src/main/java/org/kuali/rice/krad/datadictionary/validator/Validator.java | Java | apache-2.0 | 19,761 |
/*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | consulo/consulo | modules/base/xdebugger-impl/src/main/java/com/intellij/xdebugger/impl/ui/XDebuggerExpressionComboBox.java | Java | apache-2.0 | 7,024 |
package com.tvd12.ezyfox.sfs2x.serializer;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import com.smartfoxserver.v2.entities.data.ISFSArray;
import com.smartfoxserver.v2.entities.data.SFSArray;
import com.smartfoxserver.v2.entities.variables.Variable;
import com.tvd12.ezyfox.core.s... | youngmonkeys/ezyfox-sfs2x | src/main/java/com/tvd12/ezyfox/sfs2x/serializer/AgentSerializer.java | Java | apache-2.0 | 3,480 |
/*
* Copyright (c) 2013 Mike Deats
*
* 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... | SQUIDwarrior/critters | src/main/java/critters/gui/ControlPanel.java | Java | apache-2.0 | 5,301 |
package com.anysoftkeyboard;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.FrameLayout;
import androidx.appcompat.app.AlertDialog;
import androidx.test.core.app.ApplicationProvider;
import com.anysoftkeyboard.api.KeyCodes;
import... | AnySoftKeyboard/AnySoftKeyboard | ime/app/src/test/java/com/anysoftkeyboard/AnySoftKeyboardViewRelatedTest.java | Java | apache-2.0 | 7,189 |
/*
* Copyright 2015-2017 Austin Keener & Michael Ritter & Florian Spieß
*
* 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
*
* Unl... | mentlerd/JDA | src/main/java/net/dv8tion/jda/core/entities/MessageType.java | Java | apache-2.0 | 2,657 |
package test;
import sparkjni.jniLink.jniFunctions.JniMapFunction;
import sparkjni.utils.annotations.JniFunction;
import test.DoubleArray;
/**
* Created by tudor on 11/20/16.
*/
@JniFunction
public class MapCopyFunc extends JniMapFunction {
public MapCopyFunc() {
super();
}
public MapCopyFunc(S... | tudorv91/SparkJNI | integration-tests/generator-test/src/test/resources/generatorTester/src/main/java/test/MapCopyFunc.java | Java | apache-2.0 | 495 |
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.braintree;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.ConfigurerStrategy;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.spi.PropertyConfigure... | mcollovati/camel | components/camel-braintree/src/generated/java/org/apache/camel/component/braintree/PaymentMethodGatewayEndpointConfigurationConfigurer.java | Java | apache-2.0 | 7,237 |
/**
* Copyright 2015, Little Blue Frog
*
* 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... | jhutting/LD34 | core/test/nl/littlebluefrog/ld34/logic/BoardTest.java | Java | apache-2.0 | 1,428 |
package com.communote.server.core.mail.message.user;
import java.sql.Timestamp;
import java.util.UUID;
import com.communote.server.core.mail.MailSender;
import com.communote.server.core.mail.messages.user.RemindUserRegistrationMailMessage;
import com.communote.server.model.security.SecurityCodeAction;
import ... | Communote/communote-server | communote/tests/all-versions/integration/src/test/java/com/communote/server/core/mail/message/user/RemindUserRegistrationMailMessageTest.java | Java | apache-2.0 | 1,257 |
// Copyright (C) 2012 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 ... | gerrit-review/gerrit | java/com/google/gerrit/httpd/ProjectBasicAuthFilter.java | Java | apache-2.0 | 8,614 |
/*
* Copyright 2013-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | daniellavoie/spring-cloud-netflix | spring-cloud-netflix-eureka-client/src/main/java/org/springframework/cloud/netflix/ribbon/eureka/EurekaRibbonClientConfiguration.java | Java | apache-2.0 | 5,091 |
/*
*Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
*WSO2 Inc. licenses this file to you under the Apache License,
*Version 2.0 (the "License"); you may not use this file except
*in compliance with the License.
*You may obtain a copy of the License at
*
*http://www.apache.org/licenses/LI... | dimuthud/product-as | modules/distributed/platform-distributed-test-utils/src/main/java/org/wso2/appserver/distributed/admin/clients/ProxyServiceAdminClient.java | Java | apache-2.0 | 4,342 |
/*
* Copyright 2017 Mirko Sertic
*
* 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 ... | mirkosertic/Bytecoder | core/src/test/java/de/mirkosertic/bytecoder/core/LoopingTest.java | Java | apache-2.0 | 2,274 |
package proto.product;
/**
* Created by stumeikle on 15/09/20.
*/
public class Product {
}
| stumeikle/lateral | example/microservice/src/main/java/proto/product/Product.java | Java | apache-2.0 | 94 |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2022 DBeaver Corp and others
*
* 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... | dbeaver/dbeaver | plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/actions/datasource/DataSourceMigrateHandler.java | Java | apache-2.0 | 2,185 |
/*******************************************************************************
* Copyright (c) 2004, 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution,... | iteratec/logan | de.iteratec.logan.core/src/de/iteratec/logan/LoganPerspective.java | Java | apache-2.0 | 1,271 |
/*
* 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 | test/codegen-generated-classes-test/src/test/java/software/amazon/awssdk/services/SyncHttpChecksumInTrailerTest.java | Java | apache-2.0 | 7,424 |
package com.saasxx.framework.convert.converters.date;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.commons.lang3.StringUtils;
import com.saasxx.framework.Lang;
import com.saasxx.framework.convert.Converter;
import com.saasxx... | saasxx-open/framework | saasxx-framework/src/main/java/com/saasxx/framework/convert/converters/date/ObjectToDateConverter.java | Java | apache-2.0 | 1,403 |
import org.knowm.xchart.XChartPanel;
import org.knowm.xchart.internal.chartpart.Chart;
import javax.swing.*;
import java.awt.*;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.FileNotF... | grenuh/MitoDancer | src/main/java/ThirdWindow.java | Java | apache-2.0 | 2,472 |
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... | o3project/openflowj-otn | src/main/java/org/projectfloodlight/openflow/protocol/ver14/OFBsnFlowChecksumBucketStatsRequestVer14.java | Java | apache-2.0 | 15,169 |
package jupi;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.awt.geom.AffineTransform;
import java.util.ArrayList;
/**
* Class defining the billiards table and its aggregation of billiards balls.
... | benjamintoofer/cs56-jupi | jupi/JupiTable.java | Java | apache-2.0 | 18,534 |
package br.eti.clairton.security.another.pack;
import br.eti.clairton.security.Resource;
@Resource("sale")
public class SaleController {
protected SaleController() {
}
public SaleController(String foo) {
}
} | clairton/security | src/test/java/br/eti/clairton/security/another/pack/SaleController.java | Java | apache-2.0 | 214 |
package com.api.model;
import java.util.Date;
public class Farm {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column farm.id
*
* @mbg.generated
*/
private Integer id;
/**
*
* This field was generated by MyBatis Ge... | rickding/WallE | api/src/main/java/com/api/model/Farm.java | Java | apache-2.0 | 14,622 |
package com.gh4a.widget;
import android.content.Context;
import androidx.annotation.NonNull;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Filter;
import android.widget.Filterable;
imp... | slapperwan/gh4a | app/src/main/java/com/gh4a/widget/DropDownUserAdapter.java | Java | apache-2.0 | 5,759 |
package com.lfkdsk.justel.exception;
/**
* UnSupport Method in Eval Or Compiler
*
* @author liufengkai
* Created by liufengkai on 2017/7/24.
*/
public class UnSupportMethodException extends RuntimeException {
public UnSupportMethodException(String message) {
super(message);
}
}
| lfkdsk/Just-Evaluator | src/main/java/com/lfkdsk/justel/exception/UnSupportMethodException.java | Java | apache-2.0 | 311 |
/*
* 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-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/transform/ArchiveRuleSummaryMarshaller.java | Java | apache-2.0 | 2,997 |
/*
* 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 r... | parshimers/incubator-asterixdb | asterix-common/src/main/java/edu/uci/ics/asterix/common/annotations/UndeclaredFieldsDataGen.java | Java | apache-2.0 | 1,630 |
/*
* Copyright 2007-2012 Jiemamy Project and the Others.
* Created on 2010/12/17
*
* This file is part of Jiemamy.
*
* 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... | Jiemamy/dddbase | src/test/java/org/jiemamy/dddbase/spec/GreaterThanOrEqualsSpec.java | Java | apache-2.0 | 982 |
package com.thoughtworks.inproctester.resteasy;
import com.thoughtworks.inproctester.core.InProcRequest;
import com.thoughtworks.inproctester.core.UrlHelper;
import org.jboss.resteasy.client.ClientRequest;
import javax.ws.rs.core.MultivaluedMap;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import... | aharin/inproctester | inproctester-resteasy/src/main/java/com/thoughtworks/inproctester/resteasy/RestEasyClientInProcRequest.java | Java | apache-2.0 | 3,408 |
/**
* @FileName: NullOrEmail.java
* @Package: com.ziroom.sms.commons.annotation
* @author sence
* @created 11/18/2015 6:15 PM
* <p/>
* Copyright 2015 ziroom
*/
package com.asura.framework.commons.validator.annotation;
import org.hibernate.validator.constraints.CompositionType;
import org.hibernate.validator.con... | AsuraTeam/asura | asura-commons/src/main/java/com/asura/framework/commons/validator/annotation/NullOrEmail.java | Java | apache-2.0 | 1,353 |
/*
* Licensed to GraphHopper GmbH under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* GraphHopper GmbH licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not ... | ammagamma/graphhopper | api/src/main/java/com/graphhopper/GHRequest.java | Java | apache-2.0 | 10,586 |
/*
* 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-gamelift/src/main/java/com/amazonaws/services/gamelift/model/TargetConfiguration.java | Java | apache-2.0 | 7,642 |
/*
* Copyright 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | rest-assured/rest-assured | json-path/src/test/java/io/restassured/path/json/JsonPathCharsetTest.java | Java | apache-2.0 | 2,562 |
/*
* Copyright 2012, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | nao20010128nao/show-java | app/src/main/java/org/jf/dexlib2/dexbacked/util/AnnotationsDirectory.java | Java | apache-2.0 | 10,855 |
package com.training.camel.schedule;
/**
* Class description.
*
* @author Raman_Pliashkou
*/
public class Event {
private String body;
private EventType eventType;
public Event() {
}
public Event(String body, EventType eventType) {
this.body = body;
this.eventType = eventTyp... | dmgcodevil/statsd-component | statsd-component-test/src/main/java/com/training/camel/schedule/Event.java | Java | apache-2.0 | 856 |
/**
* Powerunit - A JDK1.8 test framework
* Copyright (C) 2014 Mathieu Boretti.
*
* This file is part of Powerunit
*
* Powerunit 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 Foundation, either version 3 of the ... | powerunit/powerunit-eclipse | powerunit-eclipse-plugin/src/main/java/ch/powerunit/poweruniteclipse/PowerunitLaunchTabGroup.java | Java | apache-2.0 | 1,705 |
package com.datalint.open.shared.xml.impl;
import org.w3c.dom.Document;
import org.w3c.dom.DocumentFragment;
public class XSLTImpl {
private XSLTImpl() {
}
public static XSLTImpl createInstance() {
return new XSLTImpl();
}
public void importStyleSheet(String styleSheet) {
// TODO
}
publ... | datalint/open | Open/src/main/java/com/datalint/open/shared/xml/impl/XSLTImpl.java | Java | apache-2.0 | 746 |
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
*/
package org.hibernate.query.sqm.produce.spi.criteria.from;
import java.util.Collection... | hibernate/hibernate-semantic-query | src/main/java/org/hibernate/query/sqm/produce/spi/criteria/from/JpaAttributeJoin.java | Java | apache-2.0 | 1,578 |
/*
* Copyright 2015-2020 OpenCB
*
* 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 ... | opencb/cellbase | cellbase-lib/src/main/java/org/opencb/cellbase/lib/builders/utils/GenomeSequenceUtils.java | Java | apache-2.0 | 5,901 |
//Copyright 2016 Gustavo de Souza. 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... | gusthavosouza/FineProp | src/main/java/br/com/gustavo/fineprop/annotations/Propertie.java | Java | apache-2.0 | 940 |
package example.andrewli.com.util.utils;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
/**
* Created by Andrew Li on 2016-07-06.
*/
public class PackageUtil {
public static boolean isAppInstalled(Context context, String uri... | iamlrf/android_utils_and_samples | Util/app/src/main/java/example/andrewli/com/util/utils/PackageUtil.java | Java | apache-2.0 | 886 |
package com.example.moon.weather.model;
/**
* Created by Administrator on 2016/3/28.
*/
public class County {
private int id;
private String countyName;
private String countyCode;
private int cityId;
public int getId() {
return id;
}
public void setId(int id) {
this.id =... | tangzhimang/Weather | app/src/main/java/com/example/moon/weather/model/County.java | Java | apache-2.0 | 801 |
package com.viewpagerindicator;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.os.Parcel;
import android.os.Parcelable;
import android.support... | ivanovpv/darksms | psm/src/main/java/com/viewpagerindicator/CirclePageIndicator.java | Java | apache-2.0 | 17,999 |
package br.org.sae.repository;
import java.util.List;
import br.org.sae.model.Aluno;
public interface AlunoRepository extends Repository<Aluno>{
List<Aluno> findAll(String nome);
Aluno findByCPF(String cpf);
}
| eberson/open-sae | src/main/java/br/org/sae/repository/AlunoRepository.java | Java | apache-2.0 | 230 |
package kulaga.aviasales.testnavapp;
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);
}
} | souravsin9/Aviasales-Android-SDK | navdrawer_demo/src/test/java/kulaga/aviasales/testnavapp/ExampleUnitTest.java | Java | apache-2.0 | 305 |
package com.github.mkolisnyk.cucumber.runner;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.notification.RunNotifier;
import cucumber.api.CucumberOptions;
public class RetryAcceptanceTest {
@ExtendedCucumberOptions(
jsonReport = "target/81/cucumber.json",
jsonUs... | mkolisnyk/cucumber-reports | cucumber-runner/src/test/java/com/github/mkolisnyk/cucumber/runner/RetryAcceptanceTest.java | Java | apache-2.0 | 5,960 |
package com.dev.bins.shareelementtransition;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v4.app.ActivityOptionsCompat;
import android.support.v7.app.AppCompatActivity;
import an... | binsheng/AndroidPractice | 5.0-Practice/shareelementtransition/src/main/java/com/dev/bins/shareelementtransition/MainActivity.java | Java | apache-2.0 | 1,946 |
/*
* Copyright (C) 2013 The Calrissian Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | calrissian/accumulo-recipes | store/entity-store/src/main/java/org/calrissian/accumulorecipes/entitystore/support/TransformUtils.java | Java | apache-2.0 | 1,196 |
/*
* Copyright 2007 Andrew Wills
*
* 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... | drewwills/cernunnos | cernunnos-core/src/main/java/org/danann/cernunnos/net/ContentsOfPhrase.java | Java | apache-2.0 | 3,089 |
/*
* 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.security.authc.saml;
import org.apache.loggin... | uschindler/elasticsearch | x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/saml/SamlAuthenticator.java | Java | apache-2.0 | 21,540 |
/*
* 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 ... | yanzhijun/jclouds-aliyun | blobstore/src/main/java/org/jclouds/blobstore/strategy/internal/MarkerFileMkdirStrategy.java | Java | apache-2.0 | 2,116 |
package fr.inra.maiage.bibliome.alvisir.core.expand;
/**
* Exception thrown by query and text expanders.
* @author rbossy
*
*/
@SuppressWarnings("serial")
public class ExpanderException extends Exception {
public ExpanderException() {
super();
}
public ExpanderException(String message, Throwable cause) {
s... | Bibliome/alvisir | alvisir-core/src/main/java/fr/inra/maiage/bibliome/alvisir/core/expand/ExpanderException.java | Java | apache-2.0 | 478 |
/*
* Copyright (C) 2010 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | Discounty/Discounty.android | app/src/main/java/discounty/com/google/zxing/oned/rss/expanded/ExpandedPair.java | Java | apache-2.0 | 2,881 |