commit stringlengths 40 40 | old_file stringlengths 4 236 | new_file stringlengths 4 236 | old_contents stringlengths 1 3.26k | new_contents stringlengths 16 4.43k | subject stringlengths 16 624 | message stringlengths 17 3.29k | lang stringclasses 5
values | license stringclasses 13
values | repos stringlengths 5 91.5k |
|---|---|---|---|---|---|---|---|---|---|
061ab90a735630bacf1c5894ac17033a8fe021c0 | Drinks/src/main/java/fr/masciulli/drinks/activity/DrinkDetailActivity.java | Drinks/src/main/java/fr/masciulli/drinks/activity/DrinkDetailActivity.java | package fr.masciulli.drinks.activity;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.MenuItem;
import fr.masciulli.drinks.R;
import fr.masciulli.drinks.fragment.DrinkDetailFragment;
public class DrinkDetailActivity extends FragmentActivity {
private DrinkDetailFrag... | package fr.masciulli.drinks.activity;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.MenuItem;
import fr.masciulli.drinks.R;
import fr.masciulli.drinks.fragment.DrinkDetailFragment;
public class DrinkDetailActivity extends FragmentActivity {
private DrinkDetailFrag... | Fix bug at fragment creation | Fix bug at fragment creation
| Java | apache-2.0 | amasciul/Drinks,mechdome/Drinks,mechdome/Drinks,vbarthel-fr/Drinks,amasciul/Drinks,vbarthel-fr/Drinks,amasciul/Drinks |
bf22d904fe0fa84b9e1ec91e9d4dede7c3dfc37c | ReactAndroid/src/main/java/com/facebook/react/fabric/FabricBinder.java | ReactAndroid/src/main/java/com/facebook/react/fabric/FabricBinder.java | /**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.fabric;
public interface FabricBinder<T extends FabricBinding> {
void setBinding(T binding);
}
| /**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.fabric;
public interface FabricBinder {
void setBinding(FabricBinding binding);
}
| Revert D8794819: [fabric][android] Initialize FabricXX C++ code and register rootview | Revert D8794819: [fabric][android] Initialize FabricXX C++ code and register rootview
Differential Revision:
D8794819
Original commit changeset: b4d1d0958a3f
fbshipit-source-id: a984be9a31601644fb2d20a831f4e27075f24f7f
| Java | bsd-3-clause | pandiaraj44/react-native,hammerandchisel/react-native,arthuralee/react-native,hoangpham95/react-native,hammerandchisel/react-native,exponent/react-native,facebook/react-native,hoangpham95/react-native,hoangpham95/react-native,hoangpham95/react-native,exponentjs/react-native,facebook/react-native,hoangpham95/react-nativ... |
265dfd3d30bc21aaa7a4bbeabce3da82d56d7014 | android/src/main/java/fr/greweb/reactnativeviewshot/RNViewShotPackage.java | android/src/main/java/fr/greweb/reactnativeviewshot/RNViewShotPackage.java |
package fr.greweb.reactnativeviewshot;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import... |
package fr.greweb.reactnativeviewshot;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import... | Remove override of 'createJSModules' for RN 0.47 | Remove override of 'createJSModules' for RN 0.47
| Java | mit | gre/react-native-view-shot,gre/react-native-view-shot,gre/react-native-view-shot,gre/react-native-view-shot,gre/react-native-view-shot |
20865647838378c1d30d7f4eaf550d9eae940455 | lambda/src/test/java/org/code2bytes/samples/lambda/PersonListTest.java | lambda/src/test/java/org/code2bytes/samples/lambda/PersonListTest.java | package org.code2bytes.samples.lambda;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
public class PersonListTest {
private List<Person> persons;
@Before
public void setUp() throws Exception {
persons = new Array... | package org.code2bytes.samples.lambda;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
public class PersonListTest {
private List<Person> persons;
@Before
public void s... | Add test for calculating sum of ages | Add test for calculating sum of ages
Signed-off-by: Dieter Scholz <2d66d24b3b7ab25e74eac42fe6f751014f0cf625@code2bytes.org> | Java | apache-2.0 | discmuc/sample-projects |
6b61ee7e7799750d58cfb9e261d48c3d5c4d52be | server/src/main/java/io/atomix/copycat/server/storage/entry/NoOpEntry.java | server/src/main/java/io/atomix/copycat/server/storage/entry/NoOpEntry.java | /*
* Copyright 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 applicable l... | /*
* Copyright 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 applicable l... | Set no-op entries as tombstones. | Set no-op entries as tombstones.
| Java | apache-2.0 | madjam/copycat-1,atomix/copycat,madjam/copycat-1,atomix/copycat |
c17f827aedb944eec4ea5e55172db6f190acebb7 | src/main/java/tdl/examples/AddNumbers.java | src/main/java/tdl/examples/AddNumbers.java | package tdl.examples;
import tdl.client.Client;
/**
* Created by julianghionoiu on 11/06/2015.
*/
public class AddNumbers {
public static void main(String[] args) throws Exception {
Client client = new Client("localhost", 21616, "test");
client.goLiveWith(params -> {
Integer x = In... | package tdl.examples;
import tdl.client.Client;
import tdl.client.abstractions.UserImplementation;
/**
* Created by julianghionoiu on 11/06/2015.
*/
public class AddNumbers {
public static void main(String[] args) throws Exception {
Client client = new Client("localhost", 21616, "test");
clien... | Replace lambda in example with anonymous class to fix cobertura | Replace lambda in example with anonymous class to fix cobertura
| Java | apache-2.0 | julianghionoiu/tdl-client-java,julianghionoiu/tdl-client-java |
148aa42043e7d7cf20669b57c74530119819aebc | src/main/java/org/jenkinsci/plugins/dockerbuildstep/cmd/DockerCommand.java | src/main/java/org/jenkinsci/plugins/dockerbuildstep/cmd/DockerCommand.java | package org.jenkinsci.plugins.dockerbuildstep.cmd;
import hudson.DescriptorExtensionList;
import hudson.ExtensionPoint;
import hudson.model.Describable;
import hudson.model.AbstractBuild;
import hudson.model.Descriptor;
import jenkins.model.Jenkins;
import org.jenkinsci.plugins.dockerbuildstep.DockerBuilder;
import o... | package org.jenkinsci.plugins.dockerbuildstep.cmd;
import hudson.AbortException;
import hudson.DescriptorExtensionList;
import hudson.ExtensionPoint;
import hudson.model.Describable;
import hudson.model.AbstractBuild;
import hudson.model.Descriptor;
import jenkins.model.Jenkins;
import org.jenkinsci.plugins.dockerbui... | Allow commands to throw AbortException to fail the build | Allow commands to throw AbortException to fail the build
| Java | mit | draoullig/docker-build-step-plugin,wzheng2310/docker-build-step-plugin,BlackPepperSoftware/docker-build-step-plugin,wzheng2310/docker-build-step-plugin,ldtkms/docker-build-step-plugin,tylerdavis/docker-build-step-plugin,ldtkms/docker-build-step-plugin,BlackPepperSoftware/docker-build-step-plugin,draoullig/docker-build-... |
aa25fc4ef87ec1e3ea13aae2b746a518223c407d | src/test/java/de/innoaccel/wamp/server/converter/GeneralMessageTests.java | src/test/java/de/innoaccel/wamp/server/converter/GeneralMessageTests.java | package de.innoaccel.wamp.server.converter;
import de.innoaccel.wamp.server.Websocket;
import de.innoaccel.wamp.server.message.Message;
import org.junit.Test;
import java.io.IOException;
abstract public class GeneralMessageTests<T extends Message>
{
protected JsonParsingConverter<T> converter;
@Test(expecte... | package de.innoaccel.wamp.server.converter;
import de.innoaccel.wamp.server.Websocket;
import de.innoaccel.wamp.server.message.Message;
import org.junit.Test;
import java.io.IOException;
abstract public class GeneralMessageTests<T extends Message>
{
protected JsonParsingConverter<T> converter;
@Test(expecte... | Rename tests to better reflect field meaning | Rename tests to better reflect field meaning
| Java | bsd-2-clause | fritz-gerneth/java-wamp-server |
558303bfed20087482ea58d87a7e02ec8d86eed7 | ubotpatcher/src/main/java/me/eddiep/minecraft/ubotpatcher/UbotPatcher.java | ubotpatcher/src/main/java/me/eddiep/minecraft/ubotpatcher/UbotPatcher.java | package me.eddiep.minecraft.ubotpatcher;
import org.bukkit.plugin.java.JavaPlugin;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.nio.file.CopyOption;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
public class UbotPatcher extends JavaPlugin {
@Over... | package me.eddiep.minecraft.ubotpatcher;
import org.bukkit.plugin.java.JavaPlugin;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
public class UbotPatcher extends JavaPlugin {
@Override
public void onEnable() {
getLogger().info("S... | Update do using lambda expression | Update do using lambda expression
| Java | apache-2.0 | pupnewfster/Lavasurvival,pupnewfster/Lavasurvival |
d971cef7ae7c3d805bc54ba251bf79867c759f1f | src/com/valerysamovich/java/advanced/easymock/IncomeCalculator.java | src/com/valerysamovich/java/advanced/easymock/IncomeCalculator.java | /**
* @file IncomeCalculator.java
* @author Valery Samovich
* @version 1.0.0
* @date 12/16/2014
*
* Using the Easymock and JUnit
*/
package com.valerysamovich.java.advanced.easymock;
public class IncomeCalculator {
// Private fields
private ICalculatorMethod calculatorMethod;
private Position posi... | /**
* @file IncomeCalculator.java
* @author Valery Samovich
* @version 1.0.0
* @date 12/16/2014
*
* Using the Easymock and JUnit
*/
package com.valerysamovich.java.advanced.easymock;
public class IncomeCalculator {
// Private fields
private ICalculatorMethod calculatorMethod;
private Position posi... | Add setters for private fields and calculate method. | Add setters for private fields and calculate method.
| Java | unknown | valerysamovich/java-technologies,vsamov/java-technologies,vsamov/java-technologies |
32742b624326d780eea383010b1903f42965bfef | name-parser/src/main/java/org/gbif/nameparser/utils/NamedThreadFactory.java | name-parser/src/main/java/org/gbif/nameparser/utils/NamedThreadFactory.java | package org.gbif.nameparser.utils;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Modified Executors DefaultThreadFactory to allow custom named thread pools.
* Otherwise, this factory yields the same semantics as the thread f... | package org.gbif.nameparser.utils;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Modified Executors DefaultThreadFactory to allow custom named thread pools.
* Otherwise, this factory yields the same semantics as the thread f... | Fix a few more lint issues | Fix a few more lint issues
| Java | apache-2.0 | gbif/name-parser,gbif/name-parser |
20ef1ee28428a79d91caf8d65b3cfe5ef89e4cc6 | src/main/java/com/imaginarycode/minecraft/redisbungee/util/NameFetcher.java | src/main/java/com/imaginarycode/minecraft/redisbungee/util/NameFetcher.java | /**
* Copyright © 2013 tuxed <write@imaginarycode.com>
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
*/
package com.imaginarycode.minecraft.red... | /**
* Copyright © 2013 tuxed <write@imaginarycode.com>
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
*/
package com.imaginarycode.minecraft.red... | Use new-new method with a better ratelimit | Use new-new method with a better ratelimit
| Java | unknown | thechunknetwork/RedisBungee,minecrafter/RedisBungee |
7e06a5fd514445a188a2f9c617fed4480b12243c | client-domain/src/main/java/com/jraska/github/client/dagger/PerApp.java | client-domain/src/main/java/com/jraska/github/client/dagger/PerApp.java | package com.jraska.github.client.dagger;
import javax.inject.Scope;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.SOURCE;
@Scope @Retention(SOURCE) public @interface PerApp {
}
| package com.jraska.github.client.dagger;
import javax.inject.Scope;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
// RUNTIME RetentionPolicy has to be set,
// otherwise Dagger cannot process properly graphs between modules
@Scope @Retention(RUNTIME) public @interf... | Use Runtime retention policy because of multi module project | Use Runtime retention policy because of multi module project
| Java | apache-2.0 | jraska/github-client |
3cb219389bd3337860063a7faf66a0ae5fe4efb7 | tapestry-ioc/src/main/java/org/apache/tapestry/ioc/annotations/Primary.java | tapestry-ioc/src/main/java/org/apache/tapestry/ioc/annotations/Primary.java | // Copyright 2007 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | // Copyright 2007 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | Convert uses of @InjectService to be @Inject plus a marker annotation | TAPESTRY-1828: Convert uses of @InjectService to be @Inject plus a marker annotation
git-svn-id: d9b8539636d91aff9cd33ed5cd52a0cf73394897@589400 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,agileowl/tapestry-5,apache/tapestry-5,agileowl/tapestry-5,agileowl/tapestry-5 |
42e4d84d89f3db60fbdfef9c61b2e3970e830a47 | java-library-tester/src/test/java/study/hard/javalib/file/FileTest.java | java-library-tester/src/test/java/study/hard/javalib/file/FileTest.java | package study.hard.javalib.file;
import java.io.File;
import java.io.IOException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class FileTest {
FileHandler fileHandler;
File tempFile;
@Before
public void setUp() {
fileHandler = new FileHandler();
}
@Test
public void test... | package study.hard.javalib.file;
import java.io.File;
import java.io.IOException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class FileTest {
FileHandler fileHandler;
File tempFile;
@Before
public void setUp() {
fileHandler = new FileHandler();
}
@Test
public void test... | Add a comment for log. | Add a comment for log. | Java | mit | iandmyhand/java-library-tester |
c9d381dd5c370c5281dfb0bc4814ca11d51e7ccf | src/test/java/hello/HomePageTest.java | src/test/java/hello/HomePageTest.java | package hello;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.... | package hello;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.... | Remove obsolete import and fix formatting in test. | Remove obsolete import and fix formatting in test.
| Java | bsd-3-clause | hainesr/mvc-dev,hainesr/mvc-dev |
a2db071176c5dff951fa52745f0eed3319520d59 | src/main/java/co/uk/jiveelection/campaign/App.java | src/main/java/co/uk/jiveelection/campaign/App.java | package co.uk.jiveelection.campaign;
import java.io.IOException;
import twitter4j.TwitterException;
import co.uk.jiveelection.campaign.twit.TwitHelper;
/**
* Main entry point for the Jive Campaign application. Sets up a continuously running loop that
* checks the latest tweet from the named candidate, translates i... | package co.uk.jiveelection.campaign;
import java.io.IOException;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import twitter4j.TwitterException;
import co.uk.jiveelection.campaign.twit.TwitHelper;
/**
* Main entry point for the Jive Campaign application. Sets up a continuously running loop t... | Enable Spring Boot for this app | Enable Spring Boot for this app
| Java | mit | mezpahlan/jivecampaign |
380748fe9ee6935d71bb9930bbe4d2ec84cb1a5c | app/src/main/java/com/tuenti/tuentitv/ui/activity/LoadingActivity.java | app/src/main/java/com/tuenti/tuentitv/ui/activity/LoadingActivity.java | package com.tuenti.tuentitv.ui.activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.widget.ProgressBar;
import butterknife.InjectView;
import com.tuenti.tuentitv.R;
import java.util.LinkedList;
import java.util.List;
/**
* @author Pedro Vicente Gómez Sánchez.
... | package com.tuenti.tuentitv.ui.activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.widget.ProgressBar;
import butterknife.InjectView;
import com.tuenti.tuentitv.R;
import java.util.LinkedList;
import java.util.List;
/**
* @author Pedro Vicente Gómez Sánchez.
... | Remove start main activity task from handler if back button is pressed during loading process. | Remove start main activity task from handler if back button is pressed during loading process.
| Java | apache-2.0 | pedrovgs/TuentiTV,kzganesan/TuentiTV,tjose0101/Mano-TV,msdgwzhy6/TuentiTV,SyrineTrabelsi/TuentiTV |
a0fe5d029a9b201d6e61cf3b761b538b5ddd0b4a | src/test/java/info/u_team/u_team_test/TestMod.java | src/test/java/info/u_team/u_team_test/TestMod.java | package info.u_team.u_team_test;
import org.apache.logging.log4j.*;
import info.u_team.u_team_core.construct.ConstructManager;
import info.u_team.u_team_core.integration.IntegrationManager;
import info.u_team.u_team_core.util.verify.JarSignVerifier;
import net.minecraftforge.fml.common.Mod;
@Mod(TestMod.MODID)
publi... | package info.u_team.u_team_test;
import org.apache.logging.log4j.*;
import info.u_team.u_team_core.construct.ConstructManager;
import info.u_team.u_team_core.integration.IntegrationManager;
import info.u_team.u_team_core.util.annotation.AnnotationManager;
import info.u_team.u_team_core.util.verify.JarSignVerifier;
im... | Update testmod to use the new method | Update testmod to use the new method | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
69f4b67a3e0fcd46b4b13ca0002dcaa126edf18a | vertx/src/main/java/net/kuujo/copycat/vertx/VertxEventLoopExecutor.java | vertx/src/main/java/net/kuujo/copycat/vertx/VertxEventLoopExecutor.java | /*
* Copyright 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 applicable l... | /*
* Copyright 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 applicable l... | Refactor Vert.x 2 event loop context to store context upon construction in order to prevent issues with calling runOnContext from a non-context thread. | Refactor Vert.x 2 event loop context to store context upon construction in order to prevent issues with calling runOnContext from a non-context thread.
| Java | apache-2.0 | aruanruan/copycat,arnonmoscona/copycat,atomix/atomix,tempbottle/copycat,arnonmoscona/copycat,aruanruan/copycat,kuujo/copycat,tempbottle/copycat,kuujo/copycat,madjam/copycat,atomix/atomix,madjam/copycat |
07e7cd891981b74535a00307691c1885c82d30e9 | core/src/test/java/io/keen/client/java/AttemptCountingEventStoreTestBase.java | core/src/test/java/io/keen/client/java/AttemptCountingEventStoreTestBase.java | package io.keen.client.java;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Tests AttemptCountingEventStore implementations.
*
* @author Simon Murtha Smith
* @since 2.0.2
*/
public abstract class AttemptCountingEventStoreTestBase extends EventStoreTestBase {
... | package io.keen.client.java;
import org.junit.Before;
import org.junit.Test;
import java.util.List;
import java.util.Map;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
/**
* Tests AttemptCountingEventStore implementations.
*
* @author Simon Murtha Smith
* @since 2.0... | Add test for attempt.json fix. | Add test for attempt.json fix.
| Java | mit | keenlabs/KeenClient-Java,lemaiyan/KeenClient-Java,lemaiyan/KeenClient-Java,keenlabs/KeenClient-Java |
89b7b2b93543b34e574175a8255784cffb310145 | crypto/src/main/java/org/springframework/security/crypto/codec/Utf8.java | crypto/src/main/java/org/springframework/security/crypto/codec/Utf8.java | package org.springframework.security.crypto.codec;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.CharacterCodingException;
import java.nio.charset.Charset;
import java.util.*;
/**
* UTF-8 Charset encoder/decoder.
* <p>
* For internal use only.
*
* @author Luke Taylor
*/
public ... | package org.springframework.security.crypto.codec;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.CharacterCodingException;
import java.nio.charset.Charset;
import java.util.*;
/**
* UTF-8 Charset encoder/decoder.
* <p>
* For internal use only.
*
* @author Luke Taylor
*/
public ... | Remove use of Java 6 method Arrays.copyOfRange. | SEC-1764: Remove use of Java 6 method Arrays.copyOfRange. | Java | apache-2.0 | likaiwalkman/spring-security,zshift/spring-security,diegofernandes/spring-security,olezhuravlev/spring-security,forestqqqq/spring-security,follow99/spring-security,spring-projects/spring-security,MatthiasWinzeler/spring-security,hippostar/spring-security,eddumelendez/spring-security,wilkinsona/spring-security,cyratech/... |
ae51c4670a59140db995514a80e7d7a737288510 | alien4cloud-core/src/main/java/alien4cloud/paas/plan/BuildPlanGenerator.java | alien4cloud-core/src/main/java/alien4cloud/paas/plan/BuildPlanGenerator.java | package alien4cloud.paas.plan;
import static alien4cloud.paas.plan.ToscaNodeLifecycleConstants.*;
import static alien4cloud.paas.plan.ToscaRelationshipLifecycleConstants.*;
import alien4cloud.paas.model.PaaSNodeTemplate;
/**
* Generates the default tosca build plan.
*/
public class BuildPlanGenerator extends Abstr... | package alien4cloud.paas.plan;
import static alien4cloud.paas.plan.ToscaNodeLifecycleConstants.*;
import static alien4cloud.paas.plan.ToscaRelationshipLifecycleConstants.*;
import alien4cloud.paas.model.PaaSNodeTemplate;
/**
* Generates the default tosca build plan.
*/
public class BuildPlanGenerator extends Abstra... | Remove post start as TOSCA agreed to remove it. | Remove post start as TOSCA agreed to remove it.
| Java | apache-2.0 | ahgittin/alien4cloud,loicalbertin/alien4cloud,PierreLemordant/alien4cloud,OresteVisari/alien4cloud,alien4cloud/alien4cloud,loicalbertin/alien4cloud,PierreLemordant/alien4cloud,xdegenne/alien4cloud,xdegenne/alien4cloud,broly-git/alien4cloud,loicalbertin/alien4cloud,san-tak/alien4cloud,PierreLemordant/alien4cloud,loicalb... |
8c257a64cd98e3709be04292cc3cd7bd7ef96b80 | precipice-core/src/main/java/net/uncontended/precipice/BackPressure.java | precipice-core/src/main/java/net/uncontended/precipice/BackPressure.java | /*
* Copyright 2016 Timothy Brooks
*
* 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... | /*
* Copyright 2016 Timothy Brooks
*
* 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... | Add GR register method commented out | Add GR register method commented out
| Java | apache-2.0 | tbrooks8/Precipice,tbrooks8/Precipice |
7f0344deada8b590ea15fd635919b7fa1c271962 | xstream/src/java/com/thoughtworks/xstream/io/xml/XStream11NameCoder.java | xstream/src/java/com/thoughtworks/xstream/io/xml/XStream11NameCoder.java | /*
* Copyright (C) 2009 XStream Committers.
* All rights reserved.
*
* Created on 15. August 2009 by Joerg Schaible
*/
package com.thoughtworks.xstream.io.xml;
/**
* A XmlFriendlyNameCoder to support backward compatibility with XStream 1.1.
*
* @author Jörg Schaible
* @since upcoming
*/
public class X... | /*
* Copyright (C) 2009 XStream Committers.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
* style license a copy of which has been included with this distribution in
* the LICENSE.txt file.
*
* Created on 15. August 2009 by Joerg Schaible
*/
package com.thought... | Fix file headers for missing BSD license. | Fix file headers for missing BSD license.
git-svn-id: fe6d842192ccfb78748eb71580d1ce65f168b559@1713 9830eeb5-ddf4-0310-9ef7-f4b9a3e3227e
| Java | bsd-3-clause | vkscool/xstream,tenghuihua/xstream,tenghuihua/xstream,Groostav/xstream,emopers/xstream,vkscool/xstream,emopers/xstream,Groostav/xstream |
b2fc10af626bb3f883c04f217f1ca706c1a5a6fd | gui/src/main/java/org/jboss/as/console/client/rbac/UnauthorisedPresenter.java | gui/src/main/java/org/jboss/as/console/client/rbac/UnauthorisedPresenter.java | package org.jboss.as.console.client.rbac;
import com.google.gwt.user.client.History;
import com.google.web.bindery.event.shared.EventBus;
import com.gwtplatform.mvp.client.PopupView;
import com.gwtplatform.mvp.client.PresenterWidget;
import com.gwtplatform.mvp.client.proxy.PlaceRequest;
import org.jboss.ballroom.clien... | package org.jboss.as.console.client.rbac;
import com.google.web.bindery.event.shared.EventBus;
import com.gwtplatform.mvp.client.PopupView;
import com.gwtplatform.mvp.client.PresenterWidget;
import org.jboss.as.console.client.Console;
import org.jboss.ballroom.client.rbac.AuthorisationDecision;
import javax.inject.In... | Disable History.back() upon auth errors | Disable History.back() upon auth errors | Java | lgpl-2.1 | hal/core,hal/core,hal/core,hal/core,hal/core |
68e2232b76eb4f47365a08524f1634ea859b2ed8 | jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/HartbeatEndpoint.java | jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/HartbeatEndpoint.java | package org.jboss.aerogear.unifiedpush.rest;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import com.datastax.driver.core.utils.UUIDs;
im... | package org.jboss.aerogear.unifiedpush.rest;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.GET;
import javax.ws.rs.OPTIONS;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.MediaType;
import javax.ws.r... | Add OPTIONS to hartbeat API | Add OPTIONS to hartbeat API
| Java | apache-2.0 | aerobase/unifiedpush-server,C-B4/unifiedpush-server,C-B4/unifiedpush-server,aerobase/unifiedpush-server,aerobase/unifiedpush-server,C-B4/unifiedpush-server,C-B4/unifiedpush-server |
3088b071f6e5d648cfa93546f87d69f405001dd4 | src/main/java/totemic_commons/pokefenn/ceremony/CeremonyBaykok.java | src/main/java/totemic_commons/pokefenn/ceremony/CeremonyBaykok.java | package totemic_commons.pokefenn.ceremony;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumFacing;
import net.minecraft.world.World;
import totemic_commons.pokefenn.api.ceremony.Ceremony;
import totemic_commons.pokefenn.api.music.MusicInstrument;
import totemic_commons.pokefenn.entity.boss.EntityBayk... | package totemic_commons.pokefenn.ceremony;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumFacing;
import net.minecraft.world.World;
import totemic_commons.pokefenn.api.ceremony.Ceremony;
import totemic_commons.pokefenn.api.music.MusicInstrument;
import totemic_commons.pokefenn.entity.boss.EntityBayk... | Add delay to Baykok spawn and play sound | Add delay to Baykok spawn and play sound | Java | mit | TeamTotemic/Totemic |
2b06236bb2493b0fda9841f7bc66db0635443fbd | test/org/bitbucket/mlopatkin/android/liblogcat/ProcessListParserTest.java | test/org/bitbucket/mlopatkin/android/liblogcat/ProcessListParserTest.java | /*
* Copyright 2011 Mikhail Lopatkin
*
* 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... | /*
* Copyright 2011 Mikhail Lopatkin
*
* 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... | Test for process name consisting of several words | Test for process name consisting of several words
| Java | apache-2.0 | KartiKeya123/android-log-viewer,ohjongin/android-log-viewer,ohjongin/android-log-viewer,KartiKeya123/android-log-viewer,vdiskmobile/android-log-viewer,CCDMK/android-log-viewer,ujiro99/android-log-viewer,ujiro99/android-log-viewer,vdiskmobile/android-log-viewer,CCDMK/android-log-viewer |
a6e5a041f6a8ec2fc487891b9a26420f0f0181b2 | src/main/java/org/codehaus/groovy/util/URLStreams.java | src/main/java/org/codehaus/groovy/util/URLStreams.java | package org.codehaus.groovy.util;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
public class URLStreams {
private URLStreams() {
}
/**
* Opens an {@link InputStream} reading from the given URL without
* caching the stream. This prev... | /*
* 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")... | Add the missing license header | Add the missing license header
| Java | apache-2.0 | jwagenleitner/incubator-groovy,jwagenleitner/incubator-groovy,russel/groovy,shils/incubator-groovy,paulk-asert/groovy,paulk-asert/groovy,russel/groovy,paulk-asert/groovy,shils/incubator-groovy,jwagenleitner/groovy,armsargis/groovy,russel/incubator-groovy,apache/incubator-groovy,shils/groovy,russel/groovy,jwagenleitner/... |
4dcfe4c4656ac2dd94564b724082ac5ebf713d95 | android/src/main/java/com/clipsub/rnbottomsheet/RNBottomSheetPackage.java | android/src/main/java/com/clipsub/rnbottomsheet/RNBottomSheetPackage.java | package com.clipsub.rnbottomsheet;
import android.app.Activity;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import j... | package com.clipsub.rnbottomsheet;
import android.app.Activity;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import j... | Fix Android compilation error with RN 0.47 | Fix Android compilation error with RN 0.47
Method createJSModules was removed from RN 0.47. Which leads to compilation error due to @override annotation. This method can be removed right now (https://github.com/facebook/react-native/issues/15232) | Java | mit | Clip-sub/react-native-bottomsheet,Clip-sub/react-native-bottomsheet |
bd956051e45b7d252ce4c022d1e5e491f109e8d1 | utils/src/main/java/com/janosgyerik/utils/algorithm/unionfind/UnionFindImpl.java | utils/src/main/java/com/janosgyerik/utils/algorithm/unionfind/UnionFindImpl.java | package com.janosgyerik.utils.algorithm.unionfind;
import org.assertj.core.util.VisibleForTesting;
import java.util.HashMap;
import java.util.Map;
public class UnionFindImpl implements UnionFind {
private final Map<Integer, Integer> ids = new HashMap<>();
@Override
public void union(int p, int q) {
... | package com.janosgyerik.utils.algorithm.unionfind;
import org.assertj.core.util.VisibleForTesting;
import java.util.HashMap;
import java.util.Map;
public class UnionFindImpl implements UnionFind {
private final Map<Integer, Integer> ids = new HashMap<>();
@Override
public void union(int p, int q) {
... | Simplify using Java 8 putIfAbsent | Simplify using Java 8 putIfAbsent
| Java | mit | janosgyerik/java-tools |
d791834dee91671917a2a70a55c7ffdfcf72df60 | configserver/src/main/java/com/yahoo/vespa/config/server/tenant/ActivateLock.java | configserver/src/main/java/com/yahoo/vespa/config/server/tenant/ActivateLock.java | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.tenant;
import com.yahoo.path.Path;
import com.yahoo.vespa.config.server.TimeoutBudget;
import com.yahoo.vespa.curator.Curator;
import com.yahoo.vespa.curator.rec... | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.tenant;
import com.yahoo.path.Path;
import com.yahoo.vespa.config.server.TimeoutBudget;
import com.yahoo.vespa.curator.Curator;
import com.yahoo.vespa.curator.rec... | Remove synchronization, it leads to deadlocks | Remove synchronization, it leads to deadlocks
Example:
Thread A gets the lock in acquire(), does not hold the monitor anymore..
Thread B calls acquire() and waits for the lock (while holding the monitor)
Thead A wants to call release(), but cannot do that because thread B is
holding the monitor. Deadlock until timeout... | Java | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
0653d53f0a849151074454d39626ac530f012db8 | src/main/java/hudson/plugins/copyProjectLink/CopyProjectActionFactory.java | src/main/java/hudson/plugins/copyProjectLink/CopyProjectActionFactory.java | package hudson.plugins.copyProjectLink;
import hudson.Extension;
import hudson.model.TransientProjectActionFactory;
import hudson.model.AbstractProject;
import java.util.ArrayList;
import java.util.Collection;
@Extension
public class CopyProjectActionFactory extends TransientProjectActionFactory{
/**
* {@inheri... | package hudson.plugins.copyProjectLink;
import hudson.Extension;
import hudson.model.TransientProjectActionFactory;
import hudson.model.AbstractProject;
import java.util.Collection;
import java.util.Collections;
@Extension
public class CopyProjectActionFactory extends TransientProjectActionFactory{
/**
* {@inhe... | Use Collections.singleton to create the Action | Use Collections.singleton to create the Action
| Java | mit | jenkinsci/copy-project-link-plugin,vjuranek/copy-project-link |
7c3f71bb8016b45315508d2eaf929b74f120a878 | smtp/src/org/subethamail/smtp/command/QuitCommand.java | smtp/src/org/subethamail/smtp/command/QuitCommand.java | package org.subethamail.smtp.command;
import java.io.IOException;
import org.subethamail.smtp.server.BaseCommand;
import org.subethamail.smtp.server.ConnectionContext;
/**
* @author Ian McFarland <ian@neo.com>
* @author Jon Stevens
*/
public class QuitCommand extends BaseCommand
{
public QuitCommand()
{
... | package org.subethamail.smtp.command;
import java.io.IOException;
import org.subethamail.smtp.server.BaseCommand;
import org.subethamail.smtp.server.ConnectionContext;
/**
* @author Ian McFarland <ian@neo.com>
* @author Jon Stevens
*/
public class QuitCommand extends BaseCommand
{
public QuitCommand()
{
... | Fix to ensure session is closed on QUIT command response | Fix to ensure session is closed on QUIT command response
| Java | apache-2.0 | paulrosania/subethasmtp |
833201c903f90d272989198f197b106c7a14fea3 | core/src/main/java/com/google/googlejavaformat/java/GoogleJavaFormatVersion.java | core/src/main/java/com/google/googlejavaformat/java/GoogleJavaFormatVersion.java | /*
* Copyright 2015 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 in ... | /*
* Copyright 2015 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 in ... | Add ij_product flag to Builder for google_java_format plugin. | Add ij_product flag to Builder for google_java_format plugin.
MOE_MIGRATED_REVID=147038132
| Java | apache-2.0 | meonlol/google-java-format,cushon/google-java-format,sormuras/google-java-format,cushon/google-java-format,sormuras/google-java-format,sormuras/google-java-format,meonlol/google-java-format,cushon/google-java-format,meonlol/google-java-format |
f83911b3a3d3cccbb6a9bef2d1995ac0e8bff357 | spring-content-s3/src/main/java/org/springframework/content/s3/S3ContentId.java | spring-content-s3/src/main/java/org/springframework/content/s3/S3ContentId.java | package org.springframework.content.s3;
import java.io.Serializable;
public final class S3ContentId implements Serializable {
private String bucket;
private String objectId;
public S3ContentId(String bucket, String objectId) {
this.bucket = bucket;
this.objectId = objectId;
}
pub... | package org.springframework.content.s3;
import org.springframework.util.Assert;
import java.io.Serializable;
public final class S3ContentId implements Serializable {
private String bucket;
private String objectId;
public S3ContentId(String bucket, String objectId) {
Assert.hasText(bucket, "bucke... | Add assertions to ensure only valid s3content ids can be created | Add assertions to ensure only valid s3content ids can be created
| Java | apache-2.0 | paulcwarren/spring-content,paulcwarren/spring-content,paulcwarren/spring-content |
23c969fce37ff68289733ce8a113bde5e20fab13 | reon-test/src/test/java/android/content/Intent.java | reon-test/src/test/java/android/content/Intent.java | package android.content;
public class Intent {
public Intent setComponent(ComponentName name) {
return null;
}
public Intent putExtra(String name, String value) {
return null;
}
}
| package android.content;
public class Intent {
public Intent setComponent(ComponentName name) {
return null;
}
public Intent putExtra(String name, String value) {
return null;
}
public String getStringExtra(String name) {
return null;
}
}
| Fix for missing test dependency | Fix for missing test dependency
| Java | apache-2.0 | reon-io/reon-sdk,reon-io/sdk |
3df1a8cc5ed5d1e80c7da308d9d66a94702019ec | sipXconfig/web/src/org/sipfoundry/sipxconfig/site/phone/EditPhoneForm.java | sipXconfig/web/src/org/sipfoundry/sipxconfig/site/phone/EditPhoneForm.java | /*
*
*
* Copyright (C) 2004 SIPfoundry Inc.
* Licensed by SIPfoundry under the LGPL license.
*
* Copyright (C) 2004 Pingtel Corp.
* Licensed to SIPfoundry under a Contributor Agreement.
*
* $
*/
package org.sipfoundry.sipxconfig.site.phone;
import org.apache.tapestry.BaseComponent;
import org.apache.tape... | /*
*
*
* Copyright (C) 2004 SIPfoundry Inc.
* Licensed by SIPfoundry under the LGPL license.
*
* Copyright (C) 2004 Pingtel Corp.
* Licensed to SIPfoundry under a Contributor Agreement.
*
* $
*/
package org.sipfoundry.sipxconfig.site.phone;
import org.apache.tapestry.BaseComponent;
public abstract class... | FIX BUILD: Resolve subversion evil twin issue, File was not shown as modified however it had been. This file should have been commited as part of r4886 merge | FIX BUILD: Resolve subversion evil twin issue, File was not shown as modified however it had been. This file should have been commited as part of r4886 merge
git-svn-id: f26ccc5efe72c2bd8e1c40f599fe313f2692e4de@4888 a612230a-c5fa-0310-af8b-88eea846685b
| Java | lgpl-2.1 | sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror |
300d93a6a8756fed17e6b70685b06ea64d11dfdd | gs-mutability/src/main/java/org/genericsystem/mutability/Generic.java | gs-mutability/src/main/java/org/genericsystem/mutability/Generic.java | package org.genericsystem.mutability;
import java.io.Serializable;
import java.util.List;
import org.genericsystem.defaults.DefaultVertex;
public interface Generic extends DefaultVertex<Generic> {
@Override
default Engine getRoot() {
throw new IllegalStateException();
}
@Override
default Cache getCurrentCac... | package org.genericsystem.mutability;
import java.io.Serializable;
import java.util.List;
import org.genericsystem.defaults.DefaultVertex;
public interface Generic extends DefaultVertex<Generic> {
@Override
default Engine getRoot() {
throw new IllegalStateException();
}
@Override
default Cache getCurrentCac... | Fix compilation error in mutability | Fix compilation error in mutability | Java | apache-2.0 | genericsystem/genericsystem2015,genericsystem/genericsystem2015,genericsystem/genericsystem2015,genericsystem/genericsystem2015,genericsystem/genericsystem2015 |
7db8d6c1c4dfce6233b484efc8182ffa7e8bbabe | app/src/main/java/mn/devfest/DevFestApplication.java | app/src/main/java/mn/devfest/DevFestApplication.java | package mn.devfest;
import android.app.Application;
import android.content.Context;
import net.danlew.android.joda.JodaTimeAndroid;
import timber.log.Timber;
/**
* DevFest application class
*
* Performs application-wide configuration
*
* @author bherbst
*/
public class DevFestApplication extends Application {... | package mn.devfest;
import android.app.Application;
import android.content.Context;
import net.danlew.android.joda.JodaTimeAndroid;
import timber.log.Timber;
/**
* DevFest application class
*
* Performs application-wide configuration
*
* @author bherbst
*/
public class DevFestApplication extends Application {... | Fix for JodaTime not being initialized correctly in dev builds | Fix for JodaTime not being initialized correctly in dev builds
| Java | apache-2.0 | GDGConferenceApp/Android |
a05a899eaf1f3e90ba9480e770561fa215ccfdb6 | src/main/java/im/darkgeek/dicts/DictItem.java | src/main/java/im/darkgeek/dicts/DictItem.java | package im.darkgeek.dicts;
/**
* Created by justin on 15-8-28.
*/
public class DictItem {
private String word;
private String explanation;
public String getWord() {
return word;
}
public void setWord(String word) {
this.word = handleUnsafeChars(word);
}
public String ge... | package im.darkgeek.dicts;
/**
* Created by justin on 15-8-28.
*/
public class DictItem {
private String word;
private String explanation;
public String getWord() {
return word;
}
public void setWord(String word) {
this.word = handleUnsafeChars(word);
}
public String ge... | Add equals method for comparision purpose. | Add equals method for comparision purpose.
| Java | bsd-2-clause | darkgeek/gcide-converter |
fcd56080682e3ddb27768ec1029bd844fb9aee2d | src/main/java/tars/commons/core/Messages.java | src/main/java/tars/commons/core/Messages.java | package tars.commons.core;
/**
* Container for user visible messages.
*/
public class Messages {
public static final String MESSAGE_UNKNOWN_COMMAND = "Unknown command";
public static final String MESSAGE_INVALID_COMMAND_FORMAT = "Invalid command format! \n%1$s";
public static final String MESSAGE_INVALI... | package tars.commons.core;
/**
* Container for user visible messages.
*/
public class Messages {
public static final String MESSAGE_UNKNOWN_COMMAND = "Unknown command";
public static final String MESSAGE_INVALID_COMMAND_FORMAT = "Invalid command format! \n%1$s";
public static final String MESSAGE_INVALI... | Add new messages for invalid end date | Add new messages for invalid end date
| Java | mit | CS2103AUG2016-F10-C1/main,CS2103AUG2016-F10-C1/main,CS2103AUG2016-F10-C1/main |
30431b5633d4d43bd289f48fda41537544ca61f4 | src/net/zephyrizing/http_server/HttpServer.java | src/net/zephyrizing/http_server/HttpServer.java | package net.zephyrizing.http_server;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
public class HttpServer {
public static void main(String[] args) throws Exception {
int portNumber = Integer.parseInt(args... | package net.zephyrizing.http_server;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
public class HttpServer {
public static void main(String[] args) throws Exception {
int portNumber;
if (args.lengt... | Implement a very basic http server | Implement a very basic http server
| Java | mit | RadicalZephyr/http-server |
06fb2ca58ca82bae42a1ec52222a2d2d2c1d16d7 | src/main/java/hu/bme/mit/spaceship/TorpedoStore.java | src/main/java/hu/bme/mit/spaceship/TorpedoStore.java | package hu.bme.mit.spaceship;
import java.util.Random;
/**
* Class storing and managing the torpedoes of a ship
*/
public class TorpedoStore {
private int torpedoCount = 0;
private Random generator = new Random();
public TorpedoStore(int numberOfTorpedos){
this.torpedoCount = numberOfTorpedos;
}
publ... | package hu.bme.mit.spaceship;
import java.util.Random;
/**
* Class storing and managing the torpedoes of a ship
*/
public class TorpedoStore {
private double FAILURE_RATE = 0.0;
private int torpedoCount = 0;
private Random generator = new Random();
public TorpedoStore(int numberOfTorpedos){
this.torped... | Add torpedo failure rate as an environment variable | Add torpedo failure rate as an environment variable
| Java | mit | FTSRG/ivt-lab |
e466aaf9a5c84cec46cdd4ebb09d79b7b4c16ccd | src/main/java/com/cc4102/stringDict/PatriciaTree.java | src/main/java/com/cc4102/stringDict/PatriciaTree.java | package com.cc4102.stringDict;
import java.util.ArrayList;
/**
* @author Lucas Puebla Silva
*
*/
public class PatriciaTree implements StringDictionary {
private PatriciaNode root;
public PatriciaTree() {
this.root = new PatriciaNode("", true, null, new ArrayList<>());
}
@Override
pub... | package com.cc4102.stringDict;
import java.util.ArrayList;
/**
* @author Lucas Puebla Silva
*
*/
public class PatriciaTree implements StringDictionary {
private PatriciaNode root;
public PatriciaTree() {
this.root = new PatriciaNode("", true, null, new ArrayList<>());
}
public int getLen... | Add getKeys and count to Patricia Tree | Add getKeys and count to Patricia Tree
| Java | mit | lucas-puebla/CC4102-tarea2,lucas-puebla/CC4102-tarea2 |
4632b923cd3e4ebc71d0b6f120fd5f599c23e75b | src/main/java/co/omise/models/SearchScope.java | src/main/java/co/omise/models/SearchScope.java | package co.omise.models;
import com.fasterxml.jackson.annotation.JsonProperty;
public enum SearchScope {
@JsonProperty("dispute")Dispute,
@JsonProperty("charge")Charge,
@JsonProperty("customer")Customer,
@JsonProperty("recipient")Recipient,
}
| package co.omise.models;
import com.fasterxml.jackson.annotation.JsonProperty;
public enum SearchScope {
@JsonProperty("dispute")Dispute,
@JsonProperty("charge")Charge,
@JsonProperty("customer")Customer,
@JsonProperty("recipient")Recipient,
@JsonProperty("refund")Refund,
@JsonProperty("transfe... | Add new available search scopes. | Add new available search scopes.
| Java | mit | omise/omise-java |
ce8c5ceca5b929280cd6f03a919b0a1f7ab0f3ea | buffer/src/main/java/org/nguyenhuy/buffer/job/Job.java | buffer/src/main/java/org/nguyenhuy/buffer/job/Job.java | package org.nguyenhuy.buffer.job;
import android.os.Handler;
import com.path.android.jobqueue.Params;
import com.squareup.otto.Bus;
import javax.inject.Inject;
/**
* Created by nguyenthanhhuy on 1/14/14.
*/
public abstract class Job extends com.path.android.jobqueue.Job {
@Inject
transient Bus bus;
@In... | package org.nguyenhuy.buffer.job;
import android.os.Handler;
import com.path.android.jobqueue.Params;
import com.squareup.otto.Bus;
import javax.inject.Inject;
/**
* Created by nguyenthanhhuy on 1/14/14.
*/
public abstract class Job extends com.path.android.jobqueue.Job {
private static final int DEFAULT_RETRY... | Change retry limit from 20 down to 3, to fail fast. | Change retry limit from 20 down to 3, to fail fast.
| Java | mit | nguyenhuy/buffer,nguyenhuy/buffer |
6dc4d10b36a4a9c41e490fa220ed0cb7646e126b | src/main/java/leetcode/Problem204.java | src/main/java/leetcode/Problem204.java | package leetcode;
/**
* https://leetcode.com/problems/count-primes/
*/
public class Problem204 {
public int countPrimes(int n) {
// TODO:
return 0;
}
public static void main(String[] args) {
Problem204 prob = new Problem204();
System.out.println(prob.countPrimes(10));... | package leetcode;
import java.util.HashSet;
import java.util.Set;
/**
* https://leetcode.com/problems/count-primes/
*/
public class Problem204 {
public int countPrimes(int n) {
// https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes
int prime = 0;
Set<Integer> set = new HashSet<>();
... | Update problem 204 (still too slow) | Update problem 204 (still too slow)
| Java | mit | fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode |
5cb50f44b243561f33a97f343d595f298ef7d79f | app/src/main/java/com/frinder/frinder/model/MessageThread.java | app/src/main/java/com/frinder/frinder/model/MessageThread.java | package com.frinder.frinder.model;
import org.parceler.Parcel;
import java.util.Date;
@Parcel(analyze={MessageThread.class})
public class MessageThread implements Comparable<MessageThread> {
public String uid;
public String userId;
public String messageSnippet;
public boolean unread;
public Date... | package com.frinder.frinder.model;
import org.parceler.Parcel;
import java.util.Date;
@Parcel(analyze={MessageThread.class})
public class MessageThread implements Comparable<MessageThread> {
public String uid;
public String userId;
public String messageSnippet;
public boolean unread;
public Date... | Fix timestamp crash in message list view | Fix timestamp crash in message list view
| Java | mit | frinder/frinder-app,frinder/frinder-app,frinder/frinder-app |
f12dcc72d9b48b5f962dcaf33636de7ddff7f075 | proxy/src/test/java/net/md_5/bungee/ThrottleTest.java | proxy/src/test/java/net/md_5/bungee/ThrottleTest.java | package net.md_5.bungee;
import java.net.InetAddress;
import java.net.UnknownHostException;
import org.junit.Assert;
import org.junit.Test;
public class ThrottleTest
{
@Test
public void testThrottle() throws InterruptedException, UnknownHostException
{
ConnectionThrottle throttle = new Connection... | package net.md_5.bungee;
import java.net.InetAddress;
import java.net.UnknownHostException;
import org.junit.Assert;
import org.junit.Test;
public class ThrottleTest
{
@Test
public void testThrottle() throws InterruptedException, UnknownHostException
{
ConnectionThrottle throttle = new Connection... | Fix compile error when compiling on OS X | Fix compile error when compiling on OS X
| Java | bsd-3-clause | GamesConMCGames/Bungeecord,ewized/BungeeCord,PrisonPvP/BungeeCord,LinEvil/BungeeCord,GingerGeek/BungeeCord,ewized/BungeeCord,starlis/BungeeCord,mariolars/BungeeCord,ConnorLinfoot/BungeeCord,LolnetModPack/BungeeCord,TCPR/BungeeCord,ConnorLinfoot/BungeeCord,TCPR/BungeeCord,dentmaged/BungeeCord,btilm305/BungeeCord,mariola... |
a536f407e6b48c7c909031d053b0be1e1c0d8f79 | src/main/java/org/lesscss4j/factory/AbstractObjectFactory.java | src/main/java/org/lesscss4j/factory/AbstractObjectFactory.java | /**
* File: AbstractObjectFactory.java
*
* Author: David Hay (dhay@localmatters.com)
* Creation Date: Apr 21, 2010
* Creation Time: 10:46:54 AM
*
* Copyright 2010 Local Matters, Inc.
* All Rights Reserved
*
* Last checkin:
* $Author$
* $Revision$
* $Date$
*/
package org.lesscss4j.factory;
import org.a... | /**
* File: AbstractObjectFactory.java
*
* Author: David Hay (dhay@localmatters.com)
* Creation Date: Apr 21, 2010
* Creation Time: 10:46:54 AM
*
* Copyright 2010 Local Matters, Inc.
* All Rights Reserved
*
* Last checkin:
* $Author$
* $Revision$
* $Date$
*/
package org.lesscss4j.factory;
import org.a... | Include line number in unhandled token exception. | Include line number in unhandled token exception.
git-svn-id: 2eebe84b5b32eb059849d530d3c549d0da009da8@114348 cb919951-1609-0410-8833-993d306c94f7
| Java | apache-2.0 | localmatters/lesscss4j,localmatters/lesscss4j |
e5ca8b8e4cf9ef7a3c12c1713be52f671995c638 | src/jvm/backtype/storm/topology/BasicBoltExecutor.java | src/jvm/backtype/storm/topology/BasicBoltExecutor.java | package backtype.storm.topology;
import backtype.storm.task.OutputCollector;
import backtype.storm.task.TopologyContext;
import backtype.storm.tuple.Tuple;
import java.util.Map;
import org.apache.log4j.Logger;
public class BasicBoltExecutor implements IRichBolt {
public static Logger LOG = Logger.getLogger(BasicB... | package backtype.storm.topology;
import backtype.storm.task.OutputCollector;
import backtype.storm.task.TopologyContext;
import backtype.storm.tuple.Tuple;
import java.util.Map;
import org.apache.log4j.Logger;
public class BasicBoltExecutor implements IRichBolt {
public static Logger LOG = Logger.getLogger(BasicB... | Revert "basic bolts check for reportedfailedexception" | Revert "basic bolts check for reportedfailedexception"
This reverts commit e8d886485923b0f7a5101e55ded48103751f55a0.
| Java | apache-2.0 | hmcc/storm,chrismoulton/storm,kishorvpatil/incubator-storm,sakanaou/storm,srishtyagrawal/storm,chrismoulton/storm,ujfjhz/storm,ujfjhz/storm,taoguan/storm-1,erikdw/storm,Crim/storm,erikdw/storm,sakanaou/storm,ujfjhz/storm,hilfialkaff/storm,kevinconaway/storm,kamleshbhatt/storm,cluo512/storm,Crim/storm,F30/storm,Aloomaio... |
78d817b6940f788adf75b4acd6b788419f520c25 | src/main/java/net/openhft/chronicle/wire/AbstractMarshallable.java | src/main/java/net/openhft/chronicle/wire/AbstractMarshallable.java | /*
* Copyright 2016 higherfrequencytrading.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 applicable la... | /*
* Copyright 2016 higherfrequencytrading.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 applicable la... | Add a custom hashCode and equals for performance. | Add a custom hashCode and equals for performance.
| Java | apache-2.0 | OpenHFT/Chronicle-Wire,OpenHFT/Chronicle-Wire |
d2f415a08a15ff0261ee7396d85aba16b56033a4 | app/src/main/java/com/alsash/reciper/ui/RecipeListActivity.java | app/src/main/java/com/alsash/reciper/ui/RecipeListActivity.java | package com.alsash.reciper.ui;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.Fragment;
import com.alsash.reciper.R;
public class RecipeListActivity extends DrawerSpinnerActi... | package com.alsash.reciper.ui;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.Fragment;
import com.alsash.reciper.R;
public class RecipeListActivity extends DrawerSpinnerActi... | Add spinner activity with navigation drawer | Add spinner activity with navigation drawer
| Java | apache-2.0 | alsash/reciper |
c95c9bbcf5b8bee6be16575b4ff80ea570649fff | test/sqlancer/dbms/TestMySQL.java | test/sqlancer/dbms/TestMySQL.java | package sqlancer.dbms;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assumptions.assumeTrue;
import org.junit.jupiter.api.Test;
import sqlancer.Main;
public class TestMySQL {
String mysqlAvailable = System.getenv("MYSQL_AVAILABLE");
boolean mysqlIsAvailabl... | package sqlancer.dbms;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assumptions.assumeTrue;
import org.junit.jupiter.api.Test;
import sqlancer.Main;
public class TestMySQL {
String mysqlAvailable = System.getenv("MYSQL_AVAILABLE");
boolean mysqlIsAvailabl... | Use the default number of queries | [MySQL] Use the default number of queries
| Java | mit | sqlancer/sqlancer,sqlancer/sqlancer |
10fe6b4439526cab6093e5aeb665bb989ca4f151 | src/gcj/org/apache/lucene/index/GCJSegmentReader.java | src/gcj/org/apache/lucene/index/GCJSegmentReader.java | package org.apache.lucene.index;
/**
* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0... | package org.apache.lucene.index;
/**
* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0... | Disable optimized implementation with compound format. | Disable optimized implementation with compound format.
git-svn-id: 4c5078813df38efa56971a28e09a55254294f104@150562 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | adichad/lucene-new,tokee/lucene,adichad/lucene,adichad/lucene-new,adichad/lucene,adichad/lucene-new,adichad/lucene-new,tokee/lucene,adichad/lucene,adichad/lucene,tokee/lucene,adichad/lucene-new,adichad/lucene,tokee/lucene |
e1ac658f6802729011e57fc7e8f421e7c23e3c42 | src/main/java/ee/ellytr/autoclick/tps/TPSTracker.java | src/main/java/ee/ellytr/autoclick/tps/TPSTracker.java | package ee.ellytr.autoclick.tps;
public class TPSTracker {
private static double lastTick = System.nanoTime();
private static double tps = 0;
public static void tick() {
try {
tps = 1 / ((System.nanoTime() - lastTick) / 1000000000.0);
} catch (ArithmeticException e) {
... | package ee.ellytr.autoclick.tps;
public class TPSTracker {
private static double lastTick = -1;
private static double tps = 0;
public static void tick() {
if (lastTick != -1) {
tps = 1 / ((System.nanoTime() - lastTick) / 1000000000.0);
}
lastTick = System.nanoTime();
... | Fix a needless ArithmeticException with TPS tracking | Fix a needless ArithmeticException with TPS tracking
| Java | mit | Zenzoh/EllyCheat,iEli2tyree011/EllyCheat |
a734fbb4b1e6e5581c3c5fd0eb76b8cc27d54814 | src/main/java/com/github/cstroe/svndumpgui/api/SvnProperty.java | src/main/java/com/github/cstroe/svndumpgui/api/SvnProperty.java | package com.github.cstroe.svndumpgui.api;
public interface SvnProperty {
String DATE = "svn:date";
String AUTHOR = "svn:author";
String LOG = "svn:log";
String MIMETYPE = "svn:mime-type";
String MERGEINFO = "svn:mergeinfo";
/**
* Used in {@link com.github.cstroe.svndumpgui.generated.SvnDu... | package com.github.cstroe.svndumpgui.api;
public interface SvnProperty {
String DATE = "svn:date";
String AUTHOR = "svn:author";
String LOG = "svn:log";
String IGNORE = "svn:ignore";
String MIMETYPE = "svn:mime-type";
String MERGEINFO = "svn:mergeinfo";
/**
* Used in {@link com.github... | Add svn:ignore to the list of standard properties. | Add svn:ignore to the list of standard properties.
| Java | agpl-3.0 | cstroe/svndumpapi,cstroe/svndumpgui,cstroe/svndumpgui,cstroe/svndumpapi |
26aee8c0ae9cb94b3682d00b69522aec6af8d46b | src/main/java/me/coley/recaf/plugin/api/ClassVisitorPlugin.java | src/main/java/me/coley/recaf/plugin/api/ClassVisitorPlugin.java | package me.coley.recaf.plugin.api;
import org.objectweb.asm.ClassVisitor;
public interface ClassVisitorPlugin extends BasePlugin {
/**
* Intercepts the given {@link ClassVisitor}.
*
* @param visitor
* Visitor to intercept.
* @return intercepted {@link ClassVisitor}.
*/
Class... | package me.coley.recaf.plugin.api;
import org.objectweb.asm.ClassVisitor;
/**
* Allow plugins to intercept and modify {@link ClassVisitor}.
*
* @author xxDark
*/
public interface ClassVisitorPlugin extends BasePlugin {
/**
* Intercepts the given {@link ClassVisitor}.
*
* @param visitor
* ... | Add docs to class header | fix: Add docs to class header
| Java | mit | Col-E/Recaf,Col-E/Recaf |
107e1055af6453dd35aa3826f2eb36e42df56917 | beaform-core/src/test/java/beaform/utilities/SystemTimeTest.java | beaform-core/src/test/java/beaform/utilities/SystemTimeTest.java | package beaform.utilities;
import static org.junit.Assert.assertTrue;
import org.junit.After;
import org.junit.Test;
public class SystemTimeTest {
@After
public void destroy() {
SystemTime.reset();
}
@Test
public void testDefaultTimeSource() {
SystemTime.reset();
final long start = System.currentTimeMil... | package beaform.utilities;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.Date;
import org.junit.After;
import org.junit.Test;
public class SystemTimeTest {
@After
public void destroy() {
SystemTime.reset();
}
@Test
public void testWithEpoch() {
S... | Add more tests for the SystemTime class | Add more tests for the SystemTime class
| Java | mit | stevenpost/beaform |
fdebdf68b9ceefb99c0dc503903f8b1a41048b69 | core/src/main/java/org/mskcc/cbio/portal/dao/JdbcDataSource.java | core/src/main/java/org/mskcc/cbio/portal/dao/JdbcDataSource.java | package org.mskcc.cbio.portal.dao;
import org.apache.commons.dbcp2.BasicDataSource;
import org.mskcc.cbio.portal.util.DatabaseProperties;
/**
* Data source that self-initializes based on cBioPortal configuration.
*/
public class JdbcDataSource extends BasicDataSource {
public JdbcDataSource () {
Databas... | package org.mskcc.cbio.portal.dao;
import org.apache.commons.dbcp2.BasicDataSource;
import org.mskcc.cbio.portal.util.DatabaseProperties;
/**
* Data source that self-initializes based on cBioPortal configuration.
*/
public class JdbcDataSource extends BasicDataSource {
public JdbcDataSource () {
Databas... | Change db parameters dbcp for production | Change db parameters dbcp for production
We want to use dbcp on AWS/k8s. This copies over the db parameters we are
currently using in production in our context.xml when using jndi instead of
dbcp. This change will furthermore make sure when a different institution uses
dbcp, they'll use the same connection parameters.... | Java | agpl-3.0 | mandawilson/cbioportal,angelicaochoa/cbioportal,onursumer/cbioportal,pughlab/cbioportal,cBioPortal/cbioportal,onursumer/cbioportal,cBioPortal/cbioportal,zhx828/cbioportal,angelicaochoa/cbioportal,d3b-center/pedcbioportal,pughlab/cbioportal,zhx828/cbioportal,mandawilson/cbioportal,n1zea144/cbioportal,d3b-center/pedcbiop... |
79f5432935911d82e65c79894d465bf41995a375 | src/main/java/com/cjmalloy/torrentfs/server/Entry.java | src/main/java/com/cjmalloy/torrentfs/server/Entry.java | package com.cjmalloy.torrentfs.server;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlet.ServletHolder;
import org.glassfish.jersey.servlet.ServletContainer;
public class Entry
{
public static final int DEFAULT_PORT = 8080;
public... | package com.cjmalloy.torrentfs.server;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlet.ServletHolder;
import org.glassfish.jersey.servlet.ServletContainer;
public class Entry
{
public static final int DEFAULT_PORT = 8080;
public... | Throw an error for unrecoverable exceptions. | Throw an error for unrecoverable exceptions.
| Java | mit | cjmalloy/torrent-fs |
e0fc93fd0fee03a1bb6db42670955b06ba793a28 | src/main/java/com/raillearn/TripController.java | src/main/java/com/raillearn/TripController.java | package com.raillearn;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
public class TripController {
@Autowired
TripRepository tripRepository;
@RequestMapping(value = "/trips", method = RequestMethod... | package com.raillearn;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
public class TripController {
@Autowired
TripRepository tripRepository;
@RequestMapping(value = "/trips", method = RequestMethod... | Add log in user receive. | Add log in user receive.
| Java | apache-2.0 | Szop-Kradziej/rail-learn-backend |
f3d1e9b82e458957835024ed621b22547483870b | src/main/java/io/sigpipe/sing/query/package-info.java | src/main/java/io/sigpipe/sing/query/package-info.java | /*
Copyright (c) 2013, Colorado State University
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and ... | /*
Copyright (c) 2013, Colorado State University
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and ... | Update package description and remove Galileo ref | Update package description and remove Galileo ref
| Java | bsd-2-clause | malensek/sing |
7489e73ed607d4d63f7c1bf24f5b399f7fb83535 | src/beast/evolution/branchratemodel/StrictClockModel.java | src/beast/evolution/branchratemodel/StrictClockModel.java | package beast.evolution.branchratemodel;
import beast.core.Description;
import beast.core.Function;
import beast.core.parameter.RealParameter;
import beast.evolution.tree.Node;
/**
* @author Alexei Drummond
*/
@Description("Defines a mean rate for each branch in the beast.tree.")
public class StrictClockModel exte... | package beast.evolution.branchratemodel;
import beast.core.Description;
import beast.core.Function;
import beast.core.parameter.RealParameter;
import beast.evolution.tree.Node;
/**
* @author Alexei Drummond
*/
@Description("Defines a mean rate for each branch in the beast.tree.")
public class StrictClockModel exte... | Use instanceof instead of try clause | Use instanceof instead of try clause
Fixes https://github.com/CompEvol/beast2/pull/953#pullrequestreview-606074482
Also replace tabs by 4 space, to make the global diff of this PR more
transparent. Apparently I had auto-reformatted the code at some point, which I
had never noticed uses tabs instead of spaces.
| Java | lgpl-2.1 | CompEvol/beast2,CompEvol/beast2,tgvaughan/beast2,tgvaughan/beast2,tgvaughan/beast2,CompEvol/beast2,tgvaughan/beast2,CompEvol/beast2 |
17665a5c21bec5c8ffc123e12690838358bbd646 | src/main/java/data/ResponseBuilder.java | src/main/java/data/ResponseBuilder.java | package data;
import util.UserAuthUtil;
public class ResponseBuilder {
public static String toJson(boolean isLoggedIn, String redirectURL) {
// sample output (logged in): { "isLoggedIn" : {"logoutURL"}, "isLoggedOut" : {}}
// sample output (logged out): { "isLoggedIn" : {}, "isLoggedOut" : { "loginURL" }}
... | package data;
import util.UserAuthUtil;
public class ResponseBuilder {
public static String toJson(boolean isLoggedIn, String redirectURL) {
// logged in: { "isLoggedIn":{"/_ah/logout?continue=%2FLogin"}, "isLoggedOut":{""}}
// logged out: { "isLoggedIn":{""}, "isLoggedOut":{"/_ah/login?continue=%2FLogin"}}... | Add double quotes for JSON formatting | Add double quotes for JSON formatting
| Java | apache-2.0 | googleinterns/step57-2020,googleinterns/step57-2020,googleinterns/step57-2020 |
c584494a68057b742ef447026c1f6a8c3d6461a3 | sample/src/main/java/com/facebook/samples/litho/DemoActivity.java | sample/src/main/java/com/facebook/samples/litho/DemoActivity.java | /**
* Copyright 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE-examples file in the root directory of this source tree.
*/
package com.facebook.samples.litho;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;... | /**
* Copyright 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE-examples file in the root directory of this source tree.
*/
package com.facebook.samples.litho;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;... | Fix weird base context bug in sample app | Fix weird base context bug in sample app
Summary:
The demo components are created when you start DemoListActivity and stored in a static map. Each individual demo however, runs in DemoActivity. This means you can get a component with a context based on activity (DemoListActivity) that gets mounted in a view created b... | Java | apache-2.0 | facebook/litho,facebook/litho,facebook/litho,facebook/litho,facebook/litho,facebook/litho |
a68312eddcc277276bd029899890760ee1885814 | src/main/java/cn/shiyanjun/platform/api/utils/ComponentUtils.java | src/main/java/cn/shiyanjun/platform/api/utils/ComponentUtils.java | package cn.shiyanjun.platform.api.utils;
import cn.shiyanjun.platform.api.LifecycleAware;
public class ComponentUtils {
public static void stopAllQuietly(LifecycleAware... components) {
if(components != null) {
for(LifecycleAware c : components) {
try {
c.stop();
} catch (Exception e) {
// ig... | package cn.shiyanjun.platform.api.utils;
import cn.shiyanjun.platform.api.LifecycleAware;
public class ComponentUtils {
public static void startAll(LifecycleAware... components) {
for(LifecycleAware c : components) {
c.start();
}
}
public static void stopAllQuietly(LifecycleAware... components) {
if(co... | Add an utility method 'startAll' to start all components. | Add an utility method 'startAll' to start all components. | Java | apache-2.0 | shirdrn/platform-api |
5fea3b1107e43479a23903cd93a95d591f58b19d | src/main/java/io/github/aquerr/eaglefactions/logic/MainLogic.java | src/main/java/io/github/aquerr/eaglefactions/logic/MainLogic.java | package io.github.aquerr.eaglefactions.logic;
import io.github.aquerr.eaglefactions.config.ConfigAccess;
import io.github.aquerr.eaglefactions.config.IConfig;
import io.github.aquerr.eaglefactions.config.MainConfig;
import ninja.leaping.configurate.ConfigurationNode;
public class MainLogic
{
private static IConfi... | package io.github.aquerr.eaglefactions.logic;
import io.github.aquerr.eaglefactions.config.ConfigAccess;
import io.github.aquerr.eaglefactions.config.IConfig;
import io.github.aquerr.eaglefactions.config.MainConfig;
import ninja.leaping.configurate.ConfigurationNode;
public class MainLogic
{
private static IConfi... | Add function for getting starting power | Add function for getting starting power
| Java | mit | Aquerr/EagleFactions,Aquerr/EagleFactions |
7faaa4b6d38e780f05cf06258712263a955c269d | src/main/java/org/squiddev/cctweaks/lua/patch/Computer_Patch.java | src/main/java/org/squiddev/cctweaks/lua/patch/Computer_Patch.java | package org.squiddev.cctweaks.lua.patch;
import dan200.computercraft.core.computer.Computer;
import dan200.computercraft.core.computer.IComputerEnvironment;
import dan200.computercraft.core.lua.ILuaMachine;
import dan200.computercraft.core.terminal.Terminal;
import org.squiddev.patcher.visitors.MergeVisitor;
public c... | package org.squiddev.cctweaks.lua.patch;
import dan200.computercraft.core.computer.Computer;
import dan200.computercraft.core.computer.IComputerEnvironment;
import dan200.computercraft.core.lua.ILuaMachine;
import dan200.computercraft.core.terminal.Terminal;
import org.squiddev.patcher.visitors.MergeVisitor;
public c... | Add method to determine if a computer is "mostly on" | Add method to determine if a computer is "mostly on"
This means it is in the process of turning on, is on or is shutting down:
basically anything which hasn't been fully stopped.
| Java | mit | SquidDev-CC/CCTweaks-Lua |
fbe890326dfcfe0863c758b40493a0a211199ad3 | src/main/java/com/beatsbucket/mashub/kitchen/Queue.java | src/main/java/com/beatsbucket/mashub/kitchen/Queue.java | /*
* Copyright 2015 The Mashub Project
*
* The Mashub Project 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/LICENSE-2.0
*
* Unles... | /*
* Copyright 2015 The Mashub Project
*
* The Mashub Project 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/LICENSE-2.0
*
* Unles... | Add basic functions for queue | Add basic functions for queue
| Java | apache-2.0 | beatsbucket/mashub |
7d9a98cb8b7982c7a02859b402ace3081559eba4 | 107/src/main/java/org/ehcache/jsr107/Unwrap.java | 107/src/main/java/org/ehcache/jsr107/Unwrap.java | /*
* Copyright Terracotta, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* Copyright Terracotta, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Use Java 8 constructs for unwrap | Use Java 8 constructs for unwrap
| Java | apache-2.0 | rkavanap/ehcache3,AbfrmBlr/ehcache3,chrisdennis/ehcache3,aurbroszniowski/ehcache3,rkavanap/ehcache3,cschanck/ehcache3,chrisdennis/ehcache3,ehcache/ehcache3,ehcache/ehcache3,cljohnso/ehcache3,jhouserizer/ehcache3,cschanck/ehcache3,aurbroszniowski/ehcache3,cljohnso/ehcache3,lorban/ehcache3,albinsuresh/ehcache3,jhouserize... |
197b0b858eb18f1369d408815ff8eb91b0e4afb5 | src/test/java/us/ihmc/codecs/JPEGTest.java | src/test/java/us/ihmc/codecs/JPEGTest.java | package us.ihmc.codecs;
import static org.junit.jupiter.api.Assertions.*;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.Random;
import org.junit.jupiter.api.Test;
import us.ihmc.codecs.generated.FilterModeEnum;
import us.ihmc.codecs.generated.YUVPicture;
import us.ihmc.codecs.... | package us.ihmc.codecs;
import static org.junit.jupiter.api.Assertions.*;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.Random;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import us.ihmc.codecs.generated.FilterModeEnum;
import us.ihmc.codecs.gener... | Disable JPEG decoder test for now. | Disable JPEG decoder test for now.
| Java | apache-2.0 | ihmcrobotics/ihmc-video-codecs,ihmcrobotics/ihmc-video-codecs,ihmcrobotics/ihmc-video-codecs |
05497eb3970d943008d265a498aafa24e311014b | android/java/com/sometrik/framework/FWPicker.java | android/java/com/sometrik/framework/FWPicker.java | package com.sometrik.framework;
import java.util.ArrayList;
import java.util.TreeMap;
import android.content.Context;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
public class FWPicker extends Spinner implements NativeMessageHandler {
ArrayAdapter<String> adapter;
ArrayList<I... | package com.sometrik.framework;
import java.util.ArrayList;
import java.util.TreeMap;
import android.content.Context;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
public class FWPicker extends Spinner implements NativeMessa... | Add onSelectedListener and native function call to picker | Add onSelectedListener and native function call to picker | Java | mit | Sometrik/framework,Sometrik/framework,Sometrik/framework |
0c31279f26d6125676b8aa854b99b93f623b0348 | gwt-ol3-client/src/test/java/ol/SphereTest.java | gwt-ol3-client/src/test/java/ol/SphereTest.java | /*******************************************************************************
* Copyright 2014, 2018 gwt-ol3
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache... | /*******************************************************************************
* Copyright 2014, 2018 gwt-ol3
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache... | Update test for sphere methods | Update test for sphere methods | Java | apache-2.0 | sebasbaumh/gwt-ol3,TDesjardins/gwt-ol3,TDesjardins/GWT-OL3-Playground,TDesjardins/gwt-ol3,TDesjardins/GWT-OL3-Playground,TDesjardins/gwt-ol3,TDesjardins/GWT-OL3-Playground,sebasbaumh/gwt-ol3,sebasbaumh/gwt-ol3 |
2775800b8f39ebc8de8f2611f91c786987d1191e | src/main/java/com/btk5h/skriptmirror/ObjectWrapper.java | src/main/java/com/btk5h/skriptmirror/ObjectWrapper.java | package com.btk5h.skriptmirror;
import ch.njol.skript.registrations.Classes;
import java.util.Arrays;
public class ObjectWrapper {
protected Object object;
private ObjectWrapper(Object object) {
this.object = object;
}
public static ObjectWrapper create(Object object) {
if (object.getClass().isArra... | package com.btk5h.skriptmirror;
import ch.njol.skript.registrations.Classes;
import java.util.Arrays;
public class ObjectWrapper {
protected Object object;
private ObjectWrapper(Object object) {
this.object = object;
}
public static ObjectWrapper create(Object object) {
if (object instanceof Object... | Make object wrapper function idempotent | Make object wrapper function idempotent
| Java | mit | btk5h/skript-mirror |
a40e5be67288d9215fb36b808166135b55c0c880 | androidemu/src/main/java/android/BaseAndroidManifest.java | androidemu/src/main/java/android/BaseAndroidManifest.java | package android;
import android.app.Activity;
import android.app.ActivityManager;
import android.content.Intent;
import android.content.res.BaseResourceResolver;
import android.content.res.Resources;
import com.google.gwt.core.client.EntryPoint;
public abstract class BaseAndroidManifest implements EntryPoint {
publ... | package android;
import android.app.Activity;
import android.app.ActivityManager;
import android.content.Intent;
import android.content.res.BaseResourceResolver;
import android.content.res.Resources;
import android.util.Log;
import com.google.gwt.core.client.EntryPoint;
public abstract class BaseAndroidManifest imple... | Check provided Activity and ResourceResolver | Check provided Activity and ResourceResolver
| Java | mit | albertoruibal/gwt_android_emu,albertoruibal/gwt_android_emu,albertoruibal/gwt_android_emu |
941f0ad87df8e5d57f5af29d5962b84275c96526 | android/src/main/java/ca/bigdata/voice/dtmf/BigDataDTMFPackage.java | android/src/main/java/ca/bigdata/voice/dtmf/BigDataDTMFPackage.java |
package ca.bigdata.voice.dtmf;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import com.fac... |
package ca.bigdata.voice.dtmf;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import com.fac... | Remove override on createJSModules. Required for RN 0.57.0 | Remove override on createJSModules. Required for RN 0.57.0
| Java | mit | lucbelliveau/react-native-dtmf,lucbelliveau/react-native-dtmf,lucbelliveau/react-native-dtmf |
7a5f2fc0c7519c20c488a3c5f627dbdae38d034b | jsweep/src/test/java/io/scanse/sweep/Example.java | jsweep/src/test/java/io/scanse/sweep/Example.java | package io.scanse.sweep;
import java.util.List;
public class Example {
public static void main(String[] args) throws Exception {
try (SweepDevice device = new SweepDevice("/dev/ttyUSB0")) {
device.startScanning();
while (!device.isMotorReady()) {
Thread.sleep(10);
... | package io.scanse.sweep;
import java.util.List;
public class Example {
public static void main(String[] args) throws Exception {
try (SweepDevice device = new SweepDevice("/dev/ttyUSB0")) {
int speed = device.getMotorSpeed();
int rate = device.getSampleRate();
System.... | Update example to match others | Update example to match others
| Java | mit | scanse/sweep-sdk,scanse/sweep-sdk,PeterJohnson/sweep-sdk,PeterJohnson/sweep-sdk,PeterJohnson/sweep-sdk,scanse/sweep-sdk,PeterJohnson/sweep-sdk,PeterJohnson/sweep-sdk,PeterJohnson/sweep-sdk,scanse/sweep-sdk,scanse/sweep-sdk,PeterJohnson/sweep-sdk,scanse/sweep-sdk,scanse/sweep-sdk |
89880d86021ea4c306a8e5c2a82372a9a0e35d73 | src/main/java/io/prowave/chargify/webhook/bean/SubscriptionProductChange.java | src/main/java/io/prowave/chargify/webhook/bean/SubscriptionProductChange.java | /*
* Copyright (C) 2016 Prowave Consulting, LLC
*
* This program 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 License, or
* (at your option) any later version.
*
* This progr... | /*
* Copyright (C) 2016 Prowave Consulting, LLC
*
* This program 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 License, or
* (at your option) any later version.
*
* This progr... | Add getter/setter so we can actually use this... | Add getter/setter so we can actually use this... | Java | apache-2.0 | prowave/chargify-webhook-java |
af3c6d13c021d2efcee4a4716cafe108f19d890a | rest-common/src/main/java/uk/ac/ebi/quickgo/rest/cache/DayTime.java | rest-common/src/main/java/uk/ac/ebi/quickgo/rest/cache/DayTime.java | package uk.ac.ebi.quickgo.rest.cache;
import com.google.common.base.Preconditions;
import java.time.DayOfWeek;
import java.time.LocalTime;
import java.util.Objects;
import javax.validation.constraints.NotNull;
/**
* Data structure holds day of week and time. Used to declare events that have a daily occurrence at a s... | package uk.ac.ebi.quickgo.rest.cache;
import com.google.common.base.Preconditions;
import java.time.DayOfWeek;
import java.time.LocalTime;
import java.util.Objects;
import javax.validation.constraints.NotNull;
/**
* Data structure holds day of week and time. Used to declare events that have a daily occurrence at a s... | Add to javadoc, make constructor package private. | Add to javadoc, make constructor package private.
| Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
923438e5c52352da8bd5f6b19ad1eaca50ccc370 | common/src/main/java/com/alexstyl/specialdates/analytics/AnalyticsProvider.java | common/src/main/java/com/alexstyl/specialdates/analytics/AnalyticsProvider.java | package com.alexstyl.specialdates.analytics;
import android.content.Context;
import com.alexstyl.specialdates.common.BuildConfig;
import com.mixpanel.android.mpmetrics.MixpanelAPI;
public class AnalyticsProvider {
private static Analytics ANALYTICS;
public static Analytics getAnalytics(Context context) {
... | package com.alexstyl.specialdates.analytics;
import android.content.Context;
import com.alexstyl.specialdates.common.BuildConfig;
import com.mixpanel.android.mpmetrics.MixpanelAPI;
public class AnalyticsProvider {
private static Analytics ANALYTICS;
public static Analytics getAnalytics(Context context) {
... | Use application context for analytics provider | Use application context for analytics provider
| Java | mit | pchrysa/Memento-Calendar,pchrysa/Memento-Calendar,pchrysa/Memento-Calendar |
c7de0de0532224c3974430fb489682066f579d4a | requirementsascodeexamples/helloworld/src/main/java/helloworld/HelloWorld03_EnterNameExample.java | requirementsascodeexamples/helloworld/src/main/java/helloworld/HelloWorld03_EnterNameExample.java | package helloworld;
import static org.requirementsascode.UseCaseModelBuilder.newBuilder;
import java.util.function.Consumer;
import org.requirementsascode.UseCaseModel;
import org.requirementsascode.UseCaseModelBuilder;
import org.requirementsascode.UseCaseModelRunner;
public class HelloWorld03_EnterNameExample ext... | package helloworld;
import static org.requirementsascode.UseCaseModelBuilder.newBuilder;
import org.requirementsascode.UseCaseModel;
import org.requirementsascode.UseCaseModelBuilder;
import org.requirementsascode.UseCaseModelRunner;
public class HelloWorld03_EnterNameExample extends AbstractHelloWorldExample{
pr... | Refactor to use method references | Refactor to use method references
| Java | apache-2.0 | bertilmuth/requirementsascode |
368e315a362a9058ef5f5117322936e5880d7397 | src/revert/AI/EnemyAi.java | src/revert/AI/EnemyAi.java | package revert.AI;
import revert.Entities.Actor;
public interface EnemyAi {
/**
* AI to be invoked when an actor is told to attack
*/
public void attack(Actor a);
/**
* AI to be invoked when an actor enters the enemy's view
* @param a
*/
public void inView(Actor a);
/**
* AI to be invoked when ... | package revert.AI;
import revert.Entities.Actor;
public interface EnemyAi {
/**
* AI to be invoked when an actor is told to attack
*/
public void attack(Actor a);
/**
* AI to be invoked when an actor enters the enemy's view
* @param a
*/
public void inView(Actor a);
/**
* AI to be invoked when ... | Add agro and walk required methods for ai | Add agro and walk required methods for ai
| Java | mit | nhydock/revert |
5d5390be1abb4649f2c7dbb77af4cbd81c2a6b3e | src/main/java/geeks/expressive/DefaultObjectFactory.java | src/main/java/geeks/expressive/DefaultObjectFactory.java | package geeks.expressive;
import org.picocontainer.MutablePicoContainer;
import org.picocontainer.PicoBuilder;
import org.picocontainer.PicoContainer;
import org.picocontainer.monitors.ComposingMonitor;
import java.util.Map;
import java.util.HashMap;
/**
* A wrapper for picocontainer.
*
* @author pabstec
*/
publ... | package geeks.expressive;
import org.picocontainer.MutablePicoContainer;
import org.picocontainer.PicoBuilder;
import org.picocontainer.PicoContainer;
import org.picocontainer.monitors.ComposingMonitor;
/**
* A wrapper for picocontainer.
*
* @author pabstec
*/
public class DefaultObjectFactory implements ObjectFa... | Support auto-registering of requested concrete component classes. | Support auto-registering of requested concrete component classes.
| Java | mit | epabst/expressive |
c3db77cc589f5acc4f8a7f4e03a276d7ad5c2211 | src/main/java/org/aludratest/dict/ActionWordLibrary.java | src/main/java/org/aludratest/dict/ActionWordLibrary.java | /*
* Copyright (C) 2010-2014 Hamburg Sud and the contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | /*
* Copyright (C) 2010-2014 Hamburg Sud and the contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Remove wrong link from Javadoc | Remove wrong link from Javadoc | Java | apache-2.0 | AludraTest/aludratest,falbrech-hsdg/aludratest,AludraTest/aludratest,AludraTest/aludratest,falbrech-hsdg/aludratest,falbrech-hsdg/aludratest |
df650e952b13eca44d6896c52ff4b37cb8403e68 | src/galileo/event/EventWithSynopsis.java | src/galileo/event/EventWithSynopsis.java | package galileo.event;
import java.io.IOException;
import galileo.serialization.SerializationInputStream;
import galileo.serialization.SerializationOutputStream;
/**
* Encapsulates a raw (byte[] based) event that includes a String representing
* the event synopsis. This can be used to essentially 'tag' particular... | package galileo.event;
import java.io.IOException;
import galileo.serialization.SerializationInputStream;
import galileo.serialization.SerializationOutputStream;
/**
* Encapsulates a raw (byte[] based) event that includes a String representing
* the event synopsis. This can be used to essentially 'tag' particular... | Add getters for synopsis and payload | Add getters for synopsis and payload
| Java | bsd-2-clause | 10000TB/galileo,10000TB/galileo |
f2d5de53a560731476d96423988d2e55cdbdef32 | src/main/java/starpunk/AssetManager.java | src/main/java/starpunk/AssetManager.java | package starpunk;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import java.util.HashMap;
public final class AssetManager
{
private final HashMap<String, TextureAtlas.AtlasRegion> _sprites = new HashMap<String, TextureAtlas.AtlasRegion>();
protected void initialize()
{
fin... | package starpunk;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import java.util.HashMap;
import java.util.Map;
public final class AssetManager
{
private final HashMap<String, TextureAtlas.AtlasRegion> _sprites = new HashMap<String, TextureAtlas.AtlasRegion>();
private final Hash... | Improve the dispose by disposing the containing atlas | Improve the dispose by disposing the containing atlas
| Java | apache-2.0 | realityforge-experiments/star-punk,realityforge-experiments/star-punk,realityforge-experiments/star-punk |
785639006cc1fb5168d40c2ae7906b086b2f93b6 | Drinks/src/main/java/fr/masciulli/drinks/model/Drink.java | Drinks/src/main/java/fr/masciulli/drinks/model/Drink.java | package fr.masciulli.drinks.model;
public class Drink {
private String mName;
private String mImageURL;
public Drink(String name, String imageURL) {
mName = name;
mImageURL = imageURL;
}
public String getName() {
return mName;
}
public void setName(String name) {
... | package fr.masciulli.drinks.model;
import java.util.LinkedList;
import java.util.List;
public class Drink {
private String mName;
private String mImageURL;
private String mHistory;
private List<String> mIngredients = new LinkedList<String>();
private List<String> mInstructions = new LinkedList<Str... | Improve drink model with ingredients, instructions and history | Improve drink model with ingredients, instructions and history
| Java | apache-2.0 | amasciul/Drinks,vbarthel-fr/Drinks,vbarthel-fr/Drinks,amasciul/Drinks,amasciul/Drinks,mechdome/Drinks,mechdome/Drinks |
bb563e85bce3d26618316ed2f88dffc200767b5d | app/src/main/java/de/stephanlindauer/criticalmaps/utils/GpxUtils.java | app/src/main/java/de/stephanlindauer/criticalmaps/utils/GpxUtils.java | package de.stephanlindauer.criticalmaps.utils;
import android.content.ContentResolver;
import android.content.Intent;
import android.os.Build;
public class GpxUtils {
public static void persistPermissionOnFile(Intent data, ContentResolver contentResolver) {
final int permissionFlags = data.getFlags()
... | package de.stephanlindauer.criticalmaps.utils;
import android.content.ContentResolver;
import android.content.Intent;
import android.os.Build;
public class GpxUtils {
public static void persistPermissionOnFile(Intent data, ContentResolver contentResolver) {
final int permissionFlags = data.getFlags() & I... | Remove persisting of unnecessary permission | Remove persisting of unnecessary permission
| Java | apache-2.0 | johnjohndoe/criticalmaps-android,cbalster/criticalmaps-android,criticalmaps/criticalmaps-android |
7a9d6058a69a7984aeedc6940a1e39b1820d23dd | src/com/nigorojr/typebest/Word.java | src/com/nigorojr/typebest/Word.java | package com.nigorojr.typebest;
import java.util.ArrayList;
import javax.swing.JPanel;
public class Word extends JPanel {
private ArrayList<Letter> word = new ArrayList<Letter>();
private String rawWord;
/**
* Accepts a String which is what will be shown in this JPanel.
* The constructor will t... | package com.nigorojr.typebest;
import java.util.ArrayList;
import javax.swing.JPanel;
public class Word extends JPanel {
private ArrayList<Letter> letters = new ArrayList<Letter>();
private String rawWord;
/**
* Accepts a String which is what will be shown in this JPanel.
* The constructor wil... | Rename ambiguous variable name "word" to "letters" | Rename ambiguous variable name "word" to "letters"
The variable is renamed because it is better to call an ArrayList of Letter
"letters" rather than "word".
| Java | mit | NigoroJr/typebest |
c320f36d4dbe61dc0e40620a009ffaf560fa69dc | src/main/java/redis/embedded/cluster/Client.java | src/main/java/redis/embedded/cluster/Client.java | package redis.embedded.cluster;
import redis.clients.jedis.*;
import java.io.*;
// TODO Remove dependency on Jedis
class Client implements Closeable {
private final Jedis jedis;
Client(String host, int port) {
this.jedis = new Jedis(host, port);
}
public String clusterReplicate(final Strin... | package redis.embedded.cluster;
import redis.clients.jedis.*;
import java.io.*;
/**
* A minimal client implementation to pass some commands to a single redis server.
* This implementation rely on Jedis to make the all calls (removing the dependency on Jedis could be done
* but will add a serious complexity to thi... | Add explanation as to why we depend on Jedis | Add explanation as to why we depend on Jedis
| Java | apache-2.0 | fmonniot/embedded-redis,fmonniot/embedded-redis |
fc7c9829d64cd84950c3043f805d1938e6b8d11b | src/GeeksforGeeksPractice/_0003DeleteATree.java | src/GeeksforGeeksPractice/_0003DeleteATree.java | package GeeksforGeeksPractice;
public class _0003DeleteATree {
public static void main(String args[]){
TreeNode tn=new TreeNode(1);
tn.left=new TreeNode(2);
tn.right=new TreeNode(3);
tn.left.right=new TreeNode(4);
tn.left.left=new TreeNode(5);
tn.left.left.left=new TreeNode(6);
tn.left.left.le... | package GeeksforGeeksPractice;
public class _0003DeleteATree {
public static void main(String args[]){
TreeNode tn=new TreeNode(1);
tn.left=new TreeNode(2);
tn.right=new TreeNode(3);
tn.left.right=new TreeNode(4);
tn.left.left=new TreeNode(5);
tn.left.left.left=new TreeNode(6);
tn.left.left.le... | Delete a tree redo completed | Delete a tree redo completed | Java | mit | darshanhs90/Java-InterviewPrep,darshanhs90/Java-Coding |
a1c9312d6de2061b3a5849a23f039f39955de430 | src/main/java/org/kelley/WebSecurityConfig.java | src/main/java/org/kelley/WebSecurityConfig.java | package org.kelley;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.... | package org.kelley;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import o... | Add environment variable for password. | Add environment variable for password.
| Java | apache-2.0 | tkelley-eg/kittyfeeder-server,tkelley-eg/kittyfeeder-server,tkelley-eg/kittyfeeder-server,tkelley-eg/kittyfeeder-server |
a5a8c0fce91e5ae4e1b4a5ca27b35e263072c1fe | src/test/java/info/u_team/u_team_test/init/TestClientBusRegister.java | src/test/java/info/u_team/u_team_test/init/TestClientBusRegister.java | package info.u_team.u_team_test.init;
import info.u_team.u_team_core.util.registry.BusRegister;
public class TestClientBusRegister {
public static void register() {
BusRegister.registerMod(TestColors::registerMod);
BusRegister.registerMod(TestKeys::registerMod);
BusRegister.registerMod(TestModels::registerMo... | package info.u_team.u_team_test.init;
import info.u_team.u_team_core.api.construct.*;
import info.u_team.u_team_core.util.registry.BusRegister;
@Construct(client = true)
public class TestClientBusRegister implements IModConstruct {
@Override
public void construct() {
BusRegister.registerMod(TestColors::register... | Implement the client bus register in the construct annotation for test mod | Implement the client bus register in the construct annotation for test
mod | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
32df9ea4d1520e90c8ec2240f4620d717206c042 | omni-cx2x/src/cx2x/xcodeml/xnode/Xmod.java | omni-cx2x/src/cx2x/xcodeml/xnode/Xmod.java | /*
* This file is released under terms of BSD license
* See LICENSE file for more information
*/
package cx2x.xcodeml.xnode;
import org.w3c.dom.Document;
/**
* The Xmod represents the module information produced by the Fortran front-end
* of OMNI Compiler.
*
* @author clementval
*/
public class Xmod extends ... | /*
* This file is released under terms of BSD license
* See LICENSE file for more information
*/
package cx2x.xcodeml.xnode;
import org.w3c.dom.Document;
/**
* The Xmod represents the module information produced by the Fortran front-end
* of OMNI Compiler.
*
* @author clementval
*/
public class Xmod extends ... | Add slash if not present | Add slash if not present
| Java | bsd-2-clause | clementval/claw-compiler,clementval/claw-compiler |
e5cab39b0736a80b2b1035590b6f9aae523d3c14 | evcache-core/src/main/java/com/netflix/evcache/util/EVCacheConfig.java | evcache-core/src/main/java/com/netflix/evcache/util/EVCacheConfig.java | package com.netflix.evcache.util;
import javax.inject.Inject;
import com.netflix.archaius.DefaultPropertyFactory;
import com.netflix.archaius.api.PropertyRepository;
import com.netflix.archaius.config.DefaultSettableConfig;
public class EVCacheConfig {
private static EVCacheConfig INSTANCE;
/**
* This... | package com.netflix.evcache.util;
import javax.inject.Inject;
import com.netflix.archaius.DefaultPropertyFactory;
import com.netflix.archaius.api.PropertyRepository;
import com.netflix.archaius.api.config.CompositeConfig;
import com.netflix.archaius.config.DefaultCompositeConfig;
import com.netflix.archaius.config.E... | Support for SystemConfig and EnvConfig when not using DI | Support for SystemConfig and EnvConfig when not using DI
| Java | apache-2.0 | Netflix/EVCache,Netflix/EVCache |
639e58eb18f745875b3a36482df4aa937128244c | base/src/main/java/io/spine/base/SimpleField.java | base/src/main/java/io/spine/base/SimpleField.java | /*
* Copyright 2019, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | /*
* Copyright 2019, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | Extend simple field from `SubscribableField` | Extend simple field from `SubscribableField`
| Java | apache-2.0 | SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base |
c8cf924118b376d3f422694bb68e1616f42e5d4d | tests/src/net/sourceforge/stripes/StripesTestFixture.java | tests/src/net/sourceforge/stripes/StripesTestFixture.java | package net.sourceforge.stripes;
import net.sourceforge.stripes.mock.MockServletContext;
import net.sourceforge.stripes.controller.StripesFilter;
import net.sourceforge.stripes.controller.DispatcherServlet;
import java.util.Map;
import java.util.HashMap;
/**
* Test fixture that sets up a MockServletContext in a way... | package net.sourceforge.stripes;
import net.sourceforge.stripes.mock.MockServletContext;
import net.sourceforge.stripes.controller.StripesFilter;
import net.sourceforge.stripes.controller.DispatcherServlet;
import java.util.Map;
import java.util.HashMap;
/**
* Test fixture that sets up a MockServletContext in a way... | Change to the Stripes test fixture to supply the new init-param ActionResolver.Packages | Change to the Stripes test fixture to supply the new init-param ActionResolver.Packages
git-svn-id: eee8cf2eb4cac5fd9f9d7b672efb1c285d99a606@436 d471f07e-d8fc-0310-a67b-dd4c8ff0e7cd
| Java | apache-2.0 | mcs/Stripes,mcs/Stripes,svn2github/stripesframework,svn2github/stripesframework |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.