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 |
|---|---|---|---|---|---|---|---|---|---|
d73f938b523ff2d572d17f8e8ecf1afa9f3945a7 | tapestry-core/src/main/java/org/apache/tapestry5/modules/DashboardModule.java | tapestry-core/src/main/java/org/apache/tapestry5/modules/DashboardModule.java | // Copyright 2013 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | // Copyright 2013 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | Remove the "Metrics" tab from the Dashboard, as the page no longer exists | Remove the "Metrics" tab from the Dashboard, as the page no longer exists
| Java | apache-2.0 | apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5 |
59c4f368ffdf3f844d82a2a8f719d129f93fb3ac | SingularityService/src/main/java/com/hubspot/singularity/data/UserManager.java | SingularityService/src/main/java/com/hubspot/singularity/data/UserManager.java | package com.hubspot.singularity.data;
import org.apache.curator.framework.CuratorFramework;
import com.codahale.metrics.MetricRegistry;
import com.google.inject.Inject;
import com.hubspot.singularity.config.SingularityConfiguration;
public class UserManager extends CuratorManager {
@Inject
public UserManager(Cu... | package com.hubspot.singularity.data;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.utils.ZKPaths;
import com.codahale.metrics.MetricRegistry;
import com.google.common.base.Optional;
import com.google.inject.Inject;
import com.hubspot.singularity.SingularityUserSettings;
import com.h... | Implement ZK methods for UserSettings | Implement ZK methods for UserSettings
| Java | apache-2.0 | hs-jenkins-bot/Singularity,hs-jenkins-bot/Singularity,hs-jenkins-bot/Singularity,HubSpot/Singularity,andrhamm/Singularity,andrhamm/Singularity,andrhamm/Singularity,HubSpot/Singularity,hs-jenkins-bot/Singularity,HubSpot/Singularity,andrhamm/Singularity,andrhamm/Singularity,HubSpot/Singularity,HubSpot/Singularity,hs-jenk... |
2504777828d8b409c3c3af59f4e9771771a3c3f3 | cucumber/src/test/java/org/chodavarapu/datamill/cucumber/CommandLineStepsTest.java | cucumber/src/test/java/org/chodavarapu/datamill/cucumber/CommandLineStepsTest.java | package org.chodavarapu.datamill.cucumber;
import com.google.common.io.Files;
import org.junit.Test;
import java.io.File;
import java.nio.charset.Charset;
import java.util.Arrays;
import static org.junit.Assert.assertFalse;
/**
* @author Ravi Chodavarapu (rchodava@gmail.com)
*/
public class CommandLineStepsTest {... | package org.chodavarapu.datamill.cucumber;
import com.google.common.io.Files;
import org.junit.Test;
import java.io.File;
import java.nio.charset.Charset;
import java.util.Arrays;
import static org.junit.Assert.assertFalse;
/**
* @author Ravi Chodavarapu (rchodava@gmail.com)
*/
public class CommandLineStepsTest {... | Change executed command to echo | Change executed command to echo
| Java | isc | akefirad/datamill,rchodava/datamill |
1db7c54df6eae8fd0df1494fe43affa58952371b | src/main/java/org/codice/nitf/filereader/NitfDataExtensionSegment.java | src/main/java/org/codice/nitf/filereader/NitfDataExtensionSegment.java | /**
* Copyright (c) Codice Foundation
*
* This is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
* General Public License as published by the Free Software Foundation, either version 3 of the
* License, or any later version.
*
* This program is distributed in the hope t... | /**
* Copyright (c) Codice Foundation
*
* This is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser
* General Public License as published by the Free Software Foundation, either version 3 of the
* License, or any later version.
*
* This program is distributed in the hope t... | Remove unused private variables from DES segment data class. | Remove unused private variables from DES segment data class.
This should have been part of the previous commit, but its already pushed...
| Java | lgpl-2.1 | bradh/imaging-nitf,dcruver/imaging-nitf,codice/imaging-nitf |
a8c7cc2ca23d923f15d788334f3b060eab579316 | ontology-common/src/main/java/uk/ac/ebi/quickgo/ontology/common/coterms/CoTermSource.java | ontology-common/src/main/java/uk/ac/ebi/quickgo/ontology/common/coterms/CoTermSource.java | package uk.ac.ebi.quickgo.ontology.common.coterms;
/**
*
* Types of CoTerm data by annotation source.
*
* @author Tony Wardell
* Date: 29/09/2016
* Time: 15:49
* Created with IntelliJ IDEA.
*/
public enum CoTermSource {
ALL,
MANUAL
}
| package uk.ac.ebi.quickgo.ontology.common.coterms;
import java.util.Arrays;
import java.util.stream.Collectors;
/**
*
* Types of CoTerm data by annotation source.
*
* @author Tony Wardell
* Date: 29/09/2016
* Time: 15:49
* Created with IntelliJ IDEA.
*/
public enum CoTermSource {
ALL,
MANUAL;
/*... | Add some methods for validation. | Add some methods for validation.
| Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
a613047f5489dff9e739bf91093bd4c4ab9fdd69 | src/main/java/bench/pubsub/ZeroMQSequencer.java | src/main/java/bench/pubsub/ZeroMQSequencer.java | package bench.pubsub;
import org.zeromq.ZMQ;
/**
* This sequencer simply reads from a PULL socket and forwards the
* message to the PUB socket.
*/
public class ZeroMQSequencer {
public static void main (String[] args) throws Exception {
new Thread(new Sequencer()).start();
}
public stati... | package bench.pubsub;
import org.zeromq.ZMQ;
/**
* This sequencer simply reads from a PULL socket and forwards the
* message to the PUB socket.
*/
public class ZeroMQSequencer {
public static void main(String[] args) throws Exception {
new Thread(new Sequencer()).start();
}
public static cla... | Set Sequencer's HighWaterMark to 0 | Set Sequencer's HighWaterMark to 0
| Java | unlicense | smmf/pubsub-bench |
ef66020b82a58537169fd4b6d126318ff1637c3d | src/main/java/org/graylog2/gelfclient/Play.java | src/main/java/org/graylog2/gelfclient/Play.java | /*
* Copyright 2012-2014 TORCH GmbH
*
* This file is part of Graylog2.
*
* Graylog2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later vers... | /*
* Copyright 2012-2014 TORCH GmbH
*
* This file is part of Graylog2.
*
* Graylog2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later vers... | Send messages in a loop. | Send messages in a loop.
| Java | apache-2.0 | Graylog2/gelfclient |
88e537a5e3af0bdd3f1b6aa8df52970106f9acb0 | application/confagrid-webapp/src/main/java/com/aleggeup/confagrid/config/SystemConfig.java | application/confagrid-webapp/src/main/java/com/aleggeup/confagrid/config/SystemConfig.java | /*
* SystemConfig.java
*
* Copyright (C) 2018 [ A Legge Up ]
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package com.aleggeup.confagrid.config;
import org.springframework.context.annotation.Bean;
import org.springframework.contex... | /*
* SystemConfig.java
*
* Copyright (C) 2018 [ A Legge Up ]
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package com.aleggeup.confagrid.config;
import org.springframework.context.annotation.Bean;
import org.springframework.contex... | Add allowed and exposed headers to response headers for CORS | Add allowed and exposed headers to response headers for CORS
| Java | mit | ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid |
20238e4c60a280305f960233d4bb54e0647e9252 | arondor-common-xml-w3c-gwt-bridge/src/test/java/com/arondor/common/w3c2gwt/SimpleTest.java | arondor-common-xml-w3c-gwt-bridge/src/test/java/com/arondor/common/w3c2gwt/SimpleTest.java | package com.arondor.common.w3c2gwt;
import org.junit.Assert;
import org.junit.Test;
public class SimpleTest
{
@Test
public void parseAndSerialize_Simple()
{
String xml = "<someRoot attr=\"value1\">someContent</someRoot>";
Document doc = XMLParser.parse(xml);
String result = doc.t... | package com.arondor.common.w3c2gwt;
import org.junit.Assert;
import org.junit.Test;
public class SimpleTest
{
private void testXml(String xml)
{
Document doc = XMLParser.parse(xml);
String result = doc.toString();
Assert.assertEquals(xml, result);
}
@Test
public void parse... | Add some xml-parsing Unit tests | Add some xml-parsing Unit tests | Java | apache-2.0 | Doloops/arondor-common-reflection,Doloops/arondor-common-reflection |
fabb246bc9f93f84894aa9f30cb72c2ede5cdd0a | src/main/java/com/github/alechenninger/chronicler/TimeSheetFactory.java | src/main/java/com/github/alechenninger/chronicler/TimeSheetFactory.java | package com.github.alechenninger.chronicler;
import java.time.ZonedDateTime;
public interface TimeSheetFactory {
TimeSheet getTimeSheet(String[] additionalArgs);
default TimeSheet getTimeSheet(String[] additionalArgs, ZonedDateTime lastRecordedEntryTime) {
return getTimeSheet(additionalArgs);
}
}
| package com.github.alechenninger.chronicler;
import java.time.ZonedDateTime;
public interface TimeSheetFactory {
TimeSheet getTimeSheet(String[] args);
default TimeSheet getTimeSheet(String[] args, ZonedDateTime lastRecordedEntryTime) {
return getTimeSheet(args);
}
}
| Rename additionalArgs -> args (they are not 'additional' to the factory) | Rename additionalArgs -> args (they are not 'additional' to the factory)
| Java | unlicense | alechenninger/chronicler |
5b6f92eb05e4ba75fa82ed63027c939c76def0cd | webapi-api/src/main/java/valandur/webapi/api/server/IServerService.java | webapi-api/src/main/java/valandur/webapi/api/server/IServerService.java | package valandur.webapi.api.server;
import java.util.List;
import java.util.Map;
/**
* This service provides information about the minecraft server.
*/
public interface IServerService {
/**
* Gets the properties that are in the server.properties file of the minecraft server.
* @return The... | package valandur.webapi.api.server;
import java.util.List;
/**
* This service provides information about the minecraft server.
*/
public interface IServerService {
/**
* Gets a history of the average TPS of the minecraft server.
* @return A list containing measurements of the TPS.
*/... | Remove unused methods from server service interface | fix(server-properties): Remove unused methods from server service interface
| Java | mit | Valandur/Web-API,Valandur/Web-API,Valandur/Web-API |
aa85b13dab2aa35fafec1346feaab2cb4994b26c | src/main/java/com/opentok/api/API_Config.java | src/main/java/com/opentok/api/API_Config.java |
/*!
* OpenTok Java Library
* http://www.tokbox.com/
*
* Copyright 2010, TokBox, Inc.
*
*/
package com.opentok.api;
public class API_Config {
public static final int API_KEY = 4317;
public static final String API_SECRET = "91e6f7609074be23b40747a4651ba5a7";
public static final String API_URL = "http://staging.t... |
/*!
* OpenTok Java Library
* http://www.tokbox.com/
*
* Copyright 2010, TokBox, Inc.
*
*/
package com.opentok.api;
public class API_Config {
public static final int API_KEY = 4317;
public static final String API_SECRET = "91e6f7609074be23b40747a4651ba5a7";
public static final String API_URL = "https://api.open... | Remove reference to staging from SDK | Remove reference to staging from SDK
| Java | mit | CamioCam/Opentok-Java-SDK,Kwasniewski/Opentok-Java-SDK,drahot/Opentok-Java-SDK,opentok/Opentok-Java-SDK,drahot/Opentok-Java-SDK,opentok/Opentok-Java-SDK,mukesh-kum/Opentok-Java-SDK,CamioCam/Opentok-Java-SDK,Kwasniewski/Opentok-Java-SDK,mukesh-kum/Opentok-Java-SDK |
78accc7e01b64913ca0ad30d421c6faec281e0a3 | src/test/java/apostov/CommandLineInterpreterTest.java | src/test/java/apostov/CommandLineInterpreterTest.java | package apostov;
import org.junit.Test;
public class CommandLineInterpreterTest {
@Test
public void test01() {
new CommandLineInterpreter().interpretArguments(new String[]{"AsAh", "2h7d", "JhTh"});
}
}
| package apostov;
import org.junit.Test;
public class CommandLineInterpreterTest {
@Test
public void test01() {
new CommandLineInterpreter().interpretArguments(new String[]{"AsAh", "2h7d", "JhTh"});
}
@Test
public void test02() {
new CommandLineInterpreter().interpretArguments(new String[]{
... | Add a basic test for CommandLineInterpreter with a partial board | Add a basic test for CommandLineInterpreter with a partial board | Java | unlicense | ax13090/apostov |
a53905a310afc1b729181f876924500b26e44df4 | src/main/java/com/google/common/io/jimfs/attribute/package-info.java | src/main/java/com/google/common/io/jimfs/attribute/package-info.java | /*
* Copyright 2013 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 ... | /*
* Copyright 2013 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 ... | Remove reference to AttributeService in attribute package javadoc. | Remove reference to AttributeService in attribute package javadoc.
| Java | apache-2.0 | thejavamonk/jimfs,akkinenirajesh/jimfs,google/jimfs,google/jimfs,yaochang/jimfs,akkinenirajesh/jimfs,szpak/jimfs,yaochang/jimfs,rasheedamir/jimfs,rasheedamir/jimfs,wrmsr/jimfs,szpak/jimfs,wrmsr/jimfs |
cc47031c3f771b127fdb5b7c6f9c6c867d2a50ba | flexibee-core/src/main/java/com/adleritech/flexibee/core/api/domain/Result.java | flexibee-core/src/main/java/com/adleritech/flexibee/core/api/domain/Result.java | package com.adleritech.flexibee.core.api.domain;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;
@Data
@Builder
... | package com.adleritech.flexibee.core.api.domain;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;
@Data
@Builder
... | Add result request-id to response | Add result request-id to response
| Java | apache-2.0 | adleritech/flexibee |
22bc0ac95e62a9a89dba02e22605d582a09f9ff2 | utils/src/main/groovy/uk/ac/ox/ndm/grails/utils/hibernate/NamingStrategyHelper.java | utils/src/main/groovy/uk/ac/ox/ndm/grails/utils/hibernate/NamingStrategyHelper.java | package uk.ac.ox.ndm.grails.utils.hibernate;
import java.util.List;
import java.util.Set;
/**
* @since 19/01/2016
*/
public interface NamingStrategyHelper {
String adjustTableName(Class clazz, String tableName, String packageName);
String canonicalNameToSchemaName(String canonicalName);
String cleanC... | package uk.ac.ox.ndm.grails.utils.hibernate;
import java.util.List;
import java.util.Set;
/**
* @since 19/01/2016
*/
public interface NamingStrategyHelper {
String adjustTableName(Class clazz, String tableName, String packageName);
String canonicalNameToSchemaName(String canonicalName);
String cleanC... | Add a no params method to the namingstrategyhelper | Add a no params method to the namingstrategyhelper
| Java | apache-2.0 | olliefreeman/grails-utils,olliefreeman/grails-utils |
979bb063c263591a50f6c475d586ff3f6478492b | dynamo-core/src/main/java/dynamo/backlog/tasks/files/DeleteFileTask.java | dynamo-core/src/main/java/dynamo/backlog/tasks/files/DeleteFileTask.java | package dynamo.backlog.tasks.files;
import java.nio.file.Path;
import dynamo.core.DynamoTask;
import dynamo.core.model.Task;
@DynamoTask
public class DeleteFileTask extends Task {
private Path path;
public DeleteFileTask(Path path) {
super();
this.path = path;
}
public Path getPath() {
return path;
}... | package dynamo.backlog.tasks.files;
import java.nio.file.Path;
import dynamo.core.DynamoTask;
import dynamo.core.model.Task;
@DynamoTask(queueClass=DeleteQueue.class)
public class DeleteFileTask extends Task {
private Path path;
public DeleteFileTask(Path path) {
super();
this.path = path;
}
public Path... | Delete in a different queue | Delete in a different queue
| Java | apache-2.0 | mozvip/dynamo,mozvip/dynamo,mozvip/dynamo,mozvip/dynamo,mozvip/dynamo |
7c8f8804095a82bf499d84587ffe7d212f08ae6b | core/src/main/java/org/javarosa/core/model/instance/utils/FormLoadingUtils.java | core/src/main/java/org/javarosa/core/model/instance/utils/FormLoadingUtils.java | package org.javarosa.core.model.instance.utils;
import org.javarosa.core.model.instance.FormInstance;
import org.javarosa.core.model.instance.TreeElement;
import org.javarosa.xml.ElementParser;
import org.javarosa.xml.TreeElementParser;
import org.javarosa.xml.util.InvalidStructureException;
import org.javarosa.xml.ut... | package org.javarosa.core.model.instance.utils;
import org.javarosa.core.model.instance.FormInstance;
import org.javarosa.core.model.instance.TreeElement;
import org.javarosa.xml.ElementParser;
import org.javarosa.xml.TreeElementParser;
import org.javarosa.xml.util.InvalidStructureException;
import org.javarosa.xml.ut... | Fix resource loading on android | Fix resource loading on android
| Java | apache-2.0 | dimagi/javarosa,dimagi/javarosa,dimagi/javarosa |
2076ae62b3733a3d5ac07cea2007fb1c983b9e41 | src/com/robitdroid/RobitDroid.java | src/com/robitdroid/RobitDroid.java | package com.robitdroid;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
public class RobitDroid extends Activity {
private ImageView imageview;
/**
* Called when the activity is firs... | package com.robitdroid;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
public class RobitDroid extends Activity {
private ImageView imageview;
/**
* Called when the activity is firs... | Exit when backButton pressed in menu | Exit when backButton pressed in menu
| Java | mit | kennym/RobitDroid |
68d31823392de2bbfa025e42b3e91b485f0e8bca | matrix-sdk/src/main/java/org/matrix/androidsdk/rest/model/filter/RoomEventFilter.java | matrix-sdk/src/main/java/org/matrix/androidsdk/rest/model/filter/RoomEventFilter.java | /*
* Copyright 2018 Matthias Kesler
* Copyright 2018 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | /*
* Copyright 2018 Matthias Kesler
* Copyright 2018 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | Add lazy loading filter in model | Add lazy loading filter in model
| Java | apache-2.0 | matrix-org/matrix-android-sdk,matrix-org/matrix-android-sdk,matrix-org/matrix-android-sdk |
bc6f5d758d9d6d81c46e9096b6bc263a7ffd9387 | src/main/java/com/cjmalloy/torrentfs/editor/controller/FileSystemController.java | src/main/java/com/cjmalloy/torrentfs/editor/controller/FileSystemController.java | package com.cjmalloy.torrentfs.editor.controller;
import java.nio.file.Path;
import com.cjmalloy.torrentfs.editor.model.FileSystemModel;
public class FileSystemController extends Controller<FileSystemModel>
{
public FileSystemController(FileSystemModel model)
{
this.model = model;
}
public... | package com.cjmalloy.torrentfs.editor.controller;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.prefs.Preferences;
import com.cjmalloy.torrentfs.editor.model.FileSystemModel;
public class FileSystemController extends Controller<FileSystemModel>
{
private static Preferences P = Preferen... | Set workspace persistence and defaults. | Set workspace persistence and defaults.
| Java | mit | cjmalloy/tfs-gui |
fe5fe921ca54c4e86f8e0adf96800f6b20cc631a | src/main/java/net/glowstone/util/UuidUtils.java | src/main/java/net/glowstone/util/UuidUtils.java | package net.glowstone.util;
import java.util.UUID;
/**
* Utility methods for dealing with UUIDs.
*/
public final class UuidUtils {
private UuidUtils() {
}
public static UUID fromFlatString(String str) {
// xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
return UUID.fromString(str.substring(0, 8) ... | package net.glowstone.util;
import java.util.UUID;
/**
* Utility methods for dealing with UUIDs.
*/
public final class UuidUtils {
private UuidUtils() {
}
public static UUID fromFlatString(String str) {
// xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
return new UUID(Long.parseUnsignedLong(str.... | Optimize String to UUID conversion | Optimize String to UUID conversion
| Java | mit | GlowstoneMC/GlowstonePlusPlus,GlowstoneMC/GlowstonePlusPlus,GlowstonePlusPlus/GlowstonePlusPlus,GlowstoneMC/GlowstonePlusPlus,GlowstonePlusPlus/GlowstonePlusPlus,GlowstonePlusPlus/GlowstonePlusPlus,GlowstonePlusPlus/GlowstonePlusPlus,GlowstoneMC/GlowstonePlusPlus |
5a47e17a0d7723de3ca2d4dfb9e0c2993b93c813 | web/src/main/java/org/springframework/security/web/csrf/MissingCsrfTokenException.java | web/src/main/java/org/springframework/security/web/csrf/MissingCsrfTokenException.java | /*
* Copyright 2002-2013 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 2002-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... | Improve log message when no CSRF token found | Improve log message when no CSRF token found
Closes gh-10436
| Java | apache-2.0 | spring-projects/spring-security,spring-projects/spring-security,spring-projects/spring-security,spring-projects/spring-security,spring-projects/spring-security,spring-projects/spring-security,spring-projects/spring-security |
bb430d22e726237f7ad7383f3cfa0aa669234b26 | trunk/jbehave-maven-plugin/src/main/java/org/jbehave/mojo/ScenarioRunnerMojo.java | trunk/jbehave-maven-plugin/src/main/java/org/jbehave/mojo/ScenarioRunnerMojo.java | package org.jbehave.mojo;
import java.util.List;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
/**
* Mojo to run scenarios
*
* @author Mauro Talevi
* @goal run-scenarios
*/
public class ScenarioRunnerMojo extends AbstractJBehaveMojo {
/**
... | package org.jbehave.mojo;
import java.util.List;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
/**
* Mojo to run scenarios
*
* @author Mauro Talevi
* @goal run-scenarios
*/
public class ScenarioRunnerMojo extends AbstractJBehaveMojo {
/**
... | Add log message when no scenario are found. | Add log message when no scenario are found.
git-svn-id: 1c3b30599278237804f5418c838e2a3e6391d478@825 df8dfae0-ecdd-0310-b8d8-a050f7ac8317
| Java | bsd-3-clause | codehaus/jbehave-git,codehaus/jbehave-git,codehaus/jbehave-git |
c32786612fa0fdd094e0dca96186d9a42381375d | 12/E12_02.java | 12/E12_02.java | /*
Write a program that prompts the user to read two integers and displays their
sum. Your program should prompt the user to read the number again if the
input is incorrect.
*/
import java.util.Scanner;
public class E12_02 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
... | /*
Write a program that prompts the user to read two integers and displays their
sum. Your program should prompt the user to read the number again if the
input is incorrect.
*/
import java.util.Scanner;
public class E12_02 {
public static void main(String[] args) {
do {
Scanner input = new Scanner(S... | Use error handling for the solution. | Use error handling for the solution.
| Java | mit | maxalthoff/intro-to-java-exercises |
2db06738d2e8b88ad9ae254fc9c63d5bb3f8cda9 | dataStructuresAndAlgorithms/charter5/src/test/java/search/tree/FileTreeRecursionTest.java | dataStructuresAndAlgorithms/charter5/src/test/java/search/tree/FileTreeRecursionTest.java | package search.tree;// Copyright 2016 The Sawdust Open Source Project
//
// 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 re... | package search.tree;// Copyright 2016 The Sawdust Open Source Project
//
// 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 re... | Comment find() with line comment | Comment find() with line comment
The result depends on the running environment of buck command and IDE
| Java | apache-2.0 | BruceZu/KeepTry,BruceZu/KeepTry,BruceZu/KeepTry,BruceZu/sawdust,BruceZu/KeepTry,BruceZu/sawdust,BruceZu/sawdust,BruceZu/sawdust |
845a1c82dc25a6b3f015f3b86dd6b8b6ed5acd0f | src/main/java/com/ft/membership/crypto/signature/Encoder.java | src/main/java/com/ft/membership/crypto/signature/Encoder.java | package com.ft.membership.crypto.signature;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
import java.util.Optional;
public class Encoder {
private static final Base64.Encoder BASE_64_ENCODER = Base64.getUrlEncoder().withoutPadding();
private static final Base64.Decoder BASE_64_DECODER =... | package com.ft.membership.crypto.signature;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
import java.util.Optional;
public class Encoder {
private static final Base64.Encoder BASE_64_ENCODER = Base64.getUrlEncoder().withoutPadding();
private static final Base64.Decoder BASE_64_DECODER =... | Add javadocs with info on encoding | Add javadocs with info on encoding
| Java | mit | Financial-Times/crypto-signatures |
d0eb8fe316045e501dc3e0b6e4fda80ec1802cbd | src/main/java/org/seedstack/coffig/mapper/DurationMapper.java | src/main/java/org/seedstack/coffig/mapper/DurationMapper.java | /**
* Copyright (c) 2013-2016, The SeedStack authors <http://seedstack.org>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.coffig.mappe... | /**
* Copyright (c) 2013-2016, The SeedStack authors <http://seedstack.org>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.coffig.mappe... | Remove initialize() from duration mapper | Remove initialize() from duration mapper
| Java | mpl-2.0 | seedstack/coffig |
4417e0124a11c2ed50434aabe2b7ed8fecac6bfe | opennms-config/src/test/java/org/opennms/netmgt/config/JMXDataCollectionConfigFactoryTest.java | opennms-config/src/test/java/org/opennms/netmgt/config/JMXDataCollectionConfigFactoryTest.java | package org.opennms.netmgt.config;
import org.junit.Assert;
import org.junit.Test;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
public class JMXDataCollectionConfigFactoryTest {
@Test
// Tests that the JmxDataCollectionConfigFactory also supports/implements the ... | package org.opennms.netmgt.config;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
/*
@RunWith(OpenNMSJUnit4ClassRunner.class)
@ContextConfiguration(locations={
"classpath:/emptyContext.xml"
})... | Revert "Revert "set opennms home for JMXDataCollectionConfigFactory"" | Revert "Revert "set opennms home for JMXDataCollectionConfigFactory""
This reverts commit c460f2203e5b22a0786c473072e4b59073bca8b9.
| Java | agpl-3.0 | aihua/opennms,aihua/opennms,aihua/opennms,aihua/opennms,aihua/opennms,aihua/opennms,aihua/opennms,aihua/opennms,aihua/opennms |
341725556ca0818d93f4fad7c6929340c218c972 | src/main/java/io/github/aquerr/eaglefactions/commands/VersionCommand.java | src/main/java/io/github/aquerr/eaglefactions/commands/VersionCommand.java | package io.github.aquerr.eaglefactions.commands;
import io.github.aquerr.eaglefactions.PluginInfo;
import org.spongepowered.api.command.CommandException;
import org.spongepowered.api.command.CommandResult;
import org.spongepowered.api.command.CommandSource;
import org.spongepowered.api.command.args.CommandContext;
imp... | package io.github.aquerr.eaglefactions.commands;
import io.github.aquerr.eaglefactions.PluginInfo;
import org.spongepowered.api.command.CommandException;
import org.spongepowered.api.command.CommandResult;
import org.spongepowered.api.command.CommandSource;
import org.spongepowered.api.command.args.CommandContext;
imp... | Change display of /f version | Change display of /f version
| Java | mit | Aquerr/EagleFactions,Aquerr/EagleFactions |
e74415e3e76f2fff8836c95d6c409f05f400aa63 | zanata-common-api/src/main/java/org/zanata/common/UserActionType.java | zanata-common-api/src/main/java/org/zanata/common/UserActionType.java | package org.zanata.common;
import javax.xml.bind.annotation.XmlType;
@XmlType(name = "userActionType")
public enum UserActionType
{
UPDATE_TRANSLATION, REVIEWED_TRANSLATION, UPLOAD_DOCUMENT;
} | package org.zanata.common;
import javax.xml.bind.annotation.XmlType;
@XmlType(name = "userActionType")
public enum UserActionType
{
UPDATE_TRANSLATION, REVIEWED_TRANSLATION, UPLOAD_SOURCE_DOCUMENT, UPLOAD_TRANSLATION_DOCUMENT;
} | Add upload source and upload translation doc action | Add upload source and upload translation doc action
| Java | lgpl-2.1 | zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform |
3ba663240cdd08805793c8d56be3182b2a11ab47 | indexing/src/main/java/uk/ac/ebi/quickgo/index/common/listener/LogStepListener.java | indexing/src/main/java/uk/ac/ebi/quickgo/index/common/listener/LogStepListener.java | package uk.ac.ebi.quickgo.index.common.listener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.core.StepExecution;
import org.springframework.batch.core.StepExecutionListener;
/**
* Created 02/12/15
* @author Edd
*/
publi... | package uk.ac.ebi.quickgo.index.common.listener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.core.StepExecution;
import org.springframework.batch.core.StepExecutionListener;
/**
* Created 02/12/15
* @author Edd
*/
publi... | Add logging for processing skips. | Add logging for processing skips.
| Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
4a22569af0a3ce972326dd99cb91d7cdcdd5a00e | app/src/uk/co/jarofgreen/cityoutdoors/UI/BaseListActivity.java | app/src/uk/co/jarofgreen/cityoutdoors/UI/BaseListActivity.java | package uk.co.jarofgreen.cityoutdoors.UI;
import uk.co.jarofgreen.cityoutdoors.R;
import android.app.ListActivity;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.widget.TextView;
public class BaseListActivity extends ListActivity {
}
| package uk.co.jarofgreen.cityoutdoors.UI;
import com.google.analytics.tracking.android.EasyTracker;
import uk.co.jarofgreen.cityoutdoors.R;
import android.app.ListActivity;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.widget.TextView;
public class BaseListActi... | Add Google Analytics tracking to the list screens | Add Google Analytics tracking to the list screens
| Java | bsd-3-clause | City-Outdoors/City-Outdoors-Android |
01a6ec132f8989086921ca97084e1ef6203946e5 | src/main/java/org/oasis_eu/portal/core/mongo/model/images/ImageDownloadAttempt.java | src/main/java/org/oasis_eu/portal/core/mongo/model/images/ImageDownloadAttempt.java | package org.oasis_eu.portal.core.mongo.model.images;
import org.joda.time.DateTime;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
/**
* User: schambon
* Date: 9/3/14
*/
@Document(collection =... | package org.oasis_eu.portal.core.mongo.model.images;
import org.joda.time.DateTime;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
/**
* User: schambon
* Date: 9/3/14
*/
@Document(collection =... | Remove error-prone, previously commented Mongo annotation | Remove error-prone, previously commented Mongo annotation
See e26638d0a3cd1655a9955a96ce271485b6c17950 | Java | agpl-3.0 | SICTIAM/ozwillo-portal,SICTIAM/ozwillo-portal,SICTIAM/ozwillo-portal,SICTIAM/ozwillo-portal,ozwillo/ozwillo-portal,ozwillo/ozwillo-portal,ozwillo/ozwillo-portal,ozwillo/ozwillo-portal |
892cf28c63c498141ce40f7c642435be382f9f3b | nuxeo-drive-server/nuxeo-drive-core/src/main/java/org/nuxeo/drive/service/NuxeoDriveEvents.java | nuxeo-drive-server/nuxeo-drive-core/src/main/java/org/nuxeo/drive/service/NuxeoDriveEvents.java | /*
* (C) Copyright 2012 Nuxeo SA (http://nuxeo.com/) and contributors.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.o... | /*
* (C) Copyright 2012 Nuxeo SA (http://nuxeo.com/) and contributors.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.o... | Fix Sonar Major violations: Hide Utility Class Constructor | NXP-11577: Fix Sonar Major violations: Hide Utility Class Constructor
| Java | lgpl-2.1 | IsaacYangSLA/nuxeo-drive,IsaacYangSLA/nuxeo-drive,arameshkumar/base-nuxeo-drive,rsoumyassdi/nuxeo-drive,arameshkumar/nuxeo-drive,IsaacYangSLA/nuxeo-drive,ssdi-drive/nuxeo-drive,DirkHoffmann/nuxeo-drive,arameshkumar/nuxeo-drive,DirkHoffmann/nuxeo-drive,arameshkumar/base-nuxeo-drive,loopingz/nuxeo-drive,rsoumyassdi/nuxeo... |
087d0375a56e1f6001e6a15e32bedb8b1dcc50da | src/de.sormuras.bach/test/java-module/module-info.java | src/de.sormuras.bach/test/java-module/module-info.java | /*
* Bach - Java Shell Builder
* Copyright (C) 2020 Christian Stein
*
* 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 re... | /*
* Bach - Java Shell Builder
* Copyright (C) 2020 Christian Stein
*
* 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 re... | Copy missing directives from main descriptor | Copy missing directives from main descriptor
| Java | mit | sormuras/bach,sormuras/bach |
b1605b8f4a0634b12f5b48228df15a8a7c604195 | src/main/java/gr/iti/mklab/simmo/core/annotations/DisturbingScore.java | src/main/java/gr/iti/mklab/simmo/core/annotations/DisturbingScore.java | package gr.iti.mklab.simmo.core.annotations;
import gr.iti.mklab.simmo.core.Annotation;
public class DisturbingScore implements Annotation {
private double score;
public DisturbingScore(double score) {
this.score = score;
}
public double getScore() {
return score;
}
public void setScore(double score) ... | package gr.iti.mklab.simmo.core.annotations;
import gr.iti.mklab.simmo.core.Annotation;
public class DisturbingScore implements Annotation {
private double score;
public DisturbingScore() {
}
public DisturbingScore(double score) {
this.score = score;
}
public double getScore() {
return score;
}
... | Add default constructor in annotations | Add default constructor in annotations | Java | apache-2.0 | MKLab-ITI/simmo |
33d21e62315d68b8f500450b66e9fc0108241ace | alien4cloud-tosca/src/main/java/alien4cloud/tosca/serializer/ToscaImportsUtils.java | alien4cloud-tosca/src/main/java/alien4cloud/tosca/serializer/ToscaImportsUtils.java | package alien4cloud.tosca.serializer;
import java.util.Set;
import org.alien4cloud.tosca.model.CSARDependency;
/**
* A {@code ToscaImportsUtils} is a helper class that generates TOSCA imports.
*
* @author Loic Albertin
*/
public class ToscaImportsUtils {
public static String generateImports(Set<CSARDependen... | package alien4cloud.tosca.serializer;
import java.util.Set;
import org.alien4cloud.tosca.model.CSARDependency;
import static alien4cloud.utils.AlienUtils.safe;
/**
* A {@code ToscaImportsUtils} is a helper class that generates TOSCA imports.
*
* @author Loic Albertin
*/
public class ToscaImportsUtils {
pub... | USe safe on collection iteration | USe safe on collection iteration
| Java | apache-2.0 | san-tak/alien4cloud,alien4cloud/alien4cloud,san-tak/alien4cloud,alien4cloud/alien4cloud,alien4cloud/alien4cloud,san-tak/alien4cloud,san-tak/alien4cloud,alien4cloud/alien4cloud |
8568c145f836b641acc18cdc4ff06e0ee42b065e | robolectric/src/test/java/org/robolectric/shadows/ShadowDateIntervalFormatTest.java | robolectric/src/test/java/org/robolectric/shadows/ShadowDateIntervalFormatTest.java | // Copyright 2015 Google Inc. All Rights Reserved.
package org.robolectric.shadows;
import android.os.Build;
import android.text.format.DateUtils;
import libcore.icu.DateIntervalFormat;
import android.icu.util.TimeZone;
import android.icu.util.ULocale;
import org.junit.Test;
import org.junit.runner.RunWith;
import o... | // Copyright 2015 Google Inc. All Rights Reserved.
package org.robolectric.shadows;
import android.os.Build;
import android.text.format.DateUtils;
import libcore.icu.DateIntervalFormat;
import android.icu.util.TimeZone;
import android.icu.util.ULocale;
import org.junit.Test;
import org.junit.runner.RunWith;
import o... | Update test to run only against sdk 23, since the new method doesn't exist on older versions of android and the tests are compiled against the latest version of the sdk. The test still fails because it is missing | Update test to run only against sdk 23, since the new method doesn't exist on older versions of android and the tests are compiled against the latest version of the sdk. The test still fails because it is missing
| Java | mit | charlesmunger/robolectric,karlicoss/robolectric,tec27/robolectric,mag/robolectric,tec27/robolectric,erichaugh/robolectric,erichaugh/robolectric,jongerrish/robolectric,ChengCorp/robolectric,zhongyu05/robolectric,cesar1000/robolectric,zhongyu05/robolectric,ChengCorp/robolectric,spotify/robolectric,ocadotechnology/robolec... |
172cc253bde8c9b0e827481ea0219ce51aed0c7c | src/main/java/com/jvm_bloggers/frontend/common_components/toastr/ToastrBehavior.java | src/main/java/com/jvm_bloggers/frontend/common_components/toastr/ToastrBehavior.java | package com.jvm_bloggers.frontend.common_components.toastr;
//import de.agilecoders.wicket.webjars.request.resource.WebjarsCssResourceReference;
//import de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
import org.apache.wicket.Component;
import org.apache.wicket.behavior.Behavior;
i... | package com.jvm_bloggers.frontend.common_components.toastr;
import de.agilecoders.wicket.webjars.request.resource.WebjarsCssResourceReference;
import de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference;
import org.apache.wicket.Component;
import org.apache.wicket.behavior.Behavior;
import... | Fix not working toastr popups in Varia page | Fix not working toastr popups in Varia page
| Java | mit | tdziurko/jvm-bloggers,tdziurko/jvm-bloggers,jvm-bloggers/jvm-bloggers,szpak/jvm-bloggers,szpak/jvm-bloggers,szpak/jvm-bloggers,szpak/jvm-bloggers,kraluk/jvm-bloggers,jvm-bloggers/jvm-bloggers,tdziurko/jvm-bloggers,kraluk/jvm-bloggers,jvm-bloggers/jvm-bloggers,kraluk/jvm-bloggers,jvm-bloggers/jvm-bloggers,tdziurko/jvm-b... |
7ea900013672cd0f7aaa7bb216da4945dcf3576e | core/src/main/java/com/dtolabs/rundeck/core/authorization/AuthorizationException.java | core/src/main/java/com/dtolabs/rundeck/core/authorization/AuthorizationException.java | /*
* Copyright 2010 DTO Labs, Inc. (http://dtolabs.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | /*
* Copyright 2010 DTO Labs, Inc. (http://dtolabs.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | Fix potential NPE in constructor | Fix potential NPE in constructor
| Java | apache-2.0 | paul-krohn/rundeck,rophy/rundeck,damageboy/rundeck,jamieps/rundeck,rophy/rundeck,tjordanchat/rundeck,rundeck/rundeck,rundeck/rundeck,patcadelina/rundeck,damageboy/rundeck,variacode95/rundeck,patcadelina/rundeck,paul-krohn/rundeck,variacode95/rundeck,jgpacker/rundeck,paul-krohn/rundeck,jamieps/rundeck,paul-krohn/rundeck... |
fc983fd0e34faa3f433baaaba49ff988bee5435e | src/main/java/org/squiddev/plethora/gameplay/modules/glasses/objects/ItemObject.java | src/main/java/org/squiddev/plethora/gameplay/modules/glasses/objects/ItemObject.java | package org.squiddev.plethora.gameplay.modules.glasses.objects;
import net.minecraft.item.Item;
import org.squiddev.plethora.api.method.MethodResult;
import org.squiddev.plethora.api.method.wrapper.FromTarget;
import org.squiddev.plethora.api.method.wrapper.Optional;
import org.squiddev.plethora.api.method.wrapper.Ple... | package org.squiddev.plethora.gameplay.modules.glasses.objects;
import net.minecraft.item.Item;
import org.squiddev.plethora.api.method.MethodResult;
import org.squiddev.plethora.api.method.wrapper.FromTarget;
import org.squiddev.plethora.api.method.wrapper.Optional;
import org.squiddev.plethora.api.method.wrapper.Ple... | Fix {get,set}Object not being available on 2D items | Fix {get,set}Object not being available on 2D items
| Java | mit | SquidDev-CC/plethora,SquidDev-CC/plethora |
bdfd0dd8d82e22b172482d06377e412fb8249be6 | app/src/main/java/com/xengar/android/weather/LocationEditTextPreference.java | app/src/main/java/com/xengar/android/weather/LocationEditTextPreference.java | package com.xengar.android.weather;
import android.content.Context;
import android.content.res.TypedArray;
import android.preference.EditTextPreference;
import android.util.AttributeSet;
public class LocationEditTextPreference extends EditTextPreference {
static final private int DEFAULT_MINIMUM_LOCATION_LENGTH =... | package com.xengar.android.weather;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Bundle;
import android.preference.EditTextPreference;
import android.text.Editable;
import android.text.TextWatcher;
import android.uti... | Use AlertDialog with EditTextPreference and TextWatcher to disable setting the preference if the location is too short. | Use AlertDialog with EditTextPreference and TextWatcher to disable setting the preference if the location is too short.
| Java | apache-2.0 | an-garcia/Weather |
066c53ba230f0ab16c21518e00c6004400949dcc | bridje-core/src/test/java/org/bridje/core/ioc/test/ContextListenerDummy.java | bridje-core/src/test/java/org/bridje/core/ioc/test/ContextListenerDummy.java | /*
* Copyright 2015 Bridje Framework.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | /*
* Copyright 2015 Bridje Framework.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | Change the text on the test | Change the text on the test
| Java | apache-2.0 | touwolf/bridje-framework,bridje/bridje-framework,bridje/bridje-framework,bridje/bridje-framework,touwolf/bridje-framework |
c969263f7106ee00a27c28e93d18edcbcc02efc1 | org.csstudio.display.builder.rcp/src/org/csstudio/display/builder/rcp/OpenDisplayFile.java | org.csstudio.display.builder.rcp/src/org/csstudio/display/builder/rcp/OpenDisplayFile.java | /*******************************************************************************
* Copyright (c) 2015-2016 Oak Ridge National Laboratory.
* 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, ... | /*******************************************************************************
* Copyright (c) 2015-2016 Oak Ridge National Laboratory.
* 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, ... | Use *.bob over *.opi when called from alarm UI, cmd line | OpenFile: Use *.bob over *.opi when called from alarm UI, cmd line | Java | epl-1.0 | ESSICS/org.csstudio.display.builder,ESSICS/org.csstudio.display.builder,ESSICS/org.csstudio.display.builder,kasemir/org.csstudio.display.builder,kasemir/org.csstudio.display.builder,kasemir/org.csstudio.display.builder,ESSICS/org.csstudio.display.builder,ESSICS/org.csstudio.display.builder,kasemir/org.csstudio.display.... |
8e11e282dd27177e8d499351e6d006e23f61431b | src/main/java/valandur/webapi/handlers/CustomErrorHandler.java | src/main/java/valandur/webapi/handlers/CustomErrorHandler.java | package valandur.webapi.handlers;
import org.eclipse.jetty.http.HttpStatus;
import org.eclipse.jetty.server.handler.ErrorHandler;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.io.Writer;
public class CustomErrorHandler extends ErrorHandler {
@Override
protected void ha... | package valandur.webapi.handlers;
import com.google.gson.JsonObject;
import org.eclipse.jetty.http.HttpStatus;
import org.eclipse.jetty.server.handler.ErrorHandler;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.io.Writer;
public class CustomErrorHandler extends ErrorHandler {
... | Use actual json object in error handler | style(errors): Use actual json object in error handler
| Java | mit | Valandur/Web-API,Valandur/Web-API,Valandur/Web-API |
13324f5832d39c01d61488ba2a34d9304400f4f1 | src/main/java/org/jboss/arquillian/moco/client/MocoArchiveAppender.java | src/main/java/org/jboss/arquillian/moco/client/MocoArchiveAppender.java | package org.jboss.arquillian.moco.client;
import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension;
import org.jboss.arquillian.container.test.spi.client.deployment.AuxiliaryArchiveAppender;
import org.jboss.arquillian.moco.ReflectionHelper;
import org.jboss.arquillian.moco.container.MocoRemoteExten... | package org.jboss.arquillian.moco.client;
import org.jboss.arquillian.container.test.spi.RemoteLoadableExtension;
import org.jboss.arquillian.container.test.spi.client.deployment.AuxiliaryArchiveAppender;
import org.jboss.arquillian.moco.ReflectionHelper;
import org.jboss.arquillian.moco.api.Moco;
import org.jbo... | Add Arquillian Moco API to remote deployment | Add Arquillian Moco API to remote deployment
| Java | apache-2.0 | lordofthejars/arquillian-multiple-war,arquillian/arquillian-extension-moco |
c161615270d340e2ab77285e37c28162939a33d2 | extensions/mutiny/runtime/src/main/java/io/quarkus/mutiny/runtime/MutinyInfrastructure.java | extensions/mutiny/runtime/src/main/java/io/quarkus/mutiny/runtime/MutinyInfrastructure.java | package io.quarkus.mutiny.runtime;
import java.util.concurrent.ExecutorService;
import java.util.function.BooleanSupplier;
import java.util.function.Consumer;
import org.jboss.logging.Logger;
import io.quarkus.runtime.annotations.Recorder;
import io.smallrye.mutiny.infrastructure.Infrastructure;
@Recorder
public cl... | package io.quarkus.mutiny.runtime;
import java.util.concurrent.ExecutorService;
import java.util.function.BooleanSupplier;
import java.util.function.Consumer;
import org.jboss.logging.Logger;
import io.quarkus.runtime.annotations.Recorder;
import io.smallrye.mutiny.infrastructure.Infrastructure;
@Recorder
public cl... | Remove the logger from the heap | Remove the logger from the heap
| Java | apache-2.0 | quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus |
80023909b446f69bc349ff53eb47588dac42b364 | python/python-psi-api/src/com/jetbrains/python/psi/PyQualifiedNameOwner.java | python/python-psi-api/src/com/jetbrains/python/psi/PyQualifiedNameOwner.java | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Annotate Python UML diagrams support | i18n: Annotate Python UML diagrams support
GitOrigin-RevId: 492135bbc194d71e7a869ef591be574b1225b66b | 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... |
a39fed31ea4802627cd289e930e0aac07dfd15dd | src/org/ensembl/healthcheck/testcase/eg_core/AbstractEgCoreTestCase.java | src/org/ensembl/healthcheck/testcase/eg_core/AbstractEgCoreTestCase.java | /**
* File: SampleMetaTestCase.java
* Created by: dstaines
* Created on: May 1, 2009
* CVS: $$
*/
package org.ensembl.healthcheck.testcase.eg_core;
import org.ensembl.healthcheck.DatabaseType;
import org.ensembl.healthcheck.testcase.AbstractTemplatedTestCase;
/**
* Base class for EnsemblGenomes core healthchec... | /**
* File: SampleMetaTestCase.java
* Created by: dstaines
* Created on: May 1, 2009
* CVS: $$
*/
package org.ensembl.healthcheck.testcase.eg_core;
import org.ensembl.healthcheck.DatabaseType;
import org.ensembl.healthcheck.Team;
import org.ensembl.healthcheck.testcase.AbstractTemplatedTestCase;
/**
* Base cla... | Set team responsible by default | Set team responsible by default
| Java | apache-2.0 | thomasmaurel/ensj-healthcheck,Ensembl/ensj-healthcheck,thomasmaurel/ensj-healthcheck,thomasmaurel/ensj-healthcheck,thomasmaurel/ensj-healthcheck,Ensembl/ensj-healthcheck,Ensembl/ensj-healthcheck,Ensembl/ensj-healthcheck |
2990be32e0134ebed4be054f55ac8f3d8fda412c | RosettaCore/src/main/java/com/hubspot/rosetta/internal/RosettaModule.java | RosettaCore/src/main/java/com/hubspot/rosetta/internal/RosettaModule.java | package com.hubspot.rosetta.internal;
import com.fasterxml.jackson.core.ObjectCodec;
import com.fasterxml.jackson.core.Version;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.Module;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.da... | package com.hubspot.rosetta.internal;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.core.ObjectCodec;
import com.fasterxml.jackson.core.Version;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.Module;
import com.fasterxml.j... | Set this in addition to annotation introspector approach | Set this in addition to annotation introspector approach
| Java | apache-2.0 | HubSpot/Rosetta |
39b434b4b9be2e2e1d83b2241e29d3fd6ffcbcf7 | codenvy-ext-datasource-core/src/main/java/com/codenvy/ide/ext/datasource/shared/RequestParameterDTO.java | codenvy-ext-datasource-core/src/main/java/com/codenvy/ide/ext/datasource/shared/RequestParameterDTO.java | package com.codenvy.ide.ext.datasource.shared;
import com.codenvy.dto.shared.DTO;
@DTO
public interface RequestParameterDTO {
DatabaseConfigurationDTO getDatabase();
void setDatabase(DatabaseConfigurationDTO database);
RequestParameterDTO withDatabase(DatabaseConfigurationDTO database);
String get... | package com.codenvy.ide.ext.datasource.shared;
import com.codenvy.dto.shared.DTO;
@DTO
public interface RequestParameterDTO {
DatabaseConfigurationDTO getDatabase();
void setDatabase(DatabaseConfigurationDTO database);
RequestParameterDTO withDatabase(DatabaseConfigurationDTO database);
String get... | Add the field for request execution mode in request dto | Add the field for request execution mode in request dto | Java | epl-1.0 | codenvy/plugin-datasource,codenvy/plugin-datasource |
345a17635061e8df96a8835cd4b0820b73f934bd | log4j2-core/src/main/java/org/apache/logging/log4j/core/LoggingException.java | log4j2-core/src/main/java/org/apache/logging/log4j/core/LoggingException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Add javadoc description to resolve @doubt comment | Add javadoc description to resolve @doubt comment
git-svn-id: 1a1fa68050bcaed5349a5b70a2a7ea3fbc73e3e8@949492 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | GFriedrich/logging-log4j2,lburgazzoli/logging-log4j2,MagicWiz/log4j2,lburgazzoli/apache-logging-log4j2,codescale/logging-log4j2,jsnikhil/nj-logging-log4j2,lqbweb/logging-log4j2,apache/logging-log4j2,xnslong/logging-log4j2,jsnikhil/nj-logging-log4j2,GFriedrich/logging-log4j2,jinxuan/logging-log4j2,apache/logging-log4j2,... |
c4fcde30840e3dc71f5f52d88768cbcd92da6ce9 | ringbuffer/pattern_solution/src/test/java/de/itemis/mosig/ringbuffer/CircularBufferTest.java | ringbuffer/pattern_solution/src/test/java/de/itemis/mosig/ringbuffer/CircularBufferTest.java | package de.itemis.mosig.ringbuffer;
import org.junit.Assert;
import org.junit.Test;
public class CircularBufferTest {
@Test
public void constructorShouldSetProvidedSize() {
CircularBuffer underTest = new CircularBuffer(3);
Assert.assertEquals(3, underTest.size());
}
}
| package de.itemis.mosig.ringbuffer;
import java.util.Random;
import org.junit.Assert;
import org.junit.Test;
public class CircularBufferTest {
@Test
public void whenPassingRandomNbrToTheConstructorSizeShouldBeThatNbr() {
int expectedSize = new Random().nextInt(Integer.MAX_VALUE);
CircularBuffer underTest = ne... | Test now uses random nbr. | RED: Test now uses random nbr. | Java | epl-1.0 | JanMosigItemis/codingdojoleipzig |
476a60342684d438de00a477c6151fd4d4aab72f | exist-core/src/test/java/xquery/validation/ValidationTests.java | exist-core/src/test/java/xquery/validation/ValidationTests.java | /*
* eXist Open Source Native XML Database
* Copyright (C) 2001-2018 The eXist Project
* http://exist-db.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2
* o... | /*
* eXist Open Source Native XML Database
* Copyright (C) 2001-2018 The eXist Project
* http://exist-db.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2
* o... | Fix test path in Validation test | [refactor] Fix test path in Validation test
| Java | lgpl-2.1 | adamretter/exist,olvidalo/exist,eXist-db/exist,windauer/exist,ambs/exist,dizzzz/exist,adamretter/exist,wolfgangmm/exist,dizzzz/exist,adamretter/exist,ambs/exist,eXist-db/exist,lcahlander/exist,windauer/exist,wolfgangmm/exist,olvidalo/exist,dizzzz/exist,dizzzz/exist,olvidalo/exist,windauer/exist,ambs/exist,wolfgangmm/ex... |
5fc43ec5dad84f752e9417ecd1934521bf7204d7 | src/main/java/nl/eernie/jmoribus/model/Step.java | src/main/java/nl/eernie/jmoribus/model/Step.java | package nl.eernie.jmoribus.model;
import org.apache.commons.lang3.StringUtils;
import java.util.ArrayList;
import java.util.List;
public class Step {
private StepType stepType;
private List<StepLine> stepLines = new ArrayList<>();
public Step(StepType stepType) {
this.stepType = stepType;
... | package nl.eernie.jmoribus.model;
import org.apache.commons.lang3.StringUtils;
import java.util.ArrayList;
import java.util.List;
public class Step {
private StepType stepType;
private List<StepLine> stepLines = new ArrayList<>();
public Step(StepType stepType) {
this.stepType = stepType;
... | Remove defect for building a string in a loop | Remove defect for building a string in a loop
| Java | mit | Eernie/JMoribus |
65b8ec176deae2aea940a8d3c989ff7a37f440c9 | guice/common/src/main/java/com/peterphi/std/guice/restclient/resteasy/impl/TracingClientRequestFilter.java | guice/common/src/main/java/com/peterphi/std/guice/restclient/resteasy/impl/TracingClientRequestFilter.java | package com.peterphi.std.guice.restclient.resteasy.impl;
import com.peterphi.std.util.tracing.Tracing;
import com.peterphi.std.util.tracing.TracingConstants;
import javax.ws.rs.client.ClientRequestContext;
import javax.ws.rs.client.ClientRequestFilter;
import javax.ws.rs.ext.Provider;
import java.io.IOException;
@Pr... | package com.peterphi.std.guice.restclient.resteasy.impl;
import com.peterphi.std.util.tracing.Tracing;
import com.peterphi.std.util.tracing.TracingConstants;
import org.apache.log4j.Logger;
import javax.ws.rs.client.ClientRequestContext;
import javax.ws.rs.client.ClientRequestFilter;
import javax.ws.rs.ext.Provider;
... | Add logic to prevent the addition of duplicate X-Correlation-ID headers if the tracing filter is called multiple times (also logs a warning if this happens) | Add logic to prevent the addition of duplicate X-Correlation-ID headers if the tracing filter is called multiple times (also logs a warning if this happens)
| Java | mit | petergeneric/stdlib,petergeneric/stdlib,petergeneric/stdlib |
57e1bfc7baa73a09152f5db8af48da9eae77d8ea | supermarket/src/integrationTest/java/com/akikanellis/kata01/TenPercentOffEverything.java | supermarket/src/integrationTest/java/com/akikanellis/kata01/TenPercentOffEverything.java | package com.akikanellis.kata01;
import com.akikanellis.kata01.item.Items;
import com.akikanellis.kata01.item.QuantifiedItem;
import com.akikanellis.kata01.offer.Offer;
import com.akikanellis.kata01.offer.OfferStrategy;
import com.akikanellis.kata01.offer.Offers;
import com.akikanellis.kata01.offer.QuantifiedOffer;
imp... | package com.akikanellis.kata01;
import com.akikanellis.kata01.item.Items;
import com.akikanellis.kata01.item.QuantifiedItem;
import com.akikanellis.kata01.offer.Offer;
import com.akikanellis.kata01.offer.OfferStrategy;
import com.akikanellis.kata01.offer.Offers;
import com.akikanellis.kata01.offer.QuantifiedOffer;
imp... | Refactor ten percent off everything strategy | Refactor ten percent off everything strategy
| Java | mit | AkiKanellis/kata01-supermarket-pricing,AkiKanellis/kata01-supermarket-pricing |
db07302a3cb1111d0bb3c00fc6d88ce2d259d707 | extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonTimeZonePropertiesTest.java | extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonTimeZonePropertiesTest.java | package io.quarkus.jackson.deployment;
import java.util.Calendar;
import java.util.Date;
import javax.inject.Inject;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import com.fasterxml.jackson.core.JsonProcessingException;
import ... | package io.quarkus.jackson.deployment;
import java.time.LocalDateTime;
import java.time.Month;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.Date;
import javax.inject.Inject;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.... | Replace deprecated Date constructor use in Jackson test | Replace deprecated Date constructor use in Jackson test
| Java | apache-2.0 | quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus |
e23bf831a1ca0f60196c673ed07d75170a95e7bd | components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConstants.java | components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConstants.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Make Kafka KEY and PARTITION values more intuitive. | Make Kafka KEY and PARTITION values more intuitive.
| Java | apache-2.0 | davidkarlsen/camel,lburgazzoli/apache-camel,trohovsky/camel,w4tson/camel,nikhilvibhav/camel,lburgazzoli/camel,jamesnetherton/camel,nikhilvibhav/camel,adessaigne/camel,borcsokj/camel,apache/camel,johnpoth/camel,jamesnetherton/camel,zregvart/camel,mgyongyosi/camel,chirino/camel,borcsokj/camel,snurmine/camel,nicolaferraro... |
d2ed4058b35d6f3653c49b456e4b6c819a51b3cc | src/main/java/edu/northwestern/bioinformatics/studycalendar/xml/writers/AddXmlSerializer.java | src/main/java/edu/northwestern/bioinformatics/studycalendar/xml/writers/AddXmlSerializer.java | package edu.northwestern.bioinformatics.studycalendar.xml.writers;
import edu.northwestern.bioinformatics.studycalendar.domain.delta.Add;
import edu.northwestern.bioinformatics.studycalendar.domain.delta.Change;
import edu.northwestern.bioinformatics.studycalendar.domain.Study;
import edu.northwestern.bioinformatics.s... | package edu.northwestern.bioinformatics.studycalendar.xml.writers;
import edu.northwestern.bioinformatics.studycalendar.domain.delta.Add;
import edu.northwestern.bioinformatics.studycalendar.domain.delta.Change;
import edu.northwestern.bioinformatics.studycalendar.domain.Study;
import edu.northwestern.bioinformatics.s... | Add change will now de-serialize a PlanTreeNode children when readElement is called. | Add change will now de-serialize a PlanTreeNode children when readElement is called.
| Java | bsd-3-clause | NCIP/psc,NCIP/psc,NCIP/psc,NCIP/psc |
f16ebf8a96df76f7fdf7506b0b1529cccc693436 | src/main/java/com/github/blindpirate/gogradle/util/ExceptionHandler.java | src/main/java/com/github/blindpirate/gogradle/util/ExceptionHandler.java | package com.github.blindpirate.gogradle.util;
import java.io.PrintWriter;
import java.io.StringWriter;
public class ExceptionHandler {
public static RuntimeException uncheckException(Throwable e) {
return new IllegalStateException(e);
}
public static String getStackTrace(Throwable e) {
St... | package com.github.blindpirate.gogradle.util;
import java.io.PrintWriter;
import java.io.StringWriter;
public class ExceptionHandler {
public static class UncheckedException extends RuntimeException {
public UncheckedException(Throwable e) {
super(e);
}
}
public static Runtime... | Throw exceptions with type UncheckedException | Throw exceptions with type UncheckedException
| Java | apache-2.0 | gogradle/gogradle,gogradle/gogradle,blindpirate/gogradle,blindpirate/gogradle,gogradle/gogradle,gogradle/gogradle |
be46f60c00de979fdacb84723010037935edc5df | src/test/java/com/blogspot/nurkiewicz/lazyseq/samples/FibonacciTest.java | src/test/java/com/blogspot/nurkiewicz/lazyseq/samples/FibonacciTest.java | package com.blogspot.nurkiewicz.lazyseq.samples;
import com.blogspot.nurkiewicz.lazyseq.AbstractBaseTestCase;
import com.blogspot.nurkiewicz.lazyseq.LazySeq;
import org.testng.annotations.Test;
import static java.util.Arrays.asList;
import static org.fest.assertions.api.Assertions.assertThat;
/**
* @author Tomasz N... | package com.blogspot.nurkiewicz.lazyseq.samples;
import com.blogspot.nurkiewicz.lazyseq.AbstractBaseTestCase;
import com.blogspot.nurkiewicz.lazyseq.LazySeq;
import org.testng.annotations.Test;
import static java.util.Arrays.asList;
import static org.fest.assertions.api.Assertions.assertThat;
/**
* @author Tomasz N... | Use cons() instead of of() to improve performance | Use cons() instead of of() to improve performance
| Java | apache-2.0 | nurkiewicz/LazySeq,xylo/LazySeq,xylo/LazySeq |
ebc97f42ad40756b4db1dcd81aeeb758bb319e02 | src/main/java/org/kohsuke/github/GHBranch.java | src/main/java/org/kohsuke/github/GHBranch.java | package org.kohsuke.github;
/**
* A branch in a repository.
*
* @author Yusuke Kokubo
*/
public class GHBranch {
private GitHub root;
private GHRepository owner;
private String name;
private Commit commit;
public static class Commit {
String sha,url;
}
public GitHub getRoot(... | package org.kohsuke.github;
/**
* A branch in a repository.
*
* @author Yusuke Kokubo
*/
public class GHBranch {
private GitHub root;
private GHRepository owner;
private String name;
private Commit commit;
public static class Commit {
String sha,url;
}
public GitHub getRoot(... | Fix potential NPE in the code | Fix potential NPE in the code
| Java | mit | kohsuke/github-api,gecko655/github-api,marc-guenther/github-api,gitminingOrg/github-api,pomes/github-api,Sampson91/github-api,dblevins/github-api,if6was9/github-api,stephenc/github-api,christiansahlstrom93/github-api,oleg-nenashev/github-api,mmitche/github-api,Shredder121/github-api,jeffnelson/github-api,recena/github-... |
c9654fbf3e059842943215dbf2c32ca772351fdb | annotation-rest/src/test/java/uk/ac/ebi/quickgo/annotation/service/converter/AnnotationDocConverterImplTest.java | annotation-rest/src/test/java/uk/ac/ebi/quickgo/annotation/service/converter/AnnotationDocConverterImplTest.java | package uk.ac.ebi.quickgo.annotation.service.converter;
import uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocMocker;
import uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocument;
import uk.ac.ebi.quickgo.annotation.model.Annotation;
import org.junit.Before;
import org.junit.Ignore;
import org.ju... | package uk.ac.ebi.quickgo.annotation.service.converter;
import uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocMocker;
import uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocument;
import uk.ac.ebi.quickgo.annotation.model.Annotation;
import org.junit.Before;
import org.junit.Ignore;
import org.ju... | Make test name less generic. | Make test name less generic.
| Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
a6856fec2d659fa92065c1ec939de18dc6313fb8 | com.googlecode.jslint4java.eclipse/src/com/googlecode/jslint4java/eclipse/preferences/PreferencesInitializer.java | com.googlecode.jslint4java.eclipse/src/com/googlecode/jslint4java/eclipse/preferences/PreferencesInitializer.java | package com.googlecode.jslint4java.eclipse.preferences;
import java.util.EnumSet;
import java.util.Set;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.core.runtime.preferences.DefaultScope;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import com.goog... | package com.googlecode.jslint4java.eclipse.preferences;
import java.util.EnumSet;
import java.util.Set;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.core.runtime.preferences.DefaultScope;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import com.goog... | Add another default from JSLint. | Add another default from JSLint. | Java | bsd-2-clause | happygiraffe/jslint4java-eclipse |
d876c38f923d75a9758676b53d0d28050f541e7d | src/main/java/org/github/pesan/tools/servicespy/action/ActionService.java | src/main/java/org/github/pesan/tools/servicespy/action/ActionService.java | package org.github.pesan.tools.servicespy.action;
import io.reactivex.Completable;
import io.reactivex.Observable;
import io.reactivex.subjects.ReplaySubject;
import io.reactivex.subjects.Subject;
import org.github.pesan.tools.servicespy.action.entry.LogEntry;
import org.github.pesan.tools.servicespy.action.entry.Requ... | package org.github.pesan.tools.servicespy.action;
import io.reactivex.Completable;
import io.reactivex.Observable;
import io.reactivex.subjects.ReplaySubject;
import io.reactivex.subjects.Subject;
import org.github.pesan.tools.servicespy.action.entry.LogEntry;
import org.github.pesan.tools.servicespy.action.entry.Requ... | Use serialized subject where possible | Use serialized subject where possible
| Java | mit | pesan/service-spy,pesan/service-spy,pesan/service-spy |
dc9bee0c32295fe8c98d47450238fd8c7c087d84 | gravitee-plugin-core/src/main/java/io/gravitee/plugin/core/api/PluginType.java | gravitee-plugin-core/src/main/java/io/gravitee/plugin/core/api/PluginType.java | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | Manage repository as a plugin | feat(plugin): Manage repository as a plugin
| Java | apache-2.0 | gravitee-io/gravitee-plugin-core |
53cc536a9ec1297efec92f8c2b8f6c25bb72e672 | sample/src/main/java/net/grandcentix/thirtyinch/sample/HelloWorldActivity.java | sample/src/main/java/net/grandcentix/thirtyinch/sample/HelloWorldActivity.java | package net.grandcentix.thirtyinch.sample;
import com.jakewharton.rxbinding.view.RxView;
import net.grandcentrix.thirtyinch.Presenter;
import net.grandcentrix.thirtyinch.android.ThirtyInchActivity;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.widget.Button;
import android.widge... | package net.grandcentix.thirtyinch.sample;
import com.jakewharton.rxbinding.view.RxView;
import net.grandcentrix.thirtyinch.android.ThirtyInchActivity;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.widget.Button;
import android.widget.TextView;
import rx.Observable;
public cla... | Update sample for static presenter typing | Update sample for static presenter typing
| Java | apache-2.0 | grandcentrix/ThirtyInch,grandcentrix/ThirtyInch |
6ec404d56934e98d1a0e4c1815719dc8c6ff420f | CardForm/src/main/java/com/braintreepayments/cardform/view/MobileNumberEditText.java | CardForm/src/main/java/com/braintreepayments/cardform/view/MobileNumberEditText.java | package com.braintreepayments.cardform.view;
import android.content.Context;
import android.telephony.PhoneNumberFormattingTextWatcher;
import android.telephony.PhoneNumberUtils;
import android.text.InputFilter;
import android.text.InputFilter.LengthFilter;
import android.text.InputType;
import android.util.AttributeS... | package com.braintreepayments.cardform.view;
import android.content.Context;
import android.telephony.PhoneNumberFormattingTextWatcher;
import android.telephony.PhoneNumberUtils;
import android.text.InputFilter;
import android.text.InputFilter.LengthFilter;
import android.text.InputType;
import android.util.AttributeS... | Fix error in visual layout editor | Fix error in visual layout editor
Avoid setting PhoneNumberFormattingTextWatcher in MobileNumberEditText
when in edit mode.
Fixes #24
| Java | mit | braintree/android-card-form,braintree/android-card-form,braintree/android-card-form |
31c0c2216a58fbf8fd3465847ba66e906ace0c51 | src/main/java/com/crowdin/cli/commands/parts/PropertiesBuilderCommandPart.java | src/main/java/com/crowdin/cli/commands/parts/PropertiesBuilderCommandPart.java | package com.crowdin.cli.commands.parts;
import com.crowdin.cli.commands.functionality.PropertiesBuilder;
import com.crowdin.cli.properties.Params;
import com.crowdin.cli.properties.PropertiesBean;
import picocli.CommandLine;
import java.io.File;
public abstract class PropertiesBuilderCommandPart extends Command {
... | package com.crowdin.cli.commands.parts;
import com.crowdin.cli.commands.functionality.PropertiesBuilder;
import com.crowdin.cli.properties.Params;
import com.crowdin.cli.properties.PropertiesBean;
import picocli.CommandLine;
import java.io.File;
public abstract class PropertiesBuilderCommandPart extends Command {
... | Remove description for config options | Remove description for config options
| Java | mit | crowdin/crowdin-cli,crowdin/crowdin-cli |
3a7e6b53d9095be9cdffa123d73d9e2b4cc9d001 | platform/platform-impl/src/com/intellij/ide/cloudConfig/CloudConfigTestProvider.java | platform/platform-impl/src/com/intellij/ide/cloudConfig/CloudConfigTestProvider.java | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.cloudConfig;
import com.intellij.openapi.wm.StatusBar;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.... | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.cloudConfig;
import com.intellij.openapi.wm.StatusBar;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.... | Prepare plugin for gui testing with remote-robot | Prepare plugin for gui testing with remote-robot
GitOrigin-RevId: 708ebfb9f4d7f57bbeafc6ff64434039f2865bdd | 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... |
2a4aa086345ce960fbc1d62e03ca4e0974b317b7 | applvsdklib/src/main/java/com/applivery/applvsdklib/domain/appconfig/update/AppConfigChecker.java | applvsdklib/src/main/java/com/applivery/applvsdklib/domain/appconfig/update/AppConfigChecker.java | /*
* Copyright (c) 2016 Applivery
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | /*
* Copyright (c) 2016 Applivery
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | Fix sdk restarted true bug | Fix sdk restarted true bug
| Java | apache-2.0 | applivery/applivery-android-sdk,applivery/applivery-android-sdk |
5baf958171bd3dcc8dd0257d37a7c651e5197e05 | src/main/java/com/epam/ta/reportportal/ws/converter/converters/ActivityConverter.java | src/main/java/com/epam/ta/reportportal/ws/converter/converters/ActivityConverter.java | package com.epam.ta.reportportal.ws.converter.converters;
import com.epam.ta.reportportal.entity.Activity;
import com.epam.ta.reportportal.ws.model.ActivityResource;
import java.sql.Date;
import java.time.ZoneId;
import java.util.function.Function;
public final class ActivityConverter {
private ActivityConverter()... | package com.epam.ta.reportportal.ws.converter.converters;
import com.epam.ta.reportportal.entity.Activity;
import com.epam.ta.reportportal.ws.model.ActivityResource;
import java.util.function.Function;
import static com.epam.ta.reportportal.commons.EntityUtils.TO_DATE;
public final class ActivityConverter {
priva... | Use converter from the EntityUtils | Use converter from the EntityUtils
| Java | apache-2.0 | reportportal/service-api,reportportal/service-api,reportportal/service-api,reportportal/service-api,reportportal/service-api |
fd18925ff2e8641c23ac84a954d09fc3c63ee215 | CarFactory/src/ru/nsu/ccfit/bogush/factory/Supplier.java | CarFactory/src/ru/nsu/ccfit/bogush/factory/Supplier.java | package ru.nsu.ccfit.bogush.factory;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class Supplier<T extends CarFactoryObject> extends SimplePeriodical implements Runnable {
private Storage<T> storage;
private static final long DEFAULT_PERIOD = 0;
private Class<T> thingC... | package ru.nsu.ccfit.bogush.factory;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class Supplier<T extends CarFactoryObject> extends SimplePeriodical implements Runnable {
private Storage<T> storage;
private static final long DEFAULT_PERIOD = 0;
private Class<T> conten... | Change toString() Rename field thingClass to contentType | Change toString()
Rename field thingClass to contentType
| Java | mit | RoyPy/15201-bogush |
c8ec1c2de4ad9ae92725d7158d8a672fc6f750f4 | src/main/java/ch/rasc/eds/starter/util/QueryUtil.java | src/main/java/ch/rasc/eds/starter/util/QueryUtil.java | package ch.rasc.eds.starter.util;
import java.util.ArrayList;
import java.util.List;
import org.bson.conversions.Bson;
import com.mongodb.client.model.Sorts;
import ch.ralscha.extdirectspring.bean.ExtDirectStoreReadRequest;
import ch.ralscha.extdirectspring.bean.SortDirection;
import ch.ralscha.extdirectspring.bean... | package ch.rasc.eds.starter.util;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import java.util.stream.StreamSupport;
import org.bson.conversions.Bson;
import com.mongodb.client.FindIterable;
import com.mongodb.client.model.Sorts;
import ch.r... | Add helper methods that convert a FindIterable to a List and Stream | Add helper methods that convert a FindIterable to a List and Stream | Java | apache-2.0 | ralscha/eds-starter6-mongodb,ralscha/eds-starter6-mongodb,ralscha/eds-starter6-mongodb |
c7e1d145fbae761601312a2b372bb5803a5b3900 | samples/snippets/src/main/java/com/example/translate/QuickstartSample.java | samples/snippets/src/main/java/com/example/translate/QuickstartSample.java | /*
Copyright 2016, Google, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | /*
Copyright 2016, Google, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | Add quickstarts to root module. | samples: Add quickstarts to root module.
Fixes checkstyle errors in samples.
| Java | apache-2.0 | googleapis/java-translate,googleapis/java-translate,googleapis/java-translate |
f33fc6791d5b4c5bf097566e6c5015101d57ff85 | context-logger/context-logger-jaxws/src/main/java/io/tracee/contextlogger/jaxws/container/TraceeContextLoggerJaxwsConstants.java | context-logger/context-logger-jaxws/src/main/java/io/tracee/contextlogger/jaxws/container/TraceeContextLoggerJaxwsConstants.java | package io.tracee.contextlogger.jaxws.container;
public final class TraceeContextLoggerJaxwsConstants {
private TraceeContextLoggerJaxwsConstants() { }
public static final String TRACEE_WITH_ERROR_LOGGING_HANDLER_CHAIN_URL =
"/src/main/resources/io/tracee/contextlogger/jaxws/TraceeWithErrorLoggingHandlerChain.x... | package io.tracee.contextlogger.jaxws.container;
/**
* This class is not directly used but exists for the users convenience
* (Like adding @HandlerChain(xmlFile=TraceeContextLoggerJaxwsConstants.TRACEE_WITH_ERROR_LOGGING_HANDLER_CHAIN_URL)
*/
@SuppressWarnings("UnusedDeclaration")
public final class TraceeContextLo... | Add comment and SuppressWarning annotation | Add comment and SuppressWarning annotation
| Java | bsd-3-clause | tracee/tracee,Hippoom/tracee,danielwegener/tracee,hypery2k/tracee,SvenBunge/tracee |
e865ff4ecc34c27730fb638219bc075b7fbf6c61 | src/main/java/valandur/webapi/json/request/player/UpdatePlayerRequest.java | src/main/java/valandur/webapi/json/request/player/UpdatePlayerRequest.java | package valandur.webapi.json.request.player;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import valandur.webapi.json.request.entity.UpdateEntityRequest;
@JsonDeserialize
public class UpdatePlayerRequest extends UpdateEntityRequest {
@JsonDeserialize
private Integer foodLevel;
... | package valandur.webapi.json.request.player;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import valandur.webapi.json.request.entity.UpdateEntityRequest;
@JsonDeserialize
public class UpdatePlayerRequest extends UpdateEntityRequest {
@JsonDeserialize
private Integer foodLevel;
... | Implement setting player health and max health | feat(player): Implement setting player health and max health
| Java | mit | Valandur/Web-API,Valandur/Web-API,Valandur/Web-API |
3466ffdbe100a208c1325c237e4bd8855c7c1469 | platform-extensions/org.ossmeter.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/trans/model/RascalMetrics.java | platform-extensions/org.ossmeter.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/trans/model/RascalMetrics.java | package org.ossmeter.metricprovider.rascal.trans.model;
import com.googlecode.pongo.runtime.PongoDB;
import com.mongodb.DB;
// protected region custom-imports on begin
// protected region custom-imports end
public class RascalMetrics extends PongoDB {
private final String collectionName;
public RascalMetrics(DB d... | package org.ossmeter.metricprovider.rascal.trans.model;
import com.googlecode.pongo.runtime.PongoDB;
import com.mongodb.DB;
// protected region custom-imports on begin
// protected region custom-imports end
public class RascalMetrics extends PongoDB {
private final String collectionName;
public RascalMetrics(DB d... | Fix for naming of rascal metrics collections. | Fix for naming of rascal metrics collections. | Java | epl-1.0 | ossmeter/ossmeter,ossmeter/ossmeter,ossmeter/ossmeter,ossmeter/ossmeter,ossmeter/ossmeter |
5c3eb05d3854e6aaadf17260c7e4b5aa331f78bc | src/main/java/au/gov/ga/geodesy/support/mapper/dozer/populator/SiteIdentificationTypePopulator.java | src/main/java/au/gov/ga/geodesy/support/mapper/dozer/populator/SiteIdentificationTypePopulator.java | package au.gov.ga.geodesy.support.mapper.dozer.populator;
import au.gov.ga.geodesy.support.utils.GMLGmlTools;
import au.gov.ga.geodesy.support.utils.GMLMiscTools;
import au.gov.xml.icsm.geodesyml.v_0_3.SiteIdentificationType;
/**
* The translate simply copied the Countries (in Sopac Sitelog XML) across to the Geoesy... | package au.gov.ga.geodesy.support.mapper.dozer.populator;
import au.gov.ga.geodesy.support.utils.GMLMiscTools;
import au.gov.xml.icsm.geodesyml.v_0_3.SiteIdentificationType;
/**
* The translate simply copied the Countries (in Sopac Sitelog XML) across to the GeoesyML CountryCode elements.
* This cleans those up by ... | Fix missing required elements in SiteIdentification | Fix missing required elements in SiteIdentification
| Java | bsd-3-clause | lbodor/geodesy-domain-model,lbodor/geodesy-domain-model |
c70dc563c9aed2181d767526ecae27d0a31021f5 | Client/Client-UI/src/main/java/net/sourceforge/javydreamercsw/client/ui/nodes/UIRequirementNode.java | Client/Client-UI/src/main/java/net/sourceforge/javydreamercsw/client/ui/nodes/UIRequirementNode.java | package net.sourceforge.javydreamercsw.client.ui.nodes;
import com.validation.manager.core.db.Requirement;
import com.validation.manager.core.server.core.RequirementServer;
import java.beans.IntrospectionException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.swing.A... | package net.sourceforge.javydreamercsw.client.ui.nodes;
import com.validation.manager.core.db.Requirement;
import com.validation.manager.core.server.core.RequirementServer;
import java.beans.IntrospectionException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.swing.A... | Add tooltips to the requirements on the node list. | Add tooltips to the requirements on the node list.
| Java | apache-2.0 | javydreamercsw/validation-manager |
91191ee63b7e6c7487f03740f3cfee763f1289e6 | src/main/java/org/telegram/telegrambots/api/commands/ICommandRegistery.java | src/main/java/org/telegram/telegrambots/api/commands/ICommandRegistery.java | package org.telegram.telegrambots.api.commands;
import java.util.Map;
/**
*
*/
public interface ICommandRegistery {
/**
* register a command
*
* @param command the command to register
* @return whether the command could be registered, was not already registered
*/
boolean re... | package org.telegram.telegrambots.api.commands;
import java.util.Collection;
import java.util.Map;
/**
*
*/
public interface ICommandRegistery {
/**
* register a command
*
* @param command the command to register
* @return whether the command could be registered, was not already regi... | Add method to retrieve all registered commands | Add method to retrieve all registered commands
| Java | mit | rubenlagus/TelegramBots |
01140deea21cda2b7adfcbeea393780ebc402bb5 | ncdc_count/src/main/java/nz/org/hikari/cat/ncdc_count/NcdcRecordCountMapper.java | ncdc_count/src/main/java/nz/org/hikari/cat/ncdc_count/NcdcRecordCountMapper.java | package nz.org.hikari.cat.ncdc_count;
// Mapper for NCDC record count MapReduce job, called from NcdcRecordCount
// driver class
import java.io.IOException;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
public class NcdcRecordCountMapper
ext... | package nz.org.hikari.cat.ncdc_count;
// Mapper for NCDC record count MapReduce job, called from NcdcRecordCount
// driver class
import java.io.IOException;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
public class NcdcRecordCountMapper
ext... | Create static LongWritable(1) outside mapper | ncdc_count: Create static LongWritable(1) outside mapper
| Java | mit | simonbrady/cat,simonbrady/cat |
3bb15d82b5f95dd0e2b874f3173bdfac2b91689e | converter-logansquare/src/main/java/com/github/aurae/retrofit2/LoganSquareConverterFactory.java | converter-logansquare/src/main/java/com/github/aurae/retrofit2/LoganSquareConverterFactory.java | package com.github.aurae.retrofit2;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Converter;
import retrofit2.Retrofit;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import static com.bluelinelabs.logansquare.ConverterUtils.isSupported;
/**
* A {@linkplain Conv... | package com.github.aurae.retrofit2;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Converter;
import retrofit2.Retrofit;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import static com.bluelinelabs.logansquare.ConverterUtils.isSupported;
/**
* A {@linkplain Conv... | Update to where link is clickable in javadocs | Update to where link is clickable in javadocs
| Java | apache-2.0 | aurae/retrofit-logansquare,mannodermaus/retrofit-logansquare,mannodermaus/retrofit-logansquare |
a7963148c74b85709fb1632996c5cf77acb2efa7 | src/test/java/org/pacey/dropwizardpebble/SimplePebbleEngineConfigurableTest.java | src/test/java/org/pacey/dropwizardpebble/SimplePebbleEngineConfigurableTest.java | package org.pacey.dropwizardpebble;
import com.mitchellbosecke.pebble.PebbleEngine;
import io.dropwizard.Configuration;
import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.Mockito... | package org.pacey.dropwizardpebble;
import com.mitchellbosecke.pebble.PebbleEngine;
import io.dropwizard.Configuration;
import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.Mockito... | Correct test to provide generic type | Correct test to provide generic type
| Java | mit | pacey/dropwizard-pebble |
6ed2a79a08290be280f55ef0d6f4157a524fce3f | addressbook-web-tests/src/test/java/ru/vitali/pft/addressbook/tests/TestBase.java | addressbook-web-tests/src/test/java/ru/vitali/pft/addressbook/tests/TestBase.java | package ru.vitali.pft.addressbook.tests;
import org.openqa.selenium.remote.BrowserType;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeSuite;
import ru.vitali.pft.addressbook.appmanager.ApplicationMana... | package ru.vitali.pft.addressbook.tests;
import org.openqa.selenium.remote.BrowserType;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeSuite;
import ru.vitali.pft.addressbook.appmanager.ApplicationMana... | Configure browser type from IDE | Configure browser type from IDE
* Go to Edit configurations of a test class and pass browser type to VM
options, i.e.:
VM options: -ea -Dbrowser=firefox
* If nothing passed to VM options, then default browser is used - the
second param in System.getProperty()
| Java | apache-2.0 | vlucenco/java_learn,vlucenco/java_learn |
0893e9dfffee5b4e57e9c6afb082d7b4f24ef2bb | core/com.b2international.snowowl.core/src/com/b2international/snowowl/core/validation/StylingDetail.java | core/com.b2international.snowowl.core/src/com/b2international/snowowl/core/validation/StylingDetail.java | package com.b2international.snowowl.core.validation;
import com.fasterxml.jackson.annotation.JsonProperty;
public class StylingDetail {
private final int index;
private final int length;
public StylingDetail(
@JsonProperty("index") int index,
@JsonProperty("length") int length) {
this.index = index;
... | /*
* Copyright 2019 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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 ... | Add license header, since tag | SO-3294: Add license header, since tag | Java | apache-2.0 | IHTSDO/snow-owl,b2ihealthcare/snow-owl,b2ihealthcare/snow-owl,b2ihealthcare/snow-owl,b2ihealthcare/snow-owl,IHTSDO/snow-owl,IHTSDO/snow-owl,IHTSDO/snow-owl |
be6b1d23b0f48ab423e2289cf86df2b74e8cd024 | clients/java/java-fluent-http/src/main/java/xcarpaccio/WebConfiguration.java | clients/java/java-fluent-http/src/main/java/xcarpaccio/WebConfiguration.java | package xcarpaccio;
import net.codestory.http.Configuration;
import net.codestory.http.payload.Payload;
import net.codestory.http.routes.Routes;
public class WebConfiguration implements Configuration {
private final Logger logger = new Logger();
@Override
public void configure(Routes routes) {
r... | package xcarpaccio;
import net.codestory.http.Configuration;
import net.codestory.http.payload.Payload;
import net.codestory.http.routes.Routes;
public class WebConfiguration implements Configuration {
private final Logger logger = new Logger();
@Override
public void configure(Routes routes) {
r... | Use anyPost instead of POST / to catch all POST on /* | Use anyPost instead of POST / to catch all POST on /*
| Java | bsd-3-clause | octo-technology/extreme-carpaccio,jak78/extreme-carpaccio,octo-technology/extreme-carpaccio,dlresende/extreme-carpaccio,dlresende/extreme-carpaccio,dlresende/extreme-carpaccio,dlresende/extreme-carpaccio,jak78/extreme-carpaccio,jak78/extreme-carpaccio,dlresende/extreme-carpaccio,jak78/extreme-carpaccio,octo-technology/... |
359efbb416fdb5c1f40ba239c97e5dc4b65bdfe1 | gradle-plugin/src/main/java/com/github/dynamicextensionsalfresco/gradle/configuration/Authentication.java | gradle-plugin/src/main/java/com/github/dynamicextensionsalfresco/gradle/configuration/Authentication.java | package com.github.dynamicextensionsalfresco.gradle.configuration;
import java.util.Base64;
import javax.inject.Inject;
import org.gradle.api.model.ObjectFactory;
import org.gradle.api.provider.Property;
import org.gradle.api.provider.Provider;
import org.gradle.api.provider.ProviderFactory;
/**
* @author Laurent Va... | package com.github.dynamicextensionsalfresco.gradle.configuration;
import java.util.Base64;
import javax.inject.Inject;
import org.gradle.api.model.ObjectFactory;
import org.gradle.api.provider.Property;
import org.gradle.api.provider.Provider;
import org.gradle.api.provider.ProviderFactory;
/**
* @author Laurent Va... | Fix getting basic auth credentials for installing bundles | Fix getting basic auth credentials for installing bundles
| Java | apache-2.0 | laurentvdl/dynamic-extensions-for-alfresco,laurentvdl/dynamic-extensions-for-alfresco,laurentvdl/dynamic-extensions-for-alfresco,xenit-eu/dynamic-extensions-for-alfresco,xenit-eu/dynamic-extensions-for-alfresco |
db1b80e123ba63d1dda257b442c78df2a3d394f1 | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/noderepository/NodeType.java | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/noderepository/NodeType.java | // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.noderepository;
/**
* The possible types of nodes in the node repository
*
* @author bjorncs
*/
public enum NodeType {
/** A node to ... | // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.noderepository;
/**
* The possible types of nodes in the node repository
*
* @author bjorncs
*/
public enum NodeType {
/** A node to ... | Add controllerhost node type to controller-api | Add controllerhost node type to controller-api
| 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 |
d9e57f088ce3d9986d700322607fd6d25123d41a | src/main/java/abra/AbraRunnable.java | src/main/java/abra/AbraRunnable.java | package abra;
/**
* Abstract base class for ABRA threads.
*
* @author Lisle E. Mose (lmose at unc dot edu)
*/
public abstract class AbraRunnable implements Runnable {
private ThreadManager threadManager;
public AbraRunnable(ThreadManager threadManager) {
this.threadManager = threadManager;
}
@Override
... | package abra;
/**
* Abstract base class for ABRA threads.
*
* @author Lisle E. Mose (lmose at unc dot edu)
*/
public abstract class AbraRunnable implements Runnable {
private ThreadManager threadManager;
public AbraRunnable(ThreadManager threadManager) {
this.threadManager = threadManager;
}
@Override
... | Exit with error for larger range of error conditions in sub threads. | Exit with error for larger range of error conditions in sub threads. | Java | mit | mozack/abra2,mozack/abra2,mozack/abra,mozack/abra2,mozack/abra,mozack/abra,mozack/abra2 |
c6d0cfe468166363450c61e479d6443bd3986d13 | src/test/resources/CompileTwice.java | src/test/resources/CompileTwice.java | public class CompileTwice {
public String message() {
return "Hi again!";
}
} | import java.util.Collections;
import java.util.List;
public class CompileTwice {
public List<String> message() {
return Collections.singletonList("Hi again!");
}
} | Verify imports work when compiling incrementally | Verify imports work when compiling incrementally
| Java | mit | georgewfraser/vscode-javac,georgewfraser/vscode-javac,georgewfraser/vscode-javac |
866262ead4373e196bb3b5c94fb720ab02cb15d2 | common/src/main/java/uk/ac/ebi/quickgo/common/converter/HelpfulConverter.java | common/src/main/java/uk/ac/ebi/quickgo/common/converter/HelpfulConverter.java | package uk.ac.ebi.quickgo.common.converter;
import java.util.Arrays;
import java.util.stream.Collectors;
/**
* A useful class for converting stuff.
*
* @author Tony Wardell
* Date: 28/07/2016
* Time: 13:51
* Created with IntelliJ IDEA.
*/
public class HelpfulConverter {
/**
* Turns "AAA", "BBB", "CCC... | package uk.ac.ebi.quickgo.common.converter;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* A useful class for converting stuff.
*
* @author Tony Wardell
* Date: 28/07/2016
* Time: 13:51
* Created with IntelliJ IDEA.
*/
public class Help... | Create and refactor over-loaded versions of to CSV | Create and refactor over-loaded versions of to CSV
| Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
b084e5be9f73980d2dd20153cefb0486e6755094 | core/src/main/java/org/yggard/brokkgui/style/adapter/TextureStyleAdapter.java | core/src/main/java/org/yggard/brokkgui/style/adapter/TextureStyleAdapter.java | package org.yggard.brokkgui.style.adapter;
import org.yggard.brokkgui.paint.Texture;
public class TextureStyleAdapter implements IStyleAdapter<Texture>
{
@Override
public Texture decode(String style)
{
if (!style.startsWith("url("))
return null;
String[] splitted = style.repla... | package org.yggard.brokkgui.style.adapter;
import org.yggard.brokkgui.paint.Texture;
public class TextureStyleAdapter implements IStyleAdapter<Texture>
{
@Override
public Texture decode(String style)
{
if (!style.startsWith("url("))
return null;
String[] splitted = style.repla... | Fix texture style adapter float parsing | Fix texture style adapter float parsing
| Java | apache-2.0 | Yggard/BrokkGUI |
62c9ed93e35bc1ec8f2fd21b41ce8cada1c6f614 | src/java/org/dellroad/stuff/validation/EmailAddress.java | src/java/org/dellroad/stuff/validation/EmailAddress.java |
/*
* Copyright (C) 2011 Archie L. Cobbs. All rights reserved.
*
* $Id$
*/
package org.dellroad.stuff.validation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;... |
/*
* Copyright (C) 2011 Archie L. Cobbs. All rights reserved.
*
* $Id$
*/
package org.dellroad.stuff.validation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;... | Tweak email address pattern and define the string as a constant. | Tweak email address pattern and define the string as a constant.
| Java | apache-2.0 | tempbottle/jsimpledb,permazen/permazen,permazen/permazen,permazen/permazen,tempbottle/jsimpledb,archiecobbs/jsimpledb,tempbottle/jsimpledb,archiecobbs/jsimpledb,archiecobbs/jsimpledb |
33136ed5048cc09649bd44470aa4af6027950e2f | src/main/java/org/jusecase/UsecaseExecutorException.java | src/main/java/org/jusecase/UsecaseExecutorException.java | package org.jusecase;
public class UsecaseExecutorException extends RuntimeException {
public UsecaseExecutorException(String message) {
super(message);
}
}
| package org.jusecase;
public class UsecaseExecutorException extends RuntimeException {
public UsecaseExecutorException(String message) {
super(message);
}
public UsecaseExecutorException(String message, Throwable cause) {
super(message, cause);
}
}
| Use own dependency injection framework for mazebert ladder. yes, this is insane but was fun ;-) | Use own dependency injection framework for mazebert ladder. yes, this is insane but was fun ;-)
| Java | apache-2.0 | casid/jusecase |
1805daf2d124206dc8b752b43730dccfa7a7b4b9 | etomica-server/src/main/java/etomica/server/resources/PropertiesResource.java | etomica-server/src/main/java/etomica/server/resources/PropertiesResource.java | package etomica.server.resources;
import etomica.meta.SimulationModel;
import etomica.meta.properties.Property;
import etomica.meta.wrappers.Wrapper;
import etomica.server.dao.SimulationStore;
import etomica.server.representations.PropertyUpdate;
import io.dropwizard.jersey.PATCH;
import org.apache.commons.beanutils.B... | package etomica.server.resources;
import etomica.meta.SimulationModel;
import etomica.meta.properties.Property;
import etomica.meta.wrappers.Wrapper;
import etomica.server.dao.SimulationStore;
import etomica.server.representations.PropertyUpdate;
import io.dropwizard.jersey.PATCH;
import org.apache.commons.beanutils.B... | Add error response to properties resource | Add error response to properties resource
| Java | mpl-2.0 | etomica/etomica,etomica/etomica,etomica/etomica |
01b605bb2458649fbd11e4a3e8eeee75bf118809 | src/test/java/info/u_team/u_team_test/init/TestTags.java | src/test/java/info/u_team/u_team_test/init/TestTags.java | package info.u_team.u_team_test.init;
public class TestTags {
public static class Blocks {
}
public static class Items {
}
}
| package info.u_team.u_team_test.init;
import info.u_team.u_team_core.util.TagUtil;
import info.u_team.u_team_test.TestMod;
import net.minecraft.block.Block;
import net.minecraft.tags.ITag.INamedTag;
public class TestTags {
public static class Blocks {
public static INamedTag<Block> TEST_TAG_1 = TagUtil... | Add test tags for blocks | Add test tags for blocks
| Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
294e2f04a777a1f67973c7e8d71b8199d6032d8a | src/test/java/com/github/platinumrondo/clickcount/model/SingleIncrementCountModelTest.java | src/test/java/com/github/platinumrondo/clickcount/model/SingleIncrementCountModelTest.java | package com.github.platinumrondo.clickcount.model;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class SingleIncrementCountModelTest {
private SingleIncrementCountModel model;
@Before
public void setUp() {
model = new SingleIncrementCountM... | package com.github.platinumrondo.clickcount.model;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import java.util.Random;
public class SingleIncrementCountModelTest {
private SingleIncrementCountModel model;
@Before
public void setUp() {
model =... | Test the constructor with initial value. | Test the constructor with initial value. | Java | mit | platinumRondo/clickcount |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.