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 |
|---|---|---|---|---|---|---|---|---|---|
c81f8f92a3fe826c7bdf93e825ec60a937c56a1d | src/main/java/SW9/abstractions/QueryState.java | src/main/java/SW9/abstractions/QueryState.java | package SW9.abstractions;
import SW9.utility.colors.Color;
public enum QueryState {
SUCCESSFUL(Color.GREEN, Color.Intensity.I700, "✓"),
ERROR(Color.RED, Color.Intensity.I700, "✘"),
RUNNING(Color.GREY_BLUE, Color.Intensity.I600, "···"),
UNKNOWN(Color.GREY, Color.Intensity.I600, "?"),
SYNTAX_ERROR(C... | package SW9.abstractions;
import SW9.utility.colors.Color;
public enum QueryState {
SUCCESSFUL(Color.GREEN, Color.Intensity.I700),
ERROR(Color.RED, Color.Intensity.I700),
RUNNING(Color.GREY_BLUE, Color.Intensity.I600),
UNKNOWN(Color.GREY, Color.Intensity.I600),
SYNTAX_ERROR(Color.PURPLE, Color.Int... | Remove unused property in query state | Remove unused property in query state
| Java | mit | ulriknyman/H-Uppaal |
3f119260c77f8ab1447b70bde157b4dceee4eeec | app/src/main/java/com/dao/mydebts/Constants.java | app/src/main/java/com/dao/mydebts/Constants.java | package com.dao.mydebts;
import okhttp3.MediaType;
/**
* @author Oleg Chernovskiy on 05.04.16.
*/
public class Constants {
//private static final String SERVER_ENDPOINT = "sorseg.ru:8080/debt/";
//private static final String SERVER_ENDPOINT = "http://demoth.no-ip.org:8080/debt/";
private static final S... | package com.dao.mydebts;
import okhttp3.MediaType;
/**
* @author Oleg Chernovskiy on 05.04.16.
*/
public class Constants {
//private static final String SERVER_ENDPOINT = "sorseg.ru:8080/debt/";
//private static final String SERVER_ENDPOINT = "http://demoth.no-ip.org:8080/debt/";
private static final S... | Change URL back to sorseg.ru (brought up instance) | Change URL back to sorseg.ru (brought up instance)
| Java | agpl-3.0 | asmolko/MyDebts |
9bc44290ca6650a39e9a7676f32f92ebc61a685a | src/controller/PlayerRestartLevelCtrl.java | src/controller/PlayerRestartLevelCtrl.java | package controller;
import boundary.PlayerApplication;
import boundary.PlayerBoardView;
import boundary.PlayerLevelView;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import model.PlayerModel;
public class PlayerRestartLevelCtrl implements ActionListener{
PlayerApplication app;
PlayerMo... | package controller;
import boundary.PlayerApplication;
import boundary.PlayerBoardView;
import boundary.PlayerLevelView;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import model.PlayerModel;
public class PlayerRestartLevelCtrl implements ActionListener{
PlayerApplication app;
PlayerMo... | Add the rest of the functionality for Restarting a Level that was mentioned previously | Add the rest of the functionality for Restarting a Level that was
mentioned previously | Java | mit | mvit/sixes-wild |
f36b2d8a692ae0a622acc78775f10af39f6e2ff2 | src/main/java/info/u_team/u_team_core/intern/command/uteamcore/LocateBiomeSubCommand.java | src/main/java/info/u_team/u_team_core/intern/command/uteamcore/LocateBiomeSubCommand.java | package info.u_team.u_team_core.intern.command.uteamcore;
import com.mojang.brigadier.builder.ArgumentBuilder;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import net.minecraft.command.*;
import net.minecraft.command.arguments.ResourceLocationArgument;
import net.minecraft.command.impl.LocateBiomeCo... | package info.u_team.u_team_core.intern.command.uteamcore;
import com.mojang.brigadier.builder.ArgumentBuilder;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import net.minecraft.command.*;
import net.minecraft.command.arguments.*;
import net.minecraft.command.impl.LocateBiomeCommand;
import net.minec... | Fix locate biome sub command | Fix locate biome sub command | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
f647e74d9e9e703f3697d5b987f367a63775b806 | app/src/main/java/bloople/net/stories/StoryParser.java | app/src/main/java/bloople/net/stories/StoryParser.java | package bloople.net.stories;
import java.io.IOException;
import java.io.Reader;
import java.util.Scanner;
/**
* Created by i on 27/05/2016.
*/
public class StoryParser {
private Scanner scanner;
public StoryParser(Reader reader) {
scanner = new Scanner(reader);
scanner.useDelimiter("\n\n");... | package bloople.net.stories;
import java.io.IOException;
import java.io.Reader;
import java.util.Scanner;
/**
* Created by i on 27/05/2016.
*/
public class StoryParser {
private Scanner scanner;
public StoryParser(Reader reader) {
scanner = new Scanner(reader);
scanner.useDelimiter("(?:\r?\... | Fix story parsing to support both windows and linux style newlines; Allow extra newlines between nodes | Fix story parsing to support both windows and linux style newlines; Allow extra newlines between nodes
| Java | mit | bloopletech/stories-app |
e4a9cdcc6301410d5acc408a593489ad43c52342 | src/test/java/org/skife/jdbi/v2/SampleValueType.java | src/test/java/org/skife/jdbi/v2/SampleValueType.java | /*
* Copyright (C) 2015 Zane Benefits
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | /*
* 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, software
* distributed u... | Remove copyright line in license headers | Remove copyright line in license headers
| Java | apache-2.0 | HubSpot/jdbi,zanebenefits/jdbi,jdbi/jdbi,jdbi/jdbi,hgschmie/jdbi,hgschmie/jdbi,john9x/jdbi,jdbi/jdbi,pennello/jdbi,zanebenefits/jdbi,HubSpot/jdbi,hgschmie/jdbi,john9x/jdbi,pennello/jdbi |
c4547a76d4f6e7d122def5ba12f1c3df55c6cf78 | src/main/java/test/TypeParameterBoundExample.java | src/main/java/test/TypeParameterBoundExample.java | package test;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
public class TypeParameterBoundExample {
// extends Runnable produces T::List signature, so
// @Nullable targets index=1 (optional class bound always counts)
public static cla... | package test;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
import java.util.function.Supplier;
public class TypeParameterBoundExample {
// extends Runnable produces T::List signature, so
// @Nullable targets index=1 (optional class bound ... | Add cless extends type param example | Add cless extends type param example
| Java | apache-2.0 | wildfly/jandex |
8af65b366fe051ff631e9255ebc5c5edb31e67ae | core/src/main/java/org/parboiled/errors/ParserRuntimeException.java | core/src/main/java/org/parboiled/errors/ParserRuntimeException.java | /*
* Copyright (C) 2009-2011 Mathias Doenitz
*
* 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 a... | /*
* Copyright (C) 2009-2011 Mathias Doenitz
*
* 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 a... | Fix MissingFormatArgumentException in ParseRuntimeException when args array is empty | core: Fix MissingFormatArgumentException in ParseRuntimeException when args array is empty
| Java | apache-2.0 | parboiled1/parboiled,1986HlaMin/parboiled,sirthias/parboiled,OpenMaths/parboiled |
f82538e486a5c55724738751168dd7eefc99c8a0 | src/test/com/opensymphony/workflow/TestWorkflow.java | src/test/com/opensymphony/workflow/TestWorkflow.java | /*
* Copyright (c) 2002-2003 by OpenSymphony
* All rights reserved.
*/
package com.opensymphony.workflow;
import com.opensymphony.workflow.basic.BasicWorkflow;
import com.opensymphony.workflow.config.ConfigLoader;
import java.net.URL;
/**
* @author Hani Suleiman (hani@formicary.net)
* Date: May 10, 2003
* Tim... | /*
* Copyright (c) 2002-2003 by OpenSymphony
* All rights reserved.
*/
package com.opensymphony.workflow;
import com.opensymphony.workflow.basic.BasicWorkflow;
import com.opensymphony.workflow.config.ConfigLoader;
import com.opensymphony.workflow.spi.StoreFactory;
import java.net.URL;
/**
* @author Hani Suleima... | Clear old store instance on ctor | Clear old store instance on ctor
| Java | mit | tedliang/osworkflow,tedliang/osworkflow,tedliang/osworkflow,tedliang/osworkflow |
95d09814cfe1ff352338e44922ed89d53cd295e2 | src/test/java/javalin/examples/HelloWorldSecure.java | src/test/java/javalin/examples/HelloWorldSecure.java | package javalin.examples;
import org.eclipse.jetty.server.Connector;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.util.ssl.SslContextFactory;
import javalin.Javalin;
import javalin.embeddedserver.EmbeddedServer;
import javalin.embeddedserver.jetty.E... | package javalin.examples;
import org.eclipse.jetty.server.Connector;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.util.ssl.SslContextFactory;
import javalin.Javalin;
import javalin.embeddedserver.EmbeddedServer;
import javalin.embeddedserver.jetty.E... | Add link to jetty ssl example | [examples] Add link to jetty ssl example
| Java | apache-2.0 | tipsy/javalin,tipsy/javalin,tipsy/javalin,tipsy/javalin |
bdbcb75c4efa4513e4ec8155fae175d58e1f6826 | src/main/java/leetcode/Problem55.java | src/main/java/leetcode/Problem55.java | package leetcode;
public class Problem55 {
public boolean canJump(int[] nums) {
if (nums.length == 1) {
return true;
}
for (int i = 0; i < nums.length; i++) {
if (canJump(nums, i)) {
return true;
}
}
return false;
}
... | package leetcode;
import java.util.HashSet;
import java.util.Set;
import java.util.Stack;
public class Problem55 {
public boolean canJump(int[] nums) {
Stack<Integer> stack = new Stack<>();
Set<Integer> set = new HashSet<>();
stack.add(0);
while (!stack.isEmpty()) {
int... | Update problem 55 (stil TLE) | Update problem 55 (stil TLE)
| Java | mit | fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode |
78bc9401cbfffb12ab21babaed120ebe504ba939 | samples/other/src/main/java/RfrLitleExample.java | samples/other/src/main/java/RfrLitleExample.java | package com.litle.sdk.samples;
import com.litle.sdk.*;
import com.litle.sdk.generate.AccountUpdateFileRequestData;
import com.litle.sdk.generate.RFRRequest;
import java.util.Calendar;
public class RfrLitleExample {
public static void main(String[] args) {
String merchantId = "0180";
String requestFi... | package com.litle.sdk.samples;
import com.litle.sdk.*;
import com.litle.sdk.generate.AccountUpdateFileRequestData;
import com.litle.sdk.generate.RFRRequest;
import java.util.Calendar;
public class RfrLitleExample {
public static void main(String[] args) {
String preliveStatus = System.getenv("preliveStatus"... | Change sample using sftp to not run if prelive is down | Change sample using sftp to not run if prelive is down
| Java | mit | Vantiv/litle-sdk-for-java,LitleCo/litle-sdk-for-java,Vantiv/litle-sdk-for-java |
b3db48274c0cda90bc003376083a620a98fec35c | src/main/java/at/ac/tuwien/inso/controller/student/StudentRegisterForCourseController.java | src/main/java/at/ac/tuwien/inso/controller/student/StudentRegisterForCourseController.java | package at.ac.tuwien.inso.controller.student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.an... | package at.ac.tuwien.inso.controller.student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.an... | Refactor - remove unused imports | Refactor - remove unused imports
| Java | mit | university-information-system/uis,university-information-system/uis,university-information-system/uis,university-information-system/uis |
ff1eb975a0e1e06ac25cd3be14cee1fd38159e8d | fotoapparat/src/main/java/io/fotoapparat/parameter/selector/SensorSensitivitySelectors.java | fotoapparat/src/main/java/io/fotoapparat/parameter/selector/SensorSensitivitySelectors.java | package io.fotoapparat.parameter.selector;
import io.fotoapparat.parameter.range.Range;
/**
* Selector functions for sensor sensitivity (ISO).
*/
public class SensorSensitivitySelectors {
/**
* @param iso the specified ISO value
* @return {@link SelectorFunction} which selects the specified ISO value... | package io.fotoapparat.parameter.selector;
import io.fotoapparat.parameter.range.Range;
/**
* Selector functions for sensor sensitivity (ISO).
*/
public class SensorSensitivitySelectors {
/**
* @param iso the specified ISO value
* @return {@link SelectorFunction} which selects the specified ISO value... | Remove useless SelectorFunction for ISO | Remove useless SelectorFunction for ISO
| Java | apache-2.0 | Fotoapparat/Fotoapparat,Fotoapparat/Fotoapparat |
aa632dacb31a18035179c30480c10021196900da | src/main/java/ca/uhnresearch/pughlab/tracker/restlets/CustomSpringSessionAuthenticator.java | src/main/java/ca/uhnresearch/pughlab/tracker/restlets/CustomSpringSessionAuthenticator.java | package ca.uhnresearch.pughlab.tracker.restlets;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.restlet.Component;
import org.restlet.Request;
import org.restlet.Response;
import org.restlet.Restlet;
import org.restlet.data.ChallengeResponse;
import org.restlet.data.Challeng... | package ca.uhnresearch.pughlab.tracker.restlets;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.PrincipalCollection;
import org.apache.shiro.subject.Subject;
import org.restlet.Component;
import org.restlet.Request;
import org.restlet.Response;
import org.restlet.Restlet;
import org.restlet.dat... | Handle absence of authentication more sensibly, without an NPE | Handle absence of authentication more sensibly, without an NPE
| Java | bsd-3-clause | pughlab/tracker,pughlab/tracker,pughlab/tracker,pughlab/tracker,pughlab/tracker |
d14b1b4e1f01f8a4027eafbd7083b6f1b78f3450 | common/net/minecraftforge/common/Orientation.java | common/net/minecraftforge/common/Orientation.java | package net.minecraftforge.common;
public enum Orientation
{
/** -Y */
DOWN,
/** +Y */
UP,
/** -Z */
NORTH,
/** +Z */
SOUTH,
/** -X */
WEST,
/** +X */
EAST,
/**
* Used only by getOrientation, for invalid inputs
*/
UNKNOWN... | package net.minecraftforge.common;
public enum Orientation
{
/** -Y */
DOWN,
/** +Y */
UP,
/** -Z */
NORTH,
/** +Z */
SOUTH,
/** -X */
WEST,
/** +X */
EAST,
/**
* Used only by getOrientation, for invalid inputs
*/
UNKNOWN... | Fix oreientation bug causing levers not being able to place. | Fix oreientation bug causing levers not being able to place.
| Java | lgpl-2.1 | fcjailybo/MinecraftForge,Ghostlyr/MinecraftForge,ThiagoGarciaAlves/MinecraftForge,Vorquel/MinecraftForge,karlthepagan/MinecraftForge,CrafterKina/MinecraftForge,simon816/MinecraftForge,Zaggy1024/MinecraftForge,brubo1/MinecraftForge,jdpadrnos/MinecraftForge,bonii-xx/MinecraftForge,RainWarrior/MinecraftForge,blay09/Minecr... |
60d3476db75c683b00a790782c08afbda08ac598 | libraries/javalib/java/util/jar/JarOutputStream.java | libraries/javalib/java/util/jar/JarOutputStream.java | /* Class : JarOutputStream
Implementation of the 1.2 Java class JarOutputStream.
Copyright : Moses DeJong, dejong@cs.umn.edu, 1998.
Source code licensed under the GPL.
You can get a copy of the license from www.gnu.org.
This code is intended for use in the Kaffe project but you can use
it in other projec... | /* Class : JarOutputStream
Implementation of the 1.2 Java class JarOutputStream.
Copyright : Moses DeJong, dejong@cs.umn.edu, 1998.
Source code licensed under the GPL.
You can get a copy of the license from www.gnu.org.
This code is intended for use in the Kaffe project but you can use
it in other projec... | Fix bug in writing out the Manifest to the JAR file. | Fix bug in writing out the Manifest to the JAR file.
| Java | lgpl-2.1 | kaffe/kaffe,kaffe/kaffe,kaffe/kaffe,kaffe/kaffe,kaffe/kaffe |
e58647aaf0b3f2e9ebfdcc98206edd3e23680365 | flint/src/jp/oist/flint/rpc/Server.java | flint/src/jp/oist/flint/rpc/Server.java | /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 et: */
package jp.oist.flint.rpc;
import com.sun.net.httpserver.HttpServer;
import java.io.IOException;
import java.net.BindException;
import java.net.InetSocketAddress;
public class Server {
static final int PO... | /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 et: */
package jp.oist.flint.rpc;
import com.sun.net.httpserver.HttpServer;
import java.io.IOException;
import java.net.BindException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
public class Serv... | Allow connection from localhost only | Allow connection from localhost only
| Java | mit | flintproject/Flint,flintproject/Flint |
52d34405ca779cd62de8e054ecd791d37c804791 | src/heufybot/core/Logger.java | src/heufybot/core/Logger.java | package heufybot.core;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import heufybot.utils.FileUtils;
public class Logger
{
public static void log(String line, String target)
{
//Timestamp line
DateFormat dateFormat = new SimpleDateFormat("[HH:mm]");
Date date = new ... | package heufybot.core;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import heufybot.utils.FileUtils;
public class Logger
{
public static void log(String line, String target)
{
//Timestamp line
DateFormat dateFormat = new SimpleDateFormat("[HH:mm]");
Date date = new ... | Fix timestamps that got messed up by a change in the logging | Fix timestamps that got messed up by a change in the logging | Java | mit | Heufneutje/RE_HeufyBot,Heufneutje/RE_HeufyBot |
3a445f3275e34c4a86f92b7bcdac21e9142cab5d | android/src/com/phonegap/demo/NetworkManager.java | android/src/com/phonegap/demo/NetworkManager.java | package com.phonegap.demo;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import android.content.Context;
import android.net.*;
import android.webkit.WebView;
public class NetworkManager {
Context mCtx;
WebView mView;
ConnectivityManager sockMan;
NetworkMa... | package com.phonegap.demo;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import android.content.Context;
import android.net.*;
import android.webkit.WebView;
public class NetworkManager {
Context mCtx;
WebView mView;
ConnectivityManager sockMan;
NetworkMa... | Make reachable depend on availability | Make reachable depend on availability
| Java | apache-2.0 | csantanapr/cordova-ios,pengleelove/cordova-ios,binki/cordova-ios,fly19890211/cordova-ios,masakura/cordova-ios,Newstex/cordova-ios,codepython/cordova-ios,honger05/cordova-ios,adobe-marketing-cloud-mobile/aemm-ios,dpogue/cordova-ios,purplecabbage/cordova-ios,honger05/cordova-ios,adobe-marketing-cloud-mobile/aemm-ios,Sidn... |
3f062342003fcb096efc01312a41739a9ea226ee | src/test/java/spark/InitExceptionHandlerTest.java | src/test/java/spark/InitExceptionHandlerTest.java | package spark;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.junit.Assert;
import org.junit.Test;
import static spark.Service.ignite;
public class InitExceptionHandlerTest {
@Test
public void testInitExceptionHa... | package spark;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import static spark.Service.ignite;
public class InitExceptionHandlerTest {
private static Service service1;
private static Service service2;
private static String errorMessage = "";... | Rewrite initExceptionTest to be less stupid | Rewrite initExceptionTest to be less stupid
| Java | apache-2.0 | perwendel/spark,stylismo/spark,rokusr/spark,MouettE-SC/spark,stylismo/spark,MouettE-SC/spark,rokusr/spark,stylismo/spark,rokusr/spark,gimlet2/spark,MouettE-SC/spark,gimlet2/spark,stylismo/spark,gimlet2/spark,arekkw/spark,arekkw/spark,perwendel/spark,perwendel/spark,gimlet2/spark |
5dcb0489b3b83475defe8d0744c65669a25863b6 | src/com/staticbloc/jobs/BasicPersistentJobQueue.java | src/com/staticbloc/jobs/BasicPersistentJobQueue.java | package com.staticbloc.jobs;
import android.content.Context;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public abstract class BasicPersistentJobQueue extends BasicJobQueue {
private ExecutorService executor = Executors.newSingleThreadExecutor();
BasicPersistentJobQue... | package com.staticbloc.jobs;
import android.content.Context;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public abstract class BasicPersistentJobQueue extends BasicJobQueue {
private ExecutorService executor;
BasicPersistentJobQueue(Context context, JobQueueInitialize... | Fix an NPE with the persistence executor. | Fix an NPE with the persistence executor.
| Java | apache-2.0 | eygraber/jobs |
a565e46c0df78c6258f288afa4d1e94e070049a0 | src/main/java/com/cedricziel/idea/typo3/util/TCAUtil.java | src/main/java/com/cedricziel/idea/typo3/util/TCAUtil.java | package com.cedricziel.idea.typo3.util;
import com.intellij.psi.PsiElement;
import java.util.Arrays;
import static com.cedricziel.idea.typo3.psi.PhpElementsUtil.extractArrayIndexFromValue;
public class TCAUtil {
public static final String[] TCA_TABLE_FIELDS = {
"foreign_table",
"allowed... | package com.cedricziel.idea.typo3.util;
import com.intellij.psi.PsiElement;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import static com.cedricziel.idea.typo3.psi.PhpElementsUtil.extractArrayIndexFromValue;
public class TCAUtil {
public static final String[] TCA_TABLE_FIELDS = {
... | Add core column types and renderTypes to TCA Util | Add core column types and renderTypes to TCA Util
| Java | mit | cedricziel/idea-php-typo3-plugin,cedricziel/idea-php-typo3-plugin,cedricziel/idea-php-typo3-plugin,cedricziel/idea-php-typo3-plugin |
250722a51063ebd7fe60f82d3b9517473851a9d1 | src/main/java/seedu/tache/logic/commands/ExitCommand.java | src/main/java/seedu/tache/logic/commands/ExitCommand.java | package seedu.tache.logic.commands;
import seedu.tache.commons.core.EventsCenter;
import seedu.tache.commons.events.ui.ExitAppRequestEvent;
/**
* Terminates the program.
*/
public class ExitCommand extends Command {
public static final String COMMAND_WORD = "exit";
public static final String MESSAGE_EXIT_... | package seedu.tache.logic.commands;
import seedu.tache.commons.core.EventsCenter;
import seedu.tache.commons.events.ui.ExitAppRequestEvent;
/**
* Terminates the program.
*/
public class ExitCommand extends Command {
public static final String COMMAND_WORD = "exit";
//@@author A0150120H
public static fi... | Add usage string for exit command | Add usage string for exit command
| Java | mit | CS2103JAN2017-T09-B4/main,CS2103JAN2017-T09-B4/main,CS2103JAN2017-T09-B4/main |
d4c5fbd7c3051dc28a30ed41324d114b1c194ecd | skyve-ee/src/skyve/router/DefaultUxUiSelector.java | skyve-ee/src/skyve/router/DefaultUxUiSelector.java | package router;
import javax.servlet.http.HttpServletRequest;
import org.skyve.impl.web.UserAgent.UserAgentType;
import org.skyve.metadata.router.UxUi;
import org.skyve.metadata.router.UxUiSelector;
public class DefaultUxUiSelector implements UxUiSelector {
private static final UxUi PHONE = new UxUi("phone", "water... | package router;
import javax.servlet.http.HttpServletRequest;
import org.skyve.impl.web.UserAgent.UserAgentType;
import org.skyve.metadata.router.UxUi;
import org.skyve.metadata.router.UxUiSelector;
public class DefaultUxUiSelector implements UxUiSelector {
private static final UxUi PHONE = new UxUi("phone", "water... | Fix the PF themes used in the default UX/UI selection. | Fix the PF themes used in the default UX/UI selection. | Java | lgpl-2.1 | skyvers/skyve,skyvers/wildcat,skyvers/wildcat,skyvers/skyve,skyvers/skyve,skyvers/skyve,skyvers/skyve,skyvers/skyve,skyvers/wildcat,skyvers/skyve,skyvers/wildcat,skyvers/wildcat |
b31fa660ff0b7b428b53bc7c5c3d097d763bfb1c | src/cz/muni/fi/rtsystems/robojagr/enums/Color.java | src/cz/muni/fi/rtsystems/robojagr/enums/Color.java | package cz.muni.fi.rtsystems.robojagr.enums;
public enum Color {
WHITE;
public static Color getColor(int number) {
return Color.WHITE;
}
}
| package cz.muni.fi.rtsystems.robojagr.enums;
public enum Color {
WHITE, NOTWHITE;
public static Color getColor(int number) {
if (number == -1) {
return Color.WHITE;
}
return NOTWHITE;
}
}
| Add "NOTWHITE" color and simple conversion rule. | Add "NOTWHITE" color and simple conversion rule.
| Java | mit | matobet/robo-jagr |
747f8b50fbd8330dda39f3d64cea5b4dfe35c65c | src/java/com/threerings/presents/net/BootstrapData.java | src/java/com/threerings/presents/net/BootstrapData.java | //
// $Id: BootstrapData.java,v 1.1 2001/07/19 07:09:16 mdb Exp $
package com.threerings.cocktail.cher.net;
import com.threerings.cocktail.cher.dobj.DObject;
/**
* An <code>BootstrapData</code> object is communicated back to the client
* after authentication has succeeded and after the server is fully
* prepared ... | //
// $Id: BootstrapData.java,v 1.2 2001/10/09 18:17:52 mdb Exp $
package com.threerings.cocktail.cher.net;
import com.threerings.cocktail.cher.dobj.DObject;
/**
* A <code>BootstrapData</code> object is communicated back to the client
* after authentication has succeeded and after the server is fully
* prepared t... | Use the proper toString() method. | Use the proper toString() method.
git-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@413 542714f4-19e9-0310-aa3c-eee0fc999fb1
| Java | lgpl-2.1 | threerings/narya,threerings/narya,threerings/narya,threerings/narya,threerings/narya |
4614c56ad3e919260bc7def4a70285187c2364c5 | src/main/java/com/capitalistlepton/model/Bacterium.java | src/main/java/com/capitalistlepton/model/Bacterium.java | package com.capitalistlepton.model;
import java.util.Random;
/**
* Created by zanelittrell on 2/5/17.
*/
public class Bacterium {
private static final Random rand = new Random();
private int x;
private int y;
private String genotype;
public Bacterium(String parentGenotype, int x, int y) {
... | package com.capitalistlepton.model;
import java.util.Random;
/**
* Created by zanelittrell on 2/5/17.
*/
public class Bacterium {
private static final Random rand = new Random();
private static final float mutationRate = 0.99f;
private int x;
private int y;
private String genotype;
public... | Add random mutation method for when bacteria are created. | Add random mutation method for when bacteria are created.
| Java | apache-2.0 | CapitalistLepton/Plague |
24cec145cab790dd4af3c5eb3b76e9533e6119e5 | common/net/minecraftforge/event/ServerChatEvent.java | common/net/minecraftforge/event/ServerChatEvent.java | package net.minecraftforge.event;
import net.minecraft.src.EntityPlayerMP;
@Cancelable
public class ServerChatEvent extends Event {
public final String message, username;
public final EntityPlayerMP player;
public String line;
public ServerChatEvent(EntityPlayerMP player, String messag... | package net.minecraftforge.event;
import net.minecraft.src.EntityPlayerMP;
@Cancelable
public class ServerChatEvent extends Event {
public final String message, username;
public final EntityPlayerMP player;
public String line;
public ServerChatEvent(EntityPlayerMP player, String message, String line)
... | Add event to cancel or change chat messages sent from server | Add event to cancel or change chat messages sent from server
| Java | lgpl-2.1 | RainWarrior/MinecraftForge,luacs1998/MinecraftForge,shadekiller666/MinecraftForge,karlthepagan/MinecraftForge,blay09/MinecraftForge,ThiagoGarciaAlves/MinecraftForge,bonii-xx/MinecraftForge,dmf444/MinecraftForge,Vorquel/MinecraftForge,simon816/MinecraftForge,Zaggy1024/MinecraftForge,Theerapak/MinecraftForge,Mathe172/Min... |
85d3cda7a8bd936c931d055d1c27de0a92120ac3 | activiti-engine/src/test/java/org/activiti/examples/bpmn/servicetask/ToUpperCaseSetterInjected.java | activiti-engine/src/test/java/org/activiti/examples/bpmn/servicetask/ToUpperCaseSetterInjected.java |
/* 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, software
* distribu... |
/* 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, software
* distribu... | Fix for failing demo setup | Fix for failing demo setup
| Java | apache-2.0 | xasx/camunda-bpm-platform,jangalinski/camunda-bpm-platform,nagyistoce/camunda-bpm-platform,skjolber/camunda-bpm-platform,plexiti/camunda-bpm-platform,joansmith/camunda-bpm-platform,AlexMinsk/camunda-bpm-platform,subhrajyotim/camunda-bpm-platform,falko/camunda-bpm-platform,xasx/camunda-bpm-platform,skjolber/camunda-bpm-... |
c38b0d530ea427a75f97dc0ac63164cf6945f948 | cardstackview/src/main/java/com/yuyakaido/android/cardstackview/internal/CardStackDataObserver.java | cardstackview/src/main/java/com/yuyakaido/android/cardstackview/internal/CardStackDataObserver.java | package com.yuyakaido.android.cardstackview.internal;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import com.yuyakaido.android.cardstackview.CardStackLayoutManager;
public class CardStackDataObserver extends RecyclerView.AdapterDataObserver {
private final Recycler... | package com.yuyakaido.android.cardstackview.internal;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import com.yuyakaido.android.cardstackview.CardStackLayoutManager;
public class CardStackDataObserver extends RecyclerView.AdapterDataObserver {
private final Recycler... | Revert "Refresh all views when invoking move action" | Revert "Refresh all views when invoking move action"
This reverts commit 76b1802295a934f3bdf20d09fea7f705b2189425.
| Java | apache-2.0 | yuyakaido/CardStackView |
8b16b1f73dfd797a0af431ec9bce4ec7df72c757 | parity-net/src/main/java/org/jvirtanen/parity/net/poe/POEException.java | parity-net/src/main/java/org/jvirtanen/parity/net/poe/POEException.java | package org.jvirtanen.parity.net.poe;
import org.jvirtanen.parity.net.ProtocolException;
public class POEException extends ProtocolException {
public POEException(String message) {
super(message);
}
}
| package org.jvirtanen.parity.net.poe;
import org.jvirtanen.parity.net.ProtocolException;
/**
* Indicates a protocol error while handling the POE protocol.
*/
public class POEException extends ProtocolException {
/**
* Construct an instance with the specified detail message.
*
* @param message th... | Add documentation for POE exception in network protocols | Add documentation for POE exception in network protocols
| Java | apache-2.0 | pmcs/parity,paritytrading/parity,paritytrading/parity,pmcs/parity |
805486628f02a531370540b6443d9547f7f56c68 | ui-tests/src/test/java/io/syndesis/qe/CucumberTest.java | ui-tests/src/test/java/io/syndesis/qe/CucumberTest.java | package io.syndesis.qe;
import com.codeborne.selenide.Configuration;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@CucumberOptions(
features = "classpath:features",
tags = "not @wip, @ma... | package io.syndesis.qe;
import com.codeborne.selenide.Configuration;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@CucumberOptions(
features = "classpath:features",
tags = {"not @wip", "... | Update cucumber options to new format | [ui][fix] Update cucumber options to new format
| Java | apache-2.0 | mcada/syndesis-qe,mcada/syndesis-qe,mcada/syndesis-qe |
65954ba3b3c69863bd413c1d727c18d38b973860 | src/test/java/specs/MutableWrapperSpec.java | src/test/java/specs/MutableWrapperSpec.java | package specs;
import static com.greghaskins.spectrum.Spectrum.describe;
import static com.greghaskins.spectrum.Spectrum.it;
import static com.greghaskins.spectrum.Spectrum.value;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.nullValue;... | package specs;
import static com.greghaskins.spectrum.Spectrum.describe;
import static com.greghaskins.spectrum.Spectrum.it;
import static com.greghaskins.spectrum.Spectrum.value;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.nullValue;... | Make sure tests cover deprecated value(Class<T>) method | Make sure tests cover deprecated value(Class<T>) method
| Java | mit | greghaskins/spectrum |
b0a6d149b97e35f7ee879047ab97c91908701266 | src/main/java/com/nopcommerce/domain/Customer.java | src/main/java/com/nopcommerce/domain/Customer.java | package com.nopcommerce.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.nopcommerce.jackson.FlexDateDeserializer;
import com.nopcommerce.jackson.FlexDateSerializer;... | package com.nopcommerce.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.nopcommerce.jackson.FlexDateDeserializer;
import com.nopcommerce.jackson.FlexDateSerializer;... | Add the languageId and registeredInStore properties to the customer. | Add the languageId and registeredInStore properties to the customer.
| Java | apache-2.0 | SevenSpikes/nopcommerce-api-java-wrapper |
9cad7f5836ea9b98ef6d2ea44e2c3df71e9780e0 | src/test/java/com/google/sps/TripsServletTest.java | src/test/java/com/google/sps/TripsServletTest.java | package com.google.sps;
import com.google.appengine.api.datastore.Entity;
import com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig;
import com.google.appengine.tools.development.testing.LocalServiceTestHelper;
import com.google.sps.data.Trip;
import com.google.sps.servlets.TripsServlet;
im... | package com.google.sps;
import static org.mockito.Mockito.*;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.appengine.api.datastore.Entity;
import com.google.appengine... | Add test for unauthenticated user all 4 HTTP methods in TripsServlet | Add test for unauthenticated user all 4 HTTP methods in TripsServlet
| Java | apache-2.0 | googleinterns/step27-2020,googleinterns/step27-2020,googleinterns/step27-2020 |
44843e58d45047c89e1e6245930971911a8210bb | src/test/resources/shared/execute/SideEffects.java | src/test/resources/shared/execute/SideEffects.java | /**
* Tests some evaluation order / side effects with && and ||.
*
* @author Elvis Stansvik <elvstone@gmail.com>
*/
//EXT:BDJ
class SideEffects {
public static void main(String[] args) {
IncredibleMachine m;
m = new IncredibleMachine();
System.out.println(m.run()); // Should print 329.... | /**
* Tests some evaluation order / side effects with && and ||.
*
* @author Elvis Stansvik <elvstone@gmail.com>
*/
//EXT:BDJ
//EXT:IWE
class SideEffects {
public static void main(String[] args) {
IncredibleMachine m;
m = new IncredibleMachine();
System.out.println(m.run()); // Should ... | Make test case valid MiniJava. | Make test case valid MiniJava.
| Java | mit | liuxinglanyue/mjc,estan/mjc,liuxinglanyue/mjc,estan/mjc,estan/mjc,liuxinglanyue/mjc |
de094396e33ee824b63dea7a00d31f9a7c68aab1 | ReactAndroid/src/main/java/com/facebook/react/common/LifecycleState.java | ReactAndroid/src/main/java/com/facebook/react/common/LifecycleState.java | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.common;
/**
* Lifecycle state for an Activity. The state right after pause and right before resume are... | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.common;
/**
* Lifecycle state for an Activity. The state right after pause and right before resume are... | Update InitialLifeCycleState used when initializing RN in FB4A | Update InitialLifeCycleState used when initializing RN in FB4A
Summary:
This diff changes the InitialLifeCycleState used when initializing RN in FB4A from BEFORE_RESUME to BEFORE_CREATE.
The value of this field is used during the teardown of RN to determine if RN is actually running or not
The intention of this chang... | Java | mit | janicduplessis/react-native,hoangpham95/react-native,javache/react-native,pandiaraj44/react-native,janicduplessis/react-native,facebook/react-native,myntra/react-native,hoangpham95/react-native,myntra/react-native,pandiaraj44/react-native,hoangpham95/react-native,arthuralee/react-native,hoangpham95/react-native,faceboo... |
0e1634959a269e5addd00f36e565163765329ba8 | core/src/test/java/arez/component/VerifiableTest.java | core/src/test/java/arez/component/VerifiableTest.java | package arez.component;
import arez.AbstractArezTest;
import arez.ArezTestUtil;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
public class VerifiableTest
extends AbstractArezTest
{
static class TestElement
implements Verifiable
{
boolean _verified;
@Override
public void... | package arez.component;
import arez.AbstractArezTest;
import arez.ArezTestUtil;
import java.io.IOException;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
public class VerifiableTest
extends AbstractArezTest
{
static class TestElement
implements Verifiable
{
boolean _verified;
... | Add aditional test to make sure a failed verify is possible | Add aditional test to make sure a failed verify is possible
| Java | apache-2.0 | realityforge/arez,realityforge/arez,realityforge/arez |
ebd1f6589ef890f67ce8e6bd99297b524225d698 | test/regression/NullPointerTest.java | test/regression/NullPointerTest.java | /*
* test that caught null pointers exceptions in finalizers work correctly
* and that local variables are accessible in null pointer exception handlers.
*/
import java.io.*;
public class NullPointerTest {
static String s;
public static void main(String[] args) {
System.out.println(tryfinally() + s);
... | /*
* test that caught null pointers exceptions in finalizers work correctly
* and that local variables are accessible in null pointer exception handlers.
*/
import java.io.*;
public class NullPointerTest {
static String s;
public static void main(String[] args) {
System.out.println(tryfinally() + s);
... | Check that kaffe doesn't allow invocation of a null pointer. | Check that kaffe doesn't allow invocation of a null pointer.
| Java | lgpl-2.1 | kaffe/kaffe,kaffe/kaffe,kaffe/kaffe,kaffe/kaffe,kaffe/kaffe |
b152b556f15c63e2eac0021852f237743ba2c2fe | app/src/main/java/org/mozilla/webmaker/util/Share.java | app/src/main/java/org/mozilla/webmaker/util/Share.java | package org.mozilla.webmaker.util;
import android.app.Activity;
import android.content.Intent;
import org.mozilla.webmaker.R;
public class Share {
/**
* Launches a share intent using a specified subject and body.
*
* @param url URL to be appended to the share body
* @param activity Base activ... | package org.mozilla.webmaker.util;
import android.app.Activity;
import android.content.Intent;
import org.mozilla.webmaker.R;
public class Share {
/**
* Launches a share intent.
*
* @param url URL to be appended to the share body
* @param activity Base activity
*/
public static void ... | Clarify static method description for sharing | Clarify static method description for sharing
| Java | mpl-2.0 | k88hudson/webmaker-android,bolaram/webmaker-android,rodmoreno/webmaker-android,mozilla/webmaker-android,gvn/webmaker-android,gvn/webmaker-android,alicoding/webmaker-android,mozilla/webmaker-android,j796160836/webmaker-android,alicoding/webmaker-android,alanmoo/webmaker-android,j796160836/webmaker-android,k88hudson/webm... |
fde260ede5be3c42b7a31985ccc7544948b40d4d | core/src/main/java/org/bouncycastle/util/Integers.java | core/src/main/java/org/bouncycastle/util/Integers.java | package org.bouncycastle.util;
public class Integers
{
public static Integer valueOf(int value)
{
return Integer.valueOf(value);
}
}
| package org.bouncycastle.util;
public class Integers
{
public static int rotateLeft(int i, int distance)
{
return Integer.rotateLeft(i, distance);
}
public static int rotateRight(int i, int distance)
{
return Integer.rotateRight(i, distance);
}
public static Integer valueO... | Make rotate methods from Integer available | Make rotate methods from Integer available | Java | mit | Skywalker-11/spongycastle,sonork/spongycastle,Skywalker-11/spongycastle,iseki-masaya/spongycastle,onessimofalconi/bc-java,partheinstein/bc-java,savichris/spongycastle,partheinstein/bc-java,lesstif/spongycastle,bcgit/bc-java,isghe/bc-java,FAU-Inf2/spongycastle,sonork/spongycastle,sonork/spongycastle,partheinstein/bc-jav... |
e343a796e85b17a528b2ea5add9bffce73fd0702 | subprojects/core/src/main/java/org/gradle/api/resources/package-info.java | subprojects/core/src/main/java/org/gradle/api/resources/package-info.java | /*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Remove `@Incubating` on package resources | Remove `@Incubating` on package resources
We only annotate types and methods.
+review REVIEW-6529
| Java | apache-2.0 | gradle/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverdui... |
a0702a6a848e90bdb94da36107420fd5de74e7e1 | app/src/main/java/com/supinfo/jva/geocar/Home.java | app/src/main/java/com/supinfo/jva/geocar/Home.java | package com.supinfo.jva.geocar;
import android.app.Activity;
import android.os.Bundle;
/**
* Created by Martin on 29/03/2015.
*/
public class Home extends Activity{
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.home);... | package com.supinfo.jva.geocar;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.location.LocationManager;
import android.os.Bundle;
import android.widget.Toast;
public class Home extends Activity{
@Override
pub... | Check if the user had the GPS enabled | Check if the user had the GPS enabled
| Java | apache-2.0 | Carmain/Geocar |
93f23c87b7467f409a63822e37e0b9d721a47e2f | codelabs/src/com/leakedbits/codelabs/Codelabs.java | codelabs/src/com/leakedbits/codelabs/Codelabs.java | package com.leakedbits.codelabs;
import com.badlogic.gdx.Game;
public class Codelabs extends Game {
public static final String TITLE = "Codelabs";
public static final float TARGET_WIDTH = 800;
@Override
public void create() {
// setScreen(new Splash());
setScreen(new MainMenu());
}
}
| package com.leakedbits.codelabs;
import com.badlogic.gdx.Game;
public class Codelabs extends Game {
public static final String TITLE = "Codelabs";
public static final float TARGET_WIDTH = 800;
@Override
public void create() {
setScreen(new Splash());
}
}
| Change first screen to Splash screen instead of MainMenu | Change first screen to Splash screen instead of MainMenu | Java | mit | Leakedbits/Codelabs |
ee104e6417b0fe06aaa82dd730cf14cd5fa93b72 | src/main/java/br/gov/servicos/foundation/http/Cookies.java | src/main/java/br/gov/servicos/foundation/http/Cookies.java | package br.gov.servicos.foundation.http;
import lombok.experimental.FieldDefaults;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import static java.util.Arrays.stream;
imp... | package br.gov.servicos.foundation.http;
import lombok.experimental.FieldDefaults;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import static java.util.Arrays.stream;
imp... | Resolve erro squid:S1132 no Sonar | Resolve erro squid:S1132 no Sonar
| Java | mit | rodrigomaia17/guia-de-servicos,servicosgoval/portal-de-servicos,servicosgoval/portal-de-servicos,rodrigomaia17/guia-de-servicos,servicosgoval/portal-de-servicos,servicosgovbr/portal-de-servicos,rodrigomaia17/guia-de-servicos,servicosgovbr/portal-de-servicos,servicosgoval/portal-de-servicos,servicosgoval/portal-de-servi... |
82a24aef5dfe24a5b10b47dd514f920c09a7278e | src/main/java/editor/controllers/NewElementController.java | src/main/java/editor/controllers/NewElementController.java | /*
* EditSomeXML is a graphical XML editor
*
* Copyright (C) 2014 David Jackson
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option... | /*
* EditSomeXML is a graphical XML editor
*
* Copyright (C) 2014 David Jackson
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option... | Use the AddChildCommand from the UI | Use the AddChildCommand from the UI
| Java | mpl-2.0 | dwjackson/EditSomeXML |
6ed56af7469f074ffc5779d92a75a0cfd5258977 | src/test/java/info/u_team/u_team_test/init/TestBlocks.java | src/test/java/info/u_team/u_team_test/init/TestBlocks.java | package info.u_team.u_team_test.init;
import info.u_team.u_team_core.util.registry.*;
import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.block.*;
import net.minecraft.item.BlockItem;
import net.minecraftforge.eventbus.api.IEventBus;
public class TestBlocks {
public static final BlockDeferredReg... | package info.u_team.u_team_test.init;
import info.u_team.u_team_core.util.registry.*;
import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.block.*;
import net.minecraft.item.BlockItem;
import net.minecraftforge.eventbus.api.IEventBus;
public class TestBlocks {
public static final BlockDeferredReg... | Update test block with new method references | Update test block with new method references | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
11bc6af107d98dd34721afadf175339c98398923 | jrt_test/src/tests/mockup-invoke/MockupInvoke.java | jrt_test/src/tests/mockup-invoke/MockupInvoke.java | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
import com.yahoo.jrt.*;
public class MockupInvoke {
public static void main(String[] args) {
if (args.length != 3) {
System.out.println("error: Wrong number of parameters");
System.exit(0);
}
Tr... | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
import com.yahoo.jrt.*;
public class MockupInvoke {
public static void main(String[] args) {
if (args.length != 3) {
System.out.println("error: Wrong number of parameters");
System.exit(0);
}
Tr... | Update test that is built directly in test. | Update test that is built directly in test.
| 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 |
81a5b3e29979d143fdae4a9c403b0b1846b6b57c | src/main/java/beaform/gui/TreeViewFormula.java | src/main/java/beaform/gui/TreeViewFormula.java | package beaform.gui;
import beaform.entities.Formula;
public class TreeViewFormula {
Formula form;
String metadata;
public TreeViewFormula(Formula form, String metadata) {
this.form = form;
metadata = metadata.substring(metadata.indexOf('|') + 1);
this.metadata = metadata;
}
@Override
public String toSt... | package beaform.gui;
import beaform.entities.Formula;
public class TreeViewFormula {
private final Formula form;
private final String metadata;
public TreeViewFormula(Formula form, String metadata) {
this.form = form;
metadata = metadata.substring(metadata.indexOf('|') + 1);
this.metadata = metadata;
}
@... | Mark some datamembers as private | Mark some datamembers as private
| Java | mit | stevenpost/beaform |
0d709122b9459b43ef2026988da3c2e56fec6918 | src/main/java/com/tmitim/twittercli/TwitterCli.java | src/main/java/com/tmitim/twittercli/TwitterCli.java | package com.tmitim.twittercli;
import com.github.rvesse.airline.annotations.Cli;
import com.github.rvesse.airline.help.Help;
import com.tmitim.twittercli.commands.DirectMessage;
import com.tmitim.twittercli.commands.Location;
import com.tmitim.twittercli.commands.TimeLine;
import com.tmitim.twittercli.commands.Trend;
... | package com.tmitim.twittercli;
import com.github.rvesse.airline.annotations.Cli;
import com.github.rvesse.airline.help.Help;
import com.github.rvesse.airline.parser.errors.ParseArgumentsUnexpectedException;
import com.tmitim.twittercli.commands.DirectMessage;
import com.tmitim.twittercli.commands.Location;
import com.... | Remove stacktrace when adding unknown commands args | Remove stacktrace when adding unknown commands args
| Java | apache-2.0 | tmitim/twittercli4j,tmitim/twittercli4j |
ae4381e70ceae4000d4058dd1acaf9e3a8e3a756 | concurrent/src/main/java/io/airlift/concurrent/Threads.java | concurrent/src/main/java/io/airlift/concurrent/Threads.java | package io.airlift.concurrent;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import java.util.concurrent.ThreadFactory;
public final class Threads
{
private Threads() {}
/**
* Creates a {@link ThreadFactory} that creates named threads
* using the specified naming format.
*
... | package io.airlift.concurrent;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import java.util.concurrent.ThreadFactory;
public final class Threads
{
private Threads() {}
/**
* Creates a {@link ThreadFactory} that creates named threads
* using the specified naming format.
*
... | Set thread context class loader in thread factories | Set thread context class loader in thread factories
Capture thread context class loader during factory creation and
set this class loader on threads created by the factory
| Java | apache-2.0 | daququ/airlift,cberner/airlift,mono-plane/airlift,haozhun/airlift,mono-plane/airlift,zhenyuy-fb/airlift,johngmyers/airlift,cberner/airlift,johngmyers/airlift,zhenyuy-fb/airlift,airlift/airlift,zhenyuy-fb/airlift,airlift/airlift,johngmyers/airlift,electrum/airlift,haozhun/airlift,mono-plane/airlift,electrum/airlift,haoz... |
fe5182fb8ae086d7021bb635386fd196639cd46b | src/Engine/Casino.java | src/Engine/Casino.java |
public class Casino {
}
| package Engine;
/**
* User: AnubhawArya
* Date: 9/13/13
* Time: 3:21 PM
*/
public class Casino {
private int numberOfDecks;
private boolean hitOnSoft17s, doubleAfterSplit, resplitAfterAce;
private String name;
public Casino(String name, int numberOfDecks, boolean hitOnSoft17s, boolean doubleAfter... | Add casino code from master | Add casino code from master
| Java | apache-2.0 | aarya123/FlapJack |
4b8a078023cea34b9d524a4ca7adbe563ca77a1e | core/src/main/java/com/github/arteam/simplejsonrpc/core/domain/Request.java | core/src/main/java/com/github/arteam/simplejsonrpc/core/domain/Request.java | package com.github.arteam.simplejsonrpc.core.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.NullNode;
import com.fasterxml.jackson.databind.node.ValueNode;
import org.jetbrains.annotations.NotNull;
import org.jetb... | package com.github.arteam.simplejsonrpc.core.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.NullNode;
import com.fasterxml.jackson.databind.node.ValueNode;
import org.jetbrains.annotations.NotNull;
import org.jetb... | Check that params can be null | Check that params can be null
| Java | mit | arteam/simple-json-rpc |
99783cad2aa2886cda971b0ba7852d5c6c69174b | main/src/cgeo/geocaching/connector/trackable/UnknownTrackableConnector.java | main/src/cgeo/geocaching/connector/trackable/UnknownTrackableConnector.java | package cgeo.geocaching.connector.trackable;
import cgeo.geocaching.Trackable;
import cgeo.geocaching.connector.UserAction;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import java.util.Collections;
import java.util.List;
public class UnknownTrackableConnector extends Abstr... | package cgeo.geocaching.connector.trackable;
import cgeo.geocaching.Trackable;
import cgeo.geocaching.connector.UserAction;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import java.util.Collections;
import java.util.List;
public class UnknownTrackableConnector extends Abstr... | Use a checked entity instead of an unchecked one | Use a checked entity instead of an unchecked one
| Java | apache-2.0 | rsudev/c-geo-opensource,auricgoldfinger/cgeo,brok85/cgeo,vishwakulkarni/cgeo,Bananeweizen/cgeo,ThibaultR/cgeo,superspindel/cgeo,kumy/cgeo,pstorch/cgeo,pstorch/cgeo,cgeo/cgeo,cgeo/cgeo,SammysHP/cgeo,S-Bartfast/cgeo,samueltardieu/cgeo,matej116/cgeo,xiaoyanit/cgeo,ThibaultR/cgeo,matej116/cgeo,vishwakulkarni/cgeo,kumy/cgeo... |
abdffdbf392b09ae348d3ddfe3ccea02f7fd730b | components/certificate-mgt/org.wso2.carbon.certificate.mgt.cert.admin.api/src/main/java/org/wso2/carbon/certificate/mgt/cert/jaxrs/api/beans/EnrollmentCertificate.java | components/certificate-mgt/org.wso2.carbon.certificate.mgt.cert.admin.api/src/main/java/org/wso2/carbon/certificate/mgt/cert/jaxrs/api/beans/EnrollmentCertificate.java | /*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | /*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | Add tenant id to Enrollment Certificate | Add tenant id to Enrollment Certificate
| Java | apache-2.0 | Supun94/carbon-device-mgt,geethkokila/carbon-device-mgt,menakaj/carbon-device-mgt,sameeragunarathne/carbon-device-mgt,Megala21/carbon-device-mgt,harshanL/carbon-device-mgt,rasika/carbon-device-mgt,charithag/carbon-device-mgt,Supun94/carbon-device-mgt,Jasintha/carbon-device-mgt,hasuniea/carbon-device-mgt,DimalChandrasir... |
d421c63747cb679f7184629c3ee353c650933986 | spring-boot-project/spring-boot-tools/spring-boot-cloudnativebuildpack/src/test/java/org/springframework/boot/cloudnativebuildpack/docker/DockerApiIntegrationTests.java | spring-boot-project/spring-boot-tools/spring-boot-cloudnativebuildpack/src/test/java/org/springframework/boot/cloudnativebuildpack/docker/DockerApiIntegrationTests.java | /*
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | /*
* Copyright 2012-2020 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... | Disable integration test on Linux | Disable integration test on Linux
See gh-19836
| Java | apache-2.0 | ilayaperumalg/spring-boot,scottfrederick/spring-boot,htynkn/spring-boot,wilkinsona/spring-boot,mdeinum/spring-boot,jxblum/spring-boot,Buzzardo/spring-boot,spring-projects/spring-boot,dreis2211/spring-boot,joshiste/spring-boot,philwebb/spring-boot,philwebb/spring-boot,spring-projects/spring-boot,joshiste/spring-boot,ila... |
0239703c7cdc6b3fe59c80f904dc3d68b5e72863 | src/main/java/org/cyclops/cyclopscore/recipe/xml/OreDictItemTypeHandler.java | src/main/java/org/cyclops/cyclopscore/recipe/xml/OreDictItemTypeHandler.java | package org.cyclops.cyclopscore.recipe.xml;
import net.minecraft.item.crafting.Ingredient;
import net.minecraftforge.oredict.OreIngredient;
import org.cyclops.cyclopscore.init.RecipeHandler;
/**
* Item type handler for ore dictionary keys.
* @author rubensworks
*/
public class OreDictItemTypeHandler extends Defaul... | package org.cyclops.cyclopscore.recipe.xml;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.Ingredient;
import net.minecraftforge.oredict.OreIngredient;
import org.cyclops.cyclopscore.init.RecipeHandler;
import javax.annotation.Nonnull;
import java.util.Arrays;
/**
* Item type handler for or... | Fix XML recipe oredict ingredients not adhering to stacksizes | Fix XML recipe oredict ingredients not adhering to stacksizes
| Java | mit | CyclopsMC/CyclopsCore |
abb9128cb59db9f008833fdd7c47a12422e73d4d | src/com/gh4a/activities/CommitHistoryActivity.java | src/com/gh4a/activities/CommitHistoryActivity.java | package com.gh4a.activities;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.ActionBar;
import com.gh4a.BaseActivity;
import com.gh4a.Constants;
import com.gh4a.R;
import com.gh4a.fragment.CommitListFragment;
public class CommitHistoryActivity extends BaseActivi... | package com.gh4a.activities;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.ActionBar;
import com.gh4a.BaseActivity;
import com.gh4a.Constants;
import com.gh4a.R;
import com.gh4a.fragment.CommitListFragment;
import com.gh4a.utils.I... | Add back navigation to commit history activity. | Add back navigation to commit history activity.
| Java | apache-2.0 | DeLaSalleUniversity-Manila/octodroid-ToastyKrabstix,sauloaguiar/gh4a,edyesed/gh4a,shineM/gh4a,edyesed/gh4a,sauloaguiar/gh4a,slapperwan/gh4a,shekibobo/gh4a,shekibobo/gh4a,AKiniyalocts/gh4a,Bloody-Badboy/gh4a,Bloody-Badboy/gh4a,DeLaSalleUniversity-Manila/octodroid-ToastyKrabstix,slapperwan/gh4a,AKiniyalocts/gh4a,shineM/g... |
bda7b88828b70819535befb946345b66397ce66d | src/test/java/beaform/entities/FormulaTagTest.java | src/test/java/beaform/entities/FormulaTagTest.java | package beaform.entities;
import org.junit.Test;
import junit.framework.TestCase;
/**
* Test for the formula tag.
* @author Steven Post
*
*/
public class FormulaTagTest extends TestCase {
/**
* Test equals.
*/
@Test
public void testEquals() {
final FormulaTag tag1 = new FormulaTag("test");
final Form... | package beaform.entities;
import org.junit.Test;
import junit.framework.TestCase;
/**
* Test for the formula tag.
* @author Steven Post
*
*/
public class FormulaTagTest extends TestCase {
/**
* Test equals.
*/
@Test
public static void testEquals() {
final FormulaTag tag1 = new FormulaTag("test");
fin... | Make methods static where possible | Make methods static where possible
| Java | mit | stevenpost/beaform |
4cc1f8e44923d1b4f61392ee851c2c8e332eeca3 | nassau/src/main/java/org/jvirtanen/nassau/soupbintcp/SoupBinTCPException.java | nassau/src/main/java/org/jvirtanen/nassau/soupbintcp/SoupBinTCPException.java | package org.jvirtanen.nassau.soupbintcp;
import org.jvirtanen.nassau.ProtocolException;
public class SoupBinTCPException extends ProtocolException {
public SoupBinTCPException(String message) {
super(message);
}
}
| package org.jvirtanen.nassau.soupbintcp;
import org.jvirtanen.nassau.ProtocolException;
/**
* Indicates a protocol error while handling the SoupBinTCP protocol.
*/
public class SoupBinTCPException extends ProtocolException {
/**
* Create an instance with the specified detail message.
*
* @param ... | Add documentation for SoupBinTCP exception | Add documentation for SoupBinTCP exception
| Java | apache-2.0 | pmcs/nassau,paritytrading/nassau,paritytrading/nassau,pmcs/nassau |
af6f48dba7860bb4c6d77d784e4ccff03692426c | src/test/java/info/u_team/u_team_test/init/TestPotions.java | src/test/java/info/u_team/u_team_test/init/TestPotions.java | package info.u_team.u_team_test.init;
import info.u_team.u_team_core.util.registry.BaseRegistryUtil;
import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.potion.RadiationPotion;
import net.minecraft.potion.Potion;
import net.minecraftforge.event.RegistryEvent.Register;
import net.minecraftforge.event... | package info.u_team.u_team_test.init;
import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.potion.RadiationPotion;
import net.minecraft.potion.Potion;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.Mo... | Add deferred register to potions as they crash the game cuz of the effects | Add deferred register to potions as they crash the game cuz of the
effects | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
c816e5d2333e0c5cf509c6b46e245a4f80196ed2 | subprojects/core-api/src/main/java/org/gradle/api/execution/package-info.java | subprojects/core-api/src/main/java/org/gradle/api/execution/package-info.java | /*
* Copyright 2007-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | /*
* Copyright 2007-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Cover `org.gradle.api.execution` with nullability annotations | Cover `org.gradle.api.execution` with nullability annotations
| Java | apache-2.0 | lsmaira/gradle,lsmaira/gradle,blindpirate/gradle,lsmaira/gradle,gstevey/gradle,gstevey/gradle,lsmaira/gradle,gstevey/gradle,gradle/gradle,blindpirate/gradle,gstevey/gradle,gradle/gradle,gradle/gradle,gstevey/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gr... |
296ccfaa91a010020d228bfae1c53f39bb516385 | src/main/java/tech/greenfield/vertx/irked/Irked.java | src/main/java/tech/greenfield/vertx/irked/Irked.java | package tech.greenfield.vertx.irked;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vertx.core.http.HttpServerRequest;
import tech.greenfield.vertx.irked.exceptions.InvalidRouteConfiguration;
public class Irked {
private Vertx vertx;
public Irked(Vertx vertx) {
this.vertx = vertx;
}
publ... | package tech.greenfield.vertx.irked;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vertx.core.http.HttpServer;
import io.vertx.core.http.HttpServerRequest;
import tech.greenfield.vertx.irked.exceptions.InvalidRouteConfiguration;
/**
* Helper for creating Irked routers
* @author odeda
*/
publi... | Add Vert.x stule factory method and javadocs | Add Vert.x stule factory method and javadocs | Java | mit | GreenfieldTech/irked |
f4878923a84601f69b43cc34fc73c608e813cb04 | src/test/java/rxbroadcast/VectorTimestampTest.java | src/test/java/rxbroadcast/VectorTimestampTest.java | package rxbroadcast;
import nl.jqno.equalsverifier.EqualsVerifier;
import org.junit.Test;
@SuppressWarnings({"checkstyle:MagicNumber"})
public final class VectorTimestampTest {
@Test
public final void equalsContract() {
EqualsVerifier.forClass(VectorTimestamp.class)
.withCachedHashCode("ha... | package rxbroadcast;
import nl.jqno.equalsverifier.EqualsVerifier;
import org.hamcrest.CoreMatchers;
import org.junit.Assert;
import org.junit.Test;
@SuppressWarnings({"checkstyle:MagicNumber"})
public final class VectorTimestampTest {
@Test
public final void equalsContract() {
EqualsVerifier.forClass... | Hide the fact that we're using a ctor for side effects | Hide the fact that we're using a ctor for side effects
| Java | isc | RxBroadcast/RxBroadcast,RxBroadcast/RxBroadcast,whymarrh/RxBroadcast,whymarrh/RxBroadcast,RxBroadcast/RxBroadcast,RxBroadcast/RxBroadcast |
8173f2f3db795ea3e3b50b058b97c733a968f42d | src/com/tal/clienttext/junit/ClientTest.java | src/com/tal/clienttext/junit/ClientTest.java | package com.tal.clienttext.junit;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import com.tal.socketclient.SocketClient;
public class ClientTest {
private SocketClient client;
@Before
public void runBeforeEveryTest() {
... | package com.tal.clienttext.junit;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import junit.framework.Assert;
import com.tal.socketclient.SocketClient;
public class ClientTest {
private SocketClient client;
@Before
publi... | Fix assertion in JUnit test. | Fix assertion in JUnit test.
| Java | isc | tristan2468/SocketClient |
68618c44793f62c7910db34f1d05f9887e8fd8e6 | chapter_001/src/main/java/ru/job4j/maximum/Max.java | chapter_001/src/main/java/ru/job4j/maximum/Max.java | package ru.job4j.maximum;
/**
* Max class.
* @author Yury Chuksin (chuksin.yury@gmail.com)
* @since 18.01.2017
*/
public class Max {
/**
* maxFromTwo method compare two variables and takes maximum.
* @param first first of two compared variables
* @param second second of two compared variables
*/
public maxFromT... | package ru.job4j.maximum;
/**
* Max class.
* @author Yury Chuksin (chuksin.yury@gmail.com)
* @since 18.01.2017
*/
public class Max {
/**
* maxFromTwo method compare two variables and takes maximum.
* @param first first of two compared variables
* @param second second of two compared variables
*/
public maxFromT... | Make corrections in task 3.3 | Make corrections in task 3.3
| Java | apache-2.0 | Yurik16/yuchuksin |
8e9a821b4f8788fe90ec814180dca00e1a224558 | hadoop/jobs/files/WordCount/WordCountDriver.java | hadoop/jobs/files/WordCount/WordCountDriver.java | import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
import org.apache.hadoop.mapreduce.Job;
public class WordCountDriver {
public static ... | import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
import org.apache.hadoop.mapreduce.Job;
public class WordCountDriver {
public static ... | Change the usage sentence to be EN | Change the usage sentence to be EN | Java | apache-2.0 | abruno06/containers,abruno06/containers |
84e33048fa548c4d740266b5438440e3d6c0610c | core/src/com/pqbyte/coherence/CollisionListener.java | core/src/com/pqbyte/coherence/CollisionListener.java | package com.pqbyte.coherence;
import com.badlogic.gdx.physics.box2d.Contact;
import com.badlogic.gdx.physics.box2d.ContactImpulse;
import com.badlogic.gdx.physics.box2d.ContactListener;
import com.badlogic.gdx.physics.box2d.Manifold;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.utils.Array;
... | package com.pqbyte.coherence;
import com.badlogic.gdx.physics.box2d.Contact;
import com.badlogic.gdx.physics.box2d.ContactImpulse;
import com.badlogic.gdx.physics.box2d.ContactListener;
import com.badlogic.gdx.physics.box2d.Manifold;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.utils.Array;
... | Add collision detection for Obstacle | Add collision detection for Obstacle
| Java | apache-2.0 | pqbyte/coherence |
9cbd7dcc23659b6e486939823380c110a26b9b90 | src/test/java/com/maxmind/geoip/CityLookupIdxTest.java | src/test/java/com/maxmind/geoip/CityLookupIdxTest.java | package com.maxmind.geoip;
/* CityLookupTest.java */
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import org.junit.Test;
public class CityLookupIdxTest {
private static final double DELTA = 1e-5;
@Test
public void testCityLookupIdx() throws IOException {
LookupService cl = new Lo... | package com.maxmind.geoip;
/* CityLookupTest.java */
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import org.junit.Test;
public class CityLookupIdxTest {
private static final double DELTA = 1e-5;
@Test
public void testCityLookupIdx() throws IOException {
LookupService cl = new Lo... | Revert accidentally changes test case | Revert accidentally changes test case
| Java | lgpl-2.1 | maxmind/geoip-api-java,maxmind/geoip-api-java |
18a35f2e3beb5f62a351cb19e843fab28e1560df | src/IslandManager.java | src/IslandManager.java |
public class IslandManager {
private List<Island> islands;
public void createIslands(List<Island> islands){
}
}
|
public class IslandManager {
private List<Island> islands;
public void createIslands(){
}
}
| Remove arguments from createIslands method | Remove arguments from createIslands method | Java | mit | plexers/project-sparrow,plexers/project-sparrow |
f8a5a149b72facf0047b47133471604eaf1609cb | src/java/com/threerings/crowd/server/CrowdClient.java | src/java/com/threerings/crowd/server/CrowdClient.java | //
// $Id: CrowdClient.java,v 1.16 2002/11/05 05:48:18 mdb Exp $
package com.threerings.crowd.server;
import com.threerings.presents.server.PresentsClient;
import com.threerings.crowd.Log;
import com.threerings.crowd.data.BodyObject;
import com.threerings.crowd.data.OccupantInfo;
import com.threerings.crowd.data.Pla... | //
// $Id: CrowdClient.java,v 1.17 2002/11/26 02:46:01 mdb Exp $
package com.threerings.crowd.server;
import com.threerings.presents.server.PresentsClient;
import com.threerings.crowd.Log;
import com.threerings.crowd.data.BodyObject;
import com.threerings.crowd.data.OccupantInfo;
import com.threerings.crowd.data.Pla... | Clear out our body's location when we log off because with the new client reference counting thing, we can't rely on a user's object being destroyed immediately after they log off. Better to ensure that their location will always be cleared so that location interested entities will be properly notified. | Clear out our body's location when we log off because with the new client
reference counting thing, we can't rely on a user's object being destroyed
immediately after they log off. Better to ensure that their location will
always be cleared so that location interested entities will be properly
notified.
git-svn-id: a... | Java | lgpl-2.1 | threerings/narya,threerings/narya,threerings/narya,threerings/narya,threerings/narya |
fe6a37519ff0af26a85aeee217d498111eea5412 | src/main/java/com/skcraft/plume/module/Broadcast.java | src/main/java/com/skcraft/plume/module/Broadcast.java | package com.skcraft.plume.module;
import com.sk89q.intake.Command;
import com.sk89q.intake.Require;
import com.sk89q.intake.parametric.annotation.Switch;
import com.sk89q.intake.parametric.annotation.Text;
import com.skcraft.plume.command.Sender;
import com.skcraft.plume.common.util.module.Module;
import com.skcraft.p... | package com.skcraft.plume.module;
import com.sk89q.intake.Command;
import com.sk89q.intake.Require;
import com.sk89q.intake.parametric.annotation.Text;
import com.skcraft.plume.command.Sender;
import com.skcraft.plume.common.util.module.Module;
import com.skcraft.plume.util.Messages;
import net.minecraft.command.IComm... | Make the broadcast module more versatile. | Make the broadcast module more versatile.
| Java | bsd-3-clause | wizjany/Plume,SKCraft/Plume,wizjany/Plume,SKCraft/Plume |
7634a12c8c601033529118a083e55721076e0254 | src/main/java/com/jakewharton/trakt/enumerations/Rating.java | src/main/java/com/jakewharton/trakt/enumerations/Rating.java | package com.jakewharton.trakt.enumerations;
import java.util.HashMap;
import java.util.Map;
import com.jakewharton.trakt.TraktEnumeration;
public enum Rating implements TraktEnumeration {
Love("love"),
Hate("hate");
private final String value;
private Rating(String value) {
this.value = valu... | package com.jakewharton.trakt.enumerations;
import java.util.HashMap;
import java.util.Map;
import com.jakewharton.trakt.TraktEnumeration;
public enum Rating implements TraktEnumeration {
Love("love"),
Hate("hate"),
Unrate("unrate");
private final String value;
private Rating(String value) {
... | Add unrate action to rating. | Add unrate action to rating.
| Java | apache-2.0 | UweTrottmann/trakt-java |
72984db143d5e41ac04dcd04b6fc6db92b04fd63 | src/main/java/openmods/api/INeighbourAwareTile.java | src/main/java/openmods/api/INeighbourAwareTile.java | package openmods.api;
import net.minecraft.block.Block;
import net.minecraft.util.math.BlockPos;
public interface INeighbourAwareTile {
public void onNeighbourChanged(BlockPos pos, Block block);
}
| package openmods.api;
import net.minecraft.block.Block;
import net.minecraft.util.math.BlockPos;
public interface INeighbourAwareTile {
public void onNeighbourChanged(BlockPos neighbourPos, Block neigbourBlock);
}
| Change parameter name to prevent mistakes | Change parameter name to prevent mistakes
| Java | mit | OpenMods/OpenModsLib,OpenMods/OpenModsLib |
d9ac537f90c992c4525e6b32de9bc02c4994ef2b | src/test/java/com/springapp/batch/CompareEntryTest.java | src/test/java/com/springapp/batch/CompareEntryTest.java | package com.springapp.batch;
import com.springapp.batch.bo.BookEntry;
import org.joda.time.DateTime;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@RunWith... | package com.springapp.batch;
import com.springapp.batch.bo.BookEntry;
import org.joda.time.DateTime;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
@RunWith... | Refactor mocked DOB to constants | Refactor mocked DOB to constants
| Java | mit | rafelbev/address-book |
6de8011f0e5301d6d3b42efde3f90e2d697be2ed | src/test/java/net/fabricmc/test/mixin/MixinGuiMain.java | src/test/java/net/fabricmc/test/mixin/MixinGuiMain.java | /*
* Copyright 2016 FabricMC
*
* 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 2016 FabricMC
*
* 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 test mod for latest mappings | Fix test mod for latest mappings
| Java | apache-2.0 | FabricMC/fabric-base |
e500360f281b211ff9551c85e9cc3bc8bb6aadcd | src/main/java/hk/ust/comp4321/test/TestPageRank.java | src/main/java/hk/ust/comp4321/test/TestPageRank.java | package hk.ust.comp4321.test;
import java.io.IOException;
import hk.ust.comp4321.engine.PageRank;
public class TestPageRank
{
public static void main(String[] args) throws IOException
{
PageRank pageRank = new PageRank("Movie");
}
}
| package hk.ust.comp4321.test;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.util.List;
import hk.ust.comp4321.database.DocInfo;
import hk.ust.comp4321.database.ForwardIndexTable;
import hk.ust.comp4321.database.InvertedPageTable;
import hk.ust.comp4321.database.I... | Update to test phrase checker | Update to test phrase checker | Java | mit | chpoon92/vector-model-search-engine-java |
b7eb2ccc775aa6db7f35a09692b7c50d84a1db31 | src/main/java/at/ac/tuwien/inso/entity/Student.java | src/main/java/at/ac/tuwien/inso/entity/Student.java | package at.ac.tuwien.inso.entity;
import static java.util.Arrays.asList;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
@Entity
public class Student extends UisUser {
@OneToMany(cascade = CascadeType.... | package at.ac.tuwien.inso.entity;
import static java.util.Arrays.asList;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
@Entity
public class Student extends UisUser {
@OneToMany(cascade = CascadeType.... | Add dismissed courses to student entity to persist feedback | Add dismissed courses to student entity to persist feedback
| Java | mit | university-information-system/uis,university-information-system/uis,university-information-system/uis,university-information-system/uis |
9632b584975110de90a76094e7506dc2733baf5b | src/io/arkeus/fatebot/commands/impl/PeekCommand.java | src/io/arkeus/fatebot/commands/impl/PeekCommand.java | package io.arkeus.fatebot.commands.impl;
import org.jibble.pircbot.Colors;
import io.arkeus.fatebot.commands.Command;
import io.arkeus.fatebot.commands.CommandException;
import io.arkeus.fatebot.handlers.TrapHandler;
import io.arkeus.fatebot.util.MessageBuilder;
public class PeekCommand extends Command {
private st... | package io.arkeus.fatebot.commands.impl;
import org.jibble.pircbot.Colors;
import io.arkeus.fatebot.commands.Command;
import io.arkeus.fatebot.commands.CommandException;
import io.arkeus.fatebot.handlers.TrapHandler;
import io.arkeus.fatebot.util.MessageBuilder;
import io.arkeus.fatebot.util.TimeUtils;
public class ... | Add time to peek command. | Add time to peek command. | Java | mit | arkeus/fate-bot |
368808eee4701f78d2931970d28674c4db0428dc | integration-tests/src/test/java/arez/integration/IdentifiableIntegrationTest.java | integration-tests/src/test/java/arez/integration/IdentifiableIntegrationTest.java | package arez.integration;
import arez.annotations.ArezComponent;
import arez.annotations.ComponentId;
import arez.component.Identifiable;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
@SuppressWarnings( "ConstantConditions" )
public final class IdentifiableIntegrationTest
extends AbstractAr... | package arez.integration;
import arez.annotations.ArezComponent;
import arez.annotations.ComponentId;
import arez.annotations.Feature;
import arez.component.Identifiable;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
@SuppressWarnings( "ConstantConditions" )
public final class IdentifiableInt... | Fix test to reflect current defaults | Fix test to reflect current defaults
| Java | apache-2.0 | realityforge/arez,realityforge/arez,realityforge/arez |
cf0eea8091078f3644f6af58c521bda27c703b88 | android/src/main/java/io/palette/RNPalettePackage.java | android/src/main/java/io/palette/RNPalettePackage.java | package io.palette;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.reac... | package io.palette;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.reac... | Fix breaking change in RN 47 | Fix breaking change in RN 47
| Java | isc | chetstone/react-native-palette,chetstone/react-native-palette,chetstone/react-native-palette |
c5bb027a456e0036fc52836377df3bfa5a4b4e8e | core/src/test/net/sf/clirr/core/CheckerFactory.java | core/src/test/net/sf/clirr/core/CheckerFactory.java | package net.sf.clirr.core;
import net.sf.clirr.core.internal.ClassChangeCheck;
import net.sf.clirr.core.Checker;
/**
* Provides a way for check tests to create a checker via the package private
* Checker constructor, even if the tests are not in the same package.
*/
public class CheckerFactory
{
public static ... | package net.sf.clirr.core;
import net.sf.clirr.core.internal.ClassChangeCheck;
import net.sf.clirr.core.Checker;
/**
* Provides a way for check tests to create a checker via the package private
* Checker constructor, even if the tests are not in the same package.
*/
public class CheckerFactory
{
public static ... | Add factory method for Checker instance with default set of checks. | Add factory method for Checker instance with default set of checks.
| Java | apache-2.0 | lukegb/clirr |
465959f52573d4396e0d471e197e0dec09ab591a | core/src/main/java/com/threerings/nexus/util/Callback.java | core/src/main/java/com/threerings/nexus/util/Callback.java | //
// Nexus Core - a framework for developing distributed applications
// http://github.com/threerings/nexus/blob/master/LICENSE
package com.threerings.nexus.util;
/**
* Used to communicate asynchronous results.
*/
public interface Callback<T>
{
/** A callback that chains failure to the supplied delegate callba... | //
// Nexus Core - a framework for developing distributed applications
// http://github.com/threerings/nexus/blob/master/LICENSE
package com.threerings.nexus.util;
/**
* Used to communicate asynchronous results.
*/
public interface Callback<T>
{
/** A callback that chains failure to the supplied delegate callba... | Switch to a singleton NOOP. With proper variance, this can be used everywhere. | Switch to a singleton NOOP. With proper variance, this can be used everywhere.
Proper variance is useful in general. When you want to use it, define your
service methods thusly:
void detonateBombs (int targetId, Callback<? super String> onResult);
Then you can pass Callback<String> or Callback<Object> to the servi... | Java | bsd-3-clause | threerings/nexus |
ed9497775bf89dd4ab06f4118caa557eb133f23c | jslint4java/src/test/java/com/googlecode/jslint4java/cli/CharsetConverterTest.java | jslint4java/src/test/java/com/googlecode/jslint4java/cli/CharsetConverterTest.java | package com.googlecode.jslint4java.cli;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import java.nio.charset.Charset;
import java.nio.charset.UnsupportedCharsetException;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import com.beust.jcommand... | package com.googlecode.jslint4java.cli;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import static org.junit.Assume.*;
import java.nio.charset.Charset;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import com.beust.jcommander.ParameterExcepti... | Use assumption to simplify test. | Use assumption to simplify test. | Java | bsd-2-clause | nikgoodley-ibboost/jslint4java,llwanghong/jslint4java,mmayorivera/jslint4java,nikgoodley-ibboost/jslint4java,mmayorivera/jslint4java,rsingla/jslint4java,mmayorivera/jslint4java,mmayorivera/jslint4java,rsingla/jslint4java,nikgoodley-ibboost/jslint4java,llwanghong/jslint4java,rsingla/jslint4java,nikgoodley-ibboost/jslint... |
26ba83832c2bf87e8774eef9088809c2832b58a5 | src/main/java/com/boundary/sdk/event/ScriptUtils.java | src/main/java/com/boundary/sdk/event/ScriptUtils.java | package com.boundary.sdk.event;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.net.URL;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ScriptUtils {
private static Logger LOG = LoggerFactory.getLogger(ScriptUtils.class);
public ScriptUti... | package com.boundary.sdk.event;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.net.URL;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Utilities used for java script execution
*
* @author davidg
*
*/
public class ScriptUtils {
private static... | Fix warning when generating javadoc ; Add class description | Fix warning when generating javadoc ; Add class description
| Java | apache-2.0 | boundary/boundary-event-sdk,boundary/boundary-event-sdk,boundary/boundary-event-sdk,boundary/boundary-event-sdk,boundary/boundary-event-sdk,boundary/boundary-event-sdk,boundary/boundary-event-sdk |
010a8b2d421b57a0dfa4b1c468f5381d94496fbf | src/test/java/com/vtence/molecule/testing/HtmlForm.java | src/test/java/com/vtence/molecule/testing/HtmlForm.java | package com.vtence.molecule.testing;
import com.vtence.molecule.helpers.Charsets;
import com.vtence.molecule.helpers.Joiner;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class HtmlForm {
private final Map<String, Strin... | package com.vtence.molecule.testing;
import com.vtence.molecule.helpers.Charsets;
import com.vtence.molecule.helpers.Joiner;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class HtmlForm {
private final Map<String, Strin... | Clarify language to avoid confusing between form accepted charset and form encoding type | Clarify language to avoid confusing between form accepted charset and form encoding type
| Java | mit | testinfected/molecule,ensonik/molecule,testinfected/molecule,ensonik/molecule,testinfected/molecule,testinfected/molecule,ensonik/molecule,ensonik/molecule,testinfected/molecule,ensonik/molecule |
e7f8000d3a781cfe51e3205118446fd651b07587 | src/main/java/org/utplsql/api/JavaApiVersionInfo.java | src/main/java/org/utplsql/api/JavaApiVersionInfo.java | package org.utplsql.api;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URISyntaxException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Paths;
/** This class is getting updated automatically by the build process.
* Pleas... | package org.utplsql.api;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URISyntaxException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Paths;
/** This class is getting updated automatically... | Use ResourceStream instead of NIO File access | Use ResourceStream instead of NIO File access
| Java | apache-2.0 | utPLSQL/utPLSQL-java-api,utPLSQL/utPLSQL-java-api,utPLSQL/utPLSQL-java-api |
8da219f6a763439d7704f08d46340b265bde061a | src/main/java/com/hamishrickerby/http_server/App.java | src/main/java/com/hamishrickerby/http_server/App.java | package com.hamishrickerby.http_server;
/**
* Created by rickerbh on 15/08/2016.
*/
public class App {
public static void main(String[] args) {
AppArguments arguments = new AppArguments(args);
Integer port = Integer.parseInt(arguments.getOrDefault("-p", "5000"));
try {
SocketS... | package com.hamishrickerby.http_server;
/**
* Created by rickerbh on 15/08/2016.
*/
public class App {
public static void main(String[] args) {
AppArguments arguments = new AppArguments(args);
Integer port = Integer.parseInt(arguments.getOrDefault("-p", "5000"));
SocketServer server = nul... | Add closing of socket server on app exit | Add closing of socket server on app exit
| Java | mit | rickerbh/http_server_java,rickerbh/http_server_java |
6708af290cb0cf5166796394a9f90723426c65a3 | python/testSrc/com/jetbrains/python/PyCommenterTest.java | python/testSrc/com/jetbrains/python/PyCommenterTest.java | /*
* Copyright 2000-2013 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-2013 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... | Use simpler test API for performing actions | Use simpler test API for performing actions
| Java | apache-2.0 | hurricup/intellij-community,robovm/robovm-studio,ftomassetti/intellij-community,SerCeMan/intellij-community,orekyuu/intellij-community,apixandru/intellij-community,allotria/intellij-community,petteyg/intellij-community,adedayo/intellij-community,pwoodworth/intellij-community,supersven/intellij-community,vvv1559/intelli... |
8d513f02f31b78a65b920293a5aeebfc0e52473d | app/src/main/java/net/squanchy/navigation/Navigator.java | app/src/main/java/net/squanchy/navigation/Navigator.java | package net.squanchy.navigation;
import android.content.Context;
import android.content.Intent;
import net.squanchy.eventdetails.EventDetailsActivity;
import net.squanchy.search.SearchActivity;
import net.squanchy.speaker.SpeakerDetailsActivity;
public class Navigator {
private final Context context;
publi... | package net.squanchy.navigation;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import net.squanchy.eventdetails.EventDetailsActivity;
import net.squanchy.search.SearchActivity;
import net.squanchy.speaker.SpeakerDetailsActivity;
public class Navigator {
private final Con... | Add support for navigating to Twitter profile and external URL | Add support for navigating to Twitter profile and external URL
| Java | apache-2.0 | squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android |
17950c93b781b59f09b482ac3fa382c3b5a555db | test/access/AccessControllerTest.java | test/access/AccessControllerTest.java | package access;
import io.restassured.http.ContentType;
import org.testng.annotations.Test;
import static io.restassured.RestAssured.get;
/**
* Created by Vladyslav Dovhopol on 4/27/17.
* Test Greeting Controller.
*/
public class AccessControllerTest {
@Test
public void GET_NoPayload_Correct() {
... | package access;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.junit4.SpringRunner;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.nullValue;
import static org.hamcrest.core.Is.is;
/**
* Created by Vladyslav Dovhopol on 4/27/... | Write stub test to check that Travis CI runs it. | Write stub test to check that Travis CI runs it.
| Java | mit | afkgeolog/knure-collaboration-for-students,afkgeolog/knure-collaboration-for-students,afkgeolog/knure-collaboration-for-students,afkgeolog/knure-collaboration-for-students |
0699cd8f2b828b504ae284dd1d6bb07160a5eae8 | src/test/java/org/la4j/matrix/sparse/SparseMatrixTest.java | src/test/java/org/la4j/matrix/sparse/SparseMatrixTest.java | /*
* Copyright 2011-2013, by Vladimir Kostyukov and Contributors.
*
* This file is part of la4j project (http://la4j.org)
*
* 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
*
* ... | /*
* Copyright 2011-2013, by Vladimir Kostyukov and Contributors.
*
* This file is part of la4j project (http://la4j.org)
*
* 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
*
* ... | Add a test case for very large sparse matrix | Add a test case for very large sparse matrix
| Java | apache-2.0 | cvand/la4j,jpalves/la4j,tansvanio/la4j,zhangxiubo/la4j,vkostyukov/la4j |
81cef77449322df026755bf0d12894066d5bdc3d | raven/src/test/java/net/kencochrane/raven/RavenTest.java | raven/src/test/java/net/kencochrane/raven/RavenTest.java | package net.kencochrane.raven;
import net.kencochrane.raven.connection.Connection;
import net.kencochrane.raven.event.Event;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;... | package net.kencochrane.raven;
import net.kencochrane.raven.connection.Connection;
import net.kencochrane.raven.event.Event;
import net.kencochrane.raven.event.EventBuilder;
import net.kencochrane.raven.event.helper.EventBuilderHelper;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org... | Add unit tests for Raven | Add unit tests for Raven
| Java | bsd-3-clause | buckett/raven-java,littleyang/raven-java,galmeida/raven-java,buckett/raven-java,galmeida/raven-java,reki2000/raven-java6,littleyang/raven-java,reki2000/raven-java6 |
cf181fb7e51eed2d28935e7096b9813fdd157ed1 | src/main/java/org/mcphoton/impl/command/ListCommand.java | src/main/java/org/mcphoton/impl/command/ListCommand.java | package org.mcphoton.impl.command;
import org.mcphoton.command.Command;
import org.mcphoton.impl.server.Main;
import org.mcphoton.messaging.Messageable;
public class ListCommand implements Command {
@Override
public void execute(Messageable source, String[] args) {
switch(Main.serverInstance.getOnlinePlayer... | /*
* Copyright (c) 2016 MCPhoton <http://mcphoton.org> and contributors.
*
* This file is part of the Photon Server Implementation <https://github.com/mcphoton/Photon-Server>.
*
* The Photon Server Implementation is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero Genera... | Fix problem with a build error. | Fix problem with a build error.
Error with Gradle at task 'licenseMain': "Missing header in: src\main\java\org\mcphoton\impl\command\ListCommand.java"
It's a fix. | Java | agpl-3.0 | DJmaxZPL4Y/Photon-Server |
fcc1ab058fe56c9ecaa44c69b2bba3bfd02b8a2e | src/com/valerysamovich/java/oop/staticex/counter/Counter.java | src/com/valerysamovich/java/oop/staticex/counter/Counter.java | /**
* @file Counter.java
* @author Valery Samovich
* @version 1
* @date 2015/01/05
*/
package com.valerysamovich.java.oop.staticex.counter;
public class Counter {
NonStaticCounter c1 = new NonStaticCounter();
NonStaticCounter c2 = new NonStaticCounter();
NonStaticCounter c3 = new NonStaticCounter();... | /**
* @file Counter.java
* @author Valery Samovich
* @version 1
* @date 2015/01/05
*/
package com.valerysamovich.java.oop.staticex.counter;
public class Counter {
public static void main(String[] args) {
System.out.println("Non Static Objects:");
// Non Static Object Counters
NonSt... | Add counter Static example plus non Static | Add counter Static example plus non Static
| Java | unknown | vsamov/java-technologies,valerysamovich/java-technologies,vsamov/java-technologies |
fd4d47ae436a1baeb2c8e7c09eefaf78104792d5 | gsf-action/src/main/java/com/fatwire/gst/foundation/controller/InjectingController.java | gsf-action/src/main/java/com/fatwire/gst/foundation/controller/InjectingController.java | package com.fatwire.gst.foundation.controller;
import javax.servlet.ServletContext;
import com.fatwire.assetapi.data.BaseController;
import com.fatwire.gst.foundation.controller.action.Injector;
import com.fatwire.gst.foundation.controller.support.WebContextUtil;
import COM.FutureTense.Interfaces.DependenciesAwareMo... | /*
* Copyright 2016 Function1. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | Add license to controller file. | Add license to controller file.
| Java | apache-2.0 | dolfdijkstra/gst-foundation,amai/gst-foundation,amai/gst-foundation,amai/gst-foundation,dolfdijkstra/gst-foundation,dolfdijkstra/gst-foundation,fvillalba/gst-foundation,fvillalba/gst-foundation,fvillalba/gst-foundation |
7268ebfe23ddab58055f12589dbb13ab60217952 | jumi-actors/src/main/java/fi/jumi/actors/eventizers/dynamic/DynamicListenerToEvent.java | jumi-actors/src/main/java/fi/jumi/actors/eventizers/dynamic/DynamicListenerToEvent.java | // Copyright © 2011-2015, Esko Luontola <www.orfjackal.net>
// This software is released under the Apache License 2.0.
// The license text is at http://www.apache.org/licenses/LICENSE-2.0
package fi.jumi.actors.eventizers.dynamic;
import fi.jumi.actors.Promise;
import fi.jumi.actors.eventizers.Event;
import fi.jumi.a... | // Copyright © 2011-2018, Esko Luontola <www.orfjackal.net>
// This software is released under the Apache License 2.0.
// The license text is at http://www.apache.org/licenses/LICENSE-2.0
package fi.jumi.actors.eventizers.dynamic;
import fi.jumi.actors.Promise;
import fi.jumi.actors.eventizers.Event;
import fi.jumi.a... | Check for the Future interface instead of the custom Promise class | Check for the Future interface instead of the custom Promise class
Fixes #5
| Java | apache-2.0 | orfjackal/jumi-actors |
11337f1778d89ddb4bf7d8de46081d80fcce63f7 | samples-phase-2/Subscribe.java | samples-phase-2/Subscribe.java |
// this needs to be modified to work with the new java 7 date class
package tap.sample;
import tap.*;
import quantbench.Candle;
public class Subscribe {
public static main(String[] args) throws Exception {
Tap tap = new Tap();
tap.startTime("2011-01-03 10:40:00.000");
tap.endTime("2011-0... | // this needs to be modified to work with the new java 7 date class
package tap.sample;
import tap.*;
import quantbench.Candle;
public class Subscribe {
// Usage: hadoop jar yourjar.jar -s 2011-01-03 10:40:00.000 -e 2011-01-03 10:50:00.000
public static main(String[] args) throws Exception {
Com... | Fix Tap constructor, pass start and end time via command line arguments. | Fix Tap constructor, pass start and end time via command line arguments. | Java | apache-2.0 | tap-git/tap,tap-git/tap,tap-git/tap |
7e83e25bebb37a91d4278bbc1fe1c4ad5ec9c7c2 | src/cz/crcs/ectester/reader/output/ResponseWriter.java | src/cz/crcs/ectester/reader/output/ResponseWriter.java | package cz.crcs.ectester.reader.output;
import cz.crcs.ectester.common.util.CardUtil;
import cz.crcs.ectester.reader.response.Response;
import java.io.PrintStream;
/**
* @author Jan Jancar johny@neuromancer.sk
*/
public class ResponseWriter {
private PrintStream output;
public ResponseWriter(PrintStream o... | package cz.crcs.ectester.reader.output;
import cz.crcs.ectester.common.util.CardUtil;
import cz.crcs.ectester.reader.response.Response;
import java.io.PrintStream;
/**
* @author Jan Jancar johny@neuromancer.sk
*/
public class ResponseWriter {
private PrintStream output;
public ResponseWriter(PrintStream o... | Make test output show natural sw. | Make test output show natural sw.
| Java | mit | petrs/ECTester,petrs/ECTester,petrs/ECTester |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.