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 |
|---|---|---|---|---|---|---|---|---|---|
2b08d4dfe1a77a0e3319f3d4fe5f65a756bc2a5f | openxc/src/test/java/com/openxc/remote/RawMeasurementTest.java | openxc/src/test/java/com/openxc/remote/RawMeasurementTest.java | package com.openxc.remote;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;
import org.junit.Test;
public class RawMeasurementTest {
RawMeasurement measurement;
@Test
public void testValue() {
measurement = new RawMeasurement(new Double(42.0));
}
@Te... | package com.openxc.remote;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class RawMeasurementTest {
RawMeasurement measurement;
@Test
public void testValue() {
measurement = new Raw... | Test that RawMeasurement timestamps never change. | Test that RawMeasurement timestamps never change.
| Java | bsd-3-clause | ChernyshovYuriy/openxc-android,openxc/openxc-android,ChernyshovYuriy/openxc-android,mray19027/openxc-android,prateeknitish391/demo,msowka/openxc-android,petemaclellan/openxc-android,petemaclellan/openxc-android,mray19027/openxc-android,openxc/openxc-android,msowka/openxc-android,dhootha/openxc-android,prateeknitish391/... |
df958f04d1f5d764ce47e75fc55e081b3ed3d275 | src/world/World.java | src/world/World.java | package edu.stuy.starlorn.world;
import edu.stuy.starlorn.entities.Entity;
import java.util.ArrayList;
/*
* Represents a world with entities in it
*/
public class World {
private ArrayList<Entity> _entities;
public World() {
_entities = new ArrayList<Entity>();
}
public void addEntity(Ent... | package edu.stuy.starlorn.world;
import edu.stuy.starlorn.entities.Entity;
import java.util.LinkedList;
/*
* Represents a world with entities in it
*/
public class World {
private LinkedList<Entity> _entities;
public World() {
_entities = new LinkedList<Entity>();
}
public void addEntity(... | Change ArrayList of Entities to LinkedList | Change ArrayList of Entities to LinkedList
| Java | mit | Hypersonic/Starlorn |
9665dcfb05be08fd759e33a1c399979ac8a38a7c | src/com/example/android/wizardpager/wizard/model/PageList.java | src/com/example/android/wizardpager/wizard/model/PageList.java | /*
* Copyright 2013 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 2013 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 ... | Support for branches without pages | Support for branches without pages | Java | apache-2.0 | ahmgsk/WizardPager,williamsrz/Android-Material-Wizard,romannurik/Android-WizardPager,MarkOSullivan94/Android-Material-Wizard,generalzou/Android-WizardPager,benju69/Android-WizardPager,hgl888/Android-WizardPager,omegasoft7/Android-WizardPager |
80e80c5ce41c77cbb477c3c8b91e7c658fe87aa4 | src/main/java/org/jboss/loom/migrators/IMigratorFilter.java | src/main/java/org/jboss/loom/migrators/IMigratorFilter.java | package org.jboss.loom.migrators;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.jboss.loom.migrators._ext.MigratorDefinition;
import org.jboss.loom.spi.IMigrator;
/**
* Filters migrators - used to filter out migrators based on user input and config.
*
* @author Ondrej Zizka,... | package org.jboss.loom.migrators;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.jboss.loom.migrators._ext.MigratorDefinition;
import org.jboss.loom.spi.IMigrator;
/**
* Filters migrators - used to filter out migrators based on user input and config.
*
* @author Ondrej Zizka,... | Fix the calls to loadMigrators() | Fix the calls to loadMigrators() | Java | apache-2.0 | OndraZizka/jboss-migration,OndraZizka/jboss-migration,OndraZizka/jboss-migration |
b9aa93c127573b4b1d068290bb4ca2e3eaf4b82c | GerritCommon/src/main/java/com.holmsted/file/FileWriter.java | GerritCommon/src/main/java/com.holmsted/file/FileWriter.java | package com.holmsted.file;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
public class FileWriter {
public static void writeFile(String filename, String contents... | package com.holmsted.file;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import javax.annotation.Nonnull;
public class FileWriter {
public static void writeFil... | Create directories for output if they don't already exist | Create directories for output if they don't already exist
Especially the downloader should do this to allow for easier
scripting.
| Java | mit | holmari/gerritstats,holmari/gerritstats,holmari/gerritstats,holmari/gerritstats |
49d5583175bef0190ccfe7aa2ad5873f41d274ff | src/com/rabenauge/gl/Texture2D.java | src/com/rabenauge/gl/Texture2D.java | package com.rabenauge.gl;
import android.graphics.Bitmap;
import javax.microedition.khronos.opengles.GL10;
import javax.microedition.khronos.opengles.GL11;
/*
* Wrapper class for 2D texture objects.
*/
public class Texture2D extends Texture {
public Texture2D(GL11 gl) {
super(gl, GL10.GL_TEXTURE_2D, GL1... | package com.rabenauge.gl;
import android.graphics.Bitmap;
import javax.microedition.khronos.opengles.GL10;
import javax.microedition.khronos.opengles.GL11;
/*
* Wrapper class for 2D texture objects.
*/
public class Texture2D extends Texture {
public Texture2D(GL11 gl) {
super(gl, GL10.GL_TEXTURE_2D, GL1... | Enable filtering when scaling NPOT textures; minor optimizations | Enable filtering when scaling NPOT textures; minor optimizations
| Java | apache-2.0 | sschuberth/parandroid |
cc4be1112d1d52670cd274ac5b9a874e463c020b | src/main/java/io/github/bonigarcia/wdm/VoidDriverManager.java | src/main/java/io/github/bonigarcia/wdm/VoidDriverManager.java | /*
* (C) Copyright 2015 Boni Garcia (http://bonigarcia.github.io/)
*
* 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/l... | /*
* (C) Copyright 2015 Boni Garcia (http://bonigarcia.github.io/)
*
* 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/l... | Remove non used method in void driver manager | Remove non used method in void driver manager
| Java | apache-2.0 | bonigarcia/webdrivermanager,bonigarcia/webdrivermanager,bonigarcia/webdrivermanager |
fcef83c103bf7b9781f82cf367fbe2c7a21648c3 | src/test/java/net/lshift/spki/suiteb/ConditionJoinerTest.java | src/test/java/net/lshift/spki/suiteb/ConditionJoinerTest.java | package net.lshift.spki.suiteb;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class ConditionJoinerTest {
private static final Condition[] BOOLEANS = new Condition[] {
NeverCondition.NEVER, AlwaysCondition.ALWAYS};
@Test
public void test() {
for (Condition a... | package net.lshift.spki.suiteb;
import static net.lshift.spki.suiteb.AlwaysCondition.ALWAYS;
import static net.lshift.spki.suiteb.ConditionJoiner.and;
import static net.lshift.spki.suiteb.ConditionJoiner.or;
import static net.lshift.spki.suiteb.NeverCondition.NEVER;
import static org.junit.Assert.assertEquals;
import... | Clean up test a little | Clean up test a little
--HG--
branch : delegation
| Java | apache-2.0 | lshift/bletchley |
da636b9459848e4a38e012f9bca9eedc3bd6d2da | src/main/java/org/bouncycastle/crypto/tls/ExtensionType.java | src/main/java/org/bouncycastle/crypto/tls/ExtensionType.java | package org.bouncycastle.crypto.tls;
public class ExtensionType
{
/*
* RFC 6066 1.1.
*/
public static final int server_name = 0;
public static final int max_fragment_length = 1;
public static final int client_certificate_url = 2;
public static final int trusted_ca_keys = 3;
public sta... | package org.bouncycastle.crypto.tls;
public class ExtensionType
{
/*
* RFC 6066 1.1.
*/
public static final int server_name = 0;
public static final int max_fragment_length = 1;
public static final int client_certificate_url = 2;
public static final int trusted_ca_keys = 3;
... | Add use_srtp extension registration from RFC 5764 | Add use_srtp extension registration from RFC 5764 | Java | mit | iseki-masaya/spongycastle,lesstif/spongycastle,sergeypayu/bc-java,bcgit/bc-java,onessimofalconi/bc-java,savichris/spongycastle,FAU-Inf2/spongycastle,open-keychain/spongycastle,bcgit/bc-java,partheinstein/bc-java,partheinstein/bc-java,sonork/spongycastle,lesstif/spongycastle,open-keychain/spongycastle,sonork/spongycastl... |
6cf081928c3341168eb5e3863b2d6c4a61db56c6 | rest-common/src/main/java/uk/ac/ebi/quickgo/rest/period/PeriodParser.java | rest-common/src/main/java/uk/ac/ebi/quickgo/rest/period/PeriodParser.java | package uk.ac.ebi.quickgo.rest.period;
/**
* Interface for classes that interpret a String as a period definition.
* @author Tony Wardell
* Date: 25/04/2017
* Time: 10:41
* Created with IntelliJ IDEA.
*/
public interface PeriodParser {
/**
* Parse a String that contains a definition of a time period, t... | package uk.ac.ebi.quickgo.rest.period;
import java.util.Optional;
/**
* Interface for classes that interpret a String as a period definition.
* @author Tony Wardell
* Date: 25/04/2017
* Time: 10:41
* Created with IntelliJ IDEA.
*/
public interface PeriodParser {
/**
* Parse a String that contains a de... | Replace ZeroDurationPeriod with use of Optional i.e. don't mix returning Period instances and nulls. | Replace ZeroDurationPeriod with use of Optional i.e. don't mix returning Period instances and nulls.
| Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
6d9f93cc159ffcda67bfb180588cc279c3c1b0e7 | src/org/jcodegen/html/util/CssClasses.java | src/org/jcodegen/html/util/CssClasses.java | package org.jcodegen.html.util;
import java.util.HashSet;
import java.util.Set;
/**
* ...
*/
public class CssClasses {
private final Set<String> classNames = new HashSet<String>();
public void addClass(final String className) {
classNames.add(className);
}
public String get() {
if... | package org.jcodegen.html.util;
import java.util.HashSet;
import java.util.Set;
/**
* ...
*/
public class CssClasses {
private final Set<String> classNames = new HashSet<String>();
public static CssClasses start(final String firstClass) {
CssClasses cssClasses = new CssClasses();
return cs... | Convert to fluent interface to make use easier and less verbose | Convert to fluent interface to make use easier and less verbose
| Java | apache-2.0 | cpythoud/html-codegen |
7a0310df66087d9010a56f10e95c3f9f74785b47 | src/com/haxademic/core/system/SystemUtil.java | src/com/haxademic/core/system/SystemUtil.java | package com.haxademic.core.system;
import processing.core.PApplet;
import com.haxademic.core.app.P;
public class SystemUtil {
public static String getJavaVersion() {
return System.getProperty("java.version");
}
public static String getTimestamp( PApplet p ) {
// use P.nf to pad date components to 2 digits ... | package com.haxademic.core.system;
import processing.core.PApplet;
import processing.opengl.PGL;
import com.haxademic.core.app.P;
public class SystemUtil {
public static String getJavaVersion() {
return System.getProperty("java.version");
}
public static String getTimestamp( PApplet p ) {
// use P.nf to pa... | Add patch for Processing 2.0-2.0.1 TAB keyboard input | Add patch for Processing 2.0-2.0.1 TAB keyboard input | Java | mit | cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic |
8b311624f935426b828314046ea58ce92363fcb6 | beaform-core/src/test/java/beaform/events/StoreEventTest.java | beaform-core/src/test/java/beaform/events/StoreEventTest.java | package beaform.events;
import static org.junit.Assert.assertEquals;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.junit.After;
import org.junit.Test;
import beaform.utilities.SystemTime;
import beaform.utilities.TimeSource;
public class StoreEventTest {
@After
public void destroy() {
S... | package beaform.events;
import static org.junit.Assert.assertEquals;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.junit.After;
import org.junit.Test;
import beaform.utilities.SystemTime;
import beaform.utilities.TimeSource;
public class StoreEventTest {
@After
public void destroy() {
S... | Fix the unit test by making the returned time the same on all calls (which was the whole point) | Fix the unit test by making the returned time the same on all calls (which was the whole point)
| Java | mit | stevenpost/beaform |
f30bcea113e7eb4a0d5206344255f050900ce211 | zanata-war/src/main/java/org/zanata/webtrans/shared/model/DocumentId.java | zanata-war/src/main/java/org/zanata/webtrans/shared/model/DocumentId.java | package org.zanata.webtrans.shared.model;
import java.io.Serializable;
import com.google.gwt.user.client.rpc.IsSerializable;
//@Immutable
public class DocumentId implements Identifier<Long>, Comparable,
IsSerializable, Serializable {
private static final long serialVersionUID = 1L;
private Long id;
... | package org.zanata.webtrans.shared.model;
import java.io.Serializable;
import com.google.gwt.user.client.rpc.IsSerializable;
//@Immutable
public class DocumentId implements Identifier<Long>, Comparable,
IsSerializable, Serializable {
private static final long serialVersionUID = 1L;
private Long id;
... | Remove checking of null in compareTo method | Remove checking of null in compareTo method
| Java | lgpl-2.1 | zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform,zanata/zanata-platform |
dafd31a6825b48481c308d1e5ff1a11aed5e23e5 | src/java/boa/datagen/util/PHPErrorCheckVisitor.java | src/java/boa/datagen/util/PHPErrorCheckVisitor.java | package boa.datagen.util;
import org.eclipse.php.internal.core.ast.nodes.ASTError;
import org.eclipse.php.internal.core.ast.nodes.ASTNode;
import org.eclipse.php.internal.core.ast.visitor.AbstractVisitor;
public class PHPErrorCheckVisitor extends AbstractVisitor{
public boolean hasError = false;
@Override
public... | package boa.datagen.util;
import org.eclipse.php.internal.core.ast.nodes.*;
import org.eclipse.php.internal.core.ast.nodes.ASTNode;
import org.eclipse.php.internal.core.ast.visitor.AbstractVisitor;
import org.eclipse.php.internal.core.ast.visitor.ApplyAll;
public class PHPErrorCheckVisitor extends ApplyAll{
public b... | Use ApplyAll instead of AbstractVisitor | Use ApplyAll instead of AbstractVisitor | Java | apache-2.0 | boalang/compiler,boalang/compiler,boalang/compiler,boalang/compiler,boalang/compiler |
1afc02812dbbd684775c83b5ef4ba368382a3f1c | src/main/java/se/jereq/testmod/init/ModRecipes.java | src/main/java/se/jereq/testmod/init/ModRecipes.java | package se.jereq.testmod.init;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.registry.GameRegistry;
public class ModRecipes {
public static void addRecipes() {
GameRegistry.addRecipe(new ItemStack(ModBlocks.testBlock),
"AAA",
"AAA",
"AAA",
'A', ModItems.testItem);
Ga... | package se.jereq.testmod.init;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.registry.GameRegistry;
public class ModRecipes {
public static void addRecipes() {
GameRegistry.addRecipe(new ItemStack(ModBlocks.testBlock),
"AAA",
"AAA",
"AAA",
... | Add recipes for rifle and ammo | Add recipes for rifle and ammo
| Java | mit | Jereq/MC-TestMod |
7b30aca1543d36724cb3ababe247ec12637caa70 | name.abuchen.portfolio.tests/src/name/abuchen/portfolio/util/IsinTest.java | name.abuchen.portfolio.tests/src/name/abuchen/portfolio/util/IsinTest.java | package name.abuchen.portfolio.util;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class IsinTest
{
@Test
public void testValidIsin()
{
String ubsIsin = "CH0244767585";
assertTrue(Isin.isValid(ubsIsin));
Strin... | package name.abuchen.portfolio.util;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class IsinTest
{
@Test
public void testValidIsin()
{
String ubsIsin = "CH0244767585";
assertTrue(Isin.isValid(ubsIsin));
Strin... | Add test for too short isin | Add test for too short isin
| Java | epl-1.0 | sebasbaumh/portfolio,sebasbaumh/portfolio,sebasbaumh/portfolio,sebasbaumh/portfolio,buchen/portfolio,buchen/portfolio,buchen/portfolio,buchen/portfolio |
eb7e3458c520d3c7131930cbc2f7d8a12f541920 | src/test/java/me/nallar/mixin/internal/MixinApplicatorTest.java | src/test/java/me/nallar/mixin/internal/MixinApplicatorTest.java | package me.nallar.mixin.internal;
import lombok.val;
import me.nallar.mixin.internal.mixinsource.MixinSource;
import org.junit.Assert;
import org.junit.Test;
public class MixinApplicatorTest {
@Test
public void testGetMixinTransformer() throws Exception {
val applicator = new MixinApplicator();
applicator.addSo... | package me.nallar.mixin.internal;
import lombok.val;
import me.nallar.mixin.internal.mixinsource.MixinSource;
import org.junit.Assert;
import org.junit.Test;
public class MixinApplicatorTest {
@Test
public void testGetMixinTransformer() throws Exception {
val applicator = new MixinApplicator();
applicator.addSo... | Test now checks that transformer returned includes source if called before source added then after | Test now checks that transformer returned includes source if called before source added then after
| Java | mit | nallar/Mixin |
b613c582ce5fb4ed3932b2833fa896631ba18826 | src/main/java/com/epam/ta/reportportal/ws/model/widget/MaterializedWidgetType.java | src/main/java/com/epam/ta/reportportal/ws/model/widget/MaterializedWidgetType.java | package com.epam.ta.reportportal.ws.model.widget;
import javax.annotation.Nullable;
import java.util.Arrays;
import java.util.Optional;
/**
* @author <a href="mailto:pavel_bortnik@epam.com">Pavel Bortnik</a>
*/
public enum MaterializedWidgetType {
COMPONENT_HEALTH_CHECK_TABLE("componentHealthCheckTable");
priva... | package com.epam.ta.reportportal.ws.model.widget;
import javax.annotation.Nullable;
import java.util.Arrays;
import java.util.Optional;
/**
* @author <a href="mailto:pavel_bortnik@epam.com">Pavel Bortnik</a>
*/
public enum MaterializedWidgetType {
COMPONENT_HEALTH_CHECK_TABLE("componentHealthCheckTable"),
CUMULA... | Add missed widget type to the validator | Add missed widget type to the validator
| Java | apache-2.0 | reportportal/commons-model |
30953e7657a2b6797fc55ca71e4de468cb1e13c8 | api/src/test/java/io/cloudevents/format/WireTest.java | api/src/test/java/io/cloudevents/format/WireTest.java | package io.cloudevents.format;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.HashMap;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
/**
*
* @author fabiojose
*
*/
pub... | package io.cloudevents.format;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.HashMap;
import java.util.Map;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
/**
*
* @autho... | Test for the immutable result | Test for the immutable result
Signed-off-by: Fabio José <34f3a7e4e4d9fe971c99ebc4af947a5309eca653@gmail.com>
| Java | apache-2.0 | cloudevents/sdk-java |
e0a5e3ec937288f15c04c236cc414d50ba8148af | testing/java/com/google/android/material/testapp/custom/CustomTextView.java | testing/java/com/google/android/material/testapp/custom/CustomTextView.java | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Migrate away from deprecated behavior annotation | Migrate away from deprecated behavior annotation
PiperOrigin-RevId: 271439031
| Java | apache-2.0 | material-components/material-components-android |
a2f6b58687bdafe34d3f6b62da77a0fe7448df03 | ChasingPictures/app/src/main/java/de/fu_berlin/cdv/chasingpictures/Menu.java | ChasingPictures/app/src/main/java/de/fu_berlin/cdv/chasingpictures/Menu.java | package de.fu_berlin.cdv.chasingpictures;
import android.app.Activity;
import android.os.Bundle;
public class Menu extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_menu);
}
}
| package de.fu_berlin.cdv.chasingpictures;
import android.app.Activity;
import android.graphics.ColorMatrix;
import android.graphics.ColorMatrixColorFilter;
import android.os.Bundle;
import android.widget.ImageView;
public class Menu extends Activity {
private ImageView mImageNext;
@Override
protected v... | Make picture for 'next' grayscale | Make picture for 'next' grayscale
| Java | mit | kaltsimon/Chasing-Pictures-front-end,kaltsimon/Chasing-Pictures-front-end,ChasingPictures/front-end,ChasingPictures/front-end,kaltsimon/Chasing-Pictures-front-end,ChasingPictures/front-end |
1ac0897c0e35929fd61506215962d4f4441b8f86 | src/main/java/techreborn/events/TRTickHandler.java | src/main/java/techreborn/events/TRTickHandler.java | package techreborn.events;
import cpw.mods.fml.common.eventhandler.EventPriority;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent;
import cpw.mods.fml.common.gameevent.TickEvent.PlayerTickEvent;
import cpw.mods.fml.relauncher.Side;
import net.minecraft.entity.play... | package techreborn.events;
import cpw.mods.fml.common.eventhandler.EventPriority;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent;
import cpw.mods.fml.common.gameevent.TickEvent.PlayerTickEvent;
import cpw.mods.fml.relauncher.Side;
import net.minecraft.entity.play... | Fix invisibility potions and cloaking device | Fix invisibility potions and cloaking device
| Java | mit | Dimmerworld/TechReborn,drcrazy/TechReborn,TechReborn/TechReborn |
318695be0f8aaee4750f003ead9cbd134ec44721 | java_src/foam/core/SingletonFactory.java | java_src/foam/core/SingletonFactory.java | /**
* @license
* Copyright 2017 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
package foam.core;
public class SingletonFactory implements XFactory {
XFactory delegate_;
Object instance_;
public SingletonFactory(XFactory delegate) {
delegate_ = delegate;
}
... | /**
* @license
* Copyright 2017 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
package foam.core;
public class SingletonFactory implements XFactory {
XFactory delegate_ = null;
Object instance_;
public SingletonFactory(XFactory delegate) {
delegate_ = delegate;
... | Fix foam.core.XFactory cannot be converted to boolean | Fix foam.core.XFactory cannot be converted to boolean
| Java | apache-2.0 | jacksonic/vjlofvhjfgm,TanayParikh/foam2,jacksonic/vjlofvhjfgm,foam-framework/foam2,TanayParikh/foam2,TanayParikh/foam2,foam-framework/foam2,foam-framework/foam2,jacksonic/vjlofvhjfgm,foam-framework/foam2,TanayParikh/foam2,foam-framework/foam2 |
357570b9d058a198b13be4aa13a114f5b1503b5b | ollie-sample/src/test/java/com/example/ollie/OllieTest.java | ollie-sample/src/test/java/com/example/ollie/OllieTest.java | package com.example.ollie;
import com.example.ollie.model.Note;
import com.example.ollie.shadows.PersistentShadowSQLiteOpenHelper;
import ollie.Ollie;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.Robolectric;
import org.robolectric.RobolectricTestRunner;
impor... | package com.example.ollie;
import com.example.ollie.model.Note;
import com.example.ollie.shadows.PersistentShadowSQLiteOpenHelper;
import ollie.Ollie;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.Robolectric;
import org.robolectri... | Delete old sqlite db before running tests. | Delete old sqlite db before running tests.
| Java | apache-2.0 | pardom/Ollie,gotokatsuya/Ollie,ArnaudPiroelle/Ollie,r0adkll/Ollie |
32250376a52ec3a834ddc17d6bfb9c349a28f7ba | src/main/java/enmasse/config/bridge/openshift/OpenshiftResourceListener.java | src/main/java/enmasse/config/bridge/openshift/OpenshiftResourceListener.java | /*
* Copyright 2016 Red Hat 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 2016 Red Hat 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... | Remove method not belonging to interface | Remove method not belonging to interface
| Java | apache-2.0 | EnMasseProject/enmasse,EnMasseProject/enmasse,EnMasseProject/enmasse,EnMasseProject/enmasse,jenmalloy/enmasse,EnMasseProject/enmasse,EnMasseProject/enmasse,jenmalloy/enmasse,EnMasseProject/enmasse,jenmalloy/enmasse,jenmalloy/enmasse,jenmalloy/enmasse,jenmalloy/enmasse,jenmalloy/enmasse |
c65f8b80d0e50a7479594ca304d4254ecac6a4df | src/com/crystalcraftmc/allyouneed/Commands/AYNHeal.java | src/com/crystalcraftmc/allyouneed/Commands/AYNHeal.java | package com.crystalcraftmc.allyouneed.Commands;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.crystalcraftmc.allyouneed.Main;
public class AYNHeal implements CommandExecutor {
Main plugin;
public AY... | package com.crystalcraftmc.allyouneed.Commands;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.crystalcraftmc.allyouneed.Main;
public class AYNHeal implements CommandExecutor {
Main plugin;
public AY... | Remove Dupe Code and Add More Error Checking | Remove Dupe Code and Add More Error Checking
Again need to test this. | Java | apache-2.0 | jflory7/All-You-Need |
4b25331a78707c3a4159c7252adfc1f908129394 | 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... | Add tentative fix to isFinished using magnitudes rather than the pos/neg values | Add tentative fix to isFinished using magnitudes rather than the pos/neg values
| Java | bsd-3-clause | Team694/PEGasus1,Team694/PEGasus1 |
98cb1d918e59eecd85a15da1a01feb0d3156537e | src/main/java/br/fameg/edu/domain/model/Trabalho.java | src/main/java/br/fameg/edu/domain/model/Trabalho.java | package br.fameg.edu.domain.model;
import java.math.BigDecimal;
import java.sql.Date;
import javax.persistence.*;
@Entity
public class Trabalho {
@Id
@GeneratedValue
private Long id;
@Column(nullable = false)
private String descricao;
@OneToOne
private Professor professor;
@Column(n... | package br.fameg.edu.domain.model;
import java.math.BigDecimal;
import java.sql.Date;
import javax.persistence.*;
@Entity
public class Trabalho {
@Id
@GeneratedValue
private Long id;
@Column(nullable = false)
private String descricao;
@OneToOne
private Professor professor;
@Column(n... | Resolve getter e setter para isObrigatorio | Resolve getter e setter para isObrigatorio
| Java | mit | LucasKr/school-management-api |
691aa16d4a8cb2836fcd62b7376ffdcbb8df75cd | src/main/java/io/tus/java/client/ProtocolException.java | src/main/java/io/tus/java/client/ProtocolException.java | package io.tus.java.client;
import java.io.IOException;
import java.net.HttpURLConnection;
/**
* This exception is thrown if the server sends a request with an unexpected status code or
* missing/invalid headers.
*/
public class ProtocolException extends Exception {
private HttpURLConnection connection;
p... | package io.tus.java.client;
import java.io.IOException;
import java.net.HttpURLConnection;
/**
* This exception is thrown if the server sends a request with an unexpected status code or
* missing/invalid headers.
*/
public class ProtocolException extends Exception {
private HttpURLConnection connection;
p... | Add explaination to selection of retrying status codes | Add explaination to selection of retrying status codes
| Java | mit | tus/tus-java-client |
a27fb45c403eef9f1b77e90262d94f37b8770fde | src/main/java/org/trellisldp/spi/IdentifierService.java | src/main/java/org/trellisldp/spi/IdentifierService.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | Add method to ID Generator | Add method to ID Generator
| Java | apache-2.0 | acoburn/trellis-spi |
2e7bcbf6eb8f79a56c9d199bfa46eebcb63b2206 | src/main/java/org/synyx/urlaubsverwaltung/core/application/service/ApplicationCommentServiceImpl.java | src/main/java/org/synyx/urlaubsverwaltung/core/application/service/ApplicationCommentServiceImpl.java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.synyx.urlaubsverwaltung.core.application.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotati... | package org.synyx.urlaubsverwaltung.core.application.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.synyx.urlaubsverwaltung.core.application.dao.ApplicationCommentDAO;
imp... | Remove editor template for class | Remove editor template for class
| Java | apache-2.0 | synyx/urlaubsverwaltung,synyx/urlaubsverwaltung,synyx/urlaubsverwaltung,synyx/urlaubsverwaltung |
4c56c3454350251e32f83e8475fc4dfbe666cba5 | src/main/java/pl/aetas/bakspad/presentation/LocaleAwareStringComparator.java | src/main/java/pl/aetas/bakspad/presentation/LocaleAwareStringComparator.java | package pl.aetas.bakspad.presentation;
import java.text.Collator;
import java.util.Comparator;
import java.util.Locale;
public class LocaleAwareStringComparator implements Comparator<String> {
private final Collator localeCollator;
public LocaleAwareStringComparator(Locale locale) {
localeCollator =... | package pl.aetas.bakspad.presentation;
import java.text.Collator;
import java.util.Comparator;
import java.util.Locale;
public class LocaleAwareStringComparator implements Comparator<String> {
private final Collator localeCollator;
public LocaleAwareStringComparator(Locale locale) {
localeCollator =... | Change for table columns comparator to put empty string at the end | Change for table columns comparator to put empty string at the end
| Java | apache-2.0 | maniekq/bakspad |
be8ee822d2aa0669c5702c185edae60af82251a9 | src/org/bouncycastle/crypto/util/Pack.java | src/org/bouncycastle/crypto/util/Pack.java | package org.bouncycastle.crypto.util;
public abstract class Pack
{
public static int bigEndianToInt(byte[] bs, int off)
{
int n = bs[off++] << 24;
n |= (bs[off++] & 0xff) << 16;
n |= (bs[off++] & 0xff) << 8;
n |= (bs[off++] & 0xff);
return n;
}
public static voi... | package org.bouncycastle.crypto.util;
public abstract class Pack
{
public static int bigEndianToInt(byte[] bs, int off)
{
int n = bs[ off] << 24;
n |= (bs[++off] & 0xff) << 16;
n |= (bs[++off] & 0xff) << 8;
n |= (bs[++off] & 0xff);
return n;
}
public static voi... | Improve existing methods, add new ones for packing longs | Improve existing methods, add new ones for packing longs
| Java | mit | sake/bouncycastle-java |
7c45cb7ccf13dd558aeb4b839fd008478fb4d0da | plugin/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/writer/DataToProcessWriter.java | plugin/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/writer/DataToProcessWriter.java | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.ml.job.process.autodetect.writer;
import org.... | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.ml.job.process.autodetect.writer;
import org.... | Fix check style line length failure | Fix check style line length failure
Original commit: elastic/x-pack-elasticsearch@d37595db2b6ff7c6ffabbb2648d201008932158e
| Java | apache-2.0 | vroyer/elassandra,strapdata/elassandra,uschindler/elasticsearch,GlenRSmith/elasticsearch,HonzaKral/elasticsearch,GlenRSmith/elasticsearch,scorpionvicky/elasticsearch,strapdata/elassandra,coding0011/elasticsearch,GlenRSmith/elasticsearch,strapdata/elassandra,scorpionvicky/elasticsearch,HonzaKral/elasticsearch,HonzaKral/... |
7c549cb467a76886e04ab4b97094219525c25d48 | rest-common/src/main/java/uk/ac/ebi/quickgo/rest/search/AggregateFunction.java | rest-common/src/main/java/uk/ac/ebi/quickgo/rest/search/AggregateFunction.java | package uk.ac.ebi.quickgo.rest.search;
/**
* Enumerates the aggregation functions supported by the domain.
*
* @author Ricardo Antunes
*/
public enum AggregateFunction {
COUNT("count"),
UNIQUE("unique");
private String name;
AggregateFunction(String name) {
this.name = name;
}
pu... | package uk.ac.ebi.quickgo.rest.search;
/**
* Enumerates the aggregation functions supported by the domain.
*
* @author Ricardo Antunes
*/
public enum AggregateFunction {
COUNT("count"),
UNIQUE("unique"),
SUM("sum");
private String name;
AggregateFunction(String name) {
this.name = nam... | Add sum aggregation as a supported function in QuickGO. | Add sum aggregation as a supported function in QuickGO.
See issue: https://www.ebi.ac.uk/panda/jira/browse/GOA-2413
| Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
eb50397f1fabdbca12f15656c9361536a42f1299 | src/main/java/org/osiam/client/query/QueryResult.java | src/main/java/org/osiam/client/query/QueryResult.java | package org.osiam.client.query;
/*
* for licensing see the file license.txt.
*/
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.osiam.resources.scim.CoreResource;
import java.util.Collections;
import java.util.Set;
@JsonSerialize(include = JsonS... | package org.osiam.client.query;
/*
* for licensing see the file license.txt.
*/
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.osiam.resources.scim.CoreResource;
import java.util.Collections;
import java.util.List;
@JsonSerialize(include = Json... | Use List instead of Set to make sure that the returned order is preserved | Use List instead of Set to make sure that the returned order is preserved
| Java | mit | osiam/connector4java,wallner/connector4java |
32fa761dfc201aa004f429653ef9a09f30e61405 | src/main/java/org/springframework/data/rest/shell/formatter/XmlFormatter.java | src/main/java/org/springframework/data/rest/shell/formatter/XmlFormatter.java | package org.springframework.data.rest.shell.formatter;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Source;
import javax.xml.transform.Tr... | package org.springframework.data.rest.shell.formatter;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Source;
import javax.xml.transform.Tr... | Remove xml declaration which is added while formatting the content. | Remove xml declaration which is added while formatting the content.
| Java | apache-2.0 | spring-projects/rest-shell,sandipchitale/rest-shell |
6893e45f707d32f45f0a3b4762a4a774e4b30fce | src/main/java/com/vrachieru/cnp4j/CnpUtil.java | src/main/java/com/vrachieru/cnp4j/CnpUtil.java | package com.vrachieru.cnp4j;
public class CnpUtil {
public static final int CNP_LENGTH = 13;
public static final int[] WEIGHTS = new int[]{2, 7, 9, 1, 4, 6, 3, 5, 8, 2, 7, 9};
public static int calculateCheckDigit(String cnp) {
int sum = calculateSum(cnp);
int checkDigit = sum % 11;
... | package com.vrachieru.cnp4j;
import static java.lang.Character.getNumericValue;
public class CnpUtil {
public static final int CNP_LENGTH = 13;
public static final int[] WEIGHTS = new int[]{2, 7, 9, 1, 4, 6, 3, 5, 8, 2, 7, 9};
public static int calculateCheckDigit(String cnp) {
int sum = calcul... | Fix char to int convesion | Fix char to int convesion
| Java | mit | vrachieru/cnp4j |
d493e0892eaad4201f19326033fc9a5cebcc9bab | app/src/main/java/lib/morkim/mfw/ui/MPreferenceFragment.java | app/src/main/java/lib/morkim/mfw/ui/MPreferenceFragment.java | package lib.morkim.mfw.ui;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Bundle;
import android.preference.PreferenceFragment;
import lib.morkim.mfw.app.MorkimApp;
@SuppressLint("NewApi")
public abstract class MPreferenceFragment extends PreferenceFragment implements Viewable... | package lib.morkim.mfw.ui;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Bundle;
import android.preference.PreferenceFragment;
import lib.morkim.mfw.app.AppContext;
import lib.morkim.mfw.app.MorkimApp;
@SuppressLint("NewApi")
public abstract class MPreferenceFragment extends ... | Remove view model in presenter | Remove view model in presenter
| Java | mit | alkammar/morkim |
ef898efa2b089b0c017eeb1032bf8a491d9dc571 | src/test/java/net/sf/jabref/JabRefCLITest.java | src/test/java/net/sf/jabref/JabRefCLITest.java | package net.sf.jabref;
import org.junit.Assert;
import org.junit.Test;
import java.util.Arrays;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
public class JabRefCLITest {
@Test
public void testCLIParsingLongOptions() {
JabRefCLI cli = new JabRefCLI(new Stri... | package net.sf.jabref;
import org.junit.Assert;
import org.junit.Test;
import java.util.Arrays;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
public class JabRefCLITest {
@Test
public void testCLIParsingLongOptions() {
JabRefCLI cli = new JabRefCLI(new Stri... | Add test for export command line option | Add test for export command line option
| Java | mit | tobiasdiez/jabref,mairdl/jabref,sauliusg/jabref,zellerdev/jabref,mredaelli/jabref,obraliar/jabref,bartsch-dev/jabref,sauliusg/jabref,Mr-DLib/jabref,tschechlovdev/jabref,oscargus/jabref,jhshinn/jabref,motokito/jabref,shitikanth/jabref,Braunch/jabref,motokito/jabref,ayanai1/jabref,zellerdev/jabref,motokito/jabref,bartsch... |
9d0e657401d7e7ab179cb66ac68851009deb2a7e | src/edu/northwestern/bioinformatics/studycalendar/dao/delta/AmendmentDao.java | src/edu/northwestern/bioinformatics/studycalendar/dao/delta/AmendmentDao.java | package edu.northwestern.bioinformatics.studycalendar.dao.delta;
import org.springframework.transaction.annotation.Transactional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import edu.northwestern.bioinformatics.studycalendar.domain.delta.Amendment;
import edu.northwestern.bioinformatics.studycalendar.da... | package edu.northwestern.bioinformatics.studycalendar.dao.delta;
import edu.northwestern.bioinformatics.studycalendar.dao.StudyCalendarDao;
import edu.northwestern.bioinformatics.studycalendar.domain.delta.Amendment;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* @auth... | Remove unused/untested methods; deprecate & de-support getStudyById because that field's about to disappear | Remove unused/untested methods; deprecate & de-support getStudyById because that field's about to disappear
git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@1279 0d517254-b314-0410-acde-c619094fa49f
| Java | bsd-3-clause | NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror,NUBIC/psc-mirror |
3ac2cc27a4b8d3eeb481d30565143ff5991f8630 | panda/src/main/java/org/panda_lang/panda/implementation/interpreter/parser/pipeline/DefaultPipelines.java | panda/src/main/java/org/panda_lang/panda/implementation/interpreter/parser/pipeline/DefaultPipelines.java | /*
* Copyright (c) 2015-2017 Dzikoysk
*
* 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 (c) 2015-2017 Dzikoysk
*
* 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 BLOCK pipeline definition to the default pipelines | Add BLOCK pipeline definition to the default pipelines
| Java | apache-2.0 | Panda-Programming-Language/Panda |
95706aae81e0dc40ad5982d8685530bdf697c016 | goplayer-core/src/main/java/org/goplayer/util/Coord.java | goplayer-core/src/main/java/org/goplayer/util/Coord.java | package org.goplayer.util;
public class Coord {
private final int row;
private final int col;
public Coord(int row, int col) {
this.row = row;
this.col = col;
}
public int getRow() {
return row;
}
public int getCol() {
return col;
}
@Override
public boolean equals(Object obj) {
if (obj == this)... | package org.goplayer.util;
public class Coord {
private final int row;
private final int col;
public Coord(int row, int col) {
this.row = row;
this.col = col;
}
public int getRow() {
return row;
}
public int getCol() {
return col;
}
@Override
public String toString() {
return "(" + row + ", " +... | Add a string representation for the coords. | Add a string representation for the coords.
| Java | bsd-3-clause | matthieu-vergne/Go-Player |
a82c11623879a4d073ece0815104a72044afb0e1 | core/main/java/com/codingchili/core/storage/QueryParser.java | core/main/java/com/codingchili/core/storage/QueryParser.java | package com.codingchili.core.storage;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
import java.util.Collection;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @author Robin Duda
* <p... | package com.codingchili.core.storage;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import java.util.Collection;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @author Robin Duda
* <p>
* parses a query in string format.
* <p>
* ... | Remove bad import of sun.NotImplementedException | Remove bad import of sun.NotImplementedException
| Java | mit | codingchili/chili-core |
27915222fb21574bc4b3c9eedabb4ee76ecc18ca | src/main/java/in/twizmwaz/cardinal/module/modules/regions/type/PointRegion.java | src/main/java/in/twizmwaz/cardinal/module/modules/regions/type/PointRegion.java | package in.twizmwaz.cardinal.module.modules.regions.type;
import in.twizmwaz.cardinal.GameHandler;
import in.twizmwaz.cardinal.module.modules.regions.parsers.PointParser;
import org.bukkit.block.Block;
import org.bukkit.util.BlockVector;
import org.bukkit.util.Vector;
public class PointRegion extends BlockRegion {
... | package in.twizmwaz.cardinal.module.modules.regions.type;
import in.twizmwaz.cardinal.GameHandler;
import in.twizmwaz.cardinal.module.modules.regions.parsers.PointParser;
import org.bukkit.Location;
import org.bukkit.block.Block;
import org.bukkit.util.BlockVector;
import org.bukkit.util.Vector;
public class PointReg... | Improve handling of point regions | Improve handling of point regions
| Java | mit | CaptainElliott/CardinalPGM,dentmaged/CardinalPGM,TheMolkaPL/CardinalPGM,Alan736/NotCardinalPGM,SungMatt/CardinalPGM,TheMolkaPL/CardinalPGM,iPGz/CardinalPGM,angelitorb99/CardinalPGM,Electroid/ExperimentalPGM,twizmwazin/CardinalPGM,dentmaged/Cardinal-Dev,dentmaged/Cardinal-Plus,dentmaged/Cardinal-Dev,dentmaged/CardinalPG... |
f8358185aa35a1441246fdee9fcbb02c868731fc | org.metaborg.spoofax.eclipse.meta/src/main/java/org/metaborg/spoofax/eclipse/meta/ant/EclipseAntLogger.java | org.metaborg.spoofax.eclipse.meta/src/main/java/org/metaborg/spoofax/eclipse/meta/ant/EclipseAntLogger.java | package org.metaborg.spoofax.eclipse.meta.ant;
import java.io.PrintStream;
import org.apache.tools.ant.DefaultLogger;
import org.eclipse.ui.console.MessageConsole;
import org.metaborg.spoofax.eclipse.util.ConsoleUtils;
public class EclipseAntLogger extends DefaultLogger {
private final MessageConsole console;
... | package org.metaborg.spoofax.eclipse.meta.ant;
import java.io.PrintStream;
import org.apache.tools.ant.DefaultLogger;
import org.eclipse.ui.console.MessageConsole;
import org.metaborg.spoofax.eclipse.util.ConsoleUtils;
public class EclipseAntLogger extends DefaultLogger {
private final MessageConsole console;
... | Use existing console for Ant build log | Use existing console for Ant build log
| Java | apache-2.0 | metaborg/spoofax-eclipse |
670e53ae45a40984b50eb68515390aa9c1611f8e | k8s-api/src/main/java/io/enmasse/k8s/api/LogEventLogger.java | k8s-api/src/main/java/io/enmasse/k8s/api/LogEventLogger.java | /*
* Copyright 2018, EnMasse authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.enmasse.k8s.api;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LogEventLogger implements EventLogger {
private static final Logger log... | /*
* Copyright 2018, EnMasse authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.enmasse.k8s.api;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LogEventLogger implements EventLogger {
private static final Logger log... | Make log event format more readable | Make log event format more readable
| Java | apache-2.0 | jenmalloy/enmasse,EnMasseProject/enmasse,jenmalloy/enmasse,EnMasseProject/enmasse,EnMasseProject/enmasse,jenmalloy/enmasse,EnMasseProject/enmasse,jenmalloy/enmasse,EnMasseProject/enmasse,EnMasseProject/enmasse,jenmalloy/enmasse,jenmalloy/enmasse,EnMasseProject/enmasse,jenmalloy/enmasse |
3f1a6cbae56077352193b403b4300b59c0b4d2e7 | src/test/java/org/csveed/bean/BeanPropertyTest.java | src/test/java/org/csveed/bean/BeanPropertyTest.java | package org.csveed.bean;
import org.csveed.bean.conversion.Converter;
import org.csveed.test.converters.BeanSimpleConverter;
import org.csveed.test.model.BeanSimple;
import org.csveed.test.model.BeanVariousNotAnnotated;
import org.junit.Test;
import java.beans.IntrospectionException;
import java.beans.PropertyDescrip... | package org.csveed.bean;
import org.csveed.bean.conversion.Converter;
import org.csveed.test.converters.BeanSimpleConverter;
import org.csveed.test.model.BeanSimple;
import org.csveed.test.model.BeanVariousNotAnnotated;
import org.junit.Test;
import java.beans.IntrospectionException;
import java.beans.PropertyDescrip... | Remove unused import and add type converter. | Remove unused import and add type converter.
| Java | apache-2.0 | robert-bor/CSVeed,robert-bor/CSVeed,robert-bor/CSVeed |
0f6e02313918e8bef44e703a6ca98dadea26f56e | src/main/java/net/shadowfacts/foodies/block/FBlocks.java | src/main/java/net/shadowfacts/foodies/block/FBlocks.java | package net.shadowfacts.foodies.block;
/**
* Helper class for registering blocks.
* @author shadowfacts
*/
public class FBlocks {
}
| package net.shadowfacts.foodies.block;
/**
* Helper class for registering blocks.
* @author shadowfacts
*/
public class FBlocks {
public static void preInit() {
}
public static void load() {
}
public static void postInit() {
}
}
| Add helper methods for block helper class | Add helper methods for block helper class
| Java | lgpl-2.1 | shadowfacts/Foodies |
e2626fb8cdfcd84a2e726b8cd89d3cb3c907c1ce | src/org/robockets/stronghold/robot/intake/Direction.java | src/org/robockets/stronghold/robot/intake/Direction.java | package org.robockets.stronghold.robot.intake;
public enum Direction {
FORWARD,
BACKWARD,
STOP;
}
| package org.robockets.stronghold.robot.intake;
public enum Direction {
FORWARD,
BACKWARD,
LEFT,
RIGHT,
STOP;
}
| Add LEFT and RIGHT enums | Add LEFT and RIGHT enums
| Java | mit | Team4761/2016-Robot-Code |
260c45281a6d645e1f4401eef8cbe0d473cf7dfa | app/src/main/java/it/inaf/android/DateFormatter.java | app/src/main/java/it/inaf/android/DateFormatter.java | /* Copyright (c) 2014 Andrea Zoli. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
package it.inaf.android;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Locale;
public class DateFormatter {
pub... | /* Copyright (c) 2014 Andrea Zoli. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
package it.inaf.android;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Locale;
public class DateFormatter {
pub... | Use Locale.UK while parsing dates. | Use Locale.UK while parsing dates.
| Java | bsd-3-clause | mediainaf/AppINAFAndroid |
a18f4effd011e3e9a54d4357137a45977a418c6d | app/src/main/java/com/google/fhirengine/MainActivity.java | app/src/main/java/com/google/fhirengine/MainActivity.java | package com.google.fhirengine;
import android.app.Activity;
import android.os.Bundle;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
| package com.google.fhirengine;
import android.app.Activity;
import android.os.Bundle;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// Gets FHIR Engine using Dagg... | Add sample code to create FhirEngine in the reference app. | Add sample code to create FhirEngine in the reference app.
| Java | apache-2.0 | google/android-fhir,google/android-fhir |
dac99a5060d98a5b35103167563d99fc13cdf531 | asciidoctorj-core/src/main/java/org/asciidoctor/jruby/cli/SeverityConverter.java | asciidoctorj-core/src/main/java/org/asciidoctor/jruby/cli/SeverityConverter.java | package org.asciidoctor.jruby.cli;
import com.beust.jcommander.IStringConverter;
import org.asciidoctor.SafeMode;
import org.asciidoctor.log.Severity;
public class SeverityConverter implements IStringConverter<Severity> {
@Override
public Severity convert(String argument) { return Severity.valueOf(argument.t... | package org.asciidoctor.jruby.cli;
import com.beust.jcommander.converters.EnumConverter;
import org.asciidoctor.log.Severity;
public class SeverityConverter extends EnumConverter<Severity> {
public SeverityConverter() {
super("--failure-level", Severity.class);
}
@Override
public Severity co... | Improve error messages when parsing --failure-level parameter | Improve error messages when parsing --failure-level parameter
| Java | apache-2.0 | asciidoctor/asciidoctorj,abelsromero/asciidoctorj,abelsromero/asciidoctorj,asciidoctor/asciidoctorj,asciidoctor/asciidoctorj,abelsromero/asciidoctorj |
e6c78e4091cf65980110801e31140b26a37bb254 | android/app/src/main/java/com/utopia/pxview/MainActivity.java | android/app/src/main/java/com/utopia/pxview/MainActivity.java | package com.utopia.pxview;
import android.os.Bundle;
import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;
import com.facebook.react.ReactRootView;
import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
import org.devio.rn.splashscreen.SplashScreen;
public clas... | package com.utopia.pxview;
import android.os.Bundle;
import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;
import com.facebook.react.ReactRootView;
import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
import org.devio.rn.splashscreen.SplashScreen;
public clas... | Fix crash on killed app restore on android | Fix crash on killed app restore on android
| Java | mit | alphasp/pxview,alphasp/pxview,alphasp/pxview,alphasp/pxview |
86a58a3bcb0a56dcebde45674a3a59b71cea994a | src/gov/nih/nci/calab/ui/core/BaseForwardAction.java | src/gov/nih/nci/calab/ui/core/BaseForwardAction.java | /*
The caLAB Software License, Version 0.5
Copyright 2006 SAIC. This software was developed in conjunction with the National
Cancer Institute, and so to the extent government employees are co-authors, any
rights in such works shall be subject to Title 17 of the United States Code,
section 105.
*/
package gov... | /*
The caLAB Software License, Version 0.5
Copyright 2006 SAIC. This software was developed in conjunction with the National
Cancer Institute, and so to the extent government employees are co-authors, any
rights in such works shall be subject to Title 17 of the United States Code,
section 105.
*/
package gov... | Set loginRequired to false. For users without login, this is required for "back" link on some pages to function. | Set loginRequired to false. For users without login, this is required for "back" link on some pages to function.
SVN-Revision: 3990
| Java | bsd-3-clause | NCIP/cananolab,NCIP/cananolab,NCIP/cananolab |
3f2fa6bbc37f244ba04123cf3ea6d957cb800b82 | trunk/MutabilityDetector/trunk/MutabilityDetector/src/main/java/org/mutabilitydetector/checkers/FinalClassChecker.java | trunk/MutabilityDetector/trunk/MutabilityDetector/src/main/java/org/mutabilitydetector/checkers/FinalClassChecker.java | /*
* Mutability Detector
*
* Copyright 2009 Graham Allan
*
* 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... | /*
* Mutability Detector
*
* Copyright 2009 Graham Allan
*
* 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... | Use more readable version for checking the final modifier is present. | Use more readable version for checking the final modifier is present.
git-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@374 c7a0535c-eda6-11de-83d8-6d5adf01d787
| Java | apache-2.0 | MutabilityDetector/MutabilityDetector,MutabilityDetector/MutabilityDetector |
b2fd38b3748061001211addc38d062730e6bf1e4 | java/nanomsg/src/main/java/nanomsg/Message.java | java/nanomsg/src/main/java/nanomsg/Message.java | package nanomsg;
import com.google.common.base.Preconditions;
import com.sun.jna.Pointer;
import java.nio.ByteBuffer;
import static nanomsg.Error.check;
import static nanomsg.Nanomsg.NANOMSG;
public class Message implements AutoCloseable {
private Pointer message;
private final int size;
Message(Point... | package nanomsg;
import com.google.common.base.Preconditions;
import com.sun.jna.Pointer;
import java.nio.ByteBuffer;
import static nanomsg.Error.check;
import static nanomsg.Nanomsg.NANOMSG;
public class Message implements AutoCloseable {
private Pointer message;
private final int size;
Message(Point... | Fix nn_freemsg SIGSEGV on NULL | Fix nn_freemsg SIGSEGV on NULL
nn_freemsg does not accept NULL argument (unlike libc free) and triggers
SIGSEGV.
| Java | mit | clchiou/garage,clchiou/garage,clchiou/garage,clchiou/garage |
b096c2bf19203e69dfe9c7d54123a3bc8725679a | src/com/fsck/k9/helper/NotificationBuilder.java | src/com/fsck/k9/helper/NotificationBuilder.java | package com.fsck.k9.helper;
import android.app.Notification;
import android.content.Context;
import android.os.Build;
import android.support.v4.app.NotificationCompat;
/**
* Notification builder that will set {@link Notification#number} on pre-Honeycomb devices.
*
* @see <a href="http://code.google.com/p/android/i... | package com.fsck.k9.helper;
import android.app.Notification;
import android.content.Context;
import android.os.Build;
import android.support.v4.app.NotificationCompat;
/**
* Notification builder that will set {@link Notification#number} on pre-Honeycomb devices.
*
* @see <a href="http://code.google.com/p/android/i... | Fix unread count in notifications (again) | Fix unread count in notifications (again) | Java | apache-2.0 | sedrubal/k-9,k9mail/k-9,rollbrettler/k-9,rollbrettler/k-9,sonork/k-9,sanderbaas/k-9,sanderbaas/k-9,439teamwork/k-9,github201407/k-9,indus1/k-9,vasyl-khomko/k-9,icedman21/k-9,huhu/k-9,thuanpq/k-9,sonork/k-9,msdgwzhy6/k-9,moparisthebest/k-9,moparisthebest/k-9,GuillaumeSmaha/k-9,cliniome/pki,suzp1984/k-9,gilbertw1/k-9,coo... |
4312dbfd169ad50f60790e79f8cfe028200a6b7d | src/com/webkreator/canoe/demo/CanoeServlet.java | src/com/webkreator/canoe/demo/CanoeServlet.java | package com.webkreator.canoe.demo;
import javax.servlet.ServletException;
import com.webkreator.qlue.QlueApplication;
import com.webkreator.qlue.QlueServlet;
public class CanoeServlet extends QlueServlet {
private static final long serialVersionUID = 1L;
@Override
protected void createApplicationObj... | package com.webkreator.canoe.demo;
import javax.servlet.ServletException;
import com.webkreator.qlue.QlueApplication;
import com.webkreator.qlue.QlueServlet;
public class CanoeServlet extends QlueServlet {
private static final long serialVersionUID = 1L;
@Override
protected void createApplicationObj... | Fix broken Canoe servlet example. | Fix broken Canoe servlet example.
| Java | apache-2.0 | ivanr/qlue |
441e0f16f54b30619dced49487c95f197e06bf27 | subprojects/core/src/main/java/org/gradle/caching/local/DirectoryBuildCache.java | subprojects/core/src/main/java/org/gradle/caching/local/DirectoryBuildCache.java | /*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Change documentation for directory build cache default location | Change documentation for directory build cache default location
+review REVIEW-6480
| Java | apache-2.0 | lsmaira/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,gstevey/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,gstevey/gradle,gstevey/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,lsmaira/gradle,lsmaira/gradle,robin... |
04454d236b2de82ee8825625b9ec9ef2e91e9fc4 | src/test/java/fi/jgke/tagger/domain/SourceTest.java | src/test/java/fi/jgke/tagger/domain/SourceTest.java | /*
* 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.
*/
package fi.jgke.tagger.domain;
import java.util.UUID;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author jgke... | /*
* 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.
*/
package fi.jgke.tagger.domain;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import java.util.stream.Colle... | Add more tests for Source | Add more tests for Source
| Java | apache-2.0 | jgke/tagger,jgke/tagger |
9e695ef364494687269e156440186a454db66278 | src/main/java/org/commcare/modern/parse/ParseUtilsHelper.java | src/main/java/org/commcare/modern/parse/ParseUtilsHelper.java | package org.commcare.modern.parse;
import org.commcare.core.interfaces.UserSandbox;
import org.commcare.core.parse.ParseUtils;
import org.javarosa.xml.util.InvalidStructureException;
import org.javarosa.xml.util.UnfullfilledRequirementsException;
import org.xmlpull.v1.XmlPullParserException;
import java.io.ByteArrayI... | package org.commcare.modern.parse;
import org.commcare.core.interfaces.UserSandbox;
import org.commcare.core.parse.ParseUtils;
import org.javarosa.xml.util.InvalidStructureException;
import org.javarosa.xml.util.UnfullfilledRequirementsException;
import org.xmlpull.v1.XmlPullParserException;
import java.io.ByteArrayI... | Add method to accept stream | Add method to accept stream
| Java | apache-2.0 | dimagi/commcare,dimagi/commcare,dimagi/commcare-core,dimagi/commcare,dimagi/commcare-core,dimagi/commcare-core |
e5c1c9ebdf2c6e59042c7ca951fd94faa04ce058 | src/main/java/org/hiero/sketch/dataset/api/PartialResult.java | src/main/java/org/hiero/sketch/dataset/api/PartialResult.java | package org.hiero.sketch.dataset.api;
import java.io.Serializable;
/**
* A partial result always describes a DELTA between the previous partial result
* and the current one.
* @param <T> Type of data in partial result.
*/
public class PartialResult<T> implements Serializable {
/**
* How much more has be... | package org.hiero.sketch.dataset.api;
import java.io.Serializable;
/**
* A partial result always describes a DELTA between the previous partial result
* and the current one.
* @param <T> Type of data in partial result.
*/
public class PartialResult<T> implements Serializable {
/**
* How much more has be... | Fix NPE because deltaValue can be null | Fix NPE because deltaValue can be null
| Java | apache-2.0 | uwieder/hiero,mbudiu-vmw/hiero,uwieder/hiero,uwieder/hiero,mbudiu-vmw/hiero,lalithsuresh/hiero,mbudiu-vmw/hiero,uwieder/hiero,lalithsuresh/hiero,uwieder/hiero,mbudiu-vmw/hiero,lalithsuresh/hiero,mbudiu-vmw/hiero,lalithsuresh/hiero,lalithsuresh/hiero |
351cd3cea3f14a3831b4d426f67ebeb0307eaa16 | edocs-app/src/main/java/com/github/aureliano/edocs/app/gui/menu/file/FileMenu.java | edocs-app/src/main/java/com/github/aureliano/edocs/app/gui/menu/file/FileMenu.java | package com.github.aureliano.edocs.app.gui.menu.file;
import javax.swing.JMenu;
import javax.swing.JSeparator;
import com.github.aureliano.edocs.common.locale.EdocsLocale;
public class FileMenu extends JMenu {
private static final long serialVersionUID = -662548298147505185L;
private CloseTabMenuItem closeTabMen... | package com.github.aureliano.edocs.app.gui.menu.file;
import javax.swing.JMenu;
import javax.swing.JSeparator;
import com.github.aureliano.edocs.common.locale.EdocsLocale;
public class FileMenu extends JMenu {
private static final long serialVersionUID = -662548298147505185L;
private ConnectMenuItem connectMenuI... | Add connect menu item to file menu. | Add connect menu item to file menu.
| Java | mit | aureliano/e-docs |
89b0d12741d50b3f052c84ce0c5e13da3a6136bf | src/edu/afs/commands/DriveWithJoystickCommand.java | src/edu/afs/commands/DriveWithJoystickCommand.java | /*
* 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.
*/
package edu.afs.commands;
import edu.afs.subsystems.drivesubsystem.*;
/**
*
* @author User
*/
public class DriveWithJoystickCommand... | /*
* 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.
*/
package edu.afs.commands;
import edu.afs.subsystems.drivesubsystem.*;
import edu.afs.subsystems.autoranger.*;
import edu.afs.... | Add shot range indication while driving manually. | Add shot range indication while driving manually. | Java | bsd-3-clause | wando1/4373CommandBot |
1f1e3f227304bae09596fb511d6210438f394ca4 | src/org/traccar/api/ObjectMapperProvider.java | src/org/traccar/api/ObjectMapperProvider.java | /*
* Copyright 2015 Anton Tananaev (anton.tananaev@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 b... | /*
* Copyright 2015 Anton Tananaev (anton.tananaev@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 b... | Update JSON serialization date format | Update JSON serialization date format
| Java | apache-2.0 | jon-stumpf/traccar,jon-stumpf/traccar,tananaev/traccar,tsmgeek/traccar,tananaev/traccar,al3x1s/traccar,joseant/traccar-1,5of9/traccar,renaudallard/traccar,duke2906/traccar,tsmgeek/traccar,renaudallard/traccar,ninioe/traccar,ninioe/traccar,vipien/traccar,al3x1s/traccar,joseant/traccar-1,5of9/traccar,orcoliver/traccar,js... |
db5d81e4dfc4c105df2faa99c90494f01a066e60 | xchange-core/src/main/java/org/knowm/xchange/interceptor/InterceptorProvider.java | xchange-core/src/main/java/org/knowm/xchange/interceptor/InterceptorProvider.java | package org.knowm.xchange.interceptor;
import com.google.common.base.Suppliers;
import java.util.Collection;
import java.util.ServiceLoader;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
import si.mazi.rescu.Interceptor;
public class InterceptorProvider... | package org.knowm.xchange.interceptor;
import com.google.common.base.Suppliers;
import java.util.Collection;
import java.util.ServiceLoader;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
import si.mazi.rescu.Interceptor;
public class InterceptorProvider... | Add possibility to use custom Interceptors | Add possibility to use custom Interceptors
| Java | mit | timmolter/XChange,andre77/XChange,douggie/XChange,stachon/XChange |
cad01c9656ce4c02eccde90642de397ead81ce57 | Komunikator/app/src/main/java/pl/komunikator/komunikator/SearchedUsersAdapter.java | Komunikator/app/src/main/java/pl/komunikator/komunikator/SearchedUsersAdapter.java | package pl.komunikator.komunikator;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.List;
import pl.komunikator.komunikator.entity.User;
/**
* Created by adrian on 19.04.2017.
... | package pl.komunikator.komunikator;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.List;
import pl.komunikator.komunikator.entity.User;
/**
... | Implement the rest of the methods | Implement the rest of the methods
| Java | mit | teneusz/aplikacja_mobilna_komunikator |
43eabe65372359aaf8fe6daa9bc4c286cf18d228 | src/test/java/rxbroadcast/VectorTimestampTest.java | src/test/java/rxbroadcast/VectorTimestampTest.java | package rxbroadcast;
import nl.jqno.equalsverifier.EqualsVerifier;
import org.hamcrest.CoreMatchers;
import org.junit.Assert;
import org.junit.Test;
@SuppressWarnings({"checkstyle:MagicNumber"})
public final class VectorTimestampTest {
@Test
public final void equalsContract() {
EqualsVerifier.forClass... | package rxbroadcast;
import nl.jqno.equalsverifier.EqualsVerifier;
import org.hamcrest.CoreMatchers;
import org.junit.Assert;
import org.junit.Test;
@SuppressWarnings({"checkstyle:MagicNumber"})
public final class VectorTimestampTest {
@Test
public final void equalsContract() {
EqualsVerifier.forClass... | Use CoreMatchers.anything where it makes sense | Use CoreMatchers.anything where it makes sense
| Java | isc | RxBroadcast/RxBroadcast,RxBroadcast/RxBroadcast,RxBroadcast/RxBroadcast,whymarrh/RxBroadcast,whymarrh/RxBroadcast,RxBroadcast/RxBroadcast |
85897928254c81bebfca32c5cdc659c72a1c5cc0 | Scanner/src/main/java/rabbit/ApplicationStatusChecker.java | Scanner/src/main/java/rabbit/ApplicationStatusChecker.java | package rabbit;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;
public class ApplicationStatusChecker {
public HttpStatus checkStatus(String url) {
RestTemplate restTemplate = new RestTemplate();
Respo... | package rabbit;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;
public class ApplicationStatusChecker {
public String checkStatus(String url) {
RestTemplate restTemplate = new RestTemplate();
ResponseE... | Return status code and body for HTTP request. | Return status code and body for HTTP request.
| Java | apache-2.0 | IrimieBogdan/DistributedMonitoring,IrimieBogdan/DistributedMonitoring,IrimieBogdan/DistributedMonitoring |
c263e8ce383ce04cab3dcaa70af1cca867787b13 | tests/src/cgeo/geocaching/sensors/SensorsTest.java | tests/src/cgeo/geocaching/sensors/SensorsTest.java | package cgeo.geocaching.sensors;
import static org.assertj.core.api.Assertions.assertThat;
import cgeo.geocaching.MainActivity;
import cgeo.geocaching.utils.AngleUtils;
import android.test.ActivityInstrumentationTestCase2;
public class SensorsTest extends ActivityInstrumentationTestCase2<MainActivity> {
public... | package cgeo.geocaching.sensors;
import static org.assertj.core.api.Assertions.assertThat;
import cgeo.geocaching.MainActivity;
import cgeo.geocaching.utils.AngleUtils;
import rx.Observable;
import android.test.ActivityInstrumentationTestCase2;
import java.util.concurrent.TimeUnit;
public class SensorsTest extend... | Check that a position and an orientation are always immediately available | Check that a position and an orientation are always immediately available
| Java | apache-2.0 | matej116/cgeo,marco-dev/c-geo-opensource,schwabe/cgeo,cgeo/cgeo,Bananeweizen/cgeo,brok85/cgeo,yummy222/cgeo,xiaoyanit/cgeo,Huertix/cgeo,pstorch/cgeo,lewurm/cgeo,tobiasge/cgeo,SammysHP/cgeo,ThibaultR/cgeo,kumy/cgeo,yummy222/cgeo,lewurm/cgeo,schwabe/cgeo,schwabe/cgeo,marco-dev/c-geo-opensource,S-Bartfast/cgeo,rsudev/c-ge... |
bbd6ef3fad6f63314808d9797a6a043a914341d0 | SingularityBase/src/main/java/com/hubspot/singularity/SingularityUserSettings.java | SingularityBase/src/main/java/com/hubspot/singularity/SingularityUserSettings.java | package com.hubspot.singularity;
import java.util.Objects;
import java.util.Set;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class SingularityUserSettings {
private final Set<String> starredRequestIds;
@JsonCreator
public SingularityUserSet... | package com.hubspot.singularity;
import java.util.Collections;
import java.util.Set;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Objects;
public class SingularityUserSettings {
private final String userId;
private final ... | Add add/delete starred requests methods to UserSettings, add userId, fix deps | Add add/delete starred requests methods to UserSettings, add userId, fix deps
| Java | apache-2.0 | hs-jenkins-bot/Singularity,andrhamm/Singularity,hs-jenkins-bot/Singularity,hs-jenkins-bot/Singularity,HubSpot/Singularity,andrhamm/Singularity,andrhamm/Singularity,HubSpot/Singularity,hs-jenkins-bot/Singularity,andrhamm/Singularity,andrhamm/Singularity,hs-jenkins-bot/Singularity,HubSpot/Singularity,HubSpot/Singularity,... |
199529e5ccb9cc002a30a376290a4d9281cea514 | src/com/advancedpwr/record/methods/StringBuilder.java | src/com/advancedpwr/record/methods/StringBuilder.java | /*
* Copyright 2011 Matthew Avery, mavery@advancedpwr.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 2011 Matthew Avery, mavery@advancedpwr.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... | Support double quotes in strings. | Support double quotes in strings.
| Java | apache-2.0 | hani/jtor,hani/jtor,hani/jtor |
4f6976449ce55089a823edf14365587da25c6a68 | src/main/java/com/maddenabbott/jenny/Application.java | src/main/java/com/maddenabbott/jenny/Application.java | package com.maddenabbott.jenny;
/**
* The main entry point for Jenny.
*/
public class Application {
private static final String defaultCommand = "help";
public static void main(String[] args) {
String commandName = getCommandName(args, defaultCommand);
}
private static String getCommandName(final Strin... | package com.maddenabbott.jenny;
import java.util.Arrays;
/**
* The main entry point for Jenny.
*/
public class Application {
private static final String defaultCommand = "help";
public static void main(String[] args) {
String commandName = getCommandName(args, defaultCommand);
String[] parameters = get... | Add method to extract parameters from command line args. | Add method to extract parameters from command line args.
| Java | mit | jenny-the-generator/jenny,jenny-the-generator/jenny |
4fbb62b18ff464c124c988eadb8e9f351c0c7d6e | src/main/java/failchat/core/MessageObjectCleaner.java | src/main/java/failchat/core/MessageObjectCleaner.java | package failchat.core;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class MessageObjectCleaner implements MessageHandler {
public static final Pattern pattern = Pattern.compile("\\{!\\d{1,3}\\}");
private static volatile MessageObjectCleaner instance... | package failchat.core;
import java.util.logging.Logger;
/**
* Заменяет символы { и } на html entity
* */
public class MessageObjectCleaner implements MessageHandler {
private static volatile MessageObjectCleaner instance;
private static final Logger logger = Logger.getLogger(MessageObjectCleaner.class.getNam... | Replace characters { and } for html entities | Replace characters { and } for html entities
| Java | mit | sph-u/failchat,sph-u/failchat,sph-u/failchat |
e00674088899a3be6ce0785875e2cf56c9b66139 | modello-core/src/main/java/org/codehaus/modello/metadata/AbstractMetaDataPlugin.java | modello-core/src/main/java/org/codehaus/modello/metadata/AbstractMetaDataPlugin.java | package org.codehaus.modello.metadata;
/*
* LICENSE
*/
import org.codehaus.modello.AbstractLogEnabled;
import org.codehaus.modello.Model;
import org.codehaus.modello.ModelClass;
import org.codehaus.modello.ModelField;
import org.codehaus.modello.ModelloException;
import java.util.Map;
/**
* @author <a href="mail... | package org.codehaus.modello.metadata;
/*
* LICENSE
*/
import org.codehaus.modello.AbstractLogEnabled;
import org.codehaus.modello.Model;
import org.codehaus.modello.ModelClass;
import org.codehaus.modello.ModelField;
import org.codehaus.modello.ModelloException;
import java.util.Map;
/**
* @author <a href="mail... | Remove methods implementation that must be do in subclasses. | Remove methods implementation that must be do in subclasses.
| Java | mit | codehaus-plexus/modello |
9774c9c2a61fa96e4d293906fe7573f4900abaf8 | src/main/java/de/retest/recheck/persistence/ClassAndMethodBasedNamingStrategy.java | src/main/java/de/retest/recheck/persistence/ClassAndMethodBasedNamingStrategy.java | package de.retest.recheck.persistence;
import de.retest.recheck.TestCaseFinder;
/**
* The default implementation that derives test suite and test case name from the test class and test method, working
* for both JUnit and TestNG.
*/
public class ClassAndMethodBasedNamingStrategy implements NamingStrategy {
@Over... | package de.retest.recheck.persistence;
import de.retest.recheck.TestCaseFinder;
/**
* The default implementation that derives test suite and test case name from the test class and test method, working
* for both JUnit and TestNG.
*/
public class ClassAndMethodBasedNamingStrategy implements NamingStrategy {
@Over... | Update exception msg and add suiteName hint | Update exception msg and add suiteName hint
| Java | agpl-3.0 | retest/recheck,retest/recheck |
06aa4e70b9e7a53a441ac527fb83e899c47871c8 | src/main/java/link/infra/simpleprocessors/ModItems.java | src/main/java/link/infra/simpleprocessors/ModItems.java | package link.infra.simpleprocessors;
import link.infra.simpleprocessors.items.DuctTape;
import link.infra.simpleprocessors.items.SolderingIron;
import link.infra.simpleprocessors.items.processor.Processor;
import link.infra.simpleprocessors.util.SPItem;
import net.minecraft.creativetab.CreativeTabs;
import net.minecra... | package link.infra.simpleprocessors;
import link.infra.simpleprocessors.items.DuctTape;
import link.infra.simpleprocessors.items.SolderingIron;
import link.infra.simpleprocessors.items.processor.Processor;
import link.infra.simpleprocessors.util.SPItem;
import net.minecraft.creativetab.CreativeTabs;
import net.minecra... | Change to meta 1 (iron) for creative tab icon | Change to meta 1 (iron) for creative tab icon | Java | mit | comp500/SimpleProcessors |
82652f6aa3f55f67d3948e4d5cc48d1e657f32a9 | dlux-web/src/main/java/org/opendaylight/dlux/web/Activator.java | dlux-web/src/main/java/org/opendaylight/dlux/web/Activator.java | package org.opendaylight.dlux.web;
import org.osgi.util.tracker.ServiceTracker;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
import org.osgi.framework.BundleActivator;
import org.osgi.service.http.HttpService;
public class Activator implements BundleActivator {
private Servic... | /**
* Copyright (c) 2014, 2015 Inocybe Technologies, and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
pac... | Add missing license header in dlux-web | Add missing license header in dlux-web
Change-Id: I50ee01654cb01028b6541d9f80203ca1f803820a
Signed-off-by: Thanh Ha <09ea4d3a79c8bee41a16519f6a431f6bc0fd8d6f@linuxfoundation.org>
| Java | epl-1.0 | stshtina/ODL,opendaylight/dlux,opendaylight/dlux,pinaxia/dlux,pinaxia/dlux,inocybe/odl-dlux,inocybe/odl-dlux,opendaylight/dlux,stshtina/ODL,stshtina/ODL,pinaxia/dlux,inocybe/odl-dlux |
e59f2f8811ac940658af9ed92f9d973eb607eee3 | java/java-tests/testData/codeInsight/generateConstructor/afterFinalFieldPreselection.java | java/java-tests/testData/codeInsight/generateConstructor/afterFinalFieldPreselection.java | class Test {
private int a;
private final int b;
private int c;
private final int d;
public Test(int a, int b, int c, int d) {
this.a = a;
this.b = b;
this.c = c;
this.d = d;
}
} | class Test {
private int a;
private final int b;
private int c;
private final int d;
public Test(int b, int d) {
this.b = b;
this.d = d;
}
} | Revert "IDEA-228014 updated test data: all non implicitly written fields are preselected" | Revert "IDEA-228014 updated test data: all non implicitly written fields are preselected"
This reverts commit 4fae1e04
GitOrigin-RevId: 602735cfed173e4071b12065cceb49453845eba2 | Java | apache-2.0 | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... |
ea6732b8b282efbbec5863bfcf3414b82030c46e | test/com/karateca/ddescriber/model/TestFindResultTest.java | test/com/karateca/ddescriber/model/TestFindResultTest.java | package com.karateca.ddescriber.model;
import com.intellij.find.FindResult;
import com.karateca.ddescriber.BaseTestCase;
import junit.framework.Assert;
import java.util.List;
/**
* @author Andres Dominguez.
*/
public class TestFindResultTest extends BaseTestCase {
private TestFindResult testFindResult;
@Ove... | package com.karateca.ddescriber.model;
import com.intellij.find.FindResult;
import com.karateca.ddescriber.BaseTestCase;
import junit.framework.Assert;
import java.util.List;
/**
* @author Andres Dominguez.
*/
public class TestFindResultTest extends BaseTestCase {
private TestFindResult testFindResult;
@Ove... | Add scenarios for jasmine 1, 2 | Add scenarios for jasmine 1, 2
| Java | mit | andresdominguez/ddescriber,andresdominguez/ddescriber |
95365b5e25619a5a30fe48e31ffbc62a1d77b33f | src/com/twitter/intellij/pants/service/project/wizard/FastpassProjectImportProvider.java | src/com/twitter/intellij/pants/service/project/wizard/FastpassProjectImportProvider.java | // Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
// Licensed under the Apache License, Version 2.0 (see LICENSE).
package com.twitter.intellij.pants.service.project.wizard;
import com.intellij.ide.util.PropertiesComponent;
import icons.PantsIcons;
import org.jetbrains.annotations.Nls;
import org.je... | // Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
// Licensed under the Apache License, Version 2.0 (see LICENSE).
package com.twitter.intellij.pants.service.project.wizard;
import com.intellij.ide.util.PropertiesComponent;
import icons.PantsIcons;
import org.jetbrains.annotations.Nls;
import org.je... | Set Fastpass Import provider ID to 'Fastpass' | Set Fastpass Import provider ID to 'Fastpass'
| Java | apache-2.0 | pantsbuild/intellij-pants-plugin,pantsbuild/intellij-pants-plugin,pantsbuild/intellij-pants-plugin,pantsbuild/intellij-pants-plugin,pantsbuild/intellij-pants-plugin |
67a055801dbf26bfd2bdd6764877f8fb7e35e5f4 | HtmlFlow/src/main/java/htmlflow/ModelBinder.java | HtmlFlow/src/main/java/htmlflow/ModelBinder.java | package htmlflow;
import java.io.PrintStream;
public interface ModelBinder<T>{
void bind(PrintStream out, T model);
}
| package htmlflow;
import java.io.PrintStream;
@FunctionalInterface
public interface ModelBinder<T>{
void bind(PrintStream out, T model);
}
| Declare ModelBiinder as FunctionalInterface Java 8 style programming | Declare ModelBiinder as FunctionalInterface Java 8 style programming
| Java | mit | fmcarvalho/HtmlFlow,fmcarvalho/HtmlFlow |
864631113fa8421f6c1042cee105923edc59257b | lib/com/vaadin/polymer/elemental/NodeList.java | lib/com/vaadin/polymer/elemental/NodeList.java | package com.vaadin.polymer.elemental;
import com.google.gwt.core.client.js.JsProperty;
import com.google.gwt.core.client.js.JsType;
@JsType
public interface NodeList<T> {
@JsProperty
int getLength();
T item(int index);
}
| package com.vaadin.polymer.elemental;
import com.google.gwt.core.client.js.JsProperty;
import com.google.gwt.core.client.js.JsType;
@JsType
public interface NodeList {
@JsProperty
int getLength();
<T extends Node> T item(int index);
}
| Move generic from class to method | Move generic from class to method
| Java | apache-2.0 | vaadin/gwt-api-generator,florian-f/gwt-api-generator,manolo/gwt-api-generator,manolo/gwt-api-generator,vaadin/gwt-api-generator,florian-f/gwt-api-generator |
98fb383fab222e8c7f13b79537bd902f5acb8145 | src/java/test/org/jaxen/javabean/DocumentNavigatorTest.java | src/java/test/org/jaxen/javabean/DocumentNavigatorTest.java | package org.jaxen.javabean;
import junit.framework.TestCase;
public class DocumentNavigatorTest
extends TestCase
{
public void testNothing()
throws Exception
{
JavaBeanXPath xpath = new JavaBeanXPath( "brother[position()<4]/name" );
Person bob = new Person( "bob", 30 );
... | package org.jaxen.javabean;
import junit.framework.TestCase;
import org.jaxen.saxpath.helpers.XPathReaderFactory;
public class DocumentNavigatorTest
extends TestCase
{
protected void setUp() throws Exception
{
System.setProperty( XPathReaderFactory.DRIVER_PROPERTY,
"" ... | Set property in case it has been set wrong previously | Set property in case it has been set wrong previously
| Java | bsd-3-clause | jenkinsci/jaxen |
8de768623b7223a1b3234a1bfc829c9979ea9a26 | src/main/java/com/johnstarich/moviematcher/RootServlet.java | src/main/java/com/johnstarich/moviematcher/RootServlet.java | package com.johnstarich.moviematcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* Handles all requests sent to the root ("/") of this server.
* Created by ... | package com.johnstarich.moviematcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* Handles all requests sent to the root ("/") of this server.
* Created by ... | Refactor response page to say project title. | Refactor response page to say project title.
| Java | apache-2.0 | JohnStarich/ee461l,JohnStarich/ee461l,JohnStarich/ee461l |
3535e86b954b47d419b65f272531cba1e11773fe | src/main/java/seedu/address/logic/commands/ListCommand.java | src/main/java/seedu/address/logic/commands/ListCommand.java | package seedu.address.logic.commands;
/**
* Lists all persons in the address book to the user.
*/
public class ListCommand extends Command {
public static final String COMMAND_WORD = "list";
public static final String MESSAGE_SUCCESS = "Listed all persons";
@Override
public CommandResult execute... | package seedu.address.logic.commands;
//@@author A0164466X
/**
* Lists all tasks in the task manager to the user.
*/
public class ListCommand extends Command {
public static final String COMMAND_WORD = "list";
public static final String MESSAGE_SUCCESS = "Listed all tasks";
@Override
public Comm... | Correct List command to display "tasks" instead of "persons" | Correct List command to display "tasks" instead of "persons"
| Java | mit | CS2103JAN2017-F11-B3/main,CS2103JAN2017-F11-B3/main |
2493323e422d4efdc7ea3a1ce35b0249beea44b4 | src/test/java/com/stripe/functional/ApplicationFeeTest.java | src/test/java/com/stripe/functional/ApplicationFeeTest.java | package com.stripe.functional;
import com.stripe.BaseStripeFunctionalTest;
import com.stripe.exception.StripeException;
import com.stripe.model.ApplicationFee;
import org.junit.Test;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static org.junit.Assert.assertEquals;
public class Appl... | package com.stripe.functional;
import com.stripe.BaseStripeFunctionalTest;
import com.stripe.exception.StripeException;
import com.stripe.model.ApplicationFee;
import com.stripe.model.ApplicationFeeCollection;
import org.junit.Test;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static... | Fix a failing test case in stripe-java's build | Fix a failing test case in stripe-java's build
This test case seems to have been trying to fetch zero items of a
collection and then comparing against the returned `data`'s count.
Unfortunately for our build's reliability, for one the parameter is
actually called `limit`, and two it only supports numbers of one or
mor... | Java | mit | stripe/stripe-java |
b71e53c39ffe20d806d585b70331ba99139f811d | src/test/java/pro/cucumber/RevisionProviderContract.java | src/test/java/pro/cucumber/RevisionProviderContract.java | package pro.cucumber;
import org.junit.Before;
import org.junit.Test;
import pro.cucumber.gitcli.GitCliRevisionProvider;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.regex.Pattern;
import static org.junit.Assert.assertTrue;
public abstract class RevisionProvide... | package pro.cucumber;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.asser... | Check the test repo is created correctly | Check the test repo is created correctly
| Java | mit | cucumber-ltd/cucumber-pro-plugin-jvm,cucumber-ltd/cucumber-pro-plugin-jvm |
1ab2e15722572007f5a86865456a99f619679d67 | src/main/java/mklib/hosseini/com/vinci/Main/Vinci.java | src/main/java/mklib/hosseini/com/vinci/Main/Vinci.java | package mklib.hosseini.com.vinci.Main;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import java.io.ByteArrayInputStream;
public class Vinci {
private static Conte... | package mklib.hosseini.com.vinci.Main;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import java.io.ByteArrayInputStream;
import java.util.Arrays;
import java.util.concu... | Add concurrent library to it . | Add concurrent library to it .
| Java | apache-2.0 | abbashosseini/Vinci |
641f2ef7469941731330244bd502474a97200c0d | bitcoin-rpc/src/main/java/com/msgilligan/bitcoin/BTC.java | bitcoin-rpc/src/main/java/com/msgilligan/bitcoin/BTC.java | package com.msgilligan.bitcoin;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.MathContext;
/**
* Utility class for converting from satoshis (BigInteger) to bitcoins (BigDecimal) and vice-versa
*/
public class BTC {
public static final long satoshisPerBitcoin = 100000000;
public... | package com.msgilligan.bitcoin;
import org.bitcoinj.core.Coin;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.MathContext;
/**
* Utility class for converting from satoshis (BigInteger) to bitcoins (BigDecimal) and vice-versa
*/
public class BTC {
public static final long satoshisPe... | Add conversions between BigDecimal & bitcoinj Coin | Add conversions between BigDecimal & bitcoinj Coin | Java | apache-2.0 | OmniLayer/OmniJ,OmniLayer/OmniJ,OmniLayer/OmniJ |
4fc48407740cc68154996105c015b257300e5067 | viewcelladapter/src/main/java/ca/antonious/viewcelladapter/sections/CompositeSection.java | viewcelladapter/src/main/java/ca/antonious/viewcelladapter/sections/CompositeSection.java | package ca.antonious.viewcelladapter.sections;
import java.util.ArrayList;
import java.util.List;
import ca.antonious.viewcelladapter.viewcells.AbstractViewCell;
import ca.antonious.viewcelladapter.utils.ViewCellUtils;
/**
* Created by George on 2016-12-17.
*/
public class CompositeSection extends AbstractSection... | package ca.antonious.viewcelladapter.sections;
import java.util.ArrayList;
import java.util.List;
import ca.antonious.viewcelladapter.internal.SectionObserver;
import ca.antonious.viewcelladapter.viewcells.AbstractViewCell;
import ca.antonious.viewcelladapter.utils.ViewCellUtils;
/**
* Created by George on 2016-12-... | Update composite section to handle notifications | Update composite section to handle notifications
| Java | mit | gantonious/ViewCellAdapter,gantonious/ViewCellAdapter |
7230ba197216200e41b76f4611791b90165ff64e | app/src/main/java/org/androplus/wedymod/SettingActivity.java | app/src/main/java/org/androplus/wedymod/SettingActivity.java | package org.androplus.wedymod;
import android.os.Build;
import android.os.Bundle;
import android.preference.CheckBoxPreference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceFragment;
import android.preference.PreferenceScreen;
public class SettingActivity extends PreferenceActivit... | package org.androplus.wedymod;
import android.os.Build;
import android.os.Bundle;
import android.preference.CheckBoxPreference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceFragment;
import android.preference.PreferenceScreen;
public class SettingActivity extends PreferenceActivit... | Fix permission of pref file | Fix permission of pref file
| Java | bsd-3-clause | AndroPlus-org/AndroPlusMod |
52d1cbab7903ff3dda0dbdb8eb7e21f6ed6f0413 | app/src/main/java/com/sample/database/room/UserDBHelper.java | app/src/main/java/com/sample/database/room/UserDBHelper.java | package com.sample.database.room;
import android.arch.persistence.room.Room;
import android.content.Context;
import java.util.List;
/**
* Created by anandgaurav on 12/02/18.
*/
public class UserDBHelper {
private final AppDatabase appDatabase;
private final AppDatabase inMemoryAppDatabase;
public Us... | package com.sample.database.room;
import android.arch.persistence.room.Room;
import android.content.Context;
import java.util.List;
/**
* Created by anandgaurav on 12/02/18.
*/
public class UserDBHelper {
private final AppDatabase appDatabase;
private final AppDatabase inMemoryAppDatabase;
public Us... | Add example for inMemory room database | Add example for inMemory room database
| Java | apache-2.0 | amitshekhariitbhu/Android-Debug-Database,amitshekhariitbhu/Android-Debug-Database,amitshekhariitbhu/Android-Debug-Database |
f66e8a3c1b2c33bc526dc716fd73654297a91e7c | main/java/com/slugterra/render/SlugRenderFactory.java | main/java/com/slugterra/render/SlugRenderFactory.java | package com.slugterra.render;
import com.slugterra.entity.EntitySlug;
import com.slugterra.render.protoform.RenderSlug;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraftforge.fml.client.regis... | package com.slugterra.render;
import com.slugterra.entity.EntitySlug;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraftforge.fml.client.registry.IRenderFactory;
public class SlugRenderFactor... | Fix import in render factory | Fix import in render factory
| Java | mit | mpbagot/Slugterra-Mod |
3c40c35016000b4c2caafcf21562f408351964b4 | OrcJava/src/orc/trace/values/ConstantValue.java | OrcJava/src/orc/trace/values/ConstantValue.java | package orc.trace.values;
import java.io.IOException;
import java.io.Serializable;
import java.io.Writer;
import xtc.util.Utilities;
/**
* Constant (not just immutable, but atomic) value,
* such as a String, Number, Boolean, or Character.
* @author quark
*/
public class ConstantValue extends AbstractValue {
pub... | package orc.trace.values;
import java.io.IOException;
import java.io.Serializable;
import java.io.Writer;
import xtc.util.Utilities;
/**
* Constant (not just immutable, but atomic) value,
* such as a String, Number, Boolean, Character, or null.
* @author quark
*/
public class ConstantValue extends AbstractValue ... | Fix bug with displaying/comparing null values in traces. | Fix bug with displaying/comparing null values in traces.
| Java | bsd-3-clause | orc-lang/orc,orc-lang/orc,orc-lang/orc,orc-lang/orc,orc-lang/orc |
a827d8f439b63d9278cf254b23bee6c578457940 | src/libbluray/bdj/java/javax/tv/graphics/TVContainer.java | src/libbluray/bdj/java/javax/tv/graphics/TVContainer.java | /*
* This file is part of libbluray
* Copyright (C) 2010 William Hahne
*
* This library 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 the License, or (at your option) a... | /*
* This file is part of libbluray
* Copyright (C) 2010 William Hahne
*
* This library 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 the License, or (at your option) a... | Fix possible null pointer dereference | Fix possible null pointer dereference
Also log error if context does not match
| Java | lgpl-2.1 | ace20022/libbluray,tourettes/libbluray,Azzuro/libbluray,Azzuro/libbluray,tourettes/libbluray,ace20022/libbluray,mwgoldsmith/bluray,vlc-mirror/libbluray,vlc-mirror/libbluray,Azzuro/libbluray,ace20022/libbluray,vlc-mirror/libbluray,tourettes/libbluray,ShiftMediaProject/libbluray,ace20022/libbluray,Azzuro/libbluray,touret... |
5e4fd04c3baddc8b19ac3f0d6794f8ed14b47b03 | src/test/java/com/allegient/candidate/stockquote/RunAllTests.java | src/test/java/com/allegient/candidate/stockquote/RunAllTests.java | /**
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | /**
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | Add all tests to the suite | Add all tests to the suite | Java | apache-2.0 | allegient-labs/candidate-test-service |
c289392c1e4eae61f6319ac49e244dce4232f71d | src/test.base/test/java/test/base/SwallowSystemTests.java | src/test.base/test/java/test/base/SwallowSystemTests.java | /*
* Bach - Java Shell Builder
* Copyright (C) 2019 Christian Stein
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | /*
* Bach - Java Shell Builder
* Copyright (C) 2019 Christian Stein
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | Add test variant without parameters | Add test variant without parameters
| Java | mit | sormuras/bach,sormuras/bach |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.