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 |
|---|---|---|---|---|---|---|---|---|---|
b99aa4dfdb81bce3d71eda401ff7cf2b0fecf0a0 | src/main/java/foodtruck/server/FoodtruckServletModule.java | src/main/java/foodtruck/server/FoodtruckServletModule.java | package foodtruck.server;
import com.google.inject.Provides;
import com.google.inject.name.Named;
import com.google.inject.servlet.ServletModule;
import org.joda.time.DateTimeZone;
import foodtruck.model.Location;
/**
* @author aviolette
* @since Jul 12, 2011
*/
public class FoodtruckServletModule extends Servle... | package foodtruck.server;
import com.google.inject.Provides;
import com.google.inject.name.Named;
import com.google.inject.servlet.ServletModule;
import org.joda.time.DateTimeZone;
import foodtruck.model.Location;
/**
* @author aviolette
* @since Jul 12, 2011
*/
public class FoodtruckServletModule extends Servle... | Add regex expression for food truck query so that admin servlet can be reached on dev server. | Add regex expression for food truck query so that admin servlet can be reached on dev server.
| Java | mit | aviolette/foodtrucklocator,aviolette/foodtrucklocator,aviolette/foodtrucklocator,aviolette/foodtrucklocator |
7056884a7e530de9b0ee9da80fb1b08fe20f9c63 | src/main/java/me/nallar/modpatcher/ModPatcherLoadHook.java | src/main/java/me/nallar/modpatcher/ModPatcherLoadHook.java | package me.nallar.modpatcher;
import me.nallar.javatransformer.api.JavaTransformer;
class ModPatcherLoadHook {
private static final int API_VERSION = 0; //Keep in sync with version in ModPatcher.java
private static final String VERSION = "@VERSION@".replace("-SNAPSHOT", "");
static void loadHook(ModPatcher.Versio... | package me.nallar.modpatcher;
import me.nallar.javatransformer.api.JavaTransformer;
class ModPatcherLoadHook {
private static final int API_VERSION = 0; //Keep in sync with version in ModPatcher.java
private static final String VERSION = "@VERSION@".replace("-SNAPSHOT", "");
static void loadHook(ModPatcher.Versio... | Remove incorrect check for LCL | Remove incorrect check for LCL
| Java | mit | nallar/ModPatcher,MinimallyCorrect/ModPatcher |
f12bf1540e22a63be30d528790f75b6320a04eef | src/test/java/seedu/ezdo/commons/core/ConstructorTest.java | src/test/java/seedu/ezdo/commons/core/ConstructorTest.java | package seedu.ezdo.commons.core;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
import seedu.ezdo.commons.util.CollectionUtil;
import seedu.ezdo.commons.util.ConfigUtil;
import seedu.ezdo.commons.util.FxViewUtil;
import seedu.ezdo.commons.util.UrlUtil;
import seedu.ezdo.logic.parser.CliSyntax;
... | package seedu.ezdo.commons.core;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
import seedu.ezdo.commons.util.CollectionUtil;
import seedu.ezdo.commons.util.ConfigUtil;
import seedu.ezdo.commons.util.FxViewUtil;
import seedu.ezdo.commons.util.MultipleIndexCommandUtil;
import seedu.ezdo.commons... | Add in test for MultipleIndexCommandUtil | Add in test for MultipleIndexCommandUtil
| Java | mit | CS2103JAN2017-W14-B4/main,CS2103JAN2017-W14-B4/main |
e73517de1a501850bfa12e922678a86e802a229b | src/main/java/utils/Filter.java | src/main/java/utils/Filter.java | package utils;
public class Filter {
public static String xss(String input){
input=input.replaceAll("</", " ");
input = input.replaceAll("/>", " ");
input=input.replaceAll("<", " ");
input = input.replaceAll(">", " ");
return input;
}
}
| package utils;
public class Filter {
public static String xss(String input) {
// Some fields are optional so allow for null here
if (input == null)
return input;
input = input.replaceAll("</", " ");
input = input.replaceAll("/>", " ");
input = input.replaceAll("<", " ");
input = input.replaceAll(">",... | Fix nullptr exception when input to filter is null | Fix nullptr exception when input to filter is null
It is allowed for some fields to be left empty. And to allow
smooth handling of input we should silently ignore null fields
when we try to escape. The real input check is done elsewhere.
| Java | bsd-2-clause | emenlu/connect |
f28086b914d0107a46bcef4c9090e8c3380ae27c | src/opencup/xiv/round4/package-info.java | src/opencup/xiv/round4/package-info.java | /**
* This package contains <i>GD-team</i> solutions (up-solvings) for the forth round of Open Cup 2013 autumn-session.
* <p/>
* The whole schedule of 2013 autumn-session is here:
* <a href="http://opencup.ru/index.cgi?data=oce/schedule&menu=index&head=index">Grand Prix of Eastern Europe</a>.
* <p/>
*
* To see a... | /**
* This package contains <i>GD-team</i> solutions (up-solvings) for the forth round of Open Cup 2013 autumn-session.
* <p/>
* The whole schedule of 2013 autumn-session is here:
* <a href="http://opencup.ru/index.cgi?data=oce/schedule&menu=index&head=index">Grand Prix of Eastern Europe</a>.
* <p/>
*
* To see a... | Add statements for round 4 | Add statements for round 4
| Java | mit | MysterionRise/gd-team-dangerzone |
044442a4cb6e3282005842e70043781e72d173a7 | src/org/c4k3/NoSpam/CommandListener.java | src/org/c4k3/NoSpam/CommandListener.java | package org.c4k3.NoSpam;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
public class CommandListener implements Listener {
public CommandListener(No... | package org.c4k3.NoSpam;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
public class CommandListener implements Listener {
public CommandListener(No... | Add /op to spam-prevented commands | Add /op to spam-prevented commands
| Java | unlicense | C4K3/NoSpam |
ca1d7307edd44e7f5b24d4fae6b8f8f6c1f8832e | presto-orc/src/main/java/io/prestosql/orc/OrcPredicate.java | presto-orc/src/main/java/io/prestosql/orc/OrcPredicate.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
* distribut... | /*
* 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
* distribut... | Convert anonymous class to lambda | Convert anonymous class to lambda
| Java | apache-2.0 | hgschmie/presto,smartnews/presto,treasure-data/presto,treasure-data/presto,electrum/presto,erichwang/presto,ebyhr/presto,ebyhr/presto,losipiuk/presto,Praveen2112/presto,wyukawa/presto,ebyhr/presto,smartnews/presto,11xor6/presto,losipiuk/presto,losipiuk/presto,11xor6/presto,martint/presto,11xor6/presto,electrum/presto,t... |
f8054636ef5cf071e855a8bc6897dd7f4e5f8cfa | JDBC/SelectValues.java | JDBC/SelectValues.java | import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
public class SelectValues {
public static void main(String[] args) throws SQLException{
Connection con=DBInfo2.getConnection();
String query="SELECT * FROM log... | import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
public class SelectValues {
public static void main(String[] args) throws SQLException{
Connection con=DBInfo2.getConnection();
String query="SELECT * FROM log... | Select querry implementation with meta data | Select querry implementation with meta data
| Java | mit | AlphaBAT69/Java-Programs |
ec6c16a279a9540270aad57258d10393dc25b3c1 | src/main/java/gui/MainWindow.java | src/main/java/gui/MainWindow.java | package gui;
import gui.window.listener.GraphyWindowListener;
import java.awt.BorderLayout;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
public class MainWindow extends JFrame
{
private static MainWindow instance = null;
public static MainWindow get_instance()
{
if (instance == null) { instan... | package gui;
import gui.window.listener.GraphyWindowListener;
import java.awt.BorderLayout;
import javax.swing.*;
public class MainWindow extends JFrame
{
private static MainWindow instance = null;
public static MainWindow get_instance()
{
if (instance == null) { instance = new MainWindow(); }
return... | Use the system default LAF. | Use the system default LAF.
| Java | mit | metropolislights/graphy |
fd842149bf5b228139b8c6a1a0a5ac28581501e2 | stat/Stat.java | stat/Stat.java | import java.io.*;
public class Stat {
public static void main(String[] args) throws IOException {
//Test
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String in = null;
while((in=reader.readLine()) != null) {
if(in.contains("online"))
System.out.println("line captured... | import java.io.*;
import java.nio.file.Paths;
import java.nio.file.Files;
import java.nio.file.StandardOpenOption;
import java.util.Date;
import java.text.SimpleDateFormat;
public class Stat {
public static void main(String[] args) throws IOException {
String outPath = "data.txt";
try {
Files.createFile... | Save date and name to CSV output | Save date and name to CSV output
| Java | mit | mathcolo/telegram-analytics,mathcolo/telegram-analytics,mathcolo/telegram-analytics |
6e4d319cd9abe30b3ca3c28635cd2ef36725f6d5 | src/test/java/com/sigopt/example/FrankeTest.java | src/test/java/com/sigopt/example/FrankeTest.java | package com.sigopt.example;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
public class FrankeTest {
@Test
public void evaluate() throws Exception {
assertTrue(Franke.evaluate(0.0, 0.0) > 0);
assertTrue(Franke.evaluate(1.0, 0.0) > 0);
assertTrue(Franke.evaluate(0.0, 1.0) > 0);
... | package com.sigopt.example;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
public class FrankeTest {
@Test
public void evaluate() throws Exception {
assertTrue(Franke.evaluate(0.0, 0.0) > 0);
assertTrue(Franke.evaluate(1.0, 0.0) > 0);
assertTrue(Franke.evaluate(0.0, 1.0) > 0);
... | Test for max of franke function | Test for max of franke function
| Java | mit | sigopt/sigopt-java,sigopt/sigopt-java |
c12d8c0105e059a0766d30a9563a2442ddcfc92e | dnss-web/src/main/java/dnss/model/SP.java | dnss-web/src/main/java/dnss/model/SP.java | package dnss.model;
public class SP {
private int[] sp;
public int[] getSp() {
return sp;
}
public void setSp(int[] sp) {
this.sp = sp;
}
public int forCap(int cap) {
if (cap < 1 || cap > sp.length) {
return -1;
}
return sp[cap-1];
}
}... | package dnss.model;
public class SP {
private int[] sp;
public int[] getSp() {
return sp;
}
public void setSp(int[] sp) {
this.sp = sp;
}
public int forCap(int cap) {
if (cap < 1 || sp.length < cap) {
throw new RuntimeException("Invalid level cap passed in... | Throw an exception if a bad level cap was passed. | Throw an exception if a bad level cap was passed.
| Java | mit | ben-lei/dnss-web,ben-lei/dnss-web,ben-lei/dnss-web,ben-lei/dn-skill-sim,ben-lei/dn-skill-sim,ben-lei/dn-skill-sim |
fd791ad4b935d210539358d549e3a825d853f9c5 | test/web/alltests/AllTests.java | test/web/alltests/AllTests.java | package web.alltests;
import web.*;
import web.allwebtests.*;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
/**
* @author pandyas
*/
public class AllTests extends TestCase {
public AllTests(String arg0) {
super(arg0);
}
pub... | package web.alltests;
import web.*;
import web.allwebtests.*;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
/**
* @author pandyas
*/
public class AllTests extends TestCase {
public AllTests(String arg0) {
super(arg0);
}
pub... | Comment out tests unitil we get them to work with SSL | Comment out tests unitil we get them to work with SSL
SVN-Revision: 2967
| Java | bsd-3-clause | NCIP/camod,NCIP/camod,NCIP/camod,NCIP/camod |
f7c538d3129a95b9f21f32faef07b06322e49bf5 | src/main/java/org/bricolages/streaming/filter/SequenceOp.java | src/main/java/org/bricolages/streaming/filter/SequenceOp.java | package org.bricolages.streaming.filter;
import org.bricolages.streaming.ApplicationError;
import org.bricolages.streaming.SequencialNumberRepository;
import lombok.*;
class SequenceOp extends SingleColumnOp {
static final void register(OpBuilder builder) {
builder.registerOperator("sequence", (def) ->
... | package org.bricolages.streaming.filter;
import org.bricolages.streaming.ApplicationError;
import org.bricolages.streaming.SequencialNumberRepository;
import lombok.*;
class SequenceOp extends SingleColumnOp {
static final void register(OpBuilder builder) {
builder.registerOperator("sequence", (def) ->
... | Revert "Throw FilterException instead of ApplicationException when allocated sequence counter is starved" | Revert "Throw FilterException instead of ApplicationException when allocated sequence counter is starved"
This reverts commit 82c7964ae1abb805a63aeed677afa2979f573137.
| Java | mit | bricolages/bricolage-streaming-preprocessor,bricolages/bricolage-streaming-preprocessor,aamine/bricolage-streaming-preprocessor,aamine/bricolage-streaming-preprocessor |
21077dc3d0dea6d0dc3629d0ec00205386cd32b8 | v-ol2/src/main/java/org/vaadin/vol/client/LayerBaseState.java | v-ol2/src/main/java/org/vaadin/vol/client/LayerBaseState.java | package org.vaadin.vol.client;
import com.vaadin.shared.AbstractComponentState;
import com.vaadin.shared.annotations.DelegateToWidget;
public class LayerBaseState extends AbstractComponentState {
@DelegateToWidget
public String projection = "EPSG:4326";
@DelegateToWidget
public String displayName;
... | package org.vaadin.vol.client;
import com.vaadin.shared.AbstractComponentState;
import com.vaadin.shared.annotations.DelegateToWidget;
public class LayerBaseState extends AbstractComponentState {
@DelegateToWidget
public String projection;
@DelegateToWidget
public String displayName;
@DelegateToW... | Set layers default project to null (same way as addon's Vaadin 6 version works) | Set layers default project to null (same way as addon's Vaadin 6 version works)
| Java | apache-2.0 | markathomas/v-ol2,markathomas/v-ol2 |
51c6688569598e8adc4705cea4278eabc164e28a | pm-server/src/main/java/com/pm/server/PmServerApplication.java | pm-server/src/main/java/com/pm/server/PmServerApplication.java | package com.pm.server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
@SpringBootApplication
public class... | package com.pm.server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
@SpringBootApplication
public class... | Correct indentation for application configuration | Correct indentation for application configuration
| Java | mit | pacmacro/pm-server,pacmacro/pm-server,pacmacro/pm-server |
de028992aecc948c038a4cb7efca4cd85866cb02 | src/main/java/com/rdalambic/libertyprivate/LibertyPrivate.java | src/main/java/com/rdalambic/libertyprivate/LibertyPrivate.java | package com.rdalambic.libertyprivate;
import org.bukkit.plugin.java.JavaPlugin;
public final class LibertyPrivate extends JavaPlugin {
}
| package com.rdalambic.libertyprivate;
import org.bukkit.plugin.java.JavaPlugin;
public final class LibertyPrivate extends JavaPlugin {
//private static boolean enabled = false;
@Override
public void onEnable()
{
if(isEnabled()) return;
super.onEnable();
setEnabled(true);
}
public void onDisabl... | Add Util class Add main class Add BlockListener class | Add Util class
Add main class
Add BlockListener class
| Java | mit | croziere/liberty-private |
9db5f2478c830444e7bd9851874980753cdfa4d2 | src/programmertest/Problem4.java | src/programmertest/Problem4.java | package programmertest;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
public class Problem4 {
public static int largest(List<Integer> numbers) {
List<String> strings = numbers.stream().map(e -> e.toString())
.collect(Collector... | package programmertest;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
public class Problem4 {
public static int largest(List<Integer> numbers) {
List<String> strings = numbers.stream().map(e -> e.toString())
.collect(Collector... | Fix a bug in problem 4 | Fix a bug in problem 4
I guess I'm not a software engineer after all :)
| Java | mit | fredyw/programmer-test |
401ebc2ef672bee01df60ddaa8edaaadaacff936 | app/src/main/java/com/pr0gramm/app/CustomProxySelector.java | app/src/main/java/com/pr0gramm/app/CustomProxySelector.java | package com.pr0gramm.app;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.ProxySelector;
import java.net.SocketAddress;
import java.net.URI;
import java.util.Collections;
import java.util.List;
/**
*/
publ... | package com.pr0gramm.app;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.ProxySelector;
import java.net.SocketAddress;
import java.net.URI;
import java.util.Collections;
import java.util.List;
/**
*/
publ... | Use "NO_PROXY" for urls that are not proxied. | Use "NO_PROXY" for urls that are not proxied.
| Java | mit | mopsalarm/Pr0,mopsalarm/Pr0,mopsalarm/Pr0 |
67406b6d78a1b0addfe2de6dcf6a4f76ffe34463 | src/main/java/nl/homeserver/energie/VerbruikKostenOverzicht.java | src/main/java/nl/homeserver/energie/VerbruikKostenOverzicht.java | package nl.homeserver.energie;
import java.math.BigDecimal;
import lombok.Data;
@Data
public class VerbruikKostenOverzicht {
private BigDecimal stroomVerbruikDal;
private BigDecimal stroomKostenDal;
private BigDecimal stroomVerbruikNormaal;
private BigDecimal stroomKostenNormaal;
private BigDe... | package nl.homeserver.energie;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;
public class VerbruikKostenOverzicht {
@Getter
@Setter
private BigDecimal stroomVerbruikDal;
@Getter
@Setter
private BigDecimal stroomKostenDal;
@Getter
@Setter
private BigDe... | Replace @Data by @Getter and @Setter | Replace @Data by @Getter and @Setter
| Java | apache-2.0 | bassages/homecontrol,bassages/homecontrol,bassages/home-server,bassages/home-server |
842f50880b7ef8612cd90bdde9dfc16b874ca5fc | src/main/java/org/openmhealth/dsu/repository/UserRepository.java | src/main/java/org/openmhealth/dsu/repository/UserRepository.java | /*
* Copyright 2014 Open mHealth
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2014 Open mHealth
*
* 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... | Update user repository to match removal of user approval logic. | Update user repository to match removal of user approval logic.
| Java | apache-2.0 | smalldatalab/omh-dsu,openmhealth/omh-dsu-ri,smalldatalab/omh-dsu,smalldatalab/omh-dsu,smalldatalab/omh-dsu,openmhealth/omh-dsu-ri |
8b61ddc9446ba33e612a689d2930bf256cf021a6 | framework/Sound.java | framework/Sound.java | package framework;
import java.util.ArrayList;
import framework.editors.SoundEditor;
/**
* Represents a sound entity.
*
* A sound is represented basically by a frequency and a duration.
* It can then be modified by adding different modifiers.
* It is the core of the model in our MVC design pattern implementation... | package framework;
import java.util.ArrayList;
import framework.editors.SoundEditor;
/**
* Represents a sound entity.
*
* A sound is represented basically by a frequency and a duration.
* It can then be modified by adding different modifiers.
* It is the core of the model in our MVC design pattern implementation... | Add constants for sound synthesis. | Add constants for sound synthesis.
| Java | mit | remigourdon/sound-editors |
78e14b50d943247771860990bbe63121f2279c06 | src/main/java/org/fountainmc/api/event/world/BlockBreakEvent.java | src/main/java/org/fountainmc/api/event/world/BlockBreakEvent.java | package org.fountainmc.api.event.world;
import org.fountainmc.api.event.CancellableBase;
import org.fountainmc.api.world.BlockPosition;
import org.fountainmc.api.world.block.BlockState;
public class BlockBreakEvent extends CancellableBase {
private final BlockState state;
private final BlockPosition position... | package org.fountainmc.api.event.world;
import org.fountainmc.api.event.CancellableBase;
import org.fountainmc.api.world.BlockPosition;
import org.fountainmc.api.world.block.BlockState;
public class BlockBreakEvent extends CancellableBase {
private final BlockState state;
private final BlockPosition position... | Remove smurf naming in BreakBlockEvent | Remove smurf naming in BreakBlockEvent
Signed-off-by: Jadon Fowler <4c6f3310c854e278fcc8fd2569105b3ac7d05f0e@gmail.com>
| Java | mit | FountainMC/FountainAPI,FountainMC/FountainAPI |
25337e5f295c951cbe74c499d5964a951305c975 | src/com/simplenote/android/Constants.java | src/com/simplenote/android/Constants.java | package com.simplenote.android;
public class Constants {
public static final String PREFS_NAME = "SimpleNotePrefs";
public static final String TAG = "SimpleNote:";
public static final boolean USE_CACHE = true;
// API Base URL
static final String API_BASE_URL = "https://simple-note.appspot.com/api";
static fi... | package com.simplenote.android;
public class Constants {
public static final String PREFS_NAME = "SimpleNotePrefs";
public static final String TAG = "SimpleNote:";
public static final boolean USE_CACHE = true;
// API Base URL
public static final String API_BASE_URL = "https://simple-note.appspot.com/api";
pu... | Make API urls public constants | Make API urls public constants
| Java | mit | bryanjswift/simplenote-android |
a79dec62d234a10dec4be510a9f068835369562b | src/main/java/TimeoutConnect.java | src/main/java/TimeoutConnect.java | import javax.mail.MessagingException;
import javax.mail.Store;
import java.util.concurrent.TimeoutException;
/**
* Created by yiwen on 6/6/16.
*/
public abstract class TimeoutConnect {
private static class Connect implements Runnable {
private Store store;
private String host, username, password;
public Conn... | import javax.mail.MessagingException;
import javax.mail.Store;
import java.util.concurrent.TimeoutException;
/**
* Created by yiwen on 6/6/16.
*/
public abstract class TimeoutConnect {
private static class Connect implements Runnable {
private Store store;
private String host, username, password;
public Conn... | Fix bug in start a thread more than one time | Fix bug in start a thread more than one time
| Java | apache-2.0 | happy6666/remote_r |
6a44c36dac72d85ab8c01ee282c6b177d104e94b | oasis-model/src/main/java/oasis/model/directory/Organization.java | oasis-model/src/main/java/oasis/model/directory/Organization.java | package oasis.model.directory;
import javax.annotation.Nonnull;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import com.wordnik.swagger.annotations.ApiModelProperty;
import oasis.model.annotations.Id;
@JsonRootName("organization")
public class Organizat... | package oasis.model.directory;
import java.net.URI;
import javax.annotation.Nonnull;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import com.wordnik.swagger.annotations.ApiModelProperty;
import oasis.model.annotations.Id;
@JsonRootName("organization")
... | Add territory_id property to organizations | Add territory_id property to organizations
Closes #74
Change-Id: I17379659d8fbc274ce9d824c08b9b92cc6b54ae3
| Java | agpl-3.0 | ozwillo/ozwillo-kernel,ozwillo/ozwillo-kernel,ozwillo/ozwillo-kernel |
b362db678d978d5d691427b7661bfeb979e567f8 | src/main/java/info/u_team/u_team_core/UCoreMod.java | src/main/java/info/u_team/u_team_core/UCoreMod.java | package info.u_team.u_team_core;
import org.apache.logging.log4j.*;
import info.u_team.u_team_core.intern.config.ClientConfig;
import info.u_team.u_team_core.util.annotation.AnnotationManager;
import info.u_team.u_team_core.util.verify.JarSignVerifier;
import net.minecraftforge.fml.ModLoadingContext;
import net.minec... | package info.u_team.u_team_core;
import org.apache.logging.log4j.*;
import info.u_team.u_team_core.util.annotation.AnnotationManager;
import info.u_team.u_team_core.util.verify.JarSignVerifier;
import net.minecraftforge.fml.common.Mod;
@Mod(UCoreMod.MODID)
public class UCoreMod {
public static final String MODID ... | Remove the old config register call | Remove the old config register call | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
fa80d8d163fc657874aebc5a1bc5feedcb0ccd6b | src/api/forum/thread/Answer.java | src/api/forum/thread/Answer.java | package api.forum.thread;
/**
* The Class Answer.
* Stores information about an possible answer selection
* for a Poll
*
* @author Gwindow
*/
public class Answer {
/**
* The answer text
*/
private String answer;
/**
* The percent of votes it's gotten
*/
private Number percent;
/**
* The ratio of... | package api.forum.thread;
/**
* The Class Answer.
* Stores information about an possible answer selection
* for a Poll
*
* @author Gwindow
*/
public class Answer {
/**
* The answer text
*/
private String answer;
/**
* The percent of votes it's gotten
*/
private Number percent;
/**
* The ratio of... | Add ability to update the votes for an answer in the poll | Add ability to update the votes for an answer in the poll
This is needed by the app so we can update poll results after voting without needing to redownload the whole page
| Java | bsd-2-clause | Gwindow/WhatAPI |
2144fe465b58d788b889cf650feaf27df07c786b | rxjava-core/src/test/java/rx/schedulers/ExecutorSchedulerTest.java | rxjava-core/src/test/java/rx/schedulers/ExecutorSchedulerTest.java | /**
* Copyright 2014 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | /**
* Copyright 2014 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Use single Executor for all tests | Use single Executor for all tests
... so it doesn't leak for every test. | Java | apache-2.0 | eduardotrandafilov/RxJava,shekarrex/RxJava,dromato/RxJava,weikipeng/RxJava,java02014/RxJava,simonbasle/RxJava,Eagles2F/RxJava,stevegury/RxJava,akarnokd/RxJava,ronenhamias/RxJava,duqiao/RxJava,sunfei/RxJava,YlJava110/RxJava,nvoron23/RxJava,nurkiewicz/RxJava,sposam/RxJava,A-w-K/RxJava,sposam/RxJava,artem-zinnatullin/RxJa... |
415000c2657e1288ccbbbe7f202c76d3c79a06c0 | core/tests/playn/shared/json/AbstractJsonTest.java | core/tests/playn/shared/json/AbstractJsonTest.java | /**
* Copyright 2011 The PlayN Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /**
* Copyright 2011 The PlayN Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Fix test goal for core | Fix test goal for core
| Java | apache-2.0 | longtaoge/playn,playn/playn,thecocce/playn-1,longtaoge/playn,playn/playn,tinkerstudent/playn,ruslansennov/playn2,thecocce/playn-1,tinkerstudent/playn,rachelharvey/playn,playn/playn,ruslansennov/playn2,rachelharvey/playn |
0952cdf1186d63d6a93591429d55515ef8801998 | src/main/java/com/vnadgir/hal/HalApplication.java | src/main/java/com/vnadgir/hal/HalApplication.java | package com.vnadgir.hal;
import com.theoryinpractise.halbuilder.api.RepresentationFactory;
import com.theoryinpractise.halbuilder.standard.StandardRepresentationFactory;
import com.vnadgir.hal.api.resources.TestSessionResource;
import com.vnadgir.hal.api.resources.TestSessionsClientResource;
import com.vnadgir.hal.api... | package com.vnadgir.hal;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.util.ISO8601DateFormat;
import com.fasterxml.jackson.datatype.joda.JodaModule;
import com.fasterxml.jackson.datatype.joda.ser.DateTimeSerializer;
import com.theoryinpractise.halbuilder.api.RepresentationF... | Add default DateTimeFormat to parse/format DateTimes in UTC (ISO8601) | Add default DateTimeFormat to parse/format DateTimes in UTC (ISO8601)
| Java | mit | vnadgir-ef/hal-dw |
c891abe89cdcfe47950e6c9d169747b94e0c07f8 | ollie/src/main/java/ollie/internal/ModelAdapter.java | ollie/src/main/java/ollie/internal/ModelAdapter.java | package ollie.internal;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.provider.BaseColumns;
import ollie.Model;
public abstract class ModelAdapter<T extends Model> {
public abstract Class<? extends Model> getModelType();
public a... | package ollie.internal;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.provider.BaseColumns;
import ollie.Model;
public abstract class ModelAdapter<T extends Model> {
public abstract Class<? extends Model> getModelType();
public a... | Fix update "WHERE WHERE" bug. | Fix update "WHERE WHERE" bug.
| Java | apache-2.0 | pardom/Ollie,ArnaudPiroelle/Ollie,gotokatsuya/Ollie,r0adkll/Ollie |
64d452cf065609c97c4e324875d7308c1f40cff7 | builders/testdata/java/custom_entrypoint/Main.java | builders/testdata/java/custom_entrypoint/Main.java | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | Modify custom_entrypoint Java app to listen to PORT env var | Modify custom_entrypoint Java app to listen to PORT env var
PiperOrigin-RevId: 300161239
Change-Id: I1c2fb380fc0b615a653107f0b612910c949d244c
| Java | apache-2.0 | GoogleCloudPlatform/buildpacks,GoogleCloudPlatform/buildpacks,GoogleCloudPlatform/buildpacks,GoogleCloudPlatform/buildpacks |
8dfed5b30e43901ec6ca306ed54f4f95af7770e2 | src/main/java/io/sigpipe/sing/query/MetaQuery.java | src/main/java/io/sigpipe/sing/query/MetaQuery.java | package io.sigpipe.sing.query;
import java.io.IOException;
import java.util.List;
import java.util.Set;
import io.sigpipe.sing.dataset.feature.FeatureType;
import io.sigpipe.sing.graph.DataContainer;
import io.sigpipe.sing.graph.Vertex;
public class MetaQuery extends Query {
private DataContainer aggregateData ... | package io.sigpipe.sing.query;
import java.util.List;
import java.util.Set;
import io.sigpipe.sing.dataset.feature.FeatureType;
import io.sigpipe.sing.graph.DataContainer;
import io.sigpipe.sing.graph.Vertex;
public class MetaQuery extends Query {
private DataContainer aggregateData = new DataContainer();
... | Remove IOException from execute() and query() | Remove IOException from execute() and query()
| Java | bsd-2-clause | malensek/sing |
3a2efe8677580387b26bead8907370d4c44c6c89 | core/src/main/java/io/spine/core/ResponseMixin.java | core/src/main/java/io/spine/core/ResponseMixin.java | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | Add shortcut method for obtaining the error | Add shortcut method for obtaining the error
| Java | apache-2.0 | SpineEventEngine/core-java,SpineEventEngine/core-java,SpineEventEngine/core-java |
ccf61c99629e192875b6ee3781142976e7e3181e | algorithms/twoSum/twoSum.java | algorithms/twoSum/twoSum.java | /*
* Problem: https://leetcode.com/problems/two-sum/
*
* @param {number[]} nums
* @param {number} target
* @return {number[]}
*/
public int[] twoSum(int[] numbers, int target) {
int[] result = new int[2];
Map<Integer, Integer> map = new HashMap<Integer, Integer>();
for (int i = 0; i < numbers.length; ... | /*
* Problem: https://leetcode.com/problems/two-sum/
*
* @param {number[]} nums
* @param {number} target
* @return {number[]}
*/
public int[] twoSum(int[] nums, int target) {
Map<Integer, Integer> map = new HashMap<>();
for (int i = 0; i < nums.length; i++) {
int complement = target - nums[i];
... | Use compact style java hash solution. | Use compact style java hash solution.
| Java | mit | Williammer/leetcode-js |
12f01248016e4981d2b51eb5c6df98bdd2b484f6 | src/main/java/com/ezardlabs/lostsector/objects/environment/Door.java | src/main/java/com/ezardlabs/lostsector/objects/environment/Door.java | package com.ezardlabs.lostsector.objects.environment;
import com.ezardlabs.dethsquare.Script;
import com.ezardlabs.lostsector.objects.Player;
public class Door extends Script {
@Override
public void start() {
}
@Override
public void update() {
if (Player.player.collider.bounds.bottom > gameObject.collider.bo... | package com.ezardlabs.lostsector.objects.environment;
import com.ezardlabs.dethsquare.Collider;
import com.ezardlabs.dethsquare.GameObject;
import com.ezardlabs.dethsquare.Script;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentHashMap.KeySetView;
public class Door extends Script... | Change door open/close detection to use trigger colliders | Change door open/close detection to use trigger colliders
| Java | mit | 8-Bit-Warframe/Lost-Sector |
0ec2ac54dcd219855ba1a2abae6a8a3dad4d5961 | src/hawaii/edu/DoorDetector.java | src/hawaii/edu/DoorDetector.java | package hawaii.edu;
public class DoorDetector {
}
| package hawaii.edu;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
/**
* Detects doors using edge detection, angle detection, and other methods
* related to the field of computer vision.
*
* @author Kendyll Doi
* Edw... | Add code that reads in an image, and converts the image into a grayscale BufferedImage. | Add code that reads in an image, and converts the image into a grayscale BufferedImage.
| Java | mit | khiraide/DoorDetection |
ff4d372cfb249c1fa0bd9a0d1303eccb4229dfef | src/oslib/osx/OSXOperatingSystem.java | src/oslib/osx/OSXOperatingSystem.java | package oslib.osx;
import java.io.Serializable;
import oslib.Arch;
import oslib.OperatingSystem;
import oslib.UnixOperatingSystem;
public class OSXOperatingSystem extends UnixOperatingSystem implements Serializable {
private static final long serialVersionUID = 1929142018487788734L;
private OSXVersion version;
... | package oslib.osx;
import java.io.Serializable;
import oslib.Arch;
import oslib.OperatingSystem;
import oslib.UnixOperatingSystem;
public class OSXOperatingSystem extends UnixOperatingSystem implements Serializable {
private static final long serialVersionUID = 1929142018487788734L;
private OSXVersion version;
... | Check for nulls (fix nullpointer on newer OSX?) | Check for nulls (fix nullpointer on newer OSX?)
| Java | mit | redpois0n/oslib |
9583b7741331492e0b1a2321731963d2c52fdfe8 | src/main/java/de/epiceric/shopchest/listeners/ShopUpdateListener.java | src/main/java/de/epiceric/shopchest/listeners/ShopUpdateListener.java | package de.epiceric.shopchest.listeners;
import de.epiceric.shopchest.ShopChest;
import de.epiceric.shopchest.event.ShopUpdateEvent;
import de.epiceric.shopchest.shop.Shop;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org... | package de.epiceric.shopchest.listeners;
import de.epiceric.shopchest.ShopChest;
import de.epiceric.shopchest.event.ShopUpdateEvent;
import de.epiceric.shopchest.shop.Shop;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org... | Fix NPE on player join | Fix NPE on player join
Fixes #77
| Java | mit | EpicEricEE/ShopChest,sigmaroot/ShopChest,EpicEricEE/ShopChest |
bd0e849615c3b1bbfad0c1c6571cc2d05761607a | src/test/java/com/io7m/jaux/tests/functional/PartialFunctionTest.java | src/test/java/com/io7m/jaux/tests/functional/PartialFunctionTest.java | package com.io7m.jaux.tests.functional;
import junit.framework.Assert;
import org.junit.Test;
import com.io7m.jaux.Constraints.ConstraintError;
import com.io7m.jaux.functional.PartialFunction;
public class PartialFunctionTest
{
@SuppressWarnings("static-method") @Test public void testCorrect()
throws Constrai... | package com.io7m.jaux.tests.functional;
import junit.framework.Assert;
import org.junit.Test;
import com.io7m.jaux.Constraints.ConstraintError;
import com.io7m.jaux.functional.PartialFunction;
public class PartialFunctionTest
{
@SuppressWarnings("static-method") @Test public void testCorrect()
throws Constrai... | Mark as unused to squash warning | Mark as unused to squash warning
| Java | isc | io7m/jaux |
16b164dce67ead1336c9042daa9818617abf0e42 | framework/Player.java | framework/Player.java | import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.SourceDataLine;
import java.util.ArrayList;
import framework.Sound;
/**
* Handles the playing of the sounds inside the list.
*/
public class Player {
public Player() {
final AudioFormat af = new Aud... | import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.SourceDataLine;
import java.util.ArrayList;
import framework.Sound;
/**
* Handles the playing of the sounds inside the list.
*/
public class Player {
public Player() {
final AudioFormat af = new Aud... | Add methods to add and remove sounds from the player. | Add methods to add and remove sounds from the player.
| Java | mit | remigourdon/sound-editors |
af8407ce2744682301e275d6f0e7bb18a2fdd0d0 | FizzBuzzTester.java | FizzBuzzTester.java | public class FizzBuzzTester{
public static void main(String[] args){
FizzBuzzer firstFizz = new FizzBuzzer(20);
System.out.println(firstFizz);
}
}
class FizzBuzzer{
public int fizz;
public int buzz;
public int stopPoint;
public FizzBuzzer(){
fizz = 3;
buzz = 5;
stopPoint = 30;
};
public FizzBuzze... | public class FizzBuzzTester{
public static void main(String[] args){
FizzBuzzer firstFizz = new FizzBuzzer(20);
System.out.println(firstFizz);
//output: 1 2 fizz 4 buzz fizz 7 8 fizz buzz 11 fizz 13 14 fizzbuzz 16 17 fizz 19 buzz
}
}
class FizzBuzzer{
public int fizz;
public int buzz;
public int stopPoint;... | Fix error off by one error related to constructor with stopPoint, added output | Fix error off by one error related to constructor with stopPoint, added output
| Java | mit | knaik94/RewritingCore |
4e53afe5d16a00deb45c5818ca02b931ae225272 | byte-buddy-dep/src/main/java/net/bytebuddy/matcher/ArrayTypeMatcher.java | byte-buddy-dep/src/main/java/net/bytebuddy/matcher/ArrayTypeMatcher.java | package net.bytebuddy.matcher;
import net.bytebuddy.description.type.TypeDefinition;
/**
* Matches an enumeration type.
*
* @param <T> The type of the matched entity.
*/
public class ArrayTypeMatcher<T extends TypeDefinition> extends ElementMatcher.Junction.AbstractBase<T> {
/**
* {@inheritDoc}
*/
... | package net.bytebuddy.matcher;
import net.bytebuddy.build.HashCodeAndEqualsPlugin;
import net.bytebuddy.description.type.TypeDefinition;
/**
* Matches an enumeration type.
*
* @param <T> The type of the matched entity.
*/
@HashCodeAndEqualsPlugin.Enhance
public class ArrayTypeMatcher<T extends TypeDefinition> ext... | Add newline and add missing enhance annotation. | Add newline and add missing enhance annotation.
| Java | apache-2.0 | raphw/byte-buddy,raphw/byte-buddy,raphw/byte-buddy |
96ebf6f71ab487c138a052e90725630b77390ac9 | gateway/src/test/java/com/continuuity/gateway/router/RouterPathTest.java | gateway/src/test/java/com/continuuity/gateway/router/RouterPathTest.java | package com.continuuity.gateway.router;
import com.continuuity.common.conf.Constants;
import junit.framework.Assert;
import org.junit.Test;
/**
* To test the RouterPathLookup regular expression tests.
*/
public class RouterPathTest {
@Test
public void testRouterFlowPathLookUp() throws Exception {
String f... | package com.continuuity.gateway.router;
import com.continuuity.common.conf.Constants;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
/**
* To test the RouterPathLookup regular expression tests.
*/
public class RouterPathTest {
@Before
public void beforeTests() {
RouterPathL... | Fix broken router path tests | Fix broken router path tests
| Java | apache-2.0 | chtyim/cdap,chtyim/cdap,anthcp/cdap,caskdata/cdap,chtyim/cdap,mpouttuclarke/cdap,hsaputra/cdap,anthcp/cdap,caskdata/cdap,anthcp/cdap,hsaputra/cdap,mpouttuclarke/cdap,mpouttuclarke/cdap,mpouttuclarke/cdap,hsaputra/cdap,hsaputra/cdap,chtyim/cdap,mpouttuclarke/cdap,caskdata/cdap,caskdata/cdap,anthcp/cdap,hsaputra/cdap,cas... |
02872cd5e647d9e005c79ea7c36b3cd64da85df2 | src/foam/lib/json/ExprParser.java | src/foam/lib/json/ExprParser.java | /**
* @license
* Copyright 2017 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
package foam.lib.json;
import foam.lib.parse.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.Map;
public class ExprParser
extends foam.lib.parse.ProxyParser
{
private fin... | /**
* @license
* Copyright 2017 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
package foam.lib.json;
import foam.lib.parse.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.Map;
public class ExprParser
extends foam.lib.parse.ProxyParser
{
private fin... | Make ExpParser also handle dates. | Make ExpParser also handle dates.
| Java | apache-2.0 | foam-framework/foam2,foam-framework/foam2,foam-framework/foam2,foam-framework/foam2,jacksonic/vjlofvhjfgm,jacksonic/vjlofvhjfgm,foam-framework/foam2,jacksonic/vjlofvhjfgm |
2efd4e64b2c4196f06e0a7bd411a16bd0cef28f0 | Presenter/src/test/java/rabbit/RabbitMqConfigTest.java | Presenter/src/test/java/rabbit/RabbitMqConfigTest.java | package rabbit;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
public class RabbitMqConfigTest {
/**
* Retrieve host.
*/
@Test
public void retrieveHost() {
RabbitMqConfig rmqConf = new RabbitMqConfig();
String host = rmqConf.getHost();
assertTrue(host... | package rabbit;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
public class RabbitMqConfigTest {
/**
* Retrieve host.
*/
@Test
public void retrieveHost() {
RabbitMqConfig rmqConf = new RabbitMqConfig();
String host = rmqConf.getHost();
assertTrue(host... | Remove test for getting send queue name in Presenter, there is no need for a send queue. | Remove test for getting send queue name in Presenter, there is no need for a send queue.
| Java | apache-2.0 | IrimieBogdan/DistributedMonitoring,IrimieBogdan/DistributedMonitoring,IrimieBogdan/DistributedMonitoring |
854e11a2869264fc1a34a8855a9f3915da655ae7 | MagicAPI/src/main/java/com/elmakers/mine/bukkit/api/maps/MapController.java | MagicAPI/src/main/java/com/elmakers/mine/bukkit/api/maps/MapController.java | package com.elmakers.mine.bukkit.api.maps;
import org.bukkit.inventory.ItemStack;
import java.util.List;
public interface MapController {
List<URLMap> getAll();
void loadMap(String world, short id, String url, String name, int x, int y, int width, int height, Integer priority);
ItemStack getURLItem(Strin... | package com.elmakers.mine.bukkit.api.maps;
import org.bukkit.inventory.ItemStack;
import java.util.List;
public interface MapController {
List<URLMap> getAll();
void loadMap(String world, short id, String url, String name, int x, int y, int width, int height, Integer priority);
ItemStack getURLItem(Strin... | Add some utility methods to load a map from a URL and get the map id generated | Add some utility methods to load a map from a URL and get the map id generated
| Java | mit | elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicPlugin |
30388ef4558560b2c59f3acb4b405344edce5d82 | server/src/test/java/org/realityforge/replicant/server/ee/RegistryUtil.java | server/src/test/java/org/realityforge/replicant/server/ee/RegistryUtil.java | package org.realityforge.replicant.server.ee;
import javax.annotation.Nonnull;
import javax.naming.Context;
import javax.naming.NamingException;
import javax.transaction.TransactionSynchronizationRegistry;
import org.realityforge.guiceyloops.server.TestInitialContextFactory;
import org.realityforge.guiceyloops.server.... | package org.realityforge.replicant.server.ee;
import javax.annotation.Nonnull;
import javax.naming.Context;
import javax.naming.NamingException;
import javax.naming.spi.NamingManager;
import javax.transaction.TransactionSynchronizationRegistry;
import org.realityforge.guiceyloops.server.TestInitialContextFactory;
impo... | Make sure naming tests work - even when eclipselink naming provider present | Make sure naming tests work - even when eclipselink naming provider present
| Java | apache-2.0 | realityforge/replicant,realityforge/replicant |
f16bddaa1ae2e874f8ac103aa0b217cb22eb2a5e | konashi-android-sdk/src/main/java/com/uxxu/konashi/lib/stores/UartStore.java | konashi-android-sdk/src/main/java/com/uxxu/konashi/lib/stores/UartStore.java | package com.uxxu.konashi.lib.stores;
import com.uxxu.konashi.lib.dispatcher.CharacteristicDispatcher;
import com.uxxu.konashi.lib.dispatcher.UartStoreUpdater;
/**
* Created by e10dokup on 9/20/15.
*/
public class UartStore implements Store {
private byte mUartSetting;
private byte[] mUartBaudrate;
pub... | package com.uxxu.konashi.lib.stores;
import com.uxxu.konashi.lib.dispatcher.CharacteristicDispatcher;
import com.uxxu.konashi.lib.dispatcher.UartStoreUpdater;
/**
* Created by e10dokup on 9/20/15.
*/
public class UartStore implements Store {
private byte mMode;
private byte[] mBaudrate;
public UartSto... | Remove prefix and change from settings to mode | Remove prefix and change from settings to mode
| Java | apache-2.0 | kiryuxxu/konashi-android-sdk,YUKAI/konashi-android-sdk,YUKAI/konashi-android-sdk |
22c9e2538580c03282d38dab0b42968250160288 | azure-client-runtime/src/main/java/com/microsoft/rest/AzureServiceClient.java | azure-client-runtime/src/main/java/com/microsoft/rest/AzureServiceClient.java | /**
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
*/
package com.microsoft.rest;
import com.microsoft.rest.retry.RetryHandler;
import com.microsoft.rest.serializer.AzureJacksonUtils;
import com.micros... | /**
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
*/
package com.microsoft.rest;
import com.microsoft.rest.serializer.AzureJacksonUtils;
import com.squareup.okhttp.OkHttpClient;
import retrofit.Retrof... | Allow customization of retrofit after client is created | Allow customization of retrofit after client is created
| Java | mit | navalev/azure-sdk-for-java,navalev/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,selvasingh/azure-sdk-for-java,Azure/azure-sdk-for-java,navalev/azure-sdk-for-java,selvasingh/azure-sdk-for-java,navalev/azure-sdk-for-java,selvasingh/azure-sdk-for-java,navalev/azure-sdk-for-... |
4509716a95ca16e7121534fa6a4b23f59d57782f | github-android/src/main/java/com/github/mobile/android/GitHubApplication.java | github-android/src/main/java/com/github/mobile/android/GitHubApplication.java | package com.github.mobile.android;
import static java.util.Arrays.asList;
import android.app.Application;
import android.app.Instrumentation;
import android.content.Context;
import android.util.Log;
import com.google.inject.Module;
import java.util.List;
/**
* Main GitHub application
*/
public class GitHubApplica... | package com.github.mobile.android;
import android.app.Application;
import android.app.Instrumentation;
import android.content.Context;
import android.util.Log;
import com.google.inject.Module;
import java.util.List;
/**
* Main GitHub application
*/
public class GitHubApplication extends Application {
private... | Remove unneeded list creation to add single item | Remove unneeded list creation to add single item | Java | apache-2.0 | yummy222/PocketHub,micrologic/PocketHub,erpragatisingh/android-1,kostaskoukouvis/android,danielferecatu/android,mishin/ForkHub,forkhubs/android,KingLiuDao/android,PKRoma/github-android,work4life/PocketHub,karllindmark/PocketHub,generalzou/PocketHub,erpragatisingh/android-1,yytang2012/PocketHub,huangsongyan/PocketHub,Le... |
27b4b852811718cd1ace91cd2df13f422928d862 | src/com/robrua/orianna/type/core/common/GameMap.java | src/com/robrua/orianna/type/core/common/GameMap.java | package com.robrua.orianna.type.core.common;
import java.util.HashMap;
import java.util.Map;
public enum GameMap {
HOWLING_ABYSS(12), SUMMONERS_RIFT(11), SUMMONERS_RIFT_AUTUMN(2), SUMMONERS_RIFT_SUMMER(1), THE_CRYSTAL_SCAR(8), THE_PROVING_GROUNDS(3), TWISTED_TREELINE(10), TWISTED_TREELINE_ORIGINAL(
... | package com.robrua.orianna.type.core.common;
import java.util.HashMap;
import java.util.Map;
public enum GameMap {
BUTCHERS_BRIDGE(14), HOWLING_ABYSS(12), SUMMONERS_RIFT(11), SUMMONERS_RIFT_AUTUMN(2), SUMMONERS_RIFT_SUMMER(1), THE_CRYSTAL_SCAR(8), THE_PROVING_GROUNDS(3), TWISTED_TREELINE(10), TWISTED_TREELI... | Add bildge water event map name | Add bildge water event map name
my app was crashing and it may come in handy later if the event repeats. | Java | mit | sagiyemi/Orianna |
4c8787ba8d68f0e3fc83c38165abc3e1d4981c8c | buffer/src/main/java/io/atomix/catalyst/buffer/util/DirectMemoryAllocator.java | buffer/src/main/java/io/atomix/catalyst/buffer/util/DirectMemoryAllocator.java | /*
* Copyright 2015 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 applicable l... | /*
* Copyright 2015 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 applicable l... | Initialize reallocated unsafe direct memory to 0. | Initialize reallocated unsafe direct memory to 0.
| Java | apache-2.0 | atomix/catalyst,atomix/catalyst |
03c28292936064c32bf92d21a88f5c2bdba3f395 | config-model/src/main/java/com/yahoo/vespa/model/admin/LogserverContainer.java | config-model/src/main/java/com/yahoo/vespa/model/admin/LogserverContainer.java | // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.admin;
import com.yahoo.config.model.api.container.ContainerServiceType;
import com.yahoo.config.model.producer.AbstractConfigProducer;
import com.yahoo.vespa.model.container.C... | // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.admin;
import com.yahoo.config.model.api.container.ContainerServiceType;
import com.yahoo.config.model.producer.AbstractConfigProducer;
import com.yahoo.vespa.model.container.C... | Use regular malloc for logserver-container | Use regular malloc for logserver-container
| 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 |
077fccb7f711d1b80ff75928327e18c0a2af630e | oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/state/PropertyStateImpl.java | oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/state/PropertyStateImpl.java | package org.apache.jackrabbit.oak.jcr.state;
import org.apache.jackrabbit.oak.jcr.json.JsonValue;
import org.apache.jackrabbit.oak.model.AbstractPropertyState;
public class PropertyStateImpl extends AbstractPropertyState {
private final String name;
private final JsonValue value;
public PropertyStateImpl(String name... | package org.apache.jackrabbit.oak.jcr.state;
import org.apache.jackrabbit.oak.jcr.json.JsonValue;
import org.apache.jackrabbit.oak.model.AbstractPropertyState;
public class PropertyStateImpl extends AbstractPropertyState {
private final String name;
private final JsonValue value;
public PropertyStateImpl... | Clean up oak-jcr - formatting | OAK-15: Clean up oak-jcr
- formatting
git-svn-id: 67138be12999c61558c3dd34328380c8e4523e73@1301494 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | anchela/jackrabbit-oak,trekawek/jackrabbit-oak,mreutegg/jackrabbit-oak,anchela/jackrabbit-oak,apache/jackrabbit-oak,amit-jain/jackrabbit-oak,amit-jain/jackrabbit-oak,trekawek/jackrabbit-oak,anchela/jackrabbit-oak,anchela/jackrabbit-oak,mreutegg/jackrabbit-oak,trekawek/jackrabbit-oak,amit-jain/jackrabbit-oak,apache/jack... |
519dd2ce5fc79e59fd66ba3571b52771f69e0415 | rest-common/src/main/java/uk/ac/ebi/quickgo/rest/period/ReducingDailyPeriod.java | rest-common/src/main/java/uk/ac/ebi/quickgo/rest/period/ReducingDailyPeriod.java | package uk.ac.ebi.quickgo.rest.period;
import com.google.common.base.Preconditions;
import java.time.Duration;
import java.time.LocalDateTime;
import java.util.Objects;
import javax.validation.constraints.NotNull;
/**
* An implementation of a {@link Period} which uses two values for {@link DayTime} as start and end ... | package uk.ac.ebi.quickgo.rest.period;
import com.google.common.base.Preconditions;
import java.time.Duration;
import java.time.LocalDateTime;
import java.util.Objects;
import javax.validation.constraints.NotNull;
/**
* An implementation of a {@link Period} which uses two values for {@link DayTime} as start and end ... | Change constructor parameter types from DayTime to DateModifying - as this interface defines the only method we need to call. | Change constructor parameter types from DayTime to DateModifying - as this interface defines the only method we need to call.
| Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
aa38ccc9bd4b1dbd1ebaa5a85ad964b0b98a215b | src/com/rainbof/nyxtools/NyxTools.java | src/com/rainbof/nyxtools/NyxTools.java | package com.rainbof.nyxtools;
import android.content.Context;
public class NyxTools {
private volatile static NyxTools mInstance;
private NyxToolsPersistence persistence;
public static NyxTools getInstance(Context _context) {
if (mInstance == null) {
synchronized (NyxTools.class) {
mInstance = new NyxTo... | package com.rainbof.nyxtools;
import android.content.Context;
import android.util.Log;
import com.rainbof.nyxtools.util.S;
public class NyxTools {
private volatile static NyxTools mInstance;
private NyxToolsPersistence persistence;
public static NyxTools getInstance(Context _context) {
if (mInstance == null) ... | Fix for calling getInstance before ApplicationContext is available | Fix for calling getInstance before ApplicationContext is available | Java | apache-2.0 | rainbof/nyxtools |
6a8b4fcfb0fdb86d04c01616ef9baa49661e5bc3 | Minter/src/main/java/com/hida/dao/UsedSettingDao.java | Minter/src/main/java/com/hida/dao/UsedSettingDao.java | package com.hida.dao;
import com.hida.model.Setting;
import com.hida.model.TokenType;
import java.util.List;
/**
*
* @author lruffin
*/
public interface SettingDao {
public void save(Setting setting);
public void deleteSetting(Setting setting);
public List<Setting> findAllSettings();
public Set... | package com.hida.dao;
import com.hida.model.TokenType;
import com.hida.model.UsedSetting;
import java.util.List;
/**
*
* @author lruffin
*/
public interface UsedSettingDao {
public void save(UsedSetting setting);
public void deleteSetting(UsedSetting setting);
public UsedSetting findUsedSetti... | Replace Setting import for UsedSetting import | Replace Setting import for UsedSetting import
In addition to replacing the Setting import, all instances of
Setting are replaced with UsedSetting. Spacing was also added.
| Java | apache-2.0 | HawaiiStateDigitalArchives/PID-webservice,HawaiiStateDigitalArchives/PID-webservice,Khyzad/PID-webservice,Khyzad/PID-webservice |
21477e9ee55f3ac539183f3a972928fc31b912c5 | RookServer/src/com/slickjava/rook/Server.java | RookServer/src/com/slickjava/rook/Server.java | package com.slickjava.rook;
import com.slickjava.rook.map.Map;
import com.slickjava.rook.map.tile.TileManager;
import com.slickjava.rook.net.MainServer;
import com.slickjava.rook.player.PlayerManager;
public class Server {
public static int port = 4444;
public static final double ROOK_VERSION = 0.1;
p... | package com.slickjava.rook;
import com.slickjava.rook.map.Map;
import com.slickjava.rook.map.tile.TileManager;
import com.slickjava.rook.net.MainServer;
import com.slickjava.rook.player.PlayerManager;
public class Server {
public static int port = 4444;
public static final double ROOK_VERSION = 0.1;
p... | Test commit from codeenvy IDE... PREPARE FOR CODING FROM SCHOOL! | Test commit from codeenvy IDE... PREPARE FOR CODING FROM SCHOOL!
| Java | mit | SlickJava/Rook |
214fc4a52f1ff774705ebc408bc144d0cf6c1c7c | src/main/java/seedu/address/logic/parser/CliSyntax.java | src/main/java/seedu/address/logic/parser/CliSyntax.java | package seedu.address.logic.parser;
import java.util.regex.Pattern;
import seedu.address.logic.parser.ArgumentTokenizer.Prefix;
/**
* Contains Command Line Interface (CLI) syntax definitions common to multiple commands
*/
public class CliSyntax {
/* Prefix definitions */
public static final Prefix PREFIX_... | package seedu.address.logic.parser;
import java.util.regex.Pattern;
import seedu.address.logic.parser.ArgumentTokenizer.Prefix;
/**
* Contains Command Line Interface (CLI) syntax definitions common to multiple commands
*/
public class CliSyntax {
/* Prefix definitions */
public static final Prefix PREFIX_... | Add more patterns for future use | [Parser] Add more patterns for future use
| Java | mit | CS2103JAN2017-W10-B1/main,CS2103JAN2017-W10-B1/main |
3513f49df275866ecf71be8defd581707cf67dc0 | src/test/java/org/utplsql/cli/DataSourceProviderIT.java | src/test/java/org/utplsql/cli/DataSourceProviderIT.java | package org.utplsql.cli;
import org.junit.jupiter.api.Test;
import org.utplsql.cli.datasource.TestedDataSourceProvider;
import javax.sql.DataSource;
import java.io.IOException;
import java.sql.SQLException;
import static org.junit.jupiter.api.Assertions.assertNotNull;
public class DataSourceProviderIT {
@Test
... | package org.utplsql.cli;
import org.junit.jupiter.api.Test;
import org.utplsql.cli.datasource.TestedDataSourceProvider;
import javax.sql.DataSource;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import static org.ju... | Test to parse/set NLS_LANG correctly | Test to parse/set NLS_LANG correctly
| Java | apache-2.0 | utPLSQL/utPLSQL-cli,utPLSQL/utPLSQL-cli |
456a904063fc9296399956ce39c1f28f033460ad | utils/RandomPass.java | utils/RandomPass.java | //
// RandomPass.java
//
/** Generates a random 8-character password. */
public class RandomPass {
private static final int PASS_LEN = 8;
private static final char MIN_CHAR = '!';
private static final char MAX_CHAR = '~';
public static void main(String[] args) {
StringBuffer sb = new StringBuffer(PASS_LE... | //
// RandomPass.java
//
/** Generates a random 8-character password. */
public class RandomPass {
private static final int PASS_LEN = 8;
private static final char MIN_CHAR = '!';
private static final char MAX_CHAR = '~';
public static void main(String[] args) {
int passLen = PASS_LEN;
if (args.lengt... | Allow command line parameter to override default number of characters. | Allow command line parameter to override default number of characters.
| Java | bsd-2-clause | scifio/scifio |
7243b544b54b8f00bb96009acda8d5c5ef551467 | neanderthal-sample/src/main/java/au/com/outware/neanderthalsample/Configuration.java | neanderthal-sample/src/main/java/au/com/outware/neanderthalsample/Configuration.java | package au.com.outware.neanderthalsample;
import com.google.gson.annotations.SerializedName;
/**
* @author timmutton
*/
public class Configuration {
// Private fields are ignored by Neanderthal
private String _id;
// Neanderthal supports the serialized name attribute from GSON
@SerializedName("Base ... | package au.com.outware.neanderthalsample;
import com.google.gson.annotations.SerializedName;
/**
* @author timmutton
*/
public class Configuration {
// Private fields are ignored by Neanderthal
private String _id;
// Neanderthal supports the serialized name attribute from GSON
@SerializedName("Base ... | Update sample to show how to change default values | Update sample to show how to change default values
| Java | mit | outware/neanderthal,outware/neanderthal |
6c09153ab266d1f7227e2fed58b8989a0b742489 | scenario/src/main/java/gov/nasa/arc/mct/scenario/component/TagRepositoryComponent.java | scenario/src/main/java/gov/nasa/arc/mct/scenario/component/TagRepositoryComponent.java | package gov.nasa.arc.mct.scenario.component;
import gov.nasa.arc.mct.components.AbstractComponent;
public class TagRepositoryComponent extends AbstractComponent implements RepositoryCapability {
private String scope;
@Override
public Class<?> getCapabilityClass() {
return TagComponent.class;
}
@Override
pu... | package gov.nasa.arc.mct.scenario.component;
import gov.nasa.arc.mct.components.AbstractComponent;
import gov.nasa.arc.mct.components.JAXBModelStatePersistence;
import gov.nasa.arc.mct.components.ModelStatePersistence;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
i... | Add persistence support to tag repository | [Scenario] Add persistence support to tag repository
| Java | apache-2.0 | nasa/MCT-Plugins |
caad3d57e2796ab8ef453de34c66ba6afc222310 | web/src/main/java/org/springframework/security/web/csrf/MissingCsrfTokenException.java | web/src/main/java/org/springframework/security/web/csrf/MissingCsrfTokenException.java | /*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | /*
* Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Improve log message when no CSRF token found | Improve log message when no CSRF token found
Closes gh-10436
| Java | apache-2.0 | spring-projects/spring-security,spring-projects/spring-security,spring-projects/spring-security,rwinch/spring-security,spring-projects/spring-security,rwinch/spring-security,rwinch/spring-security,spring-projects/spring-security,spring-projects/spring-security,rwinch/spring-security,rwinch/spring-security,spring-projec... |
af28b26d906cc51fc5e592e7b77df997efd6062f | Java/Crypto/src/main/java/com/breadwallet/crypto/blockchaindb/apis/brd/EthBlockApi.java | Java/Crypto/src/main/java/com/breadwallet/crypto/blockchaindb/apis/brd/EthBlockApi.java | /*
* Created by Michael Carrara <michael.carrara@breadwallet.com> on 7/1/19.
* Copyright (c) 2019 Breadwinner AG. All right reserved.
*
* See the LICENSE file at the project root for license information.
* See the CONTRIBUTORS file at the project root for a list of contributors.
*/
package com.breadwallet.crypto.... | /*
* Created by Michael Carrara <michael.carrara@breadwallet.com> on 7/1/19.
* Copyright (c) 2019 Breadwinner AG. All right reserved.
*
* See the LICENSE file at the project root for license information.
* See the CONTRIBUTORS file at the project root for a list of contributors.
*/
package com.breadwallet.crypto.... | Update Java handling of eth_blockNumber RPC result | CORE-601: Update Java handling of eth_blockNumber RPC result
| Java | mit | breadwallet/breadwallet-core,breadwallet/breadwallet-core,breadwallet/breadwallet-core,breadwallet/breadwallet-core,breadwallet/breadwallet-core,breadwallet/breadwallet-core |
91752c6a64cee16dd6e2c891b53662923ed19213 | library/src/main/java/com/novoda/downloadmanager/MigrationStatusNotificationCreator.java | library/src/main/java/com/novoda/downloadmanager/MigrationStatusNotificationCreator.java | package com.novoda.downloadmanager;
import android.app.Notification;
import android.content.Context;
import android.support.v4.app.NotificationCompat;
class MigrationStatusNotificationCreator implements NotificationCreator<MigrationStatus> {
private final Context applicationContext;
private final Notificatio... | package com.novoda.downloadmanager;
import android.app.Notification;
import android.content.Context;
import android.support.v4.app.NotificationCompat;
class MigrationStatusNotificationCreator implements NotificationCreator<MigrationStatus> {
private final Context applicationContext;
private final Notificatio... | Use migrationJob identifier hashcode as notification identifier. | Use migrationJob identifier hashcode as notification identifier.
| Java | apache-2.0 | novoda/download-manager |
4a7c2d790a6bf8fadd5e0705c2da1ae54e278979 | therapi-runtime-javadoc/src/main/java/com/github/therapi/runtimejavadoc/BaseJavadoc.java | therapi-runtime-javadoc/src/main/java/com/github/therapi/runtimejavadoc/BaseJavadoc.java | package com.github.therapi.runtimejavadoc;
import java.util.List;
public abstract class BaseJavadoc {
private final String name;
private final Comment comment;
private final List<SeeAlsoJavadoc> seeAlso;
private final List<OtherJavadoc> other;
BaseJavadoc(String name, Comment comment, List<SeeAl... | package com.github.therapi.runtimejavadoc;
import java.util.List;
import static com.github.therapi.runtimejavadoc.internal.RuntimeJavadocHelper.unmodifiableDefensiveCopy;
public abstract class BaseJavadoc {
private final String name;
private final Comment comment;
private final List<SeeAlsoJavadoc> seeA... | Make defensive copies of the "see also" and "other" lists | Make defensive copies of the "see also" and "other" lists
| Java | apache-2.0 | dnault/therapi-runtime-javadoc |
e677c5f3f337862ed66216c314839b821a03c7ad | guice/hibernate/src/test/java/com/peterphi/std/guice/hibernate/webquery/WebQueryTest.java | guice/hibernate/src/test/java/com/peterphi/std/guice/hibernate/webquery/WebQueryTest.java | package com.peterphi.std.guice.hibernate.webquery;
import com.peterphi.std.guice.restclient.jaxb.webquery.WebQuery;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class WebQueryTest
{
@Test
public void testEncodeResultStable()
{
WebQuery query = new WebQuery()
.o... | package com.peterphi.std.guice.hibernate.webquery;
import com.peterphi.std.guice.restclient.jaxb.webquery.WebQuery;
import org.jboss.resteasy.spi.ResteasyUriInfo;
import org.junit.Test;
import java.net.URI;
import static org.junit.Assert.assertEquals;
public class WebQueryTest
{
@Test
public void testEncodeResult... | Add failing unit test to detect cases where setting _log_sql in a Query String results in the decoded WebQuery having expand set to a different value (the same value as _log_sql) due to case fallthrough | Add failing unit test to detect cases where setting _log_sql in a Query String results in the decoded WebQuery having expand set to a different value (the same value as _log_sql) due to case fallthrough
| Java | mit | petergeneric/stdlib,petergeneric/stdlib,petergeneric/stdlib |
929e8d04dfc9a728a86c122421e1a200564bf8dc | src/test/java/pt/fccn/arquivo/tests/TestArcproxy.java | src/test/java/pt/fccn/arquivo/tests/TestArcproxy.java | package pt.fccn.arquivo.tests;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import pt.fccn.arquivo.pages.Arcproxyinspection;
import pt.fccn.arquivo.pages.IndexPage;
import pt.fccn.saw.selenium.WebDriverTestBaseParalell;
import pt.fccn.saw.selenium.Retry;
/**
* @author nutchwax
... | package pt.fccn.arquivo.tests;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import pt.fccn.arquivo.pages.Arcproxyinspection;
import pt.fccn.arquivo.pages.IndexPage;
import pt.fccn.saw.selenium.WebDriverTestBaseParalell;
import pt.fccn.saw.selenium.Retry;
public class TestArcproxy ext... | Improve code style on test arc proxy | Improve code style on test arc proxy
| Java | apache-2.0 | arquivo/functional-tests,arquivo/functional-tests |
52c56a93a527f3f74e3cf6175b3b33ba8c673eba | dtdinst/src/com/thaiopensource/xml/dtd/app/Driver.java | dtdinst/src/com/thaiopensource/xml/dtd/app/Driver.java | package com.thaiopensource.xml.dtd.app;
import java.io.IOException;
import java.io.BufferedWriter;
import java.io.OutputStreamWriter;
import com.thaiopensource.xml.out.CharRepertoire;
import com.thaiopensource.xml.out.XmlWriter;
import com.thaiopensource.xml.util.EncodingMap;
import com.thaiopensource.xml.dtd.om.DtdP... | package com.thaiopensource.xml.dtd.app;
import java.io.IOException;
import java.io.BufferedWriter;
import java.io.OutputStreamWriter;
import com.thaiopensource.xml.out.CharRepertoire;
import com.thaiopensource.xml.out.XmlWriter;
import com.thaiopensource.xml.util.EncodingMap;
import com.thaiopensource.xml.dtd.om.DtdP... | Call RelaxNgWriter as a temporary hack. | Call RelaxNgWriter as a temporary hack.
git-svn-id: ca8e9bb6f3f9b50a093b443c23951d3c25ca0913@283 369101cc-9a96-11dd-8e58-870c635edf7a
| Java | bsd-3-clause | vandenoever/jing,vandenoever/jing,vandenoever/jing |
71380b0b2846911fedda56f8960b87ee770ef589 | hawtio-git/src/test/java/io/hawt/git/GitCloneTest.java | hawtio-git/src/test/java/io/hawt/git/GitCloneTest.java | package io.hawt.git;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static io.hawt.git.GitFacadeTest.assertConfigDirectoryExists;
import static io.hawt.git.GitFacadeTest.assertFileContents;
import static io.hawt.git.GitFacadeTest.createTestGitFacade;
/**
* Tests we can clone a remote... | package io.hawt.git;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import static io.hawt.git.GitFacadeTest.assertConfigDirectoryExists;
import static io.hawt.git.GitFacadeTest.assertFileContents;
import static io.hawt.git.GitFacadeTest.createTestGitFacade;
/**
* Te... | Revert "Revert "Ignore test that causes CI to fail on Java 7 - works locally."" | Revert "Revert "Ignore test that causes CI to fail on Java 7 - works locally.""
This reverts commit 5d60bef3afd33f35a9789015a761f16e58c5cc4e.
| Java | apache-2.0 | tadayosi/hawtio,skarsaune/hawtio,tadayosi/hawtio,tadayosi/hawtio,hawtio/hawtio,tadayosi/hawtio,hawtio/hawtio,tadayosi/hawtio,skarsaune/hawtio,skarsaune/hawtio,skarsaune/hawtio,hawtio/hawtio,hawtio/hawtio,skarsaune/hawtio,hawtio/hawtio |
0ee5406a16d29936a97689635183d3e4dcb9095b | src/org/robockets/robotswitcher/Switcher.java | src/org/robockets/robotswitcher/Switcher.java | package org.robockets.robotswitcher;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
public class Switcher {
public int getRobot(){
int currentRobot = SmartDashboard.getInt("RobotNumber");
return currentRobot;
}
public void setRobotNumber(int robotNumber){
}
}
| package org.robockets.robotswitcher;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
public class Switcher {
@SuppressWarnings("deprecation")
public int getRobot(){
int currentRobot = SmartDashboard.getInt("RobotNumber");
return currentRobot;
}
public void initRobotNumber(){
SmartDashboard.p... | Add temporary way of creating the smart dash input | Add temporary way of creating the smart dash input
| Java | mit | Team4761/RobotSwitcher,Team4761/Robot-Switcher |
3facddbe32a8abd4fcb42c5c07bbc0a3e746e81b | controller/PlayerEndLevelCtrl.java | controller/PlayerEndLevelCtrl.java | package controller;
import javax.swing.JOptionPane;
import model.PlayerModel;
import boundary.PlayerApplication;
import boundary.PlayerEndLevelView;
public class PlayerEndLevelCtrl {
PlayerApplication app;
PlayerModel model;
public PlayerEndLevelCtrl(PlayerApplication app, PlayerModel model) {
this.app = app... | package controller;
import javax.swing.JOptionPane;
import model.PlayerModel;
import boundary.PlayerApplication;
import boundary.PlayerEndLevelView;
public class PlayerEndLevelCtrl {
PlayerApplication app;
PlayerModel model;
public PlayerEndLevelCtrl(PlayerApplication app, PlayerModel model) {
this.app = app... | Add appropriate message to the end level message | Add appropriate message to the end level message
| Java | mit | mvit/sixes-wild |
13d499e3ac50054a25d6b3ff08cfb4ef0d64e511 | omni-cx2x/src/cx2x/translator/common/ClawConstant.java | omni-cx2x/src/cx2x/translator/common/ClawConstant.java | /*
* This file is released under terms of BSD license
* See LICENSE file for more information
*/
package cx2x.translator.common;
/**
* Contains common constants values of the CLAW XcodeML to XcodeML translator
*
* @author clementval
*/
public class ClawConstant {
public static final String EMPTY_STRING = "... | /*
* This file is released under terms of BSD license
* See LICENSE file for more information
*/
package cx2x.translator.common;
/**
* Contains common constants values of the CLAW XcodeML to XcodeML translator
*
* @author clementval
*/
public class ClawConstant {
public static final String EMPTY_STRING = "... | Add OpenACC prefix length constant | Add OpenACC prefix length constant
| Java | bsd-2-clause | clementval/claw-compiler,clementval/claw-compiler |
4607456e8a35b1e9220367008cad583f7d9899ce | src/main/java/com/awesometickets/config/CORSFilter.java | src/main/java/com/awesometickets/config/CORSFilter.java | package com.awesometickets.config;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRespon... | package com.awesometickets.config;
import com.awesometickets.web.controller.CinemaController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
im... | Update CROS fileter: allow only a few origins | Update CROS fileter: allow only a few origins
| Java | mit | AwesomeTickets/Tickets-Server,AwesomeTickets/Tickets-Server,AwesomeTickets/Tickets-Server |
45c2ac1733d352548b08cb9bbdbaecb4310b639f | src/main/java/yanagishima/filter/YanagishimaFilter.java | src/main/java/yanagishima/filter/YanagishimaFilter.java | package yanagishima.filter;
import javax.servlet.*;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class YanagishimaFilter implements Filter {
@Override
public void init(FilterConfig filterConfig) throws ServletException {
}
@Override
public void doFilter(Servl... | package yanagishima.filter;
import yanagishima.util.Constants;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class YanagishimaFilter implements Filter {
@Override
public void init(FilterConfig filterConf... | Revert "set Access-Control-Allow-Headers to *" | Revert "set Access-Control-Allow-Headers to *"
This reverts commit dbe2d8f7c94d62587651a393743c513540311685.
| Java | apache-2.0 | yanagishima/yanagishima,yanagishima/yanagishima,yanagishima/yanagishima,yanagishima/yanagishima |
a4c7d804b817cc6a7321278286ab85624a007e04 | test/com/karateca/jstoolbox/dashcamel/CaseHelperTest.java | test/com/karateca/jstoolbox/dashcamel/CaseHelperTest.java | package com.karateca.jstoolbox.dashcamel;
import org.junit.Test;
import static org.junit.Assert.*;
public class CaseHelperTest {
@Test
public void shouldTransformToCamelCase() {
assertEquals("oneTwoThree", CaseHelper.toCamelCase("one-two-three"));
assertEquals("one", CaseHelper.toCamelCase("one"));
}
... | package com.karateca.jstoolbox.dashcamel;
import org.junit.Test;
import static org.junit.Assert.*;
public class CaseHelperTest {
@Test
public void shouldTransformToCamelCase() {
assertEquals("oneTwoThree", CaseHelper.toCamelCase("one-two-three"));
assertEquals("one", CaseHelper.toCamelCase("one"));
a... | Add test for dash case | Add test for dash case
| Java | mit | andresdominguez/jsToolbox,andresdominguez/jsToolbox |
5fd5288df9f83dc26ac902e114555ce48d518d10 | src/com/haxademic/core/data/ConvertUtil.java | src/com/haxademic/core/data/ConvertUtil.java | package com.haxademic.core.data;
public class ConvertUtil {
// from string
public static int stringToInt( String str ) {
return Integer.parseInt( str );
}
public static float stringToFloat( String str ) {
return Float.valueOf( str );
}
public static boolean stringToBoolean( String bool ) {
return (b... | package com.haxademic.core.data;
public class ConvertUtil {
// from string
public static int stringToInt( String str ) {
return Integer.parseInt( str );
}
public static float stringToFloat( String str ) {
return Float.valueOf( str );
}
public static boolean stringToBoolean( String bool ) {
return (b... | Add byte <-> int conversion methods | Add byte <-> int conversion methods
| Java | mit | cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic |
906bb7e1846f047c31dea627a46e0436c675e086 | src/main/java/water/api/GBMProgressPage.java | src/main/java/water/api/GBMProgressPage.java | package water.api;
import hex.gbm.GBM.GBMModel;
import water.*;
import com.google.gson.JsonObject;
public class GBMProgressPage extends Progress2 {
/** Return {@link Response} for finished job. */
@Override protected Response jobDone(final Job job, final String dst) {
JsonObject args = new JsonObject();
... | package water.api;
import hex.gbm.GBM.GBMModel;
import water.*;
import com.google.gson.JsonObject;
public class GBMProgressPage extends Progress2 {
/** Return {@link Response} for finished job. */
@Override protected Response jobDone(final Job job, final String dst) {
JsonObject args = new JsonObject();
... | Clean up gbm progress page | Clean up gbm progress page
| Java | apache-2.0 | 111t8e/h2o-2,100star/h2o,111t8e/h2o-2,elkingtonmcb/h2o-2,calvingit21/h2o-2,h2oai/h2o,h2oai/h2o-2,calvingit21/h2o-2,elkingtonmcb/h2o-2,111t8e/h2o-2,calvingit21/h2o-2,eg-zhang/h2o-2,h2oai/h2o,100star/h2o,100star/h2o,h2oai/h2o-2,elkingtonmcb/h2o-2,vbelakov/h2o,calvingit21/h2o-2,100star/h2o,vbelakov/h2o,h2oai/h2o,h2oai/h2o... |
10d170fa4b12345c2450bb3d83f92c2abc0eab3c | app/src/main/java/org/zeropage/apps/zeropage/database/notification/NotificationHistory.java | app/src/main/java/org/zeropage/apps/zeropage/database/notification/NotificationHistory.java | package org.zeropage.apps.zeropage.database.notification;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import org.zeropage.apps.zeropage.notification.Notification;
import java.util.ArrayList;
import java.util.List... | package org.zeropage.apps.zeropage.database.notification;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import org.zeropage.apps.zeropage.notification.Notification;
import java.util.ArrayList;
import java.util.List... | Add Helper singleton class for querying/adding notification to db. | Add Helper singleton class for querying/adding notification to db.
| Java | mit | ZeroPage/i_have_no_apps |
4ad3b97fcc8ee3476a910d0a891eb66b069f2843 | addressbook-web-tests/src/test/java/kurs/zadania/adressbook/appmanager/NavigationHelper.java | addressbook-web-tests/src/test/java/kurs/zadania/adressbook/appmanager/NavigationHelper.java | package kurs.zadania.adressbook.appmanager;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class NavigationHelper extends HelperBase{
public NavigationHelper(WebDriver wd) {
super(wd);
}
public void gotoGroupPage() {
clic... | package kurs.zadania.adressbook.appmanager;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class NavigationHelper extends HelperBase{
public NavigationHelper(WebDriver wd) {
super(wd);
}
// public void gotoGroupPage() { click(By... | Revert "Revert "optimization of the transition between the pages"" | Revert "Revert "optimization of the transition between the pages""
This reverts commit 44036d92de46456ee2269111275684c0e518e115.
| Java | apache-2.0 | wozniakpiotr/java_training,wozniakpiotr/java_training,wozniakpiotr/java_training |
2149d2e677894f5ead55bdf63f2dc36bf20540cc | src/algorithms/NNLookupFactory.java | src/algorithms/NNLookupFactory.java | package algorithms;
import graphrep.GraphRep;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class NNLookupFactory extends GraphAlgorithmFactory {
public NNLookupFactory(GraphRep graph) {
super(graph);
}
@Override
public List<Map<String, Object>> getPointConstraints() {
retur... | package algorithms;
import graphrep.GraphRep;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class NNLookupFactory extends GraphAlgorithmFactory {
public NNLookupFactory(GraphRep graph) {
super(graph);
}
@Override
public List<Map<String, Object>> getPointConstraints() {
retur... | Add sourceIsTarget for Android client to work | Add sourceIsTarget for Android client to work
| Java | apache-2.0 | ToureNPlaner/tourenplaner-server,ToureNPlaner/tourenplaner-server,ToureNPlaner/tourenplaner-server,ToureNPlaner/tourenplaner-server |
207e45fbfaa98a8588fd0e579767d86664c0ccc8 | src/main/java/ml/duncte123/skybot/utils/ConfigUtils.java | src/main/java/ml/duncte123/skybot/utils/ConfigUtils.java | package ml.duncte123.skybot.utils;
import ml.duncte123.skybot.config.Config;
import ml.duncte123.skybot.config.ConfigLoader;
import org.slf4j.event.Level;
import java.io.File;
public class ConfigUtils {
private static Config config;
public ConfigUtils() {
try {
config = ConfigLoader.ge... | package ml.duncte123.skybot.utils;
import ml.duncte123.skybot.config.Config;
import ml.duncte123.skybot.config.ConfigLoader;
import org.slf4j.event.Level;
import java.io.File;
public class ConfigUtils {
private static Config config;
public ConfigUtils() {
try {
config = ConfigLoader.get... | Add log for loading config | Add log for loading config
| Java | agpl-3.0 | duncte123/SkyBot,duncte123/SkyBot,duncte123/SkyBot,duncte123/SkyBot |
d35f3b0cc58e6ccdf7b401e01ee8994cb07f0f94 | src/database/DatabaseConnector.java | src/database/DatabaseConnector.java | package database;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
/**
* Connect to SQL Server database using ConnectionCredentials object.
*/
public class DatabaseConnector {
private String connectionUrl = "";
private ConnectionCredentials credentials;
/**
... | package database;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
/**
* Connect to SQL Server database using ConnectionCredentials object.
*/
public class DatabaseConnector {
private String connectionUrl = "";
private ConnectionCredentials credentials;
/**
... | Throw SQLException and ClassNotFoundException from getJdbcConnection method | Throw SQLException and ClassNotFoundException from getJdbcConnection method
| Java | apache-2.0 | Phrancis/PsychoProductionsAdminClient |
24d988e0d7f3d7d78649ce487c3c353f8ca7d7d6 | plugins/src/kg/apc/jmeter/modifiers/AnchorModifierGui.java | plugins/src/kg/apc/jmeter/modifiers/AnchorModifierGui.java | package kg.apc.jmeter.modifiers;
import java.awt.BorderLayout;
import kg.apc.jmeter.JMeterPluginsUtils;
import org.apache.jmeter.processor.gui.AbstractPreProcessorGui;
import org.apache.jmeter.testelement.TestElement;
public class AnchorModifierGui extends AbstractPreProcessorGui {
private static final String WI... | package kg.apc.jmeter.modifiers;
import java.awt.BorderLayout;
import kg.apc.jmeter.JMeterPluginsUtils;
import org.apache.jmeter.processor.gui.AbstractPreProcessorGui;
import org.apache.jmeter.testelement.TestElement;
public class AnchorModifierGui extends AbstractPreProcessorGui {
private static final String WI... | Fix help link not displayed | Fix help link not displayed
| Java | apache-2.0 | Sausageo/jmeter-plugins,ptrd/jmeter-plugins,ptrd/jmeter-plugins,ptrd/jmeter-plugins,Sausageo/jmeter-plugins,Sausageo/jmeter-plugins,ptrd/jmeter-plugins,Sausageo/jmeter-plugins,ptrd/jmeter-plugins,Sausageo/jmeter-plugins |
9325258dc39f31f864675c20a7cbc575e2451485 | core/src/forplay/core/Platform.java | core/src/forplay/core/Platform.java | /**
* Copyright 2010 The ForPlay Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | /**
* Copyright 2010 The ForPlay Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | Remove useless comment about returning a null mouse. Access mouse through ForPlay.mouse(). | Remove useless comment about returning a null mouse. Access mouse through ForPlay.mouse().
| Java | apache-2.0 | ruslansennov/playn,Just-/playn,threerings/playn,threerings/playn,Just-/playn,KoriSamui/PlayN,forplay/forplay,KoriSamui/PlayN,Just-/playn,threerings/playn,KoriSamui/PlayN,threerings/playn,KoriSamui/PlayN,Just-/playn,ruslansennov/playn,forplay/forplay,Just-/playn,ruslansennov/playn |
b1a3412e78ed1267a4a2dd5a06b273e05848dc3b | fliptheswitch-app/src/main/java/com/github/michaelengland/fliptheswitch/app/FeaturesActivity.java | fliptheswitch-app/src/main/java/com/github/michaelengland/fliptheswitch/app/FeaturesActivity.java | package com.github.michaelengland.fliptheswitch.app;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import com.github.michaelengland.fliptheswitch.Feature;
import com.github.michaelengland.fliptheswitch... | package com.github.michaelengland.fliptheswitch.app;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import com.github.michaelengland.fliptheswitch.Feature;
import com.github.michaelengland.fliptheswitch... | Fix bug with features not appearing when feature app loaded before main app | Fix bug with features not appearing when feature app loaded before main app
- Trigger class initialization of generated features file before showing features app | Java | apache-2.0 | michaelengland/FlipTheSwitch-Android,michaelengland/FlipTheSwitch-Android |
792d2fcfa8afef4daea87cd8a405a4fccd604534 | core/src/forplay/core/Platform.java | core/src/forplay/core/Platform.java | /**
* Copyright 2010 The ForPlay Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | /**
* Copyright 2010 The ForPlay Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | Remove useless comment about returning a null mouse. Access mouse through ForPlay.mouse(). | Remove useless comment about returning a null mouse. Access mouse through ForPlay.mouse().
git-svn-id: 53b953c7be2d47dd5cb9b5c1ab101a1158da7762@77 a6a9a2b1-fcd7-f629-9329-86f1cfbb9621
| Java | apache-2.0 | pyricau/forplay-clone-pyricau,pyricau/forplay-clone-pyricau,pyricau/forplay-clone-pyricau |
e5dc5ea7f03aed3022c0b932c9a76b7cb917d71c | BaragonAgentService/src/main/java/com/hubspot/baragon/agent/handlebars/IfContainedInHelperSource.java | BaragonAgentService/src/main/java/com/hubspot/baragon/agent/handlebars/IfContainedInHelperSource.java | package com.hubspot.baragon.agent.handlebars;
import java.io.IOException;
import java.util.List;
import java.util.Objects;
import com.github.jknack.handlebars.Options;
public class IfContainedInHelperSource {
public static CharSequence ifContainedIn(List<String> haystack, String needle, Options options) throws IO... | package com.hubspot.baragon.agent.handlebars;
import java.io.IOException;
import java.util.Collection;
import java.util.Objects;
import com.github.jknack.handlebars.Options;
public class IfContainedInHelperSource {
public static CharSequence ifContainedIn(Collection<String> haystack, String needle, Options option... | Make haystack parameter more generic. | Make haystack parameter more generic.
| Java | apache-2.0 | HubSpot/Baragon,HubSpot/Baragon,HubSpot/Baragon |
50506b7dc234f30419e04632f464fa04fa28cc92 | src/shogun2-core/shogun2-service/src/main/java/de/terrestris/shogun2/service/AbstractCrudService.java | src/shogun2-core/shogun2-service/src/main/java/de/terrestris/shogun2/service/AbstractCrudService.java | package de.terrestris.shogun2.service;
import java.util.List;
import org.springframework.transaction.annotation.Transactional;
import de.terrestris.shogun2.model.PersistentObject;
/**
* This abstract service class provides basic CRUD functionality.
*
* @author Nils Bühner
* @see AbstractDaoService
*
*/
publ... | package de.terrestris.shogun2.service;
import java.util.List;
import org.springframework.transaction.annotation.Transactional;
import de.terrestris.shogun2.model.PersistentObject;
/**
* This abstract service class provides basic CRUD functionality.
*
* @author Nils Bühner
* @see AbstractDaoService
*
*/
publ... | Add transactional annotation to delete method. | Add transactional annotation to delete method.
The delete method has to be readOnly=false, otherwise the entities won't be deleted.
| Java | apache-2.0 | dnlkoch/shogun2,annarieger/shogun2,ahennr/shogun2,dnlkoch/shogun2,terrestris/shogun2,buehner/shogun2,dnlkoch/shogun2,marcjansen/shogun2,annarieger/shogun2,terrestris/shogun2,marcjansen/shogun2,ahennr/shogun2,annarieger/shogun2,buehner/shogun2,marcjansen/shogun2,terrestris/shogun2,buehner/shogun2,ahennr/shogun2 |
bad919284839ce2eede4dd77604aba6e23862ba6 | tool-parent/tool-core/src/main/java/com/speedment/tool/core/internal/toolbar/DefaultToolbarItems.java | tool-parent/tool-core/src/main/java/com/speedment/tool/core/internal/toolbar/DefaultToolbarItems.java | package com.speedment.tool.core.internal.toolbar;
import com.speedment.common.injector.annotation.ExecuteBefore;
import com.speedment.common.injector.annotation.InjectKey;
import com.speedment.common.injector.annotation.WithState;
import com.speedment.tool.core.component.UserInterfaceComponent;
import com.speedment.to... | package com.speedment.tool.core.internal.toolbar;
import com.speedment.common.injector.annotation.ExecuteBefore;
import com.speedment.common.injector.annotation.InjectKey;
import com.speedment.common.injector.annotation.WithState;
import com.speedment.tool.core.component.UserInterfaceComponent;
import com.speedment.to... | Change the order of the progress bar and the brand icon | tool-core: Change the order of the progress bar and the brand icon
| Java | apache-2.0 | speedment/speedment,speedment/speedment |
2f99231b7e9b5ea495e52665faba807b1d2a09a4 | src/sqlancer/common/DBMSCommon.java | src/sqlancer/common/DBMSCommon.java | package sqlancer.common;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public final class DBMSCommon {
private static final Pattern sqlancerIndexPattern = Pattern.compile("^i\\d+");
private DBMSCommon() {
}
public static String createTableName(int nr) {
return String.forma... | package sqlancer.common;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public final class DBMSCommon {
private static final Pattern SQLANCER_INDEX_PATTERN = Pattern.compile("^i\\d+");
private DBMSCommon() {
}
public static String createTableName(int nr) {
return String.for... | Use Java naming conventions for constants | Use Java naming conventions for constants
| Java | mit | sqlancer/sqlancer,sqlancer/sqlancer |
9d976a81714f7fcf8972cc1a7922d77709b231ab | sorting/SelectionSort.java | sorting/SelectionSort.java | import java.util.Arrays;
public class SelectionSort {
public int[] selection_sort(int[] arr) {
int min, temp;
for (int i = 0; i < arr.length; i++) {
min = i;
for (int j = i+1; j < arr.length; j++) {
if (arr[j] < arr[min]) {
min = j;
}
}
if (min != i) {
temp = arr[i];
arr[i] = a... | import java.util.Arrays;
public class SelectionSort {
/**
* Selection Sort is an in-place comparison sort.
* It has O(n^2) time complexity.
*/
public int[] selection_sort(int[] arr) {
int min, temp;
/* find the min element in the unsorted array */
for (int i = 0; i < arr.length; i++) {
/*... | Add docs to Selection Sort | Add docs to Selection Sort
| Java | mit | CreaturePhil/Algorithms |
b2e0cfe1f877507295abc574b128a0ccfe5d7f2b | annotation-rest/src/main/java/uk/ac/ebi/quickgo/annotation/download/converter/helpers/DateConverter.java | annotation-rest/src/main/java/uk/ac/ebi/quickgo/annotation/download/converter/helpers/DateConverter.java | package uk.ac.ebi.quickgo.annotation.download.converter.helpers;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.Date;
import java.util.function.Function;
/**
* A home for the logic to format dates into Strings.
*
* @author Tony Wardell
* Date: 09/04/2018
* Time: 14:54
* Cre... | package uk.ac.ebi.quickgo.annotation.download.converter.helpers;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.Date;
import java.util.function.Function;
/**
* A home for the logic to format dates into Strings.
*
* @author Tony Wardell
* Date: 09/04/2018
* Time: 14:54
* Cre... | Add test for null date. | Add test for null date.
| Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
339942cb4715cbc46328abfc2244c50b15f72b89 | com.codeaffine.extras.jdt.test/src/com/codeaffine/extras/jdt/internal/prefs/ExpressionEvaluatorTest.java | com.codeaffine.extras.jdt.test/src/com/codeaffine/extras/jdt/internal/prefs/ExpressionEvaluatorTest.java | package com.codeaffine.extras.jdt.internal.prefs;
import static org.junit.Assert.fail;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.services.IEvaluationService;
import org.junit.Before;... | package com.codeaffine.extras.jdt.internal.prefs;
import static com.codeaffine.test.util.lang.ThrowableCaptor.thrownBy;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import org.eclipse... | Rewrite test to use ThrowableCaptor | Rewrite test to use ThrowableCaptor | Java | epl-1.0 | rherrmann/eclipse-extras,rherrmann/eclipse-extras |
ddfd9d77813fdcd9b672ad572753260ded8c9a6b | repl/src/ca/junctionbox/cljbuck/repl/Main.java | repl/src/ca/junctionbox/cljbuck/repl/Main.java | package ca.junctionbox.cljbuck.repl;
import clojure.lang.RT;
import java.lang.management.GarbageCollectorMXBean;
import java.lang.management.ManagementFactory;
public class Main {
public static void main(final String[] main) {
System.out.println("Start you're engines!");
long start = System.nanoT... | package ca.junctionbox.cljbuck.repl;
import clojure.lang.RT;
import java.io.IOException;
import java.lang.management.GarbageCollectorMXBean;
import java.lang.management.ManagementFactory;
public class Main {
public static void main(final String[] main) throws IOException {
long start = System.nanoTime();... | Remove readLine from repl:main for jar load performance output. | Remove readLine from repl:main for jar load performance output. | Java | epl-1.0 | nfisher/cljbuck,nfisher/cljbuck,nfisher/cljbuck |
25b6f49344479b521684cdff2a84815ed96cf055 | qpid-proton4j-engine/src/main/java/org/apache/qpid/proton4j/engine/sasl/client/SaslCredentialsProvider.java | qpid-proton4j-engine/src/main/java/org/apache/qpid/proton4j/engine/sasl/client/SaslCredentialsProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Allow the SASL credentials provider to provide extra configuration | Allow the SASL credentials provider to provide extra configuration
Some mechanisms might require external configuration data so we should
provide an optional API to allow that to be gathered from a mechanism. | Java | apache-2.0 | tabish121/proton4j |
c801a015d1bd47060c1cfdfcecaac085de4b7fcf | integration-tests/src/test/java/arez/integration/observable_component/ObservableComponentIntegrationTest.java | integration-tests/src/test/java/arez/integration/observable_component/ObservableComponentIntegrationTest.java | package arez.integration.observable_component;
import arez.Arez;
import arez.Disposable;
import arez.annotations.ArezComponent;
import arez.annotations.Feature;
import arez.component.ComponentObservable;
import arez.integration.AbstractArezIntegrationTest;
import java.util.concurrent.atomic.AtomicInteger;
import javax... | package arez.integration.observable_component;
import arez.Arez;
import arez.Disposable;
import arez.annotations.ArezComponent;
import arez.annotations.Feature;
import arez.component.ComponentObservable;
import arez.integration.AbstractArezIntegrationTest;
import java.util.concurrent.atomic.AtomicInteger;
import javax... | Remove test that no longer makes any sense | Remove test that no longer makes any sense
| Java | apache-2.0 | realityforge/arez,realityforge/arez,realityforge/arez |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.