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 |
|---|---|---|---|---|---|---|---|---|---|
686ea7bb7b5efe5efd8203ae9a0eb144e5f874c5 | Bindings/Java/tests/TestXsensDataReader.java | Bindings/Java/tests/TestXsensDataReader.java | import java.io.File;
import org.opensim.modeling.*;
class TestXsensDataReader {
public static void test_XsensDataReader() {
XsensDataReaderSettings settings = new XsensDataReaderSettings();
ExperimentalSensor nextSensor = new ExperimentalSensor("000_00B421AF", "shank");
settings.append_Exp... | import java.io.File;
import org.opensim.modeling.*;
class TestXsensDataReader {
public static void test_XsensDataReader() {
// Test creation and population of XsensDataReaderSettings object
XsensDataReaderSettings settings = new XsensDataReaderSettings();
ExperimentalSensor nextSensor = ... | Add comments to Java test case to explain what's being tested and why | Add comments to Java test case to explain what's being tested and why
| Java | apache-2.0 | opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core |
fa14a5bdf5594f2361b97407b61101e78163d06a | highlite/src/test/java/com/jeppeman/highlite/test/table/TestTable.java | highlite/src/test/java/com/jeppeman/highlite/test/table/TestTable.java | package com.jeppeman.highlite.test.table;
import com.jeppeman.highlite.PrimaryKey;
import com.jeppeman.highlite.SQLiteColumn;
import com.jeppeman.highlite.SQLiteRelationship;
import com.jeppeman.highlite.SQLiteTable;
import java.util.Date;
import java.util.List;
/**
* @author jesper
*/
@SQLiteTable(database = Test... | package com.jeppeman.highlite.test.table;
import com.jeppeman.highlite.PrimaryKey;
import com.jeppeman.highlite.SQLiteColumn;
import com.jeppeman.highlite.SQLiteRelationship;
import com.jeppeman.highlite.SQLiteTable;
import java.util.Date;
import java.util.List;
/**
* @author jesper
*/
@SQLiteTable(database = Test... | Add multiple relationships to test classes | Add multiple relationships to test classes
| Java | apache-2.0 | jeppeman/LiteOmatic,jeppeman/HighLite |
3b9062442520994c3aba8933e39db94a09a5abd4 | src/test/java/com/adaptionsoft/games/uglytrivia/CurrentPlayerTest.java | src/test/java/com/adaptionsoft/games/uglytrivia/CurrentPlayerTest.java | package com.adaptionsoft.games.uglytrivia;
import org.junit.Before;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.mockito.Mockito.mock;
public class CurrentPlayerTest {
public static final String PLAYER_ONE = "Thomas";
pu... | package com.adaptionsoft.games.uglytrivia;
import org.junit.Before;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.mockito.Mockito.mock;
public class CurrentPlayerTest {
private static final String PLAYER_ONE = "Thomas";
p... | Reduce visibility (as proposed by inspection). | Reduce visibility (as proposed by inspection).
| Java | bsd-3-clause | codecop/ugly-trivia-kata |
c813e642f45e9b8c7883cb371fe0aa911917b527 | app/templates/src/main/java/package/security/_AuthoritiesConstants.java | app/templates/src/main/java/package/security/_AuthoritiesConstants.java | package <%=packageName%>.security;
/**
* Constants for Spring Security authorities.
*/
public final class AuthoritiesConstants {
private AuthoritiesConstants() {
}
public static final String ADMIN = "ROLE_ADMIN";
public static final String USER = "ROLE_USER";
public static final String ANONYM... | package <%=packageName%>.security;
/**
* Constants for Spring Security authorities.
*/
public final class AuthoritiesConstants {
public static final String ADMIN = "ROLE_ADMIN";
public static final String USER = "ROLE_USER";
public static final String ANONYMOUS = "ROLE_ANONYMOUS";
private Authori... | Move constructor after the public fields | Move constructor after the public fields
| Java | apache-2.0 | ziogiugno/generator-jhipster,cbornet/generator-jhipster,ziogiugno/generator-jhipster,hdurix/generator-jhipster,cbornet/generator-jhipster,sohibegit/generator-jhipster,dynamicguy/generator-jhipster,PierreBesson/generator-jhipster,ramzimaalej/generator-jhipster,robertmilowski/generator-jhipster,pascalgrimaud/generator-jh... |
8a3e5cc5c7ba7fc4fbc596efa88f80b93942b3c4 | src/org/nwapw/abacus/number/Function.java | src/org/nwapw/abacus/number/Function.java | package org.nwapw.abacus.number;
public abstract class Function {
public int arity;
protected abstract Number applyInternal(Number...params);
public Number apply(Number...params) throws IllegalArgumentException {
if(params.length != arity)
throw new IllegalArgumentException("Invalid ... | package org.nwapw.abacus.number;
public abstract class Function {
protected abstract boolean matchesParams(Number[] params);
protected abstract Number applyInternal(Number[] params);
public Number apply(Number...params) {
if(!matchesParams(params)) return null;
return applyInternal(params... | Change function to return null on error, and change arity checks. | Change function to return null on error, and change arity checks.
| Java | mit | DanilaFe/abacus,DanilaFe/abacus |
7ca9a8143fd497a621faeb26efd83d06297ced4b | tools/tool-base/src/main/java/io/spine/code/gen/java/EmptyPrivateCtor.java | tools/tool-base/src/main/java/io/spine/code/gen/java/EmptyPrivateCtor.java | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | Add Javadoc to the generated private c-tor | Add Javadoc to the generated private c-tor
| Java | apache-2.0 | SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base |
f87926eb4890491ee5f73544a0f65c758d69c39e | app/src/main/java/pl/mbaleczny/instalike/dagger/domain/DomainComponent.java | app/src/main/java/pl/mbaleczny/instalike/dagger/domain/DomainComponent.java | package pl.mbaleczny.instalike.dagger.domain;
import dagger.Component;
import pl.mbaleczny.instalike.dagger.app.AppComponent;
import pl.mbaleczny.instalike.dagger.scope.DomainScope;
import pl.mbaleczny.instalike.util.scheduler.BaseSchedulerProvider;
@DomainScope
@Component(dependencies = AppComponent.class, modules =... | package pl.mbaleczny.instalike.dagger.domain;
import dagger.Component;
import pl.mbaleczny.instalike.dagger.app.AppComponent;
import pl.mbaleczny.instalike.dagger.scope.DomainScope;
import pl.mbaleczny.instalike.domain.DataSource;
@DomainScope
@Component(dependencies = AppComponent.class, modules = DomainModule.class... | Swap scheduler method with dataSource | Swap scheduler method with dataSource
| Java | apache-2.0 | mbaleczny/instalike |
67cd953f22cb63f85986d5c12e21f9992f9a6610 | app/src/main/java/br/com/nossolixo/nossolixo/services/PlaceService.java | app/src/main/java/br/com/nossolixo/nossolixo/services/PlaceService.java | package br.com.nossolixo.nossolixo.services;
import java.util.List;
import br.com.nossolixo.nossolixo.models.Place;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface PlaceService {
@GET("places")
Call<List<Place>> listPlaces();
@GET("places")
Call<List<P... | package br.com.nossolixo.nossolixo.services;
import java.util.List;
import br.com.nossolixo.nossolixo.models.Place;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
public interface PlaceService {
@GET("places")
Call<List<Place>> listPlaces();
@G... | Add method to find a place | Add method to find a place
| Java | mit | NossoLixo/nossolixo-android |
db3bdb5b0bd9d5b1f9d45b6430aeeca44ce3cf54 | meta.nabl2.java/src/main/java/org/metaborg/meta/nabl2/solver/Fresh.java | meta.nabl2.java/src/main/java/org/metaborg/meta/nabl2/solver/Fresh.java | package org.metaborg.meta.nabl2.solver;
import java.io.Serializable;
import java.util.Map;
import com.google.common.collect.Maps;
public class Fresh implements Serializable {
private static final long serialVersionUID = 42L;
private final Map<String,Integer> counters;
public Fresh() {
counters... | package org.metaborg.meta.nabl2.solver;
import java.io.Serializable;
import java.util.Map;
import com.google.common.collect.Maps;
public class Fresh implements Serializable {
private static final long serialVersionUID = 42L;
private final Map<String,Integer> counters;
public Fresh() {
counters... | Remove trailing numbers from base. | Remove trailing numbers from base.
| Java | apache-2.0 | metaborg/nabl,metaborg/nabl,metaborg/nabl |
e8160551cdfd4e220fb1fcf31af46fe01a587642 | google-cloud-core/src/main/java/com/google/gcloud/BaseServiceException.java | google-cloud-core/src/main/java/com/google/gcloud/BaseServiceException.java | /*
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | /*
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | Rename enum, fix docs, and make accessors package private | Rename enum, fix docs, and make accessors package private
| Java | apache-2.0 | googleapis/java-core,googleapis/java-core,googleapis/java-core |
a166b2b39750565556dca9655d9dc1b1a1bda394 | home-server-backend/src/main/java/nl/homeserver/energie/VerbruikKosten.java | home-server-backend/src/main/java/nl/homeserver/energie/VerbruikKosten.java | package nl.homeserver.energie;
import static java.math.RoundingMode.HALF_UP;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
public class VerbruikKosten {
private static final int KOSTEN_SCALE = 3;
@Getter
private final BigDecimal verb... | package nl.homeserver.energie;
import static java.math.RoundingMode.HALF_UP;
import java.math.BigDecimal;
import javax.annotation.Nullable;
import lombok.Getter;
class VerbruikKosten {
private static final int KOSTEN_SCALE = 3;
@Getter
private final BigDecimal verbruik;
private final BigDecimal ... | Fix issues found by SonarCloud | Fix issues found by SonarCloud
| Java | apache-2.0 | bassages/home-server,bassages/homecontrol,bassages/homecontrol,bassages/home-server |
38b709665f9f0cf91e4cda03db5fecc1fb15b275 | src/test/java/com/spotify/jni/ClassWrapperTest.java | src/test/java/com/spotify/jni/ClassWrapperTest.java | package com.spotify.jni;
public class ClassWrapperTest {
static {
System.loadLibrary("JniHelpersTest");
}
}
| package com.spotify.jni;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class ClassWrapperTest {
static {
System.loadLibrary("JniHelpersTest");
}
static final double TEST_FLOAT_TOLERANCE = 0.01;
@Test
native public void createClassWrapper() throws Exception;
... | Add test cases for ClassWrapper | Add test cases for ClassWrapper
| Java | apache-2.0 | spotify/JniHelpers,spotify/JniHelpers,spotify/JniHelpers,spotify/JniHelpers |
16fca2f4c183787ace620f30856ef544155e0842 | src/main/java/com/johnstarich/ee461l/RootServlet.java | src/main/java/com/johnstarich/ee461l/RootServlet.java | package com.johnstarich.ee461l;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* Handles all requests sent to the root ("/") of this server.
* Created by johnst... | package com.johnstarich.ee461l;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* Handles all requests sent to the root ("/") of this server.
* Created by johnst... | Add print statement for request URL | Add print statement for request URL
| Java | apache-2.0 | JohnStarich/ee461l,JohnStarich/ee461l,JohnStarich/ee461l |
6108ec5c8790a2cf5244b1c8e707474cd142c05d | src/main/java/org/hildan/fx/components/ValidatingTextFieldListCell.java | src/main/java/org/hildan/fx/components/ValidatingTextFieldListCell.java | package org.hildan.fx.components;
import java.util.function.Predicate;
import javafx.scene.control.cell.TextFieldListCell;
import javafx.util.StringConverter;
import org.hildan.fxlog.themes.Css;
public class ValidatingTextFieldListCell<T> extends TextFieldListCell<T> {
private final Predicate<String> validator... | package org.hildan.fx.components;
import java.util.function.Predicate;
import javafx.scene.control.*;
import javafx.scene.control.cell.TextFieldListCell;
import javafx.util.StringConverter;
import org.hildan.fxlog.themes.Css;
public class ValidatingTextFieldListCell<T> extends TextFieldListCell<T> {
private fi... | Fix ValidatedTextFieldListCell to use the actual edited text | Fix ValidatedTextFieldListCell to use the actual edited text
| Java | mit | joffrey-bion/fx-log |
2d50f5ca095c44a39cfce946dcee178e66e299c6 | service-admin/src/main/java/org/oskari/admin/model/MapLayerAdminOutput.java | service-admin/src/main/java/org/oskari/admin/model/MapLayerAdminOutput.java | package org.oskari.admin.model;
import java.util.Map;
/**
* Used as ouput data model for layers in the admin UI.
*/
public class MapLayerAdminOutput extends MapLayer {
private Map<String, Object> capabilities;
public Map<String, Object> getCapabilities() {
return capabilities;
}
public vo... | package org.oskari.admin.model;
import java.util.Map;
/**
* Used as ouput data model for layers in the admin UI.
*/
public class MapLayerAdminOutput extends MapLayer {
private String warn;
private Map<String, Object> capabilities;
public Map<String, Object> getCapabilities() {
return capabilit... | Add placeholder for possible warning for frontend | Add placeholder for possible warning for frontend
| Java | mit | nls-oskari/oskari-server,nls-oskari/oskari-server,nls-oskari/oskari-server |
3bd0b1099eadbc3a983a89f1762a42629af48257 | src/test/java/com/jakewharton/trakt/BaseTestCase.java | src/test/java/com/jakewharton/trakt/BaseTestCase.java | package com.jakewharton.trakt;
import junit.framework.TestCase;
public abstract class BaseTestCase extends TestCase {
private final ServiceManager manager = new ServiceManager();
@Override
public void setUp() {
manager.setApiKey("de8bc5e9866c77d655310bb0c8ab9a83");
}
protected final ServiceManager getManag... | package com.jakewharton.trakt;
import junit.framework.TestCase;
public abstract class BaseTestCase extends TestCase {
private final ServiceManager manager = new ServiceManager();
@Override
public void setUp() {
manager.setApiKey("de8bc5e9866c77d655310bb0c8ab9a83");
manager.setAuthentication("trakt-java", "e0... | Add authentication for our test user. | Add authentication for our test user.
| Java | apache-2.0 | UweTrottmann/trakt-java |
cacfb3128c212fdd18c27daba3d6c39c6e6f9aab | name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/TradesWidget.java | name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/TradesWidget.java | package name.abuchen.portfolio.ui.views.dashboard;
import java.util.List;
import com.ibm.icu.text.MessageFormat;
import name.abuchen.portfolio.model.Dashboard.Widget;
import name.abuchen.portfolio.snapshot.trades.Trade;
import name.abuchen.portfolio.ui.views.trades.TradeDetailsView;
import name.abuchen.portfolio.uti... | package name.abuchen.portfolio.ui.views.dashboard;
import java.util.List;
import com.ibm.icu.text.MessageFormat;
import name.abuchen.portfolio.model.Dashboard.Widget;
import name.abuchen.portfolio.snapshot.trades.Trade;
import name.abuchen.portfolio.ui.views.trades.TradeDetailsView;
import name.abuchen.portfolio.uti... | Fix Trades Widget to count by isPositive rather than IRR | Fix Trades Widget to count by isPositive rather than IRR | Java | epl-1.0 | sebasbaumh/portfolio,sebasbaumh/portfolio,sebasbaumh/portfolio,buchen/portfolio,buchen/portfolio,buchen/portfolio,buchen/portfolio,sebasbaumh/portfolio |
0cbcb4e24b5603c5fa6a409a78d430a0156471a4 | examples/java-calculator/src/test/java/cucumber/examples/java/calculator/RunCukesTest.java | examples/java-calculator/src/test/java/cucumber/examples/java/calculator/RunCukesTest.java | package cucumber.examples.java.calculator;
import cucumber.api.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
public class RunCukesTest {
}
| package cucumber.examples.java.calculator;
import cucumber.api.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@Cucumber.Options(format = "json:target/cucumber-report.json")
public class RunCukesTest {
}
| Enable JSON formater for a little bit of regression testing | Enable JSON formater for a little bit of regression testing
| Java | mit | demos74dx/cucumber-jvm,dkowis/cucumber-jvm,ushkinaz/cucumber-jvm,goushijie/cucumber-jvm,PeterDG/cucumberPro,bartkeizer/cucumber-jvm,VivaceVivo/cucumber-mod-DI,danielwegener/cucumber-jvm,goushijie/cucumber-jvm,sventorben/cucumber-jvm,ArishArbab/cucumber-jvm,joansmith/cucumber-jvm,cucumber/cucumber-jvm,demos74dx/cucumber... |
8f9acc3a176810b8c9aa26d8158c33b86ad43431 | samples/snippets/src/main/java/com/example/storage/QuickstartSample.java | samples/snippets/src/main/java/com/example/storage/QuickstartSample.java | /*
Copyright 2016, Google, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | /*
Copyright 2016, Google, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | Add system tests to Translate sample. | Add system tests to Translate sample.
| Java | apache-2.0 | googleapis/java-storage,googleapis/java-storage,googleapis/java-storage |
17449ebde702c82594b0d592047ae7c684f14fc9 | java_tests/org/gem/log/AMQPAppenderTest.java | java_tests/org/gem/log/AMQPAppenderTest.java | package org.gem.log;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;
import org.apache.log4j.PatternLayout;
import org.junit.Test;
import static org.junit.Assert.assertThat;
import static org.junit.matchers.JUnitMatchers.*;
import static org.hamcrest.CoreMatchers.*;
public class AMQPApp... | package org.gem.log;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;
import org.apache.log4j.PatternLayout;
import org.junit.Test;
import static org.junit.Assert.assertThat;
import static org.junit.matchers.JUnitMatchers.*;
import static org.hamcrest.CoreMatchers.*;
public class AMQPApp... | Test that .info() and .warn() set the correct event type. | Test that .info() and .warn() set the correct event type.
| Java | agpl-3.0 | gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine |
2e0ce2eed7e2713f7c479f724f453adcd88ee226 | tests-arquillian/src/test/java/org/jboss/weld/tests/ejb/EJBCallTest.java | tests-arquillian/src/test/java/org/jboss/weld/tests/ejb/EJBCallTest.java | package org.jboss.weld.tests.ejb;
import javax.ejb.Stateless;
import javax.inject.Inject;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.ArchivePaths;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.a... | package org.jboss.weld.tests.ejb;
import javax.ejb.Stateless;
import javax.inject.Inject;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.ArchivePaths;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.a... | Exclude the test for WELD-1086 temporarily | Exclude the test for WELD-1086 temporarily
| Java | apache-2.0 | manovotn/core,antoinesd/weld-core,antoinesd/weld-core,weld/core,weld/core,antoinesd/weld-core,manovotn/core,manovotn/core |
5d49629cd1c6e83f3e7559faa5820d01d13e458b | SingularityService/src/main/java/com/hubspot/singularity/data/UserManager.java | SingularityService/src/main/java/com/hubspot/singularity/data/UserManager.java | package com.hubspot.singularity.data;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.utils.ZKPaths;
import com.codahale.metrics.MetricRegistry;
import com.google.common.base.Optional;
import com.google.inject.Inject;
import com.hubspot.singularity.SingularityUserSettings;
import com.h... | package com.hubspot.singularity.data;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.utils.ZKPaths;
import com.codahale.metrics.MetricRegistry;
import com.google.common.base.Optional;
import com.google.inject.Inject;
import com.hubspot.singularity.SingularityUserSettings;
import com.h... | Reorder UserSettings ZK methods more sensibly | Reorder UserSettings ZK methods more sensibly
| Java | apache-2.0 | andrhamm/Singularity,HubSpot/Singularity,andrhamm/Singularity,hs-jenkins-bot/Singularity,HubSpot/Singularity,HubSpot/Singularity,hs-jenkins-bot/Singularity,HubSpot/Singularity,andrhamm/Singularity,andrhamm/Singularity,andrhamm/Singularity,HubSpot/Singularity,hs-jenkins-bot/Singularity,hs-jenkins-bot/Singularity,hs-jenk... |
f288b3ead236dab2cd8bcad9ce9931f2e4b61e02 | app/src/main/java/org/wikipedia/feed/aggregated/AggregatedFeedContent.java | app/src/main/java/org/wikipedia/feed/aggregated/AggregatedFeedContent.java | package org.wikipedia.feed.aggregated;
import android.support.annotation.NonNull;
import org.wikipedia.feed.model.CardPageItem;
import org.wikipedia.feed.mostread.MostReadArticles;
public class AggregatedFeedContent {
@SuppressWarnings("NullableProblems") @NonNull private CardPageItem tfa;
@SuppressWarnings(... | package org.wikipedia.feed.aggregated;
import android.support.annotation.NonNull;
import org.wikipedia.feed.model.CardPageItem;
public class AggregatedFeedContent {
@SuppressWarnings("NullableProblems") @NonNull private CardPageItem tfa;
@SuppressWarnings("NullableProblems") @NonNull private CardPageItem ran... | Remove most-read field from aggregated content model | Remove most-read field from aggregated content model
This is unused, since we get most-read results from MostReadClient.
We can put it back in if and when we move to using the most-read results
from the aggregated response.
Change-Id: I0f31d1b9a6dd772f9c997ae17bfa18dfdbd8c310
| Java | apache-2.0 | SAGROUP2/apps-android-wikipedia,wikimedia/apps-android-wikipedia,SAGROUP2/apps-android-wikipedia,anirudh24seven/apps-android-wikipedia,wikimedia/apps-android-wikipedia,SAGROUP2/apps-android-wikipedia,dbrant/apps-android-wikipedia,wikimedia/apps-android-wikipedia,anirudh24seven/apps-android-wikipedia,dbrant/apps-android... |
fe47b8ec0b8f5d63b9e45807fa234b6572f5de33 | src/test/java/pt/fccn/saw/selenium/RetryRule.java | src/test/java/pt/fccn/saw/selenium/RetryRule.java | package pt.fccn.saw.selenium;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runners.model.Statement;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Created by mehmetgerceker on 12/7/15.
*/
public class RetryRule implements TestRule {
private AtomicInteger retr... | package pt.fccn.saw.selenium;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runners.model.Statement;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Created by mehmetgerceker on 12/7/15.
*/
public class RetryRule implements TestRule {
private AtomicInteger retr... | Fix NPE on retry rule. | Fix NPE on retry rule.
| Java | apache-2.0 | arquivo/functional-tests,arquivo/functional-tests |
661c231e0c39b75effa4de017dddb2f70e0c4470 | sample/src/main/java/com/github/pedrovgs/sample/DraggablePanelApplication.java | sample/src/main/java/com/github/pedrovgs/sample/DraggablePanelApplication.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 javadoc to DraggablePanel application class | Add javadoc to DraggablePanel application class
| Java | apache-2.0 | murat8505/DraggablePanel,dfodor/DraggablePanel,ppamorim/DraggablePanel,tjose0101/Draggable-ui,frakc/DraggablePanel,pedrovgs/DraggablePanel,Fiddl3/DraggablePanel,qiwx2012/DraggablePanel,Thornith/DraggablePanel,MaTriXy/DraggablePanel,FreeDao/DraggablePanel,SPBTV/DraggablePanel,hmit/DraggablePanel,hoangsondev/DraggablePan... |
81644640743babe152bc9eb7c4bd80e8fee41d0d | src/main/java/info/u_team/u_team_core/util/registry/BlockDeferredRegister.java | src/main/java/info/u_team/u_team_core/util/registry/BlockDeferredRegister.java | package info.u_team.u_team_core.util.registry;
import java.util.function.Supplier;
import info.u_team.u_team_core.api.registry.IUBlockRegistryType;
import net.minecraft.block.Block;
import net.minecraft.item.*;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.eventbus.api.IEventBus;
import net.mi... | package info.u_team.u_team_core.util.registry;
import java.util.function.Supplier;
import info.u_team.u_team_core.api.registry.IUBlockRegistryType;
import net.minecraft.block.Block;
import net.minecraft.item.*;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.eventbus.api.IEventBus;
import net.mi... | Make the fields private and make the ctor protected (need a create method) | Make the fields private and make the ctor protected (need a create
method) | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
d0a2488fd5bfa27430ba5002c701e0533853dd36 | src/main/java/io/hops/metadata/hdfs/dal/SafeBlocksDataAccess.java | src/main/java/io/hops/metadata/hdfs/dal/SafeBlocksDataAccess.java | /*
* Copyright (C) 2015 hops.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
*
* Unless required by applicable law or agreed t... | /*
* Copyright (C) 2015 hops.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
*
* Unless required by applicable law or agreed t... | Fix Tuple does not exist in removeSafeBlock | [HOPS-1360] Fix Tuple does not exist in removeSafeBlock | Java | apache-2.0 | smkniazi/hops-metadata-dal,smkniazi/hops-metadata-dal,hopshadoop/hops-metadata-dal,hopshadoop/hops-metadata-dal |
5719b3bc80be0c71c1fc008b15e19ef44485049f | src/main/java/me/coley/recaf/decompile/Decompiler.java | src/main/java/me/coley/recaf/decompile/Decompiler.java | package me.coley.recaf.decompile;
import me.coley.recaf.workspace.Workspace;
import java.util.Map;
/**
* Decompiler base.
*
* @author Matt.
*/
public abstract class Decompiler<OptionType> {
private final Map<String, OptionType> defaultOptions = generateDefaultOptions();
private Map<String, OptionType> options ... | package me.coley.recaf.decompile;
import me.coley.recaf.workspace.Workspace;
import java.util.*;
/**
* Decompiler base.
*
* @author Matt.
*/
public abstract class Decompiler<OptionType> {
private final Map<String, OptionType> defaultOptions = Collections.unmodifiableMap(generateDefaultOptions());
private Map<S... | Make default options map unmodifiable | Make default options map unmodifiable
| Java | mit | Col-E/Recaf,Col-E/Recaf |
9724acdc969c1e37259357e4d8be709ffee3a8c0 | src/test/java/de/fau/osr/core/vcs/base/CommitTest.java | src/test/java/de/fau/osr/core/vcs/base/CommitTest.java | package de.fau.osr.core.vcs.base;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by Rajab Kaoneka on 18.05.2015.
*/
public class CommitTest {
@Test
public void CommitConstructor_idField_Test(){
Commit commitToTest = new Commit("new_id", null, null, null);
assertEqua... | package de.fau.osr.core.vcs.base;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by Rajab Kaoneka on 18.05.2015.
*/
public class CommitTest {
@Test
public void CommitConstructor_idField_Test(){
Commit commitToTest = new Commit("new_id", null, null, null);
assertEqua... | Test for commit, testing message initialization with unusual chars for id | Test for commit, testing message initialization with unusual chars for id
| Java | agpl-3.0 | AMOSTeam3/amos-ss15-proj3,uv48uson/amos-ss15-proj3,AMOSTeam3/amos-ss15-proj3,yadimon/amos-ss15-proj3,yadimon/amos-ss15-proj3,uv48uson/amos-ss15-proj3,yadimon/amos-ss15-proj3,uv48uson/amos-ss15-proj3,uv48uson/amos-ss15-proj3,AMOSTeam3/amos-ss15-proj3,AMOSTeam3/amos-ss15-proj3,yadimon/amos-ss15-proj3 |
96bff59a484f32a08d0be530d04938ffbaf32448 | src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/QueueExecutor.java | src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/QueueExecutor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Remove @version that uses svn revision as it makes useless differences when comparing svn with github | Remove @version that uses svn revision as it makes useless differences when comparing svn with github
git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1788653 13f79535-47bb-0310-9956-ffa450edef68
Former-commit-id: 8183e740a37445656dfa610e0f7d203e2d765f57 | Java | apache-2.0 | ham1/jmeter,apache/jmeter,etnetera/jmeter,benbenw/jmeter,apache/jmeter,etnetera/jmeter,apache/jmeter,ham1/jmeter,etnetera/jmeter,benbenw/jmeter,benbenw/jmeter,ham1/jmeter,ham1/jmeter,etnetera/jmeter,ham1/jmeter,apache/jmeter,apache/jmeter,benbenw/jmeter,etnetera/jmeter |
8a7224e78d86dbd57187f8bad4c8f2e88163cd8a | app/src/main/java/com/beepscore/android/sunshine/MainActivityFragment.java | app/src/main/java/com/beepscore/android/sunshine/MainActivityFragment.java | package com.beepscore.android.sunshine;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.text.DateFormat;
import java.util.Calendar;
import java.util.Date;
/**
*... | package com.beepscore.android.sunshine;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import android.widget.TextView;
//import java.text.DateFormat;
import java.util.ArrayLi... | Delete commented out configureDateViewInView. Add configureList. | Delete commented out configureDateViewInView. Add configureList.
| Java | mit | beepscore/Sunshine |
29d053120c01038246b8ed978aca48bf9b956c11 | proctor-store/src/main/java/com/indeed/proctor/store/RevisionDetails.java | proctor-store/src/main/java/com/indeed/proctor/store/RevisionDetails.java | package com.indeed.proctor.store;
import java.util.List;
import java.util.Objects;
/**
* Details of a single revision
*/
public class RevisionDetails {
private final Revision revision;
private final List<String> modifiedTests;
public RevisionDetails(
final Revision revision,
fin... | package com.indeed.proctor.store;
import java.util.Objects;
import java.util.Set;
/**
* Details of a single revision
*/
public class RevisionDetails {
private final Revision revision;
private final Set<String> modifiedTests;
public RevisionDetails(
final Revision revision,
final... | Use set for modified tests in revision details | PROC-592: Use set for modified tests in revision details
| Java | apache-2.0 | indeedeng/proctor,indeedeng/proctor |
d3218099234cf3f338a6aea1c894e7d5776ddebf | sample/src/main/java/com/yuyakaido/android/cardstackview/sample/CardAdapter.java | sample/src/main/java/com/yuyakaido/android/cardstackview/sample/CardAdapter.java | package com.yuyakaido.android.cardstackview.sample;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
public class CardAdapter extends ArrayAdapter<String> {
public CardAdapter(Context context) {
su... | package com.yuyakaido.android.cardstackview.sample;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
public class CardAdapter extends ArrayAdapter<String> {
public CardAdapter(Context context) {
su... | Use ViewHolder pattern in sample adapter | Use ViewHolder pattern in sample adapter
| Java | apache-2.0 | yuyakaido/CardStackView |
be582a92609244275fdf5f5af33e28a5c3693805 | tenacity-core/src/main/java/com/yammer/tenacity/core/properties/ArchaiusPropertyRegister.java | tenacity-core/src/main/java/com/yammer/tenacity/core/properties/ArchaiusPropertyRegister.java | package com.yammer.tenacity.core.properties;
import com.netflix.config.ConfigurationManager;
import com.netflix.config.DynamicConfiguration;
import com.netflix.config.FixedDelayPollingScheduler;
import com.netflix.config.PolledConfigurationSource;
import com.netflix.config.sources.URLConfigurationSource;
import com.ya... | package com.yammer.tenacity.core.properties;
import com.netflix.config.ConfigurationManager;
import com.netflix.config.DynamicConfiguration;
import com.netflix.config.FixedDelayPollingScheduler;
import com.netflix.config.PolledConfigurationSource;
import com.netflix.config.sources.URLConfigurationSource;
import com.ya... | Add some braces around an if guard | Add some braces around an if guard
| Java | apache-2.0 | jplock/tenacity,Trundle/tenacity,yammer/tenacity,yonglehou/tenacity,mauricionr/tenacity,samaitra/tenacity,skinzer/tenacity |
56525547f49f7ea9f9a68e12ced295e8e8cf8526 | src/main/java/com/github/dieterdepaepe/jsearch/search/statespace/SearchNode.java | src/main/java/com/github/dieterdepaepe/jsearch/search/statespace/SearchNode.java | package com.github.dieterdepaepe.jsearch.search.statespace;
/**
* A node encountered in the search graph while solving a problem.
* <p>
* There is a subtle but important difference between a {@code SearchNode} and a search space state. A search space
* state represents the result from a set of chosen actions. A {@... | package com.github.dieterdepaepe.jsearch.search.statespace;
/**
* A node encountered in the search graph while solving a problem.
* <p>
* There is a subtle but important difference between a {@code SearchNode} and a search space state. A search space
* state represents the result from a set of chosen actions. A {@... | Add lightweight method for detecting duplicate search nodes. | Add lightweight method for detecting duplicate search nodes.
| Java | mit | DieterDePaepe/JSearch |
0af57ed4345cfbbf85dfe55513c0a2607779f470 | src/main/java/org/realityforge/replicant/example/client/GlobalAsyncCallback.java | src/main/java/org/realityforge/replicant/example/client/GlobalAsyncCallback.java | package org.realityforge.replicant.example.client;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
/**
* Callback invoked on completion of every job
*/
public class GlobalAsyncCallback
implements AsyncCallback
{
@Override
public void onFailure( final Throwable ca... | package org.realityforge.replicant.example.client;
import com.google.gwt.user.client.rpc.AsyncCallback;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Callback invoked on completion of every job
*/
public class GlobalAsyncCallback
implements AsyncCallback
{
private static final Logger LO... | Rework callback so that it emits logs to the console. Less annoying than popups | Rework callback so that it emits logs to the console. Less annoying than popups
| Java | apache-2.0 | realityforge/replicant-example,realityforge/replicant-example,realityforge/replicant-example |
7f92fd3305763cece1487a9e72d66047a794070a | app/src/main/java/org/wikipedia/feed/aggregated/AggregatedFeedContent.java | app/src/main/java/org/wikipedia/feed/aggregated/AggregatedFeedContent.java | package org.wikipedia.feed.aggregated;
import android.support.annotation.Nullable;
import com.google.gson.annotations.SerializedName;
import org.wikipedia.feed.model.CardPageItem;
import org.wikipedia.feed.mostread.MostReadArticles;
import org.wikipedia.feed.news.NewsItem;
import org.wikipedia.feed.image.FeaturedIma... | package org.wikipedia.feed.aggregated;
import android.support.annotation.Nullable;
import com.google.gson.annotations.SerializedName;
import org.wikipedia.feed.model.CardPageItem;
import org.wikipedia.feed.mostread.MostReadArticles;
import org.wikipedia.feed.news.NewsItem;
import org.wikipedia.feed.image.FeaturedIma... | Remove random from aggregated feed parsing | Remove random from aggregated feed parsing
We had random data display in earlier versions of the app but don't actually use it.
During an RB deploy today where we wanted to change the format to an array
we discovered that the app was still expecting the random property to be an object.
Therefore let's remove the rand... | Java | apache-2.0 | dbrant/apps-android-wikipedia,anirudh24seven/apps-android-wikipedia,SAGROUP2/apps-android-wikipedia,wikimedia/apps-android-wikipedia,dbrant/apps-android-wikipedia,wikimedia/apps-android-wikipedia,anirudh24seven/apps-android-wikipedia,dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia,anirudh24seven/apps-androi... |
0a9bf9dbf6c144a10f1a7b7b10ef2585368aaf77 | app/src/main/java/com/asesolution/mobile/lorempixel/utils/PaletteUtils.java | app/src/main/java/com/asesolution/mobile/lorempixel/utils/PaletteUtils.java | package com.asesolution.mobile.lorempixel.utils;
import android.graphics.Bitmap;
import android.graphics.Color;
import com.asesolution.mobile.lorempixel.utils.picasso.PaletteTransformation;
public class PaletteUtils {
private static final int DEFAULT_COLOR = Color.parseColor("#757575");
private static final ... | package com.asesolution.mobile.lorempixel.utils;
import android.graphics.Bitmap;
import android.graphics.Color;
import com.asesolution.mobile.lorempixel.MainApplication;
import com.asesolution.mobile.lorempixel.R;
import com.asesolution.mobile.lorempixel.utils.picasso.PaletteTransformation;
public class PaletteUtils... | Update upaletteutils to source default color from colors.xml | Update upaletteutils to source default color from colors.xml
| Java | mit | rockaport/lorem-pixel |
57f8811ed729ecbc2c79429e8e18d211d888b82c | app/src/main/java/com/i906/mpt/date/DateProvider.java | app/src/main/java/com/i906/mpt/date/DateProvider.java | package com.i906.mpt.date;
import java.util.Calendar;
import java.util.TimeZone;
import javax.inject.Inject;
import javax.inject.Singleton;
/**
* @author Noorzaini Ilhami
*/
@Singleton
class DateProvider {
private final Calendar mCalendar;
@Inject
DateProvider() {
mCalendar = getCalendarInsta... | package com.i906.mpt.date;
import java.util.Calendar;
import java.util.TimeZone;
import javax.inject.Inject;
import javax.inject.Singleton;
/**
* @author Noorzaini Ilhami
*/
@Singleton
class DateProvider {
private Calendar mCalendar;
@Inject
DateProvider() {
}
private void refresh() {
... | Fix random wrong month or year in prayer times | Fix random wrong month or year in prayer times
| Java | apache-2.0 | AhmadMuzakkir/MalaysiaPrayerTimesAndroid,MalaysiaPrayerTimes/android,MalaysiaPrayerTimes/android |
7397f3ad422272b74d88b7d016578e2bde840086 | client/src/main/java/org/spine3/base/Stringifier.java | client/src/main/java/org/spine3/base/Stringifier.java | /*
* Copyright 2017, TeamDev Ltd. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRES... | /*
* Copyright 2017, TeamDev Ltd. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRES... | Add the `author` annotation in the documentation. | Add the `author` annotation in the documentation.
| Java | apache-2.0 | SpineEventEngine/core-java,SpineEventEngine/core-java,SpineEventEngine/core-java |
f3bc835c49f659c91d4b370834b1dc7bd6e2f511 | ipojo-cli/src/main/java/buildr/ipojo/cli/Main.java | ipojo-cli/src/main/java/buildr/ipojo/cli/Main.java | package buildr.ipojo.cli;
import java.io.File;
import java.io.FileInputStream;
import org.apache.felix.ipojo.manipulator.Pojoization;
public class Main
{
public static void main( final String[] args )
{
if( 4 != args.length )
{
System.err.println("Usage: <input_file_name> <output_file_name> <metadat... | package buildr.ipojo.cli;
import java.io.File;
import java.io.FileInputStream;
import org.apache.felix.ipojo.manipulator.Pojoization;
public class Main
{
public static void main( final String[] args )
{
if( 4 != args.length )
{
System.err.println("Usage: <input_file_name> <output_file_name> <metadat... | Fix bug where warnings were being printed as errors | Fix bug where warnings were being printed as errors
| Java | apache-2.0 | realityforge/buildr-ipojo |
34785ba66d041ff0da978577884f052353a71575 | src/main/java/com/codenvy/ide/editor/orion/client/OrionTextEditorViewFactory.java | src/main/java/com/codenvy/ide/editor/orion/client/OrionTextEditorViewFactory.java | /*******************************************************************************
* Copyright (c) 2014 Codenvy, S.A.
* 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
*... | /*******************************************************************************
* Copyright (c) 2014 Codenvy, S.A.
* 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
*... | Update the factory after common js editor change | Update the factory after common js editor change | Java | epl-1.0 | codenvy/plugin-editor-orion,codenvy/plugin-editor-orion |
272fb4e879842b73d73660f9ff4f3d9d82e1e283 | src/main/java/io/gatekeeper/node/service/replication/LocalReplicationService.java | src/main/java/io/gatekeeper/node/service/replication/LocalReplicationService.java | package io.gatekeeper.node.service.replication;
import io.gatekeeper.configuration.Configuration;
import io.gatekeeper.configuration.data.replication.LocalReplicationConfiguration;
import io.gatekeeper.model.Endpoint;
import io.gatekeeper.node.service.ReplicationService;
import io.gatekeeper.node.service.replication.c... | package io.gatekeeper.node.service.replication;
import io.gatekeeper.configuration.Configuration;
import io.gatekeeper.configuration.data.replication.LocalReplicationConfiguration;
import io.gatekeeper.node.service.ReplicationService;
import io.gatekeeper.node.service.replication.common.Node;
import java.io.IOExcepti... | Clean up imports from local replication service | Clean up imports from local replication service
| Java | apache-2.0 | JackPrice/gatekeeper,JackPrice/gatekeeper |
73ef3ab016e577c0fce4ab20102da86935462453 | common/util/src/main/java/roart/common/util/IOUtil.java | common/util/src/main/java/roart/common/util/IOUtil.java | package roart.common.util;
import java.io.InputStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import roart.common.constants.Constants;
public class IOUtil {
private static Logger log = LoggerFactory.getLogger(IOUtil.class);
public static byte[] toByteArrayMax(InputStream is) {
try... | package roart.common.util;
import java.io.InputStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import roart.common.constants.Constants;
public class IOUtil {
private static Logger log = LoggerFactory.getLogger(IOUtil.class);
public static byte[] toByteArrayMax(InputStream is) {
try... | Index size check, for Elastic 8 upgrade (I10). | Index size check, for Elastic 8 upgrade (I10).
| Java | agpl-3.0 | rroart/aether,rroart/aether,rroart/aether,rroart/aether,rroart/aether |
1ae537b291674d864c661298ddcbdd5d0c39a0ab | server/src/test/java/io/crate/testing/Asserts.java | server/src/test/java/io/crate/testing/Asserts.java | /*
* Licensed to 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 use this file except in compl... | /*
* Licensed to 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 use this file except in compl... | Use junit assertions in assertThrows | Use junit assertions in assertThrows
I was wondering where a opentest4j error came from.
This changes the newly introduced assertThrows to use the same
verification mechanism we use everywhere else.
| Java | apache-2.0 | crate/crate,EvilMcJerkface/crate,EvilMcJerkface/crate,crate/crate,EvilMcJerkface/crate,crate/crate |
fade5039534741446b9859b95ad85f4cce41009b | src/test/java/seedu/tasklist/commons/core/ConfigTest.java | src/test/java/seedu/tasklist/commons/core/ConfigTest.java | package seedu.tasklist.commons.core;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
public class ConfigTest {
@Rule
public ExpectedExc... | package seedu.tasklist.commons.core;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
public class C... | Add test to improve code coverage | Add test to improve code coverage
| Java | mit | CS2103JAN2017-W14-B1/main,CS2103JAN2017-W14-B1/main |
171d39a0ab3f12a584778576ccb32df24b68e9cb | src/main/java/com/google/sps/data/AggregationResponseEntry.java | src/main/java/com/google/sps/data/AggregationResponseEntry.java | package com.google.sps.data;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.apache.commons.collections4.keyvalue.MultiKey;
/*
* Class representing one row/entry in the aggregation response. A NULL field value
* means the field was not being aggregated by, and will be omitted fro... | package com.google.sps.data;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.apache.commons.collections4.keyvalue.MultiKey;
/*
* Class representing one row/entry in the aggregation response. A NULL field value
* means the field was not being aggregated by, and will be omitted fro... | Refactor output format to be same as input format, standardizing the API | Refactor output format to be same as input format, standardizing the API
| Java | apache-2.0 | googleinterns/step176-2020,googleinterns/step176-2020,googleinterns/step176-2020 |
cffdbc37b55fb79509c0d06a5b5d20cf1017d944 | omni-cx2x/src/cx2x/translator/language/ClawErrorListener.java | omni-cx2x/src/cx2x/translator/language/ClawErrorListener.java | /*
* This file is released under terms of BSD license
* See LICENSE file for more information
*/
package cx2x.translator.language;
import cx2x.xcodeml.exception.IllegalDirectiveException;
import org.antlr.v4.runtime.BaseErrorListener;
import org.antlr.v4.runtime.RecognitionException;
import org.antlr.v4.runtime.Re... | /*
* This file is released under terms of BSD license
* See LICENSE file for more information
*/
package cx2x.translator.language;
import cx2x.xcodeml.exception.IllegalDirectiveException;
import org.antlr.v4.runtime.BaseErrorListener;
import org.antlr.v4.runtime.RecognitionException;
import org.antlr.v4.runtime.Re... | Update modifier + code style | Update modifier + code style
| Java | bsd-2-clause | clementval/claw-compiler,clementval/claw-compiler |
6d7dfbbb3920acd80bc80cb75db1042be9560764 | src/org/usfirst/frc4909/STEAMWORKS/commands/DriveCommand.java | src/org/usfirst/frc4909/STEAMWORKS/commands/DriveCommand.java | package org.usfirst.frc4909.STEAMWORKS.commands;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import org.usfirst.frc4909.STEAMWORKS.Robot;
public class DriveCommand extends Command {
public DriveCommand() {
requires(Robot.drivetrain);
}
... | package org.usfirst.frc4909.STEAMWORKS.commands;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import org.usfirst.frc4909.STEAMWORKS.Robot;
public class DriveCommand extends Command {
public DriveCommand() {
requires(Robot.drivetrain);
}
... | Remove SmartDashboard Data for Teleop. Drive | Remove SmartDashboard Data for Teleop. Drive
| Java | bsd-3-clause | FRCteam4909/2017-Steamworks |
4a425b414d62d42d28ecd6eefd7bfaa84dd7b710 | wow-attendance/src/main/java/ru/faulab/attendence/Runner.java | wow-attendance/src/main/java/ru/faulab/attendence/Runner.java | package ru.faulab.attendence;
import com.google.inject.Guice;
import com.google.inject.Injector;
import ru.faulab.attendence.module.MainModule;
import ru.faulab.attendence.ui.MainFrame;
public class Runner {
/*
* 1. Статистика
* */
public static void main(String[] args) throws Exception {... | package ru.faulab.attendence;
import com.google.inject.Guice;
import com.google.inject.Injector;
import ru.faulab.attendence.module.MainModule;
import ru.faulab.attendence.ui.MainFrame;
import javax.swing.*;
public class Runner {
/*
* 1. Статистика
* */
public static void main(String[]... | Set UI as best on OS | Set UI as best on OS
| Java | apache-2.0 | anton-tregubov/wow-attendance |
99051ce18295a591640d4117e90b9dc9580df2d3 | src/com/robrua/orianna/type/core/common/GameMap.java | src/com/robrua/orianna/type/core/common/GameMap.java | package com.robrua.orianna.type.core.common;
import java.util.HashMap;
import java.util.Map;
public enum GameMap {
HOWLING_ABYSS(12), SUMMONERS_RIFT(11), SUMMONERS_RIFT_AUTUMN(2), SUMMONERS_RIFT_SUMMER(1), THE_CRYSTAL_SCAR(8), THE_PROVING_GROUNDS(3), TWISTED_TREELINE(10), TWISTED_TREELINE_ORIGINAL(
... | package com.robrua.orianna.type.core.common;
import java.util.HashMap;
import java.util.Map;
public enum GameMap {
BUTCHERS_BRIDGE(14), HOWLING_ABYSS(12), SUMMONERS_RIFT(11), SUMMONERS_RIFT_AUTUMN(2), SUMMONERS_RIFT_SUMMER(1), THE_CRYSTAL_SCAR(8), THE_PROVING_GROUNDS(3), TWISTED_TREELINE(10), TWISTED_TREELI... | Add bildge water event map name | Add bildge water event map name
my app was crashing and it may come in handy later if the event repeats. | Java | mit | robrua/Orianna,meraki-analytics/Orianna |
b88d2ed943228647065ff6ac8154cc35099ab9ea | src/main/java/li/l1t/tingo/TingoErrorController.java | src/main/java/li/l1t/tingo/TingoErrorController.java | package li.l1t.tingo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.web.ErrorAttributes;
import org.springframework.boot.autoconfigure.web.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.sp... | package li.l1t.tingo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.web.ErrorAttributes;
import org.springframework.boot.autoconfigure.web.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.sp... | Fix wrong template usage in error pages | Fix wrong template usage in error pages
| Java | apache-2.0 | xxyy/tingo,xxyy/sic,xxyy/sic,xxyy/sic,xxyy/tingo,xxyy/tingo |
741020d8e2b34e68c6ecabb607e3985eca30349b | src/main/java/org/mastercoin/rpc/MPBalanceEntry.java | src/main/java/org/mastercoin/rpc/MPBalanceEntry.java | package org.mastercoin.rpc;
import com.google.bitcoin.core.Address;
import java.math.BigDecimal;
/**
* Balance data for a specific Mastercoin CurrencyID in a single Bitcoin address
*
* A Java representation of the JSON entry returned by getallbalancesforid_MP
*/
public class MPBalanceEntry {
private Address ... | package org.mastercoin.rpc;
import com.google.bitcoin.core.Address;
import java.math.BigDecimal;
/**
* Balance data for a specific Mastercoin CurrencyID in a single Bitcoin address
*
* A Java representation of the JSON entry returned by getallbalancesforid_MP
*/
public class MPBalanceEntry {
private Address ... | Correct equals() implementation, add hashCode() | Correct equals() implementation, add hashCode()
(Use IntelliJ to Generate)
| Java | apache-2.0 | dexX7/OmniJ,OmniLayer/OmniJ,OmniLayer/OmniJ,dexX7/bitcoin-spock,OmniLayer/OmniJ,dexX7/bitcoin-spock,dexX7/OmniJ |
250e3410f77748019a7cba0cf5ad9f3eee631a28 | src/test/java/hudson/plugins/cobertura/targets/CoveragePaintTest.java | src/test/java/hudson/plugins/cobertura/targets/CoveragePaintTest.java | package hudson.plugins.cobertura.targets;
import junit.framework.TestCase;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
/**
* Created by IntelliJ IDEA.
* User: stephen
* Date: 21-Oct-2007
* Time: 18:01:31
* To cha... | package hudson.plugins.cobertura.targets;
import junit.framework.TestCase;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
/**
* Created by IntelliJ IDEA.
* User: stephen
* Date: 21-Oct-2007
* Time: 18:01:31
* To cha... | Add a test and some asserts to coverage paint total lines | Add a test and some asserts to coverage paint total lines
| Java | mit | jenkinsci/cobertura-plugin,rbaradari/cobertura-plugin |
3d0168bb1a04fc29f9872d78e0739aa624248006 | alien4cloud-rest-it/src/test/java/alien4cloud/it/RunCloudIT.java | alien4cloud-rest-it/src/test/java/alien4cloud/it/RunCloudIT.java | package alien4cloud.it;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(features = {
"classpath:alien/rest/cloud/cloud_avz.feature"
}, format = { "pretty", "html:target/cucumber/cloud", "json:target/cucumber/cucumber-... | package alien4cloud.it;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(features = {
"classpath:alien/rest/cloud"
}, format = { "pretty", "html:target/cucumber/cloud", "json:target/cucumber/cucumber-cloud.json" })
pub... | Validate HA groups on a topology REST It tests | Validate HA groups on a topology
REST It tests
| Java | apache-2.0 | loicalbertin/alien4cloud,loicalbertin/alien4cloud,xdegenne/alien4cloud,OresteVisari/alien4cloud,xdegenne/alien4cloud,broly-git/alien4cloud,alien4cloud/alien4cloud,alien4cloud/alien4cloud,OresteVisari/alien4cloud,ahgittin/alien4cloud,broly-git/alien4cloud,ahgittin/alien4cloud,broly-git/alien4cloud,ahgittin/alien4cloud,P... |
0fb71c6b4abf8cbb745e20056d90f7528006b585 | Magic/src/main/java/com/elmakers/mine/bukkit/wand/WandUpgradeSlot.java | Magic/src/main/java/com/elmakers/mine/bukkit/wand/WandUpgradeSlot.java | package com.elmakers.mine.bukkit.wand;
import org.bukkit.configuration.ConfigurationSection;
import com.elmakers.mine.bukkit.api.magic.Mage;
public class WandUpgradeSlot {
private final String slotType;
private boolean hidden = false;
private boolean swappable = false;
private Wand slotted;
publ... | package com.elmakers.mine.bukkit.wand;
import org.bukkit.configuration.ConfigurationSection;
import com.elmakers.mine.bukkit.api.magic.Mage;
public class WandUpgradeSlot {
private final String slotType;
private boolean hidden = false;
private boolean swappable = false;
private boolean replaceable = f... | Add replaceable slot tag, for upgrades that can be replaced without returning the existing upgrade | Add replaceable slot tag, for upgrades that can be replaced without returning the existing upgrade
| Java | mit | elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicPlugin |
5afd7d6884b996be0a0569541f711d479f9e6c32 | Project2/apptbook/src/main/java/edu/pdx/cs410J/chances/TextParser.java | Project2/apptbook/src/main/java/edu/pdx/cs410J/chances/TextParser.java | package edu.pdx.cs410J.chances;
import edu.pdx.cs410J.AbstractAppointmentBook;
import edu.pdx.cs410J.AppointmentBookParser;
import edu.pdx.cs410J.ParserException;
/**
* @author chancesnow
*/
public class TextParser implements AppointmentBookParser
{
@Override
public AbstractAppointmentBook parse() throws Pa... | package edu.pdx.cs410J.chances;
import edu.pdx.cs410J.AbstractAppointmentBook;
import edu.pdx.cs410J.AppointmentBookParser;
import edu.pdx.cs410J.ParserException;
import java.io.File;
/**
* @author chancesnow
*/
public class TextParser implements AppointmentBookParser
{
private File file;
public TextParse... | Add constructor accepting file path | Add constructor accepting file path
| Java | mit | chances/cs410-adv-java,chances/cs410-adv-java,chances/cs410-adv-java |
6992d78c857c61d8818655586440a4cbebb3ae5d | src/main/java/org/cryptonit/cloud/interfaces/KeyStore.java | src/main/java/org/cryptonit/cloud/interfaces/KeyStore.java | package org.cryptonit.cloud.interfaces;
import java.security.PrivateKey;
import java.security.PublicKey;
public interface KeyStore {
public enum KeyParameters {
RSA_2048("RSA", null, 2048),
RSA_4096("RSA", null, 4096),
EC_P256("EC", "P-256", 256),
EC_P384("EC", "P-384", 384),
... | package org.cryptonit.cloud.interfaces;
import java.security.PrivateKey;
import java.security.PublicKey;
public interface KeyStore {
public enum KeyParameters {
RSA_2048("RSA", null, 2048),
RSA_4096("RSA", null, 4096),
EC_P256("EC", "P-256", 256),
EC_P384("EC", "P-384", 384),
... | Add key generation function to interface | Add key generation function to interface
| Java | agpl-3.0 | mbrossard/cryptonit-cloud,mbrossard/cryptonit-cloud,mbrossard/cryptonit-cloud |
cabf58d78d3ecbfaefbec60406de355d4b5a1f00 | core/src/main/java/org/radargun/config/FlightRecorder.java | core/src/main/java/org/radargun/config/FlightRecorder.java | package org.radargun.config;
import java.util.List;
import static org.radargun.config.VmArgUtils.ensureArg;
import static org.radargun.config.VmArgUtils.replace;
public class FlightRecorder implements VmArg {
@Property(doc = "Start flight recording for the benchmark.", optional = false)
private boolean enabled... | package org.radargun.config;
import java.util.List;
import static org.radargun.config.VmArgUtils.ensureArg;
import static org.radargun.config.VmArgUtils.replace;
public class FlightRecorder implements VmArg {
@Property(doc = "Start flight recording for the benchmark.", optional = false)
private boolean enabled... | Fix Unknown argument 'compress' in diagnostic for JDK11 | Fix Unknown argument 'compress' in diagnostic for JDK11
| Java | apache-2.0 | radargun/radargun,radargun/radargun,radargun/radargun,radargun/radargun |
ed434c7724cf2e7731c0b0b91a4b8efa7c424106 | nbt/src/main/java/com/voxelwind/nbt/util/CompoundTagBuilder.java | nbt/src/main/java/com/voxelwind/nbt/util/CompoundTagBuilder.java | package com.voxelwind.nbt.util;
import com.voxelwind.nbt.tags.CompoundTag;
import com.voxelwind.nbt.tags.Tag;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import java.util.HashMap;
import java.util.Map;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class CompoundTagBuilder {
private fina... | package com.voxelwind.nbt.util;
import com.voxelwind.nbt.tags.*;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import java.util.HashMap;
import java.util.Map;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class CompoundTagBuilder {
private final Map<String, Tag<?>> tagMap = new HashMap<>(... | Add type-related tag methods to nbt-builder | Add type-related tag methods to nbt-builder
| Java | mit | voxelwind/voxelwind,voxelwind/voxelwind,minecrafter/voxelwind,voxelwind/voxelwind,minecrafter/voxelwind,minecrafter/voxelwind,minecrafter/voxelwind,voxelwind/voxelwind |
f4f2e8166867cc76167fe2f735a1edf187400ddc | src/main/java/uk/ac/ebi/phenotype/dao/HibernateDAO.java | src/main/java/uk/ac/ebi/phenotype/dao/HibernateDAO.java | /**
* Copyright © 2011-2013 EMBL - European Bioinformatics Institute
*
* 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
*
... | /**
* Copyright © 2011-2013 EMBL - European Bioinformatics Institute
*
* 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
*
... | Add a flush and clear method for batch upload. | Add a flush and clear method for batch upload.
| Java | apache-2.0 | mpi2/PhenotypeArchive,mpi2/PhenotypeArchive,mpi2/PhenotypeArchive |
bd11f794824ff2bcaef65b7604af286d8cade6b9 | src/main/java/uk/me/mjt/ch/status/MonitoredProcess.java | src/main/java/uk/me/mjt/ch/status/MonitoredProcess.java |
package uk.me.mjt.ch.status;
public enum MonitoredProcess {
LOAD_NODES, LOAD_WAYS, INDEX_MAP_DATA, VALIDATE_DATA
}
|
package uk.me.mjt.ch.status;
public enum MonitoredProcess {
LOAD_NODES, LOAD_WAYS, INDEX_MAP_DATA, VALIDATE_DATA, EXTRA_PROCESS_1, EXTRA_PROCESS_2
}
| Add some extra process names in case someone using the library needs to perform/monitor extra loading processes. | Add some extra process names in case someone using the library needs to perform/monitor extra loading processes. | Java | mit | michaeltandy/contraction-hierarchies,michaeltandy/contraction-hierarchies |
f1ced257101996d64991a2ace8f04fb55ebfdef7 | app/src/main/java/com/popalay/cardme/ui/base/BaseFragment.java | app/src/main/java/com/popalay/cardme/ui/base/BaseFragment.java | package com.popalay.cardme.ui.base;
import android.app.Activity;
import android.support.annotation.NonNull;
import com.arellomobile.mvp.MvpAppCompatFragment;
public abstract class BaseFragment extends MvpAppCompatFragment implements BaseView {
@NonNull
public BaseActivity getBaseActivity() {
final A... | package com.popalay.cardme.ui.base;
import android.app.Activity;
import android.support.annotation.NonNull;
import com.arellomobile.mvp.MvpAppCompatFragment;
public abstract class BaseFragment extends MvpAppCompatFragment implements BaseView {
@NonNull
public BaseActivity getBaseActivity() {
final A... | Throw exception when call close() on fragment | Throw exception when call close() on fragment
| Java | apache-2.0 | Popalay/Cardme,Popalay/Cardme,Popalay/Cardme |
c9bda9142a067765c7e53004705abcfddacef72d | examples/selenium-container/src/test/java/SeleniumContainerTest.java | examples/selenium-container/src/test/java/SeleniumContainerTest.java | import org.junit.Rule;
import org.junit.Test;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.testcontainers.containers.BrowserWebDriverContainer;
import java.io.File;
import static org.rnorth.visibleassertions... | import org.junit.Rule;
import org.junit.Test;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.testcontainers.containers.BrowserWebDriverContainer;
import java.io.File;
import java.util.List;
import static org.r... | Simplify selenium example Previous test relied on the content/layout of wikipedia remaining the same, which led to unexpected failures | Simplify selenium example
Previous test relied on the content/layout of wikipedia remaining the same, which led to unexpected failures
| Java | mit | outofcoffee/testcontainers-java,rnorth/test-containers,rnorth/test-containers,testcontainers/testcontainers-java,rnorth/test-containers,testcontainers/testcontainers-java,outofcoffee/testcontainers-java,outofcoffee/testcontainers-java,testcontainers/testcontainers-java |
c4adc045c286e5c3c9040f15f9f27210b724ef64 | src/main/java/io/burt/jmespath/ast/FlattenListNode.java | src/main/java/io/burt/jmespath/ast/FlattenListNode.java | package io.burt.jmespath.ast;
public class FlattenListNode extends JmesPathNode {
public FlattenListNode() {
super();
}
public FlattenListNode(JmesPathNode source) {
super(source);
}
@Override
protected boolean internalEquals(Object o) {
return true;
}
@Override
protected int internalH... | package io.burt.jmespath.ast;
public class FlattenListNode extends JmesPathNode {
public FlattenListNode(JmesPathNode source) {
super(source);
}
@Override
protected boolean internalEquals(Object o) {
return true;
}
@Override
protected int internalHashCode() {
return 19;
}
}
| Remove the no-args constructor from FlattenNode | Remove the no-args constructor from FlattenNode
It is not used. | Java | bsd-3-clause | burtcorp/jmespath-java |
4c654f46b4fa8905891f034d1687b68782c9e3de | src/main/java/net/dean/jraw/models/LoggedInAccount.java | src/main/java/net/dean/jraw/models/LoggedInAccount.java | package net.dean.jraw.models;
import net.dean.jraw.models.meta.JsonProperty;
import net.dean.jraw.models.meta.Model;
import com.fasterxml.jackson.databind.JsonNode;
/**
* Represents an account with additional information visible only to the logged-in user.
*/
@Model(kind = Model.Kind.ACCOUNT)
public final class Log... | package net.dean.jraw.models;
import com.fasterxml.jackson.databind.JsonNode;
import net.dean.jraw.models.meta.JsonProperty;
import net.dean.jraw.models.meta.Model;
import java.text.NumberFormat;
/**
* Represents an account with additional information visible only to the logged-in user.
*/
@Model(kind = Model.Kin... | Add ability to get localized inbox count | Add ability to get localized inbox count
| Java | mit | ccrama/JRAW,ccrama/JRAW,ccrama/JRAW |
124a2506de0da2f5989ea39360fa87fa3bf06310 | src/org/usfirst/frc/team1699/utils/command/Command.java | src/org/usfirst/frc/team1699/utils/command/Command.java | /**
* FIRST Team 1699
*
* Abstract Command Class
*
* @author squirlemaster42, FIRST Team 1699
*
* @version v0.2-norobot
*/
package org.usfirst.frc.team1699.utils.command;
public abstract class Command {
private String name;
private int id;
// id is used for commands run in auto. It shou... | /**
* FIRST Team 1699
*
* Abstract Command Class
*
* @author squirlemaster42, FIRST Team 1699
*
* @version v0.2-norobot
*/
package org.usfirst.frc.team1699.utils.command;
public abstract class Command {
private String name;
private int id;
// id is used for commands run in auto. It shou... | Make sure everything is correct version | Make sure everything is correct version | Java | mit | FIRST-Team-1699/2017-code |
90ec8ca7cdd593082ec4490a5eb65da470655df4 | test/simizer/laws/LawTest.java | test/simizer/laws/LawTest.java | package simizer.laws;
import org.junit.*;
/**
* Basic tests that should be run on all Law subclasses.
*/
@Ignore
public class LawTest {
protected Law law;
/**
* Outputs values from the law to evaluate their distribution.
*/
@Test
public void testOutput() {
for (int i = 0; i < 10000; i++) {
... | package simizer.laws;
import java.lang.reflect.Field;
import org.junit.*;
/**
* Basic tests that should be run on all Law subclasses.
*/
@Ignore
public class LawTest {
protected Law law;
/**
* Outputs values from the law to evaluate their distribution.
*/
@Test
public void testOutput() {
for (int... | Add unit tests to check the min/max range values. | Add unit tests to check the min/max range values.
The unit tests for the Law subclasses will now check whether or not the minimum
value (0) and maximum value (upperBound - 1) can be generated by the
distribution.
Because of the random nature of the laws, the tests will try to generate the
values for four seconds. If... | Java | apache-2.0 | isep-rdi/simizer |
6bbee80410cc0b7ee22d55ef525a8b4eb987abf1 | src/main/java/org/mutabilitydetector/locations/ClassName.java | src/main/java/org/mutabilitydetector/locations/ClassName.java | /*
* Copyright (c) 2008-2011 Graham Allan
*
* 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... | /*
* Copyright (c) 2008-2011 Graham Allan
*
* 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... | Remove @Immutable annotation from abstract class. | Remove @Immutable annotation from abstract class.
| Java | apache-2.0 | MutabilityDetector/MutabilityDetector,MutabilityDetector/MutabilityDetector |
d51ed6f3b0d900322b3ed57f9a4b832a7c817271 | app/src/main/java/com/commit451/gitlab/model/api/Group.java | app/src/main/java/com/commit451/gitlab/model/api/Group.java | package com.commit451.gitlab.model.api;
import com.google.gson.annotations.SerializedName;
import org.parceler.Parcel;
import android.net.Uri;
@Parcel
public class Group {
@SerializedName("id")
long mId;
@SerializedName("name")
String mName;
@SerializedName("path")
String mPath;
@Seriali... | package com.commit451.gitlab.model.api;
import com.google.gson.annotations.SerializedName;
import org.parceler.Parcel;
import android.net.Uri;
@Parcel
public class Group {
@SerializedName("id")
long mId;
@SerializedName("name")
String mName;
@SerializedName("path")
String mPath;
@Seriali... | Check webUrl of groups for null to prevent NullPointerException | Check webUrl of groups for null to prevent NullPointerException
| Java | apache-2.0 | Commit451/LabCoat,Commit451/GitLabAndroid |
a05efe0fe00fd2ad43f984d6a83d0f8488a6dbd7 | test/net/ssehub/kernel_haven/config/ConfigurationTest.java | test/net/ssehub/kernel_haven/config/ConfigurationTest.java | package net.ssehub.kernel_haven.config;
import static net.ssehub.kernel_haven.config.Setting.Type.BOOLEAN;
import java.util.Properties;
import org.junit.Assert;
import org.junit.Test;
import net.ssehub.kernel_haven.SetUpException;
/**
* Tests the {@link Configuration}.
* @author El-Sharkawy
*
*/
public class C... | package net.ssehub.kernel_haven.config;
import static net.ssehub.kernel_haven.config.Setting.Type.BOOLEAN;
import java.util.Properties;
import org.junit.Assert;
import org.junit.Test;
import net.ssehub.kernel_haven.SetUpException;
/**
* Tests the {@link Configuration}.
* @author El-Sharkawy
*
*/
public class C... | Test case for the configuration | Test case for the configuration | Java | apache-2.0 | KernelHaven/KernelHaven,KernelHaven/KernelHaven |
55bd174f1c7e910bf718d7a338a8e9523c555a07 | oasis-model/src/main/java/oasis/model/directory/Organization.java | oasis-model/src/main/java/oasis/model/directory/Organization.java | package oasis.model.directory;
import javax.annotation.Nonnull;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import com.wordnik.swagger.annotations.ApiModelProperty;
import oasis.model.annotations.Id;
@JsonRootName("organization")
public class Organizat... | package oasis.model.directory;
import javax.annotation.Nonnull;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import com.wordnik.swagger.annotations.ApiModelProperty;
import oasis.model.annotations.Id;
@JsonRootName("organization")
public class Organizat... | Add a "type" field to organizations | Add a "type" field to organizations
Change-Id: If86c88bfbf23cd3b2d2899168bfefd5888b09bd2
| Java | agpl-3.0 | ozwillo/ozwillo-kernel,ozwillo/ozwillo-kernel,ozwillo/ozwillo-kernel |
43bf8092bd5fba3cb4b8a937576b77ae86b40faf | src/main/java/org/amc/servlet/model/PartSearchForm.java | src/main/java/org/amc/servlet/model/PartSearchForm.java | package org.amc.servlet.model;
public class PartSearchForm implements WebPageForm
{
private String part;
private String qSSNumber;
private String company;
/**
* @return the part
*/
public String getPart()
{
return part;
}
/**
* @return the qSSNumber
*/
public String getQSSNumber()
{
return qSSNum... | package org.amc.servlet.model;
public class PartSearchForm implements WebPageForm
{
private String partName;
private String qSSNumber;
private String company;
/**
* @return the part
*/
public String getPartName()
{
return partName;
}
/**
* @return the qSSNumber
*/
public String getQSSNumber()
{
r... | Rename Part to PartName to mirror PartSearch getters/setters | Rename Part to PartName to mirror PartSearch getters/setters
| Java | mit | subwoofer359/aplsystem,subwoofer359/aplsystem,subwoofer359/aplsystem,subwoofer359/aplsystem |
57fc044f8c02562e03a35f8a9e66c244015bd42b | core/src/io/github/bobdesaunois/amazighvillagegame/Render.java | core/src/io/github/bobdesaunois/amazighvillagegame/Render.java | package io.github.bobdesaunois.amazighvillagegame;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
public class Render
{
public Render ()
{
// Insert initialization code
}
public void render () {
// Clear the screen
Gdx.gl.glClearColor(0, 0, 0, 1);
... | package io.github.bobdesaunois.amazighvillagegame;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
public class Render
{
public Render ()
{
// Insert initialization code
}
public... | Test rendering for camera translation | Test rendering for camera translation
| Java | apache-2.0 | bobdesaunois/amazigh-village-game |
4c8ddb21dab32268b36501d6a8a2bf001f434324 | src/main/java/de/bettinggame/adapter/GameController.java | src/main/java/de/bettinggame/adapter/GameController.java | package de.bettinggame.adapter;
import de.bettinggame.domain.Game;
import de.bettinggame.domain.TournamentLevel;
import de.bettinggame.domain.repository.GameRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.a... | package de.bettinggame.adapter;
import de.bettinggame.domain.Game;
import de.bettinggame.domain.TournamentLevel;
import de.bettinggame.domain.repository.GameRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.a... | Fix order of TournamentLevel on games site | Fix order of TournamentLevel on games site
| Java | apache-2.0 | lcmatrix/betting-game,lcmatrix/betting-game |
3d932faab9043a7d46b605905a4311870cef7fcb | src/main/java/me/nallar/modpatcher/ModPatcherLoadHook.java | src/main/java/me/nallar/modpatcher/ModPatcherLoadHook.java | package me.nallar.modpatcher;
import me.nallar.javatransformer.api.JavaTransformer;
class ModPatcherLoadHook {
private static final int API_VERSION = 1; //Keep in sync with version in ModPatcher.java
private static final String VERSION = "@MOD_VERSION@".replace("-SNAPSHOT", "");
static void loadHook(ModPatcher.Ve... | package me.nallar.modpatcher;
import me.nallar.javatransformer.api.JavaTransformer;
class ModPatcherLoadHook {
private static final int API_VERSION = 1; //Keep in sync with version in ModPatcher.java
private static final String VERSION = "@MOD_VERSION@";
static void loadHook(ModPatcher.Version requiredVersion, St... | Fix LoadHook dropping snapshot incorrectly. | Fix LoadHook dropping snapshot incorrectly.
| Java | mit | MinimallyCorrect/ModPatcher,nallar/ModPatcher |
e9f79bb9397abb8f8b2538f50cd51cf1fccbeb25 | src/main/java/model/job/type/ServiceMetadataIngestJob.java | src/main/java/model/job/type/ServiceMetadataIngestJob.java | /**
* Copyright 2016, RadiantBlue Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | /**
* Copyright 2016, RadiantBlue Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | Fix compilation error on interface method override tag | Fix compilation error on interface method override tag
| Java | apache-2.0 | venicegeo/pz-jobcommon |
9cb05046c66f39575e1d38542a5dcf656209840a | src/main/java/org/hummingbirdlang/types/concrete/IntegerType.java | src/main/java/org/hummingbirdlang/types/concrete/IntegerType.java | package org.hummingbirdlang.types.concrete;
import org.hummingbirdlang.nodes.builtins.BuiltinNodes;
import org.hummingbirdlang.types.MethodProperty;
import org.hummingbirdlang.types.Property;
import org.hummingbirdlang.types.PropertyNotFoundException;
import org.hummingbirdlang.types.UnknownType;
import org.hummingbir... | package org.hummingbirdlang.types.concrete;
import org.hummingbirdlang.nodes.builtins.BuiltinNodes;
import org.hummingbirdlang.types.MethodProperty;
import org.hummingbirdlang.types.Property;
import org.hummingbirdlang.types.PropertyNotFoundException;
import org.hummingbirdlang.types.UnknownType;
import org.hummingbir... | Add debug string representation of integer concrete type | Add debug string representation of integer concrete type
| Java | bsd-3-clause | dirk/hummingbird2,dirk/hummingbird2,dirk/hummingbird2 |
1fb829eefe3520ba96f9b50df04514a6667c113e | rss-core/src/main/java/com/netflix/recipes/rss/RSSVersion.java | rss-core/src/main/java/com/netflix/recipes/rss/RSSVersion.java | package com.netflix.recipes.rss;
public class RSSVersion {
private static String version = "0.2";
public static String getVersion() {
return RSSVersion.version;
}
}
| package com.netflix.recipes.rss;
public class RSSVersion {
private final static String RSS_VERSION = "0.3";
public static String getVersion() {
return RSSVersion.RSS_VERSION;
}
}
| Change version number from 0.2 to 0.3 | Change version number from 0.2 to 0.3
| Java | apache-2.0 | hora-prediction/recipes-rss-kube |
759ceb094582838d4a5c2fc60282c1f408837dc4 | src/main/java/engine/objects/tower/TowerBehaviorDecorator.java | src/main/java/engine/objects/tower/TowerBehaviorDecorator.java | package main.java.engine.objects.tower;
import main.java.engine.EnvironmentKnowledge;
abstract class TowerBehaviorDecorator implements ITower {
/**
* The base tower will have behaviors added to it ("decorations")
*/
protected ITower baseTower;
public TowerBehaviorDecorator (ITower baseTower) {... | package main.java.engine.objects.tower;
import main.java.engine.EnvironmentKnowledge;
abstract class TowerBehaviorDecorator implements ITower {
/**
* The base tower will have behaviors added to it ("decorations")
*/
protected ITower baseTower;
public TowerBehaviorDecorator (ITower baseTower) {... | Make decorators obey base tower's build up time | Make decorators obey base tower's build up time
| Java | mit | dennis-park/OOGALoompas,jordanly/oogasalad_OOGALoompas,garysheng/tower-defense-game-engine,kevinkdo/oogasalad_OOGALoompas,codylieu/oogasalad_OOGALoompas,dianwen/oogasalad_TowerDefense,sdh31/tower_defense |
5093b83948d9ba809661ad311b6893ff2d17f23d | link/src/test/java/jamex/link/MessageCollector.java | link/src/test/java/jamex/link/MessageCollector.java | package jamex.link;
import java.util.Collection;
import java.util.LinkedList;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import javax.jms.Message;
import javax.jms.MessageListener;
import static org.junit.Assert.*;
final class MessageCollector
implements MessageListener
{... | package jamex.link;
import java.util.Collection;
import java.util.LinkedList;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import javax.jms.Message;
import javax.jms.MessageListener;
import static org.junit.Assert.*;
final class MessageCollector
implements MessageListener
{... | Update so collector has a default wait if unspecified | Update so collector has a default wait if unspecified
| Java | apache-2.0 | realityforge/jml,realityforge/jml |
f467ade3ebb8164597a2265a1b9af5e447dc88c6 | core/src/main/java/cucumber/runtime/io/FileResource.java | core/src/main/java/cucumber/runtime/io/FileResource.java | package cucumber.runtime.io;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
class FileResource implements Resource {
private final File root;
private final File file;
private final boolean classpathFileResource;
static FileResource createF... | package cucumber.runtime.io;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
class FileResource implements Resource {
private final File root;
private final File file;
private final boolean classpathFileResource;
static FileResource createF... | Fix class loading on Windows | [Core] Fix class loading on Windows
Fixes: #1540
| Java | mit | cucumber/cucumber-jvm,cucumber/cucumber-jvm,cucumber/cucumber-jvm,cucumber/cucumber-jvm,cucumber/cucumber-jvm |
8cf093f330b00dd897a2c2a1c42be7ae835d9bd9 | OpERP/src/main/java/devopsdistilled/operp/client/ClientApp.java | OpERP/src/main/java/devopsdistilled/operp/client/ClientApp.java | package devopsdistilled.operp.client;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import devopsdistilled.operp.client.context.AppContext;
import devopsdistilled.operp.client.main.MainWindow;
public class ClientApp {
public... | package devopsdistilled.operp.client;
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import devopsdistilled.operp.client.context.AppContext;
import dev... | Set Nimbus as LAF for Client-App | Set Nimbus as LAF for Client-App
Merge branch 'set-nimbux-laf' into develop | Java | mit | njmube/OpERP,DevOpsDistilled/OpERP |
37bc5646c9377d4dd3534236bd24452d94f22679 | app/controllers/Application.java | app/controllers/Application.java | package controllers;
import play.*;
import play.mvc.*;
import views.html.*;
public class Application extends Controller {
public Result index() {
return ok(index.render("Your new application is ready."));
}
}
| package controllers;
import play.*;
import play.mvc.*;
import views.html.*;
public class Application extends Controller {
public Result index() {
return ok("Welcome to Breakout API. Nothing to see here by now").as("text/plain");
}
}
| Add custom greeting for index | Add custom greeting for index
| Java | agpl-3.0 | BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend |
6fb38742d4b62594a72d185632a54a23ad0d7150 | src/main/java/at/ac/tuwien/inso/service/GradeService.java | src/main/java/at/ac/tuwien/inso/service/GradeService.java | package at.ac.tuwien.inso.service;
import at.ac.tuwien.inso.entity.*;
import org.springframework.security.access.prepost.*;
import org.springframework.stereotype.*;
import java.util.*;
@Service
public interface GradeService {
@PreAuthorize("hasRole('LECTURER')")
Grade getDefaultGradeForStudentAndCourse(Long... | package at.ac.tuwien.inso.service;
import at.ac.tuwien.inso.controller.lecturer.GradeAuthorizationDTO;
import at.ac.tuwien.inso.entity.*;
import org.springframework.security.access.prepost.*;
import org.springframework.stereotype.*;
import java.util.*;
@Service
public interface GradeService {
@PreAuthorize("has... | Refactor for two factor authentification | Refactor for two factor authentification
| Java | mit | university-information-system/uis,university-information-system/uis,university-information-system/uis,university-information-system/uis |
7a5c3b6b5d3b51bc1ba4c2fd20dee640415761a5 | src/main/java/io/github/likcoras/asuka/IgnoreManager.java | src/main/java/io/github/likcoras/asuka/IgnoreManager.java | package io.github.likcoras.asuka;
import java.io.BufferedWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import org.pircbotx.User;
import lombok.Cleanup;
public class Ig... | package io.github.likcoras.asuka;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import org.pircbotx.User;
import lombok.Cleanup;
public class... | Allow reading and writing from a specified Path | Allow reading and writing from a specified Path | Java | mit | likcoras/SSBot,likcoras/Asuka |
8694b119da494086b650c39a568b95ebe084e41d | src/main/java/pokefenn/totemic/ceremony/CeremonyRain.java | src/main/java/pokefenn/totemic/ceremony/CeremonyRain.java | package pokefenn.totemic.ceremony;
import net.minecraft.core.BlockPos;
import net.minecraft.world.level.Level;
import pokefenn.totemic.api.ceremony.CeremonyEffectContext;
import pokefenn.totemic.api.ceremony.CeremonyInstance;
public class CeremonyRain extends CeremonyInstance {
private final boolean doRain;
... | package pokefenn.totemic.ceremony;
import net.minecraft.core.BlockPos;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.world.level.Level;
import pokefenn.totemic.api.ceremony.CeremonyEffectContext;
import pokefenn.totemic.api.ceremony.CeremonyInstance;
public class CeremonyRain extends CeremonyIns... | Fix rain ceremony not working correctly | Fix rain ceremony not working correctly | Java | mit | TeamTotemic/Totemic |
96cbbc498900c91ea643c0784e84d03241290c6c | app/src/main/java/com/github/mobile/util/MarkdownUtils.java | app/src/main/java/com/github/mobile/util/MarkdownUtils.java | /*
* Copyright 2013 GitHub Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | /*
* Copyright 2013 GitHub Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | Update the list of supported markup formats | Update the list of supported markup formats
CC #75
| Java | apache-2.0 | jonan/ForkHub,ywk248248/Forkhub_cloned,jonan/ForkHub,DeLaSalleUniversity-Manila/forkhub-JJCpro10,DeLaSalleUniversity-Manila/forkhub-JJCpro10,DeLaSalleUniversity-Manila/forkhub-JJCpro10,ywk248248/Forkhub_cloned,ywk248248/Forkhub_cloned,jonan/ForkHub |
2ea2401eb0af8c1ad0303a5f93d93d093d1002da | app/src/com/ternaryop/widget/CheckableRelativeLayout.java | app/src/com/ternaryop/widget/CheckableRelativeLayout.java | package com.ternaryop.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.Checkable;
import android.widget.RelativeLayout;
/**
* Used to select items in listView
* @author dave
*
*/
public class CheckableRelativeLayout extends RelativeLayout implements Checkable {
priv... | package com.ternaryop.widget;
import java.util.ArrayList;
import java.util.List;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Checkable;
import android.widget.RelativeLayout;
/**
* Used to select items in listView
*... | Set checked state for Checkable children | Set checked state for Checkable children
| Java | mit | dafi/photoshelf |
cf62b474bcdab74ee67cda54af53a29a9625d836 | services/slip/src/main/java/com/ippon/jug/slip/SlipController.java | services/slip/src/main/java/com/ippon/jug/slip/SlipController.java | package com.ippon.jug.slip;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.io.IOException;
import java.net.InetAddress;
import java.net... | package com.ippon.jug.slip;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.io.IOException;
import java.net.InetAddress;
import java.net... | Set to OK the answer of docker health endpoint | Set to OK the answer of docker health endpoint
| Java | apache-2.0 | ImFlog/docker-discovery,ImFlog/docker-discovery |
8e8d7947a4a4bb3ce0ebaa92e61c9d0b00dabfa6 | src/main/java/com/github/solairerove/woodstock/domain/Task.java | src/main/java/com/github/solairerove/woodstock/domain/Task.java | package com.github.solairerove.woodstock.domain;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
/**
* Created by krivitski-no on 10/1/16.
*/
@Data... | package com.github.solairerove.woodstock.domain;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
/**
* Created by krivitski-no on 10/1/16.
*/
@Data... | Change primitive to object in task model | Change primitive to object in task model
| Java | apache-2.0 | solairerove/woodstock,solairerove/woodstock,solairerove/woodstock |
b6c63b5ed3333906f8bc908a759fc610b0a12cd8 | src/main/java/info/u_team/u_team_core/data/GenerationData.java | src/main/java/info/u_team/u_team_core/data/GenerationData.java | package info.u_team.u_team_core.data;
import java.util.function.*;
import net.minecraft.data.*;
import net.minecraftforge.common.data.ExistingFileHelper;
import net.minecraftforge.fml.event.lifecycle.GatherDataEvent;
public class GenerationData {
private final String modid;
private final DataGenerator generator;... | package info.u_team.u_team_core.data;
import java.util.function.*;
import net.minecraft.data.*;
import net.minecraftforge.common.data.ExistingFileHelper;
import net.minecraftforge.fml.event.lifecycle.GatherDataEvent;
public class GenerationData {
private final String modid;
private final DataGenerator generator;... | Use the new existing file helper with forge in the generation data now | Use the new existing file helper with forge in the generation data now | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
33bb47df5ba7d0de9f0082804e797351d4b4173b | src/main/java/org/irmacard/api/common/ClientRequest.java | src/main/java/org/irmacard/api/common/ClientRequest.java | package org.irmacard.api.common;
public class ClientRequest<T> {
private int timeout = 0;
private String data;
private T request;
public ClientRequest() {}
public ClientRequest(String data, T request) {
this.request = request;
this.data = data;
}
public ClientRequest(String data, T request, int timeout)... | package org.irmacard.api.common;
public class ClientRequest<T> {
private int timeout = 0;
private String data;
private T request;
private String callbackUrl;
public ClientRequest() {}
public ClientRequest(String data, T request) {
this.request = request;
this.data = data;
}
public ClientRequest(String ... | Add support for callback urls | Add support for callback urls
| Java | bsd-3-clause | credentials/irma_verification_common,credentials/irma_api_common |
a4c5a665e366cd3b579e85e3060823a2ebe59e14 | src/org/bouncycastle/asn1/DefiniteLengthInputStream.java | src/org/bouncycastle/asn1/DefiniteLengthInputStream.java | package org.bouncycastle.asn1;
import java.io.EOFException;
import java.io.InputStream;
import java.io.IOException;
class DefiniteLengthInputStream
extends LimitedInputStream
{
private int _length;
DefiniteLengthInputStream(
InputStream in,
int length)
{
... | package org.bouncycastle.asn1;
import java.io.EOFException;
import java.io.InputStream;
import java.io.IOException;
class DefiniteLengthInputStream
extends LimitedInputStream
{
private int _length;
DefiniteLengthInputStream(
InputStream in,
int length)
{
... | Add extra read(...) method for performance | Add extra read(...) method for performance
| Java | mit | sake/bouncycastle-java |
65374c912962ddd0f9bbc5c4c6541e0588939ae2 | src/test/java/de/mvitz/jprops/core/api/PropertiesInjectorTest.java | src/test/java/de/mvitz/jprops/core/api/PropertiesInjectorTest.java | package de.mvitz.jprops.core.api;
import static org.mockito.BDDMockito.given;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
@RunWith(MockitoJUnitRunner.class)
public class PropertiesInjectorTest {
@... | package de.mvitz.jprops.core.api;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.failBecauseExceptionWasNotThrown;
import static org.mockito.BDDMockito.given;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.moc... | Use AssertJ instead of JUnit expected to assert thrown exception. | Use AssertJ instead of JUnit expected to assert thrown exception. | Java | mit | mvitz/jprops |
1ae3eac5ffaf23381e0db170e6353d2d2bb7d233 | documentation/src/test/java/example/TestReporterDemo.java | documentation/src/test/java/example/TestReporterDemo.java | /*
* Copyright 2015-2018 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 v2.0 which
* accompanies this distribution and is available at
*
* http://www.eclipse.org/legal/epl-v20.html
*/
packag... | /*
* Copyright 2015-2018 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 v2.0 which
* accompanies this distribution and is available at
*
* http://www.eclipse.org/legal/epl-v20.html
*/
packag... | Use interface instead of implementation class | Use interface instead of implementation class
| Java | epl-1.0 | junit-team/junit-lambda,sbrannen/junit-lambda |
98488392bca0fb13b692cf712fffaa0d2c954a76 | src/main/java/b_stream/16-example_longest_word_in_file.java | src/main/java/b_stream/16-example_longest_word_in_file.java | package b_stream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.stream.Stream;
class LongestWordInFile {
public static void main(String[] args) throws IOException {
Stream<String> lines = Files.lines(Paths.get("frankenstein.t... | package b_stream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.regex.Pattern;
import java.util.stream.Stream;
class LongestWordInFile {
public static void main(String[] args) throws IOException {
Pattern wordSeparator = Patt... | Work with files in close with resources. Extract pattern for better readablity. | Work with files in close with resources. Extract pattern for better readablity.
| Java | apache-2.0 | eggeral/java8-examples |
a063a401c4eac234f38bb58817e28d6a52a69c4d | kbox.kibe/src/main/java/org/aksw/kbox/kibe/DefaultKNSServerList.java | kbox.kibe/src/main/java/org/aksw/kbox/kibe/DefaultKNSServerList.java | package org.aksw.kbox.kibe;
import java.net.MalformedURLException;
import java.net.URL;
import org.aksw.kbox.kns.CustomKNSServerList;
import org.aksw.kbox.kns.KNSServerListVisitor;
public class DefaultKNSServerList extends URLKNSServerList {
// Default KNS table URL
private final static String DEFAULT_KNS_TABLE_... | package org.aksw.kbox.kibe;
import java.net.MalformedURLException;
import java.net.URL;
import org.aksw.kbox.kns.CustomKNSServerList;
import org.aksw.kbox.kns.KNSServerListVisitor;
public class DefaultKNSServerList extends URLKNSServerList {
// Default KNS table URL
// private final static String DEFAULT_KNS_TABL... | Add temporary default KNS table URL | Add temporary default KNS table URL
| Java | apache-2.0 | AKSW/KBox,AKSW/KBox |
fca63525158321e5a5f0ff67a8796992a7347c73 | src/main/java/com/google/devtools/build/lib/ssd/SsdOptions.java | src/main/java/com/google/devtools/build/lib/ssd/SsdOptions.java | // Copyright 2016 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | // Copyright 2016 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | Switch the default for --experimental_multi_threaded_digest | Switch the default for --experimental_multi_threaded_digest
It looks like this is fairly widely used now, and we recommend users who are still on spinning platters to upgrade their workstation. :-P
Progress on #6345.
PiperOrigin-RevId: 262317072
| Java | apache-2.0 | cushon/bazel,akira-baruah/bazel,davidzchen/bazel,dslomov/bazel,dslomov/bazel-windows,werkt/bazel,meteorcloudy/bazel,aehlig/bazel,werkt/bazel,katre/bazel,safarmer/bazel,davidzchen/bazel,ButterflyNetwork/bazel,twitter-forks/bazel,aehlig/bazel,aehlig/bazel,bazelbuild/bazel,perezd/bazel,perezd/bazel,twitter-forks/bazel,dsl... |
daa5d468565f7a57d2f2b2f09be854d39d82f7c5 | src/main/java/net/hillsdon/reviki/jira/renderer/JiraLinkHandler.java | src/main/java/net/hillsdon/reviki/jira/renderer/JiraLinkHandler.java | package net.hillsdon.reviki.jira.renderer;
import net.hillsdon.reviki.vc.PageReference;
import net.hillsdon.reviki.wiki.renderer.creole.LinkParts;
import net.hillsdon.reviki.wiki.renderer.creole.LinkResolutionContext;
import net.hillsdon.reviki.wiki.renderer.creole.SimpleLinkHandler;
public class JiraLinkHandler exte... | package net.hillsdon.reviki.jira.renderer;
import net.hillsdon.reviki.wiki.renderer.creole.LinkParts;
import net.hillsdon.reviki.wiki.renderer.creole.LinkResolutionContext;
import net.hillsdon.reviki.wiki.renderer.creole.SimpleLinkHandler;
public class JiraLinkHandler extends SimpleLinkHandler {
public JiraLinkHan... | Correct method signature to match changes to Reviki. | Correct method signature to match changes to Reviki.
| Java | apache-2.0 | CoreFiling/reviki-jira-plugin,CoreFiling/reviki-jira-plugin,CoreFiling/reviki-jira-plugin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.