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 |
|---|---|---|---|---|---|
package io.digdag.spi;
import java.time.Instant;
import java.time.ZoneId;
public interface Scheduler
{
ZoneId getTimeZone();
// align this time with the last schedule time.
// returned value is same with currentTime or after currentTime.
ScheduleTime getFirstScheduleTime(Instant currentTime);
//... | KimuraTakaumi/digdag | digdag-spi/src/main/java/io/digdag/spi/Scheduler.java | Java | apache-2.0 | 648 |
/*
Copyright 2014 eBusiness Information
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, ... | e-biz/dma-template-sample | native-android-sources/app/src/main/java/mobi/designmyapp/template/sample/ods/util/StreamUtils.java | Java | apache-2.0 | 1,686 |
package ru.javabreeze.android.sunshine.app.data;
/**
* Created by Алексей on 04.09.2016.
*/
import android.content.ComponentName;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.pm.PackageManager;
import android.content.pm.ProviderInfo;
import android.database.Cursor;... | al-t/sunshine | app/src/androidTest/java/ru/javabreeze/android/sunshine/app/data/TestProvider.java | Java | apache-2.0 | 24,557 |
package com.lucidworks.hadoop.fusion;
import com.lucidworks.hadoop.io.LWDocument;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.mapred.Reporter;
import org.apache.http.client.HttpResponseException;
import org.apache.solr.common.SolrException;
import org.j... | LucidWorks/solr-hadoop-common | solr-hadoop-io/src/test/java/com/lucidworks/hadoop/fusion/QueryPipelineClientTest.java | Java | apache-2.0 | 4,002 |
/*
* 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 ... | DariusX/camel | core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ElsqlEndpointBuilderFactory.java | Java | apache-2.0 | 95,666 |
package com.sourcerebels.simpledpicalculator.model;
/**
* Densities enumeration.
*/
public enum ScreenDensity {
LDPI(0.75f),
MDPI(1.0f),
HDPI(1.5f),
XHDPI(2.0f),
XXHDPI(3.0f),
XXXHDPI(4.0f);
private float mFactor;
private ScreenDensity(float factor) {
mFactor = factor;
... | sourcerebels/simple-dpi-calculator | app/src/main/java/com/sourcerebels/simpledpicalculator/model/ScreenDensity.java | Java | apache-2.0 | 494 |
package com.example;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.util.Log;
imp... | hristobakalov/BeFriendy | app/src/main/java/com/example/LoginActivity.java | Java | apache-2.0 | 8,584 |
package put.ci.cevo.experiments.ipd;
import put.ci.cevo.framework.factories.IndividualFactory;
import put.ci.cevo.framework.factories.UniformRandomPopulationFactory;
import put.ci.cevo.util.annotations.AccessedViaReflection;
public class IPDPopulationFactory extends UniformRandomPopulationFactory<IPDVector> {
@Acce... | pliskowski/ECJ-2015 | cevo-experiments/src/main/java/put/ci/cevo/experiments/ipd/IPDPopulationFactory.java | Java | apache-2.0 | 572 |
package GrammarSimulator;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* this class describes a production rule of a formal {@link Grammar}.
* Every rule contains a ... | Winis04/STUPS-Toolbox-2.0 | src/main/java/GrammarSimulator/Rule.java | Java | apache-2.0 | 2,448 |
/*
* Copyright 2017 Hippo Seven
*
* 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 ... | seven332/Stage | demo/src/main/java/com/hippo/stage/demo/scene/ChildDirectorScene.java | Java | apache-2.0 | 1,664 |
/*
* 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-code/src/main/java/org/kuali/coeus/common/notification/impl/KcNotificationAuthorizationServiceImpl.java | Java | apache-2.0 | 2,032 |
package nu.aron.kataromannumerals;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
class RegistryTest {
Registry registry;
@BeforeEach
void setUp() {
// registry = new Registry(empty());
}
@Test
void test() {
System.err.println("One");
Reg... | andreasaronsson/kataromannumerals | src/test/java/nu/aron/kataromannumerals/RegistryTest.java | Java | apache-2.0 | 686 |
/**
* Runs through some samples on how to use CloudCIX JAVA SDK.
*/
import java.util.Map;
import java.util.HashMap;
import org.json.simple.JSONObject;
import cloudcix.base.CloudCIXAuth;
import cloudcix.base.Response;
import cloudcix.base.Utilities;
import cloudcix.api.Auth;
import cloudcix.api.Membership;
/**
* @... | CloudCIX/cloudcix-java | cloudcix-java/UsageSample/src/HelloWorld.java | Java | apache-2.0 | 4,956 |
package co.uk.sentinelweb.lantv.net.smb;
import org.junit.Before;
import org.junit.Test;
import java.util.List;
import co.uk.sentinelweb.lantv.domain.Media;
import co.uk.sentinelweb.lantv.net.smb.url.SmbLocationParser;
/**
* Created by robert on 12/02/2017.
*/
public class SmbShareListInteractorTest {
static ... | sentinelweb/LanTV | net/src/test/java/co/uk/sentinelweb/lantv/net/smb/SmbShareListInteractorTest.java | Java | apache-2.0 | 2,759 |
package org.jeecg.common.api.dto;
import lombok.Data;
import javax.servlet.http.HttpServletResponse;
import java.io.Serializable;
/**
* 文件下载
* cloud api 用到的接口传输对象
*/
@Data
public class FileDownDTO implements Serializable {
private static final long serialVersionUID = 6749126258686446019L;
private String... | zhangdaiscott/jeecg-boot | jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/api/dto/FileDownDTO.java | Java | apache-2.0 | 750 |
package ro.cs.pub.ro.practicaltest02;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import an... | stanioanmihail/PDSDPracticalTest01 | OtherExamples/PracticalTest02/src/ro/cs/pub/ro/practicaltest02/PracticalTest02MainActivity.java | Java | apache-2.0 | 3,884 |
package de.uni_hildesheim.sse.ivml.comments.editor;
import org.eclipse.ui.editors.text.TextEditor;
/**
* A simple editor for IVML comments.
* Currently, this editor does not provide any further capabilities then
* editing plain text.
*
* Implementation based on http://www.ccs.neu.edu/home/lieber/courses/csu670/... | SSEHUB/EASyProducer | Plugins/IVML/de.uni-hildesheim.sse.ivml.comments/src/de/uni_hildesheim/sse/ivml/comments/editor/CommentsEditor.java | Java | apache-2.0 | 555 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us... | arquillian/arquillian-extension-warp | ftest/src/test/java/org/jboss/arquillian/warp/ftest/commandBus/EnrichTestCase.java | Java | apache-2.0 | 1,355 |
//
// Copyright 2011 Thomas Gumprecht, Robert Jacob, Thomas Pieronczyk
//
// 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 requir... | xperimental/garanbot | src/net/sourcewalker/garanbot/account/LoginActivity.java | Java | apache-2.0 | 7,931 |
/**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.sys.security;
import com.thinkgem.jeesite.common.utils.StringUtils;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.Authenticati... | ubluer/XiangOA | src/main/java/com/thinkgem/jeesite/modules/sys/security/FormAuthenticationFilter.java | Java | apache-2.0 | 4,562 |
package com.soulin.mvpdouban.data;
import com.soulin.mvpdouban.data.local.DatabaseHelper;
import com.soulin.mvpdouban.data.local.PreferencesHelper;
import com.soulin.mvpdouban.data.model.Movie;
import com.soulin.mvpdouban.data.model.MovieList;
import com.soulin.mvpdouban.data.remote.MoviesService;
import java.util.Li... | Yoyun/MvpDouBan | app/src/main/java/com/soulin/mvpdouban/data/DataManager.java | Java | apache-2.0 | 1,591 |
/**
* 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... | apparentlymart/shindig | java/gadgets/src/test/java/org/apache/shindig/gadgets/parse/caja/VanillaCajaHtmlSerializerTest.java | Java | apache-2.0 | 2,679 |
/*
* Copyright 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 agreed ... | talent518/zxing | src/com/google/zxing/aztec/AztecDetectorResult.java | Java | apache-2.0 | 1,317 |
package com.coolweather.app.db;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.coolweather.app.model.City;
import com.coolweather.app.model.Province;
pu... | zhangchuanchuan/coolweather | src/com/coolweather/app/db/CoolWeatherDB.java | Java | apache-2.0 | 2,935 |
package server;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.net.Socket;
import java.util.logging.Level;
/**
* Represents a thread that handles a request by a client in the logic of the
* client server pattern
*
* @author Andrea Sessa
* @author Giorgio Pea
* @vers... | DeadManPoe/AFOSpaceProject | src/main/java/server/SocketThread.java | Java | apache-2.0 | 2,029 |
package org.jboss.resteasy.reactive.client.impl;
import io.vertx.core.Vertx;
import java.util.Collections;
import java.util.Map;
import java.util.function.Supplier;
import javax.ws.rs.RuntimeType;
import org.jboss.resteasy.reactive.client.spi.ClientContext;
import org.jboss.resteasy.reactive.client.spi.ClientContextRe... | quarkusio/quarkus | independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/DefaultClientContext.java | Java | apache-2.0 | 1,815 |
package net.mmberg.nadia.processor.dialogmodel.aqd;
import net.mmberg.nadia.dialogmodel.definition.aqd.AQDContextModel;
public class AQDContext extends AQDContextModel{
public AQDContext(){
super();
}
public AQDContext(String specification, String reference){
super(specification, reference);
}
}
| mmberg/nadia | src/net/mmberg/nadia/processor/dialogmodel/aqd/AQDContext.java | Java | apache-2.0 | 312 |
package com.sequenceiq.cloudbreak.service.stack.repair;
import java.util.Set;
import java.util.concurrent.ExecutorService;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import com.sequenceiq.cloudbreak.api.model.Status;
import c... | sequenceiq/cloudbreak | core/src/main/java/com/sequenceiq/cloudbreak/service/stack/repair/StackRepairService.java | Java | apache-2.0 | 4,618 |
/*
* 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 applica... | jenkinsci/google-cloud-backup-plugin | src/main/java/com/google/jenkins/plugins/cloudbackup/initiation/NoActionInitiationStrategy.java | Java | apache-2.0 | 1,402 |
/**
*
*/
package org.nick.wwwjdic.client;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.zip.GZIPInputStream;
import org.apache.http.Header;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.... | nelenkov/wwwjdic | wwwjdic/src/org/nick/wwwjdic/client/GzipStringResponseHandler.java | Java | apache-2.0 | 1,897 |
package org.apache.pig.backend.hadoop.executionengine.spark_streaming.converter;
import java.io.Serializable;
import java.util.List;
import org.apache.pig.backend.executionengine.ExecException;
import org.apache.pig.backend.hadoop.executionengine.physicalLayer.POStatus;
import org.apache.pig.backend.hadoop.executione... | sigmoidanalytics/spork-streaming | src/org/apache/pig/backend/hadoop/executionengine/spark_streaming/converter/FilterConverter.java | Java | apache-2.0 | 2,409 |
package com.android.ocrball;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.graphics.PixelFormat;
import android.os.IBinder;
import android.util.Log;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.MotionEvent;
i... | Jeson2016/ocr-ball | OcrBall/app/src/main/java/com/android/ocrball/OcrBallService.java | Java | apache-2.0 | 2,016 |
package org.luapp.practise.mqtt;
import org.fusesource.mqtt.client.*;
import java.net.URISyntaxException;
import java.util.concurrent.TimeUnit;
/**
* Created by lum on 2015/7/1.
*/
public class HelloMqtt {
public static void main(String[] args) throws Exception {
new Thread(new Runnable() {
... | lumeng689/luapp | practise/src/main/java/org/luapp/practise/mqtt/HelloMqtt.java | Java | apache-2.0 | 1,915 |
/* ====================================================================
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 Y... | lvweiwolf/poi-3.16 | src/testcases/org/apache/poi/ss/formula/EvaluationListener.java | Java | apache-2.0 | 2,276 |
package mm.events;
import android.content.Intent;
import android.os.Bundle;
import android.app.Activity;
import android.support.v7.app.ActionBarActivity;
import android.view.MenuItem;
/**
* An activity representing a single FBListEvent detail screen. This
* activity is only used on handset devices. On tablet-size... | MarekMatejkaKCL/Events | app/src/main/java/mm/events/FBListEventDetailActivity.java | Java | apache-2.0 | 2,718 |
package algorithm.leet_370_end;
/**
* Created by shu on 2016/9/27.
*/
public class Find_the_Difference_389 {
public char findTheDifference(String s, String t) {
int[] arr = new int[26];
for (int i = 0; i < s.length(); i++) {
arr[s.charAt(i) - 'a']++;
}
for (int i = 0; ... | songshu198907/LeetPractise | src/main/java/algorithm/leet_370_end/Find_the_Difference_389.java | Java | apache-2.0 | 449 |
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* 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 ... | PlanetWaves/clockworkengine | trunk/jme3-core/src/main/java/com/jme3/scene/debug/SkeletonInterBoneWire.java | Java | apache-2.0 | 4,908 |
/**
* Copyright 2015 David Karnok and Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | akarnokd/rxjava2-backport | src/test/java/hu/akarnokd/rxjava2/internal/operators/nbp/NbpOperatorDistinctUntilChangedTest.java | Java | apache-2.0 | 4,981 |
/*
* Copyright 2015 prashant kumar (prashant4nov).
*
* 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... | karimgarza/StatsAgg | src/main/java/com/pearson/statsagg/webui/api/NotificationGroupDetails.java | Java | apache-2.0 | 4,377 |
/*
*
* Copyright 2017-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 req... | springfox/springfox | springfox-spring-web/src/main/java/springfox/documentation/spring/web/plugins/JacksonSerializerConvention.java | Java | apache-2.0 | 4,104 |
/*
* Copyright 2012 Nodeable 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 l... | StreamReduce/streamreduce-core | analytics/src/test/java/com/streamreduce/storm/spouts/ConnectionSpoutTest.java | Java | apache-2.0 | 2,419 |
package org.metaborg.spoofax.eclipse.editor;
public interface IEclipseEditorRegistryInternal {
void register();
} | metaborg/spoofax-eclipse | org.metaborg.spoofax.eclipse/src/main/java/org/metaborg/spoofax/eclipse/editor/IEclipseEditorRegistryInternal.java | Java | apache-2.0 | 118 |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vdslib.state;
import com.yahoo.text.StringUtilities;
import java.text.ParseException;
import java.util.BitSet;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java... | vespa-engine/vespa | vdslib/src/main/java/com/yahoo/vdslib/state/ClusterState.java | Java | apache-2.0 | 20,549 |
/*
* Copyright 2016 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 ... | inferred/FreeBuilder | src/test/java/org/inferred/freebuilder/processor/property/ListPropertyTest.java | Java | apache-2.0 | 38,015 |
/*
* Copyright 2018 Public Transit Analytics.
*
* 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... | PublicTransitAnalytics/ScoreGenerator | src/main/java/com/publictransitanalytics/scoregenerator/distance/ForwardPointSequencer.java | Java | apache-2.0 | 1,666 |
/*
* Copyright 2013 Guidewire Software, Inc.
*/
package gw.lang.parser;
public interface IStackProvider
{
int THIS_POS = 0;
int SUPER_POS = 1;
int START_POS = 2;
/**
* For compile-time assignment of stack indexes.
*/
public int getNextStackIndex();
/**
* For compile-time assignment of stack i... | gosu-lang/old-gosu-repo | gosu-core-api/src/main/java/gw/lang/parser/IStackProvider.java | Java | apache-2.0 | 538 |
package ru.stqa.addressbook.tests;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.stqa.addressbook.model.ContactData;
import ru.stqa.addressbook.model.Contacts;
import ru.stqa.addressbook.model.GroupData;
import ru.stqa.addressbook.model.Groups;
import static org.hamcrest.Co... | Sunshine747/task_1 | addressbook-web-tests/src/test/java/ru/stqa/addressbook/tests/ContactDeletionFromGroupTest.java | Java | apache-2.0 | 1,793 |
/*
* Knetik Platform API Documentation latest
* This is the spec for the Knetik API. Use this in conjunction with the documentation found at https://knetikcloud.com.
*
* OpenAPI spec version: latest
* Contact: support@knetik.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* ... | knetikmedia/knetikcloud-java-client | src/main/java/com/knetikcloud/model/PageResourceUserLevelingResource.java | Java | apache-2.0 | 7,677 |
package com.tcl.idm.util;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
/**
* This class is intended to be used with the SystemCommandExecutor class to let
* users execute system comma... | yuanhuan2005/idm-java-sdk | src/main/java/com/tcl/idm/util/ThreadedStreamHandler.java | Java | apache-2.0 | 3,693 |
package org.nutz.plugins.view.freemarker;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.GenericServlet;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpS... | lusparioTT/fks | src/org/nutz/plugins/view/freemarker/FreemarkerView.java | Java | apache-2.0 | 6,705 |
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: https://plantuml.com
*
* If you like this project or if ... | talsma-ict/umldoclet | src/plantuml-asl/src/net/sourceforge/plantuml/windowsdot/WindowsDotArchive.java | Java | apache-2.0 | 3,464 |
/*
* Copyright 2017 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 a... | googlearchive/science-journal | OpenScienceJournal/whistlepunk_library/src/main/java/com/google/android/apps/forscience/whistlepunk/ReusableFormatter.java | Java | apache-2.0 | 1,207 |
package org.support.project.knowledge.bat;
import org.apache.commons.lang.ClassUtils;
import org.h2.tools.Server;
import org.support.project.common.config.ConfigLoader;
import org.support.project.common.log.Log;
import org.support.project.common.log.LogFactory;
import org.support.project.knowledge.logic.DataTransferLo... | support-project/knowledge | src/main/java/org/support/project/knowledge/bat/DataTransferBat.java | Java | apache-2.0 | 3,706 |
/*
* 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 ... | tijoparacka/nifi | nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/src/main/java/org/apache/nifi/record/script/ScriptedRecordSetWriter.java | Java | apache-2.0 | 7,624 |
/*
* Copyright 2015-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | spring-cloud/spring-cloud-zookeeper | spring-cloud-zookeeper-core/src/main/java/org/springframework/cloud/zookeeper/ZookeeperHealthAutoConfiguration.java | Java | apache-2.0 | 2,290 |
/*
* Copyright 2015 recommenders.net.
*
* 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... | recommenders/rival | rival-evaluate/src/test/java/net/recommenders/rival/evaluation/metric/NDCGTest.java | Java | apache-2.0 | 7,401 |
/*
* Copyright (c) 2014 Keetip
*
* 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 ... | keetip/versio | core/src/main/java/com/keetip/versio/domain/Project.java | Java | apache-2.0 | 2,561 |
package org.zalando.tracer.okhttp;
import com.github.restdriver.clientdriver.ClientDriver;
import com.github.restdriver.clientdriver.ClientDriverFactory;
import io.opentracing.Scope;
import io.opentracing.Span;
import io.opentracing.mock.MockTracer;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.R... | whiskeysierra/tracer | tracer-okhttp/src/test/java/org/zalando/tracer/okhttp/FlowInterceptorTest.java | Java | apache-2.0 | 2,347 |
/*
* Copyright 2012 AMG.lab, a Bull Group Company
*
* 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... | ow2-xlcloud/openstack-sdk | openstack-climate-sdk/src/main/java/org/xlcloud/openstack/model/climate/Lease.java | Java | apache-2.0 | 4,900 |
/*
* 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-medialive/src/main/java/com/amazonaws/services/medialive/model/transform/Scte27SourceSettingsJsonUnmarshaller.java | Java | apache-2.0 | 2,791 |
package ru.stqa.pft.mantis.appmanager;
import org.openqa.selenium.By;
/**
* Created by asviderskiy on 11.04.2016.
*/
public class RegistrationHelper extends HelperBase {
public RegistrationHelper(ApplicationManager app) {
super(app);
}
public void start(String username, String email) {
wd.get(app.g... | OdessaAlexSV/java_forTester | mantis-tests/src/test/java/ru/stqa/pft/mantis/appmanager/RegistrationHelper.java | Java | apache-2.0 | 750 |
package com.nateyolles.sling.publick.sightly;
import java.net.URI;
import java.net.URISyntaxException;
import javax.jcr.RepositoryException;
import javax.jcr.Session;
import javax.script.Bindings;
import org.apache.commons.lang.StringUtils;
import org.apache.jackrabbit.api.JackrabbitSession;
import org.apache.jackra... | raducotescu/publick-sling-blog | src/main/java/com/nateyolles/sling/publick/sightly/WCMUse.java | Java | apache-2.0 | 5,429 |
/**
* Copyright © 2017 tesshu.com (webmaster@tesshu.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 app... | tesshucom/subsonic-fx-player | subsonic-fx-player-api/src/main/java/com/tesshu/subsonic/client/fx/view/browsing/id3/IndexRow.java | Java | apache-2.0 | 928 |
package de.javapro.netcms.frontend.wicket;
import org.apache.wicket.markup.html.DynamicWebResource;
import org.apache.wicket.util.string.StringValueConversionException;
import org.apache.wicket.util.value.ValueMap;
import com.datazuul.commons.cms.backend.NetCMSRepository;
import com.datazuul.commons.cms.domain.Domain... | datazuul/com.datazuul.webapps--netcms | src/main/java/de/javapro/netcms/frontend/wicket/ImageResource.java | Java | apache-2.0 | 1,153 |
/*
* 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 ... | lbendig/gobblin | gobblin-runtime/src/main/java/gobblin/runtime/mapreduce/MRTask.java | Java | apache-2.0 | 4,672 |
package com.sankoudai.java.basics.topics;
import junit.framework.TestCase;
import java.util.Arrays;
/**
* @author : sankoudai
* @version : created at 2015/8/11
*/
public class TestParameter extends TestCase {
public void testVarargs(){
varargsMethod("jim", "Lilei");
varargsMethod(null, "hi");... | sankoudai/java-knowledge-center | java-knowledge-basics/src/main/java/com/sankoudai/java/basics/topics/TestParameter.java | Java | apache-2.0 | 543 |
package com.fogweather.android.gson;
import com.google.gson.annotations.SerializedName;
/**
* Created by Administrator on 2017/9/19.
*/
public class Now {
@SerializedName("tmp")
public String temperature ;
@SerializedName("cond")
public More more ;
public class More{
@SerializedName("t... | onesummers/fogweather | app/src/main/java/com/fogweather/android/gson/Now.java | Java | apache-2.0 | 362 |
package AST;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.io.File;
import java.util.*;
import beaver.*;
import java.util.ArrayList;
import java.util.zip.*;
import java.io.*;
import java.util.Stack;
import java.util.regex.Pattern;
import java.io.FileOutputStream;
import java.io.IOException;
im... | xjtu3c/GranuleJ | GOP/GranuleJIDE/src/AST/VariableArityParameterDeclaration.java | Java | apache-2.0 | 7,777 |
/**
* Copyright 2014 Galois, 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... | creswick/StreamingQR | development/qrlib/src/main/java/com/galois/qrstream/qrpipe/IProgress.java | Java | apache-2.0 | 792 |
/**********************************************************************
Copyright (c) 2016 Andy Jefferson and others. 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://... | datanucleus/tests | jakarta/rdbms/src/java/org/datanucleus/samples/annotations/embedded/collection/EmbeddedCollElement.java | Java | apache-2.0 | 2,303 |
package models;
import java.util.*;
import javax.persistence.*;
//import play.db.ebean.*;
import play.data.validation.*;
import com.avaje.ebean.*;
/**
* Company entity managed by Ebean
*/
@Entity
public class Company extends Model {
private static final long serialVersionUID = 1L;
@Id
public Long id... | play2-maven-plugin/play2-maven-test-projects | play24/java/computer-database/app/models/Company.java | Java | apache-2.0 | 948 |
package johny.javaalgorithms.algorithms;
public class QuickSort {
/**
* does quicksort on the array passed as the input
*
* @param array - the array to be sorted
* @param left - the left index from which the sorting is to be done
* @param right - the right index to which the sor... | johnythomas/JavaAlgorithms | src/main/java/johny/javaalgorithms/algorithms/QuickSort.java | Java | apache-2.0 | 3,451 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/container/v1/cluster_service.proto
package com.google.container.v1;
public interface ClientCertificateConfigOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.container.v1.ClientCertificateConfig)
com.google.... | vam-google/google-cloud-java | google-api-grpc/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfigOrBuilder.java | Java | apache-2.0 | 526 |
/*
* Licensed to ElasticSearch and Shay Banon 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... | lmenezes/elasticsearch | src/main/java/org/elasticsearch/search/facet/terms/strings/HashedAggregator.java | Java | apache-2.0 | 9,993 |
package de.androidbytes.recipr.data.provider.category;
import android.net.Uri;
import android.provider.BaseColumns;
import de.androidbytes.recipr.data.provider.ReciprProvider;
import de.androidbytes.recipr.data.provider.user.UserColumns;
/**
* A category is used to group various favoriteRecipes.
*/
public class Ca... | chris115379/Recipr | data/src/main/java/de/androidbytes/recipr/data/provider/category/CategoryColumns.java | Java | apache-2.0 | 1,444 |
package com.ctrip.xpipe.redis.console.spring;
import com.ctrip.xpipe.api.foundation.FoundationService;
import com.ctrip.xpipe.redis.checker.*;
import com.ctrip.xpipe.redis.checker.alert.AlertManager;
import com.ctrip.xpipe.redis.checker.cluster.AllCheckerLeaderElector;
import com.ctrip.xpipe.redis.checker.cluster.Grou... | ctripcorp/x-pipe | redis/redis-console/src/main/java/com/ctrip/xpipe/redis/console/spring/CheckerContextConfig.java | Java | apache-2.0 | 9,426 |
/*
* 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... | youdonghai/intellij-community | platform/lang-impl/src/com/intellij/codeInsight/navigation/BackgroundUpdaterTask.java | Java | apache-2.0 | 5,089 |
/*
* Copyright 2016 Netbrasoft
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... | bendraaisma/gnuob-soap | src/main/java/br/com/netbrasoft/gnuob/generic/AbstractType.java | Java | apache-2.0 | 3,491 |
/*-------------------------------------------------------------------------+
| |
| Copyright 2005-2011 The ConQAT Project |
| |
| Licensed u... | vimaier/conqat | org.conqat.engine.graph/src/org/conqat/engine/graph/concentrate/GraphConcentrator.java | Java | apache-2.0 | 7,454 |
package fr.javatronic.blog.massive.annotation1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_667 {
}
| lesaint/experimenting-annotation-processing | experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/Class_667.java | Java | apache-2.0 | 145 |
/*
* Copyright 2016-present 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 appli... | LorenzReinhart/ONOSnew | incubator/net/src/test/java/org/onosproject/incubator/net/virtual/impl/VirtualNetworkTopologyManagerTest.java | Java | apache-2.0 | 28,674 |
/*
* 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 ... | jenniferzheng/gobblin | gobblin-data-management/src/test/java/org/apache/gobblin/data/management/conversion/hive/converter/HiveAvroToOrcConverterTest.java | Java | apache-2.0 | 13,128 |
package com.andremanuelbarbosa.imageuploader.dao;
import com.andremanuelbarbosa.imageuploader.domain.ImageUploaderImage;
public interface ImageUploaderImageDao {
public void addImage(ImageUploaderImage image);
}
| andremanuelbarbosa/image-uploader | src/main/java/com/andremanuelbarbosa/imageuploader/dao/ImageUploaderImageDao.java | Java | apache-2.0 | 217 |
package stroom.util.shared.validation;
import javax.validation.ConstraintValidator;
public interface ValidFilePathValidator extends ConstraintValidator<ValidFilePath, String> {
// De-couples the use of the constraint annotation from the implementation of
// that constraint.
}
| gchq/stroom | stroom-util-shared/src/main/java/stroom/util/shared/validation/ValidFilePathValidator.java | Java | apache-2.0 | 287 |
/***************************************************************************
Copyright (c) 2016, EPAM 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... | epam/DLab | services/dlab-model/src/main/java/com/epam/dlab/dto/keyload/KeyLoadStatus.java | Java | apache-2.0 | 1,894 |
package com.bytegriffin.get4j.download;
import java.util.List;
import java.util.Map;
import com.bytegriffin.get4j.net.http.OkHttpClientEngine;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
public class DownloadFile {
private String fileName;
private byte[] content;
private long c... | bytegriffin/Get4J | get4j-core/src/main/java/com/bytegriffin/get4j/download/DownloadFile.java | Java | apache-2.0 | 2,540 |
package fr.romainmoreau.gassensor.web.jserialcomm;
import java.util.List;
public class JSerialCommProperties {
private List<JSerialCommGasSensor> gasSensors;
public List<JSerialCommGasSensor> getGasSensors() {
return gasSensors;
}
public void setGasSensors(List<JSerialCommGasSensor> gasSensors) {
this.gasSe... | romainmoreau/gas-sensor | gas-sensor-web/src/main/java/fr/romainmoreau/gassensor/web/jserialcomm/JSerialCommProperties.java | Java | apache-2.0 | 345 |
/***************************************************************************
Copyright (c) 2016, EPAM 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... | epam/DLab | services/security-service/src/main/java/com/epam/dlab/auth/dao/SearchRequestBuilder.java | Java | apache-2.0 | 830 |
/**
* Copyright (c) 2011 Martin M Reed
*
* 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 ... | MartinMReed/signingserver-bb | signingserver-bb/src/main/java/net/hardisonbrewing/signingserver/service/icon/SVGService.java | Java | apache-2.0 | 3,052 |
package org.abins.platform.core.service.impl;
import java.util.List;
import java.util.Map;
import org.abins.platform.core.dao.IAPermissionDao;
import org.abins.platform.core.dao.cache.IRedisDao;
import org.abins.platform.core.entity.APermission;
import org.abins.platform.core.exception.APermissionException;
... | tzou24/abins | abins/src/main/java/org/abins/platform/core/service/impl/APermissionServiceImpl.java | Java | apache-2.0 | 3,633 |
package run.var.teamcity.cloud.docker.util;
import org.junit.Test;
import run.var.teamcity.cloud.docker.TestResourceBundle;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
import static org.assertj.core.api.Assertions.*;
public class ResourcesTest {
@Test
public void invalidCons... | JeanRev/TeamcityDockerCloudPlugin | server/src/test/java/run/var/teamcity/cloud/docker/util/ResourcesTest.java | Java | apache-2.0 | 5,116 |
/* Copyright (c) 2008 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... | elhoim/gdata-client-java | java/src/com/google/gdata/model/gd/Organization.java | Java | apache-2.0 | 9,983 |
package com.suscipio_solutions.consecro_mud.Abilities.Prayers;
import java.util.List;
import java.util.Vector;
import com.suscipio_solutions.consecro_mud.Abilities.interfaces.Ability;
import com.suscipio_solutions.consecro_mud.Abilities.interfaces.MendingSkill;
import com.suscipio_solutions.consecro_mud.Common.interfa... | ConsecroMUD/ConsecroMUD | com/suscipio_solutions/consecro_mud/Abilities/Prayers/Prayer_MassFreedom.java | Java | apache-2.0 | 4,610 |
/*
* Copyright 2021 VMware, 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | micrometer-metrics/micrometer | micrometer-binders/src/test/java/io/micrometer/binder/cache/CaffeineStatsCounterTest.java | Java | apache-2.0 | 3,644 |
/**
* 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-core-starter/src/main/java/org/apache/camel/language/property/springboot/ExchangePropertyLanguageAutoConfiguration.java | Java | apache-2.0 | 5,088 |
/*
* 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 ... | b-slim/hive | beeline/src/test/org/apache/hive/beeline/TestBeelineArgParsing.java | Java | apache-2.0 | 13,992 |
/**
* Copyright 2012-2014 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 applic... | maciejole/fBot | src/test/java/pl/hycom/pip/messanger/handler/processor/FindKeywordToAskProcessorTest.java | Java | apache-2.0 | 8,464 |
import net.itarray.automotion.tools.driver.DriverHelper;
import net.itarray.automotion.tools.driver.WebDriverFactory;
import net.itarray.automotion.tools.helpers.EnvironmentHelper;
import net.itarray.automotion.validation.ResponsiveUIValidator;
import net.itarray.automotion.validation.properties.Padding;
import org.ass... | dzaiats/java.automation.library | src/test/java/ResponsiveValidatorCompatibleTest.java | Java | apache-2.0 | 6,307 |
/*
* 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexPrivateEndpoints.java | Java | apache-2.0 | 28,291 |
/*
* Licensed to IAESTE A.s.b.l. (IAESTE) under one or more contributor
* license agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership. The Authors
* (See the AUTHORS file distributed with this work) licenses this file to
* You under the Apache Lice... | IWSDevelopers/iws | iws-api/src/main/java/net/iaeste/iws/api/responses/exchange/FetchGroupsForSharingResponse.java | Java | apache-2.0 | 3,167 |