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 |
|---|---|---|---|---|---|---|---|---|---|
3e87b7c9bfcda0d95af41b157aa691d2c6a486fa | demo/core/src/main/java/tripleplay/demo/TripleDemo.java | demo/core/src/main/java/tripleplay/demo/TripleDemo.java | //
// Triple Play - utilities for use in PlayN-based games
// Copyright (c) 2011-2014, Three Rings Design, Inc. - All rights reserved.
// http://github.com/threerings/tripleplay/blob/master/LICENSE
package tripleplay.demo;
import playn.core.Game;
import playn.core.PlayN;
import playn.core.util.Clock;
import triplepl... | //
// Triple Play - utilities for use in PlayN-based games
// Copyright (c) 2011-2014, Three Rings Design, Inc. - All rights reserved.
// http://github.com/threerings/tripleplay/blob/master/LICENSE
package tripleplay.demo;
import java.util.Arrays;
import playn.core.Game;
import playn.core.PlayN;
import playn.core.ut... | Make fancy things like scrolling menus work in the demo. | Make fancy things like scrolling menus work in the demo.
| Java | bsd-3-clause | tomfisher/tripleplay,joansmith/tripleplay,tomfisher/tripleplay,joansmith/tripleplay,tomfisher/tripleplay,joansmith/tripleplay,tomfisher/tripleplay,tomfisher/tripleplay,joansmith/tripleplay,joansmith/tripleplay |
7a1ad6ec07cd7134bc90b4a8c9caa2aa9a5c22c9 | config-model-api/src/main/java/com/yahoo/config/model/api/Reindexing.java | config-model-api/src/main/java/com/yahoo/config/model/api/Reindexing.java | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.model.api;
import java.time.Instant;
import java.util.Map;
/**
* Status of reindexing for the documents of an application.
*
* @author jonmv
*/
public interface Reindexing {
... | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.model.api;
import java.time.Instant;
import java.util.Map;
/**
* Status of reindexing for the documents of an application.
*
* @author jonmv
*/
public interface Reindexing {
... | Use more explicit value when reindexing should not be done | Use more explicit value when reindexing should not be done
| 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 |
f0da6d49024cf824f161ecbecf112916dd859a0b | src/main/java/semantic/SemanticHelper.java | src/main/java/semantic/SemanticHelper.java | package semantic;
import error.CompilerError;
import parse.Loc;
import types.Type;
public interface SemanticHelper {
static CompilerError typeMismatch(Loc loc, Type found, Type... expected) {
final StringBuilder builder = new StringBuilder();
final int n = expected.length;
if (n > 0) {
... | package semantic;
import error.CompilerError;
import parse.Loc;
import types.Type;
public interface SemanticHelper {
static CompilerError error(String message) {
return new CompilerError(message);
}
static CompilerError error(String format, Object... args) {
return new CompilerError(format, ar... | Add more helper methods for reporting errors | Add more helper methods for reporting errors
| Java | mit | romildo/eplan,romildo/eplan |
fc640b66786755d7ed17e3185d9785c1d6bb6774 | src/test/java/io/github/bonigarcia/wdm/test/cache/ResolutionCacheTest.java | src/test/java/io/github/bonigarcia/wdm/test/cache/ResolutionCacheTest.java | /*
* (C) Copyright 2018 Boni Garcia (http://bonigarcia.github.io/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | /*
* (C) Copyright 2018 Boni Garcia (http://bonigarcia.github.io/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | Change header in resolution cache test | Change header in resolution cache test
| Java | apache-2.0 | bonigarcia/webdrivermanager,bonigarcia/webdrivermanager,bonigarcia/webdrivermanager |
f2c793c9fcbb3ad8b9e79dc703d04c1a49329a99 | src/gui/org/deidentifier/arx/gui/view/impl/analyze/ViewStatistics.java | src/gui/org/deidentifier/arx/gui/view/impl/analyze/ViewStatistics.java | package org.deidentifier.arx.gui.view.impl.analyze;
import java.awt.Panel;
import org.deidentifier.arx.DataHandle;
import org.deidentifier.arx.gui.model.Model;
import org.deidentifier.arx.gui.model.ModelEvent.ModelPart;
public abstract class ViewStatistics extends Panel{
private static final long serialVers... | package org.deidentifier.arx.gui.view.impl.analyze;
import java.awt.Panel;
import org.deidentifier.arx.DataHandle;
import org.deidentifier.arx.gui.model.Model;
import org.deidentifier.arx.gui.model.ModelEvent.ModelPart;
public abstract class ViewStatistics extends Panel{
private static final long serialVers... | Fix bug when loading projects | Fix bug when loading projects | Java | apache-2.0 | TheRealRasu/arx,bitraten/arx,arx-deidentifier/arx,bitraten/arx,fstahnke/arx,tijanat/arx,jgaupp/arx,tijanat/arx,RaffaelBild/arx,kbabioch/arx,RaffaelBild/arx,kentoa/arx,COWYARD/arx,fstahnke/arx,COWYARD/arx,jgaupp/arx,arx-deidentifier/arx,TheRealRasu/arx,kentoa/arx,kbabioch/arx |
15b2b77597f400579f4e29ff3545c354fa44be53 | src/main/java/com/github/brunodles/validationbuilder/matcher/When.java | src/main/java/com/github/brunodles/validationbuilder/matcher/When.java | package com.github.brunodles.validationbuilder.matcher;
import java.util.function.IntConsumer;
/**
* Created by bruno on 03/06/16.
*/
public class When {
private IntConsumer adder;
public When(IntConsumer adder) {
this.adder = adder;
}
public StringMatcher when(String s) {
return ... | package com.github.brunodles.validationbuilder.matcher;
import java.util.function.IntConsumer;
/**
* Created by bruno on 03/06/16.
*/
public class When {
private IntConsumer adder;
public When(IntConsumer adder) {
this.adder = adder;
}
public StringMatcher when(String s) {
return ... | Update when to include more matchers | Update when to include more matchers
| Java | mit | brunodles/java-validation,brunodles/java-validation |
fd65d227f4e5dc639ab38b350ad17302cc81b3d8 | library/src/main/java/com/lorentzos/flingswipe/internal/SwipeEvent.java | library/src/main/java/com/lorentzos/flingswipe/internal/SwipeEvent.java | package com.lorentzos.flingswipe.internal;
import android.animation.AnimatorListenerAdapter;
import android.view.View;
/**
*
*/
class SwipeEvent {
private final float rotationFactor;
private final FrameData frameData;
private final View frame;
SwipeEvent(float rotationFactor, View frame) {
this.rotationFact... | package com.lorentzos.flingswipe.internal;
import android.animation.AnimatorListenerAdapter;
import android.view.View;
/**
*
*/
class SwipeEvent {
private final float rotationFactor;
private final FrameData frameData;
private final View frame;
SwipeEvent(float rotationFactor, View frame) {
this.rotationFact... | Fix left exit rotation for button events | Fix left exit rotation for button events
| Java | apache-2.0 | Diolor/Swipecards,Topface/Swipecards |
1bcb8ab93b40eb98cbc895c4b6a9af4f56dcc488 | src/main/java/co/phoenixlab/discord/Configuration.java | src/main/java/co/phoenixlab/discord/Configuration.java | package co.phoenixlab.discord;
import java.util.HashSet;
import java.util.Set;
public class Configuration {
private String email;
private String password;
private String commandPrefix;
private Set<String> blacklist;
public Configuration() {
email = "";
password = "";
comm... | package co.phoenixlab.discord;
import java.util.HashSet;
import java.util.Set;
public class Configuration {
private String email;
private String password;
private String commandPrefix;
private transient int prefixLength;
private Set<String> blacklist;
public Configuration() {
email =... | Add command prefix len for substr optimization | Add command prefix len for substr optimization
| Java | mit | vincentzhang96/VahrhedralBot |
51a8819b4d3644460d9be0683b9d3c518381c4a0 | src/main/java/com/github/pedrovgs/problem77/HelloWorldWithoutSemicolon.java | src/main/java/com/github/pedrovgs/problem77/HelloWorldWithoutSemicolon.java | /*
* Copyright (C) 2014 Pedro Vicente Gómez Sánchez.
*
* 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 ... | /*
* Copyright (C) 2014 Pedro Vicente Gómez Sánchez.
*
* 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 ... | Add solution to problem 77 | Add solution to problem 77
| Java | apache-2.0 | Ariloum/Algorithms,007slm/Algorithms,Arkar-Aung/Algorithms,mrgenco/Algorithms-1,ArlenLiu/Algorithms,inexistence/Algorithms,VeskoI/Algorithms,JeffreyWei/Algorithms,zhdh2008/Algorithms,sridhar-newsdistill/Algorithms,zmywly8866/Algorithms,chengjinqian/Algorithms,pedrovgs/Algorithms,AppScientist/Algorithms,jibaro/Algorithm... |
165f9f92d27e18e40ec1d012d2c855bf27c1c70c | src/main/java/com/hamishrickerby/http_server/HTTPCompletionHandler.java | src/main/java/com/hamishrickerby/http_server/HTTPCompletionHandler.java | package com.hamishrickerby.http_server;
import java.nio.channels.AsynchronousServerSocketChannel;
import java.nio.channels.AsynchronousSocketChannel;
import java.nio.channels.CompletionHandler;
/**
* Created by rickerbh on 15/08/2016.
*/
public class HTTPCompletionHandler implements CompletionHandler<AsynchronousSo... | package com.hamishrickerby.http_server;
import java.nio.channels.AsynchronousServerSocketChannel;
import java.nio.channels.AsynchronousSocketChannel;
import java.nio.channels.CompletionHandler;
/**
* Created by rickerbh on 15/08/2016.
*/
public class HTTPCompletionHandler implements CompletionHandler<AsynchronousSo... | Replace CompletionHandler internals with Handler | Replace CompletionHandler internals with Handler
Remove code that has migrated to HTTPHandler from HTTPCompletionHandler.
| Java | mit | rickerbh/http_server_java,rickerbh/http_server_java |
5accfbd5f90064995a424e070d19d75fa1923ede | gwt-ol3-client/src/main/java/ol/style/StyleOptions.java | gwt-ol3-client/src/main/java/ol/style/StyleOptions.java | package ol.style;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
import ol.Options;
/**
* Options for the {@link Style}.
*
* @author Tino Desjardins
*
*/
@JsType(isNative = true)
public interface StyleOptions extends Options {
/**
* {@link Fill} style.
*
* @par... | package ol.style;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
import ol.Options;
/**
* Options for the {@link Style}.
*
* @author Tino Desjardins
*
*/
@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object")
public class Sty... | Make options creatable with new operator | Make options creatable with new operator | Java | apache-2.0 | sebasbaumh/gwt-ol3,TDesjardins/GWT-OL3-Playground,TDesjardins/gwt-ol3,TDesjardins/gwt-ol3,mazlixek/gwt-ol3,mazlixek/gwt-ol3,TDesjardins/GWT-OL3-Playground,sebasbaumh/gwt-ol3,TDesjardins/gwt-ol3,sebasbaumh/gwt-ol3,TDesjardins/GWT-OL3-Playground,mazlixek/gwt-ol3 |
418d7f54eea0767eb652196f1f0f21f1783a21b7 | src/enotes/Main.java | src/enotes/Main.java | /*
* (c) 2009. Ivan Voras <ivoras@fer.hr>
* Released under the 2-clause BSDL.
*/
package enotes;
import java.io.File;
import javax.swing.UIManager;
/**
*
* @author ivoras
*/
public class Main {
static final String VERSION = "1.0beta6";
/**
* @param args the command line arguments
*/
pu... | /*
* (c) 2009. Ivan Voras <ivoras@fer.hr>
* Released under the 2-clause BSDL.
*/
package enotes;
import java.io.File;
import javax.swing.UIManager;
/**
*
* @author tbabej and company
*/
public class Main {
static final String VERSION = "1.0beta6";
/**
* @param args the command line arguments
... | Update authors in the comment | Update authors in the comment
We need to do this so that our teachers are not confused who wrote the
code.
| Java | bsd-2-clause | tbabej/encrypted-notepad |
25e27f9a8b62be424a08b303201c8dea6ad03da6 | programmingtheorems/java/TheoremOfSummary.java | programmingtheorems/java/TheoremOfSummary.java | /******************************************************************************
* Copyright Lajos Katona
*
* 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:/... | /******************************************************************************
* Copyright Lajos Katona
*
* 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:/... | Remove unnecessary Hello World println | Remove unnecessary Hello World println
Change-Id: If4575dbbcd99c064fab3bc4d76c3f317c6c95c9a
| Java | apache-2.0 | elajkat/hugradexam,elajkat/hugradexam |
a26a0f88edeb3feab66aff6dcc6d10eb3cd3d586 | sipXconfig/neoconf/test/org/sipfoundry/sipxconfig/phone/snom/SnomTest.java | sipXconfig/neoconf/test/org/sipfoundry/sipxconfig/phone/snom/SnomTest.java | package org.sipfoundry.sipxconfig.phone.snom;
import java.io.StringWriter;
import junit.framework.TestCase;
import org.apache.commons.io.IOUtils;
import org.sipfoundry.sipxconfig.phone.Phone;
import org.sipfoundry.sipxconfig.phone.PhoneTestDriver;
public class SnomTest extends TestCase {
private Phone m_phone;... | package org.sipfoundry.sipxconfig.phone.snom;
import java.io.StringWriter;
import junit.framework.TestCase;
import org.apache.commons.io.IOUtils;
import org.sipfoundry.sipxconfig.phone.Phone;
import org.sipfoundry.sipxconfig.phone.PhoneTestDriver;
public class SnomTest extends TestCase {
private Phone m_phone;... | Disable Snom config Unit Testuntil we have a new sample of the new config version | Disable Snom config Unit Testuntil we have a new sample of the new config version
git-svn-id: f26ccc5efe72c2bd8e1c40f599fe313f2692e4de@7409 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 |
8bad48cccfe0f427867b98e1b97554c7af424b97 | src/main/java/org/jenkinsci/plugins/p4/groovy/GetP4Task.java | src/main/java/org/jenkinsci/plugins/p4/groovy/GetP4Task.java | package org.jenkinsci.plugins.p4.groovy;
import hudson.FilePath.FileCallable;
import hudson.model.TaskListener;
import hudson.remoting.VirtualChannel;
import jenkins.security.Roles;
import org.jenkinsci.plugins.p4.workspace.Workspace;
import org.jenkinsci.remoting.RoleChecker;
import org.jenkinsci.remoting.RoleSensiti... | package org.jenkinsci.plugins.p4.groovy;
import hudson.model.TaskListener;
import jenkins.security.MasterToSlaveCallable;
import org.jenkinsci.plugins.p4.workspace.Workspace;
import java.io.Serializable;
public class GetP4Task extends MasterToSlaveCallable<P4Groovy, InterruptedException> implements Serializable {
... | Replace FileCallable and checkRoles with MasterToSlaveCallable. | Replace FileCallable and checkRoles with MasterToSlaveCallable.
| Java | bsd-2-clause | jenkinsci/p4-plugin,jenkinsci/p4-plugin,jenkinsci/p4-plugin |
e63250decf7d4252af6f47021ab5a9fca3a22559 | src/main/java/com/skelril/skree/content/mobdensity/MobDensityListener.java | src/main/java/com/skelril/skree/content/mobdensity/MobDensityListener.java | /*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package com.skelril.skree.content.mobdensity;
import com.skelril.nitro.probability.Probability;
import org.sp... | /*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package com.skelril.skree.content.mobdensity;
import org.spongepowered.api.data.key.Keys;
import org.spongepo... | Kill animals if more than 5 collide at the same time | Kill animals if more than 5 collide at the same time
| Java | mpl-2.0 | Skelril/Skree |
8eb38f27c74bcc95fc20b867a9beab90d7469f2a | src/main/java/org/apache/jackrabbit/ocm/exception/InvalidQueryException.java | src/main/java/org/apache/jackrabbit/ocm/exception/InvalidQueryException.java | /*
* $Url: $
* $Id: $
*
* Copyright 1997-2005 Day Management AG
* Barfuesserplatz 6, 4001 Basel, Switzerland
* All Rights Reserved.
*
* This software is the confidential and proprietary information of
* Day Management AG, ("Confidential Information"). You shall not
* disclose such Confidential Information and... | /*
* 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 appli... | Fix License Header (Thanks Christophe). | Fix License Header (Thanks Christophe).
git-svn-id: 2c03e0f2e02f0f2dd4186d3c621cdb4dda8971fb@572356 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | apache/jackrabbit-ocm |
eeabbe10ddd56f3f546ceee3a75b71295b4afcde | src/main/java/de/retest/recheck/configuration/ProjectConfigurationUtil.java | src/main/java/de/retest/recheck/configuration/ProjectConfigurationUtil.java | package de.retest.recheck.configuration;
import java.nio.file.Path;
public class ProjectConfigurationUtil {
private ProjectConfigurationUtil() {
}
public static Path findProjectConfigurationFolder() {
return ProjectRootFinderUtil.getProjectRoot()
.orElseThrow( () -> new RuntimeException( "Project root cou... | package de.retest.recheck.configuration;
import java.nio.file.Path;
import java.util.Optional;
public class ProjectConfigurationUtil {
private ProjectConfigurationUtil() {
}
public static Optional<Path> findProjectConfiguration() {
final Optional<Path> projectConfigurationFolder = ProjectRootFinderUtil.getPro... | Return optional instead of handling it | Return optional instead of handling it
| Java | agpl-3.0 | retest/recheck,retest/recheck |
fc6a26d9e719a609225ee9850128dd5deb70c6a0 | base/test/android/javatests/src/org/chromium/base/test/util/Restriction.java | base/test/android/javatests/src/org/chromium/base/test/util/Restriction.java | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.base.test.util;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Rete... | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.base.test.util;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Rete... | Add a test restriction type for non-low end devices. | Add a test restriction type for non-low end devices.
Renames small memory -> low end device to be consistent with our APIs.
BUG=308353
NOTRY=true
R=dtrainor@chromium.org
Review URL: https://codereview.chromium.org/52953003
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@232073 0039d316-1c4b-4281-b951-d872f2087... | Java | bsd-3-clause | crosswalk-project/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,ondra-novak/chromium.src,mohamed--abdel-maksoud/chromium.src,TheTypoMaster/chromium-crosswalk,patrickm/chromium.src,anirudhSK/chromium,fujunwei/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,patrickm/chromium.src,mohamed--abdel-maks... |
8027a289674a4d2b1b25bd85a189e4886027a12d | src/com/itmill/toolkit/tests/TestForRichTextEditor.java | src/com/itmill/toolkit/tests/TestForRichTextEditor.java | /*
@ITMillApache2LicenseForJavaFiles@
*/
package com.itmill.toolkit.tests;
import com.itmill.toolkit.data.Property.ValueChangeEvent;
import com.itmill.toolkit.data.Property.ValueChangeListener;
import com.itmill.toolkit.ui.Button;
import com.itmill.toolkit.ui.CustomComponent;
import com.itmill.toolkit.ui.Label;
imp... | /*
@ITMillApache2LicenseForJavaFiles@
*/
package com.itmill.toolkit.tests;
import com.itmill.toolkit.data.Property.ValueChangeEvent;
import com.itmill.toolkit.data.Property.ValueChangeListener;
import com.itmill.toolkit.ui.Button;
import com.itmill.toolkit.ui.CustomComponent;
import com.itmill.toolkit.ui.Label;
imp... | Test update: added toggle to edit enabled field | Test update: added toggle to edit enabled field
svn changeset:4325/svn branch:trunk
| Java | apache-2.0 | jdahlstrom/vaadin.react,sitexa/vaadin,Flamenco/vaadin,oalles/vaadin,Darsstar/framework,shahrzadmn/vaadin,kironapublic/vaadin,oalles/vaadin,carrchang/vaadin,travisfw/vaadin,mstahv/framework,peterl1084/framework,sitexa/vaadin,bmitc/vaadin,Darsstar/framework,kironapublic/vaadin,jdahlstrom/vaadin.react,peterl1084/framework... |
a19a04153f7a09d9b4be69a3f0fddd83428d701e | src/main/java/pipeline/PipelineController.java | src/main/java/pipeline/PipelineController.java | package pipeline;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
@Controller
public class PipelineController {
@RequestMapping("/pipelines")
publ... | package pipeline;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
@Controller
public class PipelineController {
@RequestMapping("/pipeline")
publi... | Change default value to PO his wishes | Change default value to PO his wishes
| Java | apache-2.0 | itmagix/itmagix-pipeline-dummy,itmagix/itmagix-pipeline-dummy,itmagix/itmagix-pipeline-dummy,itmagix/itmagix-pipeline-dummy |
dadcede56c480e6162fd90cf37f5c8bf669ad6d9 | smartsteps/dispersion/src/main/java/es/tid/smartsteps/dispersion/Config.java | smartsteps/dispersion/src/main/java/es/tid/smartsteps/dispersion/Config.java | package es.tid.smartsteps.dispersion;
import java.io.IOException;
import java.io.InputStream;
import java.util.LinkedList;
import java.util.List;
import java.util.Properties;
import org.apache.hadoop.conf.Configuration;
/**
*
* @author dmicol
*/
public abstract class Config {
public static final String DELIM... | package es.tid.smartsteps.dispersion;
import java.io.IOException;
import java.io.InputStream;
import java.util.LinkedList;
import java.util.List;
import java.util.Properties;
import org.apache.hadoop.conf.Configuration;
/**
*
* @author dmicol
*/
public abstract class Config {
public static final String DELIM... | Fix bug in round results property | Fix bug in round results property
| Java | apache-2.0 | telefonicaid/fiware-cosmos-platform,telefonicaid/fiware-cosmos-platform,telefonicaid/fiware-cosmos-platform,telefonicaid/fiware-cosmos-platform,telefonicaid/fiware-cosmos-platform |
056fb9fe70d38a86bcb3dfc3c2c71ebcdc4bafd9 | documentation/src/test/java/example/DisplayNameDemo.java | documentation/src/test/java/example/DisplayNameDemo.java | /*
* Copyright 2015-2016 the original author or authors.
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
* accompanies this distribution and is available at
*
* http://www.eclipse.org/legal/epl-v10.html
*/
packag... | /*
* Copyright 2015-2016 the original author or authors.
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
* accompanies this distribution and is available at
*
* http://www.eclipse.org/legal/epl-v10.html
*/
packag... | Include emoji and special characters in @DisplayName demo | Include emoji and special characters in @DisplayName demo
| Java | epl-1.0 | sbrannen/junit-lambda,junit-team/junit-lambda,marcphilipp/junit5,marcphilipp/junit-lambda |
7bf696c7f0dbf165cc8e0a029647358e4e847196 | src/edu/wpi/first/wpilibj/templates/subsystems/FrisbeeDumperSolenoid.java | src/edu/wpi/first/wpilibj/templates/subsystems/FrisbeeDumperSolenoid.java | package edu.wpi.first.wpilibj.templates.subsystems;
import edu.wpi.first.wpilibj.Solenoid;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.templates.commands.RunFrisbeeDumperSolenoid;
import edu.wpi.first.wpilibj.templates.variablestores.VstM;
/**
*
* @author daboross
*/
public class F... | package edu.wpi.first.wpilibj.templates.subsystems;
import edu.wpi.first.wpilibj.Solenoid;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.templates.commands.RunFrisbeeDumperSolenoid;
import edu.wpi.first.wpilibj.templates.variablestores.VstM;
/**
*
* @author daboross
*/
public class F... | Use 2 solenoids instead of 1. Also have startExpand and startRetract instead of just one. | Use 2 solenoids instead of 1. Also have startExpand and startRetract instead of just one. | Java | bsd-3-clause | FIRST-4030/2013 |
701c161fc971f4955ae6422b1f856811e3072225 | test/net/fortuna/ical4j/model/parameter/AltRepTest.java | test/net/fortuna/ical4j/model/parameter/AltRepTest.java | /*
* $Id: AltRepTest.java [23-Apr-2004]
*
* Copyright (c) 2004, Ben Fortuna All rights reserved.
*/
package net.fortuna.ical4j.model.parameter;
import java.net.URI;
import java.net.URISyntaxException;
import net.fortuna.ical4j.model.Parameter;
import net.fortuna.ical4j.model.ParameterFactoryImpl;
import junit.fr... | /*
* $Id: AltRepTest.java [23-Apr-2004]
*
* Copyright (c) 2004, Ben Fortuna All rights reserved.
*/
package net.fortuna.ical4j.model.parameter;
import java.net.URI;
import java.net.URISyntaxException;
import net.fortuna.ical4j.model.Parameter;
import net.fortuna.ical4j.model.ParameterFactoryImpl;
import junit.fr... | Update invalid URI to correctly throw exception | Update invalid URI to correctly throw exception
| Java | bsd-3-clause | benfortuna/ical4j,benfortuna/ical4j,benfortuna/ical4j |
0d28e0d7985e0b3e56a57438de8a164c4e60adb9 | okapi-core/src/main/java/org/folio/okapi/bean/Permission.java | okapi-core/src/main/java/org/folio/okapi/bean/Permission.java | /*
* Copyright (c) 2015-2017, Index Data
* All rights reserved.
* See the file LICENSE for details.
*/
package org.folio.okapi.bean;
import com.fasterxml.jackson.annotation.JsonInclude;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Permission {
private String permissionName;
private String displayNa... | package org.folio.okapi.bean;
import com.fasterxml.jackson.annotation.JsonInclude;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Permission {
private String permissionName;
private String displayName;
private String description;
private String[] subPermissions;
public Permission() {
}
public... | Remove superfluous license headers (OKAPI-109) | Remove superfluous license headers (OKAPI-109)
| Java | apache-2.0 | folio-org/okapi,folio-org/okapi |
4000bbdf3492bd46c3eda8c134b1dbec16216526 | neo4j-plugin/src/main/java/uk/ac/cdrc/mintsearch/neo4j/Neo4JProcedure.java | neo4j-plugin/src/main/java/uk/ac/cdrc/mintsearch/neo4j/Neo4JProcedure.java | package uk.ac.cdrc.mintsearch.neo4j;
/**
* Created by ucfawli on 11/10/16.
*/
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.logging.Log;
import org.neo4j.procedure.Context;
/**
* This is an example showing how you could expose Neo4j's full text indexes as
* two procedures - one for updating ind... | package uk.ac.cdrc.mintsearch.neo4j;
import org.neo4j.kernel.internal.GraphDatabaseAPI;
import org.neo4j.logging.Log;
import org.neo4j.procedure.Context;
/**
* This is an example showing how you could expose Neo4j's full text indexes as
* two procedures - one for updating indexes, and one for querying by label and
... | Use a lower level interface of neo4j graph store | Use a lower level interface of neo4j graph store
| Java | apache-2.0 | spacelis/mint-search |
01b067902d30d0b35ac5919db97cc039a6c40a73 | plume-scheduler/src/main/java/com/coreoz/plume/scheduler/SchedulerProvider.java | plume-scheduler/src/main/java/com/coreoz/plume/scheduler/SchedulerProvider.java | package com.coreoz.plume.scheduler;
import javax.inject.Inject;
import javax.inject.Provider;
import javax.inject.Singleton;
import com.coreoz.plume.services.time.TimeProvider;
import com.coreoz.wisp.Scheduler;
@Singleton
public class SchedulerProvider implements Provider<Scheduler> {
private final Scheduler sched... | package com.coreoz.plume.scheduler;
import javax.inject.Inject;
import javax.inject.Provider;
import javax.inject.Singleton;
import com.coreoz.plume.services.time.TimeProvider;
import com.coreoz.wisp.Scheduler;
import com.coreoz.wisp.SchedulerConfig;
@Singleton
public class SchedulerProvider implements Provider<Sche... | Use Wisp new Scheduler instance creation | Use Wisp new Scheduler instance creation | Java | apache-2.0 | Coreoz/Plume |
a8113c80567e2621beb4b54bf368c89b33f5d248 | demo/src/main/java/com/madisp/bad/demo/MainActivity.java | demo/src/main/java/com/madisp/bad/demo/MainActivity.java | package com.madisp.bad.demo;
import android.app.Activity;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
/**
* Created with IntelliJ IDEA.
* User: madis
* Date: 3/20/13
* Time: 8:44 AM
*/
public class M... | package com.madisp.bad.demo;
import android.app.Activity;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
/**
* Created with IntelliJ IDEA.
* User: madis
* Date: 3/20/13
* Time: 8:44 AM
*/
public class M... | Fix orientation flips for demo | Fix orientation flips for demo
| Java | mit | madisp/bad,madisp/bad |
9fee6cbbb9ca952c674e64c93c867436f09a89c7 | web/src/main/java/net/xylophones/planetoid/web/msg/LiveGameUpdateScheduler.java | web/src/main/java/net/xylophones/planetoid/web/msg/LiveGameUpdateScheduler.java | package net.xylophones.planetoid.web.msg;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import java.util.concurren... | package net.xylophones.planetoid.web.msg;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import java.util.concurren... | Speed up the game calculations a bit | Speed up the game calculations a bit
| Java | apache-2.0 | wjsrobertson/planetoid,wjsrobertson/planetoid3d,wjsrobertson/planetoid,wjsrobertson/planetoid,wjsrobertson/planetoid3d,wjsrobertson/planetoid3d |
58716ab68531794d20d9825a4e6ddd351c43ba7d | mobile/src/main/java/com/alexstyl/specialdates/contact/DeviceContactFactory.java | mobile/src/main/java/com/alexstyl/specialdates/contact/DeviceContactFactory.java | package com.alexstyl.specialdates.contact;
import android.content.ContentResolver;
import android.database.Cursor;
import android.provider.ContactsContract;
import com.alexstyl.specialdates.DisplayName;
class DeviceContactFactory {
private final ContentResolver resolver;
DeviceContactFactory(ContentResolve... | package com.alexstyl.specialdates.contact;
import android.content.ContentResolver;
import android.database.Cursor;
import android.provider.ContactsContract;
import com.alexstyl.specialdates.DisplayName;
class DeviceContactFactory {
private final ContentResolver resolver;
DeviceContactFactory(ContentResolve... | Set methods that don't use any fields as static | Set methods that don't use any fields as static
| Java | mit | alexstyl/Memento-Calendar,auricgoldfinger/Memento-Namedays,alexstyl/Memento-Calendar,alexstyl/Memento-Calendar,alexstyl/Memento-Namedays,auricgoldfinger/Memento-Namedays,alexstyl/Memento-Namedays |
5a0509ac485b7b3785ec07056125b627de911406 | 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... | Allow RedisBungee to give the console an IOException instead of a unhelpful exception + NPE combo. | Allow RedisBungee to give the console an IOException instead of a unhelpful exception + NPE combo.
| Java | unknown | minecrafter/RedisBungee,thechunknetwork/RedisBungee |
bf11df656222cf4d16f3899e463948910de0331e | Lab_1/Calculator/test/CalculatorTestPrototype.java | Lab_1/Calculator/test/CalculatorTestPrototype.java | import static org.junit.Assert.assertEquals;
import calculator.CalculatorPrototype;
import org.junit.Test;
public class CalculatorTestPrototype {
@Test
public void testSum() {
CalculatorPrototype calculator = new CalculatorPrototype();
int sum = calculator.sum(3,3);
assertEquals(6, sum... | import static org.junit.Assert.assertEquals;
import calculator.CalculatorPrototype;
import org.junit.Test;
public class CalculatorTestPrototype {
@Test(expected = ArithmeticException.class)
public void testDivisionByZero() {
CalculatorPrototype calculator = new CalculatorPrototype();
int divis... | Add several test for subtraction and multiplication | Add several test for subtraction and multiplication
| Java | mit | korut94/ase-fall-17,korut94/ase-fall-17 |
5ff801230e843041180e4c8574cf5c2204d97f77 | src/main/java/com/github/aureliano/damihilogs/config/input/InputConfigTypes.java | src/main/java/com/github/aureliano/damihilogs/config/input/InputConfigTypes.java | package com.github.aureliano.damihilogs.config.input;
public enum InputConfigTypes {
EXTERNAL_COMMAND,
FILE_INPUT,
FILE_TAILER,
STANDARD_INPUT,
URL,
JDBC_INPUT;
} | package com.github.aureliano.damihilogs.config.input;
public enum InputConfigTypes {
EXTERNAL_COMMAND,
FILE_INPUT,
FILE_TAILER,
STANDARD_INPUT,
URL,
JDBC_INPUT,
TWITTER_INPUT;
} | Add new input config type Twitter. | Add new input config type Twitter.
| Java | mit | aureliano/da-mihi-logs,aureliano/da-mihi-logs |
405a7b3c887c83cff8afcb7262f7931a7974a003 | 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 path information to the module object | Add path information to the module object
| Java | bsd-2-clause | clementval/claw-compiler,clementval/claw-compiler |
e3944e9d5052f5f3ddf2f7c21fa3487355aafc20 | core/src/test/java/com/ibm/watson/developer_cloud/service/AuthenticationTest.java | core/src/test/java/com/ibm/watson/developer_cloud/service/AuthenticationTest.java | package com.ibm.watson.developer_cloud.service;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
public class AuthenticationTest {
private static final String APIKEY = "12345";
public class TestService extends WatsonService {
private static final String SERVICE_NAME = "test";
public Te... | package com.ibm.watson.developer_cloud.service;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;
public class AuthenticationTest {
private static final String APIKEY_USERNAME = "apikey";
private static final String APIKEY = "12345";
private static fi... | Add test for ICP auth | test(auth): Add test for ICP auth
| Java | apache-2.0 | watson-developer-cloud/java-sdk,watson-developer-cloud/java-sdk,watson-developer-cloud/java-sdk,watson-developer-cloud/java-sdk |
4eabf8bdb783ab8861d6eb9be6d1fcc4945760f4 | java/src/main/java/com/thoughtworks/refactoring/replaceTempwithQuery/Product.java | java/src/main/java/com/thoughtworks/refactoring/replaceTempwithQuery/Product.java | package com.thoughtworks.refactoring.replaceTempwithQuery;
/**
* Created by xinzhang on 6/27/17.
*/
public class Product {
private String name;
private int purchasePrice;
public Product(String name) {
this.name = name;
}
public void setPurchasePrice(int purchasePrice) {
this.pur... | package com.thoughtworks.refactoring.replaceTempwithQuery;
/**
* Created by xinzhang on 6/27/17.
*/
public class Product {
private String name;
private int purchasePrice;
public Product(String name) {
this.name = name;
}
public void setPurchasePrice(int purchasePrice) {
this.pur... | Replace Temp With Query - Replace temp variable with query method. | [Xin] Replace Temp With Query - Replace temp variable with query method.
| Java | mit | hellocreep/refactoring,hellocreep/refactoring,hellocreep/refactoring,hellocreep/refactoring,hellocreep/refactoring,hellocreep/refactoring |
7796b70f999a004d8ec89048099353b0519d87eb | src/main/java/at/ac/tuwien/inso/controller/student/StudentCoursesController.java | src/main/java/at/ac/tuwien/inso/controller/student/StudentCoursesController.java | package at.ac.tuwien.inso.controller.student;
import at.ac.tuwien.inso.entity.Course;
import at.ac.tuwien.inso.service.CoursesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.*;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@Con... | package at.ac.tuwien.inso.controller.student;
import at.ac.tuwien.inso.entity.Course;
import at.ac.tuwien.inso.service.CoursesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.*;
import org.springframework.web.bind.annotation.*;
import org.springframework.we... | Add search string, filter for name | Add search string, filter for name
| Java | mit | university-information-system/uis,university-information-system/uis,university-information-system/uis,university-information-system/uis |
e0b5882f6d15acf32c51abcee8c07bd80918707d | src/main/java/com/craftminecraft/bungee/bungeeban/command/ReloadBansCommand.java | src/main/java/com/craftminecraft/bungee/bungeeban/command/ReloadBansCommand.java | package com.craftminecraft.bungee.bungeeban.command;
import com.craftminecraft.bungee.bungeeban.BanManager;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.plugin.Command;
public class ReloadBansCommand extends Command {
public ReloadBansCommand() {
super("reloadbans", "bungeeban.command.rel... | package com.craftminecraft.bungee.bungeeban.command;
import com.craftminecraft.bungee.bungeeban.BanManager;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.plugin.Command;
public class ReloadBansCommand extends Command {
public ReloadBansCommand() {
supe... | Add a message on banlist reload | Add a message on banlist reload
| Java | mit | roblabla/BungeeBan |
7ce625b8e9ba043631a3eac78880a3a18a7c4950 | src/main/java/uk/ac/edukapp/renderer/GadgetRenderer.java | src/main/java/uk/ac/edukapp/renderer/GadgetRenderer.java | package uk.ac.edukapp.renderer;
public class GadgetRenderer {
private static GadgetRenderer renderer = new GadgetRenderer();
private GadgetRenderer() {
}
public static GadgetRenderer getInstance() {
return renderer;
}
public String render(String uri, int width, int height) {
String html =... | package uk.ac.edukapp.renderer;
import uk.ac.edukapp.server.configuration.StoreConfiguration;
public class GadgetRenderer {
private static GadgetRenderer renderer = new GadgetRenderer();
private GadgetRenderer() {
}
public static GadgetRenderer getInstance() {
return renderer;
}
public Stri... | Use StoreConfiguration to determine gadget render info | Use StoreConfiguration to determine gadget render info | Java | apache-2.0 | pradeeshmp/edukapp,metaboy/edukapp,metaboy/edukapp,metaboy/edukapp,pradeeshmp/edukapp,palaniyappanBala/edukapp,palaniyappanBala/edukapp,pradeeshmp/edukapp,palaniyappanBala/edukapp |
2494a99c41abe2d33cfe79f68ad77b7f1321d5e9 | app/src/main/java/org/wikipedia/descriptions/DescriptionEditTutorialActivity.java | app/src/main/java/org/wikipedia/descriptions/DescriptionEditTutorialActivity.java | package org.wikipedia.descriptions;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import org.wikipedia.activity.SingleFragmentActi... | package org.wikipedia.descriptions;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.WindowManager;
import org.wi... | Fix status bar translucency in description editing tutorial | Fix status bar translucency in description editing tutorial
Somewhere along the line, the status bar in the description editing
tutorial lost its translucency. This puts it back.
Change-Id: Id3b1134416afd19e6f397f4a5fa84cc9b57eb89f
| Java | apache-2.0 | SAGROUP2/apps-android-wikipedia,SAGROUP2/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,SAGROUP2/apps-android-wikipedia,wikimedia/apps-android-wikipedia,dbrant/apps-android-wikipedia,SAGROUP2/apps-android-wikipedia,dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia,dbr... |
c14fbfbc20ba3845faddf97a0829ba7898373339 | src/com/algorithms/stack/ResizingArrayStackOfStrings.java | src/com/algorithms/stack/ResizingArrayStackOfStrings.java | package com.algorithms.stack;
/**
* Created by Sumit on 01-Jul-17.
*/
public class ResizingArrayStackOfStrings {
}
| package com.algorithms.stack;
public class ResizingArrayStackOfStrings {
private String[] stack;
private int N = 0;
public ResizingArrayStackOfStrings() {
stack = new String[1];
}
public boolean isEmpty() {
return (N == 0);
}
public void push(String item) {
if (... | Add resizing array implementation of stack of strings | Add resizing array implementation of stack of strings
| Java | mit | SkullTech/algorithms-princeton |
e44e7a63f54cbd7bd440eb75410edfe0b2faf6a9 | processor/src/main/java/arez/processor/ProcessorException.java | processor/src/main/java/arez/processor/ProcessorException.java | package arez.processor;
import java.util.Objects;
import javax.annotation.Nonnull;
import javax.lang.model.element.Element;
final class ProcessorException
extends RuntimeException
{
@Nonnull
private final Element _element;
ProcessorException( @Nonnull final String message, @Nonnull final Element element )
... | package arez.processor;
import java.util.Objects;
import javax.annotation.Nonnull;
import javax.lang.model.element.Element;
public final class ProcessorException
extends RuntimeException
{
@Nonnull
private final Element _element;
public ProcessorException( @Nonnull final String message, @Nonnull final Elemen... | Make class public in preparation for moving to a separate library | Make class public in preparation for moving to a separate library
| Java | apache-2.0 | realityforge/arez,realityforge/arez,realityforge/arez |
149f3b5d110b5f774f39eb8d0c35386aebd1adf8 | src/main/java/tv/mapper/roadstuff/network/BrushPacket.java | src/main/java/tv/mapper/roadstuff/network/BrushPacket.java | package tv.mapper.roadstuff.network;
import java.util.function.Supplier;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.item.ItemStack;
import net.minecraft.network.PacketBuffer;
import net.minecraftforge.fml.network.NetworkEvent;
import tv.mapper.roadstuff.item.ItemBrush;
public class Brush... | package tv.mapper.roadstuff.network;
import java.util.function.Supplier;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.network.PacketBuffer;
import net.minecraftforge.fml.network.NetworkEvent;
import tv.mapper.roadstuff.item.ItemBrush;
public class BrushPacket
{
private int pattern;
... | Fix brush settings not saved with offhand. | Fix brush settings not saved with offhand.
| Java | mit | KillerMapper/roadstuff |
094131823f13e98c20f2999850edde37f7cee5e7 | src/main/java/org/threadly/test/concurrent/TestUtils.java | src/main/java/org/threadly/test/concurrent/TestUtils.java | package org.threadly.test.concurrent;
import org.threadly.util.Clock;
/**
* <p>Generic tools to be used in unit testing.</p>
*
* @author jent - Mike Jensen
* @since 1.0.0
*/
public class TestUtils {
private TestUtils() {
// don't construct
}
/**
* Since sleeps are sometimes necessary, this makes... | package org.threadly.test.concurrent;
import org.threadly.util.Clock;
/**
* <p>Generic tools to be used in unit testing.</p>
*
* @author jent - Mike Jensen
* @since 1.0.0
*/
public class TestUtils {
private TestUtils() {
// don't construct
}
/**
* Since sleeps are sometimes necessary, this makes... | Fix for unit test regressions Because the alwaysProgressing time is based off nanoseconds, it may not have progressed forward even though the accurateTimeMillis has progressed forwrad. | Fix for unit test regressions
Because the alwaysProgressing time is based off nanoseconds, it may not have progressed forward even though the accurateTimeMillis has progressed forwrad.
| Java | mpl-2.0 | jentfoo/threadly,threadly/threadly |
f917728c7c31ad3e2c0bb5392dd5fa069ea983aa | konashi-android-sdk/src/main/java/com/uxxu/konashi/lib/action/UartModeAction.java | konashi-android-sdk/src/main/java/com/uxxu/konashi/lib/action/UartModeAction.java | package com.uxxu.konashi.lib.action;
import android.bluetooth.BluetoothGattService;
import com.uxxu.konashi.lib.KonashiUUID;
import com.uxxu.konashi.lib.KonashiUtils;
import com.uxxu.konashi.lib.store.UartStore;
import com.uxxu.konashi.lib.util.UartUtils;
import java.util.UUID;
/**
* Created by e10dokup on 2015/09... | package com.uxxu.konashi.lib.action;
import android.bluetooth.BluetoothGattService;
import com.uxxu.konashi.lib.KonashiUUID;
import com.uxxu.konashi.lib.KonashiUtils;
import com.uxxu.konashi.lib.store.UartStore;
import com.uxxu.konashi.lib.util.UartUtils;
import java.util.UUID;
/**
* Created by e10dokup on 2015/09... | Use only 1byte on setValue | Use only 1byte on setValue
| Java | apache-2.0 | YUKAI/konashi-android-sdk,kiryuxxu/konashi-android-sdk,YUKAI/konashi-android-sdk |
ad8b1dc1b2054ce794315b9ef6691aa83686c126 | beryl/src/org/beryl/intents/IntentHelper.java | beryl/src/org/beryl/intents/IntentHelper.java | package org.beryl.intents;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.webkit.MimeTypeMap;
public class IntentHelper {
public static boolean canHandleIntent(final Context context, final Intent intent) {
... | package org.beryl.intents;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.webkit.MimeTypeMap;
public class IntentHelper {
public static boolean canHandleIntent(final Context context, final Intent intent) {
... | Clear activity on pick image intents. | Clear activity on pick image intents.
| Java | mit | weimingtom/android-beryl,weimingtom/android-beryl,Letractively/android-beryl,Letractively/android-beryl |
37f6fbbb21db72859d9e021a480c96657695add0 | src/test/java/com/scaleset/geo/geojson/GeoJsonModuleTest.java | src/test/java/com/scaleset/geo/geojson/GeoJsonModuleTest.java | package com.scaleset.geo.geojson;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.GeometryFactory;
import com.vividsolu... | package com.scaleset.geo.geojson;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.scaleset.geo.Feature;
import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.Geom... | Add example of using Feature class | Add example of using Feature class
| Java | apache-2.0 | scaleset/scaleset-geo |
71d5277ae6ee97ab357c1018b2fc46dd2648c7fa | exercises/reverse-string/src/main/java/ReverseString.java | exercises/reverse-string/src/main/java/ReverseString.java | class ReverseString {
String reverse() {
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
}
} | class ReverseString {
String reverse(String stringToReverse) {
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
}
} | Change method reverse method signature to follow tests reqs | Change method reverse method signature to follow tests reqs
| Java | mit | exercism/xjava,exercism/xjava,FridaTveit/xjava,FridaTveit/xjava,jmluy/xjava,jmluy/xjava |
fe068d09aa7a27a300389d1897210f362161b82c | android/WebViewBridge/src/jp/mixi/triaina/webview/bridges/VibratorBridge.java | android/WebViewBridge/src/jp/mixi/triaina/webview/bridges/VibratorBridge.java | package jp.mixi.triaina.webview.bridges;
import com.google.inject.Inject;
import android.os.Vibrator;
import jp.mixi.triaina.commons.utils.ArrayUtils;
import jp.mixi.triaina.webview.annotation.Bridge;
import jp.mixi.triaina.webview.entity.device.VibratorVibrateParams;
public class VibratorBridge implements BridgeObj... | package jp.mixi.triaina.webview.bridges;
import com.google.inject.Inject;
import android.os.Vibrator;
import jp.mixi.triaina.commons.utils.ArrayUtils;
import jp.mixi.triaina.webview.annotation.Bridge;
import jp.mixi.triaina.webview.entity.device.VibratorVibrateParams;
public class VibratorBridge implements BridgeObj... | Fix a issue that requires a android.permission.VIBRATE | [WebViewBridge] Fix a issue that requires a android.permission.VIBRATE
https://github.com/hnakagawa/triaina/issues/2 reported by fumiz
| Java | apache-2.0 | mixi-inc/triaina,akkm/triaina,mixi-inc/triaina,akkm/triaina,vishyrich/triaina,mixi-inc/triaina,akkm/triaina,vishyrich/triaina,vishyrich/triaina,mixi-inc/triaina,mrmt/triaina,mrmt/triaina |
49e6f98781e720630bcc415b0550b756789b5656 | chrome/android/java/src/org/chromium/chrome/browser/banners/AppDetailsDelegate.java | chrome/android/java/src/org/chromium/chrome/browser/banners/AppDetailsDelegate.java | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.banners;
import org.chromium.base.VisibleForTesting;
/**
* Fetches data about the given app.
*/
public abstract cl... | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.banners;
import org.chromium.base.VisibleForTesting;
/**
* Fetches data about the given app.
*/
public abstract cl... | Add a referrer parameter to the app details fetcher. | Add a referrer parameter to the app details fetcher.
This is the first part of a three-sided patch which will allow
developers to specify a referrer in the URL of a manifest related
application. The referrer will then be added to the app details
fetch and sent to the relevant store (currently just the Play Store).
Th... | Java | bsd-3-clause | CapOM/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,ltilve/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,ltilve/ChromiumGStreamerBackend,ltilve/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,ltilve/ChromiumGStreamerBackend,ltilve... |
bbcf7b4ae02503ebca4663efaa543990e6342d09 | collectors/build/jenkins/src/main/java/com/capitalone/dashboard/model/HudsonJob.java | collectors/build/jenkins/src/main/java/com/capitalone/dashboard/model/HudsonJob.java | package com.capitalone.dashboard.model;
/**
* CollectorItem extension to store the instance, build job and build url.
*/
public class HudsonJob extends CollectorItem {
private static final String INSTANCE_URL = "instanceUrl";
private static final String JOB_NAME = "jobName";
private static final String J... | package com.capitalone.dashboard.model;
/**
* CollectorItem extension to store the instance, build job and build url.
*/
public class HudsonJob extends JobCollectorItem {
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() ... | Fix build - missed a class when refactoring | Fix build - missed a class when refactoring
| Java | apache-2.0 | wolfspyre/Hygieia,oshingc/Hygieia,oshingc/Hygieia,nireeshT/Hygieia,amitmawkin/Hygieia,Sbrenthughes/Hygieia,oshingc/Hygieia,paychex/Hygieia,pavan149679/Hygieia,wolfspyre/Hygieia,capitalone/Hygieia,pavan149679/Hygieia,satishc1/Hygieia,wolfspyre/Hygieia,tabladrum/Hygieia,pavan149679/Hygieia,nireeshT/Hygieia,tabladrum/Hygi... |
e3cb3c338c216207c15432e6fbfa1ffa86b518e5 | rxdiffutil/src/main/java/com/stolets/rxdiffutil/diffrequest/DiffRequestManager.java | rxdiffutil/src/main/java/com/stolets/rxdiffutil/diffrequest/DiffRequestManager.java | package com.stolets.rxdiffutil.diffrequest;
import android.support.annotation.NonNull;
import com.stolets.rxdiffutil.di.FragmentScope;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import static com.stolets.rxdiffutil.internal.Preconditions.checkNotNull;
/**
* Manages the diff requ... | package com.stolets.rxdiffutil.diffrequest;
import android.support.annotation.NonNull;
import com.stolets.rxdiffutil.di.FragmentScope;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import static com.stolets.rxdiffutil.internal.Preconditions.checkNotNull;
/**
* Manages the diff requ... | Remove unneeded public visibility modifier | Remove unneeded public visibility modifier
| Java | mit | storix/RxDiffUtil,storix/RxDiffUtil |
d8456d52308e6bb3edd88c78ae66f70ae9f2edb5 | androidemu/src/main/java/android/view/LayoutInflater.java | androidemu/src/main/java/android/view/LayoutInflater.java | package android.view;
import com.google.gwt.resources.client.TextResource;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;
import android.content.Context;
public class LayoutInflater {
public static LayoutInflater from(Context context) {
return new LayoutInflater();
}
p... | package android.view;
import android.content.res.Resources;
import com.google.gwt.resources.client.TextResource;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;
import android.content.Context;
public class LayoutInflater {
public static LayoutInflater from(Context context) {... | Inflate also from Layout Resource ID | Inflate also from Layout Resource ID
| Java | mit | albertoruibal/gwt_android_emu,albertoruibal/gwt_android_emu,albertoruibal/gwt_android_emu |
bc7388b32d9cb63ddc64bf68a6965092f0196240 | src/main/java/io/leangen/graphql/metadata/strategy/input/GsonFieldNamingStrategy.java | src/main/java/io/leangen/graphql/metadata/strategy/input/GsonFieldNamingStrategy.java | package io.leangen.graphql.metadata.strategy.input;
import com.google.gson.FieldNamingPolicy;
import com.google.gson.FieldNamingStrategy;
import java.lang.reflect.Field;
/**
* Created by bojan.tomic on 5/25/16.
*/
public class GsonFieldNamingStrategy implements FieldNamingStrategy {
private FieldNameGenerator... | package io.leangen.graphql.metadata.strategy.input;
import com.google.gson.FieldNamingPolicy;
import com.google.gson.FieldNamingStrategy;
import io.leangen.graphql.util.ClassUtils;
import java.lang.reflect.Field;
import java.util.Optional;
/**
* Created by bojan.tomic on 5/25/16.
*/
public class GsonFieldNamingStr... | Fix deserialization with annotated getters | Fix deserialization with annotated getters
| Java | apache-2.0 | leangen/GraphQL-SPQR |
6e46fce4d8217dcfad46fa56f9615d21b5df5b90 | dropwizard-core/src/main/java/com/yammer/dropwizard/config/ConfigurationException.java | dropwizard-core/src/main/java/com/yammer/dropwizard/config/ConfigurationException.java | package com.yammer.dropwizard.config;
import java.io.File;
/**
* An exception thrown where there is an error parsing a configuration object.
*/
public class ConfigurationException extends Exception {
private static final long serialVersionUID = 5325162099634227047L;
/**
* Creates a new {@link Configur... | package com.yammer.dropwizard.config;
import java.io.File;
/**
* An exception thrown where there is an error parsing a configuration object.
*/
public class ConfigurationException extends Exception {
private static final long serialVersionUID = 5325162099634227047L;
/**
* Creates a new {@link Configur... | Fix formatting of config errors. | Fix formatting of config errors.
| Java | apache-2.0 | wilko55/dropwizard,michelle-liang/dropwizard,biogerm/dropwizard,sridhar-newsdistill/dropwizard,ben1247/dropwizard,AnuchitPrasertsang/dropwizard,vforce/dropwizard,mtbigham/dropwizard,nicktelford/dropwizard,bbrighttaer/dropwizard,charlieg/dropwizard,philandstuff/dropwizard,mtbigham/dropwizard,ptomli/dropwizard,jplock/dro... |
360bec9ca6872979d814da6571c3dd2ab64a8f2a | java/_095UniqueBinarySearchTreesII.java | java/_095UniqueBinarySearchTreesII.java | import java.util.ArrayList;
import java.util.List;
/**
* Created by drfish on 27/05/2017.
*/
public class _095UniqueBinarySearchTreesII {
public List<TreeNode> generateTrees(int n) {
List<TreeNode> result = genTrees(1, n);
if (result.get(0) == null) {
return new ArrayList<>();
... | import java.util.ArrayList;
import java.util.List;
/**
* Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1...n.
* <p>
* For example,
* Given n = 3, your program should return all 5 unique BST's shown below.
* <p>
* 1 3 3 2 1
* \ / ... | Add description for java 95 | Add description for java 95
| Java | mit | gavinfish/leetcode-share,gavinfish/leetcode-share |
62f3d95e52da07c2f0defc2ba7fd47d1f71ea0a3 | agile-web/src/main/java/org/headsupdev/agile/web/wicket/DurationConverter.java | agile-web/src/main/java/org/headsupdev/agile/web/wicket/DurationConverter.java | /*
* HeadsUp Agile
* Copyright 2014 Heads Up Development Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later ver... | /*
* HeadsUp Agile
* Copyright 2014 Heads Up Development Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later ver... | Support a null duration worked - setRequired can be used if we need non-null - fixes issue:89 | Support a null duration worked - setRequired can be used if we need non-null - fixes issue:89
| Java | agpl-3.0 | headsupdev/agile,headsupdev/agile,headsupdev/agile,headsupdev/agile |
0012564e0256fed9cac624fd6c46de3043649884 | src/main/java/org/udg/pds/simpleapp_javaee/model/Tag.java | src/main/java/org/udg/pds/simpleapp_javaee/model/Tag.java | package org.udg.pds.simpleapp_javaee.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
@Entity
// This tells JAXB that it has to ignore getters... | package org.udg.pds.simpleapp_javaee.model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.udg.pds.simpleapp_javaee.rest.serializer.JsonDateSerializer;
import org.udg.pds.simpleapp_javaee.rest.serializer.JsonTagSerializer;
import javax.persistence.Entity;
import javax.persistence.Generated... | Add custom serializer. Add getter for description | Add custom serializer. Add getter for description
| Java | mit | neich/TODOjavaee |
c0fe8f537819c122ade00daf37ea433622be3f24 | main/java/com/slugterra/biomes/SlugterraGenLayerBiome.java | main/java/com/slugterra/biomes/SlugterraGenLayerBiome.java | package com.slugterra.biomes;
import com.slugterra.biomes.BiomeRegistry;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.layer.GenLayer;
import net.minecraft.world.gen.layer.IntCache;
public class SlugterraGenLayerBiome extends GenLayer {
protected BiomeGenBase[] allowedBiom... | package com.slugterra.biomes;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.gen.layer.GenLayer;
import net.minecraft.world.gen.layer.IntCache;
public class SlugterraGenLayerBiome extends GenLayer {
protected Biome[] allowedBiomes = {BiomeRegistry.undertowCavern, BiomeRegistry.snowdanceC... | Change allowedBiomes from BiomeGenBase[] to Biome[] | Change allowedBiomes from BiomeGenBase[] to Biome[]
| Java | mit | mpbagot/Slugterra-Mod |
00e15cecd29454fc0ef1b756cb5b6aef961ac280 | src/main/java/base/course/CourseController.java | src/main/java/base/course/CourseController.java | package base.course;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestC... | package base.course;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframew... | Add HttpStatus 404 return for courses not found | Add HttpStatus 404 return for courses not found
| Java | mit | assumption/CP-Catalog,assumption/CP-Catalog |
28a6dcb5481b348e3224182aa16d892bc3cce498 | src/main/java/bio/terra/cli/command/Status.java | src/main/java/bio/terra/cli/command/Status.java | package bio.terra.cli.command;
import bio.terra.cli.context.GlobalContext;
import bio.terra.cli.context.WorkspaceContext;
import java.nio.file.FileAlreadyExistsException;
import java.util.concurrent.Callable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import picocli.CommandLine.Command;
/** This class c... | package bio.terra.cli.command;
import bio.terra.cli.context.GlobalContext;
import bio.terra.cli.context.WorkspaceContext;
import java.nio.file.FileAlreadyExistsException;
import java.util.concurrent.Callable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import picocli.CommandLine.Command;
/** This class c... | Remove exception used for debugging. | Remove exception used for debugging.
| Java | bsd-3-clause | DataBiosphere/terra-cli,DataBiosphere/terra-cli |
5e5a79eb356ce2196d59cc956f6f09c5e102c9de | src/main/java/net/aeronica/mods/mxtune/util/NullInstrument.java | src/main/java/net/aeronica/mods/mxtune/util/NullInstrument.java | /*
* Aeronica's mxTune MOD
* Copyright {2016} Paul Boese aka Aeronica
*
* 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 r... | /*
* Aeronica's mxTune MOD
* Copyright {2016} Paul Boese aka Aeronica
*
* 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 r... | Clean up per sonarcloud and IntelliJ. | Clean up per sonarcloud and IntelliJ.
| Java | apache-2.0 | Aeronica/mxTune |
c4b863dd76bf4174e149f4ac5a8388ff59d13c6e | src/java/com/bungleton/yarrgs/parser/PositionalParser.java | src/java/com/bungleton/yarrgs/parser/PositionalParser.java | package com.bungleton.yarrgs.parser;
import java.lang.reflect.Field;
import com.bungleton.yarrgs.Positional;
public class PositionalParser extends ArgumentParser
{
public final boolean optional;
public PositionalParser (Field field)
{
super(field);
optional = field.getAnnotation(Position... | package com.bungleton.yarrgs.parser;
import java.lang.reflect.Field;
import com.bungleton.yarrgs.Positional;
public class PositionalParser extends ArgumentParser
{
public final boolean optional;
public PositionalParser (Field field)
{
super(field);
optional = field.getAnnotation(Position... | Fix detail for positional args | Fix detail for positional args
| Java | apache-2.0 | groves/yarrgs |
fbb3a154472048a41dbadc743ad997c5d46d349a | applvsdklib/src/main/java/com/applivery/applvsdklib/domain/appconfig/update/AppConfigChecker.java | applvsdklib/src/main/java/com/applivery/applvsdklib/domain/appconfig/update/AppConfigChecker.java | /*
* Copyright (c) 2016 Applivery
*
* 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 (c) 2016 Applivery
*
* 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... | Revert "Fix sdk restarted true bug" | Revert "Fix sdk restarted true bug"
This reverts commit 2a4aa086345ce960fbc1d62e03ca4e0974b317b7.
| Java | apache-2.0 | applivery/applivery-android-sdk,applivery/applivery-android-sdk |
4da9d609153817ce667ed86be27a29da434ada01 | testsuite/shared/src/main/java/org/jboss/as/test/shared/util/AssumeTestGroupUtil.java | testsuite/shared/src/main/java/org/jboss/as/test/shared/util/AssumeTestGroupUtil.java | package org.jboss.as.test.shared.util;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.function.Supplier;
import org.junit.Assume;
/**
* Helper methods which help to skip tests for feature which is not yet fully working. Put the call of the method directly into
* the ... | package org.jboss.as.test.shared.util;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.function.Supplier;
import org.junit.Assume;
/**
* Helper methods which help to skip tests for feature which is not yet fully working. Put the call of the method directly into
* the ... | Add a utility to skip tests if the security manager is enabled. | [WFLY-11556] Add a utility to skip tests if the security manager is enabled.
| Java | lgpl-2.1 | golovnin/wildfly,golovnin/wildfly,wildfly/wildfly,wildfly/wildfly,tadamski/wildfly,jstourac/wildfly,iweiss/wildfly,xasx/wildfly,wildfly/wildfly,pferraro/wildfly,pferraro/wildfly,golovnin/wildfly,jstourac/wildfly,tadamski/wildfly,rhusar/wildfly,iweiss/wildfly,pferraro/wildfly,xasx/wildfly,pferraro/wildfly,wildfly/wildfl... |
179930370aabb17284a5de081eb6db42ab3d2c54 | android/app/src/main/java/com/funnyhatsoftware/spacedock/activity/DetailsActivity.java | android/app/src/main/java/com/funnyhatsoftware/spacedock/activity/DetailsActivity.java | package com.funnyhatsoftware.spacedock.activity;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.Fragment;
import com.funnyhatsoftware.spacedock.fragment.DetailsFragment;
public class DetailsActivity extends SinglePaneActivity {
private static final String EXTRA_TYPE ... | package com.funnyhatsoftware.spacedock.activity;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.Fragment;
import com.funnyhatsoftware.spacedock.fragment.DetailsFragment;
import com.funnyhatsoftware.spacedock.holder.ExpansionHolder;
public class DetailsActivity extends Si... | Fix expansion detail display on phones | Fix expansion detail display on phones
| Java | apache-2.0 | tblackwe/spacedock,tblackwe/spacedock,spacedockapp/spacedock,spacedockapp/spacedock,spacedockapp/spacedock,spacedockapp/spacedock,tblackwe/spacedock,spacedockapp/spacedock,tblackwe/spacedock,spacedockapp/spacedock,tblackwe/spacedock,tblackwe/spacedock |
c3ac4ace17c462fc133cba9233ce064ead945792 | jctools-core/src/main/java/org/jctools/queues/PaddedCircularArrayOffsetCalculator.java | jctools-core/src/main/java/org/jctools/queues/PaddedCircularArrayOffsetCalculator.java | package org.jctools.queues;
import org.jctools.util.JvmInfo;
import org.jctools.util.UnsafeRefArrayAccess;
public final class PaddedCircularArrayOffsetCalculator {
static final int REF_BUFFER_PAD;
static final long REF_ARRAY_BASE;
static {
// 2 cache lines pad
REF_BUFFER_PAD = (JvmInfo.CAC... | package org.jctools.queues;
import org.jctools.util.InternalAPI;
import org.jctools.util.JvmInfo;
import org.jctools.util.UnsafeRefArrayAccess;
@InternalAPI
public final class PaddedCircularArrayOffsetCalculator
{
static final int REF_BUFFER_PAD;
static final long REF_ARRAY_BASE;
static
{
// ... | Format and mark as InternalAPI | Format and mark as InternalAPI
| Java | apache-2.0 | JCTools/JCTools |
34a9fdb8d76e73e2f671c25197f0424d84838938 | src/main/java/com/github/kpavlov/jreactive8583/netty/pipeline/EchoMessageListener.java | src/main/java/com/github/kpavlov/jreactive8583/netty/pipeline/EchoMessageListener.java | package com.github.kpavlov.jreactive8583.netty.pipeline;
import com.github.kpavlov.jreactive8583.IsoMessageListener;
import com.github.kpavlov.jreactive8583.iso.MessageFactory;
import com.solab.iso8583.IsoMessage;
import io.netty.channel.ChannelHandlerContext;
/**
*
*/
public class EchoMessageListener<T extends Iso... | package com.github.kpavlov.jreactive8583.netty.pipeline;
import com.github.kpavlov.jreactive8583.IsoMessageListener;
import com.github.kpavlov.jreactive8583.iso.MessageClass;
import com.github.kpavlov.jreactive8583.iso.MessageFactory;
import com.solab.iso8583.IsoMessage;
import io.netty.channel.ChannelHandlerContext;
... | Fix echo request identification and support all ISO-8583 versions | Fix echo request identification and support all ISO-8583 versions
| Java | apache-2.0 | kpavlov/jreactive-8583,kpavlov/jreactive-8583,kpavlov/jreactive-8583 |
247652f45c990d108765948d25cfa741bdc598f3 | Android/src/org/mysociety/FixMyStreet/AndroidActivity.java | Android/src/org/mysociety/FixMyStreet/AndroidActivity.java | package org.mysociety.FixMyStreet;
import android.os.Bundle;
import org.apache.cordova.*;
public class AndroidActivity extends DroidGap {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.... | package org.mysociety.FixMyStreet;
import android.os.Bundle;
import android.view.WindowManager;
import org.apache.cordova.*;
public class AndroidActivity extends DroidGap {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate... | Resolve details screen scrolling issues on Android 2 | Resolve details screen scrolling issues on Android 2
Set Android 2 to use adjustPan when the soft keyboard is visible as this
stops the details screen scrolling in such a way that the cursor is off
the top of the screen. Leave the default for other versions as then
the screen is scrollable.
Fixes #128
| Java | agpl-3.0 | FiksGataMi/fixmystreet-mobile,ciudadanointeligente/fixmystreet-mobile,ciudadanointeligente/fixmystreet-mobile,ciudadanointeligente/fixmystreet-mobile,altinukshini/fixmystreet-mobile,FiksGataMi/fixmystreet-mobile,Kagee/fixmystreet-mobile,altinukshini/fixmystreet-mobile,otmezger/fixmystreet-mobile,FiksGataMi/fixmystreet-... |
db59335091d370593abcc80b51189e9bb2c3bf1d | src/main/java/com/fewlaps/quitnowcache/QNCacheBuilder.java | src/main/java/com/fewlaps/quitnowcache/QNCacheBuilder.java | package com.fewlaps.quitnowcache;
import java.util.concurrent.TimeUnit;
public class QNCacheBuilder {
private boolean caseSensitiveKeys = true;
private Integer autoReleaseInSeconds = null;
private long defaultKeepaliveInMillis = QNCache.KEEPALIVE_FOREVER;
public QNCacheBuilder setCaseSensitiveKeys(bo... | package com.fewlaps.quitnowcache;
import java.util.concurrent.TimeUnit;
public class QNCacheBuilder {
private boolean caseSensitiveKeys = true;
private Integer autoReleaseInSeconds = null;
private long defaultKeepaliveInMillis = QNCache.KEEPALIVE_FOREVER;
public QNCacheBuilder setCaseSensitiveKeys(bo... | Replace Math.toIntExact() with a simple .intValue() 'cause toIntExact() is not abailable at Java 6 | Replace Math.toIntExact() with a simple .intValue() 'cause toIntExact() is not abailable at Java 6
| Java | mit | Fewlaps/quitnow-cache,Fewlaps/quitnow-cache |
feecf7463f639059919f7ca1f7d5c8db3c828895 | tests/src/main/java/app/android/gambit/test/CardTests.java | tests/src/main/java/app/android/gambit/test/CardTests.java | package app.android.gambit.test;
import app.android.gambit.local.Card;
public class CardTests extends DatabaseTestCase
{
private static final String DECK_TITLE = "Title";
private static final String CARD_BACK_SIDE_TEXT = "Back text";
private static final String CARD_FRONT_SIDE_TEXT = "Front text";
private Card... | package app.android.gambit.test;
import app.android.gambit.local.Card;
public class CardTests extends DatabaseTestCase
{
private static final String DECK_TITLE = "deck";
private static final String CARD_BACK_SIDE_TEXT = "back side text";
private static final String CARD_FRONT_SIDE_TEXT = "front side text";
pri... | Add id testing for card and change card text generation a bit. | Add id testing for card and change card text generation a bit.
| Java | apache-2.0 | ming13/gambit |
896dcaa7cea199f6447a2ab0d12b17e10b1d7db3 | src/test/java/guitests/LabelPickerTests.java | src/test/java/guitests/LabelPickerTests.java | package guitests;
import javafx.scene.input.KeyCode;
import org.junit.Test;
import ui.listpanel.ListPanelCell;
import static org.junit.Assert.assertEquals;
import static org.loadui.testfx.Assertions.assertNodeExists;
import static org.loadui.testfx.controls.Commons.hasText;
public class LabelPickerTests extends UITe... | package guitests;
import javafx.scene.input.KeyCode;
import org.junit.Test;
import ui.listpanel.ListPanelCell;
import static org.junit.Assert.assertEquals;
import static org.loadui.testfx.Assertions.assertNodeExists;
import static org.loadui.testfx.controls.Commons.hasText;
public class LabelPickerTests extends UITe... | Revert "Re-search for listPanelCell in addAndRemoveLabelTest" | Revert "Re-search for listPanelCell in addAndRemoveLabelTest"
This reverts commit f1e2b41afb4623ff35771d028fbd79810e80dece.
| Java | apache-2.0 | saav/HubTurbo,ianngiaw/HubTurbo,saav/HubTurbo,ianngiaw/HubTurbo,Sumei1009/HubTurbo,HyungJon/HubTurbo,Sumei1009/HubTurbo,HyungJon/HubTurbo,Honoo/HubTurbo,gaieepo/HubTurbo,Honoo/HubTurbo,gaieepo/HubTurbo |
bc856967f0d6f0f3e175ccfeb6794b9003b2ffdd | src/staticResources/WebUIResources.java | src/staticResources/WebUIResources.java | package staticResources;
import java.io.File;
import utilities.FileUtility;
public class WebUIResources extends AbstractBootstrapResource {
@Override
protected boolean correctExtension(String name) {
return true;
}
@Override
protected File getExtractingDest() {
return new File(FileUtility.joinPath("resour... | package staticResources;
import java.io.File;
import utilities.FileUtility;
public class WebUIResources extends AbstractBootstrapResource {
@Override
protected boolean correctExtension(String name) {
return true;
}
@Override
protected File getExtractingDest() {
return new File(FileUtility.joinPath("resour... | Remove extraction of static resources from bootstrap resource. | Remove extraction of static resources from bootstrap resource.
| Java | apache-2.0 | repeats/Repeat,repeats/Repeat,repeats/Repeat,repeats/Repeat |
fc000c035d209bebe36ab018f06a7578fc903255 | src/main/java/org/jtrfp/trcl/core/Feature.java | src/main/java/org/jtrfp/trcl/core/Feature.java | /*******************************************************************************
* This file is part of TERMINAL RECALL
* Copyright (c) 2015 Chuck Ritola
* Part of the jTRFP.org project
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License... | /*******************************************************************************
* This file is part of TERMINAL RECALL
* Copyright (c) 2015 Chuck Ritola
* Part of the jTRFP.org project
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License... | Remove .remove() in favor of finalize(). | Remove .remove() in favor of finalize(). | Java | epl-1.0 | jtrfp/terminal-recall,jtrfp/terminal-recall,jtrfp/terminal-recall |
d5261d069a6c8c5790a5e238afad543964d19a3d | src/test/java/seedu/tasklist/commons/util/FileUtilTest.java | src/test/java/seedu/tasklist/commons/util/FileUtilTest.java | package seedu.tasklist.commons.util;
import static org.junit.Assert.assertEquals;
import java.io.File;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
public class FileUtilTest {
@Rule
public ExpectedException thrown = ExpectedException.none();
@Test
public ... | package seedu.tasklist.commons.util;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.IOException;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
public cla... | Add test cases to improve code coverage | Add test cases to improve code coverage
| Java | mit | CS2103JAN2017-W14-B1/main,CS2103JAN2017-W14-B1/main |
2a760cd2814bbf176340a47e9ba42c7b3e6b0f4c | app/src/main/java/org/wikipedia/gallery/MediaListItem.java | app/src/main/java/org/wikipedia/gallery/MediaListItem.java | package org.wikipedia.gallery;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.gson.annotations.SerializedName;
import org.apache.commons.lang3.StringUtils;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;
@SuppressWarnings("unused")
publi... | package org.wikipedia.gallery;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.gson.annotations.SerializedName;
import org.apache.commons.lang3.StringUtils;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;
@SuppressWarnings("unused")
publi... | Use StringUtils for the default string | Use StringUtils for the default string
| Java | apache-2.0 | dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia,wikimedia/apps-android-wikipedia,dbrant/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia |
91e8d86ef9516c693bee96983ccf497c4404dfdc | app/src/main/java/com/felipecsl/elifut/util/ColorUtils.java | app/src/main/java/com/felipecsl/elifut/util/ColorUtils.java | package com.felipecsl.elifut.util;
import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Build;
import android.support.design.widget.TabLayout;
import android.support.v7.widget.Toolbar;
public final class ColorUtils {
private ColorUtils() {
}
@TargetApi(Build.VERSION_CODES.LOLLIPO... | package com.felipecsl.elifut.util;
import android.annotation.TargetApi;
import android.app.Activity;
import android.graphics.Color;
import android.os.Build;
import android.support.design.widget.TabLayout;
import android.support.v7.widget.Toolbar;
public final class ColorUtils {
private ColorUtils() {
}
@Target... | Use 10% darker color for system status bar tinting | Use 10% darker color for system status bar tinting
| Java | apache-2.0 | EliFUT/android,EliFUT/android |
054e38ffb08216634befba3f5bf6f5a3684fdfc8 | dev/plugins/hu.elte.txtuml.validation/src/hu/elte/txtuml/validation/model/ModelValidationError.java | dev/plugins/hu.elte.txtuml.validation/src/hu/elte/txtuml/validation/model/ModelValidationError.java | package hu.elte.txtuml.validation.model;
import org.eclipse.jdt.core.dom.ASTNode;
import org.eclipse.jdt.core.dom.MethodDeclaration;
import org.eclipse.jdt.core.dom.SimpleName;
import org.eclipse.jdt.core.dom.TypeDeclaration;
import hu.elte.txtuml.validation.common.AbstractValidationError;
import hu.elte.txtuml.valid... | package hu.elte.txtuml.validation.model;
import org.eclipse.jdt.core.dom.ASTNode;
import org.eclipse.jdt.core.dom.MethodDeclaration;
import org.eclipse.jdt.core.dom.SimpleName;
import org.eclipse.jdt.core.dom.TypeDeclaration;
import hu.elte.txtuml.validation.common.AbstractValidationError;
import hu.elte.txtuml.valid... | Replace class equality test with instanceof | Replace class equality test with instanceof
| Java | epl-1.0 | ELTE-Soft/txtUML,ELTE-Soft/txtUML,ELTE-Soft/txtUML,ELTE-Soft/txtUML |
740d98f87c3374495add32323393016de3b6f3a6 | src/main/java/net/tropicraft/core/client/entity/render/layer/TropiSkellyHeldItemLayer.java | src/main/java/net/tropicraft/core/client/entity/render/layer/TropiSkellyHeldItemLayer.java | package net.tropicraft.core.client.entity.render.layer;
import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.client.renderer.entity.IEntityRenderer;
import net.minecraft.client.renderer.entity.layers.HeldItemLayer;
import net.minecraft.client.renderer.entity.model.EntityModel;
import net.minecraft.c... | package net.tropicraft.core.client.entity.render.layer;
import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.client.renderer.entity.IEntityRenderer;
import net.minecraft.client.renderer.entity.layers.HeldItemLayer;
import net.minecraft.client.renderer.entity.model.EntityModel;
import net.minecraft.... | Fix tropiskellies using their spear inappropriately | Fix tropiskellies using their spear inappropriately
Gross, tropiskellies. Gross. | Java | mpl-2.0 | Tropicraft/Tropicraft,Tropicraft/Tropicraft,Tropicraft/Tropicraft |
850642022d7d95ce6496ff22c87ac75eeadab803 | src/com/zelory/kace/adressbook/data/model/AddressBook.java | src/com/zelory/kace/adressbook/data/model/AddressBook.java | package com.zelory.kace.adressbook.data.model;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import com.zelory.kace.adressbook.util.JsonParser;
import lombok.Getter;
import lombok.Setter;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;... | package com.zelory.kace.adressbook.data.model;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import com.zelory.kace.adressbook.util.JsonParser;
import lombok.Getter;
import lombok.Setter;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;... | Add method for handling add or update person | Add method for handling add or update person
| Java | apache-2.0 | zetbaitsu/Address_Book |
bbf3d7afa296f4c0a3bed25283a664304a51c0d6 | src/main/java/com/ezardlabs/dethsquare/prefabs/PrefabCreator.java | src/main/java/com/ezardlabs/dethsquare/prefabs/PrefabCreator.java | package com.ezardlabs.dethsquare.prefabs;
import com.ezardlabs.dethsquare.GameObject;
public abstract class PrefabCreator {
public abstract GameObject create();
}
| package com.ezardlabs.dethsquare.prefabs;
import com.ezardlabs.dethsquare.GameObject;
public interface PrefabCreator {
GameObject create();
}
| Change from abstract class to interface | Change from abstract class to interface
| Java | mit | 8-Bit-Warframe/Dethsquare-Engine-core |
8e25ce7b2065da6f38fe405c02708f7534b61943 | src/main/java/com/chbi/rest/UrlRewriter.java | src/main/java/com/chbi/rest/UrlRewriter.java | package com.chbi.rest;
import com.chbi.ApplicationConfiguration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
/**
* Handles the jenkins urls, appends the json api suffix and replaces url parts if necessary.
... | package com.chbi.rest;
import com.chbi.ApplicationConfiguration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
/**
* Handles the jenkins urls, appends the json api suffix and replaces url parts if necessary.
... | Fix urls with %20 instead of whitespaces | Fix urls with %20 instead of whitespaces
| Java | apache-2.0 | chris060986/jenkins-dashboard,chris060986/jenkins-dashboard |
8e4230e8012a5dbfab3aef784a9e5495a7be6fbc | src/test/java/info/u_team/u_team_test/init/TestSounds.java | src/test/java/info/u_team/u_team_test/init/TestSounds.java | package info.u_team.u_team_test.init;
import info.u_team.u_team_core.soundevent.USoundEvent;
import info.u_team.u_team_core.util.registry.BaseRegistryUtil;
import info.u_team.u_team_test.TestMod;
import net.minecraft.util.SoundEvent;
import net.minecraftforge.event.RegistryEvent.Register;
import net.minecraftforge.eve... | package info.u_team.u_team_test.init;
import info.u_team.u_team_core.soundevent.USoundEvent;
import info.u_team.u_team_test.TestMod;
import net.minecraft.util.SoundEvent;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.... | Add deferred register to test sounds | Add deferred register to test sounds | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
93fa5c92b483d23ffc661772788ad4191cecd515 | src/test/java/kamkor/covariance/CovariantArrayExample.java | src/test/java/kamkor/covariance/CovariantArrayExample.java | package kamkor.covariance;
import org.junit.Test;
public class CovariantArrayExample {
// Scala solves this by making its Arrays invariant (nonvariant)
@Test(expected = ArrayStoreException.class)
public void covariantArraysLeadToRuntimeExceptions() {
String[] c1 = { "abc" };
Object[] c2 = c1;
// OOPS! Line ... | package kamkor.covariance;
import org.junit.Test;
public class CovariantArrayExample {
// Scala solves this by making its Arrays invariant (nonvariant)
@Test(expected = ArrayStoreException.class)
public void covariantArraysLeadToRuntimeExceptions() {
String[] strings = { "abc" };
Object[] objects = strings;
... | Refactor Java covariant array example | Refactor Java covariant array example
| Java | mit | kamkor/covariance-and-contravariance-examples |
652dda8ac8d4d17409fb795661f3b6a4d0bd39e3 | src/main/java/Problem0001.java | src/main/java/Problem0001.java | import java.util.stream.IntStream;
/**
* @author David Clutter
*/
public class Problem0001 {
public static void main(final String[] args) {
System.out.println(
IntStream.range(1, 1000)
.filter(n -> n % 3 == 0 || n % 5 == 0)
.sum()
)... | import java.util.stream.IntStream;
/**
* If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these
* multiples is 23.
*
* Find the sum of all the multiples of 3 or 5 below 1000.
*
* @author David Clutter
*/
public class Problem0001 {
public static void... | Add problem text to javadoc | Add problem text to javadoc
| Java | apache-2.0 | cluttered-code/euler-project |
061ab4bc6d9026e702c781a3f783c97040897dcc | projects/OG-Util/src/test/java/com/opengamma/util/time/LocalDateRangeFudgeEncodingTest.java | projects/OG-Util/src/test/java/com/opengamma/util/time/LocalDateRangeFudgeEncodingTest.java | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.util.time;
import org.testng.annotations.Test;
import org.threeten.bp.LocalDate;
import com.opengamma.util.test.AbstractFudgeBuilderTestCase;
/**
* Test Fud... | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.util.time;
import org.testng.annotations.Test;
import org.threeten.bp.LocalDate;
import com.opengamma.util.test.AbstractFudgeBuilderTestCase;
/**
* Test Fud... | Add test for fudge serialization of LocalDate.ALL | Add test for fudge serialization of LocalDate.ALL
| Java | apache-2.0 | jerome79/OG-Platform,jeorme/OG-Platform,jerome79/OG-Platform,codeaudit/OG-Platform,jerome79/OG-Platform,ChinaQuants/OG-Platform,DevStreet/FinanceAnalytics,ChinaQuants/OG-Platform,jerome79/OG-Platform,jeorme/OG-Platform,ChinaQuants/OG-Platform,McLeodMoores/starling,McLeodMoores/starling,ChinaQuants/OG-Platform,DevStreet... |
62ae7cf530612fb65f104c805c29fe6d4491c007 | src/se/vidstige/jadb/AdbServerLauncher.java | src/se/vidstige/jadb/AdbServerLauncher.java | package se.vidstige.jadb;
import java.io.IOException;
import java.util.Map;
/**
* Launches the ADB server
*/
public class AdbServerLauncher {
private final String executable;
private Subprocess subprocess;
public AdbServerLauncher(Subprocess subprocess, Map<String, String> environment) {
this.s... | package se.vidstige.jadb;
import java.io.IOException;
import java.util.Map;
/**
* Launches the ADB server
*/
public class AdbServerLauncher {
private final String executable;
private Subprocess subprocess;
/**
* Creates a new launcher loading ADB from the environment.
*
* @param subproc... | Allow the location of the ADB binary to be specified. | Allow the location of the ADB binary to be specified.
| Java | apache-2.0 | vidstige/jadb,vidstige/jadb |
813459b1050cc15f58154556b4513a5ec46179ba | core/store/src/main/java/mil/nga/giat/geowave/core/store/query/aggregate/CountAggregation.java | core/store/src/main/java/mil/nga/giat/geowave/core/store/query/aggregate/CountAggregation.java | package mil.nga.giat.geowave.core.store.query.aggregate;
import mil.nga.giat.geowave.core.index.Persistable;
public class CountAggregation<T> implements
Aggregation<Persistable, CountResult, T>
{
private CountResult countResult = new CountResult();
public CountAggregation() {}
@Override
public String toString... | package mil.nga.giat.geowave.core.store.query.aggregate;
import mil.nga.giat.geowave.core.index.Persistable;
public class CountAggregation<T> implements
Aggregation<Persistable, CountResult, T>
{
private long count = Long.MIN_VALUE;
public CountAggregation() {}
public boolean isSet() {
return count != Long.... | Return new CountResult on getResult, and use long instead of CountResult object internally | Return new CountResult on getResult, and use long instead of CountResult
object internally | Java | apache-2.0 | ngageoint/geowave,locationtech/geowave,Becca42/geowave,chizou/geowave,spohnan/geowave,dcy2003/geowave,ngageoint/geowave,chizou/geowave,locationtech/geowave,chizou/geowave,Becca42/geowave,dcy2003/geowave,locationtech/geowave,dcy2003/geowave,Becca42/geowave,chizou/geowave,Becca42/geowave,spohnan/geowave,spohnan/geowave,d... |
2370149f121304a62eb5734e5bf163dad97b183d | sql/src/main/java/io/crate/plugin/SQLModule.java | sql/src/main/java/io/crate/plugin/SQLModule.java | /*
* Licensed to CRATE Technology GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not us... | /*
* Licensed to CRATE Technology GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not us... | Change SQLOperations to be an eager singleton | Change SQLOperations to be an eager singleton
| Java | apache-2.0 | crate/crate,crate/crate,crate/crate,EvilMcJerkface/crate,EvilMcJerkface/crate,EvilMcJerkface/crate |
48dc9269e3e393b7af96ff404a72552686eee1e9 | src/main/com/faveset/khttpserver/HttpServer.java | src/main/com/faveset/khttpserver/HttpServer.java | // Copyright 2014, Kevin Ko <kevin@faveset.com>
package com.faveset.khttpserver;
import java.io.IOException;
import com.faveset.log.OutputStreamLog;
public class HttpServer {
public static void main(String[] args) throws IOException {
if (args.length < 1) {
System.out.println("<port>");
... | // Copyright 2014, Kevin Ko <kevin@faveset.com>
package com.faveset.khttpserver;
import java.io.IOException;
import sun.misc.Signal;
import sun.misc.SignalHandler;
import com.faveset.log.OutputStreamLog;
public class HttpServer {
public static void main(String[] args) throws IOException {
if (args.lengt... | Test server maps to all interfaces. Add signal handler for cleaning up on SIGINT. | Test server maps to all interfaces.
Add signal handler for cleaning up on SIGINT.
| Java | bsd-3-clause | kevinko/mahttp,kevinko/mahttp |
3eedc74e05be7b709491f3a3b8deffdb4c57600c | src/main/java/com/balancedpayments/Callback.java | src/main/java/com/balancedpayments/Callback.java | package com.balancedpayments;
import com.balancedpayments.core.Resource;
import com.balancedpayments.core.ResourceCollection;
import com.balancedpayments.core.ResourceField;
import com.balancedpayments.core.ResourceQuery;
import com.balancedpayments.errors.HTTPError;
import java.util.Map;
public class Callback exten... | package com.balancedpayments;
import com.balancedpayments.core.Resource;
import com.balancedpayments.core.ResourceCollection;
import com.balancedpayments.core.ResourceField;
import com.balancedpayments.core.ResourceQuery;
import com.balancedpayments.errors.HTTPError;
import java.util.Map;
public class Callback exten... | Remove mutability of callback revision | Remove mutability of callback revision
| Java | mit | balanced/balanced-java |
41f74597752b259f7abf24b766e9b66b0d8449d0 | genomics/sparkcaller/src/main/java/com/github/sparkcaller/preprocessing/BamIndexer.java | genomics/sparkcaller/src/main/java/com/github/sparkcaller/preprocessing/BamIndexer.java | package com.github.sparkcaller.preprocessing;
import htsjdk.samtools.BAMIndexer;
import htsjdk.samtools.SamReader;
import htsjdk.samtools.SamReaderFactory;
import org.apache.spark.api.java.function.Function;
import java.io.File;
public class BamIndexer implements Function<File, File> {
// Create an index (.bai) ... | package com.github.sparkcaller.preprocessing;
import htsjdk.samtools.BAMIndexer;
import htsjdk.samtools.SamReader;
import htsjdk.samtools.SamReaderFactory;
import org.apache.spark.api.java.function.Function;
import org.apache.spark.api.java.function.Function2;
import java.io.File;
public class BamIndexer implements ... | Make it easier to run the SAM indexer on a single file. | [Genomics]: Make it easier to run the SAM indexer on a single file.
| Java | mit | UNINETT/daas-apps,UNINETT/daas-apps |
aad9653d4626ebd295b76c1fa79217cf8f139c25 | src/main/java/at/ac/tuwien/inso/repository/LecturerRepository.java | src/main/java/at/ac/tuwien/inso/repository/LecturerRepository.java | package at.ac.tuwien.inso.repository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
import at.ac.tuwien.inso.entity.Lecturer;
public interface LecturerRepository extends CrudRepository<Lecturer, Long> {
@Query("select l f... | package at.ac.tuwien.inso.repository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
import at.ac.tuwien.inso.entity.Lecturer;
public interface LecturerRepository extends CrudRepository<Lecturer, Long> {
@Query("select l f... | Replace findAll with complicated search operation | Replace findAll with complicated search operation
| Java | mit | university-information-system/uis,university-information-system/uis,university-information-system/uis,university-information-system/uis |
a293107f6430eb6e51f7a48880f6854bd7bb12cf | src/main/java/com/github/aureliano/achmed/resources/IResource.java | src/main/java/com/github/aureliano/achmed/resources/IResource.java | package com.github.aureliano.achmed.resources;
import com.github.aureliano.achmed.resources.properties.IResourceProperties;
public interface IResource {
public abstract void apply(IResourceProperties properties);
public abstract ResourceType type();
} | package com.github.aureliano.achmed.resources;
import com.github.aureliano.achmed.resources.properties.IResourceProperties;
public interface IResource {
public abstract void apply(IResourceProperties properties);
public abstract ResourceType type();
public abstract IResourceProperties getProperties();
} | Add method to get properties from resource. | Add method to get properties from resource.
| Java | mit | aureliano/achmed |
99253790c7b995e1f17e90e0bed3452f7468920d | src/main/java/i5/las2peer/persistency/XmlAble.java | src/main/java/i5/las2peer/persistency/XmlAble.java | package i5.las2peer.persistency;
/**
* The old XmlAble interface enforced an setStateFromXmlMethod.
*
* Due to several problems I decided to remove this method and leave the <i>deserialization</i>
* in the hand of the programmer.
*
* If standard methods are to be used, the programmer of an XmlAble class sho... | package i5.las2peer.persistency;
/**
* The old XmlAble interface enforced an setStateFromXmlMethod.
*
* Due to several problems I decided to remove this method and leave the <i>deserialization</i>
* in the hand of the programmer.
*
* If standard methods are to be used, the programmer of an XmlAble class sho... | Comment was just not true anymore | Comment was just not true anymore
[ci skip] | Java | bsd-3-clause | rwth-acis/LAS2peer,rwth-acis/LAS2peer |
592d7223f28ff5b01e8538317f39c156c3ae9a97 | src/main/java/ljfa/tntutils/gui/TntuConfigGui.java | src/main/java/ljfa/tntutils/gui/TntuConfigGui.java | package ljfa.tntutils.gui;
import java.util.ArrayList;
import java.util.List;
import ljfa.tntutils.Config;
import ljfa.tntutils.Reference;
import net.minecraft.client.gui.GuiScreen;
import net.minecraftforge.common.config.ConfigCategory;
import net.minecraftforge.common.config.ConfigElement;
import cpw.mods.fml.clien... | package ljfa.tntutils.gui;
import java.util.ArrayList;
import java.util.List;
import ljfa.tntutils.Config;
import ljfa.tntutils.Reference;
import net.minecraft.client.gui.GuiScreen;
import net.minecraftforge.common.config.ConfigCategory;
import net.minecraftforge.common.config.ConfigElement;
import cpw.mods.fml.clien... | Make Config GUIs easier to work with | Make Config GUIs easier to work with
| Java | mit | ljfa-ag/TNTUtils |
ea1dc958b7b8ae4662b7cc4f6ca15598ee21058c | src/main/java/org/jboss/loom/utils/el/ELUtils.java | src/main/java/org/jboss/loom/utils/el/ELUtils.java | package org.jboss.loom.utils.el;
import java.lang.reflect.Field;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* @author Ondrej Zizka, ozizka at redhat.com
*/
public class ELUtils {
private static final Logger log = LoggerFactory.getLogger( ELUtils.class );
public static void evaluateO... | package org.jboss.loom.utils.el;
import java.lang.reflect.Field;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* @author Ondrej Zizka, ozizka at redhat.com
*/
public class ELUtils {
private static final Logger log = LoggerFactory.getLogger( ELUtils.class );
public static void evaluateO... | Fix NPE if property with @EL is null. | Fix NPE if property with @EL is null. | Java | apache-2.0 | OndraZizka/jboss-migration,OndraZizka/jboss-migration,OndraZizka/jboss-migration |
715e59c6078d69f6b5e1f4f19125b81e535586c4 | dataprep-backend-common/src/main/java/org/talend/dataprep/exception/TDPExceptionController.java | dataprep-backend-common/src/main/java/org/talend/dataprep/exception/TDPExceptionController.java | package org.talend.dataprep.exception;
import java.io.StringWriter;
import javax.servlet.http.HttpServletResponse;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.ControllerAdvice;
impor... | package org.talend.dataprep.exception;
import java.io.StringWriter;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.spri... | Use @ResponseBody to write exception message. | Use @ResponseBody to write exception message.
| Java | apache-2.0 | Talend/data-prep,Talend/data-prep,Talend/data-prep |
5c8fea1c301c425835b8d12033e25697fa840e5d | src/java/fault/metrics/ActionMetrics.java | src/java/fault/metrics/ActionMetrics.java | package fault.metrics;
import fault.Status;
/**
* Created by timbrooks on 11/20/14.
*/
public interface ActionMetrics {
int getFailuresForTimePeriod(int milliseconds);
void reportActionResult(Status status);
int getSuccessesForTimePeriod(int milliseconds);
int getErrorsForTimePeriod(int milliseco... | package fault.metrics;
import fault.Status;
/**
* Created by timbrooks on 11/20/14.
*/
public interface ActionMetrics {
public void reportActionResult(Status status);
public int getFailuresForTimePeriod(int milliseconds);
public int getSuccessesForTimePeriod(int milliseconds);
public int getError... | Modify interface to have public methods | Modify interface to have public methods
| Java | apache-2.0 | tbrooks8/Beehive |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.