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 |
|---|---|---|---|---|---|---|---|---|---|
a243af2d85d1250bf722abb3b523b8d49ddeaffc | archaius-core/src/test/java/com/netflix/config/CascadedPropertiesWithDeploymentContextTest.java | archaius-core/src/test/java/com/netflix/config/CascadedPropertiesWithDeploymentContextTest.java | package com.netflix.config;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class CascadedPropertiesWithDeploymentContextTest {
@Test
public void testLoadCascadedPropertiesConfigDeployment() throws Exception {
ConfigurationBasedDeploymentContext context = new Configuration... | package com.netflix.config;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class CascadedPropertiesWithDeploymentContextTest {
//@Test
public void testLoadCascadedPropertiesConfigDeployment() throws Exception {
ConfigurationManager.getConfigInstance().setProperty("archaiu... | Comment out test for loading deployment context until the load order can be fixed. | Comment out test for loading deployment context until the load order can be fixed.
| Java | apache-2.0 | brharrington/archaius,gorzell/archaius,elandau/archaius,gorzell/archaius,vivekasingh/archaius,bondj/archaius,Netflix/archaius,tbak/archaius,fengshao0907/archaius,InfomediaLtd/archaius,ouyangkongtong/archaius,gorcz/archaius,brharrington/archaius,howardyuan/archaius,yonglehou/archaius,gorzell/archaius,tbak/archaius,Netfl... |
ddfc5afdd2daeb48125dff97ec8080e27021c4a2 | src/com/jefftharris/passwdsafe/GuiUtils.java | src/com/jefftharris/passwdsafe/GuiUtils.java | /*
* Copyright (©) 2010 Jeff Harris <jefftharris@gmail.com>
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
package com... | /*
* Copyright (©) 2010 Jeff Harris <jefftharris@gmail.com>
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
package com... | Fix NPE when starting to edit a record | Fix NPE when starting to edit a record
Return null if no object is selected in the spinner.
| Java | artistic-2.0 | tml/passwdsafe-code |
824786cfadc23b012c96f26ccab0ce88f28d91bf | core/deployment/src/main/java/io/quarkus/deployment/steps/SubstrateSystemPropertiesBuildStep.java | core/deployment/src/main/java/io/quarkus/deployment/steps/SubstrateSystemPropertiesBuildStep.java | package io.quarkus.deployment.steps;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.nio.charset.StandardCharsets;
import java.util.List;
import java.util.Properties;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.Archive... | package io.quarkus.deployment.steps;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.nio.charset.StandardCharsets;
import java.util.List;
import java.util.Properties;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.Archive... | Check both key and value, throw error only if values differ | Check both key and value, throw error only if values differ
| Java | apache-2.0 | quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus |
2da5453ec13221c663f1898a55f65de6aa4d9d74 | commons/src/main/java/org/wikimedia/commons/contributions/ContributionViewHolder.java | commons/src/main/java/org/wikimedia/commons/contributions/ContributionViewHolder.java | package org.wikimedia.commons.contributions;
import android.view.View;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import org.wikimedia.commons.R;
class ContributionViewHolder {
final ImageView imageView;
final TextView titleView;
final TextView stat... | package org.wikimedia.commons.contributions;
import android.view.View;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import org.wikimedia.commons.MediaWikiImageView;
import org.wikimedia.commons.R;
class ContributionViewHolder {
final MediaWikiImageView imageV... | Make the ImageView to be of the specific type | Make the ImageView to be of the specific type
Change-Id: I51ced26ea0b654457919d915e322d91eb211f781
| Java | apache-2.0 | nicolas-raoul/apps-android-commons,domdomegg/apps-android-commons,misaochan/apps-android-commons,chaosbastler/apps-android-commons,tobias47n9e/apps-android-commons,chaosbastler/apps-android-commons,johnjohndoe/apps-android-commons,dbrant/apps-android-commons,psh/apps-android-commons,neslihanturan/apps-android-commons,m... |
a4d890a77d3221241e627d72505d786d2d653186 | src/main/java/com/google/sps/data/Login.java | src/main/java/com/google/sps/data/Login.java | // You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// S... | // You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// S... | Add email feature to the login class. | Add email feature to the login class.
| Java | apache-2.0 | googleinterns/step230-2020,googleinterns/step230-2020,googleinterns/step230-2020 |
a2ca78c4c0250e5688c63714f4e4517367ecd9c6 | src/main/markharder/potatohead/PotatoHead.java | src/main/markharder/potatohead/PotatoHead.java | package markharder.potatohead;
import javax.swing.JComponent;
import javax.swing.JFrame;
/**
* A potato head accessorizor
*
* @author Mark Harder
* @version 1.0
*/
public class PotatoHead extends JComponent {
public static PotatoHead spud;
public PotatoHead() {
}
/**
* The entrypoint, crea... | package markharder.potatohead;
import javax.swing.JComponent;
import javax.swing.JFrame;
import java.awt.Graphics;
import java.awt.Color;
/**
* A potato head accessorizor
*
* @author Mark Harder
* @version 1.0
*/
public class PotatoHead extends JComponent {
public static PotatoHead spud;
public PotatoHe... | Set up a basic window | Set up a basic window
| Java | mit | MarkHarder/PotatoHead |
2534e20b372e5916a977d9ebf28172e393127812 | src/org/jcodegen/java/FunctionArgument.java | src/org/jcodegen/java/FunctionArgument.java | package org.jcodegen.java;
/**
* ...
*/
public class FunctionArgument {
private final String name;
private final String type;
private final boolean isFinal;
public FunctionArgument(final String type, final String name) {
this(type, name, true);
}
public FunctionArgument(final String... | package org.jcodegen.java;
/**
* ...
*/
public class FunctionArgument {
private final String name;
private final String type;
private final boolean isFinal;
public FunctionArgument(final String type, final String name) {
this(type, name, true);
}
public FunctionArgument(final String... | Add getters for constructor parameters | Add getters for constructor parameters
| Java | apache-2.0 | cpythoud/java-codegen |
2b758a029f822bf1b6feda99d82fac5260542666 | src/main/java-template/com/github/koraktor/mavanagaiata/mojo/TemplateGitInfoClass.java | src/main/java-template/com/github/koraktor/mavanagaiata/mojo/TemplateGitInfoClass.java | /**
* Generated by Mavanagaiata ${MAVANAGAIATA_VERSION} at ${TIMESTAMP}
*/
package ${PACKAGE_NAME};
public final class ${CLASS_NAME} {
public static final String COMMIT_ABBREV = "${COMMIT_ABBREV}";
public static final String COMMIT_SHA = "${COMMIT_SHA}";
public static final String DESCRIBE = "${DESCR... | /**
* Generated by Mavanagaiata ${MAVANAGAIATA_VERSION} at ${TIMESTAMP}
*/
package ${PACKAGE_NAME};
public final class ${CLASS_NAME} {
public static final String BRANCH = "${BRANCH}";
public static final String COMMIT_ABBREV = "${COMMIT_ABBREV}";
public static final String COMMIT_SHA = "${COMMIT_SHA}... | Use the BRANCH property in the built-in class template | Use the BRANCH property in the built-in class template
| Java | bsd-3-clause | koraktor/mavanagaiata |
47ec9114b868972d1a1c0f95a05eb110438f3568 | vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/DocumentApiApplicationTest.java | vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/DocumentApiApplicationTest.java | package com.yahoo.document.restapi;
import com.yahoo.application.Application;
import com.yahoo.application.Networking;
import org.junit.Test;
/**
* @author bratseth
*/
public class DocumentApiApplicationTest {
/** Test that it is possible to instantiate an Application with a document-api */
@Test
publi... | package com.yahoo.document.restapi;
import com.yahoo.application.Application;
import com.yahoo.application.Networking;
import org.junit.Test;
import java.io.IOException;
import java.net.ServerSocket;
/**
* @author bratseth
*/
public class DocumentApiApplicationTest {
/** Test that it is possible to instantiat... | Make test not require port 4080 to be available. | Make test not require port 4080 to be available.
| Java | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
2a50ed1ea358feb24d0388ec2b3b1f49cb4cd5d7 | src/aya/CallStack.java | src/aya/CallStack.java | package aya;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Stack;
import aya.instruction.variable.GetVariableInstruction;
/**
* Utility class for tracing function calls during Aya execution
* @author npaul
*
*/
public class CallStack {
private Stack<GetVariableInstruction> _stack;
... | package aya;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Stack;
import aya.instruction.variable.GetVariableInstruction;
/**
* Utility class for tracing function calls during Aya execution
* @author npaul
*
*/
public class CallStack {
private Stack<GetVariableInstruction> _stack;
... | Fix extra spaces after callstack print | Fix extra spaces after callstack print
| Java | mit | nick-paul/element-lang,nick-paul/aya-lang |
80f95f92bde7a9043283c1b7e466796463ccd398 | src/math/DivideByZeroException.java | src/math/DivideByZeroException.java | package math;
public class DivideByZeroException
extends
Exception
{
public DivideByZeroException(String reason){
super(reason);
}
public DivideByZeroException(){
super();
}
public String printException(){
return "Divide by zero!";
}
}
| package math;
public class DivideByZeroException
extends
Exception
{
/**
*
*/
private static final long serialVersionUID = 1L;
/*
* @param String reason
* @purpose calls super constructor of same param
*/
public DivideByZeroException(String reason){
super(reason);
} // DivideB... | Add comments for custom exception | Add comments for custom exception
| Java | apache-2.0 | nguyengi/csc207-hw4 |
70a11d6412e4c25acda647cacb239fe8b12e3d45 | jmx/src/main/java/com/proofpoint/jmx/NetUtils.java | jmx/src/main/java/com/proofpoint/jmx/NetUtils.java | /*
* Copyright 2010 Proofpoint, 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 agree... | /*
* Copyright 2010 Proofpoint, 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 agree... | Use try-with-resources instead of try/finally | Use try-with-resources instead of try/finally
| Java | apache-2.0 | gwittel/platform,johngmyers/platform,proofpoint/platform,gwittel/platform,proofpoint/platform,johngmyers/platform,proofpoint/platform,gwittel/platform,johngmyers/platform |
cccf1def2afe86ab2bf1bc387fb27b5ebe874638 | lookup.java | lookup.java | import java.util.*;
import org.xbill.DNS.*;
public class lookup {
public static void
printAnswer(String name, Lookup lookup) {
System.out.print(name + ":");
int result = lookup.getResult();
if (result != Lookup.SUCCESSFUL)
System.out.print(" " + lookup.getErrorString());
System.out.println();
if (lookup.getRes... | import java.util.*;
import org.xbill.DNS.*;
public class lookup {
public static void
printAnswer(String name, Lookup lookup) {
System.out.print(name + ":");
int result = lookup.getResult();
if (result != Lookup.SUCCESSFUL)
System.out.print(" " + lookup.getErrorString());
System.out.println();
Name [] aliases =... | Print a list of aliases, if any exist. | Print a list of aliases, if any exist.
| Java | bsd-2-clause | unchiujar/dnsjavap2p |
86e67a483c6e1a11a6f3a4ff38dd9af656410864 | jdbc/howto/idgeneration/src/main/java/example.springdata/jdbc/howto/idgeneration/IdGenerationApplication.java | jdbc/howto/idgeneration/src/main/java/example.springdata/jdbc/howto/idgeneration/IdGenerationApplication.java | package example.springdata.jdbc.howto.idgeneration;
import java.util.UUID;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.data.relational.core.mapping.event.BeforeSav... | package example.springdata.jdbc.howto.idgeneration;
import java.util.UUID;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.data.relational.core.mapping.event.BeforeCon... | Use BeforeConvertCallback to generate entity identifiers. | Use BeforeConvertCallback to generate entity identifiers.
Related ticket: https://github.com/spring-projects/spring-data-relational/issues/1232
See #636
| Java | apache-2.0 | spring-projects/spring-data-examples,spring-projects/spring-data-examples,spring-projects/spring-data-examples |
610b3489bc31db8b2bb5401dc1c51d801984d8a0 | library/src/main/java/com/novoda/downloadmanager/WaitForDownloadServiceThenPerform.java | library/src/main/java/com/novoda/downloadmanager/WaitForDownloadServiceThenPerform.java | package com.novoda.downloadmanager;
import android.support.annotation.Nullable;
import com.novoda.notils.logger.simple.Log;
final class WaitForDownloadServiceThenPerform {
interface Action<T> {
T performAction();
}
private WaitForDownloadServiceThenPerform() {
// Uses static factory met... | package com.novoda.downloadmanager;
import android.support.annotation.Nullable;
import com.novoda.notils.logger.simple.Log;
final class WaitForDownloadServiceThenPerform {
interface Action<T> {
T performAction();
}
private WaitForDownloadServiceThenPerform() {
// Uses static factory met... | Add conditional before wait statement in synchronize block. | Add conditional before wait statement in synchronize block.
| Java | apache-2.0 | novoda/download-manager |
c4f0c32e3454cc1ff54564901acc4efdf81ce466 | presentation/src/main/java/com/fernandocejas/android10/sample/presentation/internal/di/modules/ActivityModule.java | presentation/src/main/java/com/fernandocejas/android10/sample/presentation/internal/di/modules/ActivityModule.java | /**
* Copyright (C) 2015 android10.org. All rights reserved.
* @author Fernando Cejas (the android10 coder)
*/
package com.fernandocejas.android10.sample.presentation.internal.di.modules;
import android.app.Activity;
import android.content.Context;
import com.fernandocejas.android10.sample.presentation.internal.di.... | /**
* Copyright (C) 2015 android10.org. All rights reserved.
* @author Fernando Cejas (the android10 coder)
*/
package com.fernandocejas.android10.sample.presentation.internal.di.modules;
import android.app.Activity;
import com.fernandocejas.android10.sample.presentation.internal.di.PerActivity;
import dagger.Modul... | Remove unused Context provide method. | Remove unused Context provide method. | Java | apache-2.0 | lalongooo/Android-CleanArchitecture,bkoruznjak/Android-CleanArchitecture,andych008/Android-CleanArchitecture,simple88/Android-CleanArchitecture,davidleen/Android-CleanArchitecture,cafedeaqua/Android-CleanArchitecture,ruhaly/Android-CleanArchitecture,JuudeDemos/Android-CleanArchitecture,vsvankhede/Android-CleanArchitect... |
81d70d5870b44c90bc3723d756530a5621fb2494 | app/src/test/java/com/google/android/stardroid/units/LatLongRoboTest.java | app/src/test/java/com/google/android/stardroid/units/LatLongRoboTest.java | package com.google.android.stardroid.units;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import static junit.framework.Assert.assertEquals;
/**
* Tests that require roboelectric for API calls.
*/
@RunWith(RobolectricTestRunner.class)
public class LatLongRobo... | package com.google.android.stardroid.units;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import static junit.framework.Assert.assertEquals;
/**
* Tests that require roboelectric for API calls.
*/
@RunWith(Robolectric... | Add one more test for lat long fix. | Add one more test for lat long fix.
| Java | apache-2.0 | sky-map-team/stardroid,sky-map-team/stardroid,barbeau/stardroid,jaydeetay/stardroid,heychirag/stardroid,barbeau/stardroid,srtanzim/Cosmic-Iris,sky-map-team/stardroid,sky-map-team/stardroid,jaydeetay/stardroid,srtanzim/Cosmic-Iris,srtanzim/Cosmic-Iris,barbeau/stardroid,sky-map-team/stardroid,jaydeetay/stardroid,heychira... |
def41e4153d12354b0dd0d18f93c38e846474ca7 | src/main/java/pipe/actions/file/CreateAction.java | src/main/java/pipe/actions/file/CreateAction.java | package pipe.actions.file;
import pipe.gui.ApplicationSettings;
import pipe.views.PipeApplicationView;
import java.awt.event.ActionEvent;
public class CreateAction extends FileAction {
public CreateAction() {
super("New", "Create a new Petri net", "ctrl N");
}
@Override
public void actionPe... | package pipe.actions.file;
import pipe.controllers.PipeApplicationController;
import pipe.gui.ApplicationSettings;
import pipe.views.PipeApplicationView;
import java.awt.event.ActionEvent;
public class CreateAction extends FileAction {
public CreateAction() {
super("New", "Create a new Petri net", "ctrl... | Fix bug when pressing new | Fix bug when pressing new
* Now tell ApplicationController to create Empty PetriNet
| Java | mit | frig-neutron/PIPE,sarahtattersall/PIPE,sjdayday/PIPE |
778070f1791de57bc51dd84b43278091bc4850fc | config-provisioning/src/main/java/com/yahoo/config/provision/NodeType.java | config-provisioning/src/main/java/com/yahoo/config/provision/NodeType.java | package com.yahoo.config.provision;
/**
* The possible types of nodes in the node repository
*
* @author bratseth
*/
public enum NodeType {
/** A host of a set of (docker) tenant nodes */
host,
/** Nodes running the shared proxy layer */
proxy,
/** A node to be assigned to a tenant to run a... | package com.yahoo.config.provision;
/**
* The possible types of nodes in the node repository
*
* @author bratseth
*/
public enum NodeType {
/** A host of a set of (docker) tenant nodes */
host,
/** Nodes running the shared proxy layer */
proxy,
/** A node to be assigned to a tenant to run a... | Add node type for config server | Add node type for config server
| Java | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
447aa15c575963b336fe7e56915c925fdd371b8a | heat-client/src/main/java/com/woorea/openstack/heat/ResourcesResource.java | heat-client/src/main/java/com/woorea/openstack/heat/ResourcesResource.java | package com.woorea.openstack.heat;
import com.woorea.openstack.base.client.HttpMethod;
import com.woorea.openstack.base.client.OpenStackClient;
import com.woorea.openstack.base.client.OpenStackRequest;
import com.woorea.openstack.heat.model.Resources;
/**
* v1/{tenant_id}/stacks/{stack_name}/resources
*/
publi... | package com.woorea.openstack.heat;
import com.woorea.openstack.base.client.HttpMethod;
import com.woorea.openstack.base.client.OpenStackClient;
import com.woorea.openstack.base.client.OpenStackRequest;
import com.woorea.openstack.heat.model.Resources;
/**
* v1/{tenant_id}/stacks/{stack_name}/resources
*/
publi... | Remove obsolete list resources functions | Remove obsolete list resources functions
| Java | apache-2.0 | krishnabrucelee/Cloud-stack-Api,CIETstudents/Cinder-Krishna-Mona,CIETstudents/openstack-maven-CIET-students,krishnabrucelee/ceilometerModel-Krishna,CIETstudents/Swift-Model-Mona,KizuRos/openstack-java-sdk,krishnabrucelee/OpenStack-Nova-Client,zhimin711/openstack-java-sdk,vmturbo/openstack-java-sdk,krishnabrucelee/Libra... |
e2f5cc196bc659737756a9f99369027b9760e8f2 | app/src/main/java/com/bkp/minerva/Minerva.java | app/src/main/java/com/bkp/minerva/Minerva.java | package com.bkp.minerva;
import android.app.Application;
import android.content.Context;
import com.karumi.dexter.Dexter;
/**
* Custom Application class.
*/
public class Minerva extends Application {
/**
* Static instance to (CAREFULLY) allow getting Application Context anywhere.
*/
private static... | package com.bkp.minerva;
import android.app.Application;
import android.content.Context;
import com.karumi.dexter.Dexter;
import io.realm.Realm;
import io.realm.RealmConfiguration;
/**
* Custom Application class.
*/
public class Minerva extends Application {
/**
* Static instance to (CAREFULLY) allow getti... | Set a default realm config | Set a default realm config
| Java | apache-2.0 | bkromhout/Minerva |
4d2bf7028da05710cfba49a5ba8fecbe07de167d | org/postgresql/util/PSQLDriverVersion.java | org/postgresql/util/PSQLDriverVersion.java | /*-------------------------------------------------------------------------
*
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgjdbc/org/postgresql/util/PSQLDriverVersion.java,v 1.21 2006/12/01 12:06:21 jurka Exp $
*
*---------------------------------------------------... | /*-------------------------------------------------------------------------
*
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgjdbc/org/postgresql/util/PSQLDriverVersion.java,v 1.22 2007/07/31 06:05:43 jurka Exp $
*
*---------------------------------------------------... | Prepare for release for 8.3dev-601. | Prepare for release for 8.3dev-601.
| Java | bsd-3-clause | element-doo/postgresql-jdbc,element-doo/postgresql-jdbc |
56c7434c2a0ea58f8de995690d0165ee0d4c4bdd | src/com/bitgrind/android/SpatialiteTestActivity.java | src/com/bitgrind/android/SpatialiteTestActivity.java | package com.bitgrind.android;
import java.util.Arrays;
import jsqlite.Callback;
import jsqlite.Exception;
import android.app.Activity;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
public class SpatialiteTestActivity extends Activity {
private static final String TAG = Spatial... | package com.bitgrind.android;
import java.util.Arrays;
import jsqlite.Callback;
import jsqlite.Exception;
import android.app.Activity;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
public class SpatialiteTestActivity extends Activity {
private static final String TAG = Spatiali... | Test Activity: Restore the full test with sample db since it causes SIGSEGV :-( | Test Activity: Restore the full test with sample db since it causes SIGSEGV :-(
| Java | apache-2.0 | DisyInformationssysteme/android-spatialite,DisyInformationssysteme/android-spatialite,DisyInformationssysteme/android-spatialite,DisyInformationssysteme/android-spatialite,DisyInformationssysteme/android-spatialite |
dcb23296d7f38defbd7f385d98e4926a3054ee20 | src/main/com/faveset/khttp/StateHandler.java | src/main/com/faveset/khttp/StateHandler.java | // Copyright 2014, Kevin Ko <kevin@faveset.com>
package com.faveset.khttp;
import java.nio.ByteBuffer;
/**
* Note that all implementations may be initialized statically and thus
* should be stateless.
*/
interface StateHandler {
/**
* Performs a step of the state machine when reading new data from the
... | // Copyright 2014, Kevin Ko <kevin@faveset.com>
package com.faveset.khttp;
import java.nio.ByteBuffer;
/**
* Note that all implementations may be initialized statically and thus
* should be stateless.
*/
interface StateHandler {
/**
* Performs a step of the state machine when reading new data from the
... | Update comments for thrown exceptions. | Update comments for thrown exceptions.
| Java | bsd-3-clause | kevinko/mahttp,kevinko/mahttp |
3e683e4ab0a606bcd4a841acabb9f47c4d2be79c | src/main/java/gsg/infrastructure/Utils.java | src/main/java/gsg/infrastructure/Utils.java | package gsg.infrastructure;
import gsg.threads.IJob;
import gsg.threads.JobRunner;
import gsg.threads.JobRunnerConfiguration;
/**
* @author zkejid@gmail.com
* Created: 23.07.15 9:37
*/
public class Utils {
public static String getMessage(String line) {
final int i = line.indexOf(" ");
if (i > -1 && i... | package gsg.infrastructure;
import gsg.threads.IJob;
import gsg.threads.JobRunner;
import gsg.threads.JobRunnerConfiguration;
/**
* @author zkejid@gmail.com
* Created: 23.07.15 9:37
*/
public class Utils {
public static String getMessage(String line) {
final int i = line.indexOf(" ");
if (i > -1 && i... | Set default configuration value of JobRunner.doLog to false | Set default configuration value of JobRunner.doLog to false
| Java | apache-2.0 | cor-serpentis/server |
f85063868643ae24a2548d82932253889bfe3799 | view/src/net/katsuster/strview/ui/Main.java | view/src/net/katsuster/strview/ui/Main.java | package net.katsuster.strview.ui;
import java.awt.HeadlessException;
import javax.swing.*;
import net.katsuster.strview.io.*;
import net.katsuster.strview.gui.*;
/**
* メインクラス。
*/
public class Main {
protected Main() {
//do nothing
}
public static void main(String[] args) {
FileDropWin... | package net.katsuster.strview.ui;
import java.util.*;
import java.io.*;
import java.awt.HeadlessException;
import javax.swing.*;
import net.katsuster.strview.io.*;
import net.katsuster.strview.gui.*;
import net.katsuster.strview.media.ts.*;
/**
* メインクラス。
*/
public class Main {
protected Main() {
//do ... | Add tentative test codes for MPEG2-TS packet parser. | Add tentative test codes for MPEG2-TS packet parser.
| Java | apache-2.0 | katsuster/strview |
5b185a8205f26e51bec190d8c356ecd754f5fe44 | src/main/java/starpunk/screens/BaseScreen.java | src/main/java/starpunk/screens/BaseScreen.java | package starpunk.screens;
import com.badlogic.gdx.Screen;
import starpunk.StarPunkGame;
public abstract class BaseScreen
implements Screen
{
private final StarPunkGame _game;
protected BaseScreen( final StarPunkGame game )
{
_game = game;
}
protected final StarPunkGame getGame()
{
return _game... | package starpunk.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import starpunk.StarPunkGame;
public abstract class BaseScreen
implements Screen
{
private final StarPunkGame _game;
protected BaseScreen( final StarPunkGame game )
{
_game = game;
}
protected final StarPunkGame g... | Introduce some logging in screens to aid in the debugging | Introduce some logging in screens to aid in the debugging
| Java | apache-2.0 | realityforge-experiments/star-punk,realityforge-experiments/star-punk,realityforge-experiments/star-punk |
55e52b3f4c14b0751316a471f66f0cbdb7a5ac88 | src/test/java/simplepool/TestPoolImpl.java | src/test/java/simplepool/TestPoolImpl.java | /**
* Copyright 2015 Peter Nerg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | /**
* Copyright 2015 Peter Nerg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Test to get single instance in PoolImpl | Test to get single instance in PoolImpl | Java | apache-2.0 | pnerg/simple-pool |
16ebf003c1cbdca15295532dcba975c863c5a9dd | src/main/java/net/towerwarz/GameInstance.java | src/main/java/net/towerwarz/GameInstance.java | package net.towerwarz;
import net.towerwarz.exception.UnknownObjectException;
import java.util.Arrays;
/**
* TowerWarZ
* Created by xiurobert on 2/14/2016.
*/
/**
* This file is the init file and contains functions to set and retrieve certain game properties
*/
public class GameInstance {
private int Wave... | package net.towerwarz;
import net.towerwarz.exception.UnknownObjectException;
import java.util.Arrays;
/**
* TowerWarZ
* Created by xiurobert on 2/14/2016.
*/
/**
* This file is the init file and contains functions to set and retrieve certain game properties
*/
public class GameInstance {
private int Wave... | Revert "added constructor to gameInstance.java" | Revert "added constructor to gameInstance.java"
| Java | mit | xiurobert/TowerWarZ,xiurobert/TowerWarZ |
ac84ee09b3232972a200d07b562eec540edd8137 | src/test/java/com/cloudbees/plugins/deployer/casc/ConfigurationAsCodeTest.java | src/test/java/com/cloudbees/plugins/deployer/casc/ConfigurationAsCodeTest.java | package com.cloudbees.plugins.deployer.casc;
import com.cloudbees.plugins.deployer.DeployNowColumn;
import hudson.model.View;
import io.jenkins.plugins.casc.misc.ConfiguredWithCode;
import io.jenkins.plugins.casc.misc.JenkinsConfiguredWithCodeRule;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
impor... | package com.cloudbees.plugins.deployer.casc;
import com.cloudbees.plugins.deployer.DeployNowColumn;
import hudson.model.View;
import io.jenkins.plugins.casc.misc.ConfiguredWithCode;
import io.jenkins.plugins.casc.misc.JenkinsConfiguredWithCodeRule;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;... | Simplify test code for jcasc support | Simplify test code for jcasc support
| Java | mit | jenkinsci/deployer-framework-plugin,jenkinsci/deployer-framework-plugin,jenkinsci/deployer-framework-plugin |
4c63177e7f3014d07c558187616a98a307405965 | BackendUtilities/src/main/java/gr/demokritos/iit/ydsapi/model/ComponentType.java | BackendUtilities/src/main/java/gr/demokritos/iit/ydsapi/model/ComponentType.java | package gr.demokritos.iit.ydsapi.model;
import java.util.HashSet;
import java.util.Set;
/**
* accepted component types.
*
* @author George K. <gkiom@iit.demokritos.gr>
*/
public enum ComponentType {
LINE("line"), SCATTER("scatter"), PIE("pie"), BAR("bar"), TREE("tree"), MAP("map"), GRID("grid"), RESULT("resu... | package gr.demokritos.iit.ydsapi.model;
import java.util.HashSet;
import java.util.Set;
/**
* accepted component types.
*
* @author George K. <gkiom@iit.demokritos.gr>
*/
public enum ComponentType {
LINE("line"), SCATTER("scatter"), BUBBLE("bubble"), PIE("pie"), BAR("bar"), TREE("tree"), MAP("map"), GRID("gr... | Add support for bubble charts in Backend Utilities | Add support for bubble charts in Backend Utilities
| Java | apache-2.0 | YourDataStories/components-visualisation,YourDataStories/components-visualisation,YourDataStories/components-visualisation |
fb5705e8b3d834575c47fe0d070c06bf4d02cd11 | gremlin-core/src/main/java/com/tinkerpop/gremlin/structure/io/graphson/GraphSONObjectMapper.java | gremlin-core/src/main/java/com/tinkerpop/gremlin/structure/io/graphson/GraphSONObjectMapper.java | package com.tinkerpop.gremlin.structure.io.graphson;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.ser.DefaultSerializerProvider;
import java.util.Optional... | package com.tinkerpop.gremlin.structure.io.graphson;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.ser.DefaultSerializerProvider;
import java.util.Optional... | Configure dynamic serializer loader for GraphSON | Configure dynamic serializer loader for GraphSON
| Java | apache-2.0 | apache/tinkerpop,pluradj/incubator-tinkerpop,apache/incubator-tinkerpop,krlohnes/tinkerpop,n-tran/incubator-tinkerpop,jorgebay/tinkerpop,robertdale/tinkerpop,gdelafosse/incubator-tinkerpop,RussellSpitzer/incubator-tinkerpop,robertdale/tinkerpop,vtslab/incubator-tinkerpop,Lab41/tinkerpop3,edgarRd/incubator-tinkerpop,krl... |
797815f0927078072fe16ac4f54571ee3884f35b | beaform-core/src/test/java/beaform/utilities/SystemTimeTest.java | beaform-core/src/test/java/beaform/utilities/SystemTimeTest.java | package beaform.utilities;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class SystemTimeTest {
@Test
public void testDefaultTimeSource() {
final long start = System.currentTimeMillis();
final long tested = SystemTime.getAsLong();
final long end = System.currentTimeMillis();
as... | package beaform.utilities;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class SystemTimeTest {
@Test
public void testDefaultTimeSource() {
final long start = System.currentTimeMillis();
final long tested = SystemTime.getAsLong();
final long end = System.currentTimeMillis();
as... | Move the actual assertion to the test | Move the actual assertion to the test
| Java | mit | stevenpost/beaform |
5390365d22c485c2fcbf787b7adebf08bec7d6c4 | projects/OG-Language/Client/src/com/opengamma/language/identifier/ExternalSchemeRankConverter.java | projects/OG-Language/Client/src/com/opengamma/language/identifier/ExternalSchemeRankConverter.java | /**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.language.identifier;
import com.opengamma.language.convert.AbstractMappedConverter;
import com.opengamma.language.convert.TypeMap;
import com.opengamma.langua... | /**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.language.identifier;
import com.opengamma.language.convert.AbstractMappedConverter;
import com.opengamma.language.convert.TypeMap;
import com.opengamma.langua... | Allow NULL scheme rank conversions. | Allow NULL scheme rank conversions.
| Java | apache-2.0 | codeaudit/OG-Platform,nssales/OG-Platform,DevStreet/FinanceAnalytics,codeaudit/OG-Platform,jeorme/OG-Platform,nssales/OG-Platform,McLeodMoores/starling,nssales/OG-Platform,McLeodMoores/starling,ChinaQuants/OG-Platform,ChinaQuants/OG-Platform,jeorme/OG-Platform,McLeodMoores/starling,nssales/OG-Platform,jerome79/OG-Platf... |
73d7de0374f4c8fb117c3c7a85fd3eb7b0097933 | src/main/java/org/bricolages/streaming/Config.java | src/main/java/org/bricolages/streaming/Config.java | package org.bricolages.streaming;
import lombok.Getter;
import lombok.Setter;
import org.bricolages.streaming.preflight.domains.DomainDefaultValues;
import org.bricolages.streaming.s3.ObjectMapper;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Compon... | package org.bricolages.streaming;
import lombok.Getter;
import lombok.Setter;
import org.bricolages.streaming.s3.ObjectMapper;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List;
@Component
@C... | Delete useless property (I do not clear why it was) | Delete useless property (I do not clear why it was)
| Java | mit | bricolages/bricolage-streaming-preprocessor,bricolages/bricolage-streaming-preprocessor,aamine/bricolage-streaming-preprocessor,aamine/bricolage-streaming-preprocessor |
c4fe8ba123385d0dfe4e0f10b9fa88fc370a56d8 | src/main/java/seedu/address/ui/TaskCard.java | src/main/java/seedu/address/ui/TaskCard.java | package seedu.address.ui;
import javafx.fxml.FXML;
import javafx.scene.Node;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;
import seedu.address.model.task.ReadOnlyTask;
public class TaskCard extends UiPart{
private static final String FXML = "TaskListCard.fxml";
@FXML
private HBox ... | package seedu.address.ui;
import javafx.fxml.FXML;
import javafx.scene.Node;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;
import javafx.scene.paint.Color;
import seedu.address.model.task.ReadOnlyTask;
public class TaskCard extends UiPart{
private static final String FXML = "TaskListCard.fx... | Include task fields into taskcard - index,task,tag,due,priority | Include task fields into taskcard - index,task,tag,due,priority
| Java | mit | CS2103AUG2016-F11-C2/main |
9e548dedc05062cad6665815078a8b4fc7d8b90e | src/main/java/com/github/pedrovgs/problem38/PathToEveryLeaf.java | src/main/java/com/github/pedrovgs/problem38/PathToEveryLeaf.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 recursive solution to problem 38 | Add recursive solution to problem 38
| Java | apache-2.0 | mrgenco/Algorithms-1,JeffreyWei/Algorithms,zmywly8866/Algorithms,007slm/Algorithms,Arkar-Aung/Algorithms,sridhar-newsdistill/Algorithms,AppScientist/Algorithms,jibaro/Algorithms,zhdh2008/Algorithms,ArlenLiu/Algorithms,VeskoI/Algorithms,chengjinqian/Algorithms,Ariloum/Algorithms,inexistence/Algorithms,pedrovgs/Algorithm... |
e55b28bd92f29985b495b0b90b912f74fae3901f | transpiler/java/com/google/j2cl/ast/Statement.java | transpiler/java/com/google/j2cl/ast/Statement.java | /*
* Copyright 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | /*
* Copyright 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Make set/getSourcePosition final on Node. | Make set/getSourcePosition final on Node.
PiperOrigin-RevId: 304549770
| Java | apache-2.0 | google/j2cl,google/j2cl,google/j2cl,google/j2cl,google/j2cl |
41269feab7c5a066b888bd347db143393aad0e6c | tchannel-core/src/main/java/com/uber/tchannel/schemes/DefaultRawRequestHandler.java | tchannel-core/src/main/java/com/uber/tchannel/schemes/DefaultRawRequestHandler.java | /*
* Copyright (c) 2015 Uber Technologies, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, me... | /*
* Copyright (c) 2015 Uber Technologies, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, me... | Make the DefaultRawRequest handler just echo back the request. | Make the DefaultRawRequest handler just echo back the request.
| Java | mit | uber/tchannel-java,cotsog/tchannel-java,uber/tchannel-java,247687009/tchannel-java,shiningguang/tchannel-java |
cafb9fc30d1689b37e0a85cedd0d71cbff834655 | samples/InstanceOfCheck.java | samples/InstanceOfCheck.java | /*
* Copyright 2020 The JSpecify Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | /*
* Copyright 2020 The JSpecify Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | Check `instanceof Foo` instead of `instanceof Object`. | Check `instanceof Foo` instead of `instanceof Object`.
The latter is entirely equivalent to a null check. Thus, if the result
is `false`, tools may want to recognize that the value is `null`.
Perhaps there should be a sample that checks just that, but `instanceof
Object` is rare enough that recognizing it is more of ... | Java | apache-2.0 | jspecify/jspecify |
84d073fbbf31ef7e841637354b8ffc1d778f6751 | app/src/main/java/com/arnaudpiroelle/muzei/marvel/source/command/PublishCommand.java | app/src/main/java/com/arnaudpiroelle/muzei/marvel/source/command/PublishCommand.java | package com.arnaudpiroelle.muzei.marvel.source.command;
import android.content.Context;
import android.content.Intent;
import com.arnaudpiroelle.muzei.marvel.R;
import com.arnaudpiroelle.muzei.marvel.core.inject.Injector;
import com.google.android.apps.muzei.api.Artwork;
import com.google.android.apps.muzei.api.UserC... | package com.arnaudpiroelle.muzei.marvel.source.command;
import android.content.Context;
import android.content.Intent;
import com.arnaudpiroelle.muzei.marvel.R;
import com.arnaudpiroelle.muzei.marvel.core.inject.Injector;
import com.google.android.apps.muzei.api.Artwork;
import com.google.android.apps.muzei.api.UserC... | Fix crash for share image | Fix crash for share image
| Java | apache-2.0 | ArnaudPiroelle/marvel-muzei-android |
7b1a1e030e4cec8dba25b346cba14e256c02f798 | src/main/java/org/littleshoot/proxy/mitm/HostNameMitmManager.java | src/main/java/org/littleshoot/proxy/mitm/HostNameMitmManager.java | package org.littleshoot.proxy.mitm;
import javax.net.ssl.SSLEngine;
import javax.net.ssl.SSLSession;
import org.littleshoot.proxy.MitmManager;
/**
* {@link MitmManager} that uses the given host name to create a dynamic
* certificate for. If a port is given, it will be truncated.
*/
public class HostNameMitmManage... | package org.littleshoot.proxy.mitm;
import javax.net.ssl.SSLEngine;
import javax.net.ssl.SSLSession;
import org.littleshoot.proxy.MitmManager;
/**
* {@link MitmManager} that uses the given host name to create a dynamic
* certificate for. If a port is given, it will be truncated.
*/
public class HostNameMitmManage... | Disable trust all servers by default. | Disable trust all servers by default. | Java | apache-2.0 | ganskef/LittleProxy-mitm |
14a1d5989a66d824d4ff23f02c6b95c0db9e8541 | src/org/traccar/api/ObjectMapperProvider.java | src/org/traccar/api/ObjectMapperProvider.java | /*
* Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | /*
* Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | Change serialization date format again | Change serialization date format again
| Java | apache-2.0 | joseant/traccar-1,AnshulJain1985/Roadcast-Tracker,tsmgeek/traccar,orcoliver/traccar,joseant/traccar-1,jssenyange/traccar,AnshulJain1985/Roadcast-Tracker,duke2906/traccar,stalien/traccar_test,tananaev/traccar,tsmgeek/traccar,ninioe/traccar,vipien/traccar,ninioe/traccar,ninioe/traccar,tsmgeek/traccar,stalien/traccar_test... |
589d7e7aed2caf47c37482e23f97797732ed6d30 | Magic/src/main/java/com/elmakers/mine/bukkit/magic/MobTrigger.java | Magic/src/main/java/com/elmakers/mine/bukkit/magic/MobTrigger.java | package com.elmakers.mine.bukkit.magic;
import javax.annotation.Nonnull;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.Creature;
import org.bukkit.entity.Entity;
import com.elmakers.mine.bukkit.api.magic.Mage;
import com.elmakers.mine.bukkit.api.magic.MageController;
public class Mo... | package com.elmakers.mine.bukkit.magic;
import javax.annotation.Nonnull;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.Creature;
import org.bukkit.entity.Entity;
import com.elmakers.mine.bukkit.api.magic.Mage;
import com.elmakers.mine.bukkit.api.magic.MageController;
public class Mo... | Fix mob trigger infinite recursion | Fix mob trigger infinite recursion
| Java | mit | elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicPlugin |
c17ba89c6c064f875e38618beda28c3f33d993d5 | hawkbit-repository/hawkbit-repository-api/src/main/java/org/eclipse/hawkbit/repository/Identifiable.java | hawkbit-repository/hawkbit-repository-api/src/main/java/org/eclipse/hawkbit/repository/Identifiable.java | /**
* Copyright (c) 2020 Bosch.IO GmbH and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.ecl... | /**
* Copyright (c) 2020 Bosch.IO GmbH and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.ecl... | Use best practise annotation for SAM interfaces in Java 8 | Use best practise annotation for SAM interfaces in Java 8
Signed-off-by: Ammar Bikic <417bcc2872fb8ed5fe45ce0124fb7650d1b6cf9d@bosch.io>
| Java | epl-1.0 | bsinno/hawkbit,eclipse/hawkbit,bsinno/hawkbit,eclipse/hawkbit,eclipse/hawkbit,bsinno/hawkbit,eclipse/hawkbit |
c4460f61de8c96460a92db1bf2fde948dcbde06f | java/java-tests/testData/refactoring/extractMethod/SuggestChangeSignatureSameSubexpressionWholeLine.java | java/java-tests/testData/refactoring/extractMethod/SuggestChangeSignatureSameSubexpressionWholeLine.java | class Node {
String getType() { return ""; }
String foo(Node left, Node right) {
String leftType = left.getType().substring(1);
<selection> String rightType = right.getType().substring(1);
</selection>
String type = "A".substring(1);
return leftType + rightType + type;
}
} | class Node {
String getType() { return ""; }
String foo(Node left, Node right) {
String leftType = left.getType().substring(1);
<selection> String rightType = right.getType().substring(1); //line comment
</selection>
String type = "A".substring(1);
return leftType + rightType + t... | Trim surrounding whitespaces because they don't survive in the refactoring - test data fixed (IDEA-191738) | Java: Trim surrounding whitespaces because they don't survive in the refactoring - test data fixed (IDEA-191738)
| Java | apache-2.0 | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... |
87e350b298820056900ae6bfb6150862f988d886 | lttng/org.lttng.scope.lttng.kernel.core/src/org/lttng/scope/lttng/kernel/core/activator/internal/Activator.java | lttng/org.lttng.scope.lttng.kernel.core/src/org/lttng/scope/lttng/kernel/core/activator/internal/Activator.java | /*
* Copyright (C) 2017 EfficiOS Inc., Alexandre Montplaisir <alexmonthy@efficios.com>
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
* accompanies this distribution, and is available at
* http://www.eclipse.org/le... | /*
* Copyright (C) 2017 EfficiOS Inc., Alexandre Montplaisir <alexmonthy@efficios.com>
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
* accompanies this distribution, and is available at
* http://www.eclipse.org/le... | Disable the built-in LTTng-Analyses connectors | Disable the built-in LTTng-Analyses connectors
Too annoying when developping, we'll bring them back later.
Signed-off-by: Alexandre Montplaisir <0b9d8e7da097b5bbfe36e48cca5acfe475f18227@efficios.com>
| Java | epl-1.0 | lttng/lttng-scope,alexmonthy/lttng-scope,alexmonthy/lttng-scope,lttng/lttng-scope,lttng/lttng-scope,lttng/lttng-scope,alexmonthy/lttng-scope |
13c2e3b942e750b9d221f8abb6c49dddf432c0ec | plugin/sharedMountPointPrimaryStorage/src/main/java/org/zstack/storage/primary/smp/BackupStorageKvmUploader.java | plugin/sharedMountPointPrimaryStorage/src/main/java/org/zstack/storage/primary/smp/BackupStorageKvmUploader.java | package org.zstack.storage.primary.smp;
import org.zstack.header.core.Completion;
/**
* Created by xing5 on 2016/3/27.
*/
public abstract class BackupStorageKvmUploader {
public abstract void uploadBits(String bsPath, String psPath, Completion completion);
}
| package org.zstack.storage.primary.smp;
import org.zstack.header.core.ReturnValueCompletion;
/**
* Created by xing5 on 2016/3/27.
*/
public abstract class BackupStorageKvmUploader {
// When uploading an image from 'psPath' to backup storage, the 'bsPath'
// might be allocated by the backup storage ... | Update the method signature of 'uploadBits()' | Update the method signature of 'uploadBits()'
Signed-off-by: David Lee <15c338f3b79a63a0d5423e9c6562cd312918fe74@gmail.com>
| Java | apache-2.0 | AlanJinTS/zstack,AlanJager/zstack,liningone/zstack,hhjuliet/zstack,MaJin1996/zstack,zsyzsyhao/zstack,Alvin-Lau/zstack,AlanJager/zstack,zstackio/zstack,MatheMatrix/zstack,camilesing/zstack,WangXijue/zstack,Alvin-Lau/zstack,zxwing/zstack-1,mingjian2049/zstack,HeathHose/zstack,HeathHose/zstack,AlanJinTS/zstack,AlanJinTS/z... |
6e90428bbb15b1614a586b063f9feb03b0cad10f | BaragonService/src/main/java/com/hubspot/baragon/service/edgecache/cloudflare/client/CloudflareClientException.java | BaragonService/src/main/java/com/hubspot/baragon/service/edgecache/cloudflare/client/CloudflareClientException.java | package com.hubspot.baragon.service.edgecache.cloudflare.client;
public class CloudflareClientException extends Exception {
public CloudflareClientException(String message, Throwable t) {
super(message, t);
}
}
| package com.hubspot.baragon.service.edgecache.cloudflare.client;
public class CloudflareClientException extends Exception {
public CloudflareClientException(String message, Throwable t) {
super(message, t);
}
public CloudflareClientException(String message) {
super(message);
}
}
| Add exception class for Cloudflare interactions. | Add exception class for Cloudflare interactions.
| Java | apache-2.0 | HubSpot/Baragon,HubSpot/Baragon,HubSpot/Baragon |
8f2af9b3df84a480ca9dc4cbfbae455a226a7dc0 | rsf-core/core/test/uk/org/ponder/rsf/test/sitemap/TestSiteMap.java | rsf-core/core/test/uk/org/ponder/rsf/test/sitemap/TestSiteMap.java | /*
* Created on 11-Jan-2006
*/
package uk.org.ponder.rsf.test.sitemap;
import java.util.HashMap;
import uk.org.ponder.rsf.bare.junit.PlainRSFTests;
import uk.org.ponder.rsf.viewstate.EntityCentredViewParameters;
import uk.org.ponder.rsf.viewstate.support.BasicViewParametersParser;
public class TestSiteM... | /*
* Created on 11-Jan-2006
*/
package uk.org.ponder.rsf.test.sitemap;
import java.util.HashMap;
import uk.org.ponder.rsf.bare.junit.PlainRSFTests;
import uk.org.ponder.rsf.viewstate.EntityCentredViewParameters;
import uk.org.ponder.rsf.viewstate.support.BasicViewParametersParser;
public class TestSiteM... | Fix for loading SiteMap entry on Spring 2.x | Fix for loading SiteMap entry on Spring 2.x
| Java | bsd-3-clause | ern/rsf,ern/rsf,ern/rsf |
fff33f72d40399bcb5e562f52f42d389117c9e5e | examples/simple/src/main/java/coffee/CoffeeApp.java | examples/simple/src/main/java/coffee/CoffeeApp.java | package coffee;
import dagger.Component;
import javax.inject.Singleton;
public class CoffeeApp {
@Singleton
@Component(modules = { DripCoffeeModule.class })
public interface Coffee {
CoffeeMaker maker();
}
public static void main(String[] args) {
Coffee coffee = DaggerCoffeeApp_Coffee.builder().bui... | package coffee;
import dagger.Component;
import javax.inject.Singleton;
public class CoffeeApp {
@Singleton
@Component(modules = { DripCoffeeModule.class })
public interface CoffeeShop {
CoffeeMaker maker();
}
public static void main(String[] args) {
CoffeeShop coffeeShop = DaggerCoffeeApp_CoffeeSh... | Align the user's guide's usage of CoffeeShop with the sample code | Align the user's guide's usage of CoffeeShop with the sample code
Fixes https://github.com/google/dagger/pull/809
Closes https://github.com/google/dagger/pull/810
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=167519876
| Java | apache-2.0 | google/dagger,dushmis/dagger,cgruber/dagger,ronshapiro/dagger,ronshapiro/dagger,cgruber/dagger,dushmis/dagger,ze-pequeno/dagger,ze-pequeno/dagger,google/dagger,google/dagger,cgruber/dagger,ze-pequeno/dagger,google/dagger,ronshapiro/dagger,ze-pequeno/dagger |
7798784de033db9ee40b8db41f84de8df885a96f | src/main/java/eve/corp/manager/Application.java | src/main/java/eve/corp/manager/Application.java | package eve.corp.manager;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
| package eve.corp.manager;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.servlet.mvc.method.annotation.AbstractJsonpResponseBodyAdvice;
@SpringBootAp... | Add JSONP support which is now included in Spring 4.1 | Add JSONP support which is now included in Spring 4.1
| Java | mit | Baresse/corpmanager |
7216b62e63fb727291beff90b467a603da7983f4 | src/test/java/org/scenarioo/pizza/pageObjects/SelectPizzaPage.java | src/test/java/org/scenarioo/pizza/pageObjects/SelectPizzaPage.java | package org.scenarioo.pizza.pageObjects;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import static org.junit.jupiter.api.Assertions.*;
public class SelectPizzaPage extends BasePage {
public static void assertPageIsShown() {
assertTrue(getStepElement().isDisplayed(), "Expected p... | package org.scenarioo.pizza.pageObjects;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import static org.junit.jupiter.api.Assertions.*;
public class SelectPizzaPage extends BasePage {
public static void assertPageIsShown() {
assertTrue(getStepElement().isDisplayed(), "Expected p... | Adjust tests to new pizza ids | Adjust tests to new pizza ids
| Java | mit | scenarioo/pizza-delivery,scenarioo/pizza-delivery |
a1c0f1b3f592789c5378c68067733ceb549855fd | src/main/java/atg/tools/ant/types/AtgInstallation.java | src/main/java/atg/tools/ant/types/AtgInstallation.java | package atg.tools.ant.types;
import atg.tools.ant.util.ModuleUtils;
import org.apache.tools.ant.types.resources.FileResource;
import java.io.File;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* @author msicker
* @version 2.0
*/
public class AtgInstallation
extends FileResource ... | package atg.tools.ant.types;
import org.apache.tools.ant.types.resources.FileResource;
import java.io.File;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* @author msicker
* @version 2.0
*/
public class AtgInstallation
extends FileResource {
private final Map<String, Module... | Fix bug in module name. | Fix bug in module name.
| Java | mit | jvz/atg-ant-plugin |
31efd439c29a3a64b53c53475f630d31f51d3eb5 | src/main/java/de/springbootbuch/webmvc/DemoFilter.java | src/main/java/de/springbootbuch/webmvc/DemoFilter.java | package de.springbootbuch.webmvc;
import java.io.IOException;
import javax.inject.Provider;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import org.slf4... | package de.springbootbuch.webmvc;
import java.io.IOException;
import javax.inject.Provider;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.se... | Fix bug when no session scope | Fix bug when no session scope
| Java | apache-2.0 | springbootbuch/webmvc,springbootbuch/webmvc |
89228ebfaf301d1d15bc44df299b9d896af7f147 | extensions/container-image/deployment/src/test/java/io/quarkus/container/image/deployment/ContainerImageConfigEffectiveGroupTest.java | extensions/container-image/deployment/src/test/java/io/quarkus/container/image/deployment/ContainerImageConfigEffectiveGroupTest.java | package io.quarkus.container.image.deployment;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.Optional;
import org.junit.jupiter.api.Test;
class ContainerImageConfigEffectiveGroupTest {
public static final String USER_NAME_SYSTEM_PROPERTY = "user.name";
private ContainerImag... | package io.quarkus.container.image.deployment;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.Optional;
import org.junit.jupiter.api.Test;
class ContainerImageConfigEffectiveGroupTest {
public static final String USER_NAME_SYSTEM_PROPERTY = "user.name";
private ContainerImag... | Test for spaces removal from quarkus.container-image.group when it's set to the username | Test for spaces removal from quarkus.container-image.group when it's set to the username
| Java | apache-2.0 | quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus |
e2ce22eeed44c1ac0249ecf8508e5a5dffb417e3 | src/test/java/seedu/doit/logic/DateTimeParserTest.java | src/test/java/seedu/doit/logic/DateTimeParserTest.java | package seedu.doit.logic;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import java.time.LocalDateTime;
import java.util.Optional;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import seedu.doit.logic.parser.DateTimeParser;
/**
*... | package seedu.doit.logic;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import java.time.LocalDateTime;
import java.util.Optional;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import seedu.doit.logic.parser.DateTimeParser;
/**
*... | Fix line longer than 120 characters error | Fix line longer than 120 characters error
| Java | mit | CS2103JAN2017-W14-B3/main,CS2103JAN2017-W14-B3/main |
8a3fbed6eb0edf8f48d39df10a80e392ecb2cf29 | spring-boot-system-tests/spring-boot-deployment-tests/src/systemTest/java/org/springframework/boot/deployment/WildflyDeploymentTests.java | spring-boot-system-tests/spring-boot-deployment-tests/src/systemTest/java/org/springframework/boot/deployment/WildflyDeploymentTests.java | /*
* Copyright 2012-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | /*
* Copyright 2012-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Downgrade Wildfly to work around basic auth bug | Downgrade Wildfly to work around basic auth bug
As described in https://issues.redhat.com/browse/WFLY-15478, Wildfly
25.0.0.Final rejects all requests that use basic auth with a 401
response. 25.0.0.Final is, at the time of writing, the latest available
Wildfly Docker image so we need to downgrade to 24.0.0.Final.
Cl... | Java | apache-2.0 | mdeinum/spring-boot,dreis2211/spring-boot,aahlenst/spring-boot,chrylis/spring-boot,wilkinsona/spring-boot,vpavic/spring-boot,chrylis/spring-boot,michael-simons/spring-boot,htynkn/spring-boot,chrylis/spring-boot,michael-simons/spring-boot,mdeinum/spring-boot,wilkinsona/spring-boot,mdeinum/spring-boot,vpavic/spring-boot,... |
5d8aeb982a4f39fd615a47fc38d5c96fdf58434b | src/test/java/guitests/ClearCommandTest.java | src/test/java/guitests/ClearCommandTest.java | //@@author A0142102E
package guitests;
import seedu.tasklist.testutil.TypicalTestTasks;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
public class ClearCommandTest extends TaskListGuiTest {
@Test
public void clear() {
//verify a non-empty list can be cleared
assertTrue(... | //@@author A0142102E
package guitests;
import seedu.tasklist.testutil.TypicalTestTasks;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
public class ClearCommandTest extends TaskListGuiTest {
@Test
public void clear() {
//verify a non-empty list can be cleared
assertClear... | Fix tests for clear command | Fix tests for clear command
| Java | mit | CS2103AUG2016-T11-C1/main,CS2103AUG2016-T11-C1/main |
73c00b676136cf6b2e7b2eb0c179dcbce2dd4beb | src/main/java/tars/model/task/Priority.java | src/main/java/tars/model/task/Priority.java | package tars.model.task;
import tars.commons.exceptions.IllegalValueException;
/**
* Represents a Task's priority in tars.
*/
public class Priority {
public static final String MESSAGE_PRIORITY_CONSTRAINTS = "Task priority should be h / m / l";
public static final String PRIORITY_VALIDATION_REGEX = "[\\p{Lo... | package tars.model.task;
import tars.commons.exceptions.IllegalValueException;
/**
* Represents a Task's priority in tars.
*/
public class Priority {
public static final String MESSAGE_PRIORITY_CONSTRAINTS = "Task priority should be h / m / l";
public static final String PRIORITY_VALIDATION_REGEX = "[\\p{Lo... | Move format priority to ReadOnlyTars.java | Move format priority to ReadOnlyTars.java | Java | mit | CS2103AUG2016-F10-C1/main,CS2103AUG2016-F10-C1/main,CS2103AUG2016-F10-C1/main |
3877d302874f675faf74f7d580d5602e6d256c8c | 22/E22_21/SudokuGUI.java | 22/E22_21/SudokuGUI.java | import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.scene.text.Text;
import javafx.scene.control.Button;
import javafx.geometry.Pos;
public class SudokuGUI extends BorderPane {
public SudokuGUI() {
drawGUI();
}
private void drawGUI() {
Text tMessage = new Text();
S... | import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.scene.text.Text;
import javafx.scene.control.Button;
import javafx.geometry.Pos;
public class SudokuGUI extends BorderPane {
public SudokuGUI() {
drawGUI();
}
private void drawGUI() {
Text tMessage = new Text();
S... | Disable Solve button after a valid solution is found | Disable Solve button after a valid solution is found
| Java | mit | maxalthoff/intro-to-java-exercises |
20ccd454d5d03188b6fb10bbe1ada9fd25ff2bb6 | src/test/java/io/openshift/booster/OpenShiftIT.java | src/test/java/io/openshift/booster/OpenShiftIT.java | /*
* Copyright 2016-2017 Red Hat, Inc, and individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | /*
* Copyright 2016-2017 Red Hat, Inc, and individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | Add @AwaitRule to integration test | Add @AwaitRule to integration test
Done to ensure that Arquillian waits for the application to standup
properly before executing the test method
| Java | apache-2.0 | obsidian-toaster-quickstarts/quick_rest_springboot-tomcat,obsidian-toaster-quickstarts/quick_rest_springboot-tomcat |
09e7d20500e8d908e8030db28fb3115dd49d067b | src/main/java/org/attribyte/wp/model/Meta.java | src/main/java/org/attribyte/wp/model/Meta.java | /*
* Copyright 2016 Attribyte, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | /*
* Copyright 2016 Attribyte, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Add constructor that does not require id. | Add constructor that does not require id.
| Java | apache-2.0 | attribyte/wpdb |
c288171d12e32a9d7d7c09e9fcf9a40d1d00bdda | src/main/java/pl/koszela/jan/domain/Order.java | src/main/java/pl/koszela/jan/domain/Order.java | package pl.koszela.jan.domain;
import java.util.Objects;
/**
* Created on 12.08.2017.
*
* @author Jan Koszela
*/
public class Order {
private String productName;
private int quantity;
public Order(String productName, int quantity) {
this.productName = productName;
this.quantity = quantity;
}
... | package pl.koszela.jan.domain;
import java.util.Objects;
/**
* Created on 12.08.2017.
*
* @author Jan Koszela
*/
public class Order {
private Product product;
private int quantity;
public Order(String productName, int quantity) {
this.product = Product.builder()
.item(productName)
.bui... | Add toString method for debuging purposes | Add toString method for debuging purposes
| Java | mit | pawellinkshell/Supermarket,pawellinkshell/Supermarket |
cb48b22ce6d9837784fd33e9cb6c5a84374a1efc | src/year2014/DigitalRoot.java | src/year2014/DigitalRoot.java | package year2014;
import java.util.Scanner;
import java.util.stream.IntStream;
/**
* <h3>Digital Root</h3>
* <p>The digital root of a number is obtained by summing its individual digits,
* summing those individual digits, and continuing the process until the final sum
* is a single digit (that is, less than 10). ... | package year2014;
import java.util.Scanner;
/**
* <h3>Digital Root</h3>
* <p>The digital root of a number is obtained by summing its individual digits,
* summing those individual digits, and continuing the process until the final sum
* is a single digit (that is, less than 10). For example, the digital root of 12... | Use Integer approach in summing digits | Use Integer approach in summing digits
| Java | mit | jcameron2/Seminole-Intercollegiate-Programming-Competition |
59a3d5bf4a937c15df84271220c60cccd80ac1f7 | src/test/java/SuperTest.java | src/test/java/SuperTest.java | import static java.lang.reflect.Modifier.*;
import static org.junit.Assert.*;
import org.junit.Test;
public class SuperTest {
@Test
public void isNotPublic() {
int modifiers = Super.class.getModifiers();
boolean isPublic = isPublic(modifiers);
assertFalse(isPublic);
}
}
| import static java.lang.reflect.Modifier.*;
import static org.junit.Assert.*;
import org.junit.Test;
public class SuperTest {
@Test
public void isNotPublic() {
int modifiers = Super.class.getModifiers();
boolean isPublic = isPublic(modifiers);
assertFalse("Super is public (modifiers: " + modifiers + ... | Add value of modifiers to assertion message. | Add value of modifiers to assertion message.
| Java | epl-1.0 | stefanbirkner/test-oraclejdk8-modifier |
d5ee134b691b9b21e6ea42e0afb8660b73e00fb5 | remoting/subsystem/src/main/java/org/jboss/as/remoting/Protocol.java | remoting/subsystem/src/main/java/org/jboss/as/remoting/Protocol.java | package org.jboss.as.remoting;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import org.jboss.dmr.ModelNode;
/**
* Protocols that can be used for a remoting connection
*
* @author Stuart Douglas
*/
public enum Protocol {
REMOTE("remote"),
HTTP_REMOTING("http-remoting"),
HT... | package org.jboss.as.remoting;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import org.jboss.dmr.ModelNode;
/**
* Protocols that can be used for a remoting connection
*
* @author Stuart Douglas
*/
public enum Protocol {
REMOTE("remote"),
HTTP_REMOTING("http-remoting"),
HT... | Fix NPE warning; use locale for toLowerCase | Fix NPE warning; use locale for toLowerCase
| Java | lgpl-2.1 | jamezp/wildfly-core,aloubyansky/wildfly-core,JiriOndrusek/wildfly-core,darranl/wildfly-core,soul2zimate/wildfly-core,jfdenise/wildfly-core,jfdenise/wildfly-core,jamezp/wildfly-core,yersan/wildfly-core,luck3y/wildfly-core,jfdenise/wildfly-core,darranl/wildfly-core,bstansberry/wildfly-core,bstansberry/wildfly-core,yersan... |
b286c30864ad46f83773d026480014c070c7e11e | src/main/java/com/vtence/molecule/http/HeaderNames.java | src/main/java/com/vtence/molecule/http/HeaderNames.java | package com.vtence.molecule.http;
public final class HeaderNames {
public static final String ACCEPT_ENCODING = "Accept-Encoding";
public static final String ACCEPT_LANGUAGE = "Accept-Language";
public static final String ALLOW = "Allow";
public static final String CACHE_CONTROL = "Cache-Control";
... | package com.vtence.molecule.http;
public interface HeaderNames {
static final String ACCEPT_ENCODING = "Accept-Encoding";
static final String ACCEPT_LANGUAGE = "Accept-Language";
static final String ALLOW = "Allow";
static final String CACHE_CONTROL = "Cache-Control";
static final String CONTENT_EN... | Make header names an interface with constants | Make header names an interface with constants
| Java | mit | ensonik/molecule,testinfected/molecule,testinfected/molecule,ensonik/molecule,ensonik/molecule,testinfected/molecule,ensonik/molecule,testinfected/molecule,testinfected/molecule,ensonik/molecule |
178e567201f564cfe383586c0c002c65092660ff | src/main/java/ee/shy/cli/command/CompletionCommand.java | src/main/java/ee/shy/cli/command/CompletionCommand.java | package ee.shy.cli.command;
import ee.shy.cli.Command;
import ee.shy.cli.SuperCommand;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
public class CompletionCommand implements Command {
private final Command rootCommand;
public C... | package ee.shy.cli.command;
import ee.shy.cli.Command;
import ee.shy.cli.SuperCommand;
import java.io.IOException;
import java.util.Map;
public class CompletionCommand implements Command {
private final Command rootCommand;
public CompletionCommand(Command rootCommand) {
this.rootCommand = rootComma... | Fix bash completion for HelpCommand and fully typed subcommands | Fix bash completion for HelpCommand and fully typed subcommands
| Java | mit | sim642/shy,sim642/shy |
db9f1327c37b3b367c6d2d7e6d65fffb29102ccd | org.eclipse.dawnsci.analysis.api/src/org/eclipse/dawnsci/analysis/api/tree/TreeUtils.java | org.eclipse.dawnsci.analysis.api/src/org/eclipse/dawnsci/analysis/api/tree/TreeUtils.java | /*-
* Copyright 2015 Diamond Light Source Ltd.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.eclips... | /*-
* Copyright 2015 Diamond Light Source Ltd.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.eclips... | Fix case of finding the top of tree node | Fix case of finding the top of tree node | Java | epl-1.0 | jonahkichwacoders/dawnsci,colinpalmer/dawnsci,colinpalmer/dawnsci,jonahkichwacoders/dawnsci,DawnScience/dawnsci,PeterC-DLS/org.eclipse.dataset,jamesmudd/dawnsci,willrogers/dawnsci,jamesmudd/dawnsci,willrogers/dawnsci,Anthchirp/dawnsci,jamesmudd/dawnsci,eclipse/dawnsci,Anthchirp/dawnsci,PeterC-DLS/org.eclipse.dataset,xe... |
1b3ac2e1dfbc09c6b3fa73ded9c6fb59cd86cac4 | src/main/java/model/transform/tasks/StoreOptions.java | src/main/java/model/transform/tasks/StoreOptions.java | package model.transform.tasks;
import model.transform.base.ImageTransformTask;
public class StoreOptions extends ImageTransformTask {
public StoreOptions() {
super("store");
}
public static class Builder {
private StoreOptions storeOptions;
public Builder() {
... | package model.transform.tasks;
import model.transform.base.ImageTransformTask;
public class StoreOptions extends ImageTransformTask {
// Constructor left public because this task can be used with default options
public StoreOptions() {
super("store");
}
public static class Builder {
... | Add comment to clarify constructor access | Add comment to clarify constructor access
| Java | apache-2.0 | filestack/filestack-java,filestack/filestack-java |
e6f49bad7b1a2238929119eb7dd39f3a2e1637b3 | subversion/bindings/java/jni/tests/AllTests.java | subversion/bindings/java/jni/tests/AllTests.java | /**
* ====================================================================
* Copyright (c) 2000-2001 CollabNet. All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at http://subversion.... | /**
* ====================================================================
* Copyright (c) 2000-2001 CollabNet. All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at http://subversion.... | Integrate the hashtable Unit testcases. | Integrate the hashtable Unit testcases.
* tests/AllTests.java (suite): added HashtableTests
| Java | apache-2.0 | jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion |
4caef8ccb24a8d24171b8d7f75509caddfe6fd19 | cloudfoundry-client/src/main/java/org/cloudfoundry/client/v3/builds/_ListBuildsRequest.java | cloudfoundry-client/src/main/java/org/cloudfoundry/client/v3/builds/_ListBuildsRequest.java | /*
* Copyright 2013-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | /*
* Copyright 2013-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Implement filtering of builds based on package IDs | Implement filtering of builds based on package IDs
| Java | apache-2.0 | alexander071/cf-java-client,cloudfoundry/cf-java-client,alexander071/cf-java-client,cloudfoundry/cf-java-client,cloudfoundry/cf-java-client |
6b6efeae376470dd843598d4f4c74a86e83f32dd | src/main/java/seedu/ezdo/model/FixedStack.java | src/main/java/seedu/ezdo/model/FixedStack.java | package seedu.ezdo.model;
import java.util.EmptyStackException;
/*
* Array-based implementation for a stack with fixed size. Used for undo & redo stacks.
* If stack goes past max capacity, the oldest item to be pushed is replaced.
*/
public class FixedStack<T> {
private int index;
private T[] array;
p... | package seedu.ezdo.model;
import java.util.EmptyStackException;
/*
* Array-based implementation for a stack with fixed size. Used for undo & redo stacks.
* If stack goes past max capacity, the oldest item to be pushed is replaced.
*/
public class FixedStack<T> {
private int index;
private T[] array;
p... | Remove magic numbers and print statements | Remove magic numbers and print statements
| Java | mit | CS2103JAN2017-W14-B4/main,CS2103JAN2017-W14-B4/main |
6f3c175613b1c5cfb6b121a25b6fa797c6d5a120 | src/main/java/tc/oc/projectares/api/Match.java | src/main/java/tc/oc/projectares/api/Match.java | package tc.oc.projectares.api;
import java.util.Collection;
import java.util.Set;
import java.util.UUID;
import javax.annotation.Nonnull;
import org.bukkit.World;
public interface Match {
@Nonnull World getWorld();
@Nonnull UUID getUUID();
@Nonnull boolean isRunning();
@Nonnull boolean start();
... | package tc.oc.projectares.api;
import java.util.Collection;
import java.util.Set;
import java.util.UUID;
import javax.annotation.Nonnull;
import org.bukkit.World;
public interface Match {
@Nonnull World getWorld();
@Nonnull UUID getUUID();
@Nonnull boolean isRunning();
@Nonnull boolean start();
... | Remove some methods that shouldn't have been exposed | Remove some methods that shouldn't have been exposed
| Java | mit | rmsy/API |
fedb3c10b220ac8bbd76c633ddba9c19a132d973 | src/entities/Ship.java | src/entities/Ship.java | package edu.stuy.starlorn.entities;
import edu.stuy.starlorn.upgrades.GunUpgrade;
import java.util.LinkedList;
public class Ship extends Entity {
protected LinkedList<GunUpgrade> _gunupgrades;
protected int _baseDamage, _baseShotSpeed, _health;
protected double _baseAim;
public Ship() {
supe... | package edu.stuy.starlorn.entities;
import edu.stuy.starlorn.upgrades.GunUpgrade;
import java.util.LinkedList;
public class Ship extends Entity {
protected LinkedList<GunUpgrade> _gunupgrades;
protected int _baseDamage, _baseShotSpeed, _health;
protected double _baseAim;
public Ship() {
supe... | Add bullet to world when it's created | Add bullet to world when it's created
| Java | mit | Hypersonic/Starlorn |
a6d0f99e13f60f3033ed9e8f27c9ee481190258f | STS/wlogs/src/main/java/io/khasang/wlogs/controller/AppController.java | STS/wlogs/src/main/java/io/khasang/wlogs/controller/AppController.java | package io.khasang.wlogs.controller;
import io.khasang.wlogs.model.InsertDataTable;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class AppController {
@RequestMapping("/")
public String ... | package io.khasang.wlogs.controller;
import io.khasang.wlogs.model.InsertDataTable;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class AppController {
@RequestMapping("/")
public String ... | Add menu jsp and controller function | Add menu jsp and controller function
| Java | mit | khasang-incubator/JavaWeb20160124-Team1,khasang-incubator/JavaWeb20160124-Team1,khasang-incubator/JavaWeb20160124-Team1 |
7e93c8622698ad01bc4dbea44f1f80ef90415d72 | core/src/main/java/eu/nerro/wolappla/model/Device.java | core/src/main/java/eu/nerro/wolappla/model/Device.java | package eu.nerro.wolappla.model;
public class Device {
private String name;
private String macAddress;
private String ipAddress;
private int port;
private String ssid;
}
| package eu.nerro.wolappla.model;
public class Device {
private String name;
private String macAddress;
private String ipAddress;
private int port;
}
| Remove currently not used 'ssid' field in device model | Remove currently not used 'ssid' field in device model
| Java | mit | nerro/wolappla |
317cc552e6363a30a1a00fd03d9b8f2566f752e5 | src/test/java/org/nwapw/abacus/tests/LexerTests.java | src/test/java/org/nwapw/abacus/tests/LexerTests.java | package org.nwapw.abacus.tests;
import org.nwapw.abacus.lexing.Lexer;
import org.nwapw.abacus.tree.TokenType;
public class LexerTests {
Lexer<TokenType> lexer = new Lexer<TokenType>(){{
}};
}
| package org.nwapw.abacus.tests;
import org.junit.Assert;
import org.junit.Test;
import org.nwapw.abacus.lexing.Lexer;
import org.nwapw.abacus.lexing.pattern.Match;
import java.util.List;
public class LexerTests {
@Test
public void testBasicSuccess(){
Lexer<Integer> lexer = new Lexer<>();
lex... | Write basic tests for string matching. | Write basic tests for string matching.
| Java | mit | DanilaFe/abacus,DanilaFe/abacus |
68af6271cdb73fdf909ba1b6e3b50f442340c03d | kawa/standard/define.java | kawa/standard/define.java | package kawa.standard;
import kawa.lang.*;
/**
* The Syntax transformer that re-writes the "define" Scheme primitive.
* Currently, only handles top-level definitions.
* @author Per Bothner
*/
public class define extends Syntax implements Printable
{
public Expression rewrite (Object obj, Interpreter interp)
... | package kawa.standard;
import kawa.lang.*;
/**
* The Syntax transformer that re-writes the "define" Scheme primitive.
* Currently, only handles top-level definitions.
* @author Per Bothner
*/
public class define extends Syntax implements Printable
{
public Expression rewrite (Object obj, Interpreter interp)
... | Remove print method. No longer needed. | Remove print method. No longer needed.
git-svn-id: 169764d5f12c41a1cff66b81d896619f3ce5473d@126 5e0a886f-7f45-49c5-bc19-40643649e37f
| Java | mit | spurious/kawa-mirror,spurious/kawa-mirror,spurious/kawa-mirror,spurious/kawa-mirror,spurious/kawa-mirror |
411a04faa16726e179bb04306904028b30e20526 | revapi-maven-plugin/src/main/java/org/revapi/maven/ReportForkMojo.java | revapi-maven-plugin/src/main/java/org/revapi/maven/ReportForkMojo.java | package org.revapi.maven;
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.ResolutionScope;
/**
* @author Lukas Krejci
* @since 0.7.0
*/
@Mojo(name = "report... | package org.revapi.maven;
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.ResolutionScope;
/**
* @author Lukas Krejci
* @since 0.7.0
*/
@Mojo(name = "report... | Make report-fork goal actually do something. | Make report-fork goal actually do something.
| Java | apache-2.0 | revapi/revapi,revapi/revapi,revapi/revapi |
281cc1334da4afcdf4345fc77b7e1ee9aadf7e9a | app/src/main/java/com/blabbertabber/blabbertabber/MainActivityTest.java | app/src/main/java/com/blabbertabber/blabbertabber/MainActivityTest.java | package com.blabbertabber.blabbertabber;
import junit.framework.TestCase;
/**
* Created by cunnie on 8/9/15.
*/
public class MainActivityTest extends TestCase {
public void setUp() throws Exception {
super.setUp();
}
public void tearDown() throws Exception {
}
public void testOnCrea... | package com.blabbertabber.blabbertabber;
import junit.framework.TestCase;
/**
* Created by cunnie on 8/9/15.
*/
public class MainActivityTest extends TestCase {
public void setUp() throws Exception {
super.setUp();
}
public void tearDown() throws Exception {
}
public void testOnCreat... | Create new TDD unit test: test failure | Create new TDD unit test: test failure
| Java | agpl-3.0 | blabbertabber/blabbertabber,blabbertabber/blabbertabber |
a263493d251f466ce6fe6ad6d6199ac9564808b5 | trunk/CVSROOT/org.mwc.cmap.core/src/org/mwc/cmap/core/DataTypes/TrackData/TrackDataProvider.java | trunk/CVSROOT/org.mwc.cmap.core/src/org/mwc/cmap/core/DataTypes/TrackData/TrackDataProvider.java | /**
*
*/
package org.mwc.cmap.core.DataTypes.TrackData;
import Debrief.Tools.Tote.WatchableList;
/**
* @author ian.mayo
*
*/
public interface TrackDataProvider
{
public static interface TrackDataListener
{
/** find out that the primary has changed
*
* @param primary the primary track
*/
public v... | /**
*
*/
package org.mwc.cmap.core.DataTypes.TrackData;
import Debrief.Tools.Tote.WatchableList;
/**
* @author ian.mayo
*
*/
public interface TrackDataProvider
{
public static interface TrackDataListener
{
/** find out that the primary has changed
*
* @param primary the primary track
*/
public v... | Allow removal of track data | Allow removal of track data
git-svn-id: d2601f1668e3cd2de409f5c059006a6eeada0abf@205 cb33b658-6c9e-41a7-9690-cba343611204
| Java | epl-1.0 | theanuradha/debrief,pecko/debrief,pecko/debrief,pecko/debrief,debrief/debrief,pecko/debrief,alastrina123/debrief,alastrina123/debrief,theanuradha/debrief,pecko/debrief,theanuradha/debrief,theanuradha/debrief,debrief/debrief,alastrina123/debrief,alastrina123/debrief,debrief/debrief,pecko/debrief,theanuradha/debrief,debr... |
c8cfee1ecdca1c6412e6e912a0cbfd1e606bcbfb | blueprint/blueprint-bundle/src/main/java/org/apache/aries/blueprint/uberbundle/UberActivator.java | blueprint/blueprint-bundle/src/main/java/org/apache/aries/blueprint/uberbundle/UberActivator.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 ... | /*
* 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 ... | Fix problem with the proxy activator when using the blueprint bundle | Fix problem with the proxy activator when using the blueprint bundle
git-svn-id: 212869a37fe990abe2323f86150f3c4d5a6279c2@1033177 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | alexandreroman/aries,metatechbe/aries,kameshsampath/aries,fwassmer/aries,maxbruecken/aries,maxbruecken/aries,tomdw/aries,WouterBanckenACA/aries,acartapanis/aries,maxbruecken/aries,MeiSheng/aries,ggerla/aries,tomdw/aries,fwassmer/aries,metatechbe/aries,WouterBanckenACA/aries,gnodet/aries,tomdw/aries,jwross/aries,gnodet/... |
cf28b814b0569bca1d146e6e4a023302cb99bbf7 | src/protocolsupport/protocol/utils/types/GameMode.java | src/protocolsupport/protocol/utils/types/GameMode.java | package protocolsupport.protocol.utils.types;
import java.text.MessageFormat;
import protocolsupport.utils.CollectionsUtils;
import protocolsupport.utils.CollectionsUtils.ArrayMap;
public enum GameMode {
SURVIVAL(0), CREATIVE(1), ADVENTURE(2), SPECTATOR(3);
private static final ArrayMap<GameMode> byId = Collecti... | package protocolsupport.protocol.utils.types;
import java.text.MessageFormat;
import protocolsupport.utils.CollectionsUtils;
import protocolsupport.utils.CollectionsUtils.ArrayMap;
public enum GameMode {
NOT_SET(-1), SURVIVAL(0), CREATIVE(1), ADVENTURE(2), SPECTATOR(3);
private static final ArrayMap<GameMode> by... | Support -1 gamemode (not set), while it's not valid gamemode and should be only used as starting gamemode for server internals, sometimes custom npc plugins do not set it. All supported versions support this gamemode, and no internal logic depends on it, so allowing it shouldn't bring any problems | Support -1 gamemode (not set), while it's not valid gamemode and should
be only used as starting gamemode for server internals, sometimes custom
npc plugins do not set it. All supported versions support this gamemode,
and no internal logic depends on it, so allowing it shouldn't bring any
problems | Java | agpl-3.0 | ridalarry/ProtocolSupport,ProtocolSupport/ProtocolSupport |
a559bae6840cc842385e5ba847f6a8fe8eeaad89 | src/main/java/com/leafriend/flix/Flix.java | src/main/java/com/leafriend/flix/Flix.java | package com.leafriend.flix;
import java.io.Console;
public class Flix {
private Options options;
public static void main(String[] args) {
Console console = System.console();
console.printf("Hello, FLiX\n");
public Flix(Options options) {
this.options = options;
}
}
}... | package com.leafriend.flix;
public class Flix {
private Options options;
public static void main(String[] args) {
Options options = new Options();
new Flix(options).run();
}
public Flix(Options options) {
this.options = options;
}
public void run() {
}
}
| Call run() for new instance | Call run() for new instance
| Java | mit | leafriend/flix |
0d38886bd130e3936d8c526570d5fe922d7b036f | Votron/src/com/cj/votron/ElectionsActivity.java | Votron/src/com/cj/votron/ElectionsActivity.java | /**
*
*/
package com.cj.votron;
import java.util.ArrayList;
import java.util.Arrays;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.ArrayAdapter;
import android.widget.ListView;
/**
* @author gvamos
*
*/
public class ElectionsActivity extends Activity {
... | /**
*
*/
package com.cj.votron;
import java.util.ArrayList;
import java.util.Arrays;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.ArrayAdapter;
import android.widget.ListView;
/**
* @author gvamos
*
*/
public class ElectionsActivity extends Activity {
... | Refactor to use central config object | Refactor to use central config object
| Java | mit | gvamos/votron,gvamos/votron |
4fe328002a8ec5131ac665546842e5eb11f48739 | integration/admin-client/src/main/java/org/keycloak/admin/client/resource/RoleMappingResource.java | integration/admin-client/src/main/java/org/keycloak/admin/client/resource/RoleMappingResource.java | package org.keycloak.admin.client.resource;
import org.keycloak.representations.idm.MappingsRepresentation;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
/**
* @author rodrigo.sasaki@icarros... | package org.keycloak.admin.client.resource;
import org.keycloak.representations.idm.MappingsRepresentation;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
/**
* @author rodrigo.sasaki@icarros... | Change role mapping path in admin client to match API changes | [KEYCLOAK-1206] Change role mapping path in admin client to match API changes
| Java | apache-2.0 | matzew/keycloak,anaerobic/keycloak,girirajsharma/keycloak,dylanplecki/keycloak,srose/keycloak,jean-merelis/keycloak,cfsnyder/keycloak,reneploetz/keycloak,ppolavar/keycloak,didiez/keycloak,vmuzikar/keycloak,cmoulliard/keycloak,jean-merelis/keycloak,pfiled/keycloak,ssilvert/keycloak,matzew/keycloak,raehalme/keycloak,raeh... |
6804b905c5aad6971a0d43ecfb19c10aa9010550 | exercises/binary/src/test/java/BinaryTest.java | exercises/binary/src/test/java/BinaryTest.java | import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import java.util.Arrays;
import java.util.Collection;
import static org.junit.Assert.assertEquals;
@RunWith(Parameterized.class)
public class BinaryTest {
private St... | import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import java.util.Arrays;
import java.util.Collection;
import static org.junit.Assert.assertEquals;
@RunWith(Parameterized.class)
public class BinaryTest {
private St... | Add canonical cases to test | Add canonical cases to test
| Java | mit | exercism/xjava,FridaTveit/xjava,exercism/xjava,jmluy/xjava,jtigger/xjava,nickRm/xjava,nickRm/xjava,FridaTveit/xjava,jmluy/xjava,jtigger/xjava |
aa6cef62bd505791c1ffe7165d3df99fda50fafb | api/src/main/java/org/apache/logging/log4j/message/FormattedMessage.java | api/src/main/java/org/apache/logging/log4j/message/FormattedMessage.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 n... | /*
* 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 n... | Add more details to the javadoc | Add more details to the javadoc
git-svn-id: de5ce936019686f47409c93bcc5e202a9739563b@1364421 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | ChetnaChaudhari/logging-log4j2,codescale/logging-log4j2,jsnikhil/nj-logging-log4j2,apache/logging-log4j2,pisfly/logging-log4j2,codescale/logging-log4j2,lburgazzoli/logging-log4j2,lburgazzoli/apache-logging-log4j2,apache/logging-log4j2,pisfly/logging-log4j2,jsnikhil/nj-logging-log4j2,GFriedrich/logging-log4j2,lburgazzol... |
ba4733ad2533b67b50e8643f97c09b0ec7f32559 | subprojects/tooling-api/src/main/java/org/gradle/tooling/exceptions/MultipleBuildActionsException.java | subprojects/tooling-api/src/main/java/org/gradle/tooling/exceptions/MultipleBuildActionsException.java | /*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Add @Incubating and @since annotations | Add @Incubating and @since annotations
To MultipleBuildActionsException.
Signed-off-by: Lucas Smaira <ebde68659be3ad482cc698f6db784bb2a410fa24@google.com>
| Java | apache-2.0 | gradle/gradle,lsmaira/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gr... |
396e106e665df476d0bc30812c14a37867765b3e | Atarashii/src/net/somethingdreadful/MAL/Theme.java | Atarashii/src/net/somethingdreadful/MAL/Theme.java | package net.somethingdreadful.MAL;
import android.content.res.Configuration;
import org.holoeverywhere.ThemeManager;
import org.holoeverywhere.app.Application;
import java.util.Locale;
public class Theme extends Application {
@Override
public void onCreate() {
super.onCreate();
PrefManager P... | package net.somethingdreadful.MAL;
import android.content.res.Configuration;
import org.holoeverywhere.ThemeManager;
import org.holoeverywhere.app.Application;
import java.util.Locale;
public class Theme extends Application {
Locale locale;
@Override
public void onCreate() {
super.onCreate();
... | Fix language when the device has been rotated (Language) | Fix language when the device has been rotated (Language)
| Java | bsd-2-clause | AnimeNeko/Atarashii,ratan12/Atarashii,ratan12/Atarashii,AnimeNeko/Atarashii |
0768b990c5b4af07021263219616e0a4df9ad146 | annotation-rest/src/main/java/uk/ac/ebi/quickgo/annotation/service/comm/rest/ontology/model/BasicOntology.java | annotation-rest/src/main/java/uk/ac/ebi/quickgo/annotation/service/comm/rest/ontology/model/BasicOntology.java | package uk.ac.ebi.quickgo.annotation.service.comm.rest.ontology.model;
import uk.ac.ebi.quickgo.rest.comm.ResponseType;
import java.util.List;
/**
* Represents part of the model corresponding to the response available from the resource:
*
* <ul>
* <li>/go/terms/{term}</li>
* </ul>
*
* This model captures ... | package uk.ac.ebi.quickgo.annotation.service.comm.rest.ontology.model;
import uk.ac.ebi.quickgo.rest.comm.ResponseType;
import java.util.List;
/**
* Represents part of the model corresponding to the response available from the resource:
*
* <ul>
* <li>/go/terms/{term}</li>
* </ul>
*
* or
*
* <ul>
* ... | Update the javadoc to show that the basic ontology information can come from go terms OR eco terms | Update the javadoc to show that the basic ontology information can come from go terms OR eco terms
| Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
e84522bb244699e1f20fef0f004c5be241758d29 | microservices/billing-service/src/main/java/de/qaware/oss/cloud/service/billing/integration/AutostartBean.java | microservices/billing-service/src/main/java/de/qaware/oss/cloud/service/billing/integration/AutostartBean.java | package de.qaware.oss.cloud.service.billing.integration;
import javax.annotation.PostConstruct;
import javax.ejb.Singleton;
import javax.ejb.Startup;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import java.util.logging.Logger;
@Singleton
@Startup
pu... | package de.qaware.oss.cloud.service.billing.integration;
import javax.annotation.PostConstruct;
import javax.ejb.Singleton;
import javax.ejb.Startup;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import java.util.logging.Logger;
@Singleton
@Startup
pu... | Use entity manager on startup. | Use entity manager on startup.
| Java | mit | lreimer/cloud-native-javaee |
b3676bc399e12b453a54bfe2641fccc99019353c | src/java/org/dellroad/stuff/pobj/PersistentObjectValidationException.java | src/java/org/dellroad/stuff/pobj/PersistentObjectValidationException.java |
/*
* Copyright (C) 2012 Archie L. Cobbs. All rights reserved.
*
* $Id$
*/
package org.dellroad.stuff.pobj;
import java.util.Set;
import javax.validation.ConstraintViolation;
/**
* Runtime exception thrown during {@link PersistentObject} operations.
*/
@SuppressWarnings("serial")
public class PersistentObject... |
/*
* Copyright (C) 2012 Archie L. Cobbs. All rights reserved.
*
* $Id$
*/
package org.dellroad.stuff.pobj;
import java.util.Set;
import javax.validation.ConstraintViolation;
/**
* Runtime exception thrown during {@link PersistentObject} operations.
*/
@SuppressWarnings("serial")
public class PersistentObject... | Fix bug in previous comit. | Fix bug in previous comit.
| Java | apache-2.0 | permazen/permazen,archiecobbs/jsimpledb,archiecobbs/jsimpledb,archiecobbs/jsimpledb,tempbottle/jsimpledb,permazen/permazen,tempbottle/jsimpledb,permazen/permazen,tempbottle/jsimpledb |
5716ad069ae89a5468595ecd122de39661bfc101 | src/main/java/bj/pranie/config/WebSecurityConfig.java | src/main/java/bj/pranie/config/WebSecurityConfig.java | package bj.pranie.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
... | package bj.pranie.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
... | Add logout url and regirect to main page after successful login. | Add logout url and regirect to main page after successful login.
| Java | apache-2.0 | sebastiansokolowski/ReservationSystem-BJ,sebastiansokolowski/ReservationSystem-BJ |
f307cf4a77a5907ee63d90a77cd427f1d0b446b7 | subprojects/core/src/main/java/org/gradle/execution/plan/OrdinalGroup.java | subprojects/core/src/main/java/org/gradle/execution/plan/OrdinalGroup.java | /*
* Copyright 2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Add equals/hashCode to ordinal Group | Add equals/hashCode to ordinal Group
When loading the execution graph (nodes) from the configuration
cache, then new node groups are created for the ordinals. Since
those didn't have an equals/hashCode implementation, we ended
up having to different OrdinalGroups in OrdinalNodeAccess for
the destroyer tasks, although ... | Java | apache-2.0 | gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle |
a3bb01d93eae12d5391d0ad7b6cdb825d714a2d9 | runtime-parent/runtime-connector-parent/sqlite/src/main/java/com/speedment/runtime/connector/sqlite/internal/SqliteColumnHandler.java | runtime-parent/runtime-connector-parent/sqlite/src/main/java/com/speedment/runtime/connector/sqlite/internal/SqliteColumnHandler.java | package com.speedment.runtime.connector.sqlite.internal;
import com.speedment.runtime.config.Column;
import com.speedment.runtime.core.db.DbmsColumnHandler;
import java.util.function.Predicate;
/**
* Implementation of {@link DbmsColumnHandler} for SQLite databases.
*
* @author Emil Forslund
* @since 3.1.10
*/
... | package com.speedment.runtime.connector.sqlite.internal;
import com.speedment.runtime.config.Column;
import com.speedment.runtime.core.db.DbmsColumnHandler;
import java.util.function.Predicate;
/**
* Implementation of {@link DbmsColumnHandler} for SQLite databases.
*
* @author Emil Forslund
* @since 3.1.10
*/
... | Remove filter that excludes auto increment columns from persists | sqlite: Remove filter that excludes auto increment columns from persists
| Java | apache-2.0 | speedment/speedment,speedment/speedment |
bd20899da67ca016becc4d6fb020f754444228cc | .bach/src/format.java | .bach/src/format.java | import com.github.sormuras.bach.Bach;
import com.github.sormuras.bach.ToolCall;
import com.github.sormuras.bach.ToolFinder;
class format {
public static void main(String... args) throws Exception {
var bach = Bach.ofDefaults().with(ToolFinder.ofJavaTools(".bach/external-tools"));
if (bach.configuration().fin... | import com.github.sormuras.bach.Bach;
import com.github.sormuras.bach.ToolCall;
class format {
public static void main(String... args) throws Exception {
var bach = Bach.ofDefaults();
if (bach.configuration().finder().find("format@1.15.0").isEmpty()) {
bach.run(
"""
load-and-verify
... | Use default Bach factory with its external tool finder | Use default Bach factory with its external tool finder
| Java | mit | sormuras/bach,sormuras/bach |
2cbb59b035bca222921eaa59f735eb693d9884c6 | src/com/obidea/semantika/cli2/command/CommandFactory.java | src/com/obidea/semantika/cli2/command/CommandFactory.java | package com.obidea.semantika.cli2.command;
public class CommandFactory
{
public static Command create(String command) throws Exception
{
if (command.startsWith(Command.SELECT)) {
return new SelectCommand(command);
}
else if (command.startsWith(Command.SET_PREFIX)) {
return new... | package com.obidea.semantika.cli2.command;
public class CommandFactory
{
public static Command create(String command) throws Exception
{
if (startsWith(command, Command.SELECT)) {
return new SelectCommand(command);
}
else if (startsWith(command, Command.SET_PREFIX)) {
return n... | Set the string comparison to ignore letter cases. | Set the string comparison to ignore letter cases. | Java | apache-2.0 | obidea/semantika-cli2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.