repo_name stringlengths 5 108 | path stringlengths 6 333 | size stringlengths 1 6 | content stringlengths 4 977k | license stringclasses 15
values |
|---|---|---|---|---|
MaryArs/java_pdt | addressbook-web-tests/src/test/java/ru/stqa/pdt/addressbook/appmanager/BaseHelper.java | 1179 | package ru.stqa.pdt.addressbook.appmanager;
import org.openqa.selenium.By;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import java.io.File;
public class BaseHelper {
protected WebDriver wd;
public BaseHelper(WebDrive... | apache-2.0 |
JohnDoll/Toyota | src/main/java/apps/toyota/mainNavigation/MainNavigation.java | 4792 | package apps.toyota.mainNavigation;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.FindBy;
import org.testng.Assert;
import com.orasi.core.interfaces.Button;
import com.orasi.core.interfaces.Element;
import com.orasi.core.interfaces.Textbox;
import com.orasi.core.interfaces.impl.int... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/GetInventorySchemaRequest.java | 13491 | /*
* 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... | apache-2.0 |
lgoldstein/communitychest | chest/3rd-party/spring/core/src/test/java/net/community/chest/spring/test/resources/TestResourcesAnchorContext.java | 2153 | /*
*
*/
package net.community.chest.spring.test.resources;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* Serves as anchor to the resource files
* @author Lyor G.
* @since Jul... | apache-2.0 |
patrickfav/dice | src/main/java/at/favre/tools/dice/service/anuquantum/AnuQuantumService.java | 1052 | /*
* Copyright 2017 Patrick Favre-Bulle
*
* 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... | apache-2.0 |
EuropeanCustomsGateway/ReferenceData | referencedata-DS-ejb/src/main/java/org/ecg/refdata/datasource/entities/correlation/CorrelationItem.java | 2921 | package org.ecg.refdata.datasource.entities.correlation;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
import org.ecg.refdata.datasource.entities.commons.ReferenceDataAbstrac... | apache-2.0 |
opennetworkinglab/spring-open | src/main/java/net/onrc/onos/core/topology/web/serializers/TopologySerializer.java | 2217 | package net.onrc.onos.core.topology.web.serializers;
import java.io.IOException;
import net.onrc.onos.core.topology.Host;
import net.onrc.onos.core.topology.Link;
import net.onrc.onos.core.topology.Switch;
import net.onrc.onos.core.topology.MutableTopology;
import org.codehaus.jackson.JsonGenerator;
import org.codeh... | apache-2.0 |
kuangrewawa/onos | core/api/src/main/java/org/onosproject/net/DefaultNetwork.java | 4388 | /*
* Copyright 2014 Open Networking Laboratory
*
* 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... | apache-2.0 |
nextreports/nextreports-designer | src/ro/nextreports/designer/property/ImageChooser.java | 2269 | /*
* 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 ... | apache-2.0 |
yurloc/drools | drools-core/src/main/java/org/drools/reteoo/ObjectSinkPropagator.java | 2071 | /*
* Copyright 2010 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 agreed to i... | apache-2.0 |
nikita36078/J2ME-Loader | dexlib/src/main/java/com/android/dx/util/ByteArray.java | 9831 | /*
* Copyright (C) 2007 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 app... | apache-2.0 |
Xpitfire/ufo | UFO.Web/WebServiceClient/src/at/fhooe/hgb/wea5/ufo/web/generated/Artist.java | 5031 |
package at.fhooe.hgb.wea5.ufo.web.generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Artist complex type.
*
* <p>The following schema fragment ... | apache-2.0 |
renovatedCore/tourist-routes | src/Collections/Linear/List/UnorderedList/DoubleLinkedUnorderedList.java | 2517 | package Collections.Linear.List.UnorderedList;
import Collections.Exception.ElementNotFoundException;
import Collections.Exception.EmptyCollectionException;
import Collections.Linear.Interfaces.UnorderedListADT;
import Collections.Linear.List.DoubleLinkedList;
import Collections.Node.BilinearNode;
/**
* Created by i... | apache-2.0 |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnglobal_vpnsessionpolicy_binding.java | 12298 | /*
* Copyright (c) 2008-2015 Citrix Systems, 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... | apache-2.0 |
anjlab/eclipse-tapestry5-plugin | com.anjlab.eclipse.tapestry5/src/com/anjlab/eclipse/tapestry5/TapestryContextScope.java | 710 | package com.anjlab.eclipse.tapestry5;
import org.eclipse.ui.IWorkbenchWindow;
public class TapestryContextScope
{
public final IWorkbenchWindow window;
public final TapestryProject project;
public final TapestryContext context;
public final TapestryComponentSpecification specification;
public... | apache-2.0 |
new-x/study | chessboard/src/main/java/ru/job4j/Exceptions/ImposibleMoveException.java | 219 | package ru.job4j.Exceptions;
/**
* Created by aleks on 02.08.2017.
*/
public class ImposibleMoveException extends RuntimeException {
public ImposibleMoveException(String message){
super(message);
}
}
| apache-2.0 |
514840279/danyuan-application | src/main/java/org/danyuan/application/crawler/param/po/SysCrawlerRulerColumInfo.java | 7348 | package org.danyuan.application.crawler.param.po;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import org.danyuan.application.common.base.BaseEntity;
/**
* @文件名 SysCrawlerRulerColumInfo.... | apache-2.0 |
lijunyandev/MeetMusic | app/src/main/java/com/lijunyan/blackmusic/adapter/FolderAdapter.java | 3811 | package com.lijunyan.blackmusic.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import andro... | apache-2.0 |
BUPTAnderson/apache-hive-2.1.1-src | ql/src/java/org/apache/hadoop/hive/ql/optimizer/RedundantDynamicPruningConditionsRemoval.java | 9232 | /**
* 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 m... | apache-2.0 |
Blazebit/blaze-data | src/test/java/com/blazebit/data/importer/DataImporterTest.java | 3019 | /*
* Copyright 2011 Blazebit
*/
package com.blazebit.data.importer;
import java.io.File;
import org.junit.After;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import com.blazebit.data.cfg.Configuration;
import com.blazebit.data.importer.provider.CsvDataProvider;
import com.blaze... | apache-2.0 |
spencergibb/halfpipe | halfpipe-properties/src/main/java/halfpipe/properties/StringToDynaPropConverter.java | 2815 | package halfpipe.properties;
import com.google.common.base.Throwables;
import org.springframework.core.ResolvableType;
import org.springframework.core.convert.ConversionService;
import org.springframework.core.convert.TypeDescriptor;
import org.springframework.core.convert.converter.ConditionalGenericConverter;
impor... | apache-2.0 |
vjanmey/EpicMudfia | com/planet_ink/coffee_mud/Races/Robin.java | 2589 | package com.planet_ink.coffee_mud.Races;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.c... | apache-2.0 |
gawkermedia/googleads-java-lib | examples/adwords_axis/src/main/java/adwords/axis/v201506/basicoperations/GetCampaigns.java | 3383 | // Copyright 2015 Google 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... | apache-2.0 |
lmira1/EK-PDT-18 | EK-addressbook-java-tests/src/com/example/tests/TestFolderCreation.java | 1715 | package com.example.tests;
import java.util.List;
import org.testng.annotations.Test;
import com.example.fw.Folders;
import static org.hamcrest.MatcherAssert.*;
import static org.hamcrest.Matchers.*;
public class TestFolderCreation extends TestBase {
@Test
public void testFolderCreation(){
String folder = "n... | apache-2.0 |
51wakeup/wakeup-qcloud-sdk | src/main/java/com/wakeup/qcloud/listener/UrlParamDO.java | 1416 | package com.wakeup.qcloud.listener;
import com.alibaba.fastjson.annotation.JSONField;
import com.wakeup.qcloud.constant.OptPlatform;
import com.wakeup.qcloud.domain.BaseDO;
/**
* @since 2017年2月24日
* @author kalman03
*/
public class UrlParamDO extends BaseDO {
private static final long serialVersionUID = -7817364... | apache-2.0 |
spring-projects/spring-security | core/src/main/java/org/springframework/security/converter/RsaKeyConverters.java | 7627 | /*
* Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | apache-2.0 |
eaglelzy/myglide | library/src/main/java/com/lizy/myglide/manager/ActivityFragmentLifecycle.java | 1391 | package com.lizy.myglide.manager;
import com.lizy.myglide.util.Util;
import java.util.Collections;
import java.util.Set;
import java.util.WeakHashMap;
/**
* Created by lizy on 16-5-1.
*/
public class ActivityFragmentLifecycle implements Lifecycle {
private final Set<LifecycleListener> listeners =
... | apache-2.0 |
kaffee-public/producto-computing | entities/java/producto/computing/CpuSocket.java | 102 |
package producto.computing;
/**
* .
* @author ahorvath
*/
public class CpuSocket {
}
| apache-2.0 |
jasonzhang2022/flexims | security/src/main/java/com/flexdms/flexims/accesscontrol/QueryAuthorizer.java | 3188 | package com.flexdms.flexims.accesscontrol;
import javax.enterprise.context.RequestScoped;
import javax.enterprise.event.Observes;
import javax.inject.Inject;
import com.flexdms.flexims.accesscontrol.action.QueryAction;
import com.flexdms.flexims.accesscontrol.action.ReadAction;
import com.flexdms.flexims.jpa.eclipsel... | apache-2.0 |
fvdaak/aika | src/test/java/org/aika/network/SuspensionTest.java | 3934 | /*
* 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 ... | apache-2.0 |
palantir/atlasdb | atlasdb-commons/src/main/java/com/palantir/util/AssertUtils.java | 6598 | /*
* (c) Copyright 2018 Palantir Technologies 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 ... | apache-2.0 |
melkonyan/Android-Week-View | library/src/main/java/com/alamkanak/weekview/TimeInterpreter.java | 232 | package com.alamkanak.weekview;
import java.util.Calendar;
/**
* Creates string from hour that is displayed in the left column of the {@link WeekView}
*/
public interface TimeInterpreter {
String interpretTime(int hour);
}
| apache-2.0 |
nafae/developer | examples/adwords_axis/src/main/java/adwords/axis/v201402/adwordsforvideo/UpdateBidByFormat.java | 4483 | // Copyright 2014 Google 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... | apache-2.0 |
Sailboats/ACMS | src/com/caoligai/acms/dao/CourseDao.java | 1052 | package com.caoligai.acms.dao;
import java.util.ArrayList;
import java.util.List;
import com.avos.avoscloud.AVException;
import com.avos.avoscloud.AVObject;
import com.avos.avoscloud.AVQuery;
import com.avos.avoscloud.FindCallback;
import com.caoligai.acms.avobject.Course;
/**
* @ClassName: CourseDao
* @Descriptio... | apache-2.0 |
gfis/flodskim | src/main/java/org/teherba/flodskim/Main.java | 8948 | /* Read and Process (Floppy) Disk Image Formats
@(#) $Id: Main.java 820 2011-11-07 21:59:07Z gfis $
2013-11-05, Georg Fischer: copied from Main
*/
/*
* Copyright 2013 Dr. Georg Fischer <punctum at punctum dot kom>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | apache-2.0 |
AvinashRoyalc/Tomato-Curry | app/src/main/java/com/tomato/curry/RecyclerItemClickListener.java | 1455 | package com.tomato.curry;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
public class RecyclerItemClickListener implements RecyclerView.OnItemTouchListener {
private OnItemClick... | apache-2.0 |
Juanah/Android-BollerTuneZApp | obj/Debug/android/src/bollertunez/ActivityRegLoginTest.java | 1176 | package bollertunez;
public class ActivityRegLoginTest
extends android.app.Activity
implements
mono.android.IGCUserPeer
{
static final String __md_methods;
static {
__md_methods =
"n_onCreate:(Landroid/os/Bundle;)V:GetOnCreate_Landroid_os_Bundle_Handler\n" +
"";
mono.android.Runtime.register ("Boller... | apache-2.0 |
jdillon/gshell | gshell-commands/gshell-file/src/main/java/com/planet57/gshell/commands/file/DeleteDirectoryAction.java | 1623 | /*
* Copyright (c) 2009-present 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 ... | apache-2.0 |
SingingTree/hapi-fhir | hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/packages/NpmR4Test.java | 37532 | package ca.uhn.fhir.jpa.packages;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.context.FhirVersionEnum;
import ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster;
import ca.uhn.fhir.interceptor.api.IInterceptorService;
import ca.uhn.fhir.jpa.api.config.DaoConfig;
import ca.uhn.fhir.jpa.dao.data.INpmPack... | apache-2.0 |
bstopp/acs-aem-commons | bundle/src/main/java/com/adobe/acs/commons/indesign/dynamicdeckdynamo/workflow/processes/impl/DynamicDeckBackTrackProcess.java | 14865 | /*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2020 Adobe
* %%
* 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... | apache-2.0 |
lausd-teacher/schoolTools | src/net/videmantay/roster/seatingchart/ClassTimeMain.java | 541 | package net.videmantay.roster.seatingchart;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
public class ClassTimeMain extends Composite {
private static ClassTimeMainUiBinder... | apache-2.0 |
archos-sa/aos-MediaLib | src/com/uwetrottmann/trakt/v2/entities/Crew.java | 452 | package com.uwetrottmann.trakt.v2.entities;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class Crew {
public List<CrewMember> writing;
public List<CrewMember> production;
public List<CrewMember> directing;
@SerializedName("costume & make-up")
public List<CrewM... | apache-2.0 |
AiziChen/QMusicPlayer | app/src/main/java/service/MusicPlayerService.java | 4625 | package service;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.media.MediaPlayer;
import android.os.IBinder;
import android.widget.Toast;
import java.io.IOException;
... | apache-2.0 |
ewertondias/vigas-web | web/src/main/java/com/vigas/web/controller/DashboardController.java | 522 | package com.vigas.web.controller;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller()
@RequestMapping(value = "")
public c... | apache-2.0 |
gengGjy/ChinaMobile | ChinaMobile/cmplayer/src/main/java/com/chinamobile/cmplayer/MeasureHelper.java | 10541 | /*
* Copyright (C) 2015 Zhang Rui <bbcallen@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | apache-2.0 |
ukyovirgden/spring-social-twitter | spring-social-twitter/src/main/java/org/springframework/social/twitter/api/impl/Coordinates.java | 1536 | package org.springframework.social.twitter.api.impl;
import org.springframework.social.twitter.api.TwitterObject;
/**
* Created by Oyku Gencay (oyku at gencay.net) on 12.08.2014.
*
*/
public class Coordinates extends TwitterObject{
private String type;
private Double longitude;
private Double latitude... | apache-2.0 |
Shredder121/gh-event-api | src/main/java/com/github/shredder121/gh_event_api/handler/issues/IssuesEndpointController.java | 1727 | /*
* Copyright 2017 Shredder121.
*
* 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... | apache-2.0 |
jon-stumpf/traccar | test/org/traccar/protocol/Jt600ProtocolDecoderTest.java | 5584 | package org.traccar.protocol;
import org.traccar.ProtocolTest;
import org.junit.Test;
public class Jt600ProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
Jt600ProtocolDecoder decoder = new Jt600ProtocolDecoder(new Jt600Protocol());
verifyPositions... | apache-2.0 |
zhishan332/mana | src/main/java/com/wq/util/SystemUtil.java | 547 | package com.wq.util;
import javax.swing.filechooser.FileSystemView;
/**
* Created with IntelliJ IDEA.
* User: wangq
* Date: 13-5-20
* Time: 下午2:54
* To change this template use File | Settings | File Templates.
*/
public class SystemUtil {
/**
* 返回一个与系统无关的用户路径
*
* @return
*/
public s... | apache-2.0 |
rorogarcete/jbpm-console-ng | jbpm-console-ng-process-runtime/jbpm-console-ng-process-runtime-client/src/main/java/org/jbpm/console/ng/pr/client/editors/definition/details/multi/basic/BasicProcessDefDetailsMultiPresenter.java | 4059 | /*
* 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.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under t... | apache-2.0 |
yynil/elasticsearch | core/src/test/java/org/elasticsearch/search/aggregations/BaseAggregationTestCase.java | 16783 | /*
* 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... | apache-2.0 |
NickOdessa/java_qa | addressbook-web-tests/src/test/java/com/qa/java/addressbook/tests/ContactAddToGroupTest.java | 1854 | package com.qa.java.addressbook.tests;
import com.qa.java.addressbook.model.ContactData;
import com.qa.java.addressbook.model.Contacts;
import com.qa.java.addressbook.model.GroupData;
import com.qa.java.addressbook.model.Groups;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import st... | apache-2.0 |
mcekovic/tennis-crystal-ball | tennis-stats/src/main/java/org/strangeforest/tcb/stats/model/records/details/SeasonRankingPctDiffRecordDetail.java | 719 | package org.strangeforest.tcb.stats.model.records.details;
import com.fasterxml.jackson.annotation.*;
import static java.lang.String.*;
public class SeasonRankingPctDiffRecordDetail extends BaseSeasonRankingDiffRecordDetail<String> {
public SeasonRankingPctDiffRecordDetail(
@JsonProperty("value") double value,
... | apache-2.0 |
sogou-biztech/compass | aggregation/src/main/java/com/sogou/bizdev/compass/aggregation/datasource/Shard.java | 1310 | package com.sogou.bizdev.compass.aggregation.datasource;
import java.util.LinkedList;
import java.util.List;
import javax.sql.DataSource;
import org.springframework.util.CollectionUtils;
import com.sogou.bizdev.compass.core.router.TableContext;
/**
* 分表信息,保存了主从数据源、目标物理数据源、分库分表信息(TableContext)
* @author yk
* @si... | apache-2.0 |
OpenGamma/Strata | modules/product/src/test/java/com/opengamma/strata/product/deposit/ResolvedTermDepositTradeTest.java | 2803 | /*
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.product.deposit;
import static com.opengamma.strata.basics.currency.Currency.GBP;
import static com.opengamma.strata.basics.date.DayCounts.ACT_365F;
impo... | apache-2.0 |
li24361/mybatis-generator-core | src/main/java/org/mybatis/generator/internal/rules/Rules.java | 9143 | /**
* Copyright 2006-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
*
* Unle... | apache-2.0 |
thomasfischl/kylang | com.github.thomasfischl.kylang/test/com/github/thomasfischl/kylang/runtime/ScriptedKeywordTest.java | 533 | package com.github.thomasfischl.kylang.runtime;
import java.io.InputStreamReader;
import javax.script.ScriptEngine;
import javax.script.ScriptException;
import org.junit.Test;
public class ScriptedKeywordTest {
@Test
public void scriptKeywordTest() throws ScriptException {
KyLangScriptEngineFactory factory... | apache-2.0 |
jathusanT/pebble_colors | colors/src/main/java/com/jathusan/pebble/colors/RGBObject.java | 983 | package com.jathusan.pebble.colors;
public class RGBObject {
private boolean isAbsolute;
private int rValue;
private int gValue;
private int bValue;
private boolean isSelected;
public boolean isSelected() {
return isSelected;
}
public void setSelected(boolean isSe... | apache-2.0 |
menglingchong/SmartBeijing | src/com/heima/smartbeijing/domain/PhotosBean.java | 303 | package com.heima.smartbeijing.domain;
import java.util.ArrayList;
public class PhotosBean {
public PhotosData data;
public class PhotosData{
public ArrayList<PhotoNews> news;
}
public class PhotoNews{
public int id;
public String title;
public String listimage;
}
}
| apache-2.0 |
TNG/ArchUnit | archunit/src/test/java/com/tngtech/archunit/core/importer/testexamples/simpleimport/AnnotationToImport.java | 406 | package com.tngtech.archunit.core.importer.testexamples.simpleimport;
import java.util.List;
@SuppressWarnings("unused")
public @interface AnnotationToImport {
String someStringMethod() default "DEFAULT";
Class<?> someTypeMethod() default List.class;
EnumToImport someEnumMethod() default EnumToImport.SE... | apache-2.0 |
xiaohu846627/hello-world | ArchitectTutorial/src/main/java/com/example/thread/queue/MyObject.java | 741 | package com.example.thread.queue;
public class MyObject {
public synchronized void method1() {
System.out.println(Thread.currentThread().getName());
try {
Thread.sleep(4000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
public synchronized void method2() {
System.out.println(Thread.... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-directory/src/main/java/com/amazonaws/services/directory/model/transform/UpdateTrustRequestMarshaller.java | 2306 | /*
* 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... | apache-2.0 |
joschi/JadConfig | src/test/java/com/github/joschi/jadconfig/converters/ByteConverterTest.java | 1955 | package com.github.joschi.jadconfig.converters;
import com.github.joschi.jadconfig.ParameterException;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
/**
* Unit tests for {@link ByteConverter}
*
* @author jschalanda
*/
public class ByteConverterTest {
private ByteConverter converter... | apache-2.0 |
wentch/redkale | src/org/redkale/net/http/RestCookie.java | 992 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.net.http;
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.*;
import static ... | apache-2.0 |
rostam/gradoop | gradoop-flink/src/main/java/org/gradoop/flink/model/impl/operators/sampling/statistics/functions/AddSumDegreesToGraphHeadCrossFunction.java | 1952 | /*
* Copyright © 2014 - 2019 Leipzig University (Database Research Group)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | apache-2.0 |
dbflute-test/dbflute-test-dbms-db2 | src/main/java/org/docksidestage/db2/dbflute/exbhv/MemberFollowingBhv.java | 362 | package org.docksidestage.db2.dbflute.exbhv;
import org.docksidestage.db2.dbflute.bsbhv.BsMemberFollowingBhv;
/**
* The behavior of MEMBER_FOLLOWING.
* <p>
* You can implement your original methods here.
* This class remains when re-generating.
* </p>
* @author DBFlute(AutoGenerator)
*/
public class MemberFoll... | apache-2.0 |
tinosteinort/beanrepository | src/main/java/com/github/tinosteinort/beanrepository/ConstructorWithBeansAnd5Parameters.java | 289 | package com.github.tinosteinort.beanrepository;
@FunctionalInterface
public interface ConstructorWithBeansAnd5Parameters<B, PARAM_1, PARAM_2, PARAM_3, PARAM_4, PARAM_5> {
B create(BeanAccessor beans, PARAM_1 param1, PARAM_2 param2, PARAM_3 param3, PARAM_4 param4, PARAM_5 param5);
}
| apache-2.0 |
zeatul/learn | java-example/src/main/java/com/hawk/utility/App.java | 2802 | package com.hawk.utility;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import java.util.concurrent.CompletionService;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorCompletionService;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;... | apache-2.0 |
googleapis/java-datacatalog | proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedPolicyTag.java | 48480 | /*
* 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 ... | apache-2.0 |
iLabrys/iLabrysOSGi | es.itecban.deployment.model.plan.report/src/es/itecban/deployment/model/deployment/plan/report/marshaller/ObjectMarshaller.java | 2412 | /*******************************************************************************
* Copyright 2014 Indra
*
* 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... | apache-2.0 |
xiaohu846627/hello-world | ArchitectTutorial/src/main/java/com/example/design/pattern/masterworker/Main.java | 781 | package com.example.design.pattern.masterworker;
import java.util.Random;
import com.example.util.TimeUtil;
public class Main {
public static void main(String[] args) {
Master master = new Master(new Worker(), 50);
Random random = new Random();
for (int i = 0; i < 100; i++) {
Task ta... | apache-2.0 |
romanzenka/swift | swift/config-ui/src/main/java/edu/mayo/mprc/swift/configuration/client/view/DaemonWrapper.java | 6704 | package edu.mayo.mprc.swift.configuration.client.view;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.*;
import edu.mayo.mprc.swift.configuration.client.model.*;
import java.util.*;
public final class DaemonWrapper extends ... | apache-2.0 |
lucaswerkmeister/ceylon-model | src/com/redhat/ceylon/model/typechecker/model/NothingType.java | 1635 | package com.redhat.ceylon.model.typechecker.model;
import java.util.List;
/**
* The bottom type Nothing.
*
* @author Gavin King
*
*/
public class NothingType extends TypeDeclaration {
public NothingType(Unit unit) {
this.unit = unit;
}
@Override
public void addMember(Declaratio... | apache-2.0 |
sckm/CreateIntentGeneratorPlugin | src/typegenerators/PrimitiveArrayGeneratorFactory.java | 1800 | /*
* Copyright (C) 2015 Seesaa Inc.
* Copyright (C) 2013 Michał Charmas (http://blog.charmas.pl)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/license... | apache-2.0 |
otsecbsol/linkbinder | linkbinder-core/src/test/java/jp/co/opentone/bsol/linkbinder/dao/impl/DistTemplateTestBase.java | 22849 | /*
* Copyright 2016 OPEN TONE 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 ... | apache-2.0 |
eumji025/leetcode-program | src/com/eumji/longestcommonprofix/Solution.java | 1072 | package com.eumji.longestcommonprofix;
/**
*
* Write a function to find the longest common prefix string amongst an array of strings.
*
* 在一个数组中 找到最大的公共前缀字符串
*
* @email eumji025@gmail.com
* @author:EumJi
* @date: 2017/8/30
* @time: 16:59
*/
public class Solution {
//假设第一个为公共前缀,然后依次和后面的字符串进行对比,如果相同就进行下... | apache-2.0 |
Yiiinsh/x-pipe | redis/redis-console/src/main/java/com/ctrip/xpipe/redis/console/controller/consoleportal/HealthCheckController.java | 2606 | package com.ctrip.xpipe.redis.console.controller.consoleportal;
import com.ctrip.xpipe.endpoint.HostPort;
import com.ctrip.xpipe.redis.console.config.ConsoleConfig;
import com.ctrip.xpipe.redis.console.controller.AbstractConsoleController;
import com.ctrip.xpipe.redis.console.health.delay.DelayService;
import com.ctri... | apache-2.0 |
Amplifino/nestor | com.amplifino.nestor.jdbc.pools/src/com/amplifino/nestor/jdbc/wrappers/PreparedStatementWrapper.java | 9648 | package com.amplifino.nestor.jdbc.wrappers;
import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.net.URL;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Date;
import java.sql.NClob;
import java.sql.ParameterMetaData;
import java.sql... | apache-2.0 |
pkcool/bmsuite | bmsuite-framework/src/main/java/com/enginemobi/core/common/SearchCriteria.java | 445 | package com.enginemobi.core.common;
import java.util.ArrayList;
import java.util.List;
public interface SearchCriteria extends List<Criterion>
{
public static class Builder
{
public static SearchCriteria create()
{
return new SearchCriteriaImpl();
}
private static ... | apache-2.0 |
hungcuongbsm/spdv | core/src/test/java/com/vnpt/spdv/service/impl/LookupManagerImplTest.java | 1040 | package com.vnpt.spdv.service.impl;
import com.vnpt.spdv.Constants;
import com.vnpt.spdv.dao.LookupDao;
import com.vnpt.spdv.model.LabelValue;
import com.vnpt.spdv.model.Role;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import java.util.ArrayList;
import java.util.List;
import sta... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/transform/CreateJobQueueResultJsonUnmarshaller.java | 3065 | /*
* 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... | apache-2.0 |
wyukawa/presto | presto-tpch/src/main/java/io/prestosql/plugin/tpch/TpchTableHandle.java | 2774 | /*
* 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... | apache-2.0 |
link-intersystems/maven | maven-plugins/svntools-maven-plugin/src/main/java/com/link_intersystems/maven/plugin/tools/svn/RichSvnRepository.java | 3746 | package com.link_intersystems.maven.plugin.tools.svn;
import org.apache.commons.lang3.StringUtils;
import org.apache.maven.settings.Server;
import org.tmatesoft.svn.core.SVNException;
import org.tmatesoft.svn.core.SVNURL;
import org.tmatesoft.svn.core.auth.ISVNAuthenticationManager;
import org.tmatesoft.svn.cor... | apache-2.0 |
caelum/vraptor-scala-mydvds | src/test/integration/br/com/caelum/vraptor/mydvds/pages/HomePage.java | 1314 | /***
* Copyright (c) 2009 Caelum - www.caelum.com.br/opensource
* 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
... | apache-2.0 |
cowthan/JavaAyo | src/com/cowthan/pattern1/proxy/ordinary/IGameProxy.java | 476 | package com.cowthan.pattern1.proxy.ordinary;
/**
* 代理的个性:
* ——代理的个性才是代理存在的价值
* ——代理的个性就是代理干了真实对象不能干的事
*
* 游戏代练的接口,就是收钱,这个例子不太恰当,因为基本上代理的意义是对
* 对象功能的扩展,而不是仅仅完成了对象能做的事情之后去跟对象要钱
* @author qiaoliang
*
*/
public interface IGameProxy {
void count();
}
| apache-2.0 |
patrickfav/uber-adb-tools | src/test/java/at/favre/tools/uberadb/AdbLocationFinderImplTest.java | 465 | package at.favre.tools.uberadb;
import org.junit.Test;
import static org.junit.Assert.fail;
public class AdbLocationFinderImplTest {
@Test
public void testLocation() {
AdbLocationFinderImpl locationFinder = new AdbLocationFinderImpl();
try {
locationFinder.find(
... | apache-2.0 |
summax/HYGBlog | src/main/java/com/hyg/controller/LoginController.java | 813 | package com.hyg.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@Controller
public class LoginController
{
... | apache-2.0 |
daedric/buck | src/com/facebook/buck/android/HasInstallableApk.java | 1668 | /*
* Copyright 2012-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... | apache-2.0 |
jituo666/CrazyPic | src/com/xjt/crazypic/edit/controller/ParameterSaturation.java | 574 | package com.xjt.crazypic.edit.controller;
public class ParameterSaturation extends BasicParameterInt {
public static String sParameterType = "ParameterSaturation";
float[] mHSVO = new float[4];
public ParameterSaturation(int id, int value) {
super(id, value, 0, 100);
}
@Override
publi... | apache-2.0 |
baoyongan/java-examples | java-eg-thread/src/main/java/com/baoyongan/java/eg/thread/concurrent/ExchangerTest.java | 3041 | package com.baoyongan.java.eg.thread.concurrent;
import java.util.Random;
import java.util.concurrent.Exchanger;
public class ExchangerTest {
public static void main(String[] args) {
FillAndEmpty fae=new FillAndEmpty();
fae.start();
}
}
class FillAndEmpty {
Exchanger<String> exchanger = ... | apache-2.0 |
ahus1/bdd-examples | jgiven-mockito-spring/src/test/java/de/ahus1/bdd/calculator/adapter/inmemory/CalculatorInMemoryRepository.java | 279 | package de.ahus1.bdd.calculator.adapter.inmemory;
import de.ahus1.bdd.calculator.domain.Calculator;
import de.ahus1.bdd.calculator.domain.CalculatorRepository;
public class CalculatorInMemoryRepository extends InMemoryRepository<Calculator> implements CalculatorRepository {
}
| apache-2.0 |
Romkje/pft_java_34 | addressbook/src/test/java/ua/pft/addressbook/tests/ContactCreationTests.java | 1109 | package ua.pft.addressbook.tests;
import org.testng.Assert;
import org.testng.annotations.Test;
import ua.pft.addressbook.model.ContactData;
import java.util.Comparator;
import java.util.List;
public class ContactCreationTests extends TestBase {
@Test
public void testContactCreation() throws InterruptedExce... | apache-2.0 |
ctripcorp/x-pipe | redis/redis-checker/src/main/java/com/ctrip/xpipe/redis/checker/healthcheck/actions/redisinfo/InfoActionController.java | 385 | package com.ctrip.xpipe.redis.checker.healthcheck.actions.redisinfo;
import com.ctrip.xpipe.redis.checker.healthcheck.HealthCheckActionController;
import com.ctrip.xpipe.redis.checker.healthcheck.RedisHealthCheckInstance;
/**
* @author Slight
* <p>
* Jun 01, 2021 4:24 PM
*/
public interface InfoActionController e... | apache-2.0 |
MathRandomNext/Android | Meetup/app/src/main/java/com/telerikacademy/meetup/ui/adapter/PlacesAutocompleteLimitAdapter.java | 699 | package com.telerikacademy.meetup.ui.adapter;
import android.content.Context;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.widget.ArrayAdapter;
import java.util.List;
public class PlacesAutocompleteLimitAdapter<T> extends ArrayAdapter<T> {
private static... | apache-2.0 |
gawkermedia/googleads-java-lib | modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201602/CustomFieldErrorReason.java | 1289 |
package com.google.api.ads.dfp.jaxws.v201602;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for CustomFieldError.Reason.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType na... | apache-2.0 |
dagnir/aws-sdk-java | aws-java-sdk-mechanicalturkrequester/src/main/java/com/amazonaws/services/mturk/model/DeleteWorkerBlockRequest.java | 5216 | /*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | apache-2.0 |
TatyanaAlex/tfukova | sql_jdbc/src/main/java/ru.job4j/jdbc/StoreSql.java | 2831 | package ru.job4j.jdbc;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
public class StoreSql implements AutoCloseable {
private final Config config;
private Connection connect;
public StoreSql(Config config, Connection connection) {
this.config = config;
this.connec... | apache-2.0 |
vespa-engine/vespa | clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/testutils/WaitCondition.java | 9055 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.core.testutils;
import com.yahoo.vdslib.state.ClusterState;
import com.yahoo.vdslib.state.Node;
import com.yahoo.vdslib.state.NodeType;
import com.yahoo.vespa.clustercontro... | apache-2.0 |
googleapis/java-compute | proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AddressesScopedListOrBuilder.java | 3206 | /*
* 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 ... | apache-2.0 |
lukas-krecan/smock | samples/cxf-client-test/src/test/java/net/javacrumbs/calc/CalcTest.java | 5023 | /**
* Copyright 2009-2010 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 a... | apache-2.0 |