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
2df8ccd555657fbc8590138ceee15eabeddb22c5
Drinks/src/main/java/fr/masciulli/drinks/fragment/AboutDialogFragment.java
Drinks/src/main/java/fr/masciulli/drinks/fragment/AboutDialogFragment.java
package fr.masciulli.drinks.fragment; import android.app.AlertDialog; import android.app.Dialog; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.os.Bundle; import android.support.v4.app.DialogFragment; import android.view.LayoutInflater; import android.view.View; import ...
package fr.masciulli.drinks.fragment; import android.app.AlertDialog; import android.app.Dialog; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.os.Bundle; import android.support.v4.app.DialogFragment; import android.view.LayoutInflater; import android.view.View; import ...
Use ButterKnife in About Dialog
Use ButterKnife in About Dialog
Java
apache-2.0
amasciul/Drinks,vbarthel-fr/Drinks,vbarthel-fr/Drinks,mechdome/Drinks,amasciul/Drinks,amasciul/Drinks,mechdome/Drinks
b7a3ccf6c18e2e314a152b7df98218f9e54441ae
catpeds-rest/src/main/java/com/catpeds/rest/resource/PedigreeResource.java
catpeds-rest/src/main/java/com/catpeds/rest/resource/PedigreeResource.java
package com.catpeds.rest.resource; import java.util.Objects; import org.springframework.hateoas.ResourceSupport; import com.catpeds.model.Pedigree; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; /** * {@link Pedigree}'s {@link ResourceSupport} * * @auth...
package com.catpeds.rest.resource; import java.util.Objects; import org.springframework.hateoas.ResourceSupport; import com.catpeds.model.Pedigree; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; /** * {@link Pedigree}'s {@link ResourceSupport} * * @auth...
Remove non required if else statement
Remove non required if else statement
Java
mit
padriano/catpeds,padriano/catpeds,padriano/catpeds
a2cb4dbbfb513835a812821cdff66199cac2e28c
integrationtests/src/main/java/com/emc/pravega/demo/StartLocalService.java
integrationtests/src/main/java/com/emc/pravega/demo/StartLocalService.java
package com.emc.pravega.demo; import java.time.Duration; import com.emc.pravega.service.contracts.StreamSegmentStore; import com.emc.pravega.service.server.host.handler.PravegaConnectionListener; import com.emc.pravega.service.server.mocks.InMemoryServiceBuilder; import com.emc.pravega.service.server.store.ServiceBui...
package com.emc.pravega.demo; import java.time.Duration; import com.emc.pravega.service.contracts.StreamSegmentStore; import com.emc.pravega.service.server.host.handler.PravegaConnectionListener; import com.emc.pravega.service.server.mocks.InMemoryServiceBuilder; import com.emc.pravega.service.server.store.ServiceBui...
Work around service not exiting.
Work around service not exiting.
Java
apache-2.0
pravega/pravega,pravega/pravega,pravega/pravega
2061ea6f970d95825031bb15b5fb55363e43646a
src/test/java/info/u_team/u_team_test/init/TestCommonBusRegister.java
src/test/java/info/u_team/u_team_test/init/TestCommonBusRegister.java
package info.u_team.u_team_test.init; import info.u_team.u_team_core.util.registry.BusRegister; public class TestCommonBusRegister { public static void register() { BusRegister.registerMod(TestBiomes::registerMod); BusRegister.registerMod(TestBlocks::registerMod); BusRegister.registerMod(TestContainers::regi...
package info.u_team.u_team_test.init; import info.u_team.u_team_core.api.construct.*; import info.u_team.u_team_core.util.registry.BusRegister; @Construct() public class TestCommonBusRegister implements IModConstruct { @Override public void construct() { BusRegister.registerMod(TestBiomes::registerMod); BusRe...
Implement the construct annotation in the common bus register
Implement the construct annotation in the common bus register
Java
apache-2.0
MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core
b8eec3454f113048dcf28e82d6d312f694b50e7c
vertx-web/src/main/java/io/vertx/ext/web/MIMEHeader.java
vertx-web/src/main/java/io/vertx/ext/web/MIMEHeader.java
package io.vertx.ext.web; import io.vertx.codegen.annotations.VertxGen; @VertxGen public interface MIMEHeader extends ParsedHeaderValue{ /** * Gets the parsed component part of the MIME. This is the string between the beginning and the first @{code '/'} * of the MIME * @return The component of the MIME ...
package io.vertx.ext.web; import io.vertx.codegen.annotations.VertxGen; @VertxGen public interface MIMEHeader extends ParsedHeaderValue{ /** * Gets the parsed component part of the MIME. This is the string between the beginning and the first {@code '/'} * of the MIME * @return The component of the MIME th...
Fix incorrect javadoc {@code} taglet
Fix incorrect javadoc {@code} taglet
Java
apache-2.0
InfoSec812/vertx-web,aesteve/vertx-web,aesteve/vertx-web,vert-x3/vertx-web,InfoSec812/vertx-web,InfoSec812/vertx-web,vert-x3/vertx-web,InfoSec812/vertx-web,aesteve/vertx-web,vert-x3/vertx-web,vert-x3/vertx-web,aesteve/vertx-web,InfoSec812/vertx-web,InfoSec812/vertx-web,aesteve/vertx-web,vert-x3/vertx-web
7c83388b8fc1989c2e00363ef1e60c0182b5306a
src/main/java/com/axiomalaska/sos/injector/db/DatabaseSosInjector.java
src/main/java/com/axiomalaska/sos/injector/db/DatabaseSosInjector.java
package com.axiomalaska.sos.injector.db; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.axiomalaska.sos.SosInjector; public class DatabaseSosInjector { private static final Logger LOGGER = LoggerFactory.getLogger(DatabaseSosInjector.class); private static final String MOCK = "mock"; ...
package com.axiomalaska.sos.injector.db; import java.util.concurrent.TimeUnit; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.axiomalaska.sos.SosInjector; import com.google.common.base.Stopwatch; public class DatabaseSosInjector { private static final Logger LOGGER = LoggerFactory.getLogger...
Add stopwatch to log output and a finished message
Add stopwatch to log output and a finished message
Java
unlicense
ioos/sos-injector-db
1b0f0c72c021bcb1c5317c8b92cc6d3e561a4607
crontab4j-scheduler/src/test/java/org/keyboardplaying/cron/scheduler/CronJobTest.java
crontab4j-scheduler/src/test/java/org/keyboardplaying/cron/scheduler/CronJobTest.java
package org.keyboardplaying.cron.scheduler; import static org.junit.Assert.assertEquals; import org.junit.Test; /** * Tests {@link CronJob}. * * @author Cyrille Chopelet (http://keyboardplaying.org) */ public class CronJobTest { private static final String CRON_EVRY_MIN = "* * * * *"; private Runnable ...
package org.keyboardplaying.cron.scheduler; import static org.junit.Assert.assertEquals; import org.junit.Test; /** * Tests {@link CronJob}. * * @author Cyrille Chopelet (http://keyboardplaying.org) */ public class CronJobTest { private static final String CRON_EVRY_MIN = "* * * * *"; private Runnable ...
Test coverage for Spring instantiation (actual tests with Spring will come later)
Test coverage for Spring instantiation (actual tests with Spring will come later)
Java
bsd-3-clause
cyChop/crontab4j
9203b4fb7472991b698995fabd8496d8f6c2f980
src/com/rabenauge/demo/DirectBuffer.java
src/com/rabenauge/demo/DirectBuffer.java
package com.rabenauge.demo; import java.nio.*; /* * A class to create directly allocated buffers of native byte order. */ public class DirectBuffer { public static ByteBuffer nativeByteBuffer(int capacity) { ByteBuffer buffer=ByteBuffer.allocateDirect(capacity); buffer.order(ByteOrder....
package com.rabenauge.demo; import java.nio.*; /* * A class to create directly allocated buffers of native byte order. */ public class DirectBuffer { public static ByteBuffer nativeByteBuffer(int capacity) { ByteBuffer buffer=ByteBuffer.allocateDirect(capacity); buffer.order(ByteOrder....
Add float allocators for completeness
Add float allocators for completeness
Java
apache-2.0
sschuberth/parandroid
81004ff9605d8bd19c50ca65d69970283c462a83
BloodBank_JAVA/src/persons/Donor.java
BloodBank_JAVA/src/persons/Donor.java
package persons; /** * Created by fcmam5 on 11/13/15. * Implemented by Mouilah-Sarra */ public class Donor extends Personne { private static int donNum = 0; private int quantite; boolean motivation; public Donor(String name, String firstName, int age, String grouping, String[] adresse, int quantite...
package persons; import java.util.Objects; /** * Created by fcmam5 on 11/13/15. * Implemented by Mouilah-Sarra */ public class Donor extends Personne { private static int donNum = 0; private int quantite; private boolean motivation; private Object donorCard[] = new Object[3]; // [[int DonorKey]|[St...
Set a key to donors
Set a key to donors
Java
mit
Fcmam5/BloodBank_project
b3888e27b899b540b95a16757647d9eee446b82c
src/main/java/fape/core/planning/search/strategies/plans/SeqPlanComparator.java
src/main/java/fape/core/planning/search/strategies/plans/SeqPlanComparator.java
package fape.core.planning.search.strategies.plans; import fape.core.planning.states.State; import java.util.LinkedList; import java.util.List; /** * Used to use a sequence of PartialPlanComparator as one. * * The basic algorithm for comparing two partial plans is to apply the comparators in sequence until it res...
package fape.core.planning.search.strategies.plans; import fape.core.planning.states.State; import java.util.LinkedList; import java.util.List; /** * Used to use a sequence of PartialPlanComparator as one. * * The basic algorithm for comparing two partial plans is to apply the comparators in sequence until it res...
Add tie breaker for plan comparators.
Add tie breaker for plan comparators. First choose the one with shortest makespan. If it still a tie, use the id of the state to make sure the output is deterministic.
Java
bsd-2-clause
athy/fape,athy/fape,athy/fape,athy/fape
efa2d61d61a744d216d4ea3c35450783952f5d7e
bottomsheet-commons/src/main/java/com/flipboard/bottomsheet/commons/SquareImageView.java
bottomsheet-commons/src/main/java/com/flipboard/bottomsheet/commons/SquareImageView.java
package com.flipboard.bottomsheet.commons; import android.annotation.TargetApi; import android.content.Context; import android.os.Build; import android.util.AttributeSet; import android.widget.ImageView; /** * An ImageView that keeps a 1:1 aspect ratio */ final class SquareImageView extends ImageView { public S...
package com.flipboard.bottomsheet.commons; import android.annotation.TargetApi; import android.content.Context; import android.os.Build; import android.util.AttributeSet; import android.widget.ImageView; /** * An ImageView that keeps a 1:1 aspect ratio */ final class SquareImageView extends ImageView { public S...
Use more accurate name for clarity in measuring
Use more accurate name for clarity in measuring
Java
bsd-3-clause
bernaferrari/bottomsheet,nissiy/bottomsheet,Learn-Android-app/bottomsheet,MaTriXy/bottomsheet,jiangzhonghui/bottomsheet,AKiniyalocts/bottomsheet,eric-sofisoftwarellc/bottomsheet-1,Flipboard/bottomsheet,newmanicspree/bottomsheet,jaohoang/bottomsheet-1
44bade07824eb81a449ba7abc2750c8094506195
src/main/java/io/gravitee/common/http/HttpMethod.java
src/main/java/io/gravitee/common/http/HttpMethod.java
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
Add code to HTTP method
feat(http): Add code to HTTP method Closes gravitee-io/issues#836
Java
apache-2.0
gravitee-io/gravitee-common
a13fb5b4a5aaa9ab5b457f537d1e907f91985a44
src/main/java/info/u_team/u_team_core/util/ModelUtil.java
src/main/java/info/u_team/u_team_core/util/ModelUtil.java
package info.u_team.u_team_core.util; import static net.minecraft.client.renderer.model.ModelBakery.STATE_CONTAINER_OVERRIDES; import java.util.*; import com.google.common.collect.ImmutableMap; import net.minecraft.block.*; import net.minecraft.state.StateContainer; import net.minecraft.util.ResourceLocation; impor...
package info.u_team.u_team_core.util; import static net.minecraft.client.renderer.model.ModelBakery.STATE_CONTAINER_OVERRIDES; import java.util.*; import com.google.common.collect.*; import net.minecraft.block.*; import net.minecraft.state.StateContainer; import net.minecraft.util.ResourceLocation; import net.minec...
Add empty state container class as utility
Add empty state container class as utility
Java
apache-2.0
MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core
2b9ffe0e0b719993830587ac13e73177c18f869f
src/test/java/info/u_team/u_team_test/container/BasicFluidInventoryContainer.java
src/test/java/info/u_team/u_team_test/container/BasicFluidInventoryContainer.java
package info.u_team.u_team_test.container; import info.u_team.u_team_core.container.UTileEntityContainer; import info.u_team.u_team_test.init.TestContainers; import info.u_team.u_team_test.tileentity.BasicFluidInventoryTileEntity; import net.minecraft.entity.player.PlayerInventory; import net.minecraft.network.PacketB...
package info.u_team.u_team_test.container; import info.u_team.u_team_core.container.UTileEntityContainer; import info.u_team.u_team_test.init.TestContainers; import info.u_team.u_team_test.tileentity.BasicFluidInventoryTileEntity; import net.minecraft.entity.player.PlayerInventory; import net.minecraft.network.PacketB...
Add player inventory and basic fluid slots
Add player inventory and basic fluid slots
Java
apache-2.0
MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core
ae01a03122aca6dfdd598e3b3ae2a0a21fd313b1
webapp/test/edu/cornell/mannlib/vitro/webapp/controller/EntityControllerTest.java
webapp/test/edu/cornell/mannlib/vitro/webapp/controller/EntityControllerTest.java
package edu.cornell.mannlib.vitro.webapp.controller; import org.junit.Assert; import org.junit.Test; import edu.cornell.mannlib.vitro.webapp.web.ContentType; public class EntityControllerTest { @Test public void testAcceptHeader(){ EntityController entityController = new EntityController(); /* Check to se...
/* $This file is distributed under the terms of the license in /doc/license.txt$ */ package edu.cornell.mannlib.vitro.webapp.controller; import org.junit.Assert; import org.junit.Test; import edu.cornell.mannlib.vitro.webapp.web.ContentType; public class EntityControllerTest { @Test public void testAcceptHeader...
Add a "magic license comment"
Add a "magic license comment"
Java
bsd-3-clause
vivo-project/Vitro,vivo-project/Vitro,vivo-project/Vitro,vivo-project/Vitro
aad994b5792d0529800c2d22c62526d64215495a
renderer-src/net/hillsdon/reviki/wiki/renderer/TestRendererRegistry.java
renderer-src/net/hillsdon/reviki/wiki/renderer/TestRendererRegistry.java
/** * Copyright 2008 Matthew Hillsdon * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
/** * Copyright 2008 Matthew Hillsdon * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Add extra tests for the renderer registry
Add extra tests for the renderer registry
Java
apache-2.0
strr/reviki,ashirley/reviki,CoreFiling/reviki,ashirley/reviki,CoreFiling/reviki,CoreFiling/reviki,strr/reviki,ashirley/reviki,CoreFiling/reviki,strr/reviki,strr/reviki,ashirley/reviki,CoreFiling/reviki,strr/reviki,ashirley/reviki
f39ff3154d33f326e8c6c075b98448e351f774af
src/Weighttable.java
src/Weighttable.java
import java.util.Hashtable; import java.util.Random; /** * A weight table is used to have keys that contain an ordered set of N strings corresponding to values that are string- * integer pairs. * * [a, b, c, d] -> [(foo, 12), (bar, 7)] * [b, c, d, foo] -> [(baz, 1)] * [b, c, d, bar] -> [(foobar, 1), (foobaz, 2...
import java.util.Hashtable; import java.util.Random; /** * A weight table is used to have keys that contain an ordered set of N strings corresponding to values that are string- * integer pairs. * @author Alek Ratzloff * */ public class Weighttable extends Hashtable<String, Integer> { /** * This is to kill the ...
Update documentation in weighttable.java to remove the non-relevant stuff anymore
Update documentation in weighttable.java to remove the non-relevant stuff anymore
Java
bsd-2-clause
alekratz/markov-gen,alekratz/markov-gen
12152e6e64d3881af55629ce687fc05118357f1a
data-model/src/main/java/org/pdxfinder/repositories/PatientSnapshotRepository.java
data-model/src/main/java/org/pdxfinder/repositories/PatientSnapshotRepository.java
package org.pdxfinder.repositories; import org.pdxfinder.dao.Patient; import org.pdxfinder.dao.PatientSnapshot; import org.springframework.data.neo4j.annotation.Query; import org.springframework.data.neo4j.repository.Neo4jRepository; import org.springframework.data.repository.query.Param; import org.springframework.st...
package org.pdxfinder.repositories; import org.pdxfinder.dao.Patient; import org.pdxfinder.dao.PatientSnapshot; import org.springframework.data.neo4j.annotation.Query; import org.springframework.data.neo4j.repository.Neo4jRepository; import org.springframework.data.repository.query.Param; import org.springframework.st...
Update query with additional nodes
Update query with additional nodes
Java
apache-2.0
PDXFinder/pdxfinder,PDXFinder/pdxfinder,PDXFinder/pdxfinder,PDXFinder/pdxfinder
5b113dc08a2c155bbf85baf97058eee01c1cfb7f
src/com/nigorojr/typebest/Tester.java
src/com/nigorojr/typebest/Tester.java
package com.nigorojr.typebest; import java.sql.SQLException; import java.util.HashMap; public class Tester { public static void main(String[] args) { // This is to test the behavior of the Database class try { Records rec = new Records(); System.out.println("exist?\n" + re...
package com.nigorojr.typebest; import java.sql.SQLException; import java.util.HashMap; public class Tester { public static void main(String[] args) { // This is to test the behavior of the Database class try { Records rec = new Records(); System.out.println("exist?\n" + re...
Add test for checking whether insert method runs or not
Add test for checking whether insert method runs or not Tester class for the insert method that was implemented in the Records class. Whether or not the values were properly inserted has not been checked yet. This test was done only to check if it can be ran without exceptions happening.
Java
mit
NigoroJr/typebest
91bd4abec789636041e6ffe2d3481d5e48798534
app/src/main/java/com/aayaffe/sailingracecoursemanager/communication/ObjectTypes.java
app/src/main/java/com/aayaffe/sailingracecoursemanager/communication/ObjectTypes.java
package com.aayaffe.sailingracecoursemanager.communication; import java.io.Serializable; /** * Created by aayaffe on 30/09/2015. */ public enum ObjectTypes { WorkerBoat, FlagBuoy, TomatoBuoy, TriangleBuoy, StartLine, FinishLine, StartFinishLine, RaceManager, //from here, the releva...
package com.aayaffe.sailingracecoursemanager.communication; import java.io.Serializable; /** * Created by aayaffe on 30/09/2015. */ public enum ObjectTypes { RaceManager(0), WorkerBoat(1), Buoy(2), FlagBuoy(3), TomatoBuoy(4), TriangleBuoy(5), StartLine(6), FinishLine(7), StartFin...
Revert "Revert "Updated object types in Dev""
Revert "Revert "Updated object types in Dev"" This reverts commit 640067d83b3bdb0c9547926fbecf69b08b227548.
Java
apache-2.0
aayaffe/SailingRaceCourseManager,aayaffe/SailingRaceCourseManager
1a4219fa468c64f44aaf5fad251d3b6780e50bd5
animators/src/main/java/jp/wasabeef/recyclerview/internal/ViewHelper.java
animators/src/main/java/jp/wasabeef/recyclerview/internal/ViewHelper.java
package jp.wasabeef.recyclerview.internal; import android.support.v4.view.ViewCompat; import android.view.View; /** * Copyright (C) 2015 Wasabeef * * 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 L...
package jp.wasabeef.recyclerview.internal; import android.support.v4.view.ViewCompat; import android.view.View; /** * Copyright (C) 2015 Wasabeef * * 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 L...
Fix setStartDelay() is not reset by clear()
Fix setStartDelay() is not reset by clear()
Java
apache-2.0
MaTriXy/recyclerview-animators,wasabeef/recyclerview-animators,wasabeef/recyclerview-animators
0f276a2da28b87e7e86d3becbf7f757f37f7f4ae
core/src/main/java/de/cdietze/ld37/core/MathUtils.java
core/src/main/java/de/cdietze/ld37/core/MathUtils.java
package de.cdietze.ld37.core; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Random; public class MathUtils { public static List<Integer> shuffledRange(int size, Random random) { ArrayList<Integer> list = new ArrayList<>(size); for (int i = 0; i < size; ++...
package de.cdietze.ld37.core; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Random; public class MathUtils { public static List<Integer> shuffledRange(int size, Random random) { ArrayList<Integer> list = new ArrayList<>(size); for (int i = 0; i < size; ++...
Fix for GWT’s missing collections.shuffle
Fix for GWT’s missing collections.shuffle
Java
apache-2.0
cdietze/ld37,cdietze/ld37
8a0672676c6bf5978e18962a71485a9082457c1b
test/unit/edu/northwestern/bioinformatics/studycalendar/testing/StudyCalendarTestCase.java
test/unit/edu/northwestern/bioinformatics/studycalendar/testing/StudyCalendarTestCase.java
package edu.northwestern.bioinformatics.studycalendar.testing; import junit.framework.TestCase; import java.lang.reflect.Method; import java.util.Set; import java.util.HashSet; import org.easymock.classextension.EasyMock; /** * @author Rhett Sutphin */ public abstract class StudyCalendarTestCase extends TestCase ...
package edu.northwestern.bioinformatics.studycalendar.testing; import edu.nwu.bioinformatics.commons.testing.CoreTestCase; import junit.framework.TestCase; import java.lang.reflect.Method; import java.util.Set; import java.util.HashSet; import org.easymock.classextension.EasyMock; /** * @author Rhett Sutphin */ ...
Extend CoreTestCase for access to assertPositve/Negative, others
Extend CoreTestCase for access to assertPositve/Negative, others git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@136 0d517254-b314-0410-acde-c619094fa49f
Java
bsd-3-clause
NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror
295e8e430555d85dc19e5b5977e45b84b29be25e
src/main/java/starpunk/GameScreen.java
src/main/java/starpunk/GameScreen.java
package starpunk; import com.badlogic.gdx.Screen; public class GameScreen implements Screen { @Override public void render( final float delta ) { } @Override public void resize( int width, int height ) { } @Override public void show() { } @Override public void hide() { } @Overr...
package starpunk; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Screen; import com.badlogic.gdx.graphics.GL10; public class GameScreen implements Screen { @Override public void render( final float delta ) { Gdx.gl10.glClear( GL10.GL_COLOR_BUFFER_BIT ); } @Override public void resize( int wid...
Clear the screen on render
Clear the screen on render
Java
apache-2.0
realityforge-experiments/star-punk,realityforge-experiments/star-punk,realityforge-experiments/star-punk
315bb82c1eaa111346e07216b2d1e4d2bc876b5c
src/main/java/panda/leatherworks/common/network/messagehandler/DummyMessageHandler.java
src/main/java/panda/leatherworks/common/network/messagehandler/DummyMessageHandler.java
package panda.leatherworks.common.network.messagehandler; import net.minecraftforge.fml.common.network.simpleimpl.IMessage; import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler; import net.minecraftforge.fml.common.network.simpleimpl.MessageContext; public class DummyMessageHandler implements IMess...
package panda.leatherworks.common.network.messagehandler; import net.minecraftforge.fml.common.network.simpleimpl.IMessage; import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler; import net.minecraftforge.fml.common.network.simpleimpl.MessageContext; /** * This dummy handler will do nothing. * * ...
Add description to dummy message handler
Add description to dummy message handler
Java
lgpl-2.1
cleverpanda/LeatherWorks
cb577270522966fe7788bef3f0e395091ee4ba09
src/test/java/com/fasterxml/jackson/databind/deser/TestNoClassDefFoundDeserializer.java
src/test/java/com/fasterxml/jackson/databind/deser/TestNoClassDefFoundDeserializer.java
package com.fasterxml.jackson.databind.deser; import javax.measure.Measure; import java.util.List; import com.fasterxml.jackson.databind.BaseMapTest; import com.fasterxml.jackson.databind.ObjectMapper; public class TestNoClassDefFoundDeserializer extends BaseMapTest { public static class Parent { publ...
package com.fasterxml.jackson.databind.deser; import javax.measure.Measure; import java.util.List; import com.fasterxml.jackson.databind.BaseMapTest; import com.fasterxml.jackson.databind.ObjectMapper; public class TestNoClassDefFoundDeserializer extends BaseMapTest { public static class Parent { publ...
Remove unneeded exception signature from unit test.
Remove unneeded exception signature from unit test.
Java
apache-2.0
FasterXML/jackson-databind,FasterXML/jackson-databind
333ab3d64a8ea8f5b9bd45764bf471d526aa3a06
OpERP/src/main/java/devopsdistilled/operp/client/items/controllers/EditItemPaneController.java
OpERP/src/main/java/devopsdistilled/operp/client/items/controllers/EditItemPaneController.java
package devopsdistilled.operp.client.items.controllers; import devopsdistilled.operp.client.abstracts.SubTaskPaneController; import devopsdistilled.operp.server.data.entity.items.Item; public interface EditItemPaneController extends SubTaskPaneController { public void init(Item item); public Item save(Item item);...
package devopsdistilled.operp.client.items.controllers; import devopsdistilled.operp.client.abstracts.SubTaskPaneController; import devopsdistilled.operp.client.items.exceptions.ItemNameExistsException; import devopsdistilled.operp.client.items.exceptions.NullFieldException; import devopsdistilled.operp.client.items.e...
Add throws clause to validate()
Add throws clause to validate() OPEN - task 48: Create "Edit Item" functionality http://github.com/DevOpsDistilled/OpERP/issues/issue/48
Java
mit
DevOpsDistilled/OpERP,njmube/OpERP
370e51834a1cbf4c2698bbad8826ac6e45904b41
src/com/rehab/animation/Drawable.java
src/com/rehab/animation/Drawable.java
package com.rehab.animation; public interface Drawable { double getX (); double getY (); double getWidth(); double getHeight(); Sprite getSprite(); void setSprite(Sprite s); int getZ(); void onClick(); boolean isVisible(); float getRotation(); void setRotation(float f); }
package com.rehab.animation; import javafx.scene.input.MouseEvent; public interface Drawable { double getX (); double getY (); double getWidth(); double getHeight(); Sprite getSprite(); void setSprite(Sprite s); int getZ(); boolean isVisible(); float getRotation(); void setRotation(flo...
Support for method to mirror
Support for method to mirror Added isFacingLeft()
Java
mit
joltix/rehab-engine
c1ae1393f8b3717c4dd174a4cf7134c70805ab9d
src/main/java/parse/ArticleParse.java
src/main/java/parse/ArticleParse.java
/* Article Parse */ import java.io.*; public class ArticleParse { public static void main(String[] args) { System.out.println("Running Article Parse"); } }
/* Article Parse */ import java.io.*; public class ArticleParse { public static void main(String[] args) { if (args.length == 0) { printUsageInterface(); System.exit(1); } System.out.println("Running Article Parse... (prints PDFs encountered)"); } private static void p...
Print purpose and usage if called without arguments
feature: Print purpose and usage if called without arguments
Java
mit
EJBM-Einstein/ArticleParse
038ed27a956221827c1639a0affe87d80b51fec8
src/com/meta1203/ChessPlayer/CalculateMovesThread.java
src/com/meta1203/ChessPlayer/CalculateMovesThread.java
package com.meta1203.ChessPlayer; import java.util.List; public class CalculateMovesThread extends Thread { private Turn originTurn; public CalculateMovesThread(Turn t) { originTurn = t; } @Override public void run() { List<Move> moves = originTurn.getBoard().getMoves(originTurn); for (Move x : moves) ...
package com.meta1203.ChessPlayer; import java.util.List; public class CalculateMovesThread implements Runnable { private Turn originTurn; public CalculateMovesThread(Turn t) { originTurn = t; } @Override public void run() { List<Move> moves = originTurn.getBoard().getMoves(originTurn); for (Move x : mo...
Change from a Thread to a Runnable for use in an ExecutorService
Change from a Thread to a Runnable for use in an ExecutorService
Java
apache-2.0
Hunters-Portfolio/ChessPlayer
14b4b116e9b81027515418cfc518f34b68ee46f4
src/main/java/valandur/webapi/json/serializers/events/CauseSerializer.java
src/main/java/valandur/webapi/json/serializers/events/CauseSerializer.java
package valandur.webapi.json.serializers.events; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.ser.std.StdSerializer; import org.spongepowered.api.event.cause.Cause; import java.io.IOException; import java.util.Map; pu...
package valandur.webapi.json.serializers.events; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.ser.std.StdSerializer; import org.spongepowered.api.event.cause.Cause; import java.io.IOException; import java.util.ArrayLis...
Fix cmd hook not working for commands run via Web-API
fix(hooks): Fix cmd hook not working for commands run via Web-API
Java
mit
Valandur/Web-API,Valandur/Web-API,Valandur/Web-API
8c87a7287031cf18279d72b4dee1dd86c2fa0fb8
src/main/java/stream/flarebot/flarebot/util/Pair.java
src/main/java/stream/flarebot/flarebot/util/Pair.java
package stream.flarebot.flarebot.util; public class Pair<K, V> { private K key; private V value; public K getKey() { return this.key; } public void setKey(K key) { this.key = key; } public V getValue() { return this.value; } public void setValue(V value)...
package stream.flarebot.flarebot.util; public class Pair<K, V> { private K key; private V value; public Pair(K key, V value) { this.key = key; this.value = value; } public Pair(){} public K getKey() { return this.key; } public void setKey(K key) { th...
Add a god damn constructor
Add a god damn constructor
Java
mit
weeryan17/FlareBot,binaryoverload/FlareBot,FlareBot/FlareBot
930018e5b8e96f4830332ab0cf2a34bbe58c3056
regularroutes/src/main/java/fi/aalto/trafficsense/regularroutes/backend/pipeline/DataQueue.java
regularroutes/src/main/java/fi/aalto/trafficsense/regularroutes/backend/pipeline/DataQueue.java
package fi.aalto.trafficsense.regularroutes.backend.pipeline; import fi.aalto.trafficsense.regularroutes.backend.parser.LocationData; import timber.log.Timber; import java.util.ArrayDeque; import java.util.Deque; public class DataQueue implements DataCollector.Listener { private final Deque<DataPoint> mDeque; ...
package fi.aalto.trafficsense.regularroutes.backend.pipeline; import com.google.common.collect.EvictingQueue; import fi.aalto.trafficsense.regularroutes.backend.parser.LocationData; import timber.log.Timber; import java.util.Queue; public class DataQueue implements DataCollector.Listener { private static final i...
Use proper eviction for data queue
Use proper eviction for data queue
Java
mit
aalto-trafficsense/regular-routes-client
8ca76d1ce7c0aab8faafd486c642effcd9502518
src/chess/MoveData.java
src/chess/MoveData.java
package chess; public class MoveData { private int toRow; private int toCol; private boolean isACapture; public MoveData(int row, int col, boolean capture) { toRow = row; toCol = col; isACapture = capture; } public int getRow() { return toRow; } public int getCol() { return to...
package chess; import chess.pieces.Piece; public class MoveData { private Piece startPiece; private int toRow; private int toCol; private int fromRow; private int fromCol; private boolean isACapture; public MoveData(Piece startPiece, int fromRow, int fromCol, int toRow, int toCol, boolean capture...
Add from squares and calling piece data.
Add from squares and calling piece data.
Java
unlicense
b-lu8961/ChessPlus
3d05b245b6154fa1d59dfb506405de265cf2cdf6
java/com/google/copybara/exception/EmptyChangeException.java
java/com/google/copybara/exception/EmptyChangeException.java
/* * Copyright (C) 2016 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright (C) 2016 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Correct the argument order in EmptyChangeEx.super call
Correct the argument order in EmptyChangeEx.super call When refactoring exceptions, this one was overlooked, leading to a format string bug. PiperOrigin-RevId: 189939495 Change-Id: I94172b07dbfcb23827efef78b858bab92eb9bd62
Java
apache-2.0
google/copybara,google/copybara,google/copybara
9e178791621bca593aeb313dc1e9d897463f89c2
io7m-jcanephora-jogl/src/test/java/com/io7m/jcanephora/GLMetaJOGL30Test.java
io7m-jcanephora-jogl/src/test/java/com/io7m/jcanephora/GLMetaJOGL30Test.java
package com.io7m.jcanephora; import java.io.IOException; import javax.media.opengl.GLContext; import junit.framework.Assert; import org.junit.After; import org.junit.Before; import org.junit.Test; import com.io7m.jaux.Constraints.ConstraintError; public class GLMetaJOGL30Test { private GLContext context; @Be...
package com.io7m.jcanephora; import java.io.IOException; import javax.media.opengl.GLContext; import junit.framework.Assert; import org.junit.After; import org.junit.Before; import org.junit.Test; import com.io7m.jaux.Constraints.ConstraintError; public class GLMetaJOGL30Test { private GLContext context; @Be...
Make test print meta strings
Make test print meta strings
Java
isc
io7m/jcanephora,io7m/jcanephora
87936000f43b9dfc88dcd2c0d59ce018fb1e8990
src/net.michaelsavich.notification/net/michaelsavich/notification/SynchronousNotificationCenter.java
src/net.michaelsavich.notification/net/michaelsavich/notification/SynchronousNotificationCenter.java
package net.michaelsavich.notification; import java.util.HashSet; /** * An instance of NotificationCenter that dispatches {@link Notification notifications} to their {@link NotificationObserver observers} serially. * Note that an instance of this object is returned by the static method {@link NotificationCenter#pri...
package net.michaelsavich.notification; import java.util.HashSet; /** * An instance of NotificationCenter that dispatches {@link Notification notifications} to their {@link NotificationObserver observers} serially. * Note that an instance of this object is returned by the static method {@link NotificationCenter#pri...
Switch to using protected getter
Switch to using protected getter
Java
unlicense
michaelsavich/NotificationCenter
8c27d261c2c1339792745c3b94fefb99e56c961d
src/main/java/pete/metrics/adaptability/AdaptableElement.java
src/main/java/pete/metrics/adaptability/AdaptableElement.java
package pete.metrics.adaptability; import java.util.ArrayList; import java.util.Collections; import java.util.List; public final class AdaptableElement { private final String name; private final List<String> adaptions; private String locatorExpression = "//*[local-name() = 'definitions']"; public AdaptableEle...
package pete.metrics.adaptability; import java.util.ArrayList; import java.util.Collections; import java.util.List; public final class AdaptableElement { private final String name; private final List<String> adaptions; private String documentation; private String locatorExpression = "//*[local-name() = 'defin...
Add documentation field and parameter validation
Add documentation field and parameter validation
Java
mit
lenhard/pete,uniba-dsg/prope,uniba-dsg/prope,lenhard/pete,lenhard/pete,uniba-dsg/prope
7a1921aee9eb33446bf7be8c93fb334ae7e69712
src/androidTest/java/test/com/github/tmurakami/dexopener/MyFragmentTest.java
src/androidTest/java/test/com/github/tmurakami/dexopener/MyFragmentTest.java
package test.com.github.tmurakami.dexopener; import android.support.test.rule.ActivityTestRule; import android.support.v4.app.FragmentActivity; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import...
package test.com.github.tmurakami.dexopener; import android.support.test.InstrumentationRegistry; import android.support.test.rule.ActivityTestRule; import android.support.v4.app.FragmentActivity; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.mockito.InjectMocks; import org.mockito...
Fix to work on CI
Fix to work on CI
Java
apache-2.0
tmurakami/dexopener,tmurakami/dexopener
9e4d22a6ccfeece7657efb12c61608ad140c5904
bndtools.core/src/bndtools/editor/BndSourceDocumentProvider.java
bndtools.core/src/bndtools/editor/BndSourceDocumentProvider.java
package bndtools.editor; import org.bndtools.core.editors.BndResourceMarkerAnnotationModel; import org.eclipse.core.resources.IFile; import org.eclipse.jface.text.source.IAnnotationModel; import org.eclipse.ui.editors.text.TextFileDocumentProvider; public class BndSourceDocumentProvider extends TextFileDocumentProvid...
package bndtools.editor; import org.bndtools.core.editors.BndResourceMarkerAnnotationModel; import org.eclipse.core.resources.IFile; import org.eclipse.jface.text.source.IAnnotationModel; import org.eclipse.ui.editors.text.TextFileDocumentProvider; public class BndSourceDocumentProvider extends TextFileDocumentProvid...
Make sure we always save bnd files as UTF-8 and not accidentally inherit the local Eclipse platform encoding …
Make sure we always save bnd files as UTF-8 and not accidentally inherit the local Eclipse platform encoding … We need to force this since we should not depend on local Eclipse settings Signed-off-by: Peter Kriens <016a769244db65ccbb64c8b271e9b7b28d4a3ce8@aqute.biz>
Java
epl-1.0
bjhargrave/bndtools,seanbright/bndtools,grfield/bndtools,bjhargrave/bndtools,lostiniceland/bndtools,njbartlett/bndtools,pkriens/bndtools,pkriens/bndtools,timothyjward/bndtools,wodencafe/bndtools,seanbright/bndtools,njbartlett/bndtools,psoreide/bnd,wodencafe/bndtools,seanbright/bndtools,njbartlett/bndtools,wodencafe/bnd...
f3a00e76771b72d66b9c6927b789bb72f2cfae98
src/edu/stuy/commands/DrivetrainRotateNoPIDCommand.java
src/edu/stuy/commands/DrivetrainRotateNoPIDCommand.java
package edu.stuy.commands; import edu.stuy.Robot; import edu.wpi.first.wpilibj.command.Command; /** * Rotates the Robot without PID values */ public class DrivetrainRotateNoPIDCommand extends Command { private double degrees; private double startAngle; public DrivetrainRotateNoPIDCommand(double _degr...
package edu.stuy.commands; import edu.stuy.Robot; import edu.wpi.first.wpilibj.command.Command; /** * Rotates the Robot without PID values */ public class DrivetrainRotateNoPIDCommand extends Command { private double degrees; private double startAngle; public DrivetrainRotateNoPIDCommand(double _degr...
Change ArcadeDrive to TankDrive for speed control
Change ArcadeDrive to TankDrive for speed control
Java
bsd-3-clause
Team694/PEGasus1,Team694/PEGasus1
f22b8ea87e94ca9fbdac4e33e92d083b9ab2c7fa
src/main/java/agaricus/mods/Jarmod2Coremod/Scanner.java
src/main/java/agaricus/mods/Jarmod2Coremod/Scanner.java
package agaricus.mods.Jarmod2Coremod; import cpw.mods.fml.relauncher.IFMLCallHook; import java.io.File; import java.util.Map; public class Scanner implements IFMLCallHook { public File coremodLocation; /* * Gives the mod coremod data if it wants it. */ @Override public void injectData(Map...
package agaricus.mods.Jarmod2Coremod; import cpw.mods.fml.common.FMLLog; import cpw.mods.fml.relauncher.IFMLCallHook; import java.io.File; import java.util.Map; import java.util.logging.Level; public class Scanner implements IFMLCallHook { public File coremodLocation; /* * Gives the mod coremod data i...
Create and locate 'jarmods' directory if it doesn't exist
Create and locate 'jarmods' directory if it doesn't exist
Java
bsd-3-clause
agaricusb/Jarmod2Coremod
7b2efda4670ec278fde0d6332f30f4e87c018786
service-authentication/src/main/java/sg/ncl/service/authentication/controllers/AuthenticationController.java
service-authentication/src/main/java/sg/ncl/service/authentication/controllers/AuthenticationController.java
package sg.ncl.service.authentication.controllers; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.RequestHeader; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.an...
package sg.ncl.service.authentication.controllers; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.RequestHeader; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.an...
Add error checking to username and password (DEV-99)
Add error checking to username and password (DEV-99)
Java
apache-2.0
nus-ncl/services-in-one,nus-ncl/services-in-one
a9eb514be78262dbc803e9047871965659bb7f43
client/gateway/provider/paho/src/main/java/org/eclipse/kapua/client/gateway/mqtt/paho/internal/Listeners.java
client/gateway/provider/paho/src/main/java/org/eclipse/kapua/client/gateway/mqtt/paho/internal/Listeners.java
/******************************************************************************* * Copyright (c) 2017 Red Hat 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 av...
/******************************************************************************* * Copyright (c) 2017 Red Hat 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 av...
Create listener based on functional interfaces
Create listener based on functional interfaces
Java
epl-1.0
stzilli/kapua,stzilli/kapua,stzilli/kapua,LeoNerdoG/kapua,stzilli/kapua,LeoNerdoG/kapua,LeoNerdoG/kapua,LeoNerdoG/kapua,LeoNerdoG/kapua,stzilli/kapua
5f7ed2e836e566559ac8d382f4a651c4454d8267
strongbox-storage/strongbox-storage-api/src/main/java/org/carlspring/strongbox/dependency/snippet/CodeSnippet.java
strongbox-storage/strongbox-storage-api/src/main/java/org/carlspring/strongbox/dependency/snippet/CodeSnippet.java
package org.carlspring.strongbox.dependency.snippet; import javax.annotation.Nonnull; public class CodeSnippet implements Comparable<CodeSnippet> { protected String name; protected String code; public CodeSnippet(String name, String code) { this.name = name; thi...
package org.carlspring.strongbox.dependency.snippet; import javax.annotation.Nonnull; import java.util.Objects; public class CodeSnippet implements Comparable<CodeSnippet> { protected String name; protected String code; public CodeSnippet(String name, String code) { thi...
Sort the artifact dependency synonyms by main layout provider and then alphabetic order
SB-1160: Sort the artifact dependency synonyms by main layout provider and then alphabetic order Sonar: Added equals() and hashCode() implementations.
Java
apache-2.0
strongbox/strongbox,sbespalov/strongbox,strongbox/strongbox,sbespalov/strongbox,strongbox/strongbox,strongbox/strongbox,sbespalov/strongbox,sbespalov/strongbox
c00acfba992250588eda71346afceac89bc7387b
mobile/src/test/java/com/alexstyl/specialdates/events/namedays/calendar/resource/NamedayJSONResourceProviderTest.java
mobile/src/test/java/com/alexstyl/specialdates/events/namedays/calendar/resource/NamedayJSONResourceProviderTest.java
package com.alexstyl.specialdates.events.namedays.calendar.resource; import com.alexstyl.specialdates.events.namedays.NamedayLocale; import org.junit.Before; import org.junit.Test; import static org.fest.assertions.api.Assertions.assertThat; public class NamedayJSONResourceProviderTest { private NamedayJSONRes...
package com.alexstyl.specialdates.events.namedays.calendar.resource; import com.alexstyl.specialdates.events.namedays.NamedayLocale; import org.junit.Before; import org.junit.Test; import static org.fest.assertions.api.Assertions.assertThat; public class NamedayJSONResourceProviderTest { private NamedayJSONRes...
Add tests for all locals
Add tests for all locals
Java
mit
pchrysa/Memento-Calendar,pchrysa/Memento-Calendar,pchrysa/Memento-Calendar
2ddfe00ee0d62c7a60286e01f8148fb283418001
carbon-mss/components/org.wso2.carbon.mss/src/test/java/org/wso2/carbon/mss/internal/deployer/TestMSSJarProcessor.java
carbon-mss/components/org.wso2.carbon.mss/src/test/java/org/wso2/carbon/mss/internal/deployer/TestMSSJarProcessor.java
/* * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
/* * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
Update test for exception handling changes
Update test for exception handling changes
Java
apache-2.0
bsenduran/product-mss,sameera-jayasoma/product-mss,wso2/product-mss,chrishantha/msf4j,callkalpa/product-mss,arunasujith/msf4j,sameera-jayasoma/product-mss,tikaa/msf4j,wso2/product-mss,chrishantha/msf4j,callkalpa/product-mss,chrishantha/msf4j,dakshika/product-mss,wso2/product-mss,dakshika/product-mss,taniamahanama/produ...
bbd20da096424309c3203c896e2298f77cb29a81
src/in/co/nebulax/magpie/Constants.java
src/in/co/nebulax/magpie/Constants.java
package in.co.nebulax.magpie; public class Constants { // url to get data JSON public static String urlGet = "http://10.0.2.2:1111/all"; public static String urlPost = "http://10.0.2.2:1111/change"; //JSON Node Names public static String TAG_DATA = "data"; public static String TAG_DEVICE = "device"; public s...
package in.co.nebulax.magpie; public class Constants { // url to get data JSON public static String urlGet = "http://10.0.2.2:1111/all"; public static String urlPost = "http://10.0.2.2:1111/change"; //JSON Node Names public static String TAG_DATA = "data"; public static String TAG_DEVICE = "device"; public s...
Add type to application constants
Add type to application constants
Java
artistic-2.0
NebulaX/magpie-android
6d4bfeeede37892d7662a5b13c94ae8b6635ef79
src/main/java/Spring4WSStartTomcat.java
src/main/java/Spring4WSStartTomcat.java
import ch.rasc.embeddedtc.EmbeddedTomcat; public class Spring4WSStartTomcat { public static void main(String[] args) throws Exception { EmbeddedTomcat.create().startAndWait(); } }
import ch.rasc.embeddedtc.EmbeddedTomcat; public class Spring4WSStartTomcat { public static void main(String[] args) throws Exception { EmbeddedTomcat.create().addContextInitializationParameter("org.apache.tomcat.websocket.textBufferSize", "1000000").startAndWait(); } }
Increase WebSocket text buffer size
Increase WebSocket text buffer size
Java
apache-2.0
ralscha/spring4ws-demos,ralscha/spring4ws-demos,ralscha/spring4ws-demos
143787623e9a923e0b606d4b3a3e080c872152e3
arondor-common-reflection-reflect/src/main/java/com/arondor/common/reflection/reflect/instantiator/FastPrimitiveConverter.java
arondor-common-reflection-reflect/src/main/java/com/arondor/common/reflection/reflect/instantiator/FastPrimitiveConverter.java
package com.arondor.common.reflection.reflect.instantiator; import java.util.HashMap; import java.util.Map; public class FastPrimitiveConverter { private interface PrimitiveConverter { Object convert(String value); } private final Map<String, PrimitiveConverter> primitiveConverterMap = new Ha...
package com.arondor.common.reflection.reflect.instantiator; import java.util.HashMap; import java.util.Map; public class FastPrimitiveConverter { private interface PrimitiveConverter { Object convert(String value); } private final Map<String, PrimitiveConverter> primitiveConverterMap = new Ha...
Add support for float primitive
Add support for float primitive git-svn-id: 7e8def7d4256e953abb468098d8cb9b4faff0c63@6213 12255794-1b5b-4525-b599-b0510597569d
Java
apache-2.0
Doloops/arondor-common-reflection,Doloops/arondor-common-reflection
1e4338076f24997e85388e795ff7ec0c9ff19cdf
src/test/java/OrcidOAuthClientTest.java
src/test/java/OrcidOAuthClientTest.java
import java.io.IOException; import java.util.Properties; import javax.xml.bind.JAXBException; import org.junit.Before; import org.junit.Test; import uk.bl.odin.orcid.client.OrcidAccessToken; import uk.bl.odin.orcid.client.OrcidOAuthClient; import uk.bl.odin.orcid.client.constants.OrcidAuthScope; import static org.ju...
import java.io.IOException; import java.io.InputStream; import java.util.Properties; import javax.xml.bind.JAXBException; import org.junit.Before; import org.junit.Test; import uk.bl.odin.orcid.client.OrcidAccessToken; import uk.bl.odin.orcid.client.OrcidOAuthClient; import uk.bl.odin.orcid.client.constants.OrcidAut...
Throw meaningful exception if properties file could not be found
Throw meaningful exception if properties file could not be found
Java
apache-2.0
StellenboschUniversity/orcid-java-client,TomDemeranville/orcid-java-client
b911e9d2f5a958658d9e51e608d475672cb376d7
xwiki-platform-core/xwiki-platform-job/xwiki-platform-job-handler/src/main/java/org/xwiki/job/handler/internal/JobResourceReferenceHandler.java
xwiki-platform-core/xwiki-platform-job/xwiki-platform-job-handler/src/main/java/org/xwiki/job/handler/internal/JobResourceReferenceHandler.java
package org.xwiki.job.handler.internal; import org.xwiki.component.annotation.Role; import org.xwiki.resource.ResourceReferenceHandlerException; import org.xwiki.url.internal.ParentResourceReference; /** * Sub-handlers for the {@link JobRootResourceReferenceHandler}. * * @version $Id$ * @since 10.2RC1 */ @Role ...
/* * 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...
Introduce a framework to automate job question/answer UI * Add license header.
XWIKI-15096: Introduce a framework to automate job question/answer UI * Add license header.
Java
lgpl-2.1
xwiki/xwiki-platform,xwiki/xwiki-platform,xwiki/xwiki-platform,xwiki/xwiki-platform,xwiki/xwiki-platform
99688614fd80f72b2ad0d5af041bf8dfc0233f88
java/ChabuTest/src/org/chabu/Random.java
java/ChabuTest/src/org/chabu/Random.java
package org.chabu; public class Random { private long seed; private static final long multiplier = 0x5_DEEC_E66DL; private static final long addend = 0x0BL; private static final long mask = (1L << 48) - 1; public Random(long seed) { this.seed = initialScrambl...
package org.chabu; public class Random { private long seed; private static final long multiplier = 0x5_DEEC_E66DL; private static final long addend = 0x0BL; private static final long mask = (1L << 48) - 1; public Random(long seed) { this.seed = (seed ^ multiplier) & ...
Simplify random, so it can be port as easily as possible.
Simplify random, so it can be port as easily as possible.
Java
mit
keinfarbton/Chabu,frankbenoit/Chabu,keinfarbton/Chabu,frankbenoit/Chabu,keinfarbton/Chabu,frankbenoit/Chabu,frankbenoit/Chabu
3712e8599fd417351d0b29d193111c44b57a982d
src/main/java/com/k13n/soliton/App.java
src/main/java/com/k13n/soliton/App.java
package com.k13n.soliton; public class App { public static void main(String[] args) { int k = 50; double c = 0.05; double delta = 0.01; SolitonGenerator rng = new RobustSolitonGenerator(k, c, delta); HistogramSampler sampler = new HistogramSampler(rng); sampler.printHistogram(10000); } }...
package com.k13n.soliton; public class App { private static int DEFAULT_NR_BLOCKS = 10000; private static double DEFAULT_FAILURE_PROBABILITY = 0.05; public static void main(String[] args) { SolitonGenerator srng = fixedSpikeExample(); HistogramSampler sampler = new HistogramSampler(srng); int nrTri...
Add 3 different usage examples
Add 3 different usage examples One example is about the ideal soliton distribution, another uses the robust soliton distribution with a fixed spike. The last one uses the constant c.
Java
mit
k13n/soliton_distribution
30082be93a36d66961bb2535273d7a4b770af5a3
org.spoofax.jsglr2/src/main/java/org/spoofax/jsglr2/inputstack/InputStack.java
org.spoofax.jsglr2/src/main/java/org/spoofax/jsglr2/inputstack/InputStack.java
package org.spoofax.jsglr2.inputstack; import org.spoofax.jsglr2.inputstack.incremental.AbstractInputStack; public class InputStack extends AbstractInputStack { int currentChar; // Current ASCII char in range [0, 256] public InputStack(String inputString) { super(inputString); currentChar = g...
package org.spoofax.jsglr2.inputstack; import org.spoofax.jsglr2.inputstack.incremental.AbstractInputStack; public class InputStack extends AbstractInputStack { int currentChar; // Current ASCII char in range [0, MAX_CHAR] or EOF_INT public InputStack(String inputString) { super(inputString); ...
Make comment refer to MAX_CHAR instead of 256
Make comment refer to MAX_CHAR instead of 256
Java
apache-2.0
metaborg/jsglr,metaborg/jsglr,metaborg/jsglr,metaborg/jsglr
eb4cbd509585d82a65e0cbea5b9d27d100336646
zxing-android-embedded/src/com/journeyapps/barcodescanner/BarcodeCallback.java
zxing-android-embedded/src/com/journeyapps/barcodescanner/BarcodeCallback.java
package com.journeyapps.barcodescanner; import com.google.zxing.ResultPoint; import java.util.List; /** * Callback that is notified when a barcode is scanned. */ public interface BarcodeCallback { /** * Barcode was successfully scanned. * * @param result the result */ void barcodeResult...
package com.journeyapps.barcodescanner; import com.google.zxing.ResultPoint; import java.util.List; /** * Callback that is notified when a barcode is scanned. */ public interface BarcodeCallback { /** * Barcode was successfully scanned. * * @param result the result */ void barcodeResult...
Use default annotation for optional interface method
Use default annotation for optional interface method
Java
apache-2.0
journeyapps/zxing-android-embedded
1881f54c215d54e47ade0d095e7495dec0435ee5
python/src/com/jetbrains/python/psi/search/PyClassInheritorsSearchExecutor.java
python/src/com/jetbrains/python/psi/search/PyClassInheritorsSearchExecutor.java
package com.jetbrains.python.psi.search; import com.intellij.openapi.project.Project; import com.intellij.psi.search.ProjectScope; import com.intellij.psi.stubs.StubIndex; import com.intellij.util.Processor; import com.intellij.util.QueryExecutor; import com.jetbrains.python.psi.PyClass; import com.jetbrains.python.ps...
package com.jetbrains.python.psi.search; import com.intellij.openapi.project.Project; import com.intellij.psi.search.ProjectScope; import com.intellij.psi.stubs.StubIndex; import com.intellij.util.Processor; import com.intellij.util.QueryExecutor; import com.jetbrains.python.psi.PyClass; import com.jetbrains.python.ps...
Fix indices with multiple key hits in same file.
Fix indices with multiple key hits in same file.
Java
apache-2.0
robovm/robovm-studio,blademainer/intellij-community,holmes/intellij-community,semonte/intellij-community,gnuhub/intellij-community,xfournet/intellij-community,ahb0327/intellij-community,xfournet/intellij-community,ibinti/intellij-community,MER-GROUP/intellij-community,retomerz/intellij-community,petteyg/intellij-commun...
223ea8f705612360d86044aa8749d404b8abb3eb
src/test/java/com/warrenstrange/googleauth/GoogleAuthTest.java
src/test/java/com/warrenstrange/googleauth/GoogleAuthTest.java
package com.warrenstrange.googleauth; import org.junit.Test; /* * Not really a unit test- but it shows usage */ public class GoogleAuthTest { @Test public void genSecretTest() { GoogleAuthenticator gauth = new GoogleAuthenticator(); final GoogleAuthenticatorKey key = gauth.generateSecretK...
package com.warrenstrange.googleauth; import org.junit.Test; /** * Not really a unit test, but it shows the basic usage of this package. * To properly test the authenticator, manual intervention and multiple steps * are required: * <ol> * <li>Run the test in order to generate the required information for a * G...
Update the test class and properly document it.
Update the test class and properly document it.
Java
bsd-3-clause
fengshao0907/GoogleAuth,fengshao0907/GoogleAuth,wattale/GoogleAuth,ymauray/GoogleAuth,wattale/GoogleAuth,wstrange/GoogleAuth,ymauray/GoogleAuth,dmullins78/GoogleAuth,wstrange/GoogleAuth,dmullins78/GoogleAuth
81bcd3c45ba102b7fdfc6f50873a22b4f5038b0f
src/main/java/no/stelar7/api/l4j8/basic/constants/types/LeaguePositionType.java
src/main/java/no/stelar7/api/l4j8/basic/constants/types/LeaguePositionType.java
package no.stelar7.api.l4j8.basic.constants.types; import java.util.Optional; import java.util.stream.Stream; public enum LeaguePositionType implements CodedEnum { /** * Top lane */ TOP, /** * Jungle */ JUNGLE, /** * Mid lane */ MIDDLE, /** * Bottom lane ...
package no.stelar7.api.l4j8.basic.constants.types; import java.util.Optional; import java.util.stream.Stream; public enum LeaguePositionType implements CodedEnum { /** * MASTER+ rank gets this for some reason? */ APEX, /** * Top lane */ TOP, /** * Jungle */ JUNGLE...
Add missing params to league position
Add missing params to league position
Java
apache-2.0
stelar7/L4J8
a561ae4e09a6651c68b0971706829b277bf427ce
src/com/sudoku/data/model/Comment.java
src/com/sudoku/data/model/Comment.java
package com.sudoku.data.model; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * @author jonathan */ public class Comment { /** * Champs de la classe Comment * * *...
package com.sudoku.data.model; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * @author jonathan */ public class Comment { /** * Champs de la classe Comment * * *...
Add final and add salt as an UUID
Add final and add salt as an UUID
Java
mit
BenFradet/LO23
85f232e983621d98f4562f1cd31be85af51468d1
src/main/java/com/demo/Application.java
src/main/java/com/demo/Application.java
package com.demo; import java.util.Arrays; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext; @SpringBootApplication public class Application { public static void main(String[] args) { ...
package com.demo; import java.util.Arrays; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext; @SpringBootApplication public class Application { public static void main(String[] args) { ...
Comment out spring bean printing
Comment out spring bean printing
Java
mit
starmer/demo-service
0be1e58a02eed4ead6b269e2f15812f533de34fc
java/client/test/org/openqa/selenium/TagNameTest.java
java/client/test/org/openqa/selenium/TagNameTest.java
/* Copyright 2007-2009 WebDriver committers Copyright 2007-2009 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless require...
/* Copyright 2007-2009 WebDriver committers Copyright 2007-2009 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless require...
Make a test case insensitive.
JasonLeyba: Make a test case insensitive. git-svn-id: aa1aa1384423cb28c2b1e29129bb3a91de1d9196@11860 07704840-8298-11de-bf8c-fd130f914ac9
Java
apache-2.0
jmt4/Selenium2,jmt4/Selenium2,yumingjuan/selenium,jmt4/Selenium2,jmt4/Selenium2,yumingjuan/selenium,jmt4/Selenium2,yumingjuan/selenium,jmt4/Selenium2,yumingjuan/selenium,yumingjuan/selenium,yumingjuan/selenium,jmt4/Selenium2,yumingjuan/selenium,jmt4/Selenium2,yumingjuan/selenium,jmt4/Selenium2,yumingjuan/selenium
35ac6a771494a59dfec0fa372c375a713c1db366
configserver/src/main/java/com/yahoo/vespa/config/server/rpc/security/DefaultRpcAuthorizerProvider.java
configserver/src/main/java/com/yahoo/vespa/config/server/rpc/security/DefaultRpcAuthorizerProvider.java
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.config.server.rpc.security; import com.google.inject.Inject; import com.yahoo.cloud.config.ConfigserverConfig; import com.yahoo.config.provision.security.NodeIdentifier; import com.y...
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.config.server.rpc.security; import com.google.inject.Inject; import com.yahoo.cloud.config.ConfigserverConfig; import com.yahoo.config.provision.security.NodeIdentifier; import com.y...
Revert "Temporarily disable rpc authorization on configserver"
Revert "Temporarily disable rpc authorization on configserver" This reverts commit 0ce64af793fe21b6047af2be1b973b525b008c3a.
Java
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
5aecfc3df9c7a468f892a3addb88ae56fb57ae71
src/main/java/codechicken/lib/CodeChickenLib.java
src/main/java/codechicken/lib/CodeChickenLib.java
package codechicken.lib; import codechicken.lib.render.CCRenderEventHandler; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.relauncher.Side; /** * Created by covers162...
package codechicken.lib; import codechicken.lib.render.CCRenderEventHandler; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.relauncher.Side; /** * Created by covers162...
Move target MC version for mods to CCL.
Move target MC version for mods to CCL.
Java
lgpl-2.1
TheCBProject/CodeChickenLib
0263086e1021bb1c043415c75fb4b6aa3be0a4d9
src/org/nwapw/abacus/lexing/pattern/LinkNode.java
src/org/nwapw/abacus/lexing/pattern/LinkNode.java
package org.nwapw.abacus.lexing.pattern; import java.util.ArrayList; import java.util.Collection; /** * A node that is used as structural glue in pattern compilation. * @param <T> the type that's used to tell which pattern this node belongs to. */ public class LinkNode<T> extends PatternNode<T> { @Override ...
package org.nwapw.abacus.lexing.pattern; import java.util.ArrayList; import java.util.Collection; /** * A node that is used as structural glue in pattern compilation. * @param <T> the type that's used to tell which pattern this node belongs to. */ public class LinkNode<T> extends PatternNode<T> { @Override ...
Add link nodes to collections and check for their presence. This prevents infinite loops, as Link nodes do not follow regular addInto behavior.
Add link nodes to collections and check for their presence. This prevents infinite loops, as Link nodes do not follow regular addInto behavior.
Java
mit
DanilaFe/abacus,DanilaFe/abacus
a42b9b3c6c73322e771fea0590e618d4ea8e6ec9
github-android/src/main/java/com/github/mobile/android/gist/GistFileListAdapter.java
github-android/src/main/java/com/github/mobile/android/gist/GistFileListAdapter.java
package com.github.mobile.android.gist; import android.app.Activity; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; import com.github.mobile.android.R; import org.eclipse.egit.github.core.GistFile; /** * Adapter for viewing the files in ...
package com.github.mobile.android.gist; import android.app.Activity; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; import com.github.mobile.android.R.layout; import org.eclipse.egit.github.core.GistFile; /** * Adapter for viewing the fi...
Indent Gist file name with '»' character
Indent Gist file name with '»' character
Java
apache-2.0
larsgrefer/github-android-app,karllindmark/PocketHub,theiven70/PocketHub,pockethub/PocketHub,larsgrefer/github-android-app,yytang2012/PocketHub,zhuxiaohao/PocketHub,usr80/Android,wang0818/android,wshh08/PocketHub,gmyboy/android,Leaking/android,Chalmers-SEP-GitHubApp-Group/android,yuanhuihui/PocketHub,sam14305/bhoot.lif...
6a581803a926af1ccd829861321062e598810a36
common/cpw/mods/fml/common/IASMHook.java
common/cpw/mods/fml/common/IASMHook.java
package cpw.mods.fml.common; import org.objectweb.asm.tree.ClassNode; public interface IASMHook { /** * Inject the {@link Mod} class node into this instance. This allows retrieval from custom * attributes or other artifacts in your mod class * * @param modClassNode The mod class * @return...
package cpw.mods.fml.common; import org.objectweb.asm.tree.ClassNode; public interface IASMHook { /** * Inject the {@link Mod} class node into this instance. This allows retrieval from custom * attributes or other artifacts in your mod class * * @param modClassNode The mod class * @return...
Tweak IASM hook api. You can return multiple classes now.
Tweak IASM hook api. You can return multiple classes now.
Java
lgpl-2.1
MinecraftForge/FML
f5e41a245f022fa7f3390ef52e747d55297536e1
src/test/java/info/u_team/u_team_test/block/BasicSyncBlock.java
src/test/java/info/u_team/u_team_test/block/BasicSyncBlock.java
package info.u_team.u_team_test.block; import info.u_team.u_team_core.block.UEntityBlock; import info.u_team.u_team_test.init.TestBlockEntityTypes; import info.u_team.u_team_test.init.TestCreativeTabs; import net.minecraft.core.BlockPos; import net.minecraft.world.InteractionHand; import net.minecraft.world.Interactio...
package info.u_team.u_team_test.block; import info.u_team.u_team_core.block.UEntityBlock; import info.u_team.u_team_test.init.TestBlockEntityTypes; import info.u_team.u_team_test.init.TestCreativeTabs; import net.minecraft.core.BlockPos; import net.minecraft.world.InteractionHand; import net.minecraft.world.Interactio...
Fix wrong block entity type
Fix wrong block entity type
Java
apache-2.0
MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core
1c582c63288bff394572206646221e20fc41617c
app/cloud/resources/ImageInLocation.java
app/cloud/resources/ImageInLocation.java
/* * Copyright (c) 2014-2015 University of Ulm * * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. 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...
/* * Copyright (c) 2014-2015 University of Ulm * * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. 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...
Revert "PS-147 adapted image resource to new interface"
Revert "PS-147 adapted image resource to new interface" This reverts commit 29a8ca7c1e496eb4fc473c3fb5d2123d5c211be5.
Java
apache-2.0
cloudiator/colosseum,cloudiator/colosseum,cloudiator/colosseum,cloudiator/colosseum
e494a557b00d6a4028fed172fb3ad1d8e276733a
backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/WatchdogResource.java
backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/WatchdogResource.java
package org.ovirt.engine.api.resource; import javax.ws.rs.DELETE; import javax.ws.rs.core.Response; import org.ovirt.engine.api.model.WatchDog; public interface WatchdogResource extends DeviceResource<WatchDog> { @DELETE Response remove(); }
package org.ovirt.engine.api.resource; import javax.ws.rs.DELETE; import javax.ws.rs.Produces; import javax.ws.rs.core.Response; import org.ovirt.engine.api.model.WatchDog; @Produces({ApiMediaType.APPLICATION_XML, ApiMediaType.APPLICATION_JSON, ApiMediaType.APPLICATION_X_YAML}) public interface WatchdogResource exte...
Add @Provides to watchdogs resource
restapi: Add @Provides to watchdogs resource Currently the watchdogs resource doesn't have a @Provides annotation. In theory this shouldn't be required as the annotation is in the base class. But in practice the application server reacts differently, in particular if the annotation isn't present the server won't use u...
Java
apache-2.0
OpenUniversity/ovirt-engine,OpenUniversity/ovirt-engine,OpenUniversity/ovirt-engine,OpenUniversity/ovirt-engine,OpenUniversity/ovirt-engine
c7dccac66c5aea5df84f807fc5bd26438b13b599
problem12-java/Problem12.java
problem12-java/Problem12.java
public class Problem12 { public static void main(String[] args) { int triangles = 0; int count; // For each natural number up to forever for(int i = 1; ; i++) { // Get the next triangle number triangles = triangles + i; count = 0; // ...
/* The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be: 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ... Let us list the factors of the first seven triangle numbers: 1: 1 3: 1,3 6: 1,2,3,...
Add comments to problem 12
Add comments to problem 12
Java
mit
jongensvantechniek/Project-Euler,jongensvantechniek/Project-Euler,jongensvantechniek/Project-Euler,jongensvantechniek/Project-Euler,jongensvantechniek/Project-Euler,jongensvantechniek/Project-Euler
89d869e4ee424b0f80cfff3a21237d9dca74efd0
Magic/src/main/java/com/elmakers/mine/bukkit/action/builtin/CheckRequirementsAction.java
Magic/src/main/java/com/elmakers/mine/bukkit/action/builtin/CheckRequirementsAction.java
package com.elmakers.mine.bukkit.action.builtin; import java.util.ArrayList; import java.util.Collection; import org.bukkit.configuration.ConfigurationSection; import com.elmakers.mine.bukkit.action.CheckAction; import com.elmakers.mine.bukkit.api.action.CastContext; import com.elmakers.mine.bukkit.api.requirements....
package com.elmakers.mine.bukkit.action.builtin; import java.util.ArrayList; import java.util.Collection; import org.bukkit.configuration.ConfigurationSection; import com.elmakers.mine.bukkit.action.CheckAction; import com.elmakers.mine.bukkit.api.action.CastContext; import com.elmakers.mine.bukkit.api.requirements....
Add send_message option to CheckRequirements
Add send_message option to CheckRequirements
Java
mit
elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicPlugin
d80b46638c7d72c35a61cd41af3696035abbb4f0
app/src/main/java/de/markusfisch/android/shadereditor/fragment/UniformPagesFragment.java
app/src/main/java/de/markusfisch/android/shadereditor/fragment/UniformPagesFragment.java
package de.markusfisch.android.shadereditor.fragment; import de.markusfisch.android.shadereditor.adapter.UniformPageAdapter; import de.markusfisch.android.shadereditor.R; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.view.ViewPager; import android.view.LayoutInflater; imp...
package de.markusfisch.android.shadereditor.fragment; import de.markusfisch.android.shadereditor.adapter.UniformPageAdapter; import de.markusfisch.android.shadereditor.R; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.view.ViewPager; import android.view.LayoutInflater; imp...
Reset title of add uniform/texture fragment
Reset title of add uniform/texture fragment Required if we're coming back from texture parameters for example.
Java
mit
markusfisch/ShaderEditor,markusfisch/ShaderEditor
3ed96f138064f223301cc4f06c57eb080b33754b
kmf-jsonrpcconnector/kmf-jsonrpcconnector-client/src/main/java/com/kurento/kmf/jsonrpcconnector/DefaultJsonRpcHandler.java
kmf-jsonrpcconnector/kmf-jsonrpcconnector-client/src/main/java/com/kurento/kmf/jsonrpcconnector/DefaultJsonRpcHandler.java
/* * (C) Copyright 2013 Kurento (http://kurento.org/) * * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser General Public License * (LGPL) version 2.1 which accompanies this distribution, and is available at * http://www.gnu.org/licenses/lgpl-...
/* * (C) Copyright 2013 Kurento (http://kurento.org/) * * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser General Public License * (LGPL) version 2.1 which accompanies this distribution, and is available at * http://www.gnu.org/licenses/lgpl-...
Include log warn message for uncaught exceptions
Include log warn message for uncaught exceptions Change-Id: Ia7b43a42e3c0519b27c25467bc65bc405bcd541c
Java
lgpl-2.1
TribeMedia/kurento-java,EugenioFidel/kurento-java,TribeMedia/kurento-java,shelsonjava/kurento-java,TribeMedia/kurento-java,KurentoLegacy/kurento-media-framework,shelsonjava/kurento-java,bawn92/kurento-java,Kurento/kurento-java,shelsonjava/kurento-java,MLSDev/kurento-java,bawn92/kurento-java,Kurento/kurento-java,bawn92/...
b185e91db7722451735079510d2d6edbf89facf4
fuwesta-sample/src/test/java/de/ppi/samples/fuwesta/selophane/base/WebTestConstants.java
fuwesta-sample/src/test/java/de/ppi/samples/fuwesta/selophane/base/WebTestConstants.java
package de.ppi.samples.fuwesta.selophane.base; import org.junit.rules.RuleChain; import de.ppi.selenium.junit.DelegatingWebServer; import de.ppi.selenium.junit.EventLogRule; import de.ppi.selenium.junit.ProtocolRule; import de.ppi.selenium.junit.WebDriverRule; import de.ppi.selenium.junit.WebServerRule; import de.ppi...
package de.ppi.samples.fuwesta.selophane.base; import org.junit.rules.RuleChain; import de.ppi.selenium.junit.DelegatingWebServer; import de.ppi.selenium.junit.EventLogRule; import de.ppi.selenium.junit.ProtocolRule; import de.ppi.selenium.junit.WebDriverRule; import de.ppi.selenium.junit.WebServerRule; import de.ppi...
Create a separate entry for the EVENT_STORAGE.
Create a separate entry for the EVENT_STORAGE.
Java
apache-2.0
opensource21/fuwesta,opensource21/fuwesta,opensource21/fuwesta
99b3af9216edca416add57a2d90024faef83fe53
spring-boot-samples/spring-boot-sample-data-couchbase/src/test/java/sample/data/couchbase/SampleCouchbaseApplicationTests.java
spring-boot-samples/spring-boot-sample-data-couchbase/src/test/java/sample/data/couchbase/SampleCouchbaseApplicationTests.java
package sample.data.couchbase; import java.net.ConnectException; import org.junit.Rule; import org.junit.Test; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.test.OutputCapture; import org.springframework.core.NestedCheckedException; import static org.assertj.core....
package sample.data.couchbase; import java.net.ConnectException; import org.junit.Rule; import org.junit.Test; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.test.OutputCapture; import org.springframework.core.NestedCheckedException; import static org.assertj.core....
Use a random server port in the Couchbase sample’s tests
Use a random server port in the Couchbase sample’s tests
Java
apache-2.0
chrylis/spring-boot,akmaharshi/jenkins,mosoft521/spring-boot,bbrouwer/spring-boot,xiaoleiPENG/my-project,i007422/jenkins2-course-spring-boot,joshthornhill/spring-boot,pvorb/spring-boot,akmaharshi/jenkins,michael-simons/spring-boot,eddumelendez/spring-boot,eddumelendez/spring-boot,isopov/spring-boot,tiarebalbi/spring-bo...
9154196fe315fdd2861c70084440baddb5c9c2ed
subprojects/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolutionstrategy/PreferProjectModulesConflictResolution.java
subprojects/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolutionstrategy/PreferProjectModulesConflictResolution.java
/* * Copyright 2016 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 2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Remove import that is only used in JavaDoc
Remove import that is only used in JavaDoc +review REVIEW-6257
Java
apache-2.0
lsmaira/gradle,lsmaira/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gstevey/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gstevey/gradle,robinverduijn/gradle,lsmaira/gradle,gstevey/gradle,gradle/gradle,gstevey/gradle,robinverduijn/gradle,blindpirate/gradle...
c0be5d3e98bfaa910c3d9de04d1f83ca79d8b8be
app/src/main/java/jp/takke/datastats/BootReceiver.java
app/src/main/java/jp/takke/datastats/BootReceiver.java
package jp.takke.datastats; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import jp.takke.util.MyLog; public class BootReceiver extends BroadcastReceiver { @Override ...
package jp.takke.datastats; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Build; import android.preference.PreferenceManager; import jp.takke.util.MyLog; public class BootReceiver extends BroadcastR...
Fix crash on boot (Android 8.0 or later)
Fix crash on boot (Android 8.0 or later)
Java
apache-2.0
takke/DataStats,takke/DataStats
8fad47da8c5cba3c16d8eb045c18cee1629a8b28
src/main/java/reborncore/api/IToolHandler.java
src/main/java/reborncore/api/IToolHandler.java
package reborncore.api; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.EnumFacing; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; /** * Added onto an item */ public interface IToolHandler { /** * Called when a machine is actived with the item that has IToo...
package reborncore.api; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumFacing; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; /** * Added onto an item */ public interface IToolHandler { /** * Called when a machine i...
Add the stack as it might be useful :P
Add the stack as it might be useful :P
Java
mit
TechReborn/RebornCore
80ac121a8c12324bd43d240e80a60c746ded7234
src/Lolifier.java
src/Lolifier.java
/** * Lolifier.class * Created: 16-09-2013 * @author Allek * @since 0.0.0 **/ public class Lolifier { }
/* * Lolifier.class * Created: 16-09-2013 */ import javax.swing.JFrame; /** * @author Allek * @since 0.0.0 **/ public class Lolifier extends JFrame { /** * Number of "lo"s in a loline (which will then be * be followed by ending 'l'). * @since 0.0.1 **/ public static final int LOLINE_LOS = 100; /** ...
Set up intial JFrame stuff, ish laid out skeleton for the lulz.
Set up intial JFrame stuff, ish laid out skeleton for the lulz.
Java
apache-2.0
tchieze/lolifier,tchieze/lolifier
92af22d642bab1dc564c67832cecb048eef70291
src/main/java/hello/models/Greeting.java
src/main/java/hello/models/Greeting.java
package hello.models; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.validation.constraints.Size; @Entity public class Greeting implements Serializable { private static final long serialVersionUID = 1L; @Id @Genera...
package hello.models; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.validation.constraints.Size; import org.hibernate.validator.constraints.NotEmpty; @Entity public class Greeting implements Serializable { private s...
Improve the greeting template validation and messages.
Improve the greeting template validation and messages.
Java
bsd-3-clause
hainesr/mvc-dev,hainesr/mvc-dev
0d25ad1ea397fd849a421e48d5eef1a1b9228bf2
src/main/java/net/tridentsdk/world/gen/PropGenerator.java
src/main/java/net/tridentsdk/world/gen/PropGenerator.java
/* * Trident - A Multithreaded Server Alternative * Copyright 2016 The TridentSDK Team * * 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....
/* * Trident - A Multithreaded Server Alternative * Copyright 2016 The TridentSDK Team * * 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....
Modify prop generation to encompass the whole chunk instead of each of the 16x16 blocks.
Modify prop generation to encompass the whole chunk instead of each of the 16x16 blocks.
Java
apache-2.0
nickrobson/TridentSDK,TridentSDK/TridentSDK,TridentSDK/TridentSDK,nickrobson/TridentSDK,TridentSDK/TridentSDK
16881e4129ca6c5a9515fecc186176a2d47b96f8
src/com/edinarobotics/zed/subsystems/Conveyor.java
src/com/edinarobotics/zed/subsystems/Conveyor.java
package com.edinarobotics.zed.subsystems; import com.edinarobotics.utils.subsystems.Subsystem1816; import edu.wpi.first.wpilibj.Victor; public class Conveyor extends Subsystem1816 { public static final double CONVEYOR_SHOOT_IN = -0.5; public static final double CONVEYOR_SHOOT_OUT = -CONVEYOR_SHOOT_IN; pub...
package com.edinarobotics.zed.subsystems; import com.edinarobotics.utils.subsystems.Subsystem1816; import edu.wpi.first.wpilibj.Victor; public class Conveyor extends Subsystem1816 { public static final double CONVEYOR_SHOOT_IN = -1; public static final double CONVEYOR_SHOOT_OUT = 1; public static final do...
Change the conveyor speed when shooting to max speed.
Change the conveyor speed when shooting to max speed. When shooting the discs the conveyor will run at full speed.
Java
bsd-3-clause
srujun/Zed-Java,TheGreenMachine/Zed-Java
0e0ba9f727f543e435d71f39ea79eaa7ba1a72a4
spotlight/src/main/java/com/takusemba/spotlight/shapes/Circle.java
spotlight/src/main/java/com/takusemba/spotlight/shapes/Circle.java
package com.takusemba.spotlight.shapes; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.PointF; import android.view.View; public class Circle extends Shape { private float mRadius; public Circle(View view) { setPoint(view); this.mRadius = (float) Math.sqrt(Math.pow(view.g...
package com.takusemba.spotlight.shapes; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.PointF; import android.view.View; public class Circle extends Shape { private float mRadius; public Circle(View view) { this(view, (float) Math.sqrt(Math.pow(view.getWidth(), 2) + Math.p...
Add custom radius constructor with view
Add custom radius constructor with view
Java
apache-2.0
TakuSemba/Spotlight,TakuSemba/Spotlight
9df4b6f85a256629e1f74257e4c2cf0ccbd992c7
ChasingPictures/app/src/main/java/de/fu_berlin/cdv/chasingpictures/activity/SplashScreen.java
ChasingPictures/app/src/main/java/de/fu_berlin/cdv/chasingpictures/activity/SplashScreen.java
package de.fu_berlin.cdv.chasingpictures.activity; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import de.fu_berlin.cdv.chasingpictures.MainActivity; import de.fu_berlin.cdv.chasingpictures.R; public class SplashScreen extends Activity { privat...
package de.fu_berlin.cdv.chasingpictures.activity; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import de.fu_berlin.cdv.chasingpictures.MainActivity; import de.fu_berlin.cdv.chasingpictures.R; public class SplashScreen extends Activity { privat...
Increase splash screen delay and finish splash screen activity.
Increase splash screen delay and finish splash screen activity.
Java
mit
kaltsimon/Chasing-Pictures-front-end,ChasingPictures/front-end,ChasingPictures/front-end,kaltsimon/Chasing-Pictures-front-end,ChasingPictures/front-end,kaltsimon/Chasing-Pictures-front-end
0bbfac0a4663d3804bb650d0bbca3849c025c896
src/main/java/ch/rasc/extdirectspring/demo/named/NamedService.java
src/main/java/ch/rasc/extdirectspring/demo/named/NamedService.java
/** * Copyright 2010-2014 Ralph Schaer <ralphschaer@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
/** * Copyright 2010-2014 Ralph Schaer <ralphschaer@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
Add an example for a nonstrict named parameter method
Add an example for a nonstrict named parameter method
Java
apache-2.0
ralscha/extdirectspring-demo,ralscha/extdirectspring-demo,ralscha/extdirectspring-demo
c5b03cb5b38d8a5ff935c797ff515cea1d11214b
common/message/src/main/java/org/thingsboard/server/common/msg/core/ToServerRpcRequestMsg.java
common/message/src/main/java/org/thingsboard/server/common/msg/core/ToServerRpcRequestMsg.java
/** * Copyright © 2016-2018 The Thingsboard 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 applicab...
/** * Copyright © 2016-2018 The Thingsboard 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 applicab...
Fix for RPC calls in Kafka actions
Fix for RPC calls in Kafka actions
Java
apache-2.0
thingsboard/thingsboard,volodymyr-babak/thingsboard,volodymyr-babak/thingsboard,thingsboard/thingsboard,thingsboard/thingsboard,thingsboard/thingsboard,thingsboard/thingsboard,volodymyr-babak/thingsboard,volodymyr-babak/thingsboard,volodymyr-babak/thingsboard,volodymyr-babak/thingsboard,thingsboard/thingsboard
1ea6e1523965595cbfe8b3a9ec1b395fc974be7d
src/test/java/com/xaadin/ParserTest.java
src/test/java/com/xaadin/ParserTest.java
package com.xaadin; import com.vaadin.ui.*; import org.junit.Test; import java.net.URL; import static org.fest.assertions.api.Assertions.assertThat; public class ParserTest { public static final String PARSER_TEST_ALL_COMPONENTS = "ParserTestAllComponents.xml"; @Test public void testParseAllComponents() throws...
package com.xaadin; import com.vaadin.ui.*; import org.junit.Test; import java.net.URL; import static org.fest.assertions.api.Assertions.assertThat; public class ParserTest { public static final String PARSER_TEST_ALL_COMPONENTS = "ParserTestAllComponents.xml"; private Class[] TEST_COMPONENTS_TO_PARSE = new ...
Test refactoring (Main reason: Trigger a travis build)
Test refactoring (Main reason: Trigger a travis build)
Java
apache-2.0
xaadin/xaadin
67ef7d47c4bfbe5a572b17485070881213f1a443
app/src/debug/java/com/github/ayltai/newspaper/BaseApplication.java
app/src/debug/java/com/github/ayltai/newspaper/BaseApplication.java
package com.github.ayltai.newspaper; import android.app.Application; import com.facebook.common.logging.FLog; import com.facebook.stetho.Stetho; import com.github.ayltai.newspaper.util.TestUtils; import com.squareup.leakcanary.LeakCanary; public abstract class BaseApplication extends Application { @Override ...
package com.github.ayltai.newspaper; import android.app.Application; import android.os.StrictMode; import com.facebook.common.logging.FLog; import com.facebook.stetho.Stetho; import com.github.ayltai.newspaper.util.TestUtils; import com.squareup.leakcanary.LeakCanary; public abstract class BaseApplication extends Ap...
Enable StrictMode in debug build
Enable StrictMode in debug build
Java
apache-2.0
ayltai/Newspaper
22e1001bf473e9ceb0637397601038238e07a571
Java/src/CollectionsOperate.java
Java/src/CollectionsOperate.java
import java.util.HashMap; import java.util.Iterator; import java.util.Map; /** * Created by mazhuang on 2016/9/13. */ public class CollectionsOperate { public static void main(String[] args) { deleteFromMap(); } public static void deleteFromMap() { Map<Integer, String> map = new HashMap<...
import java.util.*; /** * Created by mazhuang on 2016/9/13. */ public class CollectionsOperate { public static void main(String[] args) { deleteFromMap(); deleteFromList(); } public static void deleteFromMap() { Map<Integer, String> map = new HashMap<>(); map.put(0, "Zero...
Add remove from List method
Add remove from List method
Java
mit
mzlogin/snippets,mzlogin/snippets,mzlogin/snippets,mzlogin/snippets,mzlogin/snippets,mzlogin/snippets,mzlogin/snippets,mzlogin/snippets
104860fa5958c8c5890eae924e9fa311ca2d8c9e
java/src/test/java/nl/fifth/postulate/circuit/PipeAssemblyTest.java
java/src/test/java/nl/fifth/postulate/circuit/PipeAssemblyTest.java
package nl.fifth.postulate.circuit; import org.junit.Test; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; public class PipeAssemblyTest { @Test public void shouldCallPipes() { Pipe mockPipe = mock(Pipe.class); PipeAssembly pipeAssembly = Assembly.with(mockPi...
package nl.fifth.postulate.circuit; import org.junit.Test; import org.mockito.InOrder; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.inOrder; public class PipeAssemblyTest { @Test public void shouldCallPipes() { Pipe mockPipe = moc...
Make sure pipes are called in order
Make sure pipes are called in order
Java
mit
fifth-postulate/finding-the-planets,fifth-postulate/finding-the-planets,fifth-postulate/finding-the-planets
ec86b49169d4986f877fc3ba03d0fde074f0dff9
src/java/com/twitter/aurora/scheduler/TaskIdGenerator.java
src/java/com/twitter/aurora/scheduler/TaskIdGenerator.java
package com.twitter.aurora.scheduler; import java.util.UUID; import com.google.common.base.Function; import com.google.common.base.Preconditions; import com.google.inject.Inject; import com.twitter.aurora.gen.TaskConfig; import com.twitter.common.util.Clock; /** * A function that generates universally-unique (not ...
package com.twitter.aurora.scheduler; import java.util.UUID; import com.google.common.base.Function; import com.google.common.base.Preconditions; import com.google.inject.Inject; import com.twitter.aurora.gen.TaskConfig; import com.twitter.common.util.Clock; /** * A function that generates universally-unique (not ...
Add environment to newly-generated task IDs.
Add environment to newly-generated task IDs.
Java
apache-2.0
mschenck/aurora,shahankhatch/aurora,rdelval/aurora,apache/aurora,rdelval/aurora,apache/aurora,wfarner/aurora,crashlytics/aurora,wfarner/aurora,protochron/aurora,crashlytics/aurora,mkhutornenko/incubator-aurora,crashlytics/aurora,mschenck/aurora,shahankhatch/aurora,medallia/aurora,mschenck/aurora,kidaa/aurora,mkhutornen...
81ffd9463b38f84ec3f9f61700be69e16311455f
src/main/java/com/fns/xlator/client/impl/FrenglyClientSettings.java
src/main/java/com/fns/xlator/client/impl/FrenglyClientSettings.java
package com.fns.xlator.client.impl; import org.hibernate.validator.constraints.NotEmpty; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; @Component @ConfigurationProperties(prefix = ...
package com.fns.xlator.client.impl; import org.hibernate.validator.constraints.NotEmpty; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; @Component @ConfigurationProperties(prefix = ...
Make email and password have default values
Make email and password have default values * which must be overriden
Java
apache-2.0
fastnsilver/xlator,fastnsilver/xlator
8d04eff68c7b68f643ba40d6153e68507e929fc4
client/android/WorldScope/app/src/main/java/com/litmus/worldscope/model/WorldScopeCreatedStream.java
client/android/WorldScope/app/src/main/java/com/litmus/worldscope/model/WorldScopeCreatedStream.java
package com.litmus.worldscope.model; import java.util.Date; /** * Stream object returned from WorldScope App Server when creating a new stream */ public class WorldScopeCreatedStream extends WorldScopeStream { private Date endedAt; private String streamLink; public Date getEndedAt() {return endedAt;} ...
package com.litmus.worldscope.model; import java.util.Date; /** * Stream object returned from WorldScope App Server when creating a new stream */ public class WorldScopeCreatedStream extends WorldScopeStream { private String endedAt; private String streamLink; public String getEndedAt() {return endedA...
Refactor Date to a String for compatibility purposes
Refactor Date to a String for compatibility purposes
Java
mit
nus-mtp/worldscope,nus-mtp/worldscope,nus-mtp/worldscope,nus-mtp/worldscope
906366e54913ee641e043713fe06bfb190aee65a
src/main/java/info/u_team/u_team_core/util/registry/BusRegistry.java
src/main/java/info/u_team/u_team_core/util/registry/BusRegistry.java
package info.u_team.u_team_core.util.registry; import java.util.function.Consumer; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; pub...
package info.u_team.u_team_core.util.registry; import java.util.function.Consumer; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus; public class BusRegistry { public static void registerMod(Consumer<IEventBus> consumer) { register(Bus.MOD, consum...
Refactor and make it a bit easier to read
Refactor and make it a bit easier to read
Java
apache-2.0
MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core
003b18c0872f6441d5cdef3c2e0917f29513cdbe
app/src/main/java/br/ufu/renova/scraper/MockHttpClient.java
app/src/main/java/br/ufu/renova/scraper/MockHttpClient.java
package br.ufu.renova.scraper; import java.io.IOException; import java.util.*; /** * Created by yassin on 10/19/16. */ public class MockHttpClient implements IHttpClient { @Override public List<Book> getBooks() { Calendar tomorrow = Calendar.getInstance(); tomorrow.add(Calendar.DAY_OF_MONTH...
package br.ufu.renova.scraper; import java.io.IOException; import java.util.*; /** * Created by yassin on 10/19/16. */ public class MockHttpClient implements IHttpClient { private Book[] books; public MockHttpClient() { Calendar tomorrow = Calendar.getInstance(); tomorrow.add(Calendar.DAY_...
Fix bug ao criar novas instâncias no getBooks. Adicionando sleep para se poder ver as animações.
Fix bug ao criar novas instâncias no getBooks. Adicionando sleep para se poder ver as animações.
Java
apache-2.0
ynurmahomed/renova
682afb72aae0d9453745e0cca80d0e840efa4016
runtime/ceylon/language/StringOfNone.java
runtime/ceylon/language/StringOfNone.java
package ceylon.language; import com.redhat.ceylon.compiler.java.metadata.Ceylon; import com.redhat.ceylon.compiler.java.metadata.Ignore; @Ignore @Ceylon(major = 1) class StringOfNone extends String implements None<Character> { static StringOfNone instance = new StringOfNone(); private StringOfNone()...
package ceylon.language; import com.redhat.ceylon.compiler.java.metadata.Ceylon; import com.redhat.ceylon.compiler.java.metadata.Ignore; @Ignore @Ceylon(major = 1) class StringOfNone extends String implements None<Character> { static StringOfNone instance = new StringOfNone(); private StringOfNone()...
Add any/every, and optimize some functions (knowing it's empty string)
Add any/every, and optimize some functions (knowing it's empty string)
Java
apache-2.0
ceylon/ceylon.language,jvasileff/ceylon.language,ceylon/ceylon.language,unratito/ceylon.language,lucaswerkmeister/ceylon.language,jvasileff/ceylon.language,unratito/ceylon.language,lucaswerkmeister/ceylon.language
a24ae7d26e9cc98024e77916bcabc84d930db0e7
java/org/apache/tomcat/util/compat/TLS.java
java/org/apache/tomcat/util/compat/TLS.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...
/* * 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...
Fix IDE nag (unused variable)
Fix IDE nag (unused variable) git-svn-id: 79cef5a5a257cc9dbe40a45ac190115b4780e2d0@1842706 13f79535-47bb-0310-9956-ffa450edef68
Java
apache-2.0
apache/tomcat,apache/tomcat,apache/tomcat,apache/tomcat,apache/tomcat
34ce387f6cf3b06beb7edab6376f98a0b6e2aae1
src/test/java/org/jstanier/InputParserTest.java
src/test/java/org/jstanier/InputParserTest.java
package org.jstanier; import static org.mockito.Mockito.when; import java.io.StringReader; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.runners.MockitoJUnitRunner; import com.jstanier.InputParser; impo...
package org.jstanier; import static org.mockito.Mockito.when; import java.io.StringReader; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.runners.MockitoJUnitRunner; import com.jstanier.InputParser; impo...
Add tests for incorrect input
Add tests for incorrect input
Java
mit
jstanier/tweet-scheduler
fc4d3405151ac151746c8881f19374085db3f6e9
core/common/src/test/java/alluxio/SystemErrRuleTest.java
core/common/src/test/java/alluxio/SystemErrRuleTest.java
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
Use static import for standard test utilities
[SMALLFIX] Use static import for standard test utilities pr-link: Alluxio/alluxio#8981 change-id: cid-e8e2596b0f3cb68489b88cbf42646844098151dc
Java
apache-2.0
bf8086/alluxio,calvinjia/tachyon,wwjiang007/alluxio,EvilMcJerkface/alluxio,EvilMcJerkface/alluxio,EvilMcJerkface/alluxio,bf8086/alluxio,madanadit/alluxio,madanadit/alluxio,Alluxio/alluxio,calvinjia/tachyon,bf8086/alluxio,calvinjia/tachyon,maobaolong/alluxio,maobaolong/alluxio,maobaolong/alluxio,EvilMcJerkface/alluxio,c...