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
a1857556ed90b36afd8db6879dc54d9ea4b90e0b
spring-cloud-netflix-sidecar/src/main/java/org/springframework/cloud/netflix/sidecar/SidecarProperties.java
spring-cloud-netflix-sidecar/src/main/java/org/springframework/cloud/netflix/sidecar/SidecarProperties.java
/* * Copyright 2013-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 ap...
/* * Copyright 2013-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 ap...
Put min/max constraints on sidecar.port
Put min/max constraints on sidecar.port
Java
apache-2.0
joshiste/spring-cloud-netflix,joshiste/spring-cloud-netflix,daniellavoie/spring-cloud-netflix,jkschneider/spring-cloud-netflix,joshiste/spring-cloud-netflix,elgohr/spring-cloud-netflix,shuiky/spring-cloud-netflix,elgohr/spring-cloud-netflix,jkschneider/spring-cloud-netflix,brenuart/spring-cloud-netflix,shuiky/spring-cl...
11133967df44d2f5cdae42a683116c1a703e55b0
subprojects/core/src/main/java/org/gradle/process/internal/worker/child/DefaultWorkerDirectoryProvider.java
subprojects/core/src/main/java/org/gradle/process/internal/worker/child/DefaultWorkerDirectoryProvider.java
/* * Copyright 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 applica...
/* * Copyright 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 applica...
Change WorkerDirectoryProvider to use GFileUtils.mkdirs()
Change WorkerDirectoryProvider to use GFileUtils.mkdirs()
Java
apache-2.0
gradle/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,gradle/gradle,gstevey/gradle,gstevey/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,lsmaira/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradl...
438880e9035245bce6c4ccb8e59bda8104553672
subprojects/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestNameTestDirectoryProvider.java
subprojects/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestNameTestDirectoryProvider.java
/* * Copyright 2010 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 2010 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...
Simplify keeping test temp files
Simplify keeping test temp files - adds withSuppressCleanup method that can be used in the Rule directly - useful when manually debugging a single test
Java
apache-2.0
gstevey/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gstevey/gradle,lsmaira/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,gradle/grad...
4058e2d2b3187c6893192de33cc2d04a6cadb2f5
src/main/ca/ubc/cs411/abe/If.java
src/main/ca/ubc/cs411/abe/If.java
package ca.ubc.cs411.abe; public class If extends ABE { private ABE pred, conseq, altern; public If(ABE pred, ABE conseq, ABE altern) { if (pred.typeOf() != Type.BOOL) { throw new Error("If constructor passed a non-Bool predicate: " + pred); } else if (conseq.typeOf() != altern.typ...
package ca.ubc.cs411.abe; public class If extends ABE { private ABE pred, conseq, altern; public If(ABE pred, ABE conseq, ABE altern) { this.pred = pred; this.conseq = conseq; this.altern = altern; } @Override public Value interp() { if (pred.interp().toBool()) { ...
Allow any ABE expressions to be used for predicate/consequence/alternative expressions, only throw type checking errors in typeOf
Allow any ABE expressions to be used for predicate/consequence/alternative expressions, only throw type checking errors in typeOf
Java
mit
msayson/cpsc411
5825148ba7934bf23e94948341b214fb159f1403
src/main/java/com/victorsima/uber/model/Driver.java
src/main/java/com/victorsima/uber/model/Driver.java
package com.victorsima.uber.model; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; /** * Created by victorsima on 3/22/15. */ public class Driver { @Expose @SerializedName("phone_number") private String phoneNumber; @Expose @SerializedName("rating") ...
package com.victorsima.uber.model; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; /** * Created by victorsima on 3/22/15. */ public class Driver { @Expose @SerializedName("phone_number") private String phoneNumber; @Expose @SerializedName("rating") ...
Fix NumberFormatException when atempting to convert float to int in driver.rating
Fix NumberFormatException when atempting to convert float to int in driver.rating
Java
mit
vsima/uber-java-client,vsima/uber-java-client
4083e892a53f5fd474e3bf43cc9fad489028d03e
ngrinder-controller/src/main/java/org/ngrinder/infra/init/DBInit.java
ngrinder-controller/src/main/java/org/ngrinder/infra/init/DBInit.java
package org.ngrinder.infra.init; import javax.annotation.PostConstruct; import org.ngrinder.model.Role; import org.ngrinder.model.User; import org.ngrinder.user.repository.UserRepository; import org.ngrinder.user.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springfram...
package org.ngrinder.infra.init; import javax.annotation.PostConstruct; import org.ngrinder.model.Role; import org.ngrinder.model.User; import org.ngrinder.user.repository.UserRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springfra...
Add default user if there is no user in db. If we use userService to save, The ModelAspect will work to get current user from context and set it as created user. But at this time, there is no user in context because not logging in.
[NGRINDER-32] Add default user if there is no user in db. If we use userService to save, The ModelAspect will work to get current user from context and set it as created user. But at this time, there is no user in context because not logging in.
Java
apache-2.0
GwonGisoo/ngrinder,songeunwoo/ngrinder,SRCB-CloudPart/ngrinder,SRCB-CloudPart/ngrinder,SRCB-CloudPart/ngrinder,naver/ngrinder,naver/ngrinder,songeunwoo/ngrinder,ropik/ngrinder,SRCB-CloudPart/ngrinder,bwahn/ngrinder,ropik/ngrinder,nanpa83/ngrinder,bwahn/ngrinder,GwonGisoo/ngrinder,nanpa83/ngrinder,GwonGisoo/ngrinder,rop...
c16517fffdebf31fafc5eb04696abac72370b843
src/main/java/com/codeup/hibernate/repositories/MoviesRepository.java
src/main/java/com/codeup/hibernate/repositories/MoviesRepository.java
/** * This source file is subject to the license that is bundled with this package in the file LICENSE. */ package com.codeup.hibernate.repositories; import com.codeup.movies.Movie; import com.codeup.movies.Movies; import org.hibernate.Session; import org.hibernate.query.Query; import java.util.List; public class ...
/** * This source file is subject to the license that is bundled with this package in the file LICENSE. */ package com.codeup.hibernate.repositories; import com.codeup.movies.Movie; import com.codeup.movies.Movies; import org.hibernate.Session; import org.hibernate.query.Query; import java.util.List; public class ...
Fix error in query parameter.
Fix error in query parameter.
Java
mit
MontealegreLuis/hibernate-example
62b3135a2d603a1de11a829983f20ec4fdce6ce0
src/main/java/net/elprespufferfish/rssreader/ArticleReadListener.java
src/main/java/net/elprespufferfish/rssreader/ArticleReadListener.java
package net.elprespufferfish.rssreader; import android.support.v4.view.ViewPager; /** * Handles marking articles as read */ public class ArticleReadListener implements ViewPager.OnPageChangeListener { private final ArticlePagerAdapter articlePagerAdapter; private int lastPosition = 0; public ArticleRe...
package net.elprespufferfish.rssreader; import android.support.v4.view.ViewPager; /** * Handles marking articles as read */ public class ArticleReadListener implements ViewPager.OnPageChangeListener { private final ArticlePagerAdapter articlePagerAdapter; public ArticleReadListener(ArticlePagerAdapter art...
Mark article read as it comes into view, rather than when it leaves
Mark article read as it comes into view, rather than when it leaves The last article in a feed was difficult to mark as read
Java
mit
elprespufferfish/rss-reader
625a22f9f4bed19a3959317a228c037bfd261fbc
obdalib/obdalib-core/src/main/java/org/obda/query/domain/Function.java
obdalib/obdalib-core/src/main/java/org/obda/query/domain/Function.java
package org.obda.query.domain; /** * This class defines a type of {@link Term} in which it expresses a relation * to one or more other variables in terms of which it may be expressed or on * which its value depends. */ public interface Function extends Term { }
package org.obda.query.domain; import java.util.List; /** * This class defines a type of {@link Term} in which it denotes a mapping of * one or more elements in a set (called the domain of the function) into a * unique element of another set (the range of the function). * <p> * A function expression is a functio...
Add new abstract methods: getTerms() and getArity(). Also, there is a bit modification to the class description.
Add new abstract methods: getTerms() and getArity(). Also, there is a bit modification to the class description.
Java
apache-2.0
clarkparsia/ontop,ConstantB/ontop-spatial,ConstantB/ontop-spatial,eschwert/ontop,ConstantB/ontop-spatial,ontop/ontop,ontop/ontop,eschwert/ontop,clarkparsia/ontop,ontop/ontop,ghxiao/ontop-spatial,ghxiao/ontop-spatial,clarkparsia/ontop,srapisarda/ontop,ghxiao/ontop-spatial,srapisarda/ontop,ontop/ontop,eschwert/ontop,srap...
22b6fecd95bc9097c9707e46049826810bf0460d
src/main/java/editor/util/Lazy.java
src/main/java/editor/util/Lazy.java
package editor.util; import java.util.function.Supplier; /** * This class "lazily" supplies a value by not evaluating it until the first time * it is requested. Then that function's result is cached so it doesn't have to * be reevaluated again. * * @param <T> Type of object that is being lazily evaluated * @au...
package editor.util; import java.util.function.Supplier; /** * This class "lazily" supplies a value by not evaluating it until the first time * it is requested. Then that function's result is cached so it doesn't have to * be reevaluated again. * * @param <T> Type of object that is being lazily evaluated * @au...
Discard supplier after it's used
Discard supplier after it's used
Java
mit
aroelke/deck-editor-java
2a4a2fd1da336fec8fdfb26707276e619a6bfab8
app/controllers/crawlers/Google.java
app/controllers/crawlers/Google.java
package controllers.crawlers; import play.db.jpa.Transactional; import play.mvc.Controller; import play.mvc.Result; import java.io.IOException; import java.security.GeneralSecurityException; public class Google extends Controller { private crawlers.google.Google crawler; public Google() throws GeneralSecur...
package controllers.crawlers; import play.db.jpa.Transactional; import play.mvc.Controller; import play.mvc.Result; import java.io.IOException; import java.security.GeneralSecurityException; public class Google extends Controller { private crawlers.google.Google crawler; public Google() throws GeneralSecur...
Use nicer "Processing succeeded" message
Use nicer "Processing succeeded" message
Java
agpl-3.0
m4tx/arroch,m4tx/arroch
9ff61258ff571ce619c12db3410024d175186a61
core/src/main/java/me/prettyprint/cassandra/connection/NullOpTimer.java
core/src/main/java/me/prettyprint/cassandra/connection/NullOpTimer.java
package me.prettyprint.cassandra.connection; public class NullOpTimer implements HOpTimer { @Override public Object start() { return this; } @Override public void stop(Object token, String tagName, boolean success) { } }
package me.prettyprint.cassandra.connection; import java.io.Serializable; public class NullOpTimer implements HOpTimer, Serializable { private static final long serialVersionUID = -4762728985083933452L; @Override public Object start() { return this; } @Override public void stop(Object token, String...
Make default OpTimer serializable and fix build
Make default OpTimer serializable and fix build
Java
mit
1and1/hector,apigee/hector,rantav/hector,Ursula/hector,hector-client/hector,normanmaurer/hector,koa/hector,Ursula/hector,hector-client/hector
b75bc65691275db3628d4196c865eea8f97394a0
src/main/java/nl/tudelft/dnainator/ui/DNAViewer.java
src/main/java/nl/tudelft/dnainator/ui/DNAViewer.java
package nl.tudelft.dnainator.ui; import nl.tudelft.dnainator.graph.DNAGraph; import nl.tudelft.dnainator.graph.DNALayout; import org.graphstream.graph.Graph; import org.graphstream.ui.layout.Layout; import org.graphstream.ui.view.Viewer; /** * The viewer is responsible for managing the interactable views of the the...
package nl.tudelft.dnainator.ui; import nl.tudelft.dnainator.graph.DNAGraph; import org.graphstream.graph.Graph; import org.graphstream.ui.view.Viewer; /** * The viewer is responsible for managing the interactable views of the the strain graph. * Use the addDefaultView() method to obtain a view. */ public class D...
Remove tree layout, use default layout instead.
Remove tree layout, use default layout instead.
Java
bsd-3-clause
AbeelLab/dnainator
bf7b86d8d4e41500fda92b0e4b44fbdca394f05c
cidrawing/src/main/java/com/mocircle/cidrawing/element/BoundsElement.java
cidrawing/src/main/java/com/mocircle/cidrawing/element/BoundsElement.java
package com.mocircle.cidrawing.element; import android.graphics.Matrix; import android.graphics.Path; import android.graphics.RectF; /** * A kind of element which is surrounded by the bounds. */ public abstract class BoundsElement extends DrawElement { protected transient RectF originalBoundingBox; protect...
package com.mocircle.cidrawing.element; import android.graphics.Matrix; import android.graphics.Path; import android.graphics.RectF; /** * A kind of element which is surrounded by the bounds. */ public abstract class BoundsElement extends DrawElement { protected transient RectF originalBoundingBox; protect...
Fix bounds element touch area incorrect issue.
Fix bounds element touch area incorrect issue.
Java
apache-2.0
mocircle/cidrawing
8c35b0d9863ac44786b952b69f103cb6163014de
src/main/java/fr/insee/pogues/webservice/rest/GenericExceptionMapper.java
src/main/java/fr/insee/pogues/webservice/rest/GenericExceptionMapper.java
package fr.insee.pogues.webservice.rest; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import javax.ws.rs.ext.ExceptionMapper; import javax.ws.rs.core.Response.Status; import javax.ws.rs.ext.Provider; /** * Created by acordier on 04/07/17. */ @Provider public class GenericExceptionMapper impl...
package fr.insee.pogues.webservice.rest; import org.apache.log4j.Logger; import javax.ws.rs.NotFoundException; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import javax.ws.rs.ext.ExceptionMapper; import javax.ws.rs.core.Response.Status; import javax.ws.rs.ext.Provider; /** * Created by acord...
Make exception mapper more accurate on jax-rs internal error
Make exception mapper more accurate on jax-rs internal error
Java
mit
InseeFr/Pogues-Back-Office,InseeFr/Pogues-Back-Office
75179ef05a0aab3f01b4f908fc34f1d2d43838a4
src/test/java/info/u_team/u_team_test/enchantment/AutoSmeltEnchantment.java
src/test/java/info/u_team/u_team_test/enchantment/AutoSmeltEnchantment.java
package info.u_team.u_team_test.enchantment; import info.u_team.u_team_core.enchantment.UEnchantment; import net.minecraft.enchantment.EnchantmentType; import net.minecraft.inventory.EquipmentSlotType; import net.minecraftforge.common.MinecraftForge; public class AutoSmeltEnchantment extends UEnchantment { public ...
package info.u_team.u_team_test.enchantment; import info.u_team.u_team_core.enchantment.UEnchantment; import net.minecraft.enchantment.EnchantmentType; import net.minecraft.inventory.EquipmentSlotType; import net.minecraftforge.common.MinecraftForge; public class AutoSmeltEnchantment extends UEnchantment { public ...
Remove unused registry for the event bus
Remove unused registry for the event bus
Java
apache-2.0
MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core
9442100fe4f596a5bb3efbefa92cacef918f6e89
src/main/java/fr/insee/eno/exception/Utils.java
src/main/java/fr/insee/eno/exception/Utils.java
package fr.insee.eno.exception; import net.sf.saxon.trans.XPathException; public class Utils { public static String getErrorLocation(String styleSheet, Exception e){ String errorMessage=""; try{ int line = ((XPathException) e).getLocator().getLineNumber(); int column = ((X...
package fr.insee.eno.exception; import net.sf.saxon.trans.XPathException; public class Utils { public static String getErrorLocation(String styleSheet, Exception e){ String errorMessage=""; try{ String location = ((XPathException) e).getLocationAsString(); errorMessage += ...
Improve utils function for xslt exception
Improve utils function for xslt exception
Java
mit
InseeFr/Eno,InseeFr/Eno
bbc82691030cf3f7d274f09fa70ae0ef4166ca1f
src/main/java/throwing/bridge/RethrowChain.java
src/main/java/throwing/bridge/RethrowChain.java
package throwing.bridge; import java.util.Optional; import java.util.function.Function; @FunctionalInterface interface RethrowChain<X extends Throwable, Y extends Throwable> { public static final RethrowChain<Throwable, Throwable> START = t -> Optional.empty(); public static final RethrowChain<Throwable, Thro...
package throwing.bridge; import java.util.Optional; import java.util.function.Function; @FunctionalInterface interface RethrowChain<X extends Throwable, Y extends Throwable> extends Function<X, Optional<Y>> { public static final RethrowChain<Throwable, Throwable> START = t -> Optional.empty(); public static f...
Make rethrow chain a Function
Make rethrow chain a Function
Java
bsd-3-clause
JeffreyFalgout/ThrowingStream
4c8110586a36b0cf4facd9f93ea6dc84405ab7f0
app/models/Actor.java
app/models/Actor.java
package models; import play.data.validation.Constraints; import play.db.ebean.Model; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "actors") public class Actor extends Model { @Id private Long id; @Co...
package models; import play.data.validation.Constraints; import play.db.ebean.Model; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "actors") public class Actor extends Model { @Id private Long id; @Co...
Add hashCode and equals to actor model, since a show holds all actors in a HashSet
Add hashCode and equals to actor model, since a show holds all actors in a HashSet
Java
mit
raphaelbrand/TvShowOrganizer,raphaelbrand/TvShowOrganizer
96ede26680e225d54ff191fc1c1287bb356363c7
src/main/java/com/irgat/rest/HelloWorldEndpoint.java
src/main/java/com/irgat/rest/HelloWorldEndpoint.java
package com.irgat.rest; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class HelloWorldEndpoint { @RequestMapping("/helloWorld") public String helloWorld() { return "Hello World after redeployment!"; ...
package com.irgat.rest; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class HelloWorldEndpoint { @RequestMapping("/helloWorld") public String helloWorld() { return "Hello World after redeployment! Ar...
Test for sequential auto redeployment.
Test for sequential auto redeployment.
Java
apache-2.0
irgat-org/poc,irgat-org/poc
10629cd6cd3eca47ab806412081e3ad24e8df47d
src/main/java/info/u_team/u_team_core/UCoreMain.java
src/main/java/info/u_team/u_team_core/UCoreMain.java
package info.u_team.u_team_core; import org.apache.logging.log4j.*; import info.u_team.u_team_core.api.IModProxy; import info.u_team.u_team_core.intern.proxy.*; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.DistExecutor; import net.minecraftforge.fml.common.Mod; import net.minec...
package info.u_team.u_team_core; import org.apache.logging.log4j.*; import info.u_team.u_team_core.api.IModProxy; import info.u_team.u_team_core.intern.proxy.*; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.DistExecutor; import net.minecraftforge.fml.common.Mod; import net.minec...
Fix proxy variable that was not adjusted
Fix proxy variable that was not adjusted
Java
apache-2.0
MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core
557a3ddf5997e143ba7ab5586b8cc4fcdc187191
src/main/java/tars/logic/commands/CommandResult.java
src/main/java/tars/logic/commands/CommandResult.java
package tars.logic.commands; /** * Represents the result of a command execution. */ public class CommandResult { public final String feedbackToUser; public CommandResult(String feedbackToUser) { assert feedbackToUser != null; this.feedbackToUser = feedbackToUser; } }
package tars.logic.commands; import java.util.ArrayList; import tars.model.task.ReadOnlyTask; /** * Represents the result of a command execution. */ public class CommandResult { public final String feedbackToUser; public CommandResult(String feedbackToUser) { assert feedbackToUser != null; ...
Add method to format lists of tasks for commandResult
Add method to format lists of tasks for commandResult
Java
mit
CS2103AUG2016-F10-C1/main,CS2103AUG2016-F10-C1/main,CS2103AUG2016-F10-C1/main
f079d29309ad9c46be0d6000393bf3ee40da45eb
src/org/c4k3/Events/PlayerDeath.java
src/org/c4k3/Events/PlayerDeath.java
package org.c4k3.Events; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.entity.PlayerDeathEvent; /** Class is responsible for listening to player deaths * and making sure no xp is dropped in the events */ public class PlayerDeat...
package org.c4k3.Events; import org.bukkit.GameMode; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.entity.PlayerDeathEvent; /** Class is responsible for listening to player deaths * and making su...
Fix players being able to /kill after restart to leave with gm1
Fix players being able to /kill after restart to leave with gm1
Java
cc0-1.0
C4K3/Events
24a4ae1ea31b8b239c63a6a432151b663aed6ba4
test/src/main/java/model/Customer.java
test/src/main/java/model/Customer.java
package model; import java.util.Set; import javax.persistence.Entity; import javax.persistence.OneToMany; /** * @author Emmanuel Bernard */ @Entity public class Customer extends User { private Set<Order> orders; public Set<Order> getOrders() { return orders; } @OneToMany public void setOrders(Set<Order> or...
package model; import java.util.Set; import javax.persistence.Entity; import javax.persistence.OneToMany; /** * @author Emmanuel Bernard */ @Entity public class Customer extends User { private Set<Order> orders; private String nonPersistent; public Set<Order> getOrders() { return orders; } @OneToMany publ...
Support for access type for entity and sub entity
Support for access type for entity and sub entity
Java
apache-2.0
hibernate/hibernate-metamodelgen,hibernate/hibernate-metamodelgen
5680cc4062f5f5ef099f184676fe1f1131446017
src/main/java/org/dbflute/intro/app/logic/exception/DirNotFoundException.java
src/main/java/org/dbflute/intro/app/logic/exception/DirNotFoundException.java
package org.dbflute.intro.app.logic.exception; /** * @author prprmurakami */ public class DirNotFoundException extends Exception { private static final long serialVersionUID = 1L; private String dirPath; public DirNotFoundException(String msg, String dirPath) { super(msg); this.dirPath...
/* * Copyright 2014-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Fix classes with no copyright
Fix classes with no copyright
Java
apache-2.0
dbflute/dbflute-intro,dbflute/dbflute-intro,dbflute/dbflute-intro,dbflute/dbflute-intro,dbflute/dbflute-intro,dbflute/dbflute-intro,dbflute/dbflute-intro
94f806db30f9912c41d8987eef92fe6fa0b6cd4f
src/test/java/bjohnson/ResponseHandlers/HTMLDirectoryResponseBuilderTest.java
src/test/java/bjohnson/ResponseHandlers/HTMLDirectoryResponseBuilderTest.java
package bjohnson.ResponseHandlers; import bjohnson.Request; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; public class HTMLDirectoryResponseBuilderTest { private String filePath; private Request request; @Before public void setUp(){ filePath = System.getPr...
package bjohnson.ResponseHandlers; import bjohnson.Request; import org.hamcrest.CoreMatchers; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; public class HTMLDirectoryResponseBuilderTest { private String filePath; private Request request; @Before public void setUp(...
Change test to check for contents instead of full string
Change test to check for contents instead of full string
Java
mit
Bjornkjohnson/javaServer
713c8db0ed9a4bfed8337db58d787dc8607382bd
src/main/java/tours/compiler/Type.java
src/main/java/tours/compiler/Type.java
package tours.compiler; import tours.grammar.ToursParser; public class Type { public static final Type BOOLEAN = new Type(ToursParser.BOOLEAN); public static final Type CHARACTER = new Type(ToursParser.CHARACTER); public static final Type INTEGER = new Type(ToursParser.INTEGER); public static final Ty...
package tours.compiler; import tours.grammar.ToursParser; public class Type { public static final Type BOOLEAN = new Type(ToursParser.BOOLEAN); public static final Type CHARACTER = new Type(ToursParser.CHARACTER); public static final Type INTEGER = new Type(ToursParser.INTEGER); public static final Ty...
Normalize type before switching on it
Normalize type before switching on it
Java
mit
jipspel/tours,jipspel/tours
429f4f949926891ef4f0fbcb850939e46bd2884e
src/protocolsupport/ProtocolSupport.java
src/protocolsupport/ProtocolSupport.java
package protocolsupport; import java.util.logging.Level; import net.md_5.bungee.api.ProxyServer; import net.md_5.bungee.api.plugin.Plugin; import protocolsupport.injector.BungeeNettyChannelInjector; import protocolsupport.injector.pe.PEProxyServer; import protocolsupport.utils.Utils; public class ProtocolSupport ext...
package protocolsupport; import java.util.logging.Level; import net.md_5.bungee.api.ProxyServer; import net.md_5.bungee.api.plugin.Plugin; import protocolsupport.injector.BungeeNettyChannelInjector; import protocolsupport.injector.pe.PEProxyServer; import protocolsupport.utils.Utils; public class ProtocolSupport ext...
Stop PE server only if it was running
Stop PE server only if it was running
Java
agpl-3.0
ProtocolSupport/ProtocolSupportBungee
64b890f209314fd5b041ee9af6ed354aa0aa9d04
src/com/pedro/fizzbuzz/BuzzMatcher.java
src/com/pedro/fizzbuzz/BuzzMatcher.java
package com.pedro.fizzbuzz; /** * * Matcher implementation created to return the "Fizz" value if the value passed as argument in the evaluate method * is 5 or multiple of 5. * * @author Pedro Vicente Gómez Sánchez. */ class BuzzMatcher implements Matcher { @Override public String evaluate(int value) { ...
package com.pedro.fizzbuzz; /** * * Matcher implementation created to return the "Fizz" value if the value passed as argument in the evaluate method * is 5 or multiple of 5. * * @author Pedro Vicente Gómez Sánchez. */ class BuzzMatcher implements Matcher { /* * Constants */ private final stati...
Implement BUZZ matcher and all tests in green :)
Implement BUZZ matcher and all tests in green :)
Java
apache-2.0
pedrovgs/FizzBuzz-Kata
5dbd7fce3800966cffb55dfe67153fd3208145fa
src/main/java/com/vite/Application.java
src/main/java/com/vite/Application.java
package com.vite; import com.vite.service.ViteClient; import org.apache.log4j.Logger; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentScan; import org.springframework.web.servlet.config.annota...
package com.vite; import org.apache.log4j.Logger; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentScan; import org.springframework.web.servlet.config.annotation.EnableWebMvc; @EnableWebMvc @C...
Remove code from start up
Remove code from start up
Java
apache-2.0
theVite/vite_server,theVite/vite_server
882a0864f4342f90ceb3c14312c66cba39a4a627
src/main/java/ch/hood/App.java
src/main/java/ch/hood/App.java
package ch.hood; import static ch.hood.jooq.schema1.Tables.A; import static ch.hood.jooq.schema2.Tables.B; import static org.jooq.impl.DSL.select; public class App { public static void main(String[] args) { System.out.println( select(A.ID, A.FLAG) .from(A) .join(B).on(B.NAME.eq(A.NAME)) .toString())...
package ch.hood; import static ch.hood.jooq.schema1.Schema1.SCHEMA1; import static ch.hood.jooq.schema1.Tables.A; import static ch.hood.jooq.schema2.Schema2.SCHEMA2; import static ch.hood.jooq.schema2.Tables.B; import static java.lang.Boolean.FALSE; import static java.lang.Boolean.TRUE; import static org.jooq.impl.DSL...
Add Code Example with Schema Mapping.
Add Code Example with Schema Mapping.
Java
apache-2.0
stanislas/jooq-with-liquibase
954d40b4e1c2a630980376b1834822edadc5b350
platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsNew.java
platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsNew.java
package com.rhomobile.rhodes.webview; import android.content.Context; import android.webkit.WebSettings; import android.webkit.WebView; public class RhoWebSettingsNew implements RhoWebSettings { public WebSettings setWebSettings(WebView w) { RhoWebSettingsOld ws = new RhoWebSettingsOld(); WebSettings webSetting...
package com.rhomobile.rhodes.webview; import android.content.Context; import android.webkit.WebSettings; import android.webkit.WebView; public class RhoWebSettingsNew implements RhoWebSettings { public WebSettings setWebSettings(WebView w) { RhoWebSettingsOld ws = new RhoWebSettingsOld(); WebSettings webSetting...
Fix localStorage access from js.
Android: Fix localStorage access from js.
Java
mit
rhosilver/rhodes-1,UIKit0/rhodes,UIKit0/rhodes,UIKit0/rhodes,UIKit0/rhodes,rhosilver/rhodes-1,louisatome/rhodes,jdrider/rhodes,jdrider/rhodes,jdrider/rhodes,rhosilver/rhodes-1,jdrider/rhodes,louisatome/rhodes,UIKit0/rhodes,louisatome/rhodes,UIKit0/rhodes,louisatome/rhodes,UIKit0/rhodes,louisatome/rhodes,rhosilver/rhode...
e32b440a38e74520de5813e277c105e8e14074d2
double-checked-locking/src/main/java/com/iluwatar/doublechecked/locking/App.java
double-checked-locking/src/main/java/com/iluwatar/doublechecked/locking/App.java
package com.iluwatar.doublechecked.locking; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * * In {@link Inventory} we store the items with a given size. However, we do not store * more items than the inventory size. To address concurrent access problems we * use double c...
package com.iluwatar.doublechecked.locking; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * * Double Checked Locking is a concurrency design pattern used to reduce the overhead * of acquiring a lock by first testing the locking criterion (the "lock hint") without * act...
Improve Double Checked Locking Javadoc
Improve Double Checked Locking Javadoc
Java
mit
inbreak/java-design-patterns,Sumu-Ning/java-design-patterns,janzoner/java-design-patterns,coverxiaoeye/java-design-patterns,colinbut/java-design-patterns,ouyangxiangshao/java-design-patterns,cnswan/java-design-patterns,dlee0113/java-design-patterns,xiaoyanit/java-design-patterns,krishansharma91/java-design-patterns,pra...
4bdb317e1075aee5735f2939f47f09eb32dab379
org.eclipse.xtext/src/org/eclipse/xtext/mwe/EquinoxClasspathEntriesProvider.java
org.eclipse.xtext/src/org/eclipse/xtext/mwe/EquinoxClasspathEntriesProvider.java
/******************************************************************************* * Copyright (c) 2010 itemis AG (http://www.itemis.eu) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distr...
/******************************************************************************* * Copyright (c) 2010 itemis AG (http://www.itemis.eu) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distr...
Return empty list instead of null
Return empty list instead of null Signed-off-by: Karsten Thoms <dec0ef9b050f1aa68d12b8ac7c21dd1e6ea132c8@itemis.de>
Java
epl-1.0
miklossy/xtext-core,miklossy/xtext-core
600391ccddf7ce26eca4f2ed3a80ec0c80109137
polydata-storage-sqlite/src/test/java/com/unidev/polydata/SQLiteStorageTest.java
polydata-storage-sqlite/src/test/java/com/unidev/polydata/SQLiteStorageTest.java
package com.unidev.polydata; import com.unidev.polydata.domain.BasicPoly; import com.unidev.polydata.domain.Poly; import org.junit.Test; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.not; import static org.hamcrest.Matchers.nullValue; ...
package com.unidev.polydata; import com.unidev.polydata.domain.BasicPoly; import com.unidev.polydata.domain.Poly; import org.junit.Test; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.not; import static org.hamcrest.Matchers.nullValue; ...
Test coverage for poly tables conversion
Test coverage for poly tables conversion
Java
apache-2.0
unidev-polydata/polydata-storage-sqlite,unidev-polydata/polydata-storage-embedded,unidev-polydata/polydata-storage-embedded
01771d02060ce195b67454a88618d10bc4f0d1ce
georocket-server/src/main/java/io/georocket/index/generic/DefaultMetaIndexer.java
georocket-server/src/main/java/io/georocket/index/generic/DefaultMetaIndexer.java
package io.georocket.index.generic; import java.util.HashMap; import java.util.Map; import io.georocket.index.xml.MetaIndexer; import io.georocket.storage.ChunkMeta; import io.georocket.storage.IndexMeta; /** * Default implementation of {@link MetaIndexer} that extracts generic * attributes from chunk metadata and...
package io.georocket.index.generic; import java.util.HashMap; import java.util.Map; import io.georocket.index.xml.MetaIndexer; import io.georocket.storage.ChunkMeta; import io.georocket.storage.IndexMeta; /** * Default implementation of {@link MetaIndexer} that extracts generic * attributes from chunk metadata and...
Remove unnecessary properties from index
Remove unnecessary properties from index
Java
apache-2.0
georocket/georocket,andrej-sajenko/georocket,andrej-sajenko/georocket,georocket/georocket
b2416b30398f33b8d3e0a15af1c94805d51e9270
src/gcj/org/apache/lucene/index/GCJSegmentReader.java
src/gcj/org/apache/lucene/index/GCJSegmentReader.java
package org.apache.lucene.index; /** * Copyright 2004 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...
package org.apache.lucene.index; /** * Copyright 2004 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...
Check the type of the IndexInput rather than the Directory to detect native implementation. This is a simpler and more correct test. It also permits the Directory to return a mixture of native and non-native IndexInput implementations.
Check the type of the IndexInput rather than the Directory to detect native implementation. This is a simpler and more correct test. It also permits the Directory to return a mixture of native and non-native IndexInput implementations. git-svn-id: 4c5078813df38efa56971a28e09a55254294f104@150604 13f79535-47bb-0310-9...
Java
apache-2.0
apache/solr,apache/solr,apache/solr,apache/solr,apache/solr
1448cef25ad3870d43fd2737dcbd60c3b4e2a1b0
src/test/java/given/a/spec/with/constructor/parameters/Fixture.java
src/test/java/given/a/spec/with/constructor/parameters/Fixture.java
package given.a.spec.with.constructor.parameters; class Fixture { public static Class<?> getSpecThatRequiresAConstructorParameter() { class Spec { @SuppressWarnings("unused") public Spec(final String something) {} } return Spec.class; } public static class SomeException extends Runtime...
package given.a.spec.with.constructor.parameters; class Fixture { public static Class<?> getSpecThatRequiresAConstructorParameter() { class Spec { @SuppressWarnings("unused") public Spec(final String something) {} } return Spec.class; } }
Remove some dead code from test suite
Remove some dead code from test suite
Java
mit
greghaskins/spectrum
389bc888269aac447f3a167084cb7367cdbc9fb6
converter/src/main/java/com/granveaud/mysql2h2converter/converter/Main.java
converter/src/main/java/com/granveaud/mysql2h2converter/converter/Main.java
package com.granveaud.mysql2h2converter.converter; import com.granveaud.mysql2h2converter.parser.ParseException; import com.granveaud.mysql2h2converter.parser.SQLParserManager; import com.granveaud.mysql2h2converter.sql.Statement; import java.io.FileInputStream; import java.io.FileReader; import java.io.IOException; ...
package com.granveaud.mysql2h2converter.converter; import com.granveaud.mysql2h2converter.parser.ParseException; import com.granveaud.mysql2h2converter.parser.SQLParserManager; import com.granveaud.mysql2h2converter.sql.Statement; import java.io.*; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.ni...
Support reading input scripts that are gzipped
Support reading input scripts that are gzipped
Java
mit
bgranvea/mysql2h2-converter,andrewparmet/mysql2h2-converter
2f5151183729f8a17c2285faaa840fce7285095e
src/main/java/ohtuhatut/domain/ReferenceList.java
src/main/java/ohtuhatut/domain/ReferenceList.java
package ohtuhatut.domain; import org.springframework.data.jpa.domain.AbstractPersistable; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.OneToMany; import javax.persistence.Table; import java.util.List; /** * The class for a list of references * Created by iilumme. *...
package ohtuhatut.domain; import org.springframework.data.jpa.domain.AbstractPersistable; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.OneToMany; import javax.persistence.Table; import java.util.List; /** * The class for a list of references * Created by iilumme. *...
Add name field for reference list
Add name field for reference list
Java
unlicense
Matoking/Ohtu-Hatut,Matoking/Ohtu-Hatut,Matoking/Ohtu-Hatut,Matoking/Ohtu-Hatut
d2cc78bc139f83c3deacb9f8011b8b91baa657db
src/com/geeks/BinarySearchTree.java
src/com/geeks/BinarySearchTree.java
package com.geeks; public class BinarySearchTree { public static void main(String[] args) { } private static class TreeNode<T> { TreeNode<T> left; TreeNode<T> right; T elem; } }
package com.geeks; import java.util.Arrays; public class BinarySearchTree { public static void main(String[] args) { Character[] inOrder = { 'D', 'B', 'E', 'A', 'F', 'C' }; Character[] preOrder = { 'A', 'B', 'D', 'E', 'C', 'F' }; TreeNode<Character> tree = constructTreeNode(0, preOrder, inOrder); postOrder...
Add construct binary tree from inOrder and preOrder
Add construct binary tree from inOrder and preOrder
Java
apache-2.0
joenjoin/geeks
6d1b58bca4183beb3fbfe886018427574d1ac676
precipice-core/src/main/java/net/uncontended/precipice/timeout/NewTimerService.java
precipice-core/src/main/java/net/uncontended/precipice/timeout/NewTimerService.java
/* * Copyright 2015 Timothy Brooks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2015 Timothy Brooks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Work on laying out timeout service resolution
Work on laying out timeout service resolution
Java
apache-2.0
tbrooks8/Precipice,tbrooks8/Precipice
c60d0a69d8dc5114c242753674f097944fb094d8
src/main/java/org/synyx/urlaubsverwaltung/application/domain/ApplicationStatus.java
src/main/java/org/synyx/urlaubsverwaltung/application/domain/ApplicationStatus.java
package org.synyx.urlaubsverwaltung.application.domain; /** * Enum describing which states an {@link Application} may have. */ public enum ApplicationStatus { /** * After applying for the leave, the saved application for leave gets this status. */ WAITING, /** * After the HeadOf has allo...
package org.synyx.urlaubsverwaltung.application.domain; /** * Enum describing which states an {@link Application} may have. */ public enum ApplicationStatus { /** * After applying for the leave, the saved application for leave gets this status. */ WAITING, /** * After the department head...
Improve javadoc of temporary allowed application status
Improve javadoc of temporary allowed application status
Java
apache-2.0
synyx/urlaubsverwaltung,synyx/urlaubsverwaltung,synyx/urlaubsverwaltung,synyx/urlaubsverwaltung
2ec85fba60bcde7a22e0969f9b44fbde1fabdc85
test/com/facebook/buck/jvm/java/testutil/compiler/CompilerTreeApiParameterized.java
test/com/facebook/buck/jvm/java/testutil/compiler/CompilerTreeApiParameterized.java
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
Replace deprecate code in JUnit call
Replace deprecate code in JUnit call Summary: To make code compatible with JUnit 4.13 (following diff). `createTestClass` function is deprecated, javadoc suggest replacing a call with a constructor, which is what I did. Note this is a buck-self-test-only change. Reviewed By: mykola-semko shipit-source-id: 64158afd...
Java
apache-2.0
JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck,JoelMarcey/buck
24cbf6b3a4203188fad27a9a4590cb0fdaf59809
core/src/main/java/com/orientechnologies/orient/core/sql/parser/OMultExpression.java
core/src/main/java/com/orientechnologies/orient/core/sql/parser/OMultExpression.java
/* Generated By:JJTree: Do not edit this line. OMultExpression.java Version 4.3 */ /* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=true,NODE_PREFIX=O,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ package com.orientechnologies.orient.core.sql.parser; import java.util.S...
/* Generated By:JJTree: Do not edit this line. OMultExpression.java Version 4.3 */ /* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=true,NODE_PREFIX=O,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ package com.orientechnologies.orient.core.sql.parser; import java.util.S...
Fix Multiplication operation in new SQL executor
Fix Multiplication operation in new SQL executor
Java
apache-2.0
orientechnologies/orientdb,orientechnologies/orientdb,orientechnologies/orientdb,orientechnologies/orientdb
68f6bf83e2dd52e68275bcbd268d323351fb0edf
src/main/java/net/interfax/rest/client/exception/UnsuccessfulStatusCodeException.java
src/main/java/net/interfax/rest/client/exception/UnsuccessfulStatusCodeException.java
package net.interfax.rest.client.exception; public class UnsuccessfulStatusCodeException extends Exception { public UnsuccessfulStatusCodeException(String message) { super(message); } public UnsuccessfulStatusCodeException(final String message, final Throwable cause) { super(message, cau...
package net.interfax.rest.client.exception; public class UnsuccessfulStatusCodeException extends Exception { private int statusCode; private String responseBody; public UnsuccessfulStatusCodeException(int statusCode) { this.statusCode = statusCode; } public UnsuccessfulStatusCodeExceptio...
Add attributes to capture status code and response body in custom exception
Add attributes to capture status code and response body in custom exception
Java
mit
interfax/interfax-java,interfax/interfax-java
acf346a1c02818fc45671f80b6e2f5a10f511d69
subprojects/core/src/main/groovy/org/gradle/internal/filewatch/FileWatcherFactory.java
subprojects/core/src/main/groovy/org/gradle/internal/filewatch/FileWatcherFactory.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...
Add some docs on the filewatcher contract.
Add some docs on the filewatcher contract. +review REVIEW-5498
Java
apache-2.0
blindpirate/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,lsmaira/gradle,blindpirate/gradle,gstevey/gradle,lsmaira/gradle,blindpirate/gradle,gstevey/gradle,gstevey/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,gstevey/gra...
47ca1c1fae78fdc57f635909a150551e0024f69a
app/src/main/java/com/gmail/jiangyang5157/cardboard/scene/projection/IcosphereBuilder.java
app/src/main/java/com/gmail/jiangyang5157/cardboard/scene/projection/IcosphereBuilder.java
package com.gmail.jiangyang5157.cardboard.scene.projection; import android.util.ArrayMap; import android.util.Log; /** * @author Yang * @since 4/12/2016. */ public class IcosphereBuilder { private volatile static IcosphereBuilder uniqueInstance = null; private ArrayMap<Integer, IcosphereVertex> icosphere...
package com.gmail.jiangyang5157.cardboard.scene.projection; import android.util.ArrayMap; import android.util.Log; /** * @author Yang * @since 4/12/2016. */ public class IcosphereBuilder { private volatile static IcosphereBuilder uniqueInstance; private ArrayMap<Integer, IcosphereVertex> icosphereVertice...
Add Camera and Light class. Refact.
Add Camera and Light class. Refact.
Java
unknown
jiangyang5157/virtual-reality,jiangyang5157/VirtualReality
c145f976b226cd4cdf6116d6fd550697fa8a9e78
gerrit-gwtui/src/main/java/com/google/gerrit/client/ui/SuggestAfterTypingNCharsOracle.java
gerrit-gwtui/src/main/java/com/google/gerrit/client/ui/SuggestAfterTypingNCharsOracle.java
// Copyright (C) 2012 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) 2012 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 ...
Fix reviewer suggestions when suggestFrom > 0
Fix reviewer suggestions when suggestFrom > 0 RemoteSuggestOracle runs exactly one call to the SuggestAfterTypingNCharsOracle then waits until that completes. If SuggestAfterTypingNCharsOracle doesn't want to send this query, it must finish with no results to allow RemoteSuggestOracle to unblock and consider the next ...
Java
apache-2.0
renchaorevee/gerrit,MerritCR/merrit,jackminicloud/test,dwhipstock/gerrit,supriyantomaftuh/gerrit,GerritCodeReview/gerrit,thesamet/gerrit,pkdevbox/gerrit,joshuawilson/merrit,anminhsu/gerrit,WANdisco/gerrit,thesamet/gerrit,Distrotech/gerrit,dwhipstock/gerrit,Distrotech/gerrit,Seinlin/gerrit,TonyChai24/test,thesamet/gerri...
5f7de0897e458e72d9e838ce0550ac233dce115c
src/main/java/edu/northwestern/bioinformatics/studycalendar/xml/writers/EpochXmlSerializer.java
src/main/java/edu/northwestern/bioinformatics/studycalendar/xml/writers/EpochXmlSerializer.java
package edu.northwestern.bioinformatics.studycalendar.xml.writers; import edu.northwestern.bioinformatics.studycalendar.dao.EpochDao; import edu.northwestern.bioinformatics.studycalendar.domain.Epoch; import edu.northwestern.bioinformatics.studycalendar.xml.AbstractStudyCalendarXmlSerializer; import org.dom4j.Document...
package edu.northwestern.bioinformatics.studycalendar.xml.writers; import edu.northwestern.bioinformatics.studycalendar.dao.EpochDao; import edu.northwestern.bioinformatics.studycalendar.domain.Epoch; import edu.northwestern.bioinformatics.studycalendar.xml.AbstractStudyCalendarXmlSerializer; import org.dom4j.Document...
Remove un-needed field in epoch serializer.
Remove un-needed field in epoch serializer. git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@2115 0d517254-b314-0410-acde-c619094fa49f
Java
bsd-3-clause
NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror
bb2c338baf4dacdca91841a4995a81b21786f80b
d03/d03s02/src/main/java/net/safedata/springboot/training/d03/s01/handler/PostLogoutHandler.java
d03/d03s02/src/main/java/net/safedata/springboot/training/d03/s01/handler/PostLogoutHandler.java
package net.safedata.springboot.training.d03.s01.handler; import org.springframework.security.core.Authentication; import org.springframework.security.web.authentication.logout.LogoutHandler; import org.springframework.stereotype.Component; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpS...
package net.safedata.springboot.training.d03.s01.handler; import org.springframework.security.core.Authentication; import org.springframework.security.web.authentication.logout.LogoutHandler; import org.springframework.stereotype.Component; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpS...
Split the parameter on the next line
[improve] Split the parameter on the next line
Java
apache-2.0
bogdansolga/spring-boot-training,bogdansolga/spring-boot-training
ccfc11a8d771a665ba4df257aea2d4734beca1d7
elements-harvester/src/main/java/uk/co/symplectic/elements/api/ElementsAPIConnectionManager.java
elements-harvester/src/main/java/uk/co/symplectic/elements/api/ElementsAPIConnectionManager.java
/******************************************************************************* * Copyright (c) 2012 Symplectic Ltd. All rights reserved. * 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 htt...
/******************************************************************************* * Copyright (c) 2012 Symplectic Ltd. All rights reserved. * 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 htt...
Fix timeouts on non-responsive API
Fix timeouts on non-responsive API
Java
mpl-2.0
Symplectic/vivo,Symplectic/vivo
d12e49b9c76c91aa9e4ad490f4110fb889f89bf2
src/main/java/com/gengo/client/GengoConstants.java
src/main/java/com/gengo/client/GengoConstants.java
/** * */ package com.gengo.client; /** * @author hiroyu-n@inter-plug.co.jp * */ public final class GengoConstants { protected static String BASE_URL_STANDARD = "http://api.gengo.com/v2/"; protected static String BASE_URL_SANDBOX = "http://api.sandbox.gengo.com/v2/"; protected static String BASE_URL_STAGING = ...
/** * */ package com.gengo.client; /** * @author hiroyu-n@inter-plug.co.jp * */ public final class GengoConstants { protected static String BASE_URL_STANDARD = "http://api.gengo.com/v2/"; protected static String BASE_URL_SANDBOX = "http://api.sandbox.gengo.com/v2/"; }
Remove code for staging environment.
Remove code for staging environment.
Java
bsd-3-clause
gengo/gengo-java
d0882c4726583a3735968c7a497bd3b8dc63e1d6
src/main/java/org/crygier/graphql/JavaScalars.java
src/main/java/org/crygier/graphql/JavaScalars.java
package org.crygier.graphql; import java.math.BigInteger; import java.text.DateFormat; import java.text.ParseException; import java.util.Date; import graphql.language.IntValue; import graphql.language.StringValue; import graphql.schema.Coercing; import graphql.schema.GraphQLScalarType; public class JavaScalars { ...
package org.crygier.graphql; import java.math.BigInteger; import java.text.DateFormat; import java.text.ParseException; import java.util.Date; import graphql.language.IntValue; import graphql.language.StringValue; import graphql.schema.Coercing; import graphql.schema.GraphQLScalarType; import org.slf4j.Logger; import...
Return null on parse errors as per specification; Do not throw Exception
Return null on parse errors as per specification; Do not throw Exception
Java
mit
stomf/graphql-jpa,jcrygier/graphql-jpa,jcrygier/graphql-jpa,stomf/graphql-jpa
cd45fd2f915391a9a09db3bccdadba543fe125cf
src/org/sablecc/sablecc/launcher/TextArgument.java
src/org/sablecc/sablecc/launcher/TextArgument.java
/* This file is part of SableCC ( http://sablecc.org ). * * See the NOTICE file distributed with this work for copyright information. * * 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 * ...
/* This file is part of SableCC ( http://sablecc.org ). * * See the NOTICE file distributed with this work for copyright information. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
Add javadoc comments. See ticket:56.
Add javadoc comments. See ticket:56. Signed-off-by: Raymond Audet <281aa2b19aab01efe2941a7da076ec0616a9b992@gmail.com> Signed-off-by: Etienne M. Gagnon <bf06ec0eb40152cd863534753d026b021022c851@j-meg.com>
Java
apache-2.0
jdassonvil/sablecc,jdassonvil/sablecc,jdassonvil/sablecc,privat/sablecc,privat/sablecc,privat/sablecc,privat/sablecc,jdassonvil/sablecc,privat/sablecc,jdassonvil/sablecc
676cb3f87040bf92604dd5c94ea194f0403b4fc7
stealth-si-process/src/main/java/org/lapanen/stealth/si/process/ProcessInboundChannelAdapter.java
stealth-si-process/src/main/java/org/lapanen/stealth/si/process/ProcessInboundChannelAdapter.java
package org.lapanen.stealth.si.process; import java.util.concurrent.ExecutorService; import org.springframework.integration.context.IntegrationObjectSupport; import org.springframework.integration.core.MessageSource; import org.springframework.integration.endpoint.MessageProducerSupport; import org.springframework.in...
package org.lapanen.stealth.si.process; import java.util.concurrent.ExecutorService; import org.springframework.integration.context.IntegrationObjectSupport; import org.springframework.integration.core.MessageSource; import org.springframework.integration.endpoint.MessageProducerSupport; import org.springframework.in...
Add result handling to the adapter -- now for real, actually.
Add result handling to the adapter -- now for real, actually.
Java
apache-2.0
lapanen/stealth
824985d096b87629cd96151df6f5621bbd44dbd0
governator-core/src/main/java/com/netflix/governator/visitors/WarnOfToInstanceInjectionVisitor.java
governator-core/src/main/java/com/netflix/governator/visitors/WarnOfToInstanceInjectionVisitor.java
package com.netflix.governator.visitors; import com.google.inject.Binding; import com.google.inject.spi.DefaultBindingTargetVisitor; import com.google.inject.spi.DefaultElementVisitor; import com.google.inject.spi.InstanceBinding; import com.google.inject.spi.ProviderInstanceBinding; public class WarnOfToInstanceInje...
package com.netflix.governator.visitors; import com.google.inject.Binding; import com.google.inject.spi.DefaultBindingTargetVisitor; import com.google.inject.spi.DefaultElementVisitor; import com.google.inject.spi.InstanceBinding; public class WarnOfToInstanceInjectionVisitor extends DefaultElementVisitor<String> { ...
Remove ProviderInstanceBinding as it also captures @Provides methods
Remove ProviderInstanceBinding as it also captures @Provides methods
Java
apache-2.0
elandau/governator,Netflix/governator,tcellucci/governator,tcellucci/governator,tcellucci/governator,elandau/governator,elandau/governator,Netflix/governator
e0c8abcc61b9d466813e1c5beec613b39f0a2736
org.metaborg.spoofax.eclipse/src/main/java/org/metaborg/spoofax/eclipse/logging/LoggingConfiguration.java
org.metaborg.spoofax.eclipse/src/main/java/org/metaborg/spoofax/eclipse/logging/LoggingConfiguration.java
package org.metaborg.spoofax.eclipse.logging; import java.io.InputStream; import org.slf4j.ILoggerFactory; import org.slf4j.impl.StaticLoggerBinder; import ch.qos.logback.classic.joran.JoranConfigurator; import ch.qos.logback.core.ContextBase; import ch.qos.logback.core.joran.spi.JoranException; import ch.qos.logbac...
package org.metaborg.spoofax.eclipse.logging; import java.io.InputStream; import org.slf4j.ILoggerFactory; import org.slf4j.impl.StaticLoggerBinder; import ch.qos.logback.classic.joran.JoranConfigurator; import ch.qos.logback.core.ContextBase; import ch.qos.logback.core.joran.spi.JoranException; import ch.qos.logbac...
Print some diagnostic information when setting up the logging configuration.
Print some diagnostic information when setting up the logging configuration.
Java
apache-2.0
metaborg/spoofax-eclipse
a69946ae9ac4317cf54eeda8e36a6fda949d6d17
code-sample-java/code-sample-java-se/src/main/java/codesample/java_se_api/concurency/collections/SynchronousQueueExample.java
code-sample-java/code-sample-java-se/src/main/java/codesample/java_se_api/concurency/collections/SynchronousQueueExample.java
package codesample.java_se_api.concurency.collections; import java.io.IOException; import java.util.concurrent.SynchronousQueue; /** * SynchronousQueue provides a powerful concurrency mechanism to synchronize work in different threads. * In order to take() element from queue a call to put() should be active from an...
package codesample.java_se_api.concurency.collections; import java.util.concurrent.SynchronousQueue; /** * SynchronousQueue provides a powerful concurrency mechanism to synchronize work in different threads. * In order to take() element from queue a call to put() should be active from another thread. At the same ti...
Add better sync queue example
Add better sync queue example
Java
mit
aquatir/remember_java_api,aquatir/remember_java_api,aquatir/remember_java_api,aquatir/remember_java_api
7b450e31a2179ecf634430803d2cb1e3f45ee8a1
goci-interfaces/goci-curation/src/main/java/uk/ac/ebi/spot/goci/curation/service/batchloader/AssociationBatchLoaderService.java
goci-interfaces/goci-curation/src/main/java/uk/ac/ebi/spot/goci/curation/service/batchloader/AssociationBatchLoaderService.java
package uk.ac.ebi.spot.goci.curation.service.batchloader; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; import uk.ac.ebi.spot.goci.curation.model.BatchUploadError; import uk.ac.ebi.spot.goci.curation.model.batchloader.BatchUploadRow; import uk.ac.ebi.spot.goci.model.Association; import uk.ac.ebi.s...
package uk.ac.ebi.spot.goci.curation.service.batchloader; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; import uk.ac.ebi.spot.goci.curation.model.batchloader.BatchUploadError; import uk.ac.ebi.spot.goci.curation.model.batchloader.BatchUploadRow; import uk.ac.ebi.spot.goci.model.Association; import...
Add new method to delete file
Add new method to delete file
Java
apache-2.0
EBISPOT/goci,EBISPOT/goci,EBISPOT/goci,EBISPOT/goci,EBISPOT/goci,EBISPOT/goci
e7118080f49b1e2c5bcf93dd6d021335b9664edd
tests/org.muml.psm.allocation.algorithm.ilp.lpsolve.tests/src/org/muml/psm/allocation/algorithm/ilp/lpsolve/tests/AllTestsSuite.java
tests/org.muml.psm.allocation.algorithm.ilp.lpsolve.tests/src/org/muml/psm/allocation/algorithm/ilp/lpsolve/tests/AllTestsSuite.java
package org.muml.psm.allocation.algorithm.ilp.lpsolve.tests; import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; @RunWith(Suite.class) @SuiteClasses({ LPSolveM2TTest.class }) public class AllTestsSuite { }
package org.muml.psm.allocation.algorithm.ilp.lpsolve.tests; import org.junit.BeforeClass; import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; import org.muml.psm.allocation.ilp.lpsolve.xtext.LPSolveStandaloneSetup; @RunWith(Suite.class) @SuiteClasses({ LPSol...
Make sure the *.lp file extension is registered (testsuite)
Make sure the *.lp file extension is registered (testsuite)
Java
epl-1.0
upohl/eloquent,upohl/eloquent
0b5ff5857cfe64050aec856b6b352e00ea2a706a
opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/OptimisticLockFailedException.java
opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/OptimisticLockFailedException.java
package org.opendaylight.controller.md.sal.common.api.data; import org.opendaylight.yangtools.yang.common.RpcResultBuilder; import org.opendaylight.yangtools.yang.common.RpcError.ErrorType; /** * * Failure of asynchronous transaction commit caused by failure * of optimistic locking. * * This exception is raised and r...
/* * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ packa...
Fix license header violations in sal-common-api
Fix license header violations in sal-common-api Change-Id: I58fdef120495514ef94f2e9681790786ba4e0841 Signed-off-by: Thanh Ha <09ea4d3a79c8bee41a16519f6a431f6bc0fd8d6f@linuxfoundation.org>
Java
epl-1.0
inocybe/odl-controller,Sushma7785/OpenDayLight-Load-Balancer,tx1103mark/controller,tx1103mark/controller,inocybe/odl-controller,522986491/controller,tx1103mark/controller,Johnson-Chou/test,tx1103mark/controller,Johnson-Chou/test,Sushma7785/OpenDayLight-Load-Balancer,opendaylight/controller,522986491/controller
3e5df0e67cb89c6898599e86911b8e3a4c63527d
src/main/java/ciir/jfoley/chai/Spawn.java
src/main/java/ciir/jfoley/chai/Spawn.java
package ciir.jfoley.chai; import ciir.jfoley.chai.io.Streams; import ciir.jfoley.chai.string.StrUtil; import java.io.IOException; import java.util.Arrays; /** * Interface to Java's lackluster Process API. * @author jfoley. */ public class Spawn { public static void doProcess(String... args) throws IOException, I...
package ciir.jfoley.chai; import ciir.jfoley.chai.io.Streams; import ciir.jfoley.chai.string.StrUtil; import java.io.IOException; import java.util.Arrays; /** * Interface to Java's lackluster Process API. * @author jfoley. */ public class Spawn { public static void doProcess(int expectedStatus, String... args) t...
Allow expecting a different status code.
Allow expecting a different status code.
Java
bsd-3-clause
jjfiv/chai
0f05299ed7cf79d7b30aed3371e84319c6c3c055
xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabComputedMeasureExpressionProvider.java
xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dialogs/CrosstabComputedMeasureExpressionProvider.java
/******************************************************************************* * Copyright (c) 2004 Actuate Corporation. * 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 availabl...
/******************************************************************************* * Copyright (c) 2004 Actuate Corporation. * 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 availabl...
Remove the restriction on cube element on the expression builder when creating a derived measure.
Remove the restriction on cube element on the expression builder when creating a derived measure.
Java
epl-1.0
sguan-actuate/birt,rrimmana/birt-1,sguan-actuate/birt,Charling-Huang/birt,Charling-Huang/birt,Charling-Huang/birt,sguan-actuate/birt,rrimmana/birt-1,sguan-actuate/birt,rrimmana/birt-1,rrimmana/birt-1,rrimmana/birt-1,Charling-Huang/birt,Charling-Huang/birt,sguan-actuate/birt
ad816e6ea67dcfbbce05812b87995b952223d233
Minter/src/main/java/com/hida/model/UsedSetting.java
Minter/src/main/java/com/hida/model/UsedSetting.java
package com.hida.model; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; import javax.validation.constraints.NotNull; import org.hibernate.annotations.Type; /** * * @author lruffin */ @Entity @Table(name = "USED_SETTING") public class UsedSetting extends Setting{ ...
package com.hida.model; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; import javax.validation.constraints.NotNull; import org.hibernate.annotations.Type; /** * * @author lruffin */ @Entity @Table(name = "USED_SETTING") public class UsedSetting extends Setting{ ...
Remove all instances of Prepend
Remove all instances of Prepend Prepend was removed because it does not strictly contribute to the creation of Pids; instead it is added to turn Pids into a URL specific to the organization that created them.
Java
apache-2.0
HawaiiStateDigitalArchives/PID-webservice,HawaiiStateDigitalArchives/PID-webservice,Khyzad/PID-webservice,Khyzad/PID-webservice
8bebd528bbceb861549505c3d7c24067aa41b17d
controller/BuilderNumberWeightCtrl.java
controller/BuilderNumberWeightCtrl.java
package controller; import boundary.BuilderApplication; import javax.swing.JSlider; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import model.BuilderModel; /** * The controller to handle altered number weights. * * @author Cem Unsal */ public class BuilderNumberWeightCtrl implem...
package controller; import boundary.BuilderApplication; import javax.swing.JSlider; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import model.BuilderModel; /** * The controller to handle altered number weights. * * Example probability distributions: * * <pre> * 16.7%, 16.7%, 1...
Add comment about number weights
Add comment about number weights Signed-off-by: Eli Skeggs <9586c285e7eef0e86d45536fe84e916128618137@wpi.edu>
Java
mit
mvit/sixes-wild
4925ccc54ab2ee061aa4815b5598e6a1b13d2567
src/main/java/com/example/config/OAuthConfigChecker.java
src/main/java/com/example/config/OAuthConfigChecker.java
package com.example.config; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; import javax.servlet.*; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.net.URI; import java....
package com.example.config; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; import javax.servlet.*; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.net.URI; import java....
Use the correct host name
Use the correct host name
Java
bsd-3-clause
swapnilshrikhande/githubsfdeploy,PankajHingane-REISysIn/GitHubToSFDeploy,afawcett/githubsfdeploy,motiko/githubsfdeploy,motiko/githubsfdeploy,afawcett/githubsfdeploy,motiko/githubsfdeploy,PankajHingane-REISysIn/GitHubToSFDeploy,swapnilshrikhande/githubsfdeploy,PankajHingane-REISysIn/GitHubToSFDeploy,afawcett/githubsfdep...
1ac3e1e5e2dcbd08316b1829209ec9b051f2f838
src/main/java/de/mklinger/commons/exec/PingRunnable.java
src/main/java/de/mklinger/commons/exec/PingRunnable.java
package de.mklinger.commons.exec; public class PingRunnable extends ErrorHandlingRunnable { private final Pingable pingable; public PingRunnable(final Pingable pingable) { this.pingable = pingable; } @Override public void doRun() { while (true) { if (Thread.currentThread().isInterrupted()) { ...
package de.mklinger.commons.exec; public class PingRunnable extends ErrorHandlingRunnable { private Thread runningThread; private final Pingable pingable; public PingRunnable(final Pingable pingable) { this.pingable = pingable; } @Override public void doRun() { runningThread = Thread.currentThr...
Fix thread interruption. Wrong thread was interrupted.
Fix thread interruption. Wrong thread was interrupted.
Java
apache-2.0
de-mklinger/exec
2064001fa615c15cac69fb263f053d6ac5f7d013
src/net/piemaster/jario/systems/CollisionMeshSystem.java
src/net/piemaster/jario/systems/CollisionMeshSystem.java
package net.piemaster.jario.systems; import net.piemaster.jario.components.CollisionMesh; import net.piemaster.jario.components.Transform; import com.artemis.ComponentMapper; import com.artemis.Entity; import com.artemis.EntityProcessingSystem; public class CollisionMeshSystem extends EntityProcessingSystem...
package net.piemaster.jario.systems; import net.piemaster.jario.components.CollisionMesh; import net.piemaster.jario.components.Transform; import com.artemis.ComponentMapper; import com.artemis.Entity; import com.artemis.EntityProcessingSystem; public class CollisionMeshSystem extends EntityProcessingSystem...
Debug update continued: Removed the cost of mesh position to ints.
Debug update continued: Removed the cost of mesh position to ints.
Java
mit
orlade/jario
62833dc45b971f655c8414ac05d4c56a6a3dd398
Admonitus/src/Controllers/Image.java
Admonitus/src/Controllers/Image.java
package Controllers; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; public class Image { private String filename; private Long length; private InputStream content; public Image(String filename) throws FileNotFoundException { super(); ...
package Controllers; import java.io.FileNotFoundException; import java.io.InputStream; public class Image { private String filename; private int length; private InputStream content; public Image(String filename) throws FileNotFoundException { super(); this.filename = filename;...
Change the datatype of length to int
Change the datatype of length to int
Java
unlicense
RedShift1/chc-cmsc300-01-jspapp-01,RedShift1/chc-cmsc300-01-jspapp-01
c9102ef894816d383177e49dbc6b801ca34d609b
binary_search_tree/TestBst.java
binary_search_tree/TestBst.java
package binary_search_tree; import binary_search_tree.Bst; // My implementation of Binary Search Tree in package binary_search_tree /* Class to test class Bst. (Binary Search Tree) */ class TestBst{ // Tests Insertion public static void testInsertion(){ // Create a bst object Bst bst = new Bst(); //...
package binary_search_tree; import java.util.NoSuchElementException; import binary_search_tree.Bst; // My implementation of Binary Search Tree in package binary_search_tree /* Class to test class Bst. (Binary Search Tree) */ class TestBst{ // Tests Insertion public static void testInsertion(){ // Create ...
Add test case to check inOrder when tree is empty. Throws NoSuchElement exception
Add test case to check inOrder when tree is empty. Throws NoSuchElement exception
Java
mit
rohitkhilnani/Java-holic
dd3916ae4a88a4c4af763d45821919818e411e25
src/org/usfirst/frc2832/Robot_2016/DashboardOutput.java
src/org/usfirst/frc2832/Robot_2016/DashboardOutput.java
package org.usfirst.frc2832.Robot_2016; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; public class DashboardOutput { //This method is invoked in teleopPeriodic to display all the crap we put on the dashboard public static void putData() { SmartDashboard.putNumber("laser",RobotMap.laser.pi...
package org.usfirst.frc2832.Robot_2016; import edu.wpi.first.wpilibj.command.Scheduler; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; public class DashboardOutput { //This method is invoked in teleopPeriodic to display all the crap we put on the dashboard public static void putData() { S...
Add output of running commands to SmartDashboard
Add output of running commands to SmartDashboard
Java
bsd-3-clause
FRC2832/Robot_2016
78942c858887b00c96a205026869e5dd2585f38e
src/test/org/apache/commons/logging/DummyException.java
src/test/org/apache/commons/logging/DummyException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Set EOL style to Native. Remove tab characters.
Set EOL style to Native. Remove tab characters. git-svn-id: 306be505b4acf4ccace778b4b2465237cc9581ba@581081 13f79535-47bb-0310-9956-ffa450edef68
Java
apache-2.0
mohanaraosv/commons-logging,mohanaraosv/commons-logging,apache/commons-logging,apache/commons-logging,apache/commons-logging,mohanaraosv/commons-logging
28004ed98dae985ef38f575bb0e22c310bf239a9
src/test/java/org/nwapw/abacus/tests/LexerTests.java
src/test/java/org/nwapw/abacus/tests/LexerTests.java
package org.nwapw.abacus.tests; import org.junit.Assert; import org.junit.Test; import org.nwapw.abacus.lexing.Lexer; import org.nwapw.abacus.lexing.pattern.Match; import java.util.List; public class LexerTests { @Test public void testBasicSuccess(){ Lexer<Integer> lexer = new Lexer<>(); lex...
package org.nwapw.abacus.tests; import org.junit.Assert; import org.junit.Test; import org.nwapw.abacus.lexing.Lexer; import org.nwapw.abacus.lexing.pattern.Match; import java.util.List; public class LexerTests { @Test public void testBasicSuccess(){ Lexer<Integer> lexer = new Lexer<>(); lex...
Write tests for special cases.
Write tests for special cases.
Java
mit
DanilaFe/abacus,DanilaFe/abacus
8f1e9c993feac0569c79d2e7fb164d3a46e95230
src/peergos/server/OfflineBatCache.java
src/peergos/server/OfflineBatCache.java
package peergos.server; import peergos.server.storage.auth.*; import peergos.shared.storage.auth.*; import peergos.shared.util.*; import java.util.*; import java.util.concurrent.*; public class OfflineBatCache implements BatCave { private final BatCave target; private final BatCache cache; public Offli...
package peergos.server; import peergos.server.storage.auth.*; import peergos.shared.storage.auth.*; import peergos.shared.util.*; import java.util.*; import java.util.concurrent.*; public class OfflineBatCache implements BatCave { private final BatCave target; private final BatCache cache; public Offli...
Update offline bat cache after adding a bat
Update offline bat cache after adding a bat
Java
agpl-3.0
Peergos/Peergos,Peergos/Peergos,Peergos/Peergos
43b8920e895919c9fca70e0c6a86fbb32af7fdd6
src/org/mapyrus/Constants.java
src/org/mapyrus/Constants.java
/* * This file is part of Mapyrus. * * Mapyrus is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Mapyrus is distributed in th...
/* * This file is part of Mapyrus. * * Mapyrus is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Mapyrus is distributed in th...
Add line separator -- it is used in many places, so it is sensible to make it a constant.
Add line separator -- it is used in many places, so it is sensible to make it a constant.
Java
lgpl-2.1
simoc/mapyrus,simoc/mapyrus,simoc/mapyrus
17d31de00d6fcc5250a2c4f8c643c83f5ac724c5
src/main/java/com/fundynamic/d2tm/game/math/Vector2D.java
src/main/java/com/fundynamic/d2tm/game/math/Vector2D.java
package com.fundynamic.d2tm.game.math; public class Vector2D<T extends Number> { private final T x, y; public static Vector2D zero() { return new Vector2D(0, 0); } public Vector2D(T x, T y) { this.x = x; this.y = y; } public T getX() { return x; } pu...
package com.fundynamic.d2tm.game.math; public class Vector2D<T extends Number> { private final T x, y; public static Vector2D zero() { return new Vector2D(0, 0); } public Vector2D(T x, T y) { this.x = x; this.y = y; } public T getX() { return x; } pu...
Add toString for better logging/output
Add toString for better logging/output
Java
mit
Fundynamic/dune2themaker4j,Fundynamic/dune2themaker4j
9c00cf6bfbbc777c6cb1eb54440f11396ee77cf0
xwiki-core/src/test/java/com/xpn/xwiki/util/UtilTest.java
xwiki-core/src/test/java/com/xpn/xwiki/util/UtilTest.java
/* * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * th...
/* * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * th...
Add Utility API to remove all non alpha numeric chartacters from some text Use unicode escapes to properly use accented characters in the test.
XWIKI-2054: Add Utility API to remove all non alpha numeric chartacters from some text Use unicode escapes to properly use accented characters in the test. git-svn-id: cfa2b40e478804c47c05d0f328c574ec5aa2b82e@7277 f329d543-caf0-0310-9063-dda96c69346f
Java
lgpl-2.1
xwiki/xwiki-platform,xwiki/xwiki-platform,pbondoer/xwiki-platform,pbondoer/xwiki-platform,pbondoer/xwiki-platform,xwiki/xwiki-platform,xwiki/xwiki-platform,pbondoer/xwiki-platform,xwiki/xwiki-platform,pbondoer/xwiki-platform
37267f234dc3265c0a32cf6f4021f2cc96540739
src/fi/hallo/mapgen/HexMap.java
src/fi/hallo/mapgen/HexMap.java
package fi.hallo.mapgen; public class HexMap { private int height, width = 0; private Hex[][] map; public HexMap(int height, int width) { this.height = height; this.width = width; map = new Hex[height][width]; } }
package fi.hallo.mapgen; public class HexMap { public enum Region {NORTH, RIVERLAND, CROWNLAND, VALE, WESTERLAND, IRON, DORNE, REACH, STORMLAND}; private int height, width; private Hex[][] map; private Region region; public HexMap(int height, int width, Region region) { this.height = heig...
Add enum for map type
Add enum for map type
Java
mit
Hallo/mapgen
52d5322b20a9565e7927bd04ee8f0e5a77f946ae
template/src/leiningen/new/play_clj/IOSLauncher.java
template/src/leiningen/new/play_clj/IOSLauncher.java
package {{package}}; import clojure.lang.RT; import clojure.lang.Symbol; import com.badlogic.gdx.backends.iosrobovm.IOSApplication; import com.badlogic.gdx.backends.iosrobovm.IOSApplicationConfiguration; import com.badlogic.gdx.Game; import org.robovm.cocoatouch.foundation.NSAutoreleasePool; import org.robovm.cocoat...
package {{package}}; import clojure.lang.RT; import clojure.lang.Symbol; import com.badlogic.gdx.*; import com.badlogic.gdx.backends.iosrobovm.*; import org.robovm.apple.foundation.*; import org.robovm.apple.uikit.*; public class {{ios-class-name}} extends IOSApplication.Delegate { protected IOSApplication createA...
Update template for RoboVM 0.0.11
Update template for RoboVM 0.0.11
Java
unlicense
oakes/play-clj,the2bears/play-clj,brycecovert/play-clj,the2bears/play-clj,oakes/play-clj,brycecovert/play-clj
757862d6489422747374ff53a285b34b63d1ee02
test/uk/org/ponder/rsf/test/sitemap/TestSiteMap.java
test/uk/org/ponder/rsf/test/sitemap/TestSiteMap.java
/* * Created on 11-Jan-2006 */ package uk.org.ponder.rsf.test.sitemap; import java.util.HashMap; import uk.org.ponder.rsf.bare.junit.PlainRSFTests; import uk.org.ponder.rsf.viewstate.EntityCentredViewParameters; import uk.org.ponder.rsf.viewstate.support.BasicViewParametersParser; public class TestSiteM...
/* * Created on 11-Jan-2006 */ package uk.org.ponder.rsf.test.sitemap; import java.util.HashMap; import uk.org.ponder.rsf.bare.junit.PlainRSFTests; import uk.org.ponder.rsf.viewstate.EntityCentredViewParameters; import uk.org.ponder.rsf.viewstate.support.BasicViewParametersParser; public class TestSiteM...
Fix for loading SiteMap entry on Spring 2.x
Fix for loading SiteMap entry on Spring 2.x
Java
bsd-3-clause
rsf/RSFUtil,axxter99/RSFUtil,rsf/RSFUtil,axxter99/RSFUtil
f21ec7114e867953f58978dc7d7c895421ca28ad
src/main/java/com/joestelmach/natty/NattyTokenSource.java
src/main/java/com/joestelmach/natty/NattyTokenSource.java
package com.joestelmach.natty; import java.util.List; import org.antlr.runtime.Token; import org.antlr.runtime.TokenSource; public class NattyTokenSource implements TokenSource { private List<Token> _tokens; private int _index = 0; public NattyTokenSource(List<Token> tokens) { _tokens = tokens; } p...
package com.joestelmach.natty; import java.util.List; import org.antlr.runtime.CommonToken; import org.antlr.runtime.Token; import org.antlr.runtime.TokenSource; public class NattyTokenSource implements TokenSource { private static final Token EOF_TOKEN = new CommonToken(Token.EOF); private List<Token> _tokens;...
Return EOF token when no more tokens available. Required for antlr 3.3+.
Return EOF token when no more tokens available. Required for antlr 3.3+.
Java
mit
etourdot/natty,joestelmach/natty,cs2103aug2015-t16-1j/natty,chemouna/natty
97d89445e8a75c3e1dc596878f1a9a944f9317d5
src/test/java/org/zwobble/mammoth/tests/MammothTests.java
src/test/java/org/zwobble/mammoth/tests/MammothTests.java
package org.zwobble.mammoth.tests; import org.junit.Test; import org.zwobble.mammoth.Mammoth; import org.zwobble.mammoth.results.Result; import java.io.File; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; import static org.zwobble.mammoth.results.Result.success; import static org....
package org.zwobble.mammoth.tests; import org.junit.Test; import org.zwobble.mammoth.Mammoth; import org.zwobble.mammoth.results.Result; import java.io.File; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; import static org.zwobble.mammoth.results.Result.success; import static org....
Add test for reading XML with UTF8 BOM
Add test for reading XML with UTF8 BOM
Java
bsd-2-clause
mwilliamson/java-mammoth
cbc8dfb9e472377335c7969369d8f60a4f3692d9
src/main/java/org/dita/dost/platform/ImportXSLAction.java
src/main/java/org/dita/dost/platform/ImportXSLAction.java
/* * This file is part of the DITA Open Toolkit project. * * Copyright 2008 IBM Corporation * * See the accompanying LICENSE file for applicable license. */ package org.dita.dost.platform; import org.dita.dost.util.FileUtils; import org.dita.dost.util.XMLUtils.AttributesBuilder; import org.xml.sax.ContentHandle...
/* * This file is part of the DITA Open Toolkit project. * * Copyright 2008 IBM Corporation * * See the accompanying LICENSE file for applicable license. */ package org.dita.dost.platform; import org.dita.dost.util.URLUtils; import org.dita.dost.util.XMLUtils.AttributesBuilder; import org.xml.sax.ContentHandler...
Change XSLT import to use plugin URI scheme
Change XSLT import to use plugin URI scheme Signed-off-by: Jarno Elovirta <0f1ab0ac7dffd9db21aa539af2fd4bb04abc3ad4@elovirta.com>
Java
apache-2.0
infotexture/dita-ot,drmacro/dita-ot,dita-ot/dita-ot,shaneataylor/dita-ot,drmacro/dita-ot,infotexture/dita-ot,dita-ot/dita-ot,dita-ot/dita-ot,drmacro/dita-ot,dita-ot/dita-ot,drmacro/dita-ot,infotexture/dita-ot,infotexture/dita-ot,shaneataylor/dita-ot,dita-ot/dita-ot,infotexture/dita-ot,drmacro/dita-ot,shaneataylor/dita-...
13e79815dbe28cd73ce5eed880eb69b4cc01fdda
src/main/java/seedu/address/model/task/ReadOnlyEvent.java
src/main/java/seedu/address/model/task/ReadOnlyEvent.java
//@@author A0147984L package seedu.address.model.task; public interface ReadOnlyEvent extends ReadOnlyTask { TaskDate getStartDate(); TaskTime getStartTime(); /** * Formats the person as text, showing all contact details. */ default String getAsText() { final StringBuilder builder =...
//@@author A0147984L package seedu.address.model.task; public interface ReadOnlyEvent extends ReadOnlyTask { TaskDate getStartDate(); TaskTime getStartTime(); /** * Formats the person as text, showing all contact details. */ default String getAsText() { final StringBuilder builder =...
Change toString method in event
[Event] Change toString method in event
Java
mit
CS2103JAN2017-W10-B1/main,CS2103JAN2017-W10-B1/main
07e7c2eda756302ac4aeca77ceee6c69ac3672bf
src/test/java/org/achacha/test/TestDataConstants.java
src/test/java/org/achacha/test/TestDataConstants.java
package org.achacha.test; /** * Well known constants populated into the database */ public class TestDataConstants { // login public static final long JUNIT_USER_LOGINID = 2; public static final String JUNIT_USER_EMAIL = "junit"; public static final String JUNIT_USER_PASSWORD = "test"; public sta...
package org.achacha.test; /** * Well known constants populated into the database */ public class TestDataConstants { // login public static final long JUNIT_USER_LOGINID = 2; public static final String JUNIT_USER_EMAIL = "junit"; public static final String JUNIT_USER_PASSWORD = "test"; public sta...
Remove unused inventory id constant
Remove unused inventory id constant
Java
mit
achacha/SomeWebCardGame,achacha/SomeWebCardGame,achacha/SomeWebCardGame
cfaf1013ace3c884ad80fc56bc92f5c560af163b
tlatools/test/tlc2/tool/queue/DiskStateQueueTest.java
tlatools/test/tlc2/tool/queue/DiskStateQueueTest.java
package tlc2.tool.queue; import java.io.File; import tlc2.tool.TLCState; public class DiskStateQueueTest extends StateQueueTest { private File file; /* (non-Javadoc) * @see tlc2.tool.queue.StateQueueTest#setUp() */ protected void setUp() throws Exception { super.setUp(); // create a temp folder in java...
package tlc2.tool.queue; import java.io.File; import tlc2.tool.TLCState; public class DiskStateQueueTest extends StateQueueTest { private File file; /* (non-Javadoc) * @see tlc2.tool.queue.StateQueueTest#setUp() */ protected void setUp() throws Exception { super.setUp(); // create a temp folder in java...
Remove test files after test execution
Remove test files after test execution git-svn-id: 7acc490bd371dbc82047a939b87dc892fdc31f59@23716 76a6fc44-f60b-0410-a9a8-e67b0e8fc65c
Java
mit
lemmy/tlaplus,tlaplus/tlaplus,tlaplus/tlaplus,lemmy/tlaplus,lemmy/tlaplus,lemmy/tlaplus,tlaplus/tlaplus,tlaplus/tlaplus
baa121fd10ed0d54bb21d97c5a242d49c7b82ee6
core/src/main/java/io/github/tcdl/adapters/AdapterFactoryLoader.java
core/src/main/java/io/github/tcdl/adapters/AdapterFactoryLoader.java
package io.github.tcdl.adapters; import io.github.tcdl.exception.AdapterInitializationException; import io.github.tcdl.config.MsbConfigurations; /** * AdapterFactory creates an instance of Broker Adapter by means of Broker AdapterFactory. * Broker AdapterFactory and Broker Adapter are located in the separate prope...
package io.github.tcdl.adapters; import io.github.tcdl.exception.AdapterInitializationException; import io.github.tcdl.config.MsbConfigurations; /** * AdapterFactory creates an instance of Broker Adapter by means of Broker AdapterFactory. * Broker AdapterFactory and Broker Adapter are located in the separate prope...
Add link to AdapterFactory class(inside javadoc)
Add link to AdapterFactory class(inside javadoc)
Java
mit
tcdl/msb-java,tcdl/msb-java
278f31fe366d5d71daff5d6159b658475277d7a8
src/main/java/io/pivotal/cdm/model/SanitizationScript.java
src/main/java/io/pivotal/cdm/model/SanitizationScript.java
package io.pivotal.cdm.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class SanitizationScript { @Id @GeneratedValue(strategy = GenerationType.AUTO) long id; private String script; protected ...
package io.pivotal.cdm.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class SanitizationScript { final static long ID = 1; @Id long id = ID; private String script; protected SanitizationScr...
Fix bug saving script more than once
Fix bug saving script more than once
Java
apache-2.0
krujos/data-lifecycle-service-broker,krujos/data-lifecycle-service-broker,krujos/data-lifecycle-service-broker,krujos/data-lifecycle-service-broker
381426b533a8c55b40c227409c71d40d703bbc04
app/src/main/java/mozilla/org/webmaker/activity/Tinker.java
app/src/main/java/mozilla/org/webmaker/activity/Tinker.java
package mozilla.org.webmaker.activity; import android.app.ActionBar; import android.content.res.Resources; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.os.Bundle; import android.view.Menu; import android.view.Window; import android.view.WindowManager; import android.wid...
package mozilla.org.webmaker.activity; import android.app.ActionBar; import android.content.res.Resources; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.os.Bundle; import android.view.Menu; import android.view.Window; import android.view.WindowManager; import android.wid...
Remove options menu from tinker activity
Remove options menu from tinker activity
Java
mpl-2.0
bolaram/webmaker-android,rodmoreno/webmaker-android,alanmoo/webmaker-android,adamlofting/webmaker-android,gvn/webmaker-android,gvn/webmaker-android,rodmoreno/webmaker-android,j796160836/webmaker-android,j796160836/webmaker-android,alicoding/webmaker-android,bolaram/webmaker-android,k88hudson/webmaker-android,k88hudson/...
e075da88aff48d7cac3f1d325706902d6d7c73ac
src/main/java/seedu/tasklist/logic/commands/ShowCommand.java
src/main/java/seedu/tasklist/logic/commands/ShowCommand.java
package seedu.tasklist.logic.commands; /** * Shows all tasks that fulfill the category keyword. * Keyword matching is case insensitive. */ public class ShowCommand extends Command { public static final String COMMAND_WORD = "show"; public static final String MESSAGE_USAGE = COMMAND_WORD + ": Shows all tas...
package seedu.tasklist.logic.commands; /** * Shows all tasks that fulfill the category keyword. * Keyword matching is case insensitive. */ public class ShowCommand extends Command { public static final String COMMAND_WORD = "show"; public static final String MESSAGE_USAGE = COMMAND_WORD + ": Shows all tas...
Add incomplete category into showcommand
Add incomplete category into showcommand
Java
mit
CS2103AUG2016-T11-C1/main,CS2103AUG2016-T11-C1/main
a170750937e8064f26f7c10374a3f0c33dadae8a
api/src/main/java/org/openbaton/nfvo/api/RestMain.java
api/src/main/java/org/openbaton/nfvo/api/RestMain.java
package org.openbaton.nfvo.api; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; /** * Created by lto on 13/10/16. */ @RestController ...
package org.openbaton.nfvo.api; import org.openbaton.exceptions.NotFoundException; import org.openbaton.nfvo.security.interfaces.UserManagement; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.MediaType; import or...
Add rest api for download openbatonrc file
Fea: Add rest api for download openbatonrc file
Java
apache-2.0
openbaton/NFVO,openbaton/NFVO
f12a182175ca7a5735d6e6958948f3b5010641a4
src/test/java/magic/core/TestEdgeCases.java
src/test/java/magic/core/TestEdgeCases.java
package magic.core; import static org.junit.Assert.*; import org.junit.Test; import magic.Core; public class TestEdgeCases { @SuppressWarnings("unchecked") private <T> T exec(String code) { return (T) Core.eval(code).getValue(); } @Test public void testDefUnquote() { // unquote should create a symbol that...
package magic.core; import static org.junit.Assert.*; import org.junit.Test; import magic.Core; public class TestEdgeCases { @SuppressWarnings("unchecked") private <T> T exec(String code) { return (T) Core.eval(code).getValue(); } @Test public void testDefUnquote() { // unquote should create a symbol that...
Test for unquote in parameter vector
Test for unquote in parameter vector
Java
epl-1.0
mikera/magic
fb500c3797d61e8672f0e104565e05281b1982f1
src/test/java/com/tinkerpop/pipes/util/ScatterPipeTest.java
src/test/java/com/tinkerpop/pipes/util/ScatterPipeTest.java
package com.tinkerpop.pipes.util; import com.tinkerpop.pipes.BaseTest; import com.tinkerpop.pipes.Pipe; import java.util.Arrays; /** * @author Marko A. Rodriguez (http://markorodriguez.com) */ public class ScatterPipeTest extends BaseTest { public void testScatterPipe() { Pipe scatter = new ScatterPip...
package com.tinkerpop.pipes.util; import com.tinkerpop.pipes.BaseTest; import com.tinkerpop.pipes.Pipe; import java.util.Arrays; /** * @author Marko A. Rodriguez (http://markorodriguez.com) */ public class ScatterPipeTest extends BaseTest { public void testScatterPipe() { Pipe scatter = new ScatterPip...
Test reset on scatter pipe.
Test reset on scatter pipe.
Java
bsd-3-clause
tinkerpop/pipes,whshev/pipes
46c8f55b144e59eba7247c81aacae655fb9551f4
plugin-maven/src/main/java/com/diffplug/spotless/maven/kotlin/Ktfmt.java
plugin-maven/src/main/java/com/diffplug/spotless/maven/kotlin/Ktfmt.java
/* * Copyright 2016 DiffPlug * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright 2016 DiffPlug * * 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 ...
Support ktfmt dropbox style in maven plugin
Support ktfmt dropbox style in maven plugin
Java
apache-2.0
diffplug/spotless,diffplug/spotless,diffplug/spotless,diffplug/spotless,diffplug/spotless,diffplug/spotless
355a5fa8b1601ada01c60de80d97c3fbc4988b9f
src/main/java/com/yubico/client/v2/Cmd.java
src/main/java/com/yubico/client/v2/Cmd.java
package com.yubico.client.v2; /** * Created by IntelliJ IDEA. * User: lwid * Date: 1/28/11 * Time: 2:07 PM * To change this template use File | Settings | File Templates. */ public class Cmd { public static void main (String args []) throws Exception { if (args.length != 2) { System....
package com.yubico.client.v2; /** * Created by IntelliJ IDEA. * User: lwid * Date: 1/28/11 * Time: 2:07 PM * To change this template use File | Settings | File Templates. */ public class Cmd { public static void main (String args []) throws Exception { if (args.length != 2) { System....
Handle null returns from client constructor
Handle null returns from client constructor
Java
bsd-2-clause
Yubico/yubico-java-client,Yubico/yubico-java-client
011db4c2de258e08e6d547f1dfe89f28f08fa714
src/edu/stuy/commands/AutonSetting6.java
src/edu/stuy/commands/AutonSetting6.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.stuy.commands; /** * Shoots from key at 2 point hoop * @author admin */ import edu.stuy.subsystems.Flywheel; import edu.wpi.first.wpilibj.command.CommandGroup; public class AutonSetting6 extends CommandG...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.stuy.commands; /** * Shoots from key at 2 point hoop * @author admin */ import edu.stuy.subsystems.Flywheel; import edu.wpi.first.wpilibj.command.CommandGroup; public class AutonSetting6 extends CommandG...
Use top hoop for autonsettin6 instead of two-point shot
Use top hoop for autonsettin6 instead of two-point shot
Java
bsd-3-clause
Team694/joebot
a1b03634cdb385c7c002b4c9b13453e82a6524a9
FrontEnd/src/main/java/webserver/Client.java
FrontEnd/src/main/java/webserver/Client.java
package webserver; import org.slf4j.MDC; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class Client { public static void main(String[] args) { MDC.put("pid", getPid()); SpringApplication.run(Cl...
package webserver; import helpers.CommandLineArgumentParser; import helpers.PidManipulation; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.slf4j.MDC; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication pub...
Use parser class to process the program arguments.
Use parser class to process the program arguments.
Java
apache-2.0
IrimieBogdan/DistributedMonitoring,IrimieBogdan/DistributedMonitoring,IrimieBogdan/DistributedMonitoring
35c09b5181516aa35e2e17a345db41e0b95b2770
src/org/notimetoplay/voxeldesc/VoxelScene.java
src/org/notimetoplay/voxeldesc/VoxelScene.java
package org.notimetoplay.voxeldesc; import java.util.TreeMap; import java.awt.Color; public class VoxelScene { private TreeMap<Point3D, Color> voxels = new TreeMap<Point3D, Color>(); public TreeMap<Point3D, Color> getVoxels() { return voxels; } }
package org.notimetoplay.voxeldesc; import java.util.TreeMap; import java.awt.Color; public class VoxelScene { private TreeMap<Point3D, Color> voxels = new TreeMap<Point3D, Color>(); public TreeMap<Point3D, Color> getVoxels() { return voxels; } private Color drawingColor = Color.BLACK; public Color getDra...
Add minimal set of drawing primitives.
Add minimal set of drawing primitives.
Java
artistic-2.0
felixplesoianu/voxeldesc,felixplesoianu/voxeldesc
3781aab6c0006cafac24f2a8c514d2908d80a428
structurizr-core/src/com/structurizr/componentfinder/ComponentFinder.java
structurizr-core/src/com/structurizr/componentfinder/ComponentFinder.java
package com.structurizr.componentfinder; import com.structurizr.model.Component; import com.structurizr.model.Container; import java.util.ArrayList; import java.util.Collection; import java.util.LinkedList; import java.util.List; public class ComponentFinder { private Container container; private String pac...
package com.structurizr.componentfinder; import com.structurizr.model.Component; import com.structurizr.model.Container; import java.util.ArrayList; import java.util.Collection; import java.util.LinkedList; import java.util.List; public class ComponentFinder { private Container container; private String pac...
Make getContainer and getPackagesToScan public. 3rd party component finder strategies living in different packages can now use those functions.
Make getContainer and getPackagesToScan public. 3rd party component finder strategies living in different packages can now use those functions.
Java
apache-2.0
structurizr/java,klu2/structurizr-java