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 |
|---|---|---|---|---|---|---|---|---|---|
f5d430ab81050dfc41221ac95ee231657cf6dcad | src/com/nigorojr/typebest/Word.java | src/com/nigorojr/typebest/Word.java | package com.nigorojr.typebest;
import java.util.ArrayList;
import javax.swing.JPanel;
public class Word extends JPanel {
private ArrayList<Letter> letters = new ArrayList<Letter>();
private String rawWord;
/**
* Accepts a String which is what will be shown in this JPanel.
* The constructor wil... | package com.nigorojr.typebest;
import java.util.ArrayList;
import javax.swing.JPanel;
public class Word extends JPanel {
private ArrayList<Letter> letters = new ArrayList<Letter>();
private String rawWord;
private int letterCount;
/**
* Accepts a String which is what will be shown in this JPane... | Implement method that checks whether the given character is correct | Implement method that checks whether the given character is correct
| Java | mit | NigoroJr/typebest |
47093086d7857e2a35125a714799d6ef039f161c | sandbox/src/main/java/ru/sfwt/mt/sandbox/MyFirstProgram.java | sandbox/src/main/java/ru/sfwt/mt/sandbox/MyFirstProgram.java | package ru.sfwt.mt.sandbox;
public class MyFirstProgram {
public static void main(String[] args) {
System.out.println("Hell, world!");
}
} | package ru.sfwt.mt.sandbox;
public class MyFirstProgram {
public static void main(String[] args) {
hello("word");
hello("user");
hello("Marina");
double len = 5;
System.out.println("S квадрата со стороной " + len + " = " + area(len));
double a = 5;
double b = 6;
System.out.println(... | Add functions for the area of a square and a rectangle | Add functions for the area of a square and a rectangle
| Java | apache-2.0 | MarinaTereshkova/java_for_testers,MarinaTereshkova/java_for_testers |
7c8bdd07b0970ec8b2c761e36f8d5d57d7403897 | app/models/Powerup.java | app/models/Powerup.java | package models;
import play.data.validation.Constraints;
import play.db.ebean.Model;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import java.util.ArrayList;
import java.util.List;
@Entity
public class Powerup extends Model {
... | package models;
import play.data.validation.Constraints;
import play.db.ebean.Model;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Entity
public class Powerup extends Model {
public static Model.Finder<Long, models.Powerup> find = new Model.Finder<>(Long.class, models.Powerup.cl... | Add field to indicate whether or not the powerup should be listed in menu. | Add field to indicate whether or not the powerup should be listed in menu.
| Java | mit | Utviklingsutvalget/ACTion,Utviklingsutvalget/ACTion,Utviklingsutvalget/ACTion |
9236b68f85372773a53cef42d983d62de5d19b0a | src/main/java/com/forgeessentials/afterlife/InventoryGrave.java | src/main/java/com/forgeessentials/afterlife/InventoryGrave.java | package com.forgeessentials.afterlife;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.inventory.InventoryBasic;
import net.minecraft.item.ItemStack;
public class InventoryGrave extends InventoryBasic {
private Grave grave;
public InventoryGrave(Grave grave)
{
super(grave... | package com.forgeessentials.afterlife;
import com.forgeessentials.util.UserIdent;
import net.minecraft.inventory.InventoryBasic;
import net.minecraft.item.ItemStack;
import java.util.ArrayList;
import java.util.List;
public class InventoryGrave extends InventoryBasic {
private Grave grave;
public InventoryG... | Fix showing UUIDs instead of player names in the grave inventory | Fix showing UUIDs instead of player names in the grave inventory
| Java | epl-1.0 | ForgeEssentials/ForgeEssentialsMain,aschmois/ForgeEssentialsMain,CityOfLearning/ForgeEssentials,liachmodded/ForgeEssentials,planetguy32/ForgeEssentials,Techjar/ForgeEssentials |
80a382bbff03aaf0005bfa2301336c923b7f2692 | src/main/java/nl/vpro/poel/controller/PoelControllerAdvice.java | src/main/java/nl/vpro/poel/controller/PoelControllerAdvice.java | package nl.vpro.poel.controller;
import nl.vpro.poel.UserUtil;
import nl.vpro.poel.domain.CurrentUser;
import nl.vpro.poel.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.Con... | package nl.vpro.poel.controller;
import nl.vpro.poel.UserUtil;
import nl.vpro.poel.domain.CurrentUser;
import nl.vpro.poel.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.WebDataBinder;... | Allow posting collections with more than 256 items, Luke! | Allow posting collections with more than 256 items, Luke!
| Java | apache-2.0 | vpro/poel,vpro/poel,vpro/poel,vpro/poel |
b809ab1ed1835bf2747c92307ff4c770c19af8a8 | src/main/java/com/github/ferstl/depgraph/Edge.java | src/main/java/com/github/ferstl/depgraph/Edge.java | package com.github.ferstl.depgraph;
import java.util.Objects;
import org.apache.maven.shared.dependency.graph.DependencyNode;
class Edge {
final DependencyNode from;
final DependencyNode to;
public Edge(DependencyNode from, DependencyNode to) {
this.from = from;
this.to = to;
}
@Override
public... | package com.github.ferstl.depgraph;
import java.util.Objects;
import org.apache.maven.shared.dependency.graph.DependencyNode;
class Edge {
final DependencyNode from;
final DependencyNode to;
public Edge(DependencyNode from, DependencyNode to) {
this.from = from;
this.to = to;
}
@Override
public... | Rewrite toString() to avoid confusion with edges in "dot" foramt | Rewrite toString() to avoid confusion with edges in "dot" foramt | Java | apache-2.0 | ferstl/depgraph-maven-plugin |
dc99e68b50575e18533ea15818fcbe1ad9f8d6e5 | hawtio-embedded/src/test/java/io/hawt/embedded/MainTest.java | hawtio-embedded/src/test/java/io/hawt/embedded/MainTest.java | package io.hawt.embedded;
import org.apache.http.HttpResponse;
import org.apache.http.client.fluent.Request;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
public class MainTest {
@Test
public void run() throws Exception {
System.se... | package io.hawt.embedded;
import org.apache.http.HttpResponse;
import org.apache.http.client.fluent.Request;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
public class MainTest {
@Test
public void run() throws Exception {
System.se... | Change port number in hawtio-embedded test from 8080 to avoid potential port conflicts | Change port number in hawtio-embedded test from 8080 to avoid potential port conflicts
| Java | apache-2.0 | hawtio/hawtio,tadayosi/hawtio,skarsaune/hawtio,hawtio/hawtio,tadayosi/hawtio,hawtio/hawtio,skarsaune/hawtio,hawtio/hawtio,tadayosi/hawtio,tadayosi/hawtio,skarsaune/hawtio,hawtio/hawtio,tadayosi/hawtio,skarsaune/hawtio,skarsaune/hawtio |
c260a2b672e7e6ed4eb3fd4a6d2c8f807a8434a1 | core-service/src/main/java/com/sandjelkovic/dispatchd/gateway/api/resource/PageableListResource.java | core-service/src/main/java/com/sandjelkovic/dispatchd/gateway/api/resource/PageableListResource.java | package com.sandjelkovic.dispatchd.gateway.api.resource;
import com.sandjelkovic.dispatchd.gateway.api.link.PageLinksAssembler;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.springframework.hateoas.ResourceSupport;
@Getter
@RequiredArgsConstructor
@EqualsAndH... | package com.sandjelkovic.dispatchd.gateway.api.resource;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sandjelkovic.dispatchd.gateway.api.link.PageLinksAssembler;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.springframework.hateoas.ResourceSu... | Fix linkAssembler being sent in responses | Fix linkAssembler being sent in responses
| Java | apache-2.0 | sandjelkovic/dispatchd,sandjelkovic/dispatchd |
a47ba0bc1975f0047ab16cd24b313334b314dd28 | src/main/java/net/revelc/code/formatter/html/HTMLFormatter.java | src/main/java/net/revelc/code/formatter/html/HTMLFormatter.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
* distribu... | /*
* 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
* distribu... | Fix issue with class just calling super (just inherit it) | [sonar] Fix issue with class just calling super (just inherit it)
| Java | apache-2.0 | ctubbsii/formatter-maven-plugin,revelc/formatter-maven-plugin,ctubbsii/formatter-maven-plugin,hazendaz/formatter-maven-plugin,hazendaz/formatter-maven-plugin,ctubbsii/formatter-maven-plugin,revelc/formatter-maven-plugin,ctubbsii/formatter-maven-plugin,revelc/formatter-maven-plugin,revelc/formatter-maven-plugin,hazendaz... |
6202e2607aa8446c65da02f91906c3f8828d8264 | src/org/texastorque/texastorque20145/subsystem/FrontIntake.java | src/org/texastorque/texastorque20145/subsystem/FrontIntake.java | package org.texastorque.texastorque20145.subsystem;
import edu.wpi.first.wpilibj.Victor;
import org.texastorque.texastorque20145.constants.Constants;
import org.texastorque.texastorque20145.torquelib.Motor;
public class FrontIntake extends Subsystem {
public final static int DOWN = 0;
public final static... | package org.texastorque.texastorque20145.subsystem;
import edu.wpi.first.wpilibj.Victor;
import org.texastorque.texastorque20145.constants.Constants;
import org.texastorque.texastorque20145.torquelib.Motor;
public class FrontIntake extends Subsystem {
public final static int DOWN = 0;
public final static... | Add states to front intake | Add states to front intake
| Java | bsd-3-clause | TexasTorque/TexasTorque2014.5 |
210879381ed6a78b1bffeaad4b9197173bfa50f0 | src/test/java/info/u_team/u_team_test/TestMod.java | src/test/java/info/u_team/u_team_test/TestMod.java | package info.u_team.u_team_test;
import info.u_team.u_team_core.util.verify.JarSignVerifier;
import info.u_team.u_team_test.init.*;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.fml.DistExecutor;
import net.minecraftforge.fml.common.Mod;
@Mod(TestMod.MODID)
public class TestMod {
public ... | package info.u_team.u_team_test;
import org.apache.logging.log4j.*;
import info.u_team.u_team_core.util.verify.JarSignVerifier;
import info.u_team.u_team_test.init.*;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.fml.DistExecutor;
import net.minecraftforge.fml.common.Mod;
@Mod(TestMod.MODI... | Replace the system out with a proper logger in the test mod | Replace the system out with a proper logger in the test mod | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
192335ffc55ce3b8834b32a09bfbabc68c2311a8 | biz.aQute.repository/src/aQute/lib/deployer/obr/Conversions.java | biz.aQute.repository/src/aQute/lib/deployer/obr/Conversions.java | package aQute.lib.deployer.obr;
import java.util.*;
import aQute.bnd.service.*;
import aQute.lib.deployer.repository.*;
@SuppressWarnings("deprecation")
public class Conversions {
public static final Map<String,String> convertConfig(Map<String,String> map) {
if (!map.containsKey(AbstractIndexedRepo.PROP_REPO_TYP... | package aQute.lib.deployer.obr;
import java.util.*;
import aQute.bnd.service.*;
import aQute.lib.deployer.repository.*;
@SuppressWarnings("deprecation")
public class Conversions {
public static final Map<String,String> convertConfig(Map<String,String> map) {
if (!map.containsKey(AbstractIndexedRepo.PROP_REPO_TYP... | Convert legacy property "mode" to "phase" in OBR & LocalOBR plugins | Convert legacy property "mode" to "phase" in OBR & LocalOBR plugins
| Java | apache-2.0 | lostiniceland/bnd,mcculls/bnd,psoreide/bnd,magnet/bnd,psoreide/bnd,psoreide/bnd,GEBIT/bnd,joansmith/bnd,joansmith/bnd,mcculls/bnd,mcculls/bnd,lostiniceland/bnd,lostiniceland/bnd,xtracoder/bnd,magnet/bnd,GEBIT/bnd,magnet/bnd,xtracoder/bnd |
32e768e7b016abbfebb37fb395915d9c9fc9d6ef | app/src/main/java/com/example/android/miwok/NumbersActivity.java | app/src/main/java/com/example/android/miwok/NumbersActivity.java | package com.example.android.miwok;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
public class NumbersActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceS... | package com.example.android.miwok;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
public class NumbersActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceS... | Create an array for number words 1-10 | Create an array for number words 1-10
| Java | apache-2.0 | MuirDH/Miwok |
1c5769b1fddd50e55edcce45f2e8c0b5116f4f9a | app/src/main/java/com/hewgill/android/nzsldict/BaseActivity.java | app/src/main/java/com/hewgill/android/nzsldict/BaseActivity.java | package com.hewgill.android.nzsldict;
import android.content.Context;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.view.MenuItem;
import io.github.inflationx.viewpump.ViewPumpContextWrapper;
public class BaseActivity extends AppCompatActivity {
prote... | package com.hewgill.android.nzsldict;
import android.content.Context;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.view.MenuItem;
import io.github.inflationx.viewpump.ViewPumpContextWrapper;
public class BaseActivity extends AppCompatActivity {
prote... | Add menu item handler to base activity to launch vocab sheet | Add menu item handler to base activity to launch vocab sheet
| Java | mit | rabid/nzsl-dictionary-android,rabid/nzsl-dictionary-android |
662869c4245ff2447ad1a91fdb22e696e840dea0 | indexer/src/main/java/org/pdxfinder/dataloaders/updog/Updog.java | indexer/src/main/java/org/pdxfinder/dataloaders/updog/Updog.java | package org.pdxfinder.dataloaders.updog;
import com.ibm.icu.impl.LocaleDisplayNamesImpl;
import org.hibernate.sql.Template;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Map;
public class Updog {
private String provider;
public Updog(String provider) {
this.provider = pr... | package org.pdxfinder.dataloaders.updog;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Map;
import java.util.Set;
public class Updog {
private String provider;
public Updog(String provider) {
this.provider = provider;
}
private static final Logger log = LoggerFa... | Update skeleton for new updog | Update skeleton for new updog
| Java | apache-2.0 | PDXFinder/pdxfinder,PDXFinder/pdxfinder,PDXFinder/pdxfinder,PDXFinder/pdxfinder |
26a78ad13bf4f87785501266fdde09f0053a97da | modules/qi-core/src/main/java/org/jpos/util/AmountConverter.java | modules/qi-core/src/main/java/org/jpos/util/AmountConverter.java | package org.jpos.util;
import com.vaadin.data.converter.StringToBigDecimalConverter;
import java.text.NumberFormat;
import java.util.Locale;
public class AmountConverter extends StringToBigDecimalConverter {
public AmountConverter(String errorMessage) {
super(errorMessage);
}
@Override
prot... | package org.jpos.util;
import com.vaadin.data.converter.StringToBigDecimalConverter;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Locale;
public class AmountConverter extends StringToBigDecimalConverter {
public AmountConverter(String errorMessage) {
super(errorMessage... | Make parse method of NumberFormat always return a BigDecimal | Make parse method of NumberFormat always return a BigDecimal
| Java | agpl-3.0 | barspi/jPOS-EE,jpos/jPOS-EE,barspi/jPOS-EE,jpos/jPOS-EE,barspi/jPOS-EE,jrfinc/jPOS-EE,jrfinc/jPOS-EE,jpos/jPOS-EE,jrfinc/jPOS-EE |
609bb2f3dcc6208349fd11e07a0a3ca2fcce53f9 | src/main/java/mods/smbarbour/strangetoolkit/StrangeToolkit.java | src/main/java/mods/smbarbour/strangetoolkit/StrangeToolkit.java | package mods.smbarbour.strangetoolkit;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.event.FMLServerStartingEvent;
import mods.smbarbour.strangetoolkit.commands.OMTChangeOwnerCommand;
@Mod(modid = "strangetoolkit", name="StrangeToolkit", version = "1.0")
public class St... | package mods.smbarbour.strangetoolkit;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.event.FMLServerStartingEvent;
import cpw.mods.fml.common.network.NetworkCheckHandler;
import cpw.mods.fml.relauncher.Side;
import mods.smbarbour.strangetoolkit.commands.OMTChangeOwnerCom... | Make sure that this works as a server-side only mod (no client needed) | Make sure that this works as a server-side only mod (no client needed)
| Java | apache-2.0 | smbarbour/StrangeToolkit |
bbb0ea8c6213b722296cff28a026df703eb18cdf | quickgo-solr-query/src/main/java/uk/ac/ebi/quickgo/solr/query/model/annotation/enums/AnnotationField.java | quickgo-solr-query/src/main/java/uk/ac/ebi/quickgo/solr/query/model/annotation/enums/AnnotationField.java | package uk.ac.ebi.quickgo.solr.query.model.annotation.enums;
/**
* Enum for Solr Annotation fields
* @author cbonill
*
*/
public enum AnnotationField {
ID("id"),
DBOBJECTID("dbObjectID"),
TARGETSET("targetSet"),
DOCTYPE("docType"),
GOASPECT("goAspect"),
ASSIGNEDBY("assignedBy"),
GOEVIDENCE("goEvidence"),
... | package uk.ac.ebi.quickgo.solr.query.model.annotation.enums;
/**
* Enum for Solr Annotation fields
* @author cbonill
*
*/
public enum AnnotationField {
ID("id"),
DBOBJECTID("dbObjectID"),
TARGETSET("targetSet"),
DOCTYPE("docType"),
GOASPECT("goAspect"),
ASSIGNEDBY("assignedBy"),
GOEVIDENCE("goEvidence"),
... | Add the annotation enum so we can filter by reference values. | Add the annotation enum so we can filter by reference values. | Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
b4e6d18c2eed17130581ce4573236709ee975e8b | src/java/com/hypirion/beckon/SignalHandlerNotFoundException.java | src/java/com/hypirion/beckon/SignalHandlerNotFoundException.java | package com.hypirion.beckon;
class SignalHandlerNotFoundException extends Exception {
}
| package com.hypirion.beckon;
class SignalHandlerNotFoundException extends Exception {
public SignalHandlerNotFoundException() {
super("SignalHandler was not found on this JVM -- please report an" +
"issue at beckon's github page with which JVM and what version" +
"you're using."... | Add in useful error msg on linkage errors. | Add in useful error msg on linkage errors.
| Java | epl-1.0 | hyPiRion/beckon |
6018c1b09fe3c3e0f6b5524a3a46a3c3fd0e8a7a | src/test/java/com/modesteam/urutau/builder/ArtifactBuilder.java | src/test/java/com/modesteam/urutau/builder/ArtifactBuilder.java | package com.modesteam.urutau.builder;
import com.modesteam.urutau.model.Artifact;
import com.modesteam.urutau.model.Epic;
import com.modesteam.urutau.model.Feature;
import com.modesteam.urutau.model.User;
public class ArtifactBuilder {
private String title;
private String description;
private Long id;
public Ar... | package com.modesteam.urutau.builder;
import com.modesteam.urutau.model.Artifact;
import com.modesteam.urutau.model.Epic;
import com.modesteam.urutau.model.Feature;
import com.modesteam.urutau.model.Storie;
import com.modesteam.urutau.model.UseCase;
import com.modesteam.urutau.model.User;
public class ArtifactBuilder... | Increase ArtifactBuild for Mock Test | Increase ArtifactBuild for Mock Test
| Java | apache-2.0 | ProjectUrutau/Urutau,tainarareis/Urutau,tainarareis/Urutau,ProjectUrutau/Urutau,Modesteam/Urutau,Modesteam/Urutau,tainarareis/Urutau,tainarareis/Urutau,tainarareis/Urutau |
67d8c17af223152ea0c5dac54146f75591a3d16e | src/main/java/pingis/services/TaskImplementationService.java | src/main/java/pingis/services/TaskImplementationService.java |
package pingis.services;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pingis.entities.TaskImplementation;
import pingis.repositories.TaskImplementationRepository;
import pingis.repositories.TaskRepository;
import pingis.repositories.UserRepositor... |
package pingis.services;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import pingis.entities.TaskImplementation;
import pingis.repositories.TaskImplementationRepository;
import pingis.repo... | Add updateTaskImplementationCode() method to TaskImplService | Add updateTaskImplementationCode() method to TaskImplService
| Java | mit | Heliozoa/tdd-pingpong,Heliozoa/tdd-pingpong,Heliozoa/tdd-pingpong,tdd-pingis/tdd-pingpong,tdd-pingis/tdd-pingpong,Heliozoa/tdd-pingpong,tdd-pingis/tdd-pingpong,tdd-pingis/tdd-pingpong |
3d1b22aabc684d8462d1935cc6ac48dde7c5f6be | src/test/java/io/github/bonigarcia/test/basic/EdgeJupiterTest.java | src/test/java/io/github/bonigarcia/test/basic/EdgeJupiterTest.java | /*
* (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | /*
* (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | Include message to disabled tests (not available on Travis) | Include message to disabled tests (not available on Travis)
| Java | apache-2.0 | bonigarcia/selenium-jupiter,bonigarcia/selenium-jupiter |
c3945e4c489be5f196dd2f2572a6b1d23ac8caad | core/test/java/com/codingchili/core/storage/MongoDBMapIT.java | core/test/java/com/codingchili/core/storage/MongoDBMapIT.java | package com.codingchili.core.storage;
import io.vertx.ext.unit.TestContext;
import io.vertx.ext.unit.junit.VertxUnitRunner;
import org.junit.*;
import org.junit.runner.RunWith;
import com.codingchili.core.testing.MapTestCases;
/**
* @author Robin Duda
* <p>
* Tests for the storage providers in cor... | package com.codingchili.core.storage;
import io.vertx.ext.unit.TestContext;
import io.vertx.ext.unit.junit.VertxUnitRunner;
import org.junit.*;
import org.junit.runner.RunWith;
import com.codingchili.core.testing.MapTestCases;
/**
* @author Robin Duda
* <p>
* Tests for the storage providers in cor... | Enable mongoDB test cases to run on CI | Enable mongoDB test cases to run on CI
| Java | mit | codingchili/chili-core |
260121fec45c0a4c4135159be19fe181aa328b48 | org.metaborg.meta.lang.dynsem.interpreter/src/main/java/org/metaborg/meta/lang/dynsem/interpreter/nodes/matching/IntLiteralTermMatchPattern.java | org.metaborg.meta.lang.dynsem.interpreter/src/main/java/org/metaborg/meta/lang/dynsem/interpreter/nodes/matching/IntLiteralTermMatchPattern.java | package org.metaborg.meta.lang.dynsem.interpreter.nodes.matching;
import com.oracle.truffle.api.dsl.Specialization;
import com.oracle.truffle.api.source.SourceSection;
public abstract class IntLiteralTermMatchPattern extends LiteralMatchPattern {
protected final int lit;
public IntLiteralTermMatchPattern(int lit,... | package org.metaborg.meta.lang.dynsem.interpreter.nodes.matching;
import com.oracle.truffle.api.dsl.Specialization;
import com.oracle.truffle.api.profiles.ConditionProfile;
import com.oracle.truffle.api.source.SourceSection;
public abstract class IntLiteralTermMatchPattern extends LiteralMatchPattern {
protected fi... | Fix competely invalid value specialization in integer literal matching | Fix competely invalid value specialization in integer literal matching
Fixes #124.
| Java | apache-2.0 | metaborg/dynsem,metaborg/dynsem |
c25bd129ba9ec7a678c112c080e4de206727b16a | email/src/main/java/io/openex/email/attachment/EmailAttacher.java | email/src/main/java/io/openex/email/attachment/EmailAttacher.java | package io.openex.email.attachment;
import org.apache.camel.Exchange;
import org.apache.camel.impl.DefaultAttachment;
import javax.mail.util.ByteArrayDataSource;
import java.util.ArrayList;
import java.util.List;
import static io.openex.email.attachment.EmailDownloader.ATTACHMENTS_CONTENT;
/**
* Created by Julien ... | package io.openex.email.attachment;
import org.apache.camel.Exchange;
import org.apache.camel.impl.DefaultAttachment;
import javax.mail.util.ByteArrayDataSource;
import java.util.ArrayList;
import java.util.List;
import static io.openex.email.attachment.EmailDownloader.ATTACHMENTS_CONTENT;
/**
* Created by Julien ... | Remove extra line already handle by the route xml | Remove extra line already handle by the route xml
| Java | mit | Luatix/OpenEx,Luatix/OpenEx |
995446fefd549557ba34f30a170e15355ead6132 | src/main/java/ch/ralscha/extdirectspring/ExtDirectSpring.java | src/main/java/ch/ralscha/extdirectspring/ExtDirectSpring.java | /**
* Copyright 2010-2014 Ralph Schaer <ralphschaer@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | /**
* Copyright 2010-2014 Ralph Schaer <ralphschaer@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | Resolve a warning in eclipse | Resolve a warning in eclipse | Java | apache-2.0 | ralscha/extdirectspring |
971c40d98e07ab6cddb8e6db5095c1acea935815 | utils/test/com/cloud/utils/TernaryTest.java | utils/test/com/cloud/utils/TernaryTest.java | package com.cloud.utils;
import org.junit.Assert;
import org.junit.Test;
public class TernaryTest {
@Test
public void testEquals() {
Assert.assertEquals(new Ternary<String, String, String>("a", "b", "c"), new Ternary<String, String, String>(
"a", "b", "c"));
Assert.assertFalse(... | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | Fix RAT check broken by a1a68ed0c4b722 | Fix RAT check broken by a1a68ed0c4b722
| Java | apache-2.0 | jcshen007/cloudstack,DaanHoogland/cloudstack,GabrielBrascher/cloudstack,wido/cloudstack,mufaddalq/cloudstack-datera-driver,DaanHoogland/cloudstack,jcshen007/cloudstack,jcshen007/cloudstack,wido/cloudstack,wido/cloudstack,resmo/cloudstack,resmo/cloudstack,DaanHoogland/cloudstack,resmo/cloudstack,jcshen007/cloudstack,muf... |
575adf5e8f0df35eb4f2f8c213954ab3e3aa0db0 | src/main/java/com/commercehub/gradle/plugin/avro/OutputDirTask.java | src/main/java/com/commercehub/gradle/plugin/avro/OutputDirTask.java | /**
* Copyright © 2013 Commerce Technologies, LLC.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | /**
* Copyright © 2013 Commerce Technologies, LLC.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | Tag output directory for better input/output handling | Tag output directory for better input/output handling
| Java | apache-2.0 | commercehub-oss/gradle-avro-plugin,commercehub-oss/gradle-avro-plugin |
b947c3564e694e55b344048bed7e3c1b3c900eab | src/main/java/com/datasift/client/pylon/PylonParametersData.java | src/main/java/com/datasift/client/pylon/PylonParametersData.java | package com.datasift.client.pylon;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
public class PylonParametersData {
@JsonProperty
@JsonInclude(JsonInclude.Include.NON_EMPTY)
protected String interval;
@JsonProperty
@JsonInclude(JsonInclu... | package com.datasift.client.pylon;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
public class PylonParametersData {
@JsonProperty
@JsonInclude(JsonInclude.Include.NON_EMPTY)
protected String interval;
@JsonProperty
@JsonInclude(JsonInclu... | Check for null values when setting primitives. | Check for null values when setting primitives.
| Java | mit | datasift/datasift-java,datasift/datasift-java |
f32cad7bca5138ba9b0a1af2adf4563eab5cbea1 | api/src/main/java/uk/ac/ox/oucs/vle/CourseSignupException.java | api/src/main/java/uk/ac/ox/oucs/vle/CourseSignupException.java | /*
* #%L
* Course Signup API
* %%
* Copyright (C) 2010 - 2013 University of Oxford
* %%
* Licensed under the Educational Community 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://opensour... | /*
* #%L
* Course Signup API
* %%
* Copyright (C) 2010 - 2013 University of Oxford
* %%
* Licensed under the Educational Community 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://opensour... | Add the super constructor for the PermissionException. | Add the super constructor for the PermissionException.
| Java | apache-2.0 | ox-it/wl-course-signup,ox-it/wl-course-signup,ox-it/wl-course-signup,ox-it/wl-course-signup,ox-it/wl-course-signup |
4e00805a1047752ad31090eaf03f14e0c8898c4e | app/src/main/java/br/odb/angstronme/SimpleGestureDetector.java | app/src/main/java/br/odb/angstronme/SimpleGestureDetector.java | package br.odb.angstronme;
/**
* Created by monty on 6/6/15.
*/
public class SimpleGestureDetector {
public Vec2 acc = new Vec2(0, 0);
public Vec2 touch = new Vec2(0, 0);
public boolean isHorizontal() {
float ax = Math.abs(acc.x);
float ay = Math.abs(acc.y);
return (ax > ay);
... | package br.odb.angstronme;
/**
* Created by monty on 6/6/15.
*/
public class SimpleGestureDetector {
public static final float TRIVIALITY_THRESHOLD = 50;
public Vec2 acc = new Vec2(0, 0);
public Vec2 touch = new Vec2(0, 0);
public boolean isHorizontal() {
float ax = Math.abs(acc.x);
... | Add a threshold to avoid gratuitous movements from small touches | Add a threshold to avoid gratuitous movements from small touches
| Java | bsd-2-clause | TheFakeMontyOnTheRun/angstron-me,TheFakeMontyOnTheRun/angstron-me |
ec78de06e54b48c04d9897cc5b9691e898b43565 | h2o-core/src/main/java/water/api/TwoDimTableV1.java | h2o-core/src/main/java/water/api/TwoDimTableV1.java | package water.api;
import water.util.TwoDimTable;
public class TwoDimTableV1 extends Schema<TwoDimTable, TwoDimTableV1> {
@API(help="description", direction=API.Direction.OUTPUT)
String description;
@API(help="column names", direction=API.Direction.OUTPUT)
String[] colNames;
@API(help="column printf format ... | package water.api;
import water.util.TwoDimTable;
public class TwoDimTableV1 extends Schema<TwoDimTable, TwoDimTableV1> {
@API(help="Table Header", direction=API.Direction.OUTPUT)
public String tableHeader;
@API(help="Row Headers", direction=API.Direction.OUTPUT)
public String[] rowHeaders;
@API(help="Colum... | Fix TwoDimTable property names in schema. | Fix TwoDimTable property names in schema.
| Java | apache-2.0 | jangorecki/h2o-3,datachand/h2o-3,bospetersen/h2o-3,tarasane/h2o-3,YzPaul3/h2o-3,bospetersen/h2o-3,weaver-viii/h2o-3,datachand/h2o-3,tarasane/h2o-3,kyoren/https-github.com-h2oai-h2o-3,brightchen/h2o-3,michalkurka/h2o-3,ChristosChristofidis/h2o-3,bikash/h2o-dev,junwucs/h2o-3,PawarPawan/h2o-v3,ChristosChristofidis/h2o-3,b... |
266df09fde898276b3df4a7b49a04eaaef1fa212 | pousse-cafe-test/src/main/java/poussecafe/test/JsonDataReader.java | pousse-cafe-test/src/main/java/poussecafe/test/JsonDataReader.java | package poussecafe.test;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectMapper.DefaultTyping;
imp... | package poussecafe.test;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectMapper.DefaultTyping;
imp... | Fix polymorphic type handling when loading test data. | Fix polymorphic type handling when loading test data. | Java | apache-2.0 | pousse-cafe/pousse-cafe,pousse-cafe/pousse-cafe |
408caa0eba4a7e9a446d8f7e115681946a039118 | src/main/java/com/elmakers/mine/bukkit/api/action/SpellAction.java | src/main/java/com/elmakers/mine/bukkit/api/action/SpellAction.java | package com.elmakers.mine.bukkit.api.action;
import com.elmakers.mine.bukkit.api.magic.Mage;
import com.elmakers.mine.bukkit.api.spell.Spell;
import com.elmakers.mine.bukkit.api.spell.SpellResult;
import org.bukkit.configuration.ConfigurationSection;
import java.util.Collection;
public interface SpellAction extends ... | package com.elmakers.mine.bukkit.api.action;
import com.elmakers.mine.bukkit.api.magic.Mage;
import com.elmakers.mine.bukkit.api.spell.Spell;
import com.elmakers.mine.bukkit.api.spell.SpellResult;
import org.bukkit.configuration.ConfigurationSection;
import java.util.Collection;
public interface SpellAction extends ... | Add Spell context to initialize call | Add Spell context to initialize call
| Java | mit | elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicAPI,elBukkit/MagicPlugin |
77f1e210aa19f5081e25a973f371986ee7498077 | modules/Core/src/test/java/jpower/core/test/CoreTestSuite.java | modules/Core/src/test/java/jpower/core/test/CoreTestSuite.java | package jpower.core.test;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({
AlphabetTest.class,
ConditionTest.class,
ConfigurationTest.class,
FactoryTest.class,
InternalTest.class,
IOUtilsTest.class,
Loa... | package jpower.core.test;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({
AlphabetTest.class,
ConditionTest.class,
ConfigurationTest.class,
FactoryTest.class,
InternalTest.class,
IOUtilsTest.class,
Loa... | Add Repeater Test to Core Suite | Add Repeater Test to Core Suite
| Java | mit | DirectMyFile/JPower |
be907b4047a971949aca381680b612579d5b5520 | src/main/java/com/naba/url/shortner/UrlShortnerController.java | src/main/java/com/naba/url/shortner/UrlShortnerController.java | package com.naba.url.shortner;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
... | package com.naba.url.shortner;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
... | Add logic to shorten url | Add logic to shorten url
| Java | mit | NabaSadiaSiddiqui/url-shortener,NabaSadiaSiddiqui/url-shortener |
1248df10677690d72622536b06dba1ca5f8fdb37 | app/src/main/java/com/omralcorut/guardiannews/SettingsActivity.java | app/src/main/java/com/omralcorut/guardiannews/SettingsActivity.java | package com.omralcorut.guardiannews;
import android.content.SharedPreferences;
import android.preference.Preference;
import android.preference.PreferenceFragment;
import android.preference.PreferenceManager;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.... | package com.omralcorut.guardiannews;
import android.content.SharedPreferences;
import android.preference.Preference;
import android.preference.PreferenceFragment;
import android.preference.PreferenceManager;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.... | Fix section label issue in settings | Fix section label issue in settings
| Java | apache-2.0 | omralcrt/GuardianNews |
ac14c5d2db246cf74f4bf639c7ef263305da2195 | src/forager/client/StatusMonitor.java | src/forager/client/StatusMonitor.java | package forager.client;
import java.io.IOException;
import java.util.logging.Logger;
/**
* Monitors currently running tasks and decides when new tasks should be
* requested based on current processing directives.
*
* @author malensek
*/
public class StatusMonitor implements Runnable {
private static final L... | package forager.client;
import java.io.IOException;
import java.util.logging.Logger;
/**
* Monitors currently running tasks and decides when new tasks should be
* requested based on current processing directives.
*
* @author malensek
*/
public class StatusMonitor implements Runnable {
private static final L... | Use "clientInstance" instead of just "forager" | Use "clientInstance" instead of just "forager"
| Java | bsd-2-clause | malensek/forager,malensek/forager |
3da53b09e150d1132553cf545e634f5a8684d8d3 | src/main/java/totemic_commons/pokefenn/ceremony/CeremonyRain.java | src/main/java/totemic_commons/pokefenn/ceremony/CeremonyRain.java | package totemic_commons.pokefenn.ceremony;
import net.minecraft.util.BlockPos;
import net.minecraft.world.World;
import totemic_commons.pokefenn.api.ceremony.Ceremony;
import totemic_commons.pokefenn.api.music.MusicInstrument;
/**
* Created by Pokefenn.
* Licensed under MIT (If this is one of my Mods)
*/
public cl... | package totemic_commons.pokefenn.ceremony;
import net.minecraft.util.BlockPos;
import net.minecraft.world.World;
import totemic_commons.pokefenn.api.ceremony.Ceremony;
import totemic_commons.pokefenn.api.music.MusicInstrument;
/**
* Created by Pokefenn.
* Licensed under MIT (If this is one of my Mods)
*/
public cl... | Fix weather changing to soon after Rain/Drought ceremony | Fix weather changing to soon after Rain/Drought ceremony | Java | mit | TeamTotemic/Totemic |
b87256ead5533558d4ebc0ed0d48d322282d9594 | src/org/bouncycastle/crypto/tls/TlsCipherSuite.java | src/org/bouncycastle/crypto/tls/TlsCipherSuite.java | package org.bouncycastle.crypto.tls;
import java.io.IOException;
/**
* A generic class for ciphersuites in TLS 1.0.
*/
public abstract class TlsCipherSuite
{
protected static final short KE_RSA = 1;
protected static final short KE_RSA_EXPORT = 2;
protected static final short KE_DHE_DSS = 3;
protect... | package org.bouncycastle.crypto.tls;
import java.io.IOException;
/**
* A generic class for ciphersuites in TLS 1.0.
*/
public abstract class TlsCipherSuite
{
protected static final short KE_RSA = 1;
protected static final short KE_RSA_EXPORT = 2;
protected static final short KE_DHE_DSS = 3;
protect... | Add entries for SRP key exchange algorithms | Add entries for SRP key exchange algorithms
| Java | mit | sake/bouncycastle-java |
d64ae797a944ab61c82ff902b0df99bf78c27d96 | common/to.etc.alg/src/main/java/to/etc/testutil/TestUtil.java | common/to.etc.alg/src/main/java/to/etc/testutil/TestUtil.java | package to.etc.testutil;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/**
* @author <a href="mailto:jal@etc.to">Frits Jalvingh</a>
* Created on 15-04-22.
*/
final public class TestUtil {
private TestUtil() {
}
public static void nonTestPrintln(String text) {
if(!inTest())
System.out.pr... | package to.etc.testutil;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/**
* @author <a href="mailto:jal@etc.to">Frits Jalvingh</a>
* Created on 15-04-22.
*/
final public class TestUtil {
private static boolean m_mavenTest;
private TestUtil() {
}
public static void nonTestPrintln(String te... | Add check whether test runs under maven | Add check whether test runs under maven
| Java | lgpl-2.1 | fjalvingh/domui,fjalvingh/domui,fjalvingh/domui,fjalvingh/domui,fjalvingh/domui,fjalvingh/domui,fjalvingh/domui |
3259ca3b2ccbb46b5ff007c1b5134c5360a9d3eb | com.vaguehope.mikuru/src/com/vaguehope/mikuru/ConsoleAppender.java | com.vaguehope.mikuru/src/com/vaguehope/mikuru/ConsoleAppender.java | package com.vaguehope.mikuru;
import android.widget.ScrollView;
import android.widget.TextView;
public class ConsoleAppender {
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
private final TextView tv;
private final ScrollView sv;
// - - - - - - - - - - - - - - - - - - - - - - - -... | package com.vaguehope.mikuru;
import android.view.View;
import android.widget.ScrollView;
import android.widget.TextView;
public class ConsoleAppender {
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
private final TextView tv;
protected final ScrollView sv;
// - - - - - - - - - -... | Fix console appended to work correctly. | Fix console appended to work correctly.
| Java | apache-2.0 | haku/Mikuru,haku/Mikuru |
ebabdf665b8830e4b261d1d7be34da176e2a1d5d | src/com/femalehewmon/nagem/ui/MainFragment.java | src/com/femalehewmon/nagem/ui/MainFragment.java | package com.femalehewmon.nagem.ui;
import android.support.v4.app.FragmentActivity;
public class MainFragment extends FragmentActivity {
}
| package com.femalehewmon.nagem.ui;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class MainFragment extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup ... | Correct from activity to Fragment. | Correct from activity to Fragment.
Originally FragmentActivity.
| Java | apache-2.0 | femalehewmon/nag-em,female-hewmon/nag-em |
e5e6f1f4925fbfc13d09c7d2cfe15e41beac7c8d | app/src/main/java/se/kodsnack/ListenActivity.java | app/src/main/java/se/kodsnack/ListenActivity.java | package se.kodsnack;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Log;
import android.view.View;
import android.widget.... | package se.kodsnack;
import android.app.Activity;
import android.os.Bundle;
public class ListenActivity extends Activity {
/* Logger tag. */
private static final String TAG = ListenActivity.class.getSimpleName();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(sa... | Clean up left over imports. | Clean up left over imports.
| Java | bsd-2-clause | kodsnack/kodsnack-android |
8120e73c51c126840125b1edc221d7e33c5a7186 | src/in/co/nebulax/magpie/Constants.java | src/in/co/nebulax/magpie/Constants.java | package in.co.nebulax.magpie;
public class Constants {
// url to get data JSON
public static String url = "";
//JSON Node Names
public static String TAG_DATA = "data";
public static String TAG_DEVICE = "device";
public static String TAG_STATUS = "status";
public static String TAG_NAME = "name";
}
| package in.co.nebulax.magpie;
public class Constants {
// url to get data JSON
public static String url = "http://10.0.2.2:1111/all";
//JSON Node Names
public static String TAG_DATA = "data";
public static String TAG_DEVICE = "device";
public static String TAG_STATUS = "status";
public static String TAG_NAME... | Change url of localhost to 10.0.2.2 | Change url of localhost to 10.0.2.2
| Java | artistic-2.0 | NebulaX/magpie-android |
cfcf8ca3b2517a560d58894cb591f97cd9dc7d8a | src/main/java/com/blackberry/kafka/lowoverhead/meta/Topic.java | src/main/java/com/blackberry/kafka/lowoverhead/meta/Topic.java | package com.blackberry.kafka.lowoverhead.meta;
import java.util.ArrayList;
import java.util.List;
public class Topic {
String name;
List<Partition> partitions = new ArrayList<Partition>();
public Topic() {
}
public Topic(String name) {
this.name = name;
}
public int getNumPartitions() {
retur... | package com.blackberry.kafka.lowoverhead.meta;
import java.util.ArrayList;
import java.util.List;
public class Topic {
String name;
List<Partition> partitions = new ArrayList<Partition>();
public Topic() {
}
public Topic(String name) {
this.name = name;
}
public int getNumPartitions() {
retur... | Fix major bug which returned the wrong partition metadata | Fix major bug which returned the wrong partition metadata
| Java | apache-2.0 | awwal/Krackle,blackberry/Krackle |
f5aeb949f781cb1f10e99916822d977b946ad3c7 | src/test/java/com/github/ferstl/ParallelStreamSupportTest.java | src/test/java/com/github/ferstl/ParallelStreamSupportTest.java | package com.github.ferstl;
import java.util.Arrays;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class ParallelStreamSupportTest {
private ForkJoinPool workerPool;
@Before
public void before() {
... | package com.github.ferstl;
import java.util.List;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.ForkJoinTask;
import java.util.concurrent.TimeUnit;
import java.util.regex.Pattern;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import static java... | Add tets for thread name | Add tets for thread name | Java | mit | ferstl/parallel-stream-support |
f8a34d07fc740faf9e5eb4e9bf60578af312d66f | app/src/main/java/org/apache/taverna/mobile/activities/RunResult.java | app/src/main/java/org/apache/taverna/mobile/activities/RunResult.java | package org.apache.taverna.mobile.activities;
import org.apache.taverna.mobile.R;
import org.apache.taverna.mobile.fragments.workflowdetails.RunFragment;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.MenuItem;
public class RunResult extends A... | package org.apache.taverna.mobile.activities;
import org.apache.taverna.mobile.R;
import org.apache.taverna.mobile.fragments.workflowdetails.RunFragment;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
public class RunResult extends A... | Use AppCompat instead of ActionBar | Use AppCompat instead of ActionBar
| Java | apache-2.0 | apache/incubator-taverna-mobile,apache/incubator-taverna-mobile,sagar15795/incubator-taverna-mobile,sagar15795/incubator-taverna-mobile,ianwdunlop/incubator-taverna-mobile |
20feacf658a173a950f427274ed058c45e11459b | app/src/main/java/com/gh4a/resolver/UrlLoadTask.java | app/src/main/java/com/gh4a/resolver/UrlLoadTask.java | package com.gh4a.resolver;
import android.content.Intent;
import android.support.v4.app.FragmentActivity;
import com.gh4a.BackgroundTask;
import com.gh4a.utils.IntentUtils;
public abstract class UrlLoadTask extends BackgroundTask<Intent> {
protected FragmentActivity mActivity;
private final boolean mFinishCu... | package com.gh4a.resolver;
import android.content.Intent;
import android.support.v4.app.FragmentActivity;
import com.gh4a.BackgroundTask;
import com.gh4a.utils.IntentUtils;
public abstract class UrlLoadTask extends BackgroundTask<Intent> {
protected FragmentActivity mActivity;
private final boolean mFinishCu... | Fix occasional crash when dismissing BrowseFilter progress dialog | Fix occasional crash when dismissing BrowseFilter progress dialog
| Java | apache-2.0 | edyesed/gh4a,edyesed/gh4a,slapperwan/gh4a,slapperwan/gh4a |
aebb02f7f9bbe5df1cf1d7017f22149ece33ad92 | src/main/java/com/leviathanstudio/craftstudio/network/CraftStudioBasePacket.java | src/main/java/com/leviathanstudio/craftstudio/network/CraftStudioBasePacket.java | package com.leviathanstudio.craftstudio.network;
import java.util.List;
import java.util.UUID;
import com.leviathanstudio.craftstudio.common.animation.IAnimated;
import net.minecraft.entity.Entity;
import net.minecraftforge.fml.common.network.ByteBufUtils;
import net.minecraftforge.fml.common.network.simpleimpl.IMes... | package com.leviathanstudio.craftstudio.network;
import java.util.List;
import java.util.UUID;
import com.leviathanstudio.craftstudio.common.animation.IAnimated;
import net.minecraft.entity.Entity;
import net.minecraftforge.fml.common.network.ByteBufUtils;
import net.minecraftforge.fml.common.network.simpleimpl.IMes... | Fix Client crash on server | Fix Client crash on server
| Java | apache-2.0 | Leviathan-Studio/CraftStudioAPI |
59b0703b261133c45b790249cfe268f6e8800185 | src/main/java/org/ambraproject/wombat/config/RemoteCacheSpace.java | src/main/java/org/ambraproject/wombat/config/RemoteCacheSpace.java | package org.ambraproject.wombat.config;
import javax.cache.expiry.Duration;
import java.util.concurrent.TimeUnit;
public enum RemoteCacheSpace {
ARTICLE_API("articleApi"),
USER_API("userApi"),
ARTICLE_HTML("articleHtml"),
AMENDMENT_BODY("amendmentBody"),
SITE_CONTENT_METADATA("siteContentMetadata"),
EXTER... | package org.ambraproject.wombat.config;
import javax.cache.expiry.Duration;
import java.util.concurrent.TimeUnit;
public enum RemoteCacheSpace {
ARTICLE_API("articleApi"),
USER_API("userApi"),
ARTICLE_HTML("articleHtml"),
AMENDMENT_BODY("amendmentBody"),
SITE_CONTENT_METADATA("siteContentMetadata"),
EXTER... | Set shorted TTL for editorial content cache | DPRO-2637: Set shorted TTL for editorial content cache
| Java | mit | PLOS/wombat,PLOS/wombat,PLOS/wombat,PLOS/wombat |
80bbd877fd74b0913b005a65659dd5a16a6c8a8f | com.netcetera.trema.eclipse.plugin/src/main/java/com/netcetera/trema/eclipse/exporting/MonitoringTremaCSVPrinter.java | com.netcetera.trema.eclipse.plugin/src/main/java/com/netcetera/trema/eclipse/exporting/MonitoringTremaCSVPrinter.java | package com.netcetera.trema.eclipse.exporting;
import java.io.Writer;
import org.eclipse.core.runtime.IProgressMonitor;
import com.netcetera.trema.core.exporting.TremaCSVPrinter;
/**
* Subclass of <code>CSVPrinter</code> to support progress monitors,
* since a CSV export has turned out to be rather a time consum... | package com.netcetera.trema.eclipse.exporting;
import java.io.Writer;
import org.eclipse.core.runtime.IProgressMonitor;
import com.netcetera.trema.core.exporting.TremaCSVPrinter;
/**
* Subclass of <code>CSVPrinter</code> to support progress monitors,
* since a CSV export has turned out to be rather a time consum... | Remove useless javadoc that produces warning. | Remove useless javadoc that produces warning. | Java | mit | netceteragroup/trema-eclipse |
9757115061f92525a33dbe3d02dd8db0fad2ee45 | app/src/main/java/com/sakurafish/parrot/callconfirm/MyApplication.java | app/src/main/java/com/sakurafish/parrot/callconfirm/MyApplication.java | package com.sakurafish.parrot.callconfirm;
import android.app.Application;
import android.content.Context;
import com.crashlytics.android.Crashlytics;
import com.google.android.gms.ads.MobileAds;
import com.sakurafish.parrot.callconfirm.utils.SoundManager;
import io.fabric.sdk.android.Fabric;
import uk.co.chrisjenx.... | package com.sakurafish.parrot.callconfirm;
import android.app.Application;
import android.content.Context;
import com.crashlytics.android.Crashlytics;
import com.google.android.gms.ads.MobileAds;
import com.sakurafish.parrot.callconfirm.utils.SoundManager;
import io.fabric.sdk.android.Fabric;
import uk.co.chrisjenx.... | Fix use correct AdMob app id | Fix use correct AdMob app id
| Java | apache-2.0 | sakurabird/Android-ParrotCallConfirm,sakurabird/Android-ParrotCallConfirm |
7552482ab4e00aef6ff3f9ea1519801e1bd3d99d | tests/sources/java/2_get_file/src/main/java/getFile/GetFileImpl.java | tests/sources/java/2_get_file/src/main/java/getFile/GetFileImpl.java | package getFile;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.FileNotFoundException;
import java.io.FileReader;
public class GetFileImpl {
public static void writeInFile(String file, int i) {
try ... | package getFile;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.FileNotFoundException;
import java.io.FileReader;
public class GetFileImpl {
public static void writeInFile(String file, int i) {
Stri... | Fix test 2_get_file to use try with resources | Fix test 2_get_file to use try with resources
| Java | apache-2.0 | mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs |
0911ea833e1b2aa36f418d8442d3c99e40d83afa | backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/asynctasks/gluster/GlusterAsyncTaskStatus.java | backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/asynctasks/gluster/GlusterAsyncTaskStatus.java | package org.ovirt.engine.core.common.asynctasks.gluster;
import org.ovirt.engine.core.common.job.JobExecutionStatus;
/**
* This enum represents the gluster volume async task status values returned from VDSM
*/
public enum GlusterAsyncTaskStatus {
COMPLETED("COMPLETED"),
STARTED("STARTED"),
STOPPED("STOP... | package org.ovirt.engine.core.common.asynctasks.gluster;
import org.ovirt.engine.core.common.job.JobExecutionStatus;
/**
* This enum represents the gluster volume async task status values returned from VDSM
*/
public enum GlusterAsyncTaskStatus {
COMPLETED("COMPLETED"),
STARTED("STARTED"),
STOPPED("STOP... | Return UNKNOWN status for GlusterTaskStatus | gluster: Return UNKNOWN status for GlusterTaskStatus
If the string value passed to GlusterTaskStatus is not
one of the enum options return UNKNOWN as the option
value.
Fixes 2 issues reported by coverity scan when converting
vdsm return value
GlusterAsyncTaskStatus.from((String)map.get(STATUS)).getJobExecutionStatus()... | Java | apache-2.0 | yingyun001/ovirt-engine,eayun/ovirt-engine,yapengsong/ovirt-engine,zerodengxinchao/ovirt-engine,walteryang47/ovirt-engine,eayun/ovirt-engine,walteryang47/ovirt-engine,yapengsong/ovirt-engine,walteryang47/ovirt-engine,OpenUniversity/ovirt-engine,halober/ovirt-engine,zerodengxinchao/ovirt-engine,eayun/ovirt-engine,halobe... |
344c05bc3ea05b90d39f290d0a0496af8349365a | src/com/facebook/buck/cxx/CxxFlavorSanitizer.java | src/com/facebook/buck/cxx/CxxFlavorSanitizer.java | /*
* Copyright 2016-present Facebook, 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... | /*
* Copyright 2016-present Facebook, 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... | Use shorter flavor names for cxx rules | Use shorter flavor names for cxx rules
Summary:Instead of using file path in the cxx rule flavor, only use its
last element. This will shorten the directory names used for
rules' outputs, which are currently gettting very close to the
filesystem limit. This should be safe because we still append a
hash of the full pat... | Java | apache-2.0 | LegNeato/buck,darkforestzero/buck,darkforestzero/buck,sdwilsh/buck,romanoid/buck,k21/buck,kageiit/buck,darkforestzero/buck,rmaz/buck,JoelMarcey/buck,illicitonion/buck,shybovycha/buck,dsyang/buck,bocon13/buck,clonetwin26/buck,justinmuller/buck,k21/buck,justinmuller/buck,davido/buck,robbertvanginkel/buck,facebook/buck,gr... |
4d61dde5b3cbb84d366269c1f755525cd9cd265e | components/org.wso2.carbon.metrics.manager/src/main/java/org/wso2/carbon/metrics/manager/internal/ServiceReferenceHolder.java | components/org.wso2.carbon.metrics.manager/src/main/java/org/wso2/carbon/metrics/manager/internal/ServiceReferenceHolder.java | /*
* Copyright 2014 WSO2 Inc. (http://wso2.org)
*
* 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 applicabl... | /*
* Copyright 2014 WSO2 Inc. (http://wso2.org)
*
* 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 applicabl... | Throw IllegalStateException if the Metric service is not available | Throw IllegalStateException if the Metric service is not available
| Java | apache-2.0 | wso2/carbon-metrics,chrishantha/carbon-metrics |
3b57227d55c74872169c9ab66e7f723a2b5bcd31 | capstone/src/main/java/com/google/sps/data/Form.java | capstone/src/main/java/com/google/sps/data/Form.java | package com.google.sps.data;
import java.io.*;
import com.google.appengine.api.datastore.Entity;
public class Form {
private String editURL;
private String URL;
private String id;
private boolean isPublished;
public Form(String editURL, String URL, String id) {
this.editURL = editURL;
... | package com.google.sps.data;
import java.io.*;
import com.google.appengine.api.datastore.Entity;
public class Form {
private String editURL;
private String URL;
private String id;
private boolean isPublished;
public Form(String editURL, String URL, String id) {
this.editURL = editURL;
... | Remove Head/Tail conflict in form.java | Remove Head/Tail conflict in form.java
| Java | apache-2.0 | googleinterns/step152-2020,googleinterns/step152-2020,googleinterns/step152-2020,googleinterns/step152-2020 |
5dfb0d4d64fa0ca6a726e314fb3741da4378d252 | java/ql/test/library-tests/dataflow/taintsources/IntentSources.java | java/ql/test/library-tests/dataflow/taintsources/IntentSources.java | package com.example.myapp;
import android.app.Activity;
public class IntentSources extends Activity {
private static void sink(Object o) {}
public void test() throws java.io.IOException {
String trouble = this.getIntent().getStringExtra("key");
sink(trouble); // $hasRemoteTaintFlow
}
public void test2() ... | package com.example.myapp;
import android.app.Activity;
import android.content.Context;
public class IntentSources extends Activity {
private static void sink(Object o) {}
public IntentSources(Context base) {
super(base);
}
public void test() throws java.io.IOException {
String trouble = this.getIntent().... | Fix Android tests affected by changes in stubs | Fix Android tests affected by changes in stubs
| Java | mit | github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql |
5d46edc269aa696beedcdeafeaed22397d35428e | src/main/java/com/topsy/jmxproxy/jmx/ConnectionCredentials.java | src/main/java/com/topsy/jmxproxy/jmx/ConnectionCredentials.java | package com.topsy.jmxproxy.jmx;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.hibernate.validator.constraints.NotEmpty;
public class ConnectionCredentials {
@NotEmpty
@JsonProperty
private final String username;
@NotEmpty
@JsonProperty
private final String password;
p... | package com.topsy.jmxproxy.jmx;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.hibernate.validator.constraints.NotEmpty;
public class ConnectionCredentials {
@NotEmpty
@JsonProperty
private final String username;
@NotEmpty
@JsonProperty
private final String password;
p... | Handle null credentials object in the comparison. | Handle null credentials object in the comparison.
| Java | mit | mk23/jmxproxy,mk23/jmxproxy,mk23/jmxproxy,mk23/jmxproxy-test,mk23/jmxproxy,mk23/jmxproxy-test,mk23/jmxproxy-test,mk23/jmxproxy,mk23/jmxproxy-test,mk23/jmxproxy-test,mk23/jmxproxy,mk23/jmxproxy-test |
6f5cef4c1ff5bc9f640ae561a29160064e4381ff | src/main/java/de/syquel/bushytail/controller/IBushyTailController.java | src/main/java/de/syquel/bushytail/controller/IBushyTailController.java | /*
* Copyright 2016, Frederik Boster
*
* 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 agree... | /*
* Copyright 2016, Frederik Boster
*
* 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 agree... | Remove visibilities from interface methods. | Remove visibilities from interface methods.
| Java | apache-2.0 | Syquel/BushyTail |
297ccc8726cd546908d5b8f292dfc3d348605672 | src/main/java/valandur/webapi/cache/command/CachedCommand.java | src/main/java/valandur/webapi/cache/command/CachedCommand.java | package valandur.webapi.cache.command;
import org.spongepowered.api.command.CommandMapping;
import org.spongepowered.api.text.Text;
import valandur.webapi.api.cache.command.ICachedCommand;
import valandur.webapi.cache.CachedObject;
import static valandur.webapi.command.CommandSource.instance;
public class CachedComm... | package valandur.webapi.cache.command;
import org.spongepowered.api.command.CommandMapping;
import org.spongepowered.api.text.Text;
import valandur.webapi.api.cache.command.ICachedCommand;
import valandur.webapi.cache.CachedObject;
import static valandur.webapi.command.CommandSource.instance;
public class CachedComm... | Fix NPE when caching commands | fix(command): Fix NPE when caching commands
| Java | mit | Valandur/Web-API,Valandur/Web-API,Valandur/Web-API |
600e96defa787fe4fa427d7447323847c59e85b3 | src/main/java/yokohama/unit/ast_junit/SuchThatMatcherExpr.java | src/main/java/yokohama/unit/ast_junit/SuchThatMatcherExpr.java | package yokohama.unit.ast_junit;
import java.util.List;
import java.util.Set;
import lombok.EqualsAndHashCode;
import lombok.Value;
import yokohama.unit.util.SBuilder;
import static yokohama.unit.util.SetUtils.setOf;
@Value
@EqualsAndHashCode(callSuper=false)
public class SuchThatMatcherExpr extends Matche... | package yokohama.unit.ast_junit;
import java.util.List;
import java.util.Set;
import lombok.EqualsAndHashCode;
import lombok.Value;
import yokohama.unit.util.SBuilder;
import static yokohama.unit.util.SetUtils.setOf;
@Value
@EqualsAndHashCode(callSuper=false)
public class SuchThatMatcherExpr extends Matche... | Add (empty) decribeTo method to generated code | Add (empty) decribeTo method to generated code | Java | mit | tkob/yokohamaunit,tkob/yokohamaunit |
cd025e47c0580573f23bf9b6b8c6ff29d9db2264 | src/test/java/info/u_team/u_team_test/init/TestEntityTypes.java | src/test/java/info/u_team/u_team_test/init/TestEntityTypes.java | package info.u_team.u_team_test.init;
import info.u_team.u_team_core.entitytype.UEntityType;
import info.u_team.u_team_core.util.registry.BaseRegistryUtil;
import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.entity.BetterEnderPearlEntity;
import net.minecraft.entity.*;
import net.minecraftforge.even... | package info.u_team.u_team_test.init;
import info.u_team.u_team_core.entitytype.UEntityType;
import info.u_team.u_team_test.entity.BetterEnderPearlEntity;
import net.minecraft.entity.*;
public class TestEntityTypes {
public static final EntityType<BetterEnderPearlEntity> BETTER_ENDERPEARL = UEntityType.UBuilder.<B... | Remove the old registry way from test entity types | Remove the old registry way from test entity types | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
a3b53888a95091879e7942c2b8864a7b48265aad | src/test/java/org/gluster/test/TestGlusterFuseInputStream.java | src/test/java/org/gluster/test/TestGlusterFuseInputStream.java | package org.gluster.test;
import java.io.File;
import junit.framework.Assert;
import org.apache.hadoop.fs.glusterfs.GlusterFUSEInputStream;
import org.apache.hadoop.fs.glusterfs.GlusterFUSEOutputStream;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class TestGlusterFuseInputStream{
... | package org.gluster.test;
import java.io.File;
import junit.framework.Assert;
import org.apache.hadoop.fs.glusterfs.GlusterFUSEInputStream;
import org.apache.hadoop.fs.glusterfs.GlusterFUSEOutputStream;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class TestGlusterFuseInputStream{
... | Remove After - logically redundant | Remove After - logically redundant
| Java | apache-2.0 | gluster/glusterfs-hadoop,AsherBond/glusterfs-hadoop,AsherBond/glusterfs-hadoop,gluster/glusterfs-hadoop |
86ff7e00ddf802822eb7459065bac82b61cc4dec | app/src/main/java/com/castelijns/mmdemo/photos/PhotosPresenter.java | app/src/main/java/com/castelijns/mmdemo/photos/PhotosPresenter.java | package com.castelijns.mmdemo.photos;
import com.castelijns.mmdemo.models.Photo;
import java.util.List;
import io.reactivex.Observer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
import io.reactivex.schedulers.Schedulers;
public class PhotosPresenter implemen... | package com.castelijns.mmdemo.photos;
import com.castelijns.mmdemo.models.Photo;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import io.reactivex.Observer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
import io.reactivex.sc... | Sort photos by title by default | Sort photos by title by default
| Java | mit | TimCastelijns/MMDemo |
69b6d8f9780a5c317126b80d58deeea01c841ca6 | portfolio/src/main/java/com/google/sps/servlets/TextInputServlet.java | portfolio/src/main/java/com/google/sps/servlets/TextInputServlet.java | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | Add servlet to handle text request submissions and send to Dialogflow | Add servlet to handle text request submissions and send to Dialogflow
| Java | apache-2.0 | googleinterns/step43-2020,googleinterns/step43-2020,googleinterns/step43-2020,googleinterns/step43-2020 |
55eaf12ae9734eebf9d4dbc7348375fd6069fc95 | NetBeans/Chauffe/src/java/metier/materiel/pilotage/Arduino.java | NetBeans/Chauffe/src/java/metier/materiel/pilotage/Arduino.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 metier.materiel.pilotage;
/**
*
* @author jazz
*/
public abstract class Arduino implements IArduino{
int arduinoID;
... | /*
* 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 metier.materiel.pilotage;
/**
*
* @author jazz
*/
public abstract class Arduino implements IArduino{
int arduinoID;
... | Delete unused source package 2 | Delete unused source package 2 | Java | agpl-3.0 | lebassmann/chauffe,lebassmann/chauffe,lebassmann/chauffe,lebassmann/chauffe,lebassmann/chauffe |
c96367c975ed181a0166cdfc120d02d1d9c6cef7 | src/main/java/com/github/tmurakami/dexopener/ClassNameFilterImpl.java | src/main/java/com/github/tmurakami/dexopener/ClassNameFilterImpl.java | package com.github.tmurakami.dexopener;
class ClassNameFilterImpl implements ClassNameFilter {
private static final String[] IGNORED_PACKAGES = {
"java.",
"javax.",
"dalvik.",
"junit.",
"org.junit.",
"org.hamcrest.",
"android.supp... | package com.github.tmurakami.dexopener;
class ClassNameFilterImpl implements ClassNameFilter {
private static final String[] IGNORED_PACKAGES = {
"android.support.annotation.",
"android.support.multidex.",
"android.support.test.",
"com.android.internal.util.",
... | Add classes that should be loaded by the parent ClassLoader | Add classes that should be loaded by the parent ClassLoader
| Java | apache-2.0 | tmurakami/dexopener,tmurakami/dexopener |
21d5bc00a373c25dcaa0645e60ea38cb3e9b5a59 | src/main/java/com/ezardlabs/dethsquare/multiplayer/NetworkAnimator.java | src/main/java/com/ezardlabs/dethsquare/multiplayer/NetworkAnimator.java | package com.ezardlabs.dethsquare.multiplayer;
import java.nio.ByteBuffer;
public class NetworkAnimator extends NetworkBehaviour {
@Override
public void start() {
super.start();
assert gameObject.animator != null;
gameObject.animator.shouldUpdate = getPlayerId() == Network.getPlayerId();
}
@Override
prote... | package com.ezardlabs.dethsquare.multiplayer;
import java.nio.ByteBuffer;
public class NetworkAnimator extends NetworkBehaviour {
@Override
public void start() {
super.start();
assert gameObject.animator != null;
gameObject.animator.shouldUpdate = getPlayerId() == Network.getPlayerId();
}
@Override
prote... | Send animation data across the network as shorts instead of ints, to save some bytes | Send animation data across the network as shorts instead of ints, to save some bytes
| Java | mit | 8-Bit-Warframe/Dethsquare-Engine-core |
36ebcb5fe592afce6394ab270f6f8dcb75e1df19 | src/com/opengamma/transport/CollectingFudgeMessageReceiver.java | src/com/opengamma/transport/CollectingFudgeMessageReceiver.java | /**
* Copyright (C) 2009 - 2010 by OpenGamma Inc.
*
* Please see distribution for license.
*/
package com.opengamma.transport;
import java.util.LinkedList;
import java.util.List;
import org.fudgemsg.FudgeContext;
import org.fudgemsg.FudgeMsgEnvelope;
/**
* Collects all Fudge message envelopes in an array for la... | /**
* Copyright (C) 2009 - 2010 by OpenGamma Inc.
*
* Please see distribution for license.
*/
package com.opengamma.transport;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
impor... | Use a blocking queue rather than a list so that tests can wait for a message to have arrived. | Use a blocking queue rather than a list so that tests can wait for a message to have arrived.
| Java | apache-2.0 | nssales/OG-Platform,jeorme/OG-Platform,DevStreet/FinanceAnalytics,ChinaQuants/OG-Platform,ChinaQuants/OG-Platform,nssales/OG-Platform,McLeodMoores/starling,DevStreet/FinanceAnalytics,McLeodMoores/starling,codeaudit/OG-Platform,McLeodMoores/starling,DevStreet/FinanceAnalytics,jerome79/OG-Platform,jeorme/OG-Platform,jeor... |
fe82281e843afc8afd315f889700d4380f0b812c | snmpman/src/test/java/com/oneandone/snmpman/SnmpmanAgentTest.java | snmpman/src/test/java/com/oneandone/snmpman/SnmpmanAgentTest.java | package com.oneandone.snmpman;
import org.snmp4j.smi.OctetString;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.testng.Assert... | package com.oneandone.snmpman;
import org.snmp4j.smi.OctetString;
import org.testng.annotations.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.testng.Assert.assertTrue;
public class SnmpmanAgentTest extends AbstractSnmpmanTest {
@Test
public void testSnm... | Use test parent class inheritance to avoid boiler plate code. | Use test parent class inheritance to avoid boiler plate code.
| Java | apache-2.0 | 1and1/snmpman,1and1/snmpman |
452034cd3a27d04d92267e8f688fd417327476cb | integration-test-apps/JavaPlay213/app/controllers/Application.java | integration-test-apps/JavaPlay213/app/controllers/Application.java | package controllers;
import play.*;
import play.mvc.*;
import views.html.*;
public class Application extends Controller {
public static Result index() {
return ok(index.render("Your new application is ready."));
}
}
| package controllers;
import play.*;
import play.mvc.*;
import views.html.*;
public class Application extends Controller {
public static Result index() {
try {
System.out.println("use logger!!!");
} catch(Throwable e){}
return ok(index.render("Your new application is ready."));
... | Add bad code to Play example. | Add bad code to Play example.
| Java | apache-2.0 | schleichardt/sbt-sonar,schleichardt/sbt-sonar |
97c19d95614eb14f9c9fe0607f87cb1d7aebf8e8 | jdisc_http_service/src/main/java/com/yahoo/jdisc/http/SecretStore.java | jdisc_http_service/src/main/java/com/yahoo/jdisc/http/SecretStore.java | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.http;
/**
* An abstraction of a secret store for e.g passwords.
* Implementations can be plugged in to provide passwords for various keys.
*
* @author bratseth
* @author b... | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.http;
/**
* An abstraction of a secret store for e.g passwords.
* Implementations can be plugged in to provide passwords for various keys.
*
* @author bratseth
* @author b... | Clarify that deprecation will be removed for Vespa 8 | Clarify that deprecation will be removed for Vespa 8
| Java | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
fd2968a24dbfed50f86a851703c437ca93b11542 | src/test/java/com/alexrnl/commons/gui/swing/SwingUtilsTest.java | src/test/java/com/alexrnl/commons/gui/swing/SwingUtilsTest.java | package com.alexrnl.commons.gui.swing;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;
import org.junit.Before;
import org.junit.Test;
... | package com.alexrnl.commons.gui.swing;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;
import org.junit.Test;
/**
* Test suite for the... | Remove @Before, not useful for static classes | Remove @Before, not useful for static classes
| Java | bsd-3-clause | AlexRNL/Commons |
94fcbe5084cc1361b42983077d8373c66b00c3f3 | src/test/java/net/wizardsoflua/testenv/net/AbstractMessage.java | src/test/java/net/wizardsoflua/testenv/net/AbstractMessage.java | package net.wizardsoflua.testenv.net;
import java.io.IOException;
import com.google.common.base.Throwables;
import io.netty.buffer.ByteBuf;
import net.minecraft.network.PacketBuffer;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
@RequiresMainThread
public abstract class AbstractMessage implement... | package net.wizardsoflua.testenv.net;
import java.io.IOException;
import io.netty.buffer.ByteBuf;
import net.minecraft.network.PacketBuffer;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
@RequiresMainThread
public abstract class AbstractMessage implements IMessage {
protected abstract void read(... | Remove use of the deprecated method Throwables.propagate | Remove use of the deprecated method Throwables.propagate
| Java | apache-2.0 | mkarneim/luamod |
410cf7dd34491d81ec7311cc5116bce9351ef902 | okhttp/src/main/java/com/squareup/okhttp/internal/http/HttpMethod.java | okhttp/src/main/java/com/squareup/okhttp/internal/http/HttpMethod.java | /*
* Copyright (C) 2014 Square, 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 agre... | /*
* Copyright (C) 2014 Square, 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 agre... | Add support for WebDAV HTTP methods (RFC 4918) | Add support for WebDAV HTTP methods (RFC 4918)
| Java | apache-2.0 | rschilling/okhttp,SunnyDayDev/okhttp,xph906/NewOKHttp,Synix/okhttp,cmzy/okhttp,ze-pequeno/okhttp,Voxer/okhttp,artem-zinnatullin/okhttp,cnoldtree/okhttp,teffy/okhttp,apoorvmahajan/okhttp,nfuller/okhttp,nachocove/okhttp,SunnyDayDev/okhttp,wfxiang08/okhttp,cketti/okhttp,yschimke/okhttp,ansman/okhttp,hgl888/okhttp,zmarkan/... |
b302b0b9a12ae01fb7b2ba8179ee2ae69c43cde1 | core/src/main/java/org/bouncycastle/asn1/x9/X9ECParametersHolder.java | core/src/main/java/org/bouncycastle/asn1/x9/X9ECParametersHolder.java | package org.bouncycastle.asn1.x9;
public abstract class X9ECParametersHolder
{
private X9ECParameters params;
public X9ECParameters getParameters()
{
if (params == null)
{
params = createParameters();
}
return params;
}
protected abstract X9ECParameter... | package org.bouncycastle.asn1.x9;
public abstract class X9ECParametersHolder
{
private X9ECParameters params;
public synchronized X9ECParameters getParameters()
{
if (params == null)
{
params = createParameters();
}
return params;
}
protected abstract ... | Add synchronized to lazy factory method | Add synchronized to lazy factory method
| Java | mit | bcgit/bc-java,onessimofalconi/bc-java,onessimofalconi/bc-java,isghe/bc-java,open-keychain/spongycastle,bcgit/bc-java,Skywalker-11/spongycastle,open-keychain/spongycastle,Skywalker-11/spongycastle,isghe/bc-java,onessimofalconi/bc-java,open-keychain/spongycastle,isghe/bc-java,bcgit/bc-java,Skywalker-11/spongycastle |
4aa9efa478f5e56be8eac67155a060d49cd3aaaf | src/main/java/com/fns/xlator/client/impl/FrenglyClientSettings.java | src/main/java/com/fns/xlator/client/impl/FrenglyClientSettings.java | package com.fns.xlator.client.impl;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties(prefix = ... | package com.fns.xlator.client.impl;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties(prefix = ... | Make email and password have default values | Make email and password have default values
* which must be overriden | Java | apache-2.0 | fastnsilver/xlator,fastnsilver/xlator |
99d3df5514a2bfa6d4cb9686a41e9723b57d82a3 | src/main/java/com/jenjinstudios/io/annotations/MessageAdapter.java | src/main/java/com/jenjinstudios/io/annotations/MessageAdapter.java | package com.jenjinstudios.io.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Used for converting a message of one class into another class.
*
* @author Caleb Brinkman
*/
@Retention(R... | package com.jenjinstudios.io.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Used for converting a message of one class into another class.
*
* @author Caleb Brinkman
*/
@Retention(R... | Make adaptFrom parameter default to empty String | Make adaptFrom parameter default to empty String
| Java | mit | floralvikings/jenjin-io |
846b7930f2edb32ce48e256f5ad5bdec2398356f | src/Starlorn.java | src/Starlorn.java | package edu.stuy.starlorn;
import java.io.IOException;
import edu.stuy.starlorn.graphics.Screen;
import edu.stuy.starlorn.menu.Menu;
import edu.stuy.starlorn.util.Preferences;
public class Starlorn {
public static void main(String[] args) {
Screen screen = new Screen();
Menu menu = new Menu(screen... | package edu.stuy.starlorn;
import java.io.IOException;
import edu.stuy.starlorn.graphics.Screen;
import edu.stuy.starlorn.menu.Menu;
import edu.stuy.starlorn.util.Preferences;
public class Starlorn {
public static void main(String[] args) {
Screen screen = new Screen();
Menu menu = new Menu(screen... | Save preferences before exiting the game | Save preferences before exiting the game
| Java | mit | Hypersonic/Starlorn |
6490273d2a5da74c6508f1ced198d05f16dcfe39 | src/org/biojava/bio/symbol/DNANoAmbPack.java | src/org/biojava/bio/symbol/DNANoAmbPack.java | package org.biojava.bio.symbol;
import java.util.*;
import org.biojava.bio.seq.*;
/**
* @author Matthew Pocock
*/
public class DNANoAmbPack
implements
Packing
{
Symbol placeHolder;
public DNANoAmbPack(Symbol placeHolder) {
this.placeHolder = placeHolder;
}
public FiniteAlphabet getAlphabet()... | package org.biojava.bio.symbol;
import java.util.*;
import org.biojava.bio.seq.*;
/**
* @author Matthew Pocock
* @author Thomas Down
*/
public class DNANoAmbPack
implements
Packing
{
final byte placeHolder;
public DNANoAmbPack(byte placeHolder) {
this.placeHolder = placeHolder;
}
p... | Allow proper differentiation of unknown (e.g. ambiguity) symbols. | Allow proper differentiation of unknown (e.g. ambiguity) symbols.
git-svn-id: ed25c26de1c5325e8eb0deed0b990ab8af8a4def@2038 7c6358e6-4a41-0410-a743-a5b2a554c398
| Java | lgpl-2.1 | sbliven/biojava,sbliven/biojava,sbliven/biojava |
adbc2b526c34f253fa729e45f45951cc9b11e4a2 | app/src/main/java/sleepyweasel/purplefluffernutter/MainActivity.java | app/src/main/java/sleepyweasel/purplefluffernutter/MainActivity.java | package sleepyweasel.purplefluffernutter;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCr... | package sleepyweasel.purplefluffernutter;
import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
public class MainActivity extends ActionBarActivity {
... | Switch view to list screen on button click | Switch view to list screen on button click
| Java | mit | OperationSleepyWeasel/PurpleFlufferNutter |
a186e68ca01c925b28e01a2812e56557c2a58de7 | MyTracks/src/com/google/android/apps/mytracks/MyTracksApplication.java | MyTracks/src/com/google/android/apps/mytracks/MyTracksApplication.java | // Copyright 2011 Google Inc. All Rights Reserved.
package com.google.android.apps.mytracks;
import com.google.android.apps.mytracks.content.TrackDataHub;
import android.app.Application;
/**
* MyTracksApplication for keeping global state.
*
* @author jshih@google.com (Jimmy Shih)
*
*/
public class MyTracksApp... | /*
* Copyright 2008 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 in w... | Fix based on Sandor's comments | Fix based on Sandor's comments
| Java | apache-2.0 | Plonk42/mytracks |
dab61f94527033739b380435e92278557612f694 | src/org/sablecc/sablecc/launcher/OptionArgument.java | src/org/sablecc/sablecc/launcher/OptionArgument.java | /* This file is part of SableCC ( http://sablecc.org ).
*
* See the NOTICE file distributed with this work for copyright information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... | /* This file is part of SableCC ( http://sablecc.org ).
*
* See the NOTICE file distributed with this work for copyright information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... | Add javadoc comments. See ticket:58. | Add javadoc comments. See ticket:58.
Signed-off-by: Patrick Pelletier <4307fca26d0353058fbfb17dc5f40867e5e6b8e6@gmail.com>
Signed-off-by: Etienne M. Gagnon <bf06ec0eb40152cd863534753d026b021022c851@j-meg.com>
| Java | apache-2.0 | jdassonvil/sablecc,jdassonvil/sablecc,jdassonvil/sablecc,privat/sablecc,jdassonvil/sablecc,privat/sablecc,privat/sablecc,privat/sablecc,privat/sablecc,jdassonvil/sablecc |
0366fc2d98d8dc50e547b0d0ac5fa99a4ff3f26b | presto-hive/src/main/java/com/facebook/presto/hive/HiveDecimalParser.java | presto-hive/src/main/java/com/facebook/presto/hive/HiveDecimalParser.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... | Apply same rounding as Hive does when converting text to decimal | Apply same rounding as Hive does when converting text to decimal
| Java | apache-2.0 | Teradata/presto,mvp/presto,mbeitchman/presto,martint/presto,sumitkgec/presto,aleph-zero/presto,svstanev/presto,sumitkgec/presto,hgschmie/presto,svstanev/presto,smartnews/presto,mvp/presto,youngwookim/presto,stewartpark/presto,mandusm/presto,wyukawa/presto,hgschmie/presto,damiencarol/presto,miniway/presto,ebyhr/presto,t... |
aec8f8d355c0036b917f2b1d25bef4fbbc04904c | src/main/java/com/bnorm/auto/weave/internal/chain/AfterThrowingChain.java | src/main/java/com/bnorm/auto/weave/internal/chain/AfterThrowingChain.java | package com.bnorm.auto.weave.internal.chain;
import com.bnorm.auto.weave.AfterThrowingJoinPoint;
import com.bnorm.auto.weave.internal.Pointcut;
public abstract class AfterThrowingChain extends WrapChain {
public AfterThrowingChain(Chain wrapped, Pointcut pointcut) {
super(wrapped, pointcut);
}
@... | package com.bnorm.auto.weave.internal.chain;
import com.bnorm.auto.weave.AfterThrowingJoinPoint;
import com.bnorm.auto.weave.internal.Pointcut;
public abstract class AfterThrowingChain extends WrapChain {
public AfterThrowingChain(Chain wrapped, Pointcut pointcut) {
super(wrapped, pointcut);
}
@... | Fix after throwing chain to catch the right exception | Fix after throwing chain to catch the right exception
| Java | apache-2.0 | bnorm/auto-weave |
c410c64aba46a3f80442d5e09371a01eb8a39b2d | source/main/net/acomputerdog/core/tree/Branch.java | source/main/net/acomputerdog/core/tree/Branch.java | package net.acomputerdog.core.tree;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
public class Branch<T> {
private final Branch<T> parent;
private final Set<Branch<T>> branches = new HashSet<Branch<T>>();
private final Set<Leaf<T>> leaves = new HashSet<Leaf<T>>();
priva... | package net.acomputerdog.core.tree;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
public class Branch<T> {
private final Branch<T> parent;
private final List<Branch<T>> branches = new LinkedList<Branch<T>>();
private final List<Leaf<T>> leaves = new LinkedList<Leaf<T>>(... | Fix branches being mixed in Tree structure | Fix branches being mixed in Tree structure
| Java | bsd-2-clause | Sollace/CompCore |
736239d9540e880505092af558aed408a4e94abe | axelor-core/src/main/java/com/axelor/meta/schema/views/PanelInclude.java | axelor-core/src/main/java/com/axelor/meta/schema/views/PanelInclude.java | /*
* Axelor Business Solutions
*
* Copyright (C) 2005-2018 Axelor (<http://axelor.com>).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distri... | /*
* Axelor Business Solutions
*
* Copyright (C) 2005-2018 Axelor (<http://axelor.com>).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distri... | Revert "Warn about deprecated "panel-include" tag" | Revert "Warn about deprecated "panel-include" tag"
This reverts commit 3d71a8e3eb9828e5412ec9e6060e6b28d98bd3a4.
| Java | agpl-3.0 | axelor/axelor-development-kit,axelor/axelor-development-kit,axelor/axelor-development-kit,axelor/axelor-development-kit |
b11c8db0d0691478f50fdf1d47d03495cc4b26e0 | src/main/java/com/elmakers/mine/bukkit/api/wand/WandUpgradePath.java | src/main/java/com/elmakers/mine/bukkit/api/wand/WandUpgradePath.java | package com.elmakers.mine.bukkit.api.wand;
import com.elmakers.mine.bukkit.api.magic.Mage;
import java.util.Collection;
public interface WandUpgradePath {
public String getKey();
public String getName();
public boolean requiresSpell(String spellKey);
public boolean hasSpell(String spellKey);
publ... | package com.elmakers.mine.bukkit.api.wand;
import com.elmakers.mine.bukkit.api.magic.Mage;
import java.util.Collection;
public interface WandUpgradePath {
public String getKey();
public String getName();
public boolean requiresSpell(String spellKey);
public boolean hasSpell(String spellKey);
publ... | Add path translation to fix parallel paths not upgrading spells | Add path translation to fix parallel paths not upgrading spells
| Java | mit | elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicAPI,elBukkit/MagicPlugin |
a767a3f72191d431fd9f03543b812bf755fd48de | src/main/java/org/biojava/examples/MapChains.java | src/main/java/org/biojava/examples/MapChains.java | package org.biojava.examples;
import javax.vecmath.Point3d;
import org.apache.spark.api.java.JavaPairRDD;
import org.biojava.spark.data.StructureDataRDD;
/**
* Example of mapping the PDB to chains of just C-alpha coords.
* @author Anthony Bradley
*
*/
public class MapChains {
/**
* Example of mapping the PDB... | package org.biojava.examples;
import org.biojava.spark.data.StructureDataRDD;
/**
* Example of mapping the PDB to chains of just C-alpha coords.
* Calculate the mean C-alpha length in the PDB.
* @author Anthony Bradley
*
*/
public class MapChains {
/**
* Example of mapping the PDB to chains of just C-alpha ... | Clean up the C-alpha example. | Clean up the C-alpha example.
| Java | lgpl-2.1 | biojava/biojava-spark,abradle/biojava-spark |
619622e364ed3a4195e6f9ff522b0a4540ef815c | src/main/java/nl/ekholabs/nlp/controller/FaceClassifierController.java | src/main/java/nl/ekholabs/nlp/controller/FaceClassifierController.java | package nl.ekholabs.nlp.controller;
import java.io.IOException;
import nl.ekholabs.nlp.client.ElsieDeeSightFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.... | package nl.ekholabs.nlp.controller;
import java.io.IOException;
import nl.ekholabs.nlp.client.ElsieDeeSightFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.... | Rename Face Classifier controller method. | Rename Face Classifier controller method.
| Java | mit | ekholabs/elsie-dee |
837876b8da4c406041a6c2deb83a1e32d8bfb13f | keratin-core/src/ca/szc/keratin/core/net/handlers/ServerPingHandler.java | keratin-core/src/ca/szc/keratin/core/net/handlers/ServerPingHandler.java | /**
* Copyright (C) 2013 Alexander Szczuczko
*
* This file may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package ca.szc.keratin.core.net.handlers;
import net.engio.mbassy.listener.Handler;
import org.pmw.tinylog.Logger;
import ca.szc.keratin.core.even... | /**
* Copyright (C) 2013 Alexander Szczuczko
*
* This file may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package ca.szc.keratin.core.net.handlers;
import net.engio.mbassy.listener.Handler;
import org.pmw.tinylog.Logger;
import ca.szc.keratin.core.even... | Handle ReceivePong events, do nothing. Just to stop unhandled message flooding. | Handle ReceivePong events, do nothing. Just to stop unhandled message flooding.
| Java | mit | ASzc/keratin-irc,emmettu/keratin-irc |
d93791f29df419547a18246b6cedcc6cfef7467d | src/main/java/au/gov/dto/dibp/appointments/config/WebMvcConfig.java | src/main/java/au/gov/dto/dibp/appointments/config/WebMvcConfig.java | package au.gov.dto.dibp.appointments.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
@Configuration
public class WebMvcConfig extends ... | package au.gov.dto.dibp.appointments.config;
import org.springframework.boot.autoconfigure.mustache.web.MustacheViewResolver;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annot... | Configure MustacheViewResolver as default view resolver | Configure MustacheViewResolver as default view resolver
| Java | mit | AusDTO/citizenship-appointment-server,AusDTO/citizenship-appointment-server,AusDTO/citizenship-appointment-server |
58677d8a2230c7b8e655c2674a42d2cab655c265 | sometests/src/test/java/org/jenkinsci/plugins/workflow/demo/AppTest.java | sometests/src/test/java/org/jenkinsci/plugins/workflow/demo/AppTest.java | package org.jenkinsci.plugins.workflow.demo;
import org.apache.commons.io.IOUtils;
import org.junit.Assert;
import org.junit.Test;
import java.net.URL;
/**
* Integration test for webapp.
*/
public class AppTest extends Assert {
@Test
public void testApp() throws Exception {
URL app = getSUT();
... | package org.jenkinsci.plugins.workflow.demo;
import org.apache.commons.io.IOUtils;
import org.junit.Assert;
import org.junit.Test;
import java.net.URL;
/**
* Integration test for webapp.
*/
public class AppTest extends Assert {
@Test
public void testApp() throws Exception {
URL app = getSUT();
... | Allow the duration to be overridden. | Allow the duration to be overridden. | Java | mit | ganthore/docker-workflow-plugin,ganthore/docker-workflow-plugin,ganthore/docker-workflow-plugin |
ba5d5cce7fa5a6b0f67f6262c45a284c5a212a72 | src/main/java/seedu/jobs/logic/LogicManager.java | src/main/java/seedu/jobs/logic/LogicManager.java | package seedu.jobs.logic;
import java.io.IOException;
import java.util.logging.Logger;
import javafx.collections.ObservableList;
import seedu.jobs.commons.core.ComponentManager;
import seedu.jobs.commons.core.LogsCenter;
import seedu.jobs.logic.calendar.CalendarManager;
import seedu.jobs.logic.commands.Command;
impor... | package seedu.jobs.logic;
import java.io.IOException;
import java.util.logging.Logger;
import javafx.collections.ObservableList;
import seedu.jobs.commons.core.ComponentManager;
import seedu.jobs.commons.core.LogsCenter;
import seedu.jobs.logic.calendar.CalendarManager;
import seedu.jobs.logic.commands.Command;
impor... | Add new constructor for logic manager | Add new constructor for logic manager | Java | mit | CS2103JAN2017-F11-B1/main,CS2103JAN2017-F11-B1/main |
cfd3e3a8ff0e1d3c152d8b9d4fb2c2800931779f | javatests/dagger/android/support/functional/TestIntentService.java | javatests/dagger/android/support/functional/TestIntentService.java | /*
* Copyright (C) 2017 The Dagger Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | /*
* Copyright (C) 2017 The Dagger Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | Use a zero-arg constructor for our test IntentService | Use a zero-arg constructor for our test IntentService
See https://github.com/robolectric/robolectric/pull/3090
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=193692162
| Java | apache-2.0 | ze-pequeno/dagger,cgruber/dagger,google/dagger,google/dagger,google/dagger,cgruber/dagger,ze-pequeno/dagger,ze-pequeno/dagger,ze-pequeno/dagger,dushmis/dagger,cgruber/dagger,dushmis/dagger,google/dagger |
84127a5b922492bd54f024c7eec219f1d19e63e4 | mobile/src/main/java/com/dglogik/mobile/Utils.java | mobile/src/main/java/com/dglogik/mobile/Utils.java | package com.dglogik.mobile;
import android.app.ActivityManager;
import android.app.Service;
import android.app.*;
import android.graphics.*;
import android.graphics.drawable.*;
import android.content.Context;
import android.support.annotation.NonNull;
public class Utils {
public static boolean isServiceRunning(@N... | package com.dglogik.mobile;
import android.app.ActivityManager;
import android.app.Service;
import android.app.*;
import android.graphics.*;
import android.graphics.drawable.*;
import android.content.Context;
import android.support.annotation.NonNull;
public class Utils {
public static boolean isServiceRunning(@N... | Handle ActionBar possibly not existing. | Handle ActionBar possibly not existing.
| Java | apache-2.0 | IOT-DSA/dslink-java-android,IOT-DSA/dslink-java-android |
57cb42ad299ee4d4d2f673bccfcf6f3eb686ff9e | core/src/main/java/com/github/jsonldjava/utils/JarCacheResource.java | core/src/main/java/com/github/jsonldjava/utils/JarCacheResource.java | package com.github.jsonldjava.utils;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import org.apache.http.client.cache.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class JarCacheResource implements Resource {
private stat... | package com.github.jsonldjava.utils;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import org.apache.http.client.cache.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class JarCacheResource implements Resource {
private stat... | Use URLConnection.getContentLengthLong now that we don't support Java-6 | Use URLConnection.getContentLengthLong now that we don't support Java-6
Signed-off-by: Peter Ansell <aaf1ec639befe0a570b950d5d6cbd0c6638a063e@yahoo.com>
| Java | bsd-3-clause | jsonld-java/jsonld-java |
b4521ce6296d14225b75dc04f6eb3948d6384072 | src/login/PasswordHelper.java | src/login/PasswordHelper.java | package login;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class PasswordHelper
{
public static String generatePasswordHash(String password)
{
//Create instances of digest and password char array
MessageDigest passDigest;... | package login;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class PasswordHelper
{
private static String hashAlgorithm = "MD5";
private static String stringEncodingFormat = "UTF-8";
public static String generatePasswordHas... | Move algorithm types to static strings on top | Move algorithm types to static strings on top
| Java | mit | TeamRedFox/PointOfSale |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.