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
87424729061ecc77af70ea1d2213b20ed97aeec8
src/net/otfeg/itemedit/AddEchantment.java
src/net/otfeg/itemedit/AddEchantment.java
package net.otfeg.itemedit; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.enchantments.Enchantment; import org.bukkit.entity.Player; public class AddEchantment implements CommandExecutor { private Enchant enchant; public Ad...
package net.otfeg.itemedit; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.enchantments.Enchantment; import org.bukkit.entity.Player; import java.lang.NumberFormatException; import java.lang.Override...
Fix misc errors, add some input parsing
Fix misc errors, add some input parsing
Java
mit
OTFEG/ItemEdit
c0fb381a492b7cfd6a747aa06db56ecf86ff48c8
test/dev/kkorolyov/sqlob/TestAssets.java
test/dev/kkorolyov/sqlob/TestAssets.java
package dev.kkorolyov.sqlob; import java.io.IOException; import java.io.UncheckedIOException; import dev.kkorolyov.simpleprops.Properties; @SuppressWarnings("javadoc") public class TestAssets { private static final String TEST_PROPERTIES_NAME = "TestSQLOb.ini"; private static final String HOST = "HOST", ...
package dev.kkorolyov.sqlob; import java.io.File; import java.io.IOException; import java.io.UncheckedIOException; import dev.kkorolyov.simpleprops.Properties; @SuppressWarnings("javadoc") public class TestAssets { private static final String HOST = "HOST", DATABASE = "DATABASE", USER ...
Update tests to new SimpleProps
Update tests to new SimpleProps
Java
bsd-3-clause
kkorolyov/SQLOb
167f78d651a348e49ab7645e1a3dc6da4fafdb13
Project1/apptbook/src/test/java/edu/pdx/cs410J/chances/AppointmentTest.java
Project1/apptbook/src/test/java/edu/pdx/cs410J/chances/AppointmentTest.java
package edu.pdx.cs410J.chances; import org.junit.Test; import static org.hamcrest.CoreMatchers.*; import static org.hamcrest.MatcherAssert.assertThat; /** * Unit tests for the {@link Appointment} class. */ public class AppointmentTest { @Test public void getBeginTimeStringNeedsToBeImplemented() { Appointm...
package edu.pdx.cs410J.chances; import org.junit.Test; import static org.hamcrest.CoreMatchers.*; import static org.hamcrest.MatcherAssert.assertThat; /** * Unit tests for the {@link Appointment} class. */ public class AppointmentTest { @Test public void getBeginTimeStringNeedsToBeImplemented() { Appointm...
Rename null description test case
Rename null description test case
Java
mit
chances/cs410-adv-java,chances/cs410-adv-java,chances/cs410-adv-java
2940a953a11b896bbdf9950c5bff37be60f567b8
src/main/java/de/fesere/tictactoe/Marker.java
src/main/java/de/fesere/tictactoe/Marker.java
package de.fesere.tictactoe; public enum Marker { X, O, NONE; public boolean isNone() { return this == NONE; } public boolean isMarked() { return !isNone(); } @Override public String toString() { if(this== X) { return "X"; } if...
package de.fesere.tictactoe; public enum Marker { X, O, NONE; public boolean isNone() { return this == NONE; } public boolean isMarked() { return !isNone(); } public Marker other() { if(this == X) { return O; } if( this == O) { ...
Allow the marker to return the opponent Player or null for NONE
Allow the marker to return the opponent Player or null for NONE
Java
mit
felipesere/tic-tac-toe,felipesere/tic-tac-toe
9d5c6d1a379790203d75859fed6f34e9bb94dd7a
src/main/java/com/minelittlepony/pony/data/PonyWearable.java
src/main/java/com/minelittlepony/pony/data/PonyWearable.java
package com.minelittlepony.pony.data; import java.util.ArrayList; import java.util.List; public enum PonyWearable implements ITriggerPixelMapped<PonyWearable> { NONE(0), SADDLE_BAGS(0xff0000), HAT(0x00ff00); private int triggerValue; PonyWearable(int pixel) { triggerValue = pixel; } ...
package com.minelittlepony.pony.data; import java.util.ArrayList; import java.util.List; public enum PonyWearable implements ITriggerPixelMapped<PonyWearable> { NONE(0), SADDLE_BAGS(255), HAT(100); private int triggerValue; PonyWearable(int pixel) { triggerValue = pixel; } @Over...
Fix trigger pixel for saddlebags
Fix trigger pixel for saddlebags
Java
mit
MineLittlePony/MineLittlePony,MineLittlePony/MineLittlePony
12eb1efef8d43b1427383e9f7924e1d15b664d4b
src/main/java/com/cathive/fx/gravatar/package-info.java
src/main/java/com/cathive/fx/gravatar/package-info.java
/* * Copyright (C) 2012 The Cat Hive Developers. * * 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 ...
/* * Copyright (C) 2012 The Cat Hive Developers. * * 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 ...
Remove superflous information from Javadoc
Remove superflous information from Javadoc
Java
apache-2.0
cathive/fx-gravatar
81b2cc8e20579be9af4adf08ade8a84dcdd7c8eb
services-core/src/main/java/io/plumery/core/Command.java
services-core/src/main/java/io/plumery/core/Command.java
package io.plumery.core; /** * The role interface representing a command */ public abstract class Command implements Action { public int originalVersion; public ID id; }
package io.plumery.core; /** * The role interface representing a command */ public abstract class Command implements Action { public int originalVersion; }
Remove ID from the base class to support semantic ids per related aggregate root
Remove ID from the base class to support semantic ids per related aggregate root
Java
apache-2.0
vgoldin/cqrs-eventsourcing-kafka
983fe595e3f8eae1c834e4c8d3817126877c1382
app/controllers/application/Section0.java
app/controllers/application/Section0.java
package controllers.application; import play.mvc.*; import play.data.Form; import static play.data.Form.*; import views.formdata.*; public class Section0 extends Controller { private static final Form<EthicsTriageForm> triageForm = form(EthicsTriageForm.class); public static Result section0(Long id) { ...
package controllers.application; import play.mvc.*; import play.data.Form; import static play.data.Form.*; import views.formdata.*; public class Section0 extends Controller { private static final Form<EthicsTriageForm> triageForm = form(EthicsTriageForm.class); public static Result section0(Long id) { ...
Clean up form handling some more
Clean up form handling some more
Java
mit
YoaSpike/Ethics,YoaSpike/Ethics,YoaSpike/Ethics,YoaSpike/Ethics
f2a356d16203108ddb923599a010a26ebf1d7b20
HackerRank/Algorithm/SolveMeFirst.java
HackerRank/Algorithm/SolveMeFirst.java
import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { static int solveMeFirst(int a, int b) { return a+b; } public static void main(String[] args) { Scanner in = new Scanner(System.in); int a; ...
//First algo problem in the question bank import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { static int solveMeFirst(int a, int b) { return a+b; } public static void main(String[] args) { Scanner in = new...
Add a comment in the file
Add a comment in the file
Java
mit
dusadpiyush96/Competetive,dusadpiyush96/Competetive
7fea23224486353bb0b650aff36c3cbec3340a72
org.perfclipse.core/src/org/perfclipse/PerfClipseConstants.java
org.perfclipse.core/src/org/perfclipse/PerfClipseConstants.java
/* * PerfClispe * * * Copyright (c) 2014 Jakub Knetl * * 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 app...
/* * PerfClispe * * * Copyright (c) 2014 Jakub Knetl * * 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 app...
Add path to XML schema
Add path to XML schema
Java
apache-2.0
PerfCake/PerfClipse
814846bfc8f30cd91164ae126863ae4252edabb0
app/drones/messages/JPEGFrameMessage.java
app/drones/messages/JPEGFrameMessage.java
package drones.messages; import java.io.Serializable; /** * Created by brecht on 4/20/15. */ public class JPEGFrameMessage implements Serializable { private String imageData; public JPEGFrameMessage(String imageData) { this.imageData = imageData; } public String getImageData() { r...
package drones.messages; import java.io.Serializable; /** * Created by brecht on 4/20/15. */ public class JPEGFrameMessage implements Serializable { private String imageData; /** * * @param imageData The image data as a base 64 string */ public JPEGFrameMessage(String imageData) { ...
Add comments to JPEG message
Add comments to JPEG message
Java
mit
ugent-cros/cros-core,ugent-cros/cros-core,ugent-cros/cros-core
b8d5466b845f8438afbd1ce2f0b0e0668246217f
app/powerups/core/boardpowerup/Board.java
app/powerups/core/boardpowerup/Board.java
package powerups.core.boardpowerup; import models.Club; import powerups.Powerup; import javax.xml.transform.Result; public class Board extends Powerup { public Board(Club club) { super(club); } @Override public Result render() { return null; } }
package powerups.core.boardpowerup; import models.Club; import powerups.Powerup; public class Board extends Powerup { public Board(Club club) { super(club); } @Override public play.mvc.Result render() { return null; } }
Change return type as per 5d74d94b...
Change return type as per 5d74d94b...
Java
mit
Utviklingsutvalget/ACTion,Utviklingsutvalget/ACTion,Utviklingsutvalget/ACTion
2e5660a478f96dc9e07c65e6d2a92edb3502c710
ITWedding/ITWeddingv2016.05/app/src/main/java/ua/uagames/itwedding/v201605/MainActivity.java
ITWedding/ITWeddingv2016.05/app/src/main/java/ua/uagames/itwedding/v201605/MainActivity.java
package ua.uagames.itwedding.v201605; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.act...
package ua.uagames.itwedding.v201605; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.webkit.WebResourceRequest; import android.webkit.WebView; import android.webkit.WebViewClient; import com.google.firebase.analytics.FirebaseAnalytics; public class MainActivity extends AppCo...
Change project ITWeddingv2016.05. Add function for load content
Change project ITWeddingv2016.05. Add function for load content
Java
mit
nevmaks/UAGames
3c7cc7a27511760884e675afb28f717641267bbe
backend/src/main/java/com/google/rolecall/authentication/CustomResponseAttributesFilter.java
backend/src/main/java/com/google/rolecall/authentication/CustomResponseAttributesFilter.java
package com.google.rolecall.authentication; 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.HttpServl...
package com.google.rolecall.authentication; 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.HttpServl...
Set different on corner case
Set different on corner case
Java
apache-2.0
googleinterns/role-call,googleinterns/role-call,googleinterns/role-call,googleinterns/role-call,googleinterns/role-call
2599be08c4b344693d01862cb6f69a0d74511471
src/main/java/org/kelcecil/globalgiving/GlobalGivingClient.java
src/main/java/org/kelcecil/globalgiving/GlobalGivingClient.java
package org.kelcecil.globalgiving; import org.kelcecil.globalgiving.action.GetThemes; import org.kelcecil.globalgiving.model.Theme; import java.util.List; /** * */ public class GlobalGivingClient { /** * Constructor that uses all defaults including * api key from environment. */ public Glob...
package org.kelcecil.globalgiving; import org.kelcecil.globalgiving.action.GetThemes; import org.kelcecil.globalgiving.action.GetThemesWithProjects; import org.kelcecil.globalgiving.model.Theme; import java.util.List; /** * */ public class GlobalGivingClient { /** * Constructor that uses all defaults inc...
Make methods begin with lowercase
Make methods begin with lowercase Too much golang lately
Java
mit
kelcecil/givingglobal-java
95c25750621e8ae9d9e18cf70d2ea70f5ddfab1d
core/src/main/java/hudson/model/PersistentDescriptor.java
core/src/main/java/hudson/model/PersistentDescriptor.java
package hudson.model; import javax.annotation.PostConstruct; /** * Marker interface for Descriptors which use xml persistent data, and as such need to load from disk when instantiated. * <p> * {@link Descriptor#load()} method is annotated as {@link PostConstruct} so it get automatically invoked after * constructo...
package hudson.model; import javax.annotation.PostConstruct; /** * Marker interface for Descriptors which use xml persistent data, and as such need to load from disk when instantiated. * <p> * {@link Descriptor#load()} method is annotated as {@link PostConstruct} so it get automatically invoked after * constructo...
Add the missing @since - avoid git-archeology to find when the interface was added
[JENKINS-52818] Add the missing @since - avoid git-archeology to find when the interface was added
Java
mit
batmat/jenkins,oleg-nenashev/jenkins,v1v/jenkins,pjanouse/jenkins,godfath3r/jenkins,viqueen/jenkins,ikedam/jenkins,oleg-nenashev/jenkins,v1v/jenkins,pjanouse/jenkins,oleg-nenashev/jenkins,recena/jenkins,jenkinsci/jenkins,godfath3r/jenkins,rsandell/jenkins,pjanouse/jenkins,damianszczepanik/jenkins,stephenc/jenkins,MarkE...
3f9af62d924e1e65e4839589d823273e0bdf8acc
src/main/java/edu/cwru/sicu_sms/Main.java
src/main/java/edu/cwru/sicu_sms/Main.java
/* *\ ** SICU Stress Measurement System ** ** Project P04 | C380 Team A ** ** EBME 380: Biomedical Engineering Design Experience ** ** ...
/* *\ ** SICU Stress Measurement System ** ** Project P04 | C380 Team A ** ** EBME 380: Biomedical Engineering Design Experience ** ** ...
Add icon to primary stage
Add icon to primary stage
Java
apache-2.0
SICU-Stress-Measurement-System/frontend-java
1afc43dc46ef38e5581898fd8f99a00cb81bbe5f
butterknife-annotations/src/main/java/butterknife/BindArray.java
butterknife-annotations/src/main/java/butterknife/BindArray.java
package butterknife; import android.support.annotation.ArrayRes; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.RetentionPolicy.CLASS; /** * Bind a field to the specified array resource ID. The type ...
package butterknife; import android.support.annotation.ArrayRes; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Bind a field to the specified array resource ID. The typ...
Fix annotation retention for reflect usage
Fix annotation retention for reflect usage
Java
apache-2.0
hzsweers/butterknife,ze-pequeno/butterknife,JakeWharton/butterknife,hzsweers/butterknife,JakeWharton/butterknife,ze-pequeno/butterknife,JakeWharton/butterknife,ze-pequeno/butterknife,ze-pequeno/butterknife,hzsweers/butterknife,JakeWharton/butterknife
6c4a28dab8608bbf285e8d2bca57fb3ba690798f
presto-proxy/src/main/java/io/prestosql/proxy/ProxyModule.java
presto-proxy/src/main/java/io/prestosql/proxy/ProxyModule.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...
Disable Airlift admin servlet in Proxy
Disable Airlift admin servlet in Proxy Same as e9c217ae4a3e1a3c73be5bcd417bb5cf1384eaca, this time for Presto Proxy.
Java
apache-2.0
11xor6/presto,martint/presto,dain/presto,electrum/presto,youngwookim/presto,youngwookim/presto,electrum/presto,erichwang/presto,11xor6/presto,wyukawa/presto,treasure-data/presto,erichwang/presto,martint/presto,Praveen2112/presto,hgschmie/presto,losipiuk/presto,dain/presto,ebyhr/presto,electrum/presto,smartnews/presto,P...
2c77f2b3266b0cd7858673bbd520b82dce9c6daa
src/net.aeten.core/net/aeten/core/spi/Configurations.java
src/net.aeten.core/net/aeten/core/spi/Configurations.java
package net.aeten.core.spi; /** * * @author Thomas Pérennou */ public @interface Configurations { Configuration[] value(); }
package net.aeten.core.spi; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * * @author Thomas Pérennou */ @Documented @Retention(RetentionPolicy.SOURCE) @Tar...
Add Documented, Retention and Target annotations
Add Documented, Retention and Target annotations
Java
mit
aeten/aecore,aeten/aecore
b971d70236070d8b186e20a4ff57b76704eeca75
lec-3/proxyServer/Constants.java
lec-3/proxyServer/Constants.java
public final class Constants{ private Constants() {} public static String getErrInfoString(String errCode){ switch(errCode){ //Sent by conversion server. case "ERR001": return "The number of parameter does not meet requirement."; case "ERR002": ...
public final class Constants{ private Constants() {} public static String getErrInfoString(String errCode){ switch(errCode){ //Sent by conversion server. case "ERR001": return "The number of parameter does not meet requirement."; case "ERR002": ...
Add error 08 & 09
Add error 08 & 09
Java
mit
syftalent/dist-sys-exercises-1,syftalent/dist-sys-exercises-1,syftalent/dist-sys-exercises-1,syftalent/dist-sys-exercises-1,syftalent/dist-sys-exercises-1,syftalent/dist-sys-exercises-1,syftalent/dist-sys-exercises-1,syftalent/dist-sys-exercises-1,syftalent/dist-sys-exercises-1
d6d2e583675693d585c5ddebd20d0260b9d31689
jmx/src/main/java/org/qi4j/library/jmx/MBeanServerImporter.java
jmx/src/main/java/org/qi4j/library/jmx/MBeanServerImporter.java
/* * Copyright (c) 2010, Rickard Öberg. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable l...
/* * Copyright (c) 2010, Rickard Öberg. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable l...
Use the Platform MBeanServer. This ensures that application MBeans are registered in the same MBeanServer as the platform MBeans.
Use the Platform MBeanServer. This ensures that application MBeans are registered in the same MBeanServer as the platform MBeans.
Java
apache-2.0
ramtej/Qi4j.Repo.4.Sync,Qi4j/qi4j-libraries,ramtej/Qi4j.Repo.4.Sync,Qi4j/qi4j-libraries,ramtej/Qi4j.Repo.4.Sync,Qi4j/qi4j-sdk,Qi4j/qi4j-libraries,Qi4j/qi4j-sdk,Qi4j/qi4j-libraries,apache/zest-qi4j,joobn72/qi4j-sdk,joobn72/qi4j-sdk,joobn72/qi4j-sdk,apache/zest-qi4j,apache/zest-qi4j,joobn72/qi4j-sdk,ramtej/Qi4j.Repo.4.Sy...
aa5b94485d6333f3ccf19aa3bb49988103e9f256
src/main/java/nl/tudelft/ti2306/blockchain/PeerGraphToViz.java
src/main/java/nl/tudelft/ti2306/blockchain/PeerGraphToViz.java
package nl.tudelft.ti2306.blockchain; import java.io.File; import java.io.FileNotFoundException; import java.io.PrintWriter; import nl.tudelft.ti2306.blockchain.datastructure.PeerGraph; public class PeerGraphToViz implements Runnable { private PeerGraph graph; private String output; public PeerGraphToV...
package nl.tudelft.ti2306.blockchain; import java.io.File; import java.io.FileNotFoundException; import java.io.PrintWriter; import nl.tudelft.ti2306.blockchain.datastructure.PeerGraph; public class PeerGraphToViz implements Runnable { private PeerGraph graph; private String output; public PeerGraphToV...
Add colors to peer graph
Add colors to peer graph
Java
lgpl-2.1
Pathemeous/blockchain-graph-algorithm,Pathemeous/blockchain-graph-algorithm
0b48df54f3418f6ae48afba6cb726c0a9cf593b9
src/.bach-11/Build.java
src/.bach-11/Build.java
// default package /** Custom build program using {@code Bach.java} API. */ class Build { public static void main(String... args) { // Bach.main(args); // Delegate to Bach.java's default main program. var buildSummary = new Bach().build(project -> project.version("1-ea")); buildSummary.assertSuccessful...
// default package /** Custom build program using {@code Bach.java} API. */ class Build { public static void main(String... args) { new Bach().build(project -> project.version("1-ea")).assertSuccessful(); } }
Reduce custom build program to an one-liner
Reduce custom build program to an one-liner
Java
mit
sormuras/bach,sormuras/bach
d4a09ff034c7c7ceda1a38054df98c430361df4b
commons/src/main/java/eu/itesla_project/commons/tools/Tool.java
commons/src/main/java/eu/itesla_project/commons/tools/Tool.java
/** * Copyright (c) 2016, All partners of the iTesla project (http://www.itesla-project.eu/consortium) * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package eu...
/** * Copyright (c) 2016, All partners of the iTesla project (http://www.itesla-project.eu/consortium) * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package eu...
Fix tool bug using old interface
Fix tool bug using old interface
Java
mpl-2.0
powsybl/powsybl-core,itesla/ipst-core,powsybl/powsybl-core,itesla/ipst-core,itesla/ipst-core,itesla/ipst-core,powsybl/powsybl-core
4895c0534ae0537d274a18e880a52c33c709a8ed
src/main/java/com/vaguehope/morrigan/Args.java
src/main/java/com/vaguehope/morrigan/Args.java
package com.vaguehope.morrigan; import org.kohsuke.args4j.Option; public class Args { @Option(name = "-d", aliases = { "--dlna" }, usage = "Enable DLNA.") private boolean dlna; @Option(name = "-i", aliases = { "--interface" }, usage = "Hostname or IP address of interface to bind to.") private String iface; @Optio...
package com.vaguehope.morrigan; import org.kohsuke.args4j.Option; public class Args { @Option(name = "--dlna", usage = "Enable DLNA.") private boolean dlna; @Option(name = "--interface", usage = "Hostname or IP address of interface to bind to.") private String iface; @Option(name = "--port", usage = "Local port t...
Remove single char args, this is not an interactive tool.
Remove single char args, this is not an interactive tool.
Java
apache-2.0
haku/Morrigan,haku/Morrigan,haku/Morrigan,haku/Morrigan,haku/Morrigan
f48502ddb6d83499b4681cab2073584b37831bb6
src/application/Actions/ForwardAction.java
src/application/Actions/ForwardAction.java
package application.Actions; import javafx.geometry.Point2D; import application.SLogoCanvas; import application.Turtle; public class ForwardAction extends AbstractAction { public ForwardAction(double distance) { myValue = distance; } @Override public void update(Turtle turtle, SLogoCanvas canvas) { Point2D ...
package application.Actions; import javafx.geometry.Point2D; import application.SLogoCanvas; import application.Turtle; public class ForwardAction extends AbstractAction { public ForwardAction(double distance) { myValue = distance; } @Override public void update(Turtle turtle, SLogoCanvas canvas) { Point2D ...
Revert "Revert "fixed pen styling bug""
Revert "Revert "fixed pen styling bug"" This reverts commit d262982255df13839daae4fec30accd9617ed157.
Java
mit
ngbalk/SLOGO
51f0fbbe84d8b217de061254f883444c4bfdce3e
src/org/mozilla/mozstumbler/DateTimeUtils.java
src/org/mozilla/mozstumbler/DateTimeUtils.java
package org.mozilla.mozstumbler; import android.annotation.SuppressLint; import java.util.Date; import java.text.DateFormat; import java.text.SimpleDateFormat; final class DateTimeUtils { private static final DateFormat mISO8601Format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'"); static final long MILLIS...
package org.mozilla.mozstumbler; import android.annotation.SuppressLint; import java.util.Date; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.TimeZone; final class DateTimeUtils { private static final DateFormat mISO8601Format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'"); ...
Fix timezone in submitted data
Fix timezone in submitted data SimpleDateFormat uses the system's default time zone by default.
Java
mpl-2.0
priyankvex/MozStumbler,cascheberg/MozStumbler,priyankvex/MozStumbler,garvankeeley/MozStumbler,dougt/MozStumbler,priyankvex/MozStumbler,MozillaCZ/MozStumbler,cascheberg/MozStumbler,hasadna/OpenTrainApp,MozillaCZ/MozStumbler,petercpg/MozStumbler,cascheberg/MozStumbler,crankycoder/MozStumbler,garvankeeley/MozStumbler,hasa...
0762b025f201b961f0b715a152b588d1d49c7c05
lib-core/src/main/java/com/stratelia/webactiv/SilverpeasRole.java
lib-core/src/main/java/com/stratelia/webactiv/SilverpeasRole.java
/** * Copyright (C) 2000 - 2011 Silverpeas * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * As a spe...
/** * Copyright (C) 2000 - 2011 Silverpeas * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * As a spe...
Add privilegedUser and catch IllegalArgumentException
Add privilegedUser and catch IllegalArgumentException
Java
agpl-3.0
auroreallibe/Silverpeas-Core,NicolasEYSSERIC/Silverpeas-Core,Silverpeas/Silverpeas-Core,NicolasEYSSERIC/Silverpeas-Core,ebonnet/Silverpeas-Core,CecileBONIN/Silverpeas-Core,stephaneperry/Silverpeas-Core,mmoqui/Silverpeas-Core,Silverpeas/Silverpeas-Core,SilverYoCha/Silverpeas-Core,SilverDav/Silverpeas-Core,SilverYoCha/Si...
8b9969551a7cf2b2b67288e02977e84da3e9a3e5
core/xal/application/DefaultXalWindow.java
core/xal/application/DefaultXalWindow.java
// // DefaultXalWindow.java // xal // // Created by Thomas Pelaia on 7/18/06. // Copyright 2006 Oak Ridge National Lab. All rights reserved. // package xal.application; /** provides a default implementation of the XAL window */ public class DefaultXalWindow extends XalWindow { /** serialization ID */ pri...
// // DefaultXalWindow.java // xal // // Created by Thomas Pelaia on 7/18/06. // Copyright 2006 Oak Ridge National Lab. All rights reserved. // package xal.application; /** provides a default implementation of the XAL window */ public class DefaultXalWindow extends XalWindow { /** serialization ID */ pri...
Make the toolbar optional for the default XAL window.
Make the toolbar optional for the default XAL window.
Java
bsd-3-clause
luxiaohan/openxal-csns-luxh,EuropeanSpallationSource/openxal,EuropeanSpallationSource/openxal,EuropeanSpallationSource/openxal,openxal/openxal,luxiaohan/openxal-csns-luxh,EuropeanSpallationSource/openxal,openxal/openxal,openxal/openxal,luxiaohan/openxal-csns-luxh,EuropeanSpallationSource/openxal,openxal/openxal,openxal...
2c7dee0baca842c3bc6652e0d13776934a979bee
api/src/main/java/com/creatubbles/api/model/hashtag/Hashtag.java
api/src/main/java/com/creatubbles/api/model/hashtag/Hashtag.java
package com.creatubbles.api.model.hashtag; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import com.fasterxml.jackson.annotation.JsonProperty; import com.github.jasminb.jsonapi.annotations.Id; import com.github.jasminb.jsonapi.annotations.Type; @Type("hashtags") public class ...
package com.creatubbles.api.model.hashtag; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import com.fasterxml.jackson.annotation.JsonProperty; import com.github.jasminb.jsonapi.annotations.Id; import com.github.jasminb.jsonapi.annotations.Type; @Type("hashtags") public class ...
Add new fields to hashtag model
Add new fields to hashtag model
Java
mit
creatubbles/ctb-api-android
a142e59cbd20b5e59980d3a6ebac43c2e8eddd8e
src/main/java/net/openhft/chronicle/core/util/ReadResolvable.java
src/main/java/net/openhft/chronicle/core/util/ReadResolvable.java
/* * Copyright 2016 higherfrequencytrading.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
/* * Copyright 2016 higherfrequencytrading.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
Refactor queue tests to store temporary files until target. Migrate some tests from Queue to Queue Enterprise.
Refactor queue tests to store temporary files until target. Migrate some tests from Queue to Queue Enterprise.
Java
apache-2.0
OpenHFT/Chronicle-Core
7ebdd87b8fb466e275b1b86db84331e2eb921c0c
src/test/java/org/embulk/output/sftp/utils/TestTimeoutCloser.java
src/test/java/org/embulk/output/sftp/utils/TestTimeoutCloser.java
package org.embulk.output.sftp.utils; import org.embulk.EmbulkTestRuntime; import org.junit.Rule; import org.junit.Test; import java.io.Closeable; import static junit.framework.TestCase.fail; import static org.junit.Assert.assertTrue; public class TestTimeoutCloser { @Rule public EmbulkTestRuntime runtime =...
package org.embulk.output.sftp.utils; import org.embulk.EmbulkTestRuntime; import org.junit.Rule; import org.junit.Test; import java.io.Closeable; import java.util.concurrent.TimeoutException; import static junit.framework.TestCase.fail; import static org.hamcrest.CoreMatchers.instanceOf; import static org.hamcrest....
Update unit test of time-out closer
Update unit test of time-out closer
Java
mit
civitaspo/embulk-output-sftp,civitaspo/embulk-output-sftp
b93b1e928ce49dd71495490c71f11fbcd84f1e66
src/test/java/org/twig/compiler/RuntimeTemplateCompilerTests.java
src/test/java/org/twig/compiler/RuntimeTemplateCompilerTests.java
package org.twig.compiler; import org.junit.Assert; import org.junit.Test; import org.twig.Environment; import org.twig.exception.TwigRuntimeException; import org.twig.template.Template; public class RuntimeTemplateCompilerTests { @Test public void testCompileJavaCode() throws TwigRuntimeException { R...
package org.twig.compiler; import org.junit.Assert; import org.junit.Test; import org.twig.Environment; import org.twig.exception.TwigRuntimeException; import org.twig.template.Template; public class RuntimeTemplateCompilerTests { @Test public void testCompileJavaCode() throws TwigRuntimeException { R...
Fix failing runtime compiler tests
Fix failing runtime compiler tests
Java
bsd-3-clause
palmfjord/twig-java,palmfjord/twig4j-core,palmfjord/twig4j-core,palmfjord/twig-java
679075e2bcfe7dd31c59154f333d2a8fb7885f76
core/src/main/java/training/taylor/timetracker/core/Tracker.java
core/src/main/java/training/taylor/timetracker/core/Tracker.java
package training.taylor.timetracker.core; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import training.taylor.timetracker.core.dao.TimeEntry; import java.util.List; @Component public class Tracker { @Autowired private List<TimeEntry> entries;...
package training.taylor.timetracker.core; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import training.taylor.timetracker.core.dao.TimeEntry; import java.util.List; @Component public class Tracker { @Autowired private List<TimeEntry> entries;...
Add back in violations to make things more interesting
Add back in violations to make things more interesting
Java
apache-2.0
maven-training/time-tracker,taylor-training/time-tracker,jasongtaylor/time-tracker
39f40a9a62d7a78688cf5474d1fd7009f0c342ed
app/src/main/java/moe/akagi/chibaproject/card/EventDetailInfo.java
app/src/main/java/moe/akagi/chibaproject/card/EventDetailInfo.java
package moe.akagi.chibaproject.card; import android.content.Context; import android.view.View; import android.view.ViewGroup; import it.gmariotti.cardslib.library.internal.Card; import moe.akagi.chibaproject.R; import moe.akagi.chibaproject.activity.PlaceDisplay; import moe.akagi.chibaproject.datatype.Event; /** * ...
package moe.akagi.chibaproject.card; import android.content.Context; import android.view.View; import android.view.ViewGroup; import moe.akagi.chibaproject.R; import moe.akagi.chibaproject.activity.PlaceMapCreate; import moe.akagi.chibaproject.activity.PlaceMapDisplay; import moe.akagi.chibaproject.datatype.Event; im...
Add click for map activity test
Add click for map activity test
Java
mit
myzWILLmake/ChibaProject
8332b821d41fefe9c8f0a7727429fdade45f9af8
src/test/java/de/vorb/platon/web/rest/RestResourceConfigTest.java
src/test/java/de/vorb/platon/web/rest/RestResourceConfigTest.java
/* * Copyright 2016-2017 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 app...
/* * Copyright 2016-2017 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 app...
Allow registered classes to be in any order
Allow registered classes to be in any order
Java
apache-2.0
pvorb/platon,pvorb/platon,pvorb/platon
41e3f76d74a484af1c0d8fad2373d404b989eecd
base/src/main/java/io/spine/query/Either.java
base/src/main/java/io/spine/query/Either.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...
Swap places the annotations to allow them to read together.
Swap places the annotations to allow them to read together.
Java
apache-2.0
SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base
767899019aa56c7d49bc22eb8c00e01e81902a42
src/com/thaiopensource/xml/util/Name.java
src/com/thaiopensource/xml/util/Name.java
package com.thaiopensource.xml.util; public final class Name { final private String namespaceUri; final private String localName; final private int hc; public Name(String namespaceUri, String localName) { this.namespaceUri = namespaceUri; this.localName = localName; this.hc = namespaceUri.hashCo...
package com.thaiopensource.xml.util; public final class Name { final private String namespaceUri; final private String localName; final private int hc; public Name(String namespaceUri, String localName) { this.namespaceUri = namespaceUri; this.localName = localName; this.hc = namespaceUri.hashCo...
Add compare method from com.thaiopensource.relaxng.output.common.
Add compare method from com.thaiopensource.relaxng.output.common. git-svn-id: ca8e9bb6f3f9b50a093b443c23951d3c25ca0913@1968 369101cc-9a96-11dd-8e58-870c635edf7a
Java
bsd-3-clause
vandenoever/jing,vandenoever/jing,vandenoever/jing
a9b9fcf47b449cbc131724b570c45cd45ac73566
GerritStats/src/main/java/com/holmsted/gerrit/GerritStatParser.java
GerritStats/src/main/java/com/holmsted/gerrit/GerritStatParser.java
package com.holmsted.gerrit; import org.json.JSONException; import org.json.JSONObject; import java.util.ArrayList; import java.util.List; import com.holmsted.json.JsonUtils; public class GerritStatParser { public List<Commit> parseCommits(String jsonCommitData) { List<Commit> commits = new ArrayList<>...
package com.holmsted.gerrit; import org.json.JSONException; import org.json.JSONObject; import java.util.ArrayList; import java.util.List; import com.holmsted.json.JsonUtils; public class GerritStatParser { public List<Commit> parseCommits(String jsonCommitData) { List<Commit> commits = new ArrayList<>...
Remove the noisy "Ignored line" messages for stats that are not used
Remove the noisy "Ignored line" messages for stats that are not used
Java
mit
holmari/gerritstats,holmari/gerritstats,holmari/gerritstats,holmari/gerritstats
960fb81025643c1122c2d4913ca5130a231527e8
src/main/java/bj/pranie/util/TimeUtil.java
src/main/java/bj/pranie/util/TimeUtil.java
package bj.pranie.util; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.TimeZone; /** * Created by noon on 03.02.17. */ public class TimeUtil { private static final SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd H...
package bj.pranie.util; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.TimeZone; /** * Created by noon on 03.02.17. */ public class TimeUtil { private static final SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd H...
Remove unnecessary set time to calendar.
Remove unnecessary set time to calendar.
Java
apache-2.0
sebastiansokolowski/ReservationSystem-BJ,sebastiansokolowski/ReservationSystem-BJ
bf78a97c51795334dbf1bfea378ec4b3d16e72df
src/main/java/com/mssngvwls/GameFactory.java
src/main/java/com/mssngvwls/GameFactory.java
package com.mssngvwls; import org.springframework.stereotype.Service; @Service public class GameFactory { private final GamePhraseSelector phraseSelector; public GameFactory(final GamePhraseSelector phraseSelector) { this.phraseSelector = phraseSelector; } public GameState startGame(final i...
package com.mssngvwls; import org.springframework.stereotype.Service; @Service public class GameFactory { private final GamePhraseSelector phraseSelector; public GameFactory(final GamePhraseSelector phraseSelector) { this.phraseSelector = phraseSelector; } public Game createGame() { ...
Return the Game object from the factory as we need it to be able to guess phrases
Return the Game object from the factory as we need it to be able to guess phrases
Java
mit
stuartleyland/mssngvwls
f9163c8f40a5153c42e65aaeb18732feaa61e206
RelUI/src/org/reldb/dbrowser/hooks/OpenDocumentEventProcessor.java
RelUI/src/org/reldb/dbrowser/hooks/OpenDocumentEventProcessor.java
package org.reldb.dbrowser.hooks; import java.util.ArrayList; import org.eclipse.swt.widgets.Event; import org.eclipse.swt.widgets.Listener; import org.reldb.dbrowser.DBrowser; public class OpenDocumentEventProcessor implements Listener { private ArrayList<String> filesToOpen = new ArrayList<String>(1); private bo...
package org.reldb.dbrowser.hooks; import java.util.ArrayList; import org.eclipse.swt.widgets.Event; import org.eclipse.swt.widgets.Listener; import org.reldb.dbrowser.DBrowser; public class OpenDocumentEventProcessor implements Listener { private ArrayList<String> filesToOpen = new ArrayList<String>(1); private bo...
Support explicit adding of file names.
Support explicit adding of file names.
Java
apache-2.0
DaveVoorhis/Rel,DaveVoorhis/Rel,DaveVoorhis/Rel,DaveVoorhis/Rel,DaveVoorhis/Rel
f25ad28940fc33a7ba89f63efa9f675cc339762c
src/main/java/com/akiban/sql/optimizer/AISTypeComputer.java
src/main/java/com/akiban/sql/optimizer/AISTypeComputer.java
/** * Copyright (C) 2011 Akiban Technologies Inc. * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * ...
/** * Copyright (C) 2011 Akiban Technologies Inc. * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * ...
Add unit tests for update with a parameter.
Add unit tests for update with a parameter.
Java
agpl-3.0
wfxiang08/sql-layer-1,wfxiang08/sql-layer-1,ngaut/sql-layer,shunwang/sql-layer-1,relateiq/sql-layer,qiuyesuifeng/sql-layer,jaytaylor/sql-layer,jaytaylor/sql-layer,wfxiang08/sql-layer-1,qiuyesuifeng/sql-layer,shunwang/sql-layer-1,relateiq/sql-layer,qiuyesuifeng/sql-layer,relateiq/sql-layer,jaytaylor/sql-layer,wfxiang08/...
62f43793e199d1fb2c4134a0fd72ba69fd616291
src/main/java/com/darrenforsythe/jackson/ignore/model/MyObject.java
src/main/java/com/darrenforsythe/jackson/ignore/model/MyObject.java
package com.darrenforsythe.jackson.ignore.model; import java.util.Date; import com.fasterxml.jackson.annotation.JsonProperty; public class MyObject { private int id; @JsonProperty private String name; private Date date; public MyObject(){ setId(1); setName("thing"); setDate(new Date()); } public ...
package com.darrenforsythe.jackson.ignore.model; import java.util.Date; import com.fasterxml.jackson.annotation.JsonProperty; public class MyObject { private int id; @JsonProperty private String name; private Date date; public MyObject(){ setId(1); setName("thing"); setDate(new Date()); } publi...
Update with systemout to verify that the getters/setters are used.
Update with systemout to verify that the getters/setters are used.
Java
mit
Flaw101/jackson-ignore-everything
2d15967c1bb051bf9263e68edb906132fb2a53be
spreadsheet/src/main/java/fr/nelaupe/spreadsheetlib/FieldBinder.java
spreadsheet/src/main/java/fr/nelaupe/spreadsheetlib/FieldBinder.java
package fr.nelaupe.spreadsheetlib; import java.util.Collections; import java.util.Comparator; import java.util.List; /** * Created by lucas34990 on 16/2/16. */ public abstract class FieldBinder<TSelf> { private List<AnnotationFields> fields; public FieldBinder() { this.fields = init(); } ...
package fr.nelaupe.spreadsheetlib; import java.util.Collections; import java.util.Comparator; import java.util.List; /** * Created by lucas34990 on 16/2/16. */ public abstract class FieldBinder<TSelf> { private List<AnnotationFields> fields; private boolean mSortingDESC; private int mColumnSortSelecte...
Add sorting state to the binder
Add sorting state to the binder
Java
apache-2.0
lucas34/android-spreadsheet-lib,lucas34/spreadsheet-lib
a206c5036e10a922dfdf0846a48c7736bce8fe15
src/test/java/net/openhft/chronicle/wire/TextMethodTesterTest.java
src/test/java/net/openhft/chronicle/wire/TextMethodTesterTest.java
package net.openhft.chronicle.wire; import org.junit.Test; import java.io.IOException; import static org.junit.Assert.assertEquals; /** * Created by peter on 17/05/2017. */ public class TextMethodTesterTest { @Test public void run() throws IOException { TextMethodTester test = new TextMethodTester...
package net.openhft.chronicle.wire; import org.junit.Test; import java.io.IOException; import static org.junit.Assert.assertEquals; /** * Created by peter on 17/05/2017. */ public class TextMethodTesterTest { @Test public void run() throws IOException { TextMethodTester test = new TextMethodTester...
Add support for a setup phase which is not recorded.
Add support for a setup phase which is not recorded.
Java
apache-2.0
OpenHFT/Chronicle-Wire,OpenHFT/Chronicle-Wire
b87859f1545a0d2a3fa2781a84b61fb7f82483cb
tapestry-func/src/main/java/org/apache/tapestry5/func/Reducer.java
tapestry-func/src/main/java/org/apache/tapestry5/func/Reducer.java
// Copyright 2010 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
// Copyright 2010 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
Rename parameter "value" to "element" for consistency
Rename parameter "value" to "element" for consistency git-svn-id: d9b8539636d91aff9cd33ed5cd52a0cf73394897@1183040 13f79535-47bb-0310-9956-ffa450edef68
Java
apache-2.0
agileowl/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,agileowl/tapestry-5,apache/tapestry-5,agileowl/tapestry-5,apache/tapestry-5
b830f2d3d8d30623852010b0b2d4084fcf338742
xstream/src/java/com/thoughtworks/xstream/core/util/FastStack.java
xstream/src/java/com/thoughtworks/xstream/core/util/FastStack.java
package com.thoughtworks.xstream.core.util; public final class FastStack { private Object[] stack; private int pointer; public FastStack(int initialCapacity) { stack = new Object[initialCapacity]; } public Object push(Object value) { if (pointer + 1 >= stack.length) { ...
package com.thoughtworks.xstream.core.util; public final class FastStack { private Object[] stack; private int pointer; public FastStack(int initialCapacity) { stack = new Object[initialCapacity]; } public Object push(Object value) { if (pointer + 1 >= stack.length) { ...
Drop unnecessary reference to popped elements to allow finalization through GC (XSTR-264).
Drop unnecessary reference to popped elements to allow finalization through GC (XSTR-264). git-svn-id: fe6d842192ccfb78748eb71580d1ce65f168b559@649 9830eeb5-ddf4-0310-9ef7-f4b9a3e3227e
Java
bsd-3-clause
svn2github/xstream,svn2github/xstream
c67c73164730872f1eaacf48fcf591e1a2037fbd
codechicken/lib/raytracer/ExtendedMOP.java
codechicken/lib/raytracer/ExtendedMOP.java
package codechicken.lib.raytracer; import net.minecraft.entity.Entity; import net.minecraft.util.MovingObjectPosition; import net.minecraft.util.Vec3; public class ExtendedMOP extends MovingObjectPosition { public Object data; public ExtendedMOP(Entity entity, Object data) { super(entity); ...
package codechicken.lib.raytracer; import net.minecraft.entity.Entity; import net.minecraft.util.MovingObjectPosition; import net.minecraft.util.Vec3; public class ExtendedMOP extends MovingObjectPosition implements Comparable<ExtendedMOP> { public Object data; public double dist; public ExtendedMOP(...
Extend MOP for RayTracer depth sorting.
Extend MOP for RayTracer depth sorting.
Java
lgpl-2.1
TheCBProject/CodeChickenLib,Chicken-Bones/CodeChickenLib,alexbegt/CodeChickenLib,KJ4IPS/CodeChickenLib
fc3ec250f162d79947342cc8574cf0b0632851f0
src/test/java/integration/GreetingTest.java
src/test/java/integration/GreetingTest.java
package integration; import hello.Application; import org.fluentlenium.adapter.FluentTest; import org.junit.Test; import org.junit.runner.RunWith; import org.openqa.selenium.WebDriver; import org.openqa.selenium.phantomjs.PhantomJSDriver; import org.openqa.selenium.remote.DesiredCapabilities; import org.springframewor...
package integration; import hello.Application; import org.fluentlenium.adapter.FluentTest; import org.junit.Test; import org.junit.runner.RunWith; import org.openqa.selenium.WebDriver; import org.openqa.selenium.phantomjs.PhantomJSDriver; import org.openqa.selenium.remote.DesiredCapabilities; import org.springframewor...
Switch to web integration test
Switch to web integration test
Java
mit
jadekler/git-java-spring-boot-skeleton,trevorwhitney/spring-boot-skeleton,trevorwhitney/spring-boot-skeleton,jadekler/git-java-spring-boot-skeleton,jadekler/git-java-spring-boot-skeleton,trevorwhitney/spring-boot-skeleton
f6c6f86b5869882eecb9415a5a66f8980ff519bb
platform/platform-impl/src/com/intellij/diagnostic/IdeErrorsIcon.java
platform/platform-impl/src/com/intellij/diagnostic/IdeErrorsIcon.java
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.diagnostic; import com.intellij.icons.AllIcons; import com.intellij.openapi.wm.StatusBarWidget; import com.intellij.ui.AnimatedIcon.Blinking; import javax.s...
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.diagnostic; import com.intellij.icons.AllIcons; import com.intellij.openapi.wm.StatusBarWidget; import com.intellij.ui.AnimatedIcon.Blinking; import javax.s...
Remove hand cursor from ErrorsLabel
Remove hand cursor from ErrorsLabel there is changing background is used hover indication now GitOrigin-RevId: 65ebd0b94c8d306b27d306020b10115637f1827e
Java
apache-2.0
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int...
869800c708a050d188ffa44f4eab635ecffd6368
src/main/java/evercookie/EvercookieBackend.java
src/main/java/evercookie/EvercookieBackend.java
package evercookie; public interface EvercookieBackend { boolean initialize(); void set(String name, String value); void get(String name); boolean contains(String name); void clear(); void cleanup(); }
package evercookie; import java.util.Properties; public interface EvercookieBackend { boolean initialize(); void save(Properties values); Properties load(); void cleanup(); }
Change interface to only load/save a collection of properties.
Change interface to only load/save a collection of properties.
Java
bsd-2-clause
gabrielbauman/evercookie-applet
e6bee4e7c31d486612145cbc020fe8321fd65aae
smtp/src/org/subethamail/smtp/server/io/SharedTmpFileInputStream.java
smtp/src/org/subethamail/smtp/server/io/SharedTmpFileInputStream.java
package org.subethamail.smtp.server.io; import java.io.File; import java.io.IOException; import javax.mail.util.SharedFileInputStream; /** * This class uses a temporary file to store big messages and asks JVM * to delete them when destroyed. * * @author De Oliveira Edouard &lt;doe_wanted@yahoo.fr&gt;...
package org.subethamail.smtp.server.io; import java.io.File; import java.io.IOException; import javax.mail.util.SharedFileInputStream; /** * This class uses a temporary file to store big messages and asks JVM * to delete them when JVM is destroyed. * * @author De Oliveira Edouard &lt;doe_wanted@yahoo...
Fix to ensure that temp deffered file will be deleted by JVM even if shared streams are improperly closed
Fix to ensure that temp deffered file will be deleted by JVM even if shared streams are improperly closed git-svn-id: 22ec8cfea0672d04b2346d96717164b900bedbad@229 d4f6eda6-38e6-11de-8fef-1f5ae417a2df
Java
apache-2.0
vivosys/subethasmtp
1ba5550b33dd504ae1816e06126e805f3d651f72
src/main/java/nl/myndocs/database/migrator/definition/Constraint.java
src/main/java/nl/myndocs/database/migrator/definition/Constraint.java
package nl.myndocs.database.migrator.definition; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Optional; public class Constraint { public enum TYPE { INDEX, UNIQUE } private String constraintName; private Optional<TYPE> type; private Co...
package nl.myndocs.database.migrator.definition; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Optional; public class Constraint { public enum TYPE { INDEX, UNIQUE, FOREIGN_KEY } private String constraintName; private Optional<TYPE> type; ...
Prepare FOREIGN_KEY as ALTER TABLE
Prepare FOREIGN_KEY as ALTER TABLE
Java
mit
adhesivee/database-migrator
859bdabe09b020cf662381534dc72ae1d66dc9b9
src/test/java/seedu/taskmanager/commons/core/ConfigTest.java
src/test/java/seedu/taskmanager/commons/core/ConfigTest.java
package seedu.taskmanager.commons.core; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; public class ConfigTest { @Rule public Expected...
package seedu.taskmanager.commons.core; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; public class ConfigTest { @Rule public Expected...
Fix JUnit test due to default config change
Fix JUnit test due to default config change
Java
mit
CS2103JAN2017-F12-B3/main,CS2103JAN2017-F12-B3/main
42d0984fdb2f37b4a4f82f72078d157c06daf0e4
src/main/java/com/googlesource/gerrit/plugins/reviewers/Module.java
src/main/java/com/googlesource/gerrit/plugins/reviewers/Module.java
// Copyright (C) 2013 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
// Copyright (C) 2013 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
Allow configuration of reviewers on project info screen
Allow configuration of reviewers on project info screen Change-Id: Ib529ce8b2593daba58a2c8f737a932323b2f9220
Java
apache-2.0
GerritCodeReview/plugins_reviewers,davido/gerrit-reviewers-plugin,davido/gerrit-reviewers-plugin,GerritCodeReview/plugins_reviewers,GerritCodeReview/plugins_reviewers
66b24fda075c51d77b5aa581ad339f37371e326b
src/main/java/mnm/mods/util/TweakTools.java
src/main/java/mnm/mods/util/TweakTools.java
package mnm.mods.util; import java.util.Iterator; import java.util.List; import net.minecraft.launchwrapper.ITweaker; import net.minecraft.launchwrapper.Launch; public class TweakTools { /** * Returns whether LiteLoader is loaded into LaunchWrapper. * * @return True if it's loaded */ pub...
package mnm.mods.util; import net.minecraftforge.fml.common.FMLCommonHandler; import com.mumfrey.liteloader.core.LiteLoader; public class TweakTools { /** * Returns whether LiteLoader is currently loaded. * * @return True if it's loaded */ public static boolean isLiteLoaderLoaded() { ...
Make the tweak tools actually useful. Fix always returning false because the Tweaks list is empty.
Make the tweak tools actually useful. Fix always returning false because the Tweaks list is empty.
Java
apache-2.0
killjoy1221/MnM-Utils
ee14abbb6446e19258b1aa31b714cb663ff35fd6
subversion/bindings/java/jni/org/tigris/subversion/lib/StatusKind.java
subversion/bindings/java/jni/org/tigris/subversion/lib/StatusKind.java
package org.tigris.subversion.lib; /** * ==================================================================== * Copyright (c) 2000-2001 CollabNet. All rights reserved. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms * are ...
package org.tigris.subversion.lib; /** * ==================================================================== * Copyright (c) 2000-2001 CollabNet. All rights reserved. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms * are ...
Integrate the hashtable Unit testcases.
Integrate the hashtable Unit testcases. * tests/AllTests.java (suite): added HashtableTests git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@841027 13f79535-47bb-0310-9956-ffa450edef68
Java
apache-2.0
YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion
7feae3ea2035a37c2b249601ab59c7651bafa5a8
android/app/src/main/java/com/race604/react/view/CustomReactPackage.java
android/app/src/main/java/com/race604/react/view/CustomReactPackage.java
package com.race604.react.view; import com.facebook.react.ReactPackage; import com.facebook.react.bridge.JavaScriptModule; import com.facebook.react.bridge.NativeModule; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.shell.MainReactPackage; import com.facebook.react.uimanager.ViewM...
package com.race604.react.view; import com.facebook.react.ReactPackage; import com.facebook.react.bridge.JavaScriptModule; import com.facebook.react.bridge.NativeModule; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.shell.MainReactPackage; import com.facebook.react.uimanager.ViewM...
Fix failed when compile with java 1.6
Fix failed when compile with java 1.6
Java
mit
race604/ZhiHuDaily-React-Native,race604/ZhiHuDaily-React-Native
e4dbe7f2cbdd44386c707ca40b706ff5235690e5
LoC/src/loc/ConfigFileReader.java
LoC/src/loc/ConfigFileReader.java
package loc; import loc.filter.Filter; import loc.filter.FilterFactory; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.nio.file.Path; import java.util.ArrayList; import java.util.List; public class ConfigFileReader { public static Filter[] readFilters(Path filePath...
package loc; import loc.filter.Filter; import loc.filter.FilterFactory; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.nio.file.Path; import java.util.ArrayList; import java.util.HashSet; import java.util.List; public class ConfigFileReader { public static Filter[]...
Fix bug with duplicated filters in config Change ArrayList container to HashSet container
Fix bug with duplicated filters in config Change ArrayList container to HashSet container
Java
mit
RoyPy/15201-bogush
1d36d56766ab6ced877ba0f03e971e44cb92fbab
src/test/java/com/google/sps/AuthInfoTest.java
src/test/java/com/google/sps/AuthInfoTest.java
package com.google.sps.tests; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @RunWith(JUnit4.class) public final class AuthInfoTest { @Test public void example() { // placeholder test to show that tests are evaluated Assert.assertEquals...
package com.google.sps; import com.google.sps.data.AuthInfo; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @RunWith(JUnit4.class) public final class AuthInfoTest { @Test public void testDefaultBuilderValues() { AuthInfo uninitializedAuthInf...
Add tests for AuthInfo value class
Add tests for AuthInfo value class
Java
apache-2.0
googleinterns/step27-2020,googleinterns/step27-2020,googleinterns/step27-2020
789a69b38e6428be3adb1d11896099d45465b063
core/src/main/java/org/realityforge/arez/api2/Derivation.java
core/src/main/java/org/realityforge/arez/api2/Derivation.java
package org.realityforge.arez.api2; import javax.annotation.Nonnull; public class Derivation extends Node { /** * The stalest state of the associated observables that are also derivations. */ @Nonnull private ObserverState _dependenciesState = ObserverState.NOT_TRACKING; /** * The observables that ...
package org.realityforge.arez.api2; import javax.annotation.Nonnull; public class Derivation extends Node { /** * The stalest state of the associated observables that are also derivations. */ @Nonnull private ObserverState _dependenciesState = ObserverState.NOT_TRACKING; /** * The observables that ...
Add method that asserts invariants
Add method that asserts invariants
Java
apache-2.0
realityforge/arez,realityforge/arez,realityforge/arez
71b68cd728ba760b4cf76daddfe48f1eed5dda60
src/test/java/jp/ac/nii/prl/mape/autoscaling/analysis/TestContext.java
src/test/java/jp/ac/nii/prl/mape/autoscaling/analysis/TestContext.java
package jp.ac.nii.prl.mape.autoscaling.analysis; import org.mockito.Mockito; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import jp.ac.nii.prl.mape.autoscaling.analysis.service.DeploymentService; @Configuration public class TestContext { @Bean pu...
package jp.ac.nii.prl.mape.autoscaling.analysis; import org.mockito.Mockito; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import jp.ac.nii.prl.mape.autoscaling.analysis.service.DeploymentService; import jp.ac.nii.prl.mape.autoscaling.analysis.service...
Add VirtualMachineController mock to testing context
Add VirtualMachineController mock to testing context
Java
mit
prl-tokyo/MAPE-autoscaling-analysis-service,prl-tokyo/MAPE-autoscaling-analysis-service
0061fbd0e515792b55453dea156bb1b49f745841
Magic/src/main/java/com/elmakers/mine/bukkit/magic/dao/CastingCost.java
Magic/src/main/java/com/elmakers/mine/bukkit/magic/dao/CastingCost.java
package com.elmakers.mine.bukkit.magic.dao; import org.bukkit.Material; import com.elmakers.mine.bukkit.persisted.PersistClass; import com.elmakers.mine.bukkit.persisted.PersistField; import com.elmakers.mine.bukkit.persistence.dao.MaterialData; @PersistClass(schema="magic", name="cost", contained=true) public class...
package com.elmakers.mine.bukkit.magic.dao; import org.bukkit.Material; import com.elmakers.mine.bukkit.persisted.PersistClass; import com.elmakers.mine.bukkit.persisted.PersistField; import com.elmakers.mine.bukkit.persistence.dao.MaterialData; @PersistClass(schema="magic", name="cost", contained=true) public class...
Add mana to casting cost.
Add mana to casting cost.
Java
mit
elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicPlugin
4094d12f5dab577fb3a564a810630014b7f17d2d
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(); URLMap getMap(short id); void loadMap(String world, short id, String url, String name, int x, int y, int width, int height, Integer priority); ...
Add API method to fetch a URLMap by id
Add API method to fetch a URLMap by id
Java
mit
elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicPlugin
f41192edd377fdb28373e8bb1ed548adaf2ddca5
src/main/java/com/boundary/sdk/event/BoundaryEventDaemon.java
src/main/java/com/boundary/sdk/event/BoundaryEventDaemon.java
package com.boundary.sdk.event; import java.util.Date; import java.util.Timer; import java.util.TimerTask; import org.apache.commons.daemon.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; class EchoTask extends TimerTask { @Override public void run() { System.out.println(new Date() + " run...
// Copyright 2014 Boundary, 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 ...
Clean up ; remove unused imports ; license header
Clean up ; remove unused imports ; license header
Java
apache-2.0
boundary/boundary-event-sdk,boundary/boundary-event-sdk,boundary/boundary-event-sdk,boundary/boundary-event-sdk,boundary/boundary-event-sdk,boundary/boundary-event-sdk,boundary/boundary-event-sdk
455907d233c2cb33663968198ddb54180c5d0781
src/main/java/com/eatnumber1/util/concurrent/ThreadUtils.java
src/main/java/com/eatnumber1/util/concurrent/ThreadUtils.java
/* * Copyright 2007 Russell Harmon * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
/* * Copyright 2007 Russell Harmon * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
Add runnable method to convert a callable into a runnable.
Add runnable method to convert a callable into a runnable.
Java
apache-2.0
eatnumber1/javautil,eatnumber1/javautil
2bd75c7f8b455810ed72ba9a6533099cc2436cb3
src/main/java/nu/studer/teamcity/buildscan/internal/Util.java
src/main/java/nu/studer/teamcity/buildscan/internal/Util.java
package nu.studer.teamcity.buildscan.internal; import java.util.Optional; import java.util.regex.Matcher; import java.util.regex.Pattern; public final class Util { private static final Pattern BUILD_SCAN_URL_PATTERN = Pattern.compile("https?://.*/s/(.*)"); private Util() { } public static boolean i...
package nu.studer.teamcity.buildscan.internal; import java.util.Optional; import java.util.regex.Matcher; import java.util.regex.Pattern; final class Util { private static final Pattern BUILD_SCAN_URL_PATTERN = Pattern.compile("https?://.*/s/(.*)"); static boolean isBuildScanUrl(String text) { retur...
Reduce class and method visibility
Reduce class and method visibility
Java
apache-2.0
etiennestuder/teamcity-build-scan-plugin,etiennestuder/teamcity-build-scan-plugin,etiennestuder/teamcity-build-scan-plugin
0c629dadf707718f31407a5254a4f81cbd28b601
src/main/java/org/dita/dost/platform/ListTranstypeAction.java
src/main/java/org/dita/dost/platform/ListTranstypeAction.java
/* * This file is part of the DITA Open Toolkit project. * * Copyright 2011 Jarno Elovirta * * See the accompanying LICENSE file for applicable license. */ package org.dita.dost.platform; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util....
/* * This file is part of the DITA Open Toolkit project. * * Copyright 2011 Jarno Elovirta * * See the accompanying LICENSE file for applicable license. */ package org.dita.dost.platform; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util....
Drop duplicates when listing transform types
Drop duplicates when listing transform types Signed-off-by: Robert D Anderson <4907d442684b61876fae0471c4d2d08024a9ca72@us.ibm.com>
Java
apache-2.0
dita-ot/dita-ot,infotexture/dita-ot,infotexture/dita-ot,dita-ot/dita-ot,drmacro/dita-ot,infotexture/dita-ot,shaneataylor/dita-ot,drmacro/dita-ot,shaneataylor/dita-ot,infotexture/dita-ot,shaneataylor/dita-ot,drmacro/dita-ot,shaneataylor/dita-ot,infotexture/dita-ot,dita-ot/dita-ot,dita-ot/dita-ot,shaneataylor/dita-ot,drm...
40df12ab28555cc810073e9b16b8a9ce25f85618
src/main/java/com/hp/autonomy/types/requests/idol/actions/tags/TagName.java
src/main/java/com/hp/autonomy/types/requests/idol/actions/tags/TagName.java
/* * Copyright 2015 Hewlett-Packard Development Company, L.P. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. */ package com.hp.autonomy.types.requests.idol.actions.tags; import lombok.Data; import java.io.Serializable; @SuppressWarnings({"Weaker...
/* * Copyright 2015 Hewlett-Packard Development Company, L.P. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. */ package com.hp.autonomy.types.requests.idol.actions.tags; import com.fasterxml.jackson.annotation.JsonCreator; import lombok.EqualsAndH...
Undo change a3351c6 as the update to haven-search-components required to use it is currently on hold
Undo change a3351c6 as the update to haven-search-components required to use it is currently on hold [rev. matthew.gordon]
Java
mit
hpe-idol/java-aci-types,hpe-idol/java-aci-types,hpautonomy/java-aci-types,hpautonomy/java-aci-types
d8fc931822bbbf3fe5dbd27657925a6c9cf2b5f4
src/com/team254/frc2013/commands/ShootCommand.java
src/com/team254/frc2013/commands/ShootCommand.java
package com.team254.frc2013.commands; import edu.wpi.first.wpilibj.Timer; /** * Shoots a disc that is already loaded into the shooter. * * @author tom@team254.com (Tom Bottiglieri) * @author pat@team254.com (Patrick Fairbank) */ public class ShootCommand extends CommandBase { private Timer shooterTimer; pub...
package com.team254.frc2013.commands; import edu.wpi.first.wpilibj.Timer; /** * Shoots a disc that is already loaded into the shooter. * * @author tom@team254.com (Tom Bottiglieri) * @author pat@team254.com (Patrick Fairbank) */ public class ShootCommand extends CommandBase { private Timer shooterTimer; pub...
Make conveyor run backwards as disc is shooting to prevent jams
Make conveyor run backwards as disc is shooting to prevent jams
Java
bsd-2-clause
Team254/FRC-2013,Team254/FRC-2013
c074d9ad8084b9c04460a823137bdef31550782a
Source/JNA/waffle-tomcat9/src/test/java/waffle/apache/WindowsRealmTests.java
Source/JNA/waffle-tomcat9/src/test/java/waffle/apache/WindowsRealmTests.java
/** * Waffle (https://github.com/Waffle/waffle) * * Copyright (c) 2010-2016 Application Security, Inc. * * All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse * Public License v1.0 which accompanies this distribution, and is available at * https://ww...
/** * Waffle (https://github.com/Waffle/waffle) * * Copyright (c) 2010-2017 Application Security, Inc. * * All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse * Public License v1.0 which accompanies this distribution, and is available at * https://ww...
Correct test to use the instantiated class instead
[ci] Correct test to use the instantiated class instead
Java
mit
dblock/waffle,dblock/waffle,Waffle/waffle,dblock/waffle,hazendaz/waffle,Waffle/waffle,Waffle/waffle,hazendaz/waffle,hazendaz/waffle,dblock/waffle
8472cdf128c3b08252d73cae39a3ee12a1e13ed8
Sources/com/kaviju/accesscontrol/authentication/RandomPasswordGenerator.java
Sources/com/kaviju/accesscontrol/authentication/RandomPasswordGenerator.java
package com.kaviju.accesscontrol.authentication; import java.util.Random; public class RandomPasswordGenerator { static final String possibleChars = "23456789abcdefghjklmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ@#$%?&*()-+"; static Random rnd = new Random(); static public String newPassword(int len) { { StringBui...
package com.kaviju.accesscontrol.authentication; import java.util.Random; public class RandomPasswordGenerator { static final String possibleChars = "23456789abcdefghjklmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ@#$%?&*()-+"; static final String possibleDigits = "0123456789"; static Random rnd = new Random(); static p...
Add a digits only password generator.
Add a digits only password generator.
Java
apache-2.0
Kaviju/KAAccessControl,Kaviju/KAAccessControl
69a47852dced2f53cc0a29361c9b6b6229ef0b9e
devhub-server/web/src/main/java/nl/tudelft/ewi/dea/jaxrs/html/LoginPage.java
devhub-server/web/src/main/java/nl/tudelft/ewi/dea/jaxrs/html/LoginPage.java
package nl.tudelft.ewi.dea.jaxrs.html; import javax.inject.Inject; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import nl.tudelft.ewi.dea.BuildInfo; import nl.tudelft.ewi.dea.jaxrs.html.utils.Renderer; import com.google.inject.persist.Transactional;...
package nl.tudelft.ewi.dea.jaxrs.html; import java.net.URI; import javax.inject.Inject; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import nl.tudelft.ewi.dea.BuildInfo; import nl.tudelft.ewi.dea.jaxrs.html.utils.Re...
Fix issue-45: When already logged in, the login page should redirect to the dashboard.
Fix issue-45: When already logged in, the login page should redirect to the dashboard.
Java
apache-2.0
devhub-tud/devhub-prototype,devhub-tud/devhub-prototype,devhub-tud/devhub-prototype
82be2217cadf6a70bc5de920f62a1231ae08bd9a
src/test/java/hello/HomePageTest.java
src/test/java/hello/HomePageTest.java
package hello; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org....
package hello; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org....
Remove the test for / via the API.
Remove the test for / via the API. Makes no sense; the root of the API is /api.
Java
bsd-3-clause
hainesr/mvc-dev,hainesr/mvc-dev
ca8d51a2ef6edcd94501d38fde799c9163b7d770
app/src/main/java/in/testpress/testpress/events/SmsReceivingEvent.java
app/src/main/java/in/testpress/testpress/events/SmsReceivingEvent.java
package in.testpress.testpress.events; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.SmsMessage; import in.testpress.testpress.R; import in.testpress.testpress.authenticator.CodeVerificationActivity.Timer; im...
package in.testpress.testpress.events; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.SmsMessage; import in.testpress.testpress.authenticator.CodeVerificationActivity.Timer; public class SmsReceivingEvent ext...
Modify sms format in sms receiving event
Modify sms format in sms receiving event Sms regex format is changed to support all institutes names.
Java
mit
testpress/android,testpress/android,testpress/android,testpress/android,testpress/android
28405558b8c4af1142884ca7170fef1440dd0c80
reactfx/src/test/java/org/reactfx/PrependEventStreamTest.java
reactfx/src/test/java/org/reactfx/PrependEventStreamTest.java
package org.reactfx; import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; public class PrependEventStreamTest { @Test public void test() { EventCounter countsTwice = new EventCounter(); EventCounter countsOnce = new EventCounter(); EventSource<Boolean> ...
package org.reactfx; import static org.junit.Assert.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.junit.Test; import org.reactfx.value.Var; public class PrependEventStreamTest { @Test public void test() { EventCounter countsTwice = new EventCounter(); ...
Add failing test for prepend.
Add failing test for prepend.
Java
bsd-2-clause
JordanMartinez/ReactFX,TomasMikula/ReactFX
ca30315c45efa8e644b82b8c46c365532bcf6432
src/main/java/de/nedelosk/modularmachines/api/modules/IModuleCasing.java
src/main/java/de/nedelosk/modularmachines/api/modules/IModuleCasing.java
package de.nedelosk.modularmachines.api.modules; import de.nedelosk.modularmachines.api.modules.energy.IModuleHeat; import de.nedelosk.modularmachines.api.modules.storaged.IModuleModuleStorage; public interface IModuleCasing extends IModuleModuleStorage, IModuleTickable, IModuleHeat { }
package de.nedelosk.modularmachines.api.modules; import de.nedelosk.modularmachines.api.modules.energy.IModuleHeat; import de.nedelosk.modularmachines.api.modules.storaged.IModuleModuleStorage; public interface IModuleCasing extends IModuleModuleStorage { }
Remove tickable interface from casing
Remove tickable interface from casing
Java
mit
Nedelosk/Modular-Machines,Nedelosk/Modular-Machines
94270f30ccb4f6e26ae2944325dcb78fc5e83e5a
sqlite/src/main/java/org/jdbi/v3/sqlite3/URLColumnMapper.java
sqlite/src/main/java/org/jdbi/v3/sqlite3/URLColumnMapper.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 * distributed u...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
Throw exception when url could not be created from result set.
Throw exception when url could not be created from result set.
Java
apache-2.0
hgschmie/jdbi,jdbi/jdbi,hgschmie/jdbi,jdbi/jdbi,jdbi/jdbi,john9x/jdbi,hgschmie/jdbi,john9x/jdbi
1bba5b11da0421b299d4fe2de30d89ccc4a1ba5c
src/main/java/in/twizmwaz/cardinal/module/modules/filter/parsers/KillstreakFilterParser.java
src/main/java/in/twizmwaz/cardinal/module/modules/filter/parsers/KillstreakFilterParser.java
package in.twizmwaz.cardinal.module.modules.filter.parsers; import in.twizmwaz.cardinal.module.modules.filter.FilterParser; import in.twizmwaz.cardinal.util.NumUtils; import org.jdom2.Element; public class KillstreakFilterParser extends FilterParser { private int min, max, count; private boolean repeat; ...
package in.twizmwaz.cardinal.module.modules.filter.parsers; import in.twizmwaz.cardinal.module.modules.filter.FilterParser; import in.twizmwaz.cardinal.util.NumUtils; import org.jdom2.Element; public class KillstreakFilterParser extends FilterParser { private int min, max, count; private boolean repeat; ...
Fix an NPE when parsing killstreaks
Fix an NPE when parsing killstreaks
Java
mit
dentmaged/CardinalPGM,dentmaged/Cardinal-Dev,dentmaged/Cardinal-Dev,Pablete1234/CardinalPGM,TheMolkaPL/CardinalPGM,dentmaged/Cardinal-Plus,CaptainElliott/CardinalPGM,twizmwazin/CardinalPGM,Alan736/NotCardinalPGM,Aaron1011/CardinalPGM,SungMatt/CardinalPGM,Electroid/ExperimentalPGM,iPGz/CardinalPGM,angelitorb99/CardinalP...
93b4b71e31c0d77616efe3fcadcef3d495247bba
Libs/LibWorkflow/src/main/java/fr/synchrotron/soleil/ica/ci/lib/workflow/DefaultWorkflow.java
Libs/LibWorkflow/src/main/java/fr/synchrotron/soleil/ica/ci/lib/workflow/DefaultWorkflow.java
package fr.synchrotron.soleil.ica.ci.lib.workflow; import java.util.Arrays; /** * @author Gregory Boissinot */ public class DefaultWorkflow extends Workflow { private static final String DEFAULT_STATUS_BUILD = "BUILD"; private static final String DEFAULT_STATUS_INTEGRATION = "INTEGRATION"; private stat...
package fr.synchrotron.soleil.ica.ci.lib.workflow; import java.util.Arrays; /** * @author Gregory Boissinot */ public class DefaultWorkflow extends Workflow { private static final String DEFAULT_STATUS_BUILD = "BUILD"; private static final String DEFAULT_STATUS_INTEGRATION = "INTEGRATION"; private stat...
Fix bug for release status
Fix bug for release status
Java
mit
synchrotron-soleil-ica/continuous-materials,synchrotron-soleil-ica/continuous-materials,synchrotron-soleil-ica/continuous-materials
4755d597fbabdb9e1fcdd79a222109199460d841
plugins/com.redhat.ceylon.eclipse.ui/src/com/redhat/ceylon/eclipse/core/model/CeylonUnit.java
plugins/com.redhat.ceylon.eclipse.ui/src/com/redhat/ceylon/eclipse/core/model/CeylonUnit.java
package com.redhat.ceylon.eclipse.core.model; import java.lang.ref.WeakReference; import com.redhat.ceylon.compiler.typechecker.context.PhasedUnit; import com.redhat.ceylon.eclipse.core.typechecker.IdePhasedUnit; public abstract class CeylonUnit extends IdeUnit { public CeylonUnit() { phasedUnitRef ...
package com.redhat.ceylon.eclipse.core.model; import java.lang.ref.WeakReference; import com.redhat.ceylon.compiler.typechecker.context.PhasedUnit; import com.redhat.ceylon.compiler.typechecker.tree.Tree; import com.redhat.ceylon.eclipse.core.typechecker.IdePhasedUnit; public abstract class CeylonUnit extends IdeUni...
Add a CompilationUnit getter on the model Unit (to avoid testing for null each time)
Add a CompilationUnit getter on the model Unit (to avoid testing for null each time)
Java
epl-1.0
rohitmohan96/ceylon-ide-eclipse,rohitmohan96/ceylon-ide-eclipse
6d815b0616461aea10d9fbcbd4aea5e54ca9e4b2
src/main/java/com/lagopusempire/lagopuscommandsystem/parsing/SyntaxParserBase.java
src/main/java/com/lagopusempire/lagopuscommandsystem/parsing/SyntaxParserBase.java
package com.lagopusempire.lagopuscommandsystem.parsing; import java.util.ArrayList; import java.util.List; /** * * @author MrZoraman */ public abstract class SyntaxParserBase { private final String script; private final StringBuilder builder = new StringBuilder(); private final List<String> elemen...
package com.lagopusempire.lagopuscommandsystem.parsing; import java.util.ArrayList; import java.util.List; /** * * @author MrZoraman */ public abstract class SyntaxParserBase { private final String script; private final StringBuilder builder = new StringBuilder(); private final List<String> elemen...
Revert "cleaned up code a little"
Revert "cleaned up code a little" This reverts commit 7ddff91c9736bcedb7c03bb036ade86776885079.
Java
isc
MrZoraman/LagopusCommandSystem
194c232c1889a360b6ebeee465be27f9baa06843
robolectric-tests/src/test/java/com/example/RobolectricGradleSubModuleTestRunner.java
robolectric-tests/src/test/java/com/example/RobolectricGradleSubModuleTestRunner.java
package com.example; import org.junit.runners.model.InitializationError; import org.robolectric.AndroidManifest; import org.robolectric.RobolectricTestRunner; import org.robolectric.annotation.Config; import org.robolectric.res.Fs; /** * A Robolectric TestRunner for running tests in a Gradle SubModule. * Created by...
package com.example; import org.junit.runners.model.InitializationError; import org.robolectric.AndroidManifest; import org.robolectric.RobolectricTestRunner; import org.robolectric.annotation.Config; import org.robolectric.res.Fs; /** * A Robolectric TestRunner for running tests in a Gradle SubModule. * Created by...
Correct AndroidManifest and res paths
Correct AndroidManifest and res paths This commit corrects the relative paths to AndroidManifest.xml and the res directory in RobolectricGradleSubModuleTestRunner.class
Java
unlicense
jdonmoyer/deckard-gradle,eggertj12/Oturgjold
cccf8d04d6157138440d1b820f50db8a6702454d
platform/lang-impl/src/com/intellij/openapi/vfs/encoding/FileEncodingConfigurableProvider.java
platform/lang-impl/src/com/intellij/openapi/vfs/encoding/FileEncodingConfigurableProvider.java
/* * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
/* * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Return "File Encodings" settings page for RubyMine
RUBY-16725: Return "File Encodings" settings page for RubyMine
Java
apache-2.0
tmpgit/intellij-community,izonder/intellij-community,kdwink/intellij-community,muntasirsyed/intellij-community,nicolargo/intellij-community,FHannes/intellij-community,asedunov/intellij-community,adedayo/intellij-community,xfournet/intellij-community,samthor/intellij-community,fengbaicanhe/intellij-community,youdonghai/...
a6c69fa52759e92e19fc289450e8a6d697ceb913
android_mobile/src/main/java/com/alexstyl/specialdates/search/ContactEventViewModelFactory.java
android_mobile/src/main/java/com/alexstyl/specialdates/search/ContactEventViewModelFactory.java
package com.alexstyl.specialdates.search; import com.alexstyl.specialdates.contact.Contact; import com.alexstyl.specialdates.date.ContactEvent; import com.alexstyl.specialdates.events.peopleevents.EventType; import java.util.ArrayList; import java.util.List; final class ContactEventViewModelFactory { private fi...
package com.alexstyl.specialdates.search; import com.alexstyl.specialdates.contact.Contact; import com.alexstyl.specialdates.date.ContactEvent; import com.alexstyl.specialdates.upcoming.EventColors; import java.util.ArrayList; import java.util.List; final class ContactEventViewModelFactory { private final Conta...
Use EventColors to pass the right event color
Use EventColors to pass the right event color
Java
mit
alexstyl/Memento-Namedays,alexstyl/Memento-Calendar,auricgoldfinger/Memento-Namedays,auricgoldfinger/Memento-Namedays,alexstyl/Memento-Namedays,alexstyl/Memento-Calendar,alexstyl/Memento-Calendar
94eb5bc20a28f1472f6dbdbae3a8e9503c7e6b0f
org/xbill/DNS/ResolveThread.java
org/xbill/DNS/ResolveThread.java
// Copyright (c) 1999 Brian Wellington (bwelling@xbill.org) // Portions Copyright (c) 1999 Network Associates, Inc. package org.xbill.DNS; import java.util.*; import java.io.*; import java.net.*; /** * A special-purpose thread used by Resolvers (both SimpleResolver and * ExtendedResolver) to perform asynchronous q...
// Copyright (c) 1999 Brian Wellington (bwelling@xbill.org) // Portions Copyright (c) 1999 Network Associates, Inc. package org.xbill.DNS; import java.util.*; import java.io.*; import java.net.*; /** * A special-purpose thread used by Resolvers (both SimpleResolver and * ExtendedResolver) to perform asynchronous q...
Make this a subclass of Thread.
Make this a subclass of Thread.
Java
bsd-2-clause
sebastianscatularo/javadns,sebastianscatularo/javadns
86417ea4cbc13c194af5ee7170be2bb5ae90385b
jaxrs/swagger/src/main/java/org/wildfly/swarm/examples/jaxrs/swagger/TimeResource.java
jaxrs/swagger/src/main/java/org/wildfly/swarm/examples/jaxrs/swagger/TimeResource.java
package org.wildfly.swarm.examples.jaxrs.swagger; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import io.swagger.annotations.*; import javax.ws.rs.core.MediaType; import org.joda.time.DateTime; @Path("/time") @Api(value = "/time", description = "Get the time", tags = "time") @Produce...
package org.wildfly.swarm.examples.jaxrs.swagger; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import io.swagger.annotations.*; import javax.ws.rs.core.MediaType; import org.joda.time.DateTime; @Path("/time") @Api(value = "/time", description = "Get the time", tags = "time") @Produce...
Change the format into json because Swagger UI requires strict JSON
Change the format into json because Swagger UI requires strict JSON
Java
apache-2.0
wildfly-swarm/wildfly-swarm-examples,emag/wildfly-swarm-examples,mstahv/wildfly-swarm-examples,wildfly-swarm/wildfly-swarm-examples,mstahv/wildfly-swarm-examples,emag/wildfly-swarm-examples,mstahv/wildfly-swarm-examples,wildfly-swarm/wildfly-swarm-examples,wildfly-swarm/wildfly-swarm-examples,mstahv/wildfly-swarm-examp...
231a249e6931827b5dd97beaee98172c42e29f98
library/src/main/java/com/strohwitwer/awesomevalidation/validators/ColorationValidator.java
library/src/main/java/com/strohwitwer/awesomevalidation/validators/ColorationValidator.java
package com.strohwitwer.awesomevalidation.validators; import android.graphics.Color; import android.widget.EditText; import com.strohwitwer.awesomevalidation.ValidationHolder; import com.strohwitwer.awesomevalidation.helper.RangeHelper; import com.strohwitwer.awesomevalidation.helper.SpanHelper; import com.strohwitwe...
package com.strohwitwer.awesomevalidation.validators; import android.graphics.Color; import android.widget.EditText; import com.strohwitwer.awesomevalidation.ValidationHolder; import com.strohwitwer.awesomevalidation.helper.RangeHelper; import com.strohwitwer.awesomevalidation.helper.SpanHelper; import com.strohwitwe...
Add the missing halt() call in trigger method to clear previous styles.
Add the missing halt() call in trigger method to clear previous styles.
Java
mit
thyrlian/AwesomeValidation,thyrlian/AwesomeValidation,duaiyun1314/AwesomeValidation,andyiac/AwesomeValidation,0359xiaodong/AwesomeValidation,java02014/AwesomeValidation
b5098ce702d590e665ecd01034385420dc506c75
Signs/src/main/java/tk/martijn_heil/kingdomessentials/signs/ExecutableSignRegister.java
Signs/src/main/java/tk/martijn_heil/kingdomessentials/signs/ExecutableSignRegister.java
package tk.martijn_heil.kingdomessentials.signs; import lombok.Getter; import org.jetbrains.annotations.Nullable; import java.util.ArrayList; import java.util.List; import static com.google.common.base.Preconditions.checkArgument; public class ExecutableSignRegister { @Getter private List<ExecutableSign> regis...
package tk.martijn_heil.kingdomessentials.signs; import lombok.Getter; import org.jetbrains.annotations.Nullable; import java.util.ArrayList; import java.util.List; import static com.google.common.base.Preconditions.checkArgument; public class ExecutableSignRegister { @Getter private List<ExecutableSign> regis...
Fix a new ExecutableSign not being added to the register
Fix a new ExecutableSign not being added to the register
Java
mit
martijn-heil/KingdomEssentials
28235a6e75d402b38ae29e1112a347e762ac3cbd
src/main/java/com/googlesource/gerrit/plugins/cookbook/PrintHelloWorldCommand.java
src/main/java/com/googlesource/gerrit/plugins/cookbook/PrintHelloWorldCommand.java
// Copyright (C) 2013 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
// Copyright (C) 2013 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
Remove unnecessary exceptions from hello command class declaration
Remove unnecessary exceptions from hello command class declaration Change-Id: Idf3ee766d46ce6d51a7a436a18d40460f38554ef
Java
apache-2.0
GerritCodeReview/plugins_cookbook-plugin,GerritCodeReview/plugins_cookbook-plugin,akilman/appd-hackathon-2016,GerritCodeReview/plugins_cookbook-plugin,pgroudas/gerrit-keep-approvals,akilman/appd-hackathon-2016,akilman/appd-hackathon-2016,pgroudas/gerrit-keep-approvals
89e395090a26e5392e1456074d448dc3f10e080e
SimpleWeatherForecast/src/main/java/fr/tvbarthel/apps/simpleweatherforcast/ui/MoreAppsAdapter.java
SimpleWeatherForecast/src/main/java/fr/tvbarthel/apps/simpleweatherforcast/ui/MoreAppsAdapter.java
package fr.tvbarthel.apps.simpleweatherforcast.ui; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.RelativeLayout; import android.widget.TextView; imp...
package fr.tvbarthel.apps.simpleweatherforcast.ui; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.RelativeLayout; import android.widget.TextView; imp...
Use a view holder pattern
Use a view holder pattern
Java
apache-2.0
tvbarthel/SimpleWeatherForecast,tvbarthel/SimpleWeatherForecast
c7f98156f86f062c0143f4d9713b2eab896d53c4
container-disc/src/test/java/com/yahoo/container/jdisc/metric/MetricUpdaterTest.java
container-disc/src/test/java/com/yahoo/container/jdisc/metric/MetricUpdaterTest.java
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.container.jdisc.metric; import com.yahoo.jdisc.Metric; import com.yahoo.jdisc.application.MetricConsumer; import com.yahoo.jdisc.core.ActiveContainerStatistics; import org.junit.Test; imp...
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.container.jdisc.metric; import com.yahoo.jdisc.Metric; import com.yahoo.jdisc.application.MetricConsumer; import com.yahoo.jdisc.core.ActiveContainerStatistics; import org.junit.Test; imp...
Revert "Mock ActiveContainerStatistics as its constructor is package-private"
Revert "Mock ActiveContainerStatistics as its constructor is package-private" This reverts commit fa682ab2d9f18204c4c9018506104f0ba3744136.
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
8be597f27bf477880503d1d4aaeeed82c1dbba35
xchange-binance/src/main/java/org/knowm/xchange/binance/dto/account/BinanceAccountInformation.java
xchange-binance/src/main/java/org/knowm/xchange/binance/dto/account/BinanceAccountInformation.java
package org.knowm.xchange.binance.dto.account; import com.fasterxml.jackson.annotation.JsonProperty; import java.math.BigDecimal; import java.util.List; public final class BinanceAccountInformation { public final BigDecimal makerCommission; public final BigDecimal takerCommission; public final BigDecimal buyer...
package org.knowm.xchange.binance.dto.account; import java.math.BigDecimal; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; public final class BinanceAccountInformation { public final BigDecimal makerCommission; public final BigDecimal takerCommission; public final BigDecimal buye...
Include timestamp in balance requests
[binance] Include timestamp in balance requests
Java
mit
douggie/XChange
95104f9f98d51d8c9c470f35984a12affe488755
subprojects/model-core/src/main/java/org/gradle/model/internal/registry/RuleContext.java
subprojects/model-core/src/main/java/org/gradle/model/internal/registry/RuleContext.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 applica...
/* * 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 applica...
Use an ArrayDeque instead of LinkedList to store current rule execution context
Use an ArrayDeque instead of LinkedList to store current rule execution context Array-based collections perform better than linked lists in general, as they don’t need to do memory allocation for each add/remove() call.
Java
apache-2.0
blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gstevey/gradle,robinverduijn/gradle,lsmaira/gradle,lsmaira/gradle,gstevey/gradle,robinverduijn/gradle,gsteve...
6bc47c2456e7bc495a63ec758fec3a4d33f27363
client/GeoipInfo.java
client/GeoipInfo.java
import org.json.simple.JSONObject; /** Representation of the geoip information for a given IP address, created from a JSON representation of the information returned by the Pings server. Includes the longitude and latitude, and the city and country. */ public class GeoipInfo { final public String city; ...
import org.json.simple.JSONObject; /** Representation of the geoip information for a given IP address, created from a JSON representation of the information returned by the Pings server. Includes the longitude and latitude, and the city and country. */ public class GeoipInfo { final public String city; ...
Fix conversion of parsed JSON numbers to double so they do not go through a float value in between; also use correct Java base class returned by Json-simple for boxed numbers.
Fix conversion of parsed JSON numbers to double so they do not go through a float value in between; also use correct Java base class returned by Json-simple for boxed numbers.
Java
bsd-3-clause
lisa-lab/pings,lisa-lab/pings,lisa-lab/pings,lisa-lab/pings
6c2ee9a0307acaed7880b0367ff7a1eb3be59779
src/com/creitz/sudokusolver/SudokuSolver.java
src/com/creitz/sudokusolver/SudokuSolver.java
package com.creitz.sudokusolver; //Charles Reitz //1/4/15 public class SudokuSolver { private Grid mGrid; public SudokuSolver(String file) { mGrid = new Grid(file); } public boolean solve() { while (mGrid.hasEmpty()) { if (!mGrid.fillAnyEmptySquare()) { break; } } return !mGrid.hasEmp...
package com.creitz.sudokusolver; //Charles Reitz //1/4/15 public class SudokuSolver { private Grid mGrid; public SudokuSolver(String file) { mGrid = new Grid(file); } public boolean solve() { while (mGrid.hasEmpty()) { if (!mGrid.fillAnyEmptySquare()) { break; } } return !mGrid.hasEmp...
Add test for no solution.
Add test for no solution.
Java
unlicense
creitz/SudokuSolver
acdf8c0ddff3b70668f2211ba4d802925c880559
axelor-crm/src/main/java/com/axelor/apps/crm/db/repo/OpportunityManagementRepository.java
axelor-crm/src/main/java/com/axelor/apps/crm/db/repo/OpportunityManagementRepository.java
/** * Axelor Business Solutions * * Copyright (C) 2017 Axelor (<http://axelor.com>). * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distribute...
/** * Axelor Business Solutions * * Copyright (C) 2017 Axelor (<http://axelor.com>). * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distribute...
Reset lost reason field on copy
RM8864: Reset lost reason field on copy
Java
agpl-3.0
ama-axelor/axelor-business-suite,ama-axelor/axelor-business-suite,ama-axelor/axelor-business-suite,axelor/axelor-business-suite,axelor/axelor-business-suite,axelor/axelor-business-suite
6e8730a486d4915362a79cd5f598a6589efd7ff4
src/fr/inria/jessy/protocol/NMSI_PDV_2PC.java
src/fr/inria/jessy/protocol/NMSI_PDV_2PC.java
package fr.inria.jessy.protocol; import java.util.Set; import fr.inria.jessy.communication.JessyGroupManager; import fr.inria.jessy.store.DataStore; import fr.inria.jessy.transaction.ExecutionHistory; import fr.inria.jessy.transaction.termination.TwoPhaseCommit; /** * This class implements Non-Monotonic Snapshot I...
package fr.inria.jessy.protocol; import java.util.Set; import fr.inria.jessy.communication.JessyGroupManager; import fr.inria.jessy.store.DataStore; import fr.inria.jessy.transaction.ExecutionHistory; import fr.inria.jessy.transaction.termination.TwoPhaseCommit; import fr.inria.jessy.transaction.termination.vote.Vot...
Fix the blocking problem of NMSI with 2PC.
Fix the blocking problem of NMSI with 2PC.
Java
mit
EvilMcJerkface/jessy,EvilMcJerkface/jessy,EvilMcJerkface/jessy,EvilMcJerkface/jessy,EvilMcJerkface/jessy,EvilMcJerkface/jessy