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 |
|---|---|---|---|---|---|---|---|---|---|
c5353cf6cd993733f6867a8c691d3a67da5c06f4 | src/main/java/com/easternedgerobotics/rov/io/MPX4250AP.java | src/main/java/com/easternedgerobotics/rov/io/MPX4250AP.java | package com.easternedgerobotics.rov.io;
/**
* A MPX4250 is an absolute pressure (AP) sensor. See also: <a href="http://goo.gl/n7c8tY">MPX4250</a>.
*/
public final class MPX4250AP {
/**
* Scalar value for calculating pressure from voltage.
*/
private static final float PRESSURE_SCALAR = 0.264909785f... | package com.easternedgerobotics.rov.io;
import rx.Observable;
/**
* A MPX4250 is an absolute pressure (AP) sensor. See also: <a href="http://goo.gl/n7c8tY">MPX4250</a>.
*/
public final class MPX4250AP {
/**
* Scalar value for calculating pressure from voltage.
*/
private static final float PRESSUR... | Add pressure sensor calibration fn | Add pressure sensor calibration fn
| Java | mit | EasternEdgeRobotics/2016,EasternEdgeRobotics/2016,EasternEdgeRobotics/2016,EasternEdgeRobotics/2016 |
9aec7a51ff7c392d671e6fda4ea41d4a2c7a7ee7 | src/main/java/com/suse/saltstack/netapi/datatypes/Event.java | src/main/java/com/suse/saltstack/netapi/datatypes/Event.java | package com.suse.saltstack.netapi.datatypes;
import java.util.HashMap;
/**
* Parse events into objects.
*/
public class Event {
private String tag;
private HashMap<String, Object> data;
/**
* Return this event's tag.
* @return the tag
*/
public String getTag() {
return tag;
... | package com.suse.saltstack.netapi.datatypes;
import java.util.Map;
/**
* Parse events into objects.
*/
public class Event {
private String tag;
private Map<String, Object> data;
/**
* Return this event's tag.
* @return the tag
*/
public String getTag() {
return tag;
}
... | Make data being a Map instead of HashMap | Make data being a Map instead of HashMap
| Java | mit | jkandasa/saltstack-netapi-client-java,mbologna/saltstack-netapi-client-java,SUSE/saltstack-netapi-client-java,jkandasa/saltstack-netapi-client-java,mbologna/salt-netapi-client,lucidd/saltstack-netapi-client-java,mbologna/saltstack-netapi-client-java,lucidd/saltstack-netapi-client-java,SUSE/salt-netapi-client,SUSE/salts... |
9397cb50270d20b1884ca2b0298e7a95685a98d1 | src/main/java/it/uniroma2/ember/EmberSensorsAggregation.java | src/main/java/it/uniroma2/ember/EmberSensorsAggregation.java | package it.uniroma2.ember;
/**
* Created by odysseus on 09/03/17.
*/
public class EmberSensorsAggregation {
}
| package it.uniroma2.ember;
import org.apache.flink.api.java.functions.KeySelector;
import org.apache.flink.api.java.tuple.Tuple2;
/**
* This is a utility class for aggregate statistics in Project Ember
*/
public class EmberSensorsAggregation {
/**
* Implements a simple KeySelector to divide by key (addre... | Add key selectors for aggregation of traffic and lumen. | Add key selectors for aggregation of traffic and lumen.
| Java | apache-2.0 | ProjectEmber/project-ember |
a552e00553189ea2a39c0bc5ff7ea463d6c64a2a | src/main/java/ws/biotea/ld2rdf/rdf/model/BaseAnnotation.java | src/main/java/ws/biotea/ld2rdf/rdf/model/BaseAnnotation.java | package ws.biotea.ld2rdf.rdf.model;
import ws.biotea.ld2rdf.util.OntologyPrefix;
import java.io.Serializable;
/**
* OpenAnnotation: This class represents a general annotation on a Document.
* @author leylajael
*/
public class BaseAnnotation implements Serializable {
private static final long serialVersionUID = 1L... | package ws.biotea.ld2rdf.rdf.model;
import ws.biotea.ld2rdf.util.OntologyPrefix;
import java.io.Serializable;
/**
* OpenAnnotation: This class represents a general annotation on a Document.
* @author leylajael
*/
public class BaseAnnotation implements Serializable {
private static final long serialVersionUID = 1L... | Use SIO:is_data _item in rather than void:inDataset | Use SIO:is_data _item in rather than void:inDataset
| Java | apache-2.0 | biotea/biotea-ao |
090066920e2f8f5f292ac29046a85e8f9d8abe96 | src/info/tregmine/commands/GameModeCommand.java | src/info/tregmine/commands/GameModeCommand.java | package info.tregmine.commands;
import static org.bukkit.ChatColor.*;
import org.bukkit.GameMode;
import info.tregmine.Tregmine;
import info.tregmine.api.TregminePlayer;
public class GameModeCommand extends AbstractCommand
{
private GameMode mode;
public GameModeCommand(Tregmine tregmine, String name, GameM... | package info.tregmine.commands;
import static org.bukkit.ChatColor.*;
import info.tregmine.api.Rank;
import org.bukkit.GameMode;
import info.tregmine.Tregmine;
import info.tregmine.api.TregminePlayer;
public class GameModeCommand extends AbstractCommand
{
private GameMode mode;
private Tregmine tregmine;
... | Stop builders creative privledge in Anarchy | Stop builders creative privledge in Anarchy
| Java | bsd-3-clause | EmilHernvall/tregmine,EmilHernvall/tregmine,EmilHernvall/tregmine,Clunker5/tregmine-2.0,Clunker5/tregmine-2.0 |
7b9e100a18e6c9e2112021b08d9f77fa66989ecf | requery-android/src/main/java/io/requery/android/DefaultMapping.java | requery-android/src/main/java/io/requery/android/DefaultMapping.java | /*
* Copyright 2016 requery.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 required by applicable law or agreed to i... | /*
* Copyright 2016 requery.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 required by applicable law or agreed to i... | Remove ParcelConverter from default mapping | Remove ParcelConverter from default mapping
| Java | apache-2.0 | sakuna63/requery,requery/requery,requery/requery,sakuna63/requery |
271df6a2cfb7319be7d0bf70906982d8c800c032 | rxandroid/src/test/java/rx/android/plugins/RxAndroidPluginsTest.java | rxandroid/src/test/java/rx/android/plugins/RxAndroidPluginsTest.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | Remove unnecessary reset. These tests don't use the global instance. | Remove unnecessary reset. These tests don't use the global instance.
| Java | apache-2.0 | MaTriXy/RxAndroid,PibeDx/RxAndroid,ReactiveX/RxAndroid,EddieRingle/RxAndroid,PibeDx/RxAndroid,MaTriXy/RxAndroid |
af7c43b08777d4ea3df6761fd4a3cc17e177cbcb | src/it/test/java/it/BachTests.java | src/it/test/java/it/BachTests.java | /*
* Bach - Java Shell Builder
* Copyright (C) 2019 Christian Stein
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | /*
* Bach - Java Shell Builder
* Copyright (C) 2019 Christian Stein
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | Check date time based pattern as module version | Check date time based pattern as module version
| Java | mit | sormuras/bach,sormuras/bach |
c9a7a819e51d0ca1e1c43fc11a4b341933b94ebb | src/main/java/editor/gui/ccp/handler/EditorFrameTransferHandler.java | src/main/java/editor/gui/ccp/handler/EditorFrameTransferHandler.java | package editor.gui.ccp.handler;
import editor.gui.editor.EditorFrame;
@SuppressWarnings("serial")
public class EditorFrameTransferHandler extends EditorTransferHandler
{
public EditorFrameTransferHandler(EditorFrame e, int i)
{
super(new EntryImportHandler(e, i), new CardImportHandler(e, i));
}
} | package editor.gui.ccp.handler;
import editor.gui.editor.EditorFrame;
/**
* Transfer handler for importing cards into decks via the editor frame
* (rather than a table in the frame). Mainly used for convenience for
* drag-and-drop.
*
* @author Alec Roelke
*/
@SuppressWarnings("serial")
public class EditorFram... | Add documentation to editor frame transfer handler | Add documentation to editor frame transfer handler
| Java | mit | aroelke/deck-editor-java |
8ef5f4c811cfc2704fbfb99858602b49056386af | src/main/java/io/collap/bryg/Template.java | src/main/java/io/collap/bryg/Template.java | package io.collap.bryg;
import io.collap.bryg.exception.InvalidInputParameterException;
import io.collap.bryg.model.Model;
import javax.annotation.Nullable;
import java.io.Writer;
/**
* Implementations of the template interface must be thread-safe, as only a single object is used to render all instances
* of the t... | package io.collap.bryg;
import io.collap.bryg.exception.InvalidInputParameterException;
import io.collap.bryg.model.Model;
import java.io.Writer;
/**
* Implementations of the template interface must be thread-safe, as only a single object is used to render all instances
* of the template.
*/
public interface Temp... | Remove nullability of the Model when invoking a template, to reduce problems with global variables. | Remove nullability of the Model when invoking a template, to reduce problems with global variables.
| Java | mit | Collap/bryg |
8adfceb0e4c482b5cc3119dbeffc2c4335c9d553 | jctools-core/src/main/java/org/jctools/util/UnsafeAccess.java | jctools-core/src/main/java/org/jctools/util/UnsafeAccess.java | package org.jctools.util;
import java.lang.reflect.Field;
import sun.misc.Unsafe;
public class UnsafeAccess {
public static final Unsafe UNSAFE;
static {
try {
// This is a bit of voodoo to force the unsafe object into
// visibility and acquire it.
// This is not p... | package org.jctools.util;
import java.lang.reflect.Field;
import java.util.concurrent.atomic.AtomicReferenceArray;
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
import sun.misc.Unsafe;
/**
* Why should we resort to using Unsafe?<br>
* <ol>
* <li>To construct class fields which allow volatile/ord... | Add comment justifying the use of UNSAFE. | Add comment justifying the use of UNSAFE. | Java | apache-2.0 | franz1981/JCTools,fengjiachun/JCTools,akarnokd/JCTools,thomasdarimont/JCTools,mackstone/JCTools,JCTools/JCTools |
108b6e20c7021b1bd8db8f361a05a0bb87e56565 | src/test/java/me/coley/recaf/DecompileTest.java | src/test/java/me/coley/recaf/DecompileTest.java | package me.coley.recaf;
import me.coley.recaf.decompile.fernflower.FernFlowerDecompiler;
import me.coley.recaf.workspace.*;
import org.junit.jupiter.api.*;
import java.io.IOException;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.fail;
public class Deco... | package me.coley.recaf;
import me.coley.recaf.decompile.fernflower.FernFlowerDecompiler;
import me.coley.recaf.workspace.*;
import org.junit.jupiter.api.*;
import java.io.IOException;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.fail;
public class Deco... | Test for decompile against all classes in the primary resource | Test for decompile against all classes in the primary resource
| Java | mit | Col-E/Recaf,Col-E/Recaf |
9f9fee2d7997badbeb39c903c5f493a9f2857799 | src/main/java/org/codeswarm/lipsum/AttributeRendererImpl.java | src/main/java/org/codeswarm/lipsum/AttributeRendererImpl.java | package org.codeswarm.lipsum;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
class AttributeRendererImpl implements Lipsum.AttributeRenderer {
private final Map<String, Lipsum.ParagraphGenerator> registeredLipsums = new HashMap<String, Lipsum.ParagraphGenerator>();
@Override
public v... | package org.codeswarm.lipsum;
import com.google.common.collect.Maps;
import java.util.Locale;
import java.util.Map;
class AttributeRendererImpl implements Lipsum.AttributeRenderer {
private final Map<String, Lipsum.ParagraphGenerator> registeredLipsums =
Maps.newHashMapWithExpectedSize(4);
@Override
publ... | Use guava to construct the HashMap. | Use guava to construct the HashMap.
| Java | apache-2.0 | chris-martin/lipsum |
0060c685fd5e05d0425070aafcb11263683c6f68 | tchannel-core/src/main/java/com/uber/tchannel/api/RequestHandler.java | tchannel-core/src/main/java/com/uber/tchannel/api/RequestHandler.java | /*
* Copyright (c) 2015 Uber Technologies, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, me... | /*
* Copyright (c) 2015 Uber Technologies, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, me... | Address @truncs comment on Generic Type naming | Address @truncs comment on Generic Type naming
| Java | mit | shiningguang/tchannel-java,247687009/tchannel-java,uber/tchannel-java,uber/tchannel-java,cotsog/tchannel-java |
754f8e01f8c96ae2ecd4a97ba38f61f2050c4307 | test/models/jbehave/JBehaveRunnerAssistant.java | test/models/jbehave/JBehaveRunnerAssistant.java | package models.jbehave;
import play.test.TestServer;
import play.test.Helpers;
public class JBehaveRunnerAssistant extends JBehaveRunnerCommandLine {
private TestServer server;
public static void main(String[] args) throws Throwable {
JBehaveRunnerAssistant cpRunner = new JBehaveRunnerAssistant();
... | package models.jbehave;
import play.test.TestServer;
import play.test.Helpers;
public class JBehaveRunnerAssistant extends JBehaveRunnerCommandLine {
private TestServer server;
public static void main(String[] args) throws Throwable {
JBehaveRunnerAssistant cpRunner = new JBehaveRunnerAssistant();
... | Change the runner so that exit is forced within the main. | Change the runner so that exit is forced within the main.
| Java | apache-2.0 | TechnologyConversations/TechnologyConversationsBdd,TechnologyConversations/TechnologyConversationsBdd,TechnologyConversations/TechnologyConversationsBdd,TechnologyConversations/TechnologyConversationsBdd,TechnologyConversations/TechnologyConversationsBdd |
953daa2f16e4ab35ca53057a94e8b60a59fa58e5 | src/haushaltsbuch/controllers/ContentTypeFilter.java | src/haushaltsbuch/controllers/ContentTypeFilter.java | package haushaltsbuch.controllers;
import java.io.IOException;
import java.util.Locale;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servle... | package haushaltsbuch.controllers;
import java.io.IOException;
import java.util.Locale;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servle... | Fix weird character issues by hard-coding to UTF-8 | Fix weird character issues by hard-coding to UTF-8
| Java | apache-2.0 | suhlig/HDM-Haushaltsbuch,suhlig/HDM-Haushaltsbuch,suhlig/HDM-Haushaltsbuch |
bc229564492856997683230287fc963841006dfd | src/main/java/org/rnorth/dropwizard/markdown/demo/DemoApplication.java | src/main/java/org/rnorth/dropwizard/markdown/demo/DemoApplication.java | package org.rnorth.dropwizard.markdown.demo;
import io.dropwizard.Application;
import io.dropwizard.Configuration;
import io.dropwizard.setup.Bootstrap;
import io.dropwizard.setup.Environment;
import org.rnorth.dropwizard.markdown.MarkdownAssetsBundle;
import org.rnorth.dropwizard.markdown.MarkdownAssetsConfiguration;... | package org.rnorth.dropwizard.markdown.demo;
import io.dropwizard.Application;
import io.dropwizard.Configuration;
import io.dropwizard.setup.Bootstrap;
import io.dropwizard.setup.Environment;
import org.rnorth.dropwizard.markdown.MarkdownAssetsBundle;
import org.rnorth.dropwizard.markdown.MarkdownAssetsConfiguration;... | Add redirect from / to /docs/ for demo purposes | Add redirect from / to /docs/ for demo purposes
| Java | mit | rnorth/dropwizard-markdown-assets-bundle-demo |
f0f341cd89f31443aae55eb4dfb092e24a22c6a6 | src/main/java/se/kits/gakusei/content/repository/LessonRepository.java | src/main/java/se/kits/gakusei/content/repository/LessonRepository.java | package se.kits.gakusei.content.repository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import se.kits.gakusei.content.model.Lesson;
import se.kits.gakusei.content.model.Nugget;
import java.uti... | package se.kits.gakusei.content.repository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import se.kits.gakusei.content.model.Lesson;
import se.kits.gakusei.content.model.Nugget;
import java.uti... | Sort lessons by name when retrieving from db | Sort lessons by name when retrieving from db
| Java | mit | kits-ab/gakusei,kits-ab/gakusei,kits-ab/gakusei |
3c14206f5396a8cc95fb517b71557ef2db679394 | src/main/java/uk/co/real_logic/agrona/concurrent/NoOpIdleStrategy.java | src/main/java/uk/co/real_logic/agrona/concurrent/NoOpIdleStrategy.java | /*
* Copyright 2015 Real Logic Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* Copyright 2015 Real Logic Ltd.
*
* 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 ... | Document possible TTSP issue and workaround | [Java] Document possible TTSP issue and workaround | Java | apache-2.0 | tbrooks8/Agrona,real-logic/Agrona |
da2fc270dec983338b40ad5a3ea1bd3ccf5ab4e8 | src/main/java/me/qmx/jitescript/JDKVersion.java | src/main/java/me/qmx/jitescript/JDKVersion.java | /**
* Copyright 2012 Douglas Campos <qmx@qmx.me>
*
* 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 2012 Douglas Campos <qmx@qmx.me>
*
* 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... | Add JDK 1.8 version support | Add JDK 1.8 version support
Signed-off-by: Pekka Enberg <add4fcd06328a394f0ad91feda7ee057316dc5ed@iki.fi>
| Java | apache-2.0 | qmx/jitescript |
599ca5d14fdaa68c84f979c7e99d3c62cb49bcfb | src/Sudoku.java | src/Sudoku.java |
public class Sudoku {
public static void main(String[] args) {
int difficulty = 3; //set default difficulty to easy
boolean normalTimer = true; //sets the timer to count up, instead of down
Game game = new Game(difficulty, normalTimer);
System.out.println("WHAT IS GOING ON HERE"); //a print stat... |
public class Sudoku {
public static void main(String[] args) {
//boolean normalTimer = true; //sets the timer to count up, instead of down- still needs to be implemented in StartPage
StartPage startPage = new StartPage(); //create new Start Page
System.out.println("WHAT IS GOING ON HERE"); //a ... | Add code to support StartPage functionality | Add code to support StartPage functionality | Java | mit | schiebra/sudoku,schiebra/sudoku |
799445cda59467c35c9d8e0318570919b8dcee3d | Source/library/src/main/java/im/delight/android/ddp/MeteorCallback.java | Source/library/src/main/java/im/delight/android/ddp/MeteorCallback.java | package im.delight.android.ddp;
/*
* Copyright (c) delight.im <info@delight.im>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | package im.delight.android.ddp;
/*
* Copyright (c) delight.im <info@delight.im>
*
* 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
*
... | Remove unnecessary visibility modifiers in interface | Remove unnecessary visibility modifiers in interface
| Java | apache-2.0 | delight-im/Android-DDP |
f531a092e9c87f29d15388da0d0088e379bd567e | jaq-benchmarks/src/main/java/io/jaq/spsc/SPSCQueueFactory.java | jaq-benchmarks/src/main/java/io/jaq/spsc/SPSCQueueFactory.java | package io.jaq.spsc;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.LinkedTransferQueue;
public class SPSCQueueFactory {
public static final int QUEUE_CAPACITY = 1 << Integer.getInteger("pow2.capacity", 15);
public static Queue<Integer> createQueue() {
... | package io.jaq.spsc;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.LinkedTransferQueue;
public class SPSCQueueFactory {
public static final int QUEUE_CAPACITY = 1 << Integer.getInteger("pow2.capacity", 15);
public static final int QUEUE_TYPE = Integer.g... | Make queue type a constant | Make queue type a constant | Java | apache-2.0 | thomasdarimont/JCTools,fengjiachun/JCTools,mackstone/JCTools,franz1981/JCTools,JCTools/JCTools,akarnokd/JCTools |
5b73f28162cbbadcec295fe773cace920ea7f1c6 | test/com/twu/biblioteca/ExampleTest.java | test/com/twu/biblioteca/ExampleTest.java | package com.twu.biblioteca;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class ExampleTest {
@Test
public void test() {
assertEquals(1, 1);
}
}
| package com.twu.biblioteca;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.junit.Assert.assertEquals;
public class ExampleTest {
private ByteArrayOutputStream outStream = new ByteArrayOutputStream();
... | Test for welcome message (failing) | Test for welcome message (failing)
| Java | apache-2.0 | watsonarw/twu-biblioteca-andrewwatson |
8845f1bd4b7554f885ea74f6a842caa28b6246ac | test/fitnesse/components/PluginsClassLoaderTest.java | test/fitnesse/components/PluginsClassLoaderTest.java | package fitnesse.components;
import static org.junit.Assert.*;
import org.junit.Test;
public class PluginsClassLoaderTest {
@Test
public void whenPluginsDirectoryDoesNotExist() throws Exception {
new PluginsClassLoader().getClassLoader("nonExistingRootDirectory");
assertTrue("didn't cause exception", ... | package fitnesse.components;
import static org.junit.Assert.*;
import org.junit.Test;
public class PluginsClassLoaderTest {
@Test
public void whenPluginsDirectoryDoesNotExist() throws Exception {
new PluginsClassLoader().getClassLoader("nonExistingRootDirectory");
assertTrue("didn't cause exception", ... | Remove no longer valid todo | Remove no longer valid todo
| Java | epl-1.0 | amolenaar/fitnesse,amolenaar/fitnesse,amolenaar/fitnesse |
aa55b1577582b61c011a2af2e4e5f3bf78421e38 | src/main/java/com/techcavern/wavetact/Main.java | src/main/java/com/techcavern/wavetact/Main.java | package com.techcavern.wavetact;
import com.techcavern.wavetact.utils.CommandLineUtils;
import com.techcavern.wavetact.utils.GeneralRegistry;
import com.techcavern.wavetact.utils.IRCUtils;
import org.slf4j.impl.SimpleLogger;
@SuppressWarnings("ConstantConditions")
public class Main {
public static void main(St... | package com.techcavern.wavetact;
import com.techcavern.wavetact.utils.CommandLineUtils;
import com.techcavern.wavetact.utils.GeneralRegistry;
import com.techcavern.wavetact.utils.IRCUtils;
import org.slf4j.impl.SimpleLogger;
@SuppressWarnings("ConstantConditions")
public class Main {
public static void main(St... | Add system parameter for dev mode | Add system parameter for dev mode
| Java | mit | TechCavern/WaveTact |
401d6bf1e5c7897b2a0871669b62d05e0d9b03f0 | httpebble/src/com/lukekorth/httpebble/receivers/PebbleDataReceiver.java | httpebble/src/com/lukekorth/httpebble/receivers/PebbleDataReceiver.java | package com.lukekorth.httpebble.receivers;
import static com.getpebble.android.kit.Constants.APP_UUID;
import static com.getpebble.android.kit.Constants.MSG_DATA;
import static com.getpebble.android.kit.Constants.TRANSACTION_ID;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.c... | package com.lukekorth.httpebble.receivers;
import static com.getpebble.android.kit.Constants.APP_UUID;
import static com.getpebble.android.kit.Constants.MSG_DATA;
import static com.getpebble.android.kit.Constants.TRANSACTION_ID;
import java.util.UUID;
import android.content.BroadcastReceiver;
import android.content.... | Fix case sensitivity of UUID check | Fix case sensitivity of UUID check
| Java | mit | lkorth/httpebble-android |
87a1a69af2789a008b06f855dd0e4d8fa5572ccb | subprojects/base-services/src/main/java/org/gradle/api/Transformer.java | subprojects/base-services/src/main/java/org/gradle/api/Transformer.java | /*
* Copyright 2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Remove `@Nullable` for backwards compatibility with Kotlin API | Remove `@Nullable` for backwards compatibility with Kotlin API
| Java | apache-2.0 | lsmaira/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,robinverduijn/gra... |
da937ef56cbbbaadbd56137ab0e642b55fc27de2 | src/main/java/com/ft/membership/crypto/signature/Encoder.java | src/main/java/com/ft/membership/crypto/signature/Encoder.java | package com.ft.membership.crypto.signature;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
public class Encoder {
private static final Base64.Encoder BASE_64_ENCODER = Base64.getUrlEncoder().withoutPadding();
private static final Base64.Decoder BASE_64_DECODER = Base64.getUrlDecoder();
... | package com.ft.membership.crypto.signature;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
public class Encoder {
private static final Base64.Encoder BASE_64_ENCODER = Base64.getUrlEncoder().withoutPadding();
private static final Base64.Decoder BASE_64_DECODER = Base64.getUrlDecoder();
... | Handle IllegalArgumentException due to bad input | Handle IllegalArgumentException due to bad input
| Java | mit | Financial-Times/crypto-signatures |
be73f1aa893c3a86c6f3c875bd43a98d5405dc01 | camel-core/src/main/java/org/apache/camel/AfterPropertiesConfigured.java | camel-core/src/main/java/org/apache/camel/AfterPropertiesConfigured.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Add note its currently only for languages | CAMEL-8820: Add note its currently only for languages
| Java | apache-2.0 | sverkera/camel,jonmcewen/camel,johnpoth/camel,mnki/camel,chirino/camel,nicolaferraro/camel,qst-jdc-labs/camel,anton-k11/camel,RohanHart/camel,YoshikiHigo/camel,skinzer/camel,dpocock/camel,yuruki/camel,pkletsko/camel,coderczp/camel,duro1/camel,tarilabs/camel,eformat/camel,mike-kukla/camel,neoramon/camel,anton-k11/camel,... |
a4f6c8bf7bf5ba49855f31831662f7964b17f962 | bin/templates/project/Activity.java | bin/templates/project/Activity.java | /*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the... | /*
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... | Enable background start of Cordova Android apps | Enable background start of Cordova Android apps
This closes #322
| Java | apache-2.0 | alsorokin/cordova-android,filmaj/cordova-android,infil00p/cordova-android,alsorokin/cordova-android,jfrumar/cordova-android,apache/cordova-android,filmaj/cordova-android,macdonst/cordova-android,dpogue/cordova-android,dpogue/cordova-android,infil00p/cordova-android,macdonst/cordova-android,mmig/cordova-android,macdonst... |
3704f106aa26b450506bd4cf5410d4059f7376c0 | src/main/java/org/cru/godtools/properties/GodToolsPropertiesFactory.java | src/main/java/org/cru/godtools/properties/GodToolsPropertiesFactory.java | package org.cru.godtools.properties;
import javax.enterprise.inject.Produces;
/**
* Created by ryancarlson on 3/26/14.
*/
public class GodToolsPropertiesFactory
{
private static final String propertiesFile = "/apps/apps-config/godtools-api-properties.xml";
private static final String propertiesFile2 = "/def... | package org.cru.godtools.properties;
import javax.enterprise.inject.Produces;
/**
* Created by ryancarlson on 3/26/14.
*/
public class GodToolsPropertiesFactory
{
private final String propertiesFile = "/apps/apps-config/godtools-api-properties.xml";
private final String propertiesFile2 = "/default-propertie... | Use filesystem properties to configure database connection instead of hard coded | Use filesystem properties to configure database connection instead of hard coded
| Java | mit | CruGlobal/godtools-api,CruGlobal/godtools-api |
112da9203ed7dbd837a57f612822d7bd11309d48 | src/org/objectweb/proactive/examples/penguin/PenguinMessageReceiver.java | src/org/objectweb/proactive/examples/penguin/PenguinMessageReceiver.java | /*
* ################################################################
*
* ProActive: The Java(TM) library for Parallel, Distributed,
* Concurrent computing with Security and Mobility
*
* Copyright (C) 1997-2002 INRIA/University of Nice-Sophia Antipolis
* Contact: proactive-support@inria.fr
*
* This libr... | /*
* ################################################################
*
* ProActive: The Java(TM) library for Parallel, Distributed,
* Concurrent computing with Security and Mobility
*
* Copyright (C) 1997-2002 INRIA/University of Nice-Sophia Antipolis
* Contact: proactive-support@inria.fr
*
* This libr... | Correct bugs and improve feature and GUI | Correct bugs and improve feature and GUI
git-svn-id: 9146c88ff6d39b48099bf954d15d68f687b3fa69@91 28e8926c-6b08-0410-baaa-805c5e19b8d6
| Java | agpl-3.0 | lpellegr/programming,fviale/programming,fviale/programming,mnip91/programming-multiactivities,PaulKh/scale-proactive,acontes/scheduling,jrochas/scale-proactive,acontes/programming,mnip91/programming-multiactivities,paraita/programming,acontes/scheduling,acontes/programming,acontes/scheduling,ow2-proactive/programming,a... |
980044540245e513d9fc5d5a028ab02e07f5aa17 | skyve-core/src/org/skyve/impl/metadata/repository/PropertyMapAdapter.java | skyve-core/src/org/skyve/impl/metadata/repository/PropertyMapAdapter.java | package org.skyve.impl.metadata.repository;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.TreeMap;
import javax.xml.bind.annotation.adapters.XmlAdapter;
/**
* JAXB Adapter for Map<String, String> to/from PropertyMapType.
*/
public class PropertyMapAdapter extends XmlAdap... | package org.skyve.impl.metadata.repository;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.TreeMap;
import javax.xml.bind.annotation.adapters.XmlAdapter;
/**
* JAXB Adapter for Map<String, String> to/from PropertyMapType.
*/
public class PropertyMapAdapter extends XmlAdap... | Stop property elements being generated on DecoratedMetaData classes when generating edit views. | Stop property elements being generated on DecoratedMetaData classes when
generating edit views. | Java | lgpl-2.1 | skyvers/skyve,skyvers/skyve,skyvers/skyve,skyvers/skyve,skyvers/skyve,skyvers/wildcat,skyvers/wildcat,skyvers/skyve,skyvers/skyve,skyvers/wildcat,skyvers/wildcat,skyvers/wildcat |
2bad176fa23612fc4e2a7a6a5e7ac7f151c11315 | gstrap/src/main/java/com/voodoodyne/gstrap/rest/ErrorBody.java | gstrap/src/main/java/com/voodoodyne/gstrap/rest/ErrorBody.java | package com.voodoodyne.gstrap.rest;
import com.fasterxml.jackson.annotation.JsonUnwrapped;
import com.voodoodyne.gstrap.lang.Types;
import lombok.RequiredArgsConstructor;
import java.util.List;
/**
* JSON structure of an error body from the ThrowableMapper
*/
@RequiredArgsConstructor
public class ErrorBody {
priv... | package com.voodoodyne.gstrap.rest;
import com.fasterxml.jackson.annotation.JsonUnwrapped;
import com.voodoodyne.gstrap.lang.Types;
import lombok.RequiredArgsConstructor;
import java.util.List;
import java.util.stream.Collectors;
/**
* JSON structure of an error body from the ThrowableMapper
*/
@RequiredArgsConstr... | Remove "Exception" from the error text | Remove "Exception" from the error text
| Java | mit | stickfigure/gstrap |
455944069f4bc77fd249f34da292c439306029b5 | src/org/robockets/stronghold/robot/commands/Kill.java | src/org/robockets/stronghold/robot/commands/Kill.java | package org.robockets.stronghold.robot.commands;
import org.robockets.stronghold.robot.Robot;
import edu.wpi.first.wpilibj.command.Command;
/**
*
*/
public class Kill extends Command {
public Kill() {
requires(Robot.driveTrain);
requires(Robot.intakeFront);
requires(Robot.intakeBack);
... | package org.robockets.stronghold.robot.commands;
import org.robockets.stronghold.robot.Robot;
import edu.wpi.first.wpilibj.command.Command;
/**
*
*/
public class Kill extends Command {
public Kill() {
requires(Robot.driveTrain);
requires(Robot.intakeFront);
requires(Robot.intakeBack);
... | Update the setpoints after killing each subsystem | Update the setpoints after killing each subsystem
| Java | mit | Team4761/2016-Robot-Code |
12d1ed6f60a30d337d5b42c2a06c06262705c968 | src/main/java/is/ru/sparkIt/ChuckWeb.java | src/main/java/is/ru/sparkIt/ChuckWeb.java | package is.ru.sparkit;
import spark.*;
import static spark.Spark.*;
import spark.servlet.SparkApplication;
public class ChuckWeb implements SparkApplication {
public static void main(String[] args){
SparkApplication chuckweb = new ChuckWeb();
chuckweb.init();
}
public void init(){
... | package is.ru.sparkit;
import spark.*;
import static spark.Spark.*;
import spark.servlet.SparkApplication;
public class ChuckWeb implements SparkApplication {
public static void main(String[] args){
SparkApplication chuckweb = new ChuckWeb();
chuckweb.init();
}
public void init(){
... | Allow fetching jokes by id in Web | Allow fetching jokes by id in Web
| Java | mit | agirmar92/sparkIt,arnlaugsson/sparkIt,arnlaugsson/sparkIt,arnlaugsson/sparkIt,agirmar92/sparkIt |
fc3f7ddee44d8705b60120172ec66693ad70f961 | src/main/java/kfs/kfsDbi/kfsPassword.java | src/main/java/kfs/kfsDbi/kfsPassword.java | package kfs.kfsDbi;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author pavedrim
*/
public class kfsPassword extends kfsString {
public kfsPassword(String name, String label, int pos) {
supe... | package kfs.kfsDbi;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author pavedrim
*/
public class kfsPassword extends kfsString {
private final String prefix;
public kfsPassword(String name, int... | Add prefix to the password | Add prefix to the password
| Java | apache-2.0 | k0fis/kfsWfl |
f65e9e3465c6105fe32d0d37ffd82bca46006e3e | SpotifyApi/src/main/java/com/drivemode/spotify/rest/RestAdapterFactory.java | SpotifyApi/src/main/java/com/drivemode/spotify/rest/RestAdapterFactory.java | package com.drivemode.spotify.rest;
import com.squareup.okhttp.OkHttpClient;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import retrofit.RequestInterceptor;
import retrofit.RestAdapter;
import retrofit.client.OkClient;
/**
* @author KeishinYokomaku
*/
public class RestAdapterFacto... | package com.drivemode.spotify.rest;
import com.squareup.okhttp.OkHttpClient;
import retrofit.RequestInterceptor;
import retrofit.RestAdapter;
import retrofit.client.OkClient;
/**
* @author KeishinYokomaku
*/
public class RestAdapterFactory {
public static final String TAG = RestAdapterFactory.class.getSimpleNa... | Fix executors for retrofit request and callback | Fix executors for retrofit request and callback
| Java | apache-2.0 | geecko86/SpotifyApi,Drivemode/SpotifyApi,miworking/SpotifyApi |
a04ed7145e2fa87e9ca0de254237fa3de08a46a8 | worker/src/main/java/com/github/k0kubun/github_ranking/Main.java | worker/src/main/java/com/github/k0kubun/github_ranking/Main.java | package com.github.k0kubun.github_ranking;
import com.github.k0kubun.github_ranking.config.Config;
import com.github.k0kubun.github_ranking.worker.UpdateUserWorker;
import com.github.k0kubun.github_ranking.worker.WorkerManager;
import javax.sql.DataSource;
public class Main
{
public static void main(String[] args... | package com.github.k0kubun.github_ranking;
import com.github.k0kubun.github_ranking.config.Config;
import com.github.k0kubun.github_ranking.worker.UpdateUserWorker;
import com.github.k0kubun.github_ranking.worker.WorkerManager;
import javax.sql.DataSource;
public class Main
{
private static final int NUM_UPDATE_U... | Increase UpdateUserWorker: 1 -> 3 | Increase UpdateUserWorker: 1 -> 3
| Java | mit | k0kubun/github-ranking,k0kubun/githubranking,k0kubun/githubranking,k0kubun/github-ranking,k0kubun/github-ranking,k0kubun/githubranking,k0kubun/githubranking,k0kubun/github-ranking,k0kubun/github-ranking,k0kubun/githubranking |
5002f3b5ac68b0a49211c37d8e0d59e653a8796e | core/src/main/java/org/elasticsearch/bootstrap/Elasticsearch.java | core/src/main/java/org/elasticsearch/bootstrap/Elasticsearch.java | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | Fix compilation... forgot to 'mvn clean' | Fix compilation... forgot to 'mvn clean'
| Java | apache-2.0 | Helen-Zhao/elasticsearch,zkidkid/elasticsearch,zhiqinghuang/elasticsearch,nellicus/elasticsearch,shreejay/elasticsearch,mnylen/elasticsearch,drewr/elasticsearch,Brijeshrpatel9/elasticsearch,andrestc/elasticsearch,glefloch/elasticsearch,mjhennig/elasticsearch,karthikjaps/elasticsearch,knight1128/elasticsearch,JervyShi/e... |
71da256ac3b2b66bd86755b57524ae07f56e9bb0 | src/main/java/com/grayben/riskExtractor/headingMarker/UnmodifiableText.java | src/main/java/com/grayben/riskExtractor/headingMarker/UnmodifiableText.java | package com.grayben.riskExtractor.headingMarker;
import java.util.Collections;
import java.util.List;
/**
* Created by beng on 1/12/2015.
*/
public class UnmodifiableText {
private List<String> stringList;
public UnmodifiableText(List<String> stringList){
this.stringList = stringList;
}
p... | package com.grayben.riskExtractor.headingMarker;
import java.util.Collections;
import java.util.List;
/**
* Created by beng on 1/12/2015.
*/
public class UnmodifiableText {
private List<String> stringList;
public UnmodifiableText(List<String> stringList){
if(stringList == null)
throw n... | Make constructor throw NullPointerException where appropriate | Make constructor throw NullPointerException where appropriate
| Java | mit | grayben/10K-item-extractor,grayben/10K-item-extractor |
8dbd89ba8335b7c8e139de177cd1d86fa38e60a9 | src/main/java/org/springframework/indexer/WebDocumentSearchEntryMapper.java | src/main/java/org/springframework/indexer/WebDocumentSearchEntryMapper.java | package org.springframework.indexer;
import org.jsoup.nodes.Document;
import org.springframework.search.SearchEntry;
import org.springframework.search.SearchEntryMapper;
import java.util.Date;
public class WebDocumentSearchEntryMapper implements SearchEntryMapper<WebDocument> {
@Override
public SearchEntry map(We... | package org.springframework.indexer;
import org.jsoup.nodes.Document;
import org.springframework.search.SearchEntry;
import org.springframework.search.SearchEntryMapper;
import java.util.Date;
public class WebDocumentSearchEntryMapper implements SearchEntryMapper<WebDocument> {
@Override
public SearchEntry map(We... | Fix broken api docs index | Fix broken api docs index
- api docs entries Id's were full url paths which broke elasticsearch indexing. Replaced '/' with _ in these ids
| Java | bsd-3-clause | amit-siddhu/sagan,vizewang/sagan,dvaughn555/sagan,dlizarra/sagan,eonezhang/sagan,andriykonoz/sagan,TabberGit/sagan,spring-io/sagan,seoilhyun/sagan,rwinch/sagan,seoilhyun/sagan,dsyer/sagan,dlizarra/sagan,rwinch/sagan,garylgh/sagan,dkushner/sagan,vizewang/sagan,eonezhang/sagan,yhj630520/sagan,garylgh/sagan,lowtalker/saga... |
3c896d18f8299a1bbd1ab73f3ed70a6860fe52d0 | src/test/java/com/github/hypfvieh/util/CompressionUtilTest.java | src/test/java/com/github/hypfvieh/util/CompressionUtilTest.java | package com.github.hypfvieh.util;
import java.io.File;
import org.junit.Test;
import com.github.hypfvieh.AbstractBaseUtilTest;
public class CompressionUtilTest extends AbstractBaseUtilTest {
@Test
public void testGzipCompressUncompress() {
System.out.println("GzipCompressUncompress");
File... | package com.github.hypfvieh.util;
import java.io.File;
import org.junit.Test;
import com.github.hypfvieh.AbstractBaseUtilTest;
public class CompressionUtilTest extends AbstractBaseUtilTest {
@Test
public void testGzipCompressUncompress() {
System.out.println("GzipCompressUncompress");
File... | Remove created file after unit test | Remove created file after unit test
| Java | mit | hypfvieh/java-utils |
77f0c9dcf7fdc4ebe904c32b64fbcb5c9c1f4d6b | src/main/java/com/googlecode/pngtastic/core/PngChunkInserter.java | src/main/java/com/googlecode/pngtastic/core/PngChunkInserter.java | package com.googlecode.pngtastic.core;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
/**
* Usage:
* <code>
* byte[] bytes = new PngChunkInserter().insert(image, PngChunkInserter.dpi300Chunk);
* final File exported = image.export(toDir + "/name.png", bytes);
* </code>
*
* @author ray... | package com.googlecode.pngtastic.core;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
/**
* Usage:
* <code>
* byte[] bytes = new PngChunkInserter().insert(image, PngChunkInserter.dpi300Chunk);
* final File exported = image.export(toDir + "/name.png", bytes);
* </code>
*
* @author ray... | Add comment describing dpi conversion | Add comment describing dpi conversion
| Java | mit | depsypher/pngtastic |
804ecd5125d94f94d9ac829e82e512597ca161e4 | src/main/java/org/xbill/DNS/lookup/RedirectOverflowException.java | src/main/java/org/xbill/DNS/lookup/RedirectOverflowException.java | // SPDX-License-Identifier: BSD-2-Clause
package org.xbill.DNS.lookup;
/**
* Thrown if the lookup results in too many CNAME and/or DNAME indirections. This would be the case
* for example if two CNAME records point to each other.
*/
public class RedirectOverflowException extends LookupFailedException {
/** @depre... | // SPDX-License-Identifier: BSD-2-Clause
package org.xbill.DNS.lookup;
import lombok.Getter;
/**
* Thrown if the lookup results in too many CNAME and/or DNAME indirections. This would be the case
* for example if two CNAME records point to each other.
*/
public class RedirectOverflowException extends LookupFailedE... | Make constructor public for unit testing by library users | Make constructor public for unit testing by library users
| Java | bsd-3-clause | dnsjava/dnsjava |
aecb8ad6cbb8da11712704ac2d229ab3ce3dfcb4 | test/test/com/maderilo/stringCalculator/StringCalculatorTest.java | test/test/com/maderilo/stringCalculator/StringCalculatorTest.java | package test.com.maderilo.stringCalculator;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import com.maderilo.stringCalculator.StringCalculator;
public class StringCalculatorTest {
@Test
public void should_return_0_for_empty_string() throws Exception {
String input = "";
int result ... | package test.com.maderilo.stringCalculator;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import com.maderilo.stringCalculator.StringCalculator;
public class StringCalculatorTest {
@Test
public void should_return_0_for_empty_string() throws Exception {
String input = "";
int result ... | Add method allowed to handle an unknown amount of numbers | Add method allowed to handle an unknown amount of numbers
| Java | mit | maderilo/TDDStringCalculator |
c8480ac93cf1e5346ea5215aca4f03a8d2c4e4ad | cipango-diameter/src/main/java/org/cipango/diameter/router/DefaultRouter.java | cipango-diameter/src/main/java/org/cipango/diameter/router/DefaultRouter.java | // ========================================================================
// Copyright 2010 NEXCOM Systems
// ------------------------------------------------------------------------
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Licen... | // ========================================================================
// Copyright 2010 NEXCOM Systems
// ------------------------------------------------------------------------
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Licen... | Fix CIPANGO-99: Creating a DiameterServletRequest without specifying the destinationhost field leads to a null pointer exception when sending a the request | Fix CIPANGO-99: Creating a DiameterServletRequest without specifying the destinationhost field leads to a null pointer exception when sending a the request
git-svn-id: cb8625e300c3faf843aa2977f1eda3273db846e7@506 657f710f-be33-0410-a596-71a6d81f68ef
| Java | apache-2.0 | dbroeglin/cipango,dbroeglin/cipango,dbroeglin/cipango,dbroeglin/cipango |
7ba5495acb8e496ea5e74ea2eda944b49c854f78 | tool/src/main/java/uk/ac/ox/oucs/vle/WebAppNotFoundException.java | tool/src/main/java/uk/ac/ox/oucs/vle/WebAppNotFoundException.java | package uk.ac.ox.oucs.vle;
import java.util.HashMap;
import java.util.Map;
import javax.ws.rs.Produces;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
public class WebAppNotFoundException extends WebApplicationException {
private static final Map<S... | package uk.ac.ox.oucs.vle;
import java.util.HashMap;
import java.util.Map;
import javax.ws.rs.Produces;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
public class WebAppNotFoundException extends WebApplicationException {
private static final Map<S... | Add note about why we force the media type. | Add note about why we force the media type. | 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 |
e157d45d3919a6b25b16ccb6ee13a4f8c7b91058 | app/src/main/java/acr/browser/lightning/async/AsyncExecutor.java | app/src/main/java/acr/browser/lightning/async/AsyncExecutor.java | package acr.browser.lightning.async;
import android.support.annotation.NonNull;
import android.util.Log;
import java.util.ArrayDeque;
import java.util.Queue;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.RejectedExecutionException;
/**
* Created 9/27/2015 A... | package acr.browser.lightning.async;
import android.support.annotation.NonNull;
import android.util.Log;
import java.util.ArrayDeque;
import java.util.Queue;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.RejectedEx... | Use executorservice instead of plain executor to facilitate shutdown | Use executorservice instead of plain executor to facilitate shutdown
| Java | mpl-2.0 | t61p/Lightning-Browser,anthonycr/Lightning-Browser,anthonycr/Lightning-Browser,anthonycr/Lightning-Browser,anthonycr/Lightning-Browser |
929779ef4504ea114c174f2b2d83a0535143d76d | app/src/main/java/net/ericschrag/ud_demo/data/GithubService.java | app/src/main/java/net/ericschrag/ud_demo/data/GithubService.java | package net.ericschrag.ud_demo.data;
import net.ericschrag.ud_demo.data.model.GithubUser;
import java.util.List;
import retrofit.http.GET;
public interface GithubService {
@GET("/users")
public List<GithubUser> getUsers();
}
| package net.ericschrag.ud_demo.data;
import net.ericschrag.ud_demo.data.model.GithubUser;
import java.util.List;
import retrofit.http.GET;
import retrofit.http.Headers;
public interface GithubService {
@Headers("Accept: application/vnd.github.v3+json")
@GET("/users")
public List<GithubUser> getUsers();
... | Make sure to tell Github API what version we are expecting | Make sure to tell Github API what version we are expecting
| Java | apache-2.0 | Kusand/ud-demo |
da56651517b98d4a4c4f629e30d17b9d34e1c606 | src/protocolsupport/zplatform/impl/spigot/block/SpigotBlocksBoundsAdjust.java | src/protocolsupport/zplatform/impl/spigot/block/SpigotBlocksBoundsAdjust.java | package protocolsupport.zplatform.impl.spigot.block;
import net.minecraft.server.v1_14_R1.BlockWaterLily;
import net.minecraft.server.v1_14_R1.VoxelShapes;
import protocolsupport.utils.ReflectionUtils;
public class SpigotBlocksBoundsAdjust {
public static void inject() throws IllegalAccessException {
ReflectionUt... | package protocolsupport.zplatform.impl.spigot.block;
import net.minecraft.server.v1_14_R1.BlockLadder;
import net.minecraft.server.v1_14_R1.BlockWaterLily;
import net.minecraft.server.v1_14_R1.VoxelShapes;
import protocolsupport.utils.ReflectionUtils;
public class SpigotBlocksBoundsAdjust {
public static void injec... | Set ladder bounds to pre 1.9. | Set ladder bounds to pre 1.9.
A bit smaller actually, but it has to be done, so the VoxelShape type is
the same. | Java | agpl-3.0 | ProtocolSupport/ProtocolSupport |
cc4bf1dc94a819a9ac185634af5603c0da33a3ef | annotation-rest/src/main/java/uk/ac/ebi/quickgo/annotation/AnnotationREST.java | annotation-rest/src/main/java/uk/ac/ebi/quickgo/annotation/AnnotationREST.java | package uk.ac.ebi.quickgo.annotation;
import uk.ac.ebi.quickgo.annotation.service.search.SearchServiceConfig;
import uk.ac.ebi.quickgo.rest.controller.CORSFilter;
import uk.ac.ebi.quickgo.rest.controller.SwaggerConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.Sp... | package uk.ac.ebi.quickgo.annotation;
import uk.ac.ebi.quickgo.annotation.service.search.SearchServiceConfig;
import uk.ac.ebi.quickgo.rest.controller.CORSFilter;
import uk.ac.ebi.quickgo.rest.controller.SwaggerConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.Sp... | Add statistics package to component scan. | Add statistics package to component scan.
| Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
4d8176e3f45bacc41dd15adb750d25fcaf075e50 | app/src/main/java/de/philipphager/disclosure/feature/navigation/Navigator.java | app/src/main/java/de/philipphager/disclosure/feature/navigation/Navigator.java | package de.philipphager.disclosure.feature.navigation;
import android.app.Activity;
import de.philipphager.disclosure.database.app.model.App;
import de.philipphager.disclosure.database.library.model.Library;
import de.philipphager.disclosure.feature.app.detail.DetailActivity;
import de.philipphager.disclosure.feature.... | package de.philipphager.disclosure.feature.navigation;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.provider.Settings;
import de.philipphager.disclosure.database.app.model.App;
import de.philipphager.disclosure.database.library.model.Library;
import de.philipphager... | Add navigation to system settings and updates | Add navigation to system settings and updates
| Java | apache-2.0 | philipphager/disclosure-android-app |
f8868a13de31c97432169463e005dc0d885e12d5 | src/som/primitives/HashPrim.java | src/som/primitives/HashPrim.java | package som.primitives;
import com.oracle.truffle.api.dsl.GenerateNodeFactory;
import com.oracle.truffle.api.dsl.Specialization;
import com.oracle.truffle.api.source.SourceSection;
import som.interpreter.nodes.nary.UnaryExpressionNode;
import som.vmobjects.SAbstractObject;
import som.vmobjects.SSymbol;
@GenerateNod... | package som.primitives;
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.dsl.GenerateNodeFactory;
import com.oracle.truffle.api.dsl.Specialization;
import com.oracle.truffle.api.source.SourceSection;
import som.interpreter.nodes.nary.UnaryExpressionNode;
import som.vmobj... | Mark String hash methods as boundary | Mark String hash methods as boundary
Signed-off-by: Stefan Marr <46f1a0bd5592a2f9244ca321b129902a06b53e03@stefan-marr.de>
| Java | mit | richard-roberts/SOMns,VAISHALI-DHANOA/SOMns,smarr/SOMns,MetaConc/SOMns,richard-roberts/SOMns,smarr/SOMns,VAISHALI-DHANOA/SOMns,smarr/SOMns,richard-roberts/SOMns,VAISHALI-DHANOA/SOMns,MetaConc/SOMns,richard-roberts/SOMns,richard-roberts/SOMns,smarr/SOMns,richard-roberts/SOMns,smarr/SOMns,MetaConc/SOMns,richard-roberts/S... |
1a779e6ef58dbb85326102cb14cbaede8485e151 | python/pydevSrc/com/jetbrains/python/console/PydevWebServer.java | python/pydevSrc/com/jetbrains/python/console/PydevWebServer.java | package com.jetbrains.python.console;
import com.jetbrains.python.console.pydev.PydevConsoleCommunication;
import org.apache.xmlrpc.WebServer;
import org.apache.xmlrpc.XmlRpcHandlerMapping;
import org.apache.xmlrpc.XmlRpcServer;
/**
* Web server to handle all the input requests by PydevConsoleCommunication
* @autho... | package com.jetbrains.python.console;
import com.jetbrains.python.console.pydev.PydevConsoleCommunication;
import org.apache.xmlrpc.WebServer;
import org.apache.xmlrpc.XmlRpcServer;
/**
* Web server to handle all the input requests by PydevConsoleCommunication
* @author oleg
*/
public class PydevWebServer extends ... | Correct way of registering XML RPC handler | Correct way of registering XML RPC handler
| Java | apache-2.0 | muntasirsyed/intellij-community,TangHao1987/intellij-community,ol-loginov/intellij-community,blademainer/intellij-community,idea4bsd/idea4bsd,youdonghai/intellij-community,idea4bsd/idea4bsd,fitermay/intellij-community,Lekanich/intellij-community,fnouama/intellij-community,jagguli/intellij-community,allotria/intellij-co... |
eaaa6c7c002c96e94ebc14773976e6a805e7da23 | src/Robot.java | src/Robot.java | /**
* Représente un robot
*/
public class Robot {
private String name;
private Point2D pos;
private int energy;
private int health;
/** Crée un robot */
public Robot(String name) {
this.name = name;
this.pos = new Point2D(0,0);
this.energy = 100;
this.health = 100;
}
/** @param health new health val... | /**
* Représente un robot
*/
public class Robot {
private String name;
private Point2D position;
private int energy;
private int health;
/** Crée un robot */
public Robot(String name) {
this.name = name;
this.position = new Point2D(0,0);
this.energy = 100;
this.health = 100;
}
/** @param health new ... | Add getters, change variable names, fix error | Add getters, change variable names, fix error
| Java | mit | lovasoa/cours-objet-ecn,lovasoa/cours-objet-ecn |
3e64b4c71bf848b4f8ab2459467c9b78ba98a11f | app/src/main/java/br/com/bloder/blorm/MainActivity.java | app/src/main/java/br/com/bloder/blorm/MainActivity.java | package br.com.bloder.blorm;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
| package br.com.bloder.blorm;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import br.com.bloder.blormlib.Blorm;
import br.com.bloder.blormlib.validation.Validations;
public class MainActivity extends AppCompatActivity {
pri... | Add edit text and button example in main activity | Add edit text and button example in main activity
| Java | mit | bloder/Blorm |
0b3de2bfed3303b6772143cf4a23ff50f7e86863 | alien4cloud-tosca/src/main/java/org/alien4cloud/tosca/utils/InterfaceUtils.java | alien4cloud-tosca/src/main/java/org/alien4cloud/tosca/utils/InterfaceUtils.java | package org.alien4cloud.tosca.utils;
import static alien4cloud.utils.AlienUtils.safe;
import java.util.Map;
import java.util.Optional;
import org.alien4cloud.tosca.model.definitions.ImplementationArtifact;
import org.alien4cloud.tosca.model.definitions.Interface;
import org.alien4cloud.tosca.model.definitions.Operat... | package org.alien4cloud.tosca.utils;
import static alien4cloud.utils.AlienUtils.safe;
import java.util.Map;
import java.util.Optional;
import org.alien4cloud.tosca.model.definitions.ImplementationArtifact;
import org.alien4cloud.tosca.model.definitions.Interface;
import org.alien4cloud.tosca.model.definitions.Operat... | Allow specific handling of docker image artifact update in the editor, util fix. | [ALIEN-2755] Allow specific handling of docker image artifact update in the editor, util fix.
| Java | apache-2.0 | san-tak/alien4cloud,san-tak/alien4cloud,alien4cloud/alien4cloud,san-tak/alien4cloud,san-tak/alien4cloud,alien4cloud/alien4cloud,alien4cloud/alien4cloud,alien4cloud/alien4cloud |
d3afcca97dfc380a29bd7ca6c0586c9f21837da8 | src/com/marakana/android/yamba/BootReceiver.java | src/com/marakana/android/yamba/BootReceiver.java | package com.marakana.android.yamba;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.util.Log;... | package com.marakana.android.yamba;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.SystemClock;
import android.preference.PreferenceMa... | Change repeating alarm to be ELAPSED_REALTIME type | Change repeating alarm to be ELAPSED_REALTIME type
Change repeating alarms scheduled by AlarmManager in BootReceiver
to be AlarmManager.ELAPSED_REALTIME type instead of RTC type,
since we don't need alarms to be fired at particular time, only
at particular interval; following best practices here:
https://developer.and... | Java | apache-2.0 | clkim/LearningAndroid2edYamba2 |
a4f78a09e6535ec90cede7e0d8295e8fd0f89734 | commons/src/main/java/com/adaptc/mws/plugins/Suite.java | commons/src/main/java/com/adaptc/mws/plugins/Suite.java | package com.adaptc.mws.plugins;
/**
* This enum represents which suite or context Moab Web Services is running in -
* HPC or Cloud.
* @author bsaville
*/
public enum Suite {
HPC("HPC"),
CLOUD("Cloud");
/**
* The default suite for MWS. This is equivalent to {@link #CLOUD}.
*/
public static final Suite DE... | package com.adaptc.mws.plugins;
/**
* This enumeration represents which suite or context Moab Web Services is running in.
* @author bsaville
*/
public enum Suite {
HPC("HPC"),
CLOUD("Cloud");
/**
* The default suite for MWS. This is equivalent to {@link #CLOUD}.
*/
public static final Suite DEFAULT_SUITE... | Change comment on suite a bit | Change comment on suite a bit
| Java | apache-2.0 | adaptivecomputing/plugins-commons |
427a4e5669781af0ee66e3c61414bc9d74510ae8 | src/main/java/net/techcable/jstruct/JStruct.java | src/main/java/net/techcable/jstruct/JStruct.java | package net.techcable.jstruct;
/**
* All classes annotated with this field will be <href a=https://wikipedia.org/wiki/PassByValue>pass by value</href>
* <p/>
* In order to preserve the contract of objects in the java language, JStructs can only have final fields.
* Otherwise modifications to a JStruct would not be... | package net.techcable.jstruct;
/**
* All classes annotated with this field will be <href a=https://wikipedia.org/wiki/PassByValue>pass by value</href>
* <p/>
* In order to preserve the contract of objects in the java language, JStructs can only have final fields.
* Otherwise modifications to a JStruct would not be... | Remove some in completed documentation. | Remove some in completed documentation.
Fixes #1 | Java | mit | Techcable/JStruct |
1d9ddb13736565e7ac2e3f28a36a04764280d983 | opennms-webapp/src/main/java/org/opennms/dashboard/client/NotificationView.java | opennms-webapp/src/main/java/org/opennms/dashboard/client/NotificationView.java | /**
*
*/
package org.opennms.dashboard.client;
import com.google.gwt.user.client.ui.FlexTable;
class NotificationView extends PageableTableView {
private Notification[] m_notifications;
NotificationView() {
super(new String[] { "Node", "Service", "Sent Time", "Responder", "Response Time"... | /**
*
*/
package org.opennms.dashboard.client;
import com.google.gwt.user.client.ui.FlexTable;
class NotificationView extends PageableTableView {
private Notification[] m_notifications;
NotificationView() {
super(new String[] { "Node", "Service", "Sent Time", "Responder", "Response Time"... | Fix the case where respond time is null | Fix the case where respond time is null
| Java | agpl-3.0 | tdefilip/opennms,tdefilip/opennms,tdefilip/opennms,aihua/opennms,aihua/opennms,roskens/opennms-pre-github,aihua/opennms,tdefilip/opennms,rdkgit/opennms,tdefilip/opennms,rdkgit/opennms,rdkgit/opennms,roskens/opennms-pre-github,rdkgit/opennms,roskens/opennms-pre-github,tdefilip/opennms,aihua/opennms,aihua/opennms,roskens... |
2937ae6d301f98c7c900616f1f1eb9c44e239eb4 | src/main/java/org/synyx/urlaubsverwaltung/mail/MailProperties.java | src/main/java/org/synyx/urlaubsverwaltung/mail/MailProperties.java | package org.synyx.urlaubsverwaltung.mail;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
@Validated
@ConfigurationProperties(prefix = "uv.m... | package org.synyx.urlaubsverwaltung.mail;
import org.hibernate.validator.constraints.URL;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
@V... | Revert "Remove not used imports" | Revert "Remove not used imports"
This reverts commit 85706eb3faffe65b77432a46cde0ff9fe2a4312f.
| Java | apache-2.0 | synyx/urlaubsverwaltung,synyx/urlaubsverwaltung,synyx/urlaubsverwaltung,synyx/urlaubsverwaltung |
feb52a48963c1bf5eb1b395252ae464966130474 | desktop/src/com/juotos/prr/desktop/DesktopLauncher.java | desktop/src/com/juotos/prr/desktop/DesktopLauncher.java | package com.juotos.prr.desktop;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.juotos.prr.PRRGame;
public class DesktopLauncher {
public static void main (String[] arg) {
LwjglApplicationConfiguration config = new LwjglAppli... | package com.juotos.prr.desktop;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.juotos.prr.PRRGame;
public class DesktopLauncher {
public static void main (String[] arg) {
LwjglApplicationConfiguration config = new LwjglAppli... | Add default window size + title to Desktop Launcher | Add default window size + title to Desktop Launcher
| Java | mit | Jntz/portrait-runner-runner,Jntz/portrait-runner-runner |
f7428a3b8e84a3a0411e4f47750be8ce456b6fe0 | processor/src/test/resources/input/TimeModel.java | processor/src/test/resources/input/TimeModel.java | import org.realityforge.arez.annotations.Action;
import org.realityforge.arez.annotations.Container;
import org.realityforge.arez.annotations.Observable;
@Container( name = "Time", singleton = true )
public class TimeModel
{
private long _time;
protected TimeModel( final long time )
{
_time = time;
}
@... | import org.realityforge.arez.annotations.Action;
import org.realityforge.arez.annotations.Container;
import org.realityforge.arez.annotations.Observable;
@Container( name = "Time", singleton = true )
public class TimeModel
{
private long _time;
protected TimeModel( final long time )
{
_time = time;
}
@... | Add @Observable annotation to make it easier to parse for the time being | Add @Observable annotation to make it easier to parse for the time being
| Java | apache-2.0 | realityforge/arez,realityforge/arez,realityforge/arez |
48331efe4fe7575637f6992157ecf5e4754a1b59 | src/android/CheckGps.java | src/android/CheckGps.java | package com.josenaves.plugin;
import android.util.Log;
import android.location.LocationManager;
import android.content.Context;
import org.apache.cordova.CallbackContext;
import org.json.JSONArray;
import org.json.JSONException;
public class CheckGps {
private static final String TAG = CheckGps.class.getSimpleName... | package com.josenaves.plugin;
import android.util.Log;
import android.location.LocationManager;
import android.content.Context;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CallbackContext;
import org.json.JSONArray;
import org.json.JSONException;
public class CheckGps extends CordovaPlugin {
... | Fix missing imports and extends | Fix missing imports and extends
| Java | mit | josenaves/cordova-plugin-checkgps,josenaves/cordova-plugin-checkgps |
87d5cf4dc96364fb6fc213d0ba70e35b436c9e9e | java/squeek/veganoption/asm/ASMPlugin.java | java/squeek/veganoption/asm/ASMPlugin.java | package squeek.veganoption.asm;
import java.util.Map;
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
@IFMLLoadingPlugin.MCVersion("1.7.10")
public class ASMPlugin implements IFMLLoadingPlugin
{
@Override
public String[] getASMTransformerClass()
{
return new String[]{ClassTransformer.class.getName()};
}
@O... | package squeek.veganoption.asm;
import java.util.Map;
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
@IFMLLoadingPlugin.MCVersion("1.7.10")
@IFMLLoadingPlugin.TransformerExclusions("squeek.veganoption.asm")
public class ASMPlugin implements IFMLLoadingPlugin
{
@Override
public String[] getASMTransformerClass()
... | Exclude asm package from being transformed | Exclude asm package from being transformed
| Java | unlicense | squeek502/VeganOption,Adaptivity/VeganOption |
414ff68c1ef0e5d46ae88c497f2c244012e398ce | app/src/main/java/mn/devfest/api/adapter/DateTimeTypeAdapter.java | app/src/main/java/mn/devfest/api/adapter/DateTimeTypeAdapter.java | package mn.devfest.api.adapter;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import org.joda.time.DateTime;
import java.lang.reflect.Type;
/**
* Adapts API dates to JodaTime DateTimes
*
*... | package mn.devfest.api.adapter;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import com.google.gson.JsonPrimitive;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSe... | Add serialization to the date time adapter | Add serialization to the date time adapter
| Java | apache-2.0 | GDGConferenceApp/Android |
94e4d7a92da9f03ecb82ea4be7f5934a3f364469 | src/main/java/hackerrank/TheLoveLetterMystery.java | src/main/java/hackerrank/TheLoveLetterMystery.java | package hackerrank;
import java.util.Scanner;
/**
* https://www.hackerrank.com/challenges/the-love-letter-mystery
*/
public class TheLoveLetterMystery {
private static int loveLetterMystery(String str) {
// TODO:
return 0;
}
public static void main(String[] args) {
Scanner in = ... | package hackerrank;
import java.util.Scanner;
/**
* https://www.hackerrank.com/challenges/the-love-letter-mystery
*/
public class TheLoveLetterMystery {
private static int loveLetterMystery(String str) {
int count = 0;
char[] chars = str.toCharArray();
for (int i = 0, j = chars.length - ... | Solve The Love Letter Mystery | Solve The Love Letter Mystery
| Java | mit | fredyw/hackerrank |
d32b7fdeaa0bcaa1bec28d993372419b92c9c387 | src/main/java/com/github/tatsuyafw/camel/component/fluentd/FluentdComponent.java | src/main/java/com/github/tatsuyafw/camel/component/fluentd/FluentdComponent.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Add a constructor of component | Add a constructor of component
| Java | apache-2.0 | tatsuyafw/camel-fluentd |
17020ff9af5648aeb5b45314e4fca7cb2c9352b1 | ReactAndroid/src/main/java/com/facebook/react/cxxbridge/CxxModuleWrapperBase.java | ReactAndroid/src/main/java/com/facebook/react/cxxbridge/CxxModuleWrapperBase.java | // Copyright 2004-present Facebook. All Rights Reserved.
package com.facebook.react.cxxbridge;
import java.util.Map;
import com.facebook.jni.HybridData;
import com.facebook.proguard.annotations.DoNotStrip;
import com.facebook.react.bridge.NativeModule;
import com.facebook.soloader.SoLoader;
/**
* A Java Object whi... | // Copyright 2004-present Facebook. All Rights Reserved.
package com.facebook.react.cxxbridge;
import com.facebook.jni.HybridData;
import com.facebook.proguard.annotations.DoNotStrip;
import com.facebook.react.bridge.NativeModule;
import com.facebook.soloader.SoLoader;
/**
* A Java Object which represents a cross-... | Add API to reset CxxModuleWrapper's module pointer | Add API to reset CxxModuleWrapper's module pointer
Reviewed By: mhorowitz
Differential Revision: D4914335
fbshipit-source-id: f28f57c2e74d590dacfb85d8027747837f768fdc
| Java | bsd-3-clause | forcedotcom/react-native,PlexChat/react-native,jevakallio/react-native,exponent/react-native,shrutic123/react-native,forcedotcom/react-native,ndejesus1227/react-native,Guardiannw/react-native,hammerandchisel/react-native,PlexChat/react-native,cdlewis/react-native,ptomasroos/react-native,mironiasty/react-native,dikaiosu... |
b8085686f4c0b4d992dd89986ecb24716bcdb18a | core/src/test/java/com/crawljax/core/configuration/XPathEscapeApostropheTest.java | core/src/test/java/com/crawljax/core/configuration/XPathEscapeApostropheTest.java | package com.crawljax.core.configuration;
import static com.crawljax.core.configuration.CrawlElementMatcher.withXpath;
import static org.hamcrest.collection.IsCollectionWithSize.hasSize;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import org.junit.Before;
import org.junit.T... | package com.crawljax.core.configuration;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import com.crawljax.core.state.Eventable.EventType;
public class XPathEscapeApostropheTest {
private CrawlElement element;
@Before
public void setup() {
element = new CrawlEl... | Remove unused code from test case | Remove unused code from test case
| Java | apache-2.0 | xujun10110/crawljax,robertzas/crawljax,ntatsumi/crawljax,aminmf/crawljax,bigplus/crawljax,adini121/crawljax,cschroed-usgs/crawljax,crawljax/crawljax,crawljax/crawljax,aminmf/crawljax,robertzas/crawljax,bigplus/crawljax,fivejjs/crawljax,crawljax/crawljax,crawljax/crawljax,adini121/crawljax,ntatsumi/crawljax,bigplus/craw... |
4f9735afe464ad7e87a6316197db2d6c320ad67a | src/main/java/de/prob2/ui/consoles/b/BConsole.java | src/main/java/de/prob2/ui/consoles/b/BConsole.java | package de.prob2.ui.consoles.b;
import java.io.File;
import java.util.ResourceBundle;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import de.prob2.ui.consoles.Console;
import de.prob2.ui.prob2fx.CurrentTrace;
@Singleton
public final class BConsole extends Console {
@Inject
private BConsole... | package de.prob2.ui.consoles.b;
import java.io.File;
import java.util.ResourceBundle;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import de.prob2.ui.consoles.Console;
import de.prob2.ui.prob2fx.CurrentTrace;
@Singleton
public final class BConsole extends Console {
@Inject
private BConsole... | Fix "Model loaded" messages appearing when animating | Fix "Model loaded" messages appearing when animating
| Java | epl-1.0 | bendisposto/prob2-ui,bendisposto/prob2-ui,bendisposto/prob2-ui,bendisposto/prob2-ui |
d951684148189a3ae163f9919158a4ff7dbe6e4f | scala-string-format-core/src/main/scala/com/komanov/stringformat/JavaFormats.java | scala-string-format-core/src/main/scala/com/komanov/stringformat/JavaFormats.java | package com.komanov.stringformat;
import org.slf4j.helpers.MessageFormatter;
import java.text.MessageFormat;
import java.util.Locale;
public class JavaFormats {
private static final MessageFormat messageFormatInstance = new MessageFormat("{0}a{1}b{2}{3}");
public static String concat(int value1, String valu... | package com.komanov.stringformat;
import org.slf4j.helpers.MessageFormatter;
import java.text.MessageFormat;
import java.util.Locale;
public class JavaFormats {
private static final MessageFormat messageFormatInstance = new MessageFormat("{0,number,#}a{1}b{2}{3}");
public static String concat(int value1, St... | Fix format string for MessageFormat | Fix format string for MessageFormat
| Java | mit | dkomanov/scala-string-format,dkomanov/scala-string-format |
67496a91b7c7adf23040ffaa23092685ef135613 | mockui/src/main/java/com/autonomy/abc/selenium/menu/SideNavBar.java | mockui/src/main/java/com/autonomy/abc/selenium/menu/SideNavBar.java | package com.autonomy.abc.selenium.menu;
import com.hp.autonomy.frontend.selenium.util.AppElement;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
i... | package com.autonomy.abc.selenium.menu;
import com.hp.autonomy.frontend.selenium.util.AppElement;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
i... | Fix side nav bar - click was failing due to span inside link on some pages | Fix side nav bar - click was failing due to span inside link on some pages
| Java | mit | hpe-idol/find,hpautonomy/find,hpe-idol/find,hpe-idol/find,hpautonomy/find,hpautonomy/find,hpautonomy/find,hpautonomy/find,hpe-idol/find,hpe-idol/find,hpe-idol/java-powerpoint-report,hpe-idol/java-powerpoint-report |
9716001f7abe4fb4900d5daad87b67b9480603e6 | src/main/java/com/stripe/model/Money.java | src/main/java/com/stripe/model/Money.java | package com.stripe.model;
public class Money {
Integer amount;
String currency;
public Integer getAmount() {
return amount;
}
public String getCurrency() {
return currency;
}
}
| package com.stripe.model;
public class Money {
Long amount;
String currency;
public Long getAmount() {
return amount;
}
public String getCurrency() {
return currency;
}
}
| Change the type to a long because the API is returning a number larger than an Integer | Change the type to a long because the API is returning a number larger than an Integer
| Java | mit | zs-engg/stripe-sdk,rgarbi/stripe-java,kbouzidi/stripe-java,stripe/stripe-java |
a1de9ff202dc5c35f9ccef13ef4ab89d9f7ab014 | presto-jaxb/src/main/java/net/ontopia/presto/jaxb/TopicMessage.java | presto-jaxb/src/main/java/net/ontopia/presto/jaxb/TopicMessage.java | package net.ontopia.presto.jaxb;
import javax.xml.bind.annotation.XmlRootElement;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
@XmlRootElement
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown=... | package net.ontopia.presto.jaxb;
import java.util.Map;
import javax.xml.bind.annotation.XmlRootElement;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
@XmlRootElement
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
@JsonIgnorePr... | Add params to topic message | Add params to topic message
| Java | apache-2.0 | grove/presto,thesverre/presto |
d1148522ca735522a8a05e500d977faff5a1573a | 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 org.apache.logging.log4j.*;
import info.u_team.u_team_core.util.annotation.AnnotationManager;
import info.u_team.u_team_core.util.verify.JarSignVerifier;
import net.minecraftforge.fml.common.Mod;
@Mod(TestMod.MODID)
public class TestMod {
public static final String MODID = ... | package info.u_team.u_team_test;
import org.apache.logging.log4j.*;
import info.u_team.u_team_core.util.annotation.AnnotationManager;
import info.u_team.u_team_core.util.verify.JarSignVerifier;
import net.minecraftforge.fml.common.Mod;
@Mod(TestMod.MODID)
public class TestMod {
public static final String MODID = ... | Remove old calls that are no longer nessessary | Remove old calls that are no longer nessessary | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
395e0ea989059418b60251e25fcdda0d61d5663f | src/com/nasmlanguage/NASMLanguage.java | src/com/nasmlanguage/NASMLanguage.java | /*++
NASM Assembly Language Plugin
Copyright (c) 2017-2018 Aidan Khoury. All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your opt... | /*++
NASM Assembly Language Plugin
Copyright (c) 2017-2018 Aidan Khoury
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use... | Update copyright notice with MIT license | Update copyright notice with MIT license | Java | mit | dude719/JetBrains-NASM-Language |
04d53a018d0d4bf65ca84dfbd220705849408540 | src/org/firebears/sensors/sharpIRRange.java | src/org/firebears/sensors/sharpIRRange.java | package org.firebears.sensors;
// made by Jacob Wiggins
import edu.wpi.first.wpilibj.AnalogInput;
/*
* Range Sensor
*/
public class sharpIRRange extends AnalogInput {
public sharpIRRange(int channel) {
super(channel);
}
//distance will be close to the distance that the robot is
//assuming th... | package org.firebears.sensors;
// made by Jacob Wiggins
import edu.wpi.first.wpilibj.AnalogInput;
/*
* Range Sensor
*/
public class sharpIRRange extends AnalogInput {
public sharpIRRange(int channel) {
super(channel);
}
//distance will be close to the distance that the robot is
//assuming th... | Update range comments inches and centimeters | Update range comments inches and centimeters | Java | bsd-3-clause | firebears-2014/FB2015,firebears-frc/FB2015 |
dd521de47986fcf3f7358e0b641cb7fc48258eb9 | app/src/main/java/com/tasomaniac/seriesguide/plex/PlexExtension.java | app/src/main/java/com/tasomaniac/seriesguide/plex/PlexExtension.java | package com.tasomaniac.seriesguide.plex;
import android.app.SearchManager;
import android.content.ComponentName;
import android.content.Intent;
import com.battlelancer.seriesguide.api.Action;
import com.battlelancer.seriesguide.api.Episode;
import com.battlelancer.seriesguide.api.SeriesGuideExtension;
import com.taso... | package com.tasomaniac.seriesguide.plex;
import android.app.SearchManager;
import android.content.ComponentName;
import android.content.Intent;
import com.battlelancer.seriesguide.api.Action;
import com.battlelancer.seriesguide.api.Episode;
import com.battlelancer.seriesguide.api.Movie;
import com.battlelancer.series... | Add movie support to plex | Add movie support to plex
| Java | apache-2.0 | tasomaniac/SeriesGuideToPlex |
cc9cae41e368e6834190c0316a9425b6bcba6ecd | src/main/java/de/craften/plugins/educraft/luaapi/functions/MoveForwardFunction.java | src/main/java/de/craften/plugins/educraft/luaapi/functions/MoveForwardFunction.java | package de.craften.plugins.educraft.luaapi.functions;
import de.craften.plugins.educraft.luaapi.EduCraftApiFunction;
import org.bukkit.Location;
import org.bukkit.block.BlockFace;
import org.luaj.vm2.LuaValue;
import org.luaj.vm2.Varargs;
/**
* Lua API function to move one block forward.
*/
public class MoveForward... | package de.craften.plugins.educraft.luaapi.functions;
import de.craften.plugins.educraft.luaapi.EduCraftApiFunction;
import org.bukkit.Location;
import org.bukkit.block.BlockFace;
import org.bukkit.entity.Entity;
import org.luaj.vm2.LuaValue;
import org.luaj.vm2.Varargs;
import java.util.Collection;
/**
* Lua API f... | Check for entities ahead before moving forward. | Check for entities ahead before moving forward.
| Java | mit | leMaik/EduCraft |
9eff696d1ff673b1ef526f9212949307e1df28dc | core/src/test/java/org/informantproject/core/MainEntryPointTest.java | core/src/test/java/org/informantproject/core/MainEntryPointTest.java | /**
* Copyright 2011-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | /**
* Copyright 2011-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | Use dynamically allocated ports in unit tests | Use dynamically allocated ports in unit tests
Use dynamically allocated ports in unit tests so they won't unexpectedly
fail if a port happens to be in use.
| Java | apache-2.0 | glowroot/glowroot,glowroot/glowroot,glowroot/glowroot,trask/glowroot,trask/glowroot,trask/glowroot,trask/glowroot,glowroot/glowroot |
ca9b79aee8269803e8cd74d3cf31aa97cc5191e0 | iReactionTest/Database/DatabaseConnectorTest.java | iReactionTest/Database/DatabaseConnectorTest.java | package Database;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class DatabaseConnectorTest {
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
public void t... | package Database;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.sql.Connection;
import static org.junit.Assert.*;
public class DatabaseConnectorTest {
DatabaseConnector databaseConnector;
@Before
public void setUp() throws Exception {
databaseConnector = n... | Add Tests to DatabaseConnectionTest class | Add Tests to DatabaseConnectionTest class
| Java | mit | andela-kogunde/iReaction |
96286fd56572d17ccfc86d465add2f31863ec078 | src/main/java/com/alexrnl/jbetaseries/request/parameters/Note.java | src/main/java/com/alexrnl/jbetaseries/request/parameters/Note.java | package com.alexrnl.jbetaseries.request.parameters;
/**
* Parameter which allow to set the note of a show or an episode.<br />
* @author Alex
*/
public class Note extends Parameter<Integer> {
/** Name of the note parameter */
public static final String PARAMETER_NOTE = "note";
/**
* Constructor #1.<br />
*... | package com.alexrnl.jbetaseries.request.parameters;
/**
* Parameter which allow to set the note of a show or an episode.<br />
* @author Alex
*/
public class Note extends Parameter<Integer> {
/** Name of the note parameter */
public static final String PARAMETER_NOTE = "note";
/** The minimum note allowed by the... | Fix Sonar violation: create constants for note min/max | Fix Sonar violation: create constants for note min/max
| Java | bsd-3-clause | AlexRNL/jSeries |
14922e0892616277c05c881cb14d98189ed1bd10 | src/main/java/com/github/aureliano/achmed/os/fs/IFileProvider.java | src/main/java/com/github/aureliano/achmed/os/fs/IFileProvider.java | package com.github.aureliano.achmed.os.fs;
import com.github.aureliano.achmed.resources.properties.FileProperties;
public interface IFileProvider {
public abstract void setFileMode();
public abstract void setFileOwner();
public abstract void createFile();
public abstract void copyFile();
public abstract... | package com.github.aureliano.achmed.os.fs;
import com.github.aureliano.achmed.resources.properties.FileProperties;
public interface IFileProvider {
public abstract void setFileMode();
public abstract void setFileOwner();
public abstract void createFile();
public abstract void deleteFile();
public abstra... | Add method to delete file. | Add method to delete file.
| Java | mit | aureliano/achmed |
07c3096dac05d8eca934ed62f9c1e9addba3a0a2 | org/postgresql/jdbc3g/Jdbc3gCallableStatement.java | org/postgresql/jdbc3g/Jdbc3gCallableStatement.java | /*-------------------------------------------------------------------------
*
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgjdbc/org/postgresql/jdbc3g/Jdbc3gCallableStatement.java,v 1.3 2004/11/09 08:51:22 jurka Exp $
*
*--------------------------------------------... | /*-------------------------------------------------------------------------
*
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgjdbc/org/postgresql/jdbc3g/Jdbc3gCallableStatement.java,v 1.4 2005/01/11 08:25:47 jurka Exp $
*
*--------------------------------------------... | Make callable statements work again for JDK 1.5 builds. Any code int the jdbc3/Jdbc3 classes also needs to get into the corresponding jdbc3g/Jdbc3g class. | Make callable statements work again for JDK 1.5 builds. Any code
int the jdbc3/Jdbc3 classes also needs to get into the corresponding
jdbc3g/Jdbc3g class.
| Java | bsd-3-clause | tivv/davepgjdbc,tivv/davepgjdbc |
ade2afe61aed8766877e5c882292e208fac10a8d | liberty-starter-application/src/main/java/com/ibm/liberty/starter/api/CORSFilter.java | liberty-starter-application/src/main/java/com/ibm/liberty/starter/api/CORSFilter.java | /*******************************************************************************
* Copyright (c) 2017 IBM Corp.
*
* 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... | /*******************************************************************************
* Copyright (c) 2017 IBM Corp.
*
* 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... | Update to use response object for setting headers Signed off by : Adam Pilkington apilkington@uk.ibm.com | Update to use response object for setting headers
Signed off by : Adam Pilkington apilkington@uk.ibm.com
| Java | apache-2.0 | WASdev/tool.accelerate.core,WASdev/tool.groove.core,WASdev/tool.groove.core,WASdev/tool.groove.core,WASdev/tool.artisan.core,WASdev/tool.accelerate.core,WASdev/tool.accelerate.core,WASdev/tool.artisan.core,WASdev/tool.artisan.core |
53d1739a1dae7abc13acfeab0c38258770f4a1af | RocketLyonAndroid/app/src/main/java/com/insa/rocketlyonandroid/utils/BaseFragment.java | RocketLyonAndroid/app/src/main/java/com/insa/rocketlyonandroid/utils/BaseFragment.java | package com.insa.rocketlyonandroid.utils;
import android.app.Activity;
import android.support.v4.app.Fragment;
import butterknife.ButterKnife;
import trikita.log.Log;
/* With this Base Class, we can access to parent activity of fragment very easily */
public abstract class BaseFragment extends Fragment {
protect... | package com.insa.rocketlyonandroid.utils;
import android.app.Activity;
import android.support.v4.app.Fragment;
import butterknife.ButterKnife;
import trikita.log.Log;
/* With this Base Class, we can access to parent activity of fragment very easily */
public abstract class BaseFragment extends Fragment {
protect... | Remove operation specific to Volley | Remove operation specific to Volley
| Java | mit | MrPointVirgule/RocketLyon,MrPointVirgule/RocketLyon,MrPointVirgule/RocketLyon,MrPointVirgule/RocketLyon |
4a5bab78381d6d852d48a8bda17c24b10d242c21 | main/src/main/java/com/bloatit/framework/webserver/url/UrlNode.java | main/src/main/java/com/bloatit/framework/webserver/url/UrlNode.java | package com.bloatit.framework.webserver.url;
import com.bloatit.framework.utils.Parameters;
import com.bloatit.framework.utils.SessionParameters;
import com.bloatit.framework.xcgiserver.HttpHeader;
public abstract class UrlNode implements Iterable<UrlNode>, Cloneable {
public UrlNode() {
super();
}
... | package com.bloatit.framework.webserver.url;
import com.bloatit.common.Log;
import com.bloatit.framework.utils.Parameters;
import com.bloatit.framework.utils.SessionParameters;
import com.bloatit.framework.xcgiserver.HttpHeader;
public abstract class UrlNode implements Iterable<UrlNode>, Cloneable {
public UrlNo... | Add the http before the externalUrlGeneration | Add the http before the externalUrlGeneration
| Java | agpl-3.0 | BloatIt/bloatit,BloatIt/bloatit,BloatIt/bloatit,BloatIt/bloatit,BloatIt/bloatit |
01493072a03523e47259b9a1d7ca30b91741edf8 | src/main/java/com/cesca/sensors/controller/DHTSensorController.java | src/main/java/com/cesca/sensors/controller/DHTSensorController.java | package com.cesca.sensors.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.Reque... | package com.cesca.sensors.controller;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springfra... | Handle exception when getting Sensor Status from Empty Database | Handle exception when getting Sensor Status from Empty Database
| Java | apache-2.0 | sensor-cesca/sensor-cesca,sensor-cesca/sensor-cesca,sensor-cesca/sensor-cesca,sensor-cesca/sensor-cesca |
db5708b333c5c27e22d5255bd9a98ffa6f428663 | src/main/java/com/google/sps/servlets/SearchServlet.java | src/main/java/com/google/sps/servlets/SearchServlet.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 planning and template getKeywords function | Add planning and template getKeywords function
| Java | apache-2.0 | googleinterns/step128-2020,googleinterns/step128-2020,googleinterns/step128-2020 |
4b2d1f424a846ed3762100ed69ed3ff57b20e670 | Code/src/main/java/nl/utwente/viskell/ui/components/SliderBlock.java | Code/src/main/java/nl/utwente/viskell/ui/components/SliderBlock.java | package nl.utwente.viskell.ui.components;
import javafx.fxml.FXML;
import javafx.scene.control.Slider;
import nl.utwente.viskell.ui.CustomUIPane;
/**
* An extension of ValueBlock.
* The value of this Block can be changed by dragging a slider.
* Ranges from 0 to 1 (both inclusive).
*/
public class SliderBlock exte... | package nl.utwente.viskell.ui.components;
import javafx.fxml.FXML;
import javafx.scene.control.Slider;
import nl.utwente.viskell.ui.CustomUIPane;
/**
* An extension of ValueBlock.
* The value of this Block can be changed by dragging a slider.
* Ranges from 0 to 1 (both inclusive).
*/
public class SliderBlock exte... | Fix format of slider block floats to be always valid. | Fix format of slider block floats to be always valid. | Java | mit | wandernauta/viskell,viskell/viskell,andrewdavidmackenzie/viskell |
66ee767857cad09de20744e50e11c923cd4f1db9 | src/test/java/org/projectodd/nodej/NodejTestSupport.java | src/test/java/org/projectodd/nodej/NodejTestSupport.java | package org.projectodd.nodej;
import org.dynjs.runtime.DynJS;
import org.dynjs.runtime.ExecutionContext;
import org.dynjs.runtime.GlobalObject;
import org.junit.Before;
public class NodejTestSupport {
protected DynJS runtime;
protected ExecutionContext context;
protected String[] defaultArgs = { "node", ... | package org.projectodd.nodej;
import org.dynjs.runtime.DynJS;
import org.dynjs.runtime.ExecutionContext;
import org.junit.Before;
public class NodejTestSupport {
protected DynJS runtime;
protected ExecutionContext context;
protected String[] defaultArgs = { "node", "somearg" };
@Before
public vo... | Initialize a Node(), which should set up process for us | Initialize a Node(), which should set up process for us
| Java | apache-2.0 | nodyn/nodyn,tony--/nodyn,nodyn/nodyn,nodyn/nodyn,tony--/nodyn,tony--/nodyn,dherges/nodyn,dherges/nodyn,dherges/nodyn |
e171427512ebdd5634f1cff21a0e264c181938ea | src/org/redalert1741/steamworks/Robot.java | src/org/redalert1741/steamworks/Robot.java | package org.redalert1741.steamworks;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
/**
* The VM is configured to automatically run this class, and to call the
* functions corresponding to each mod... | package org.redalert1741.steamworks;
import edu.wpi.first.wpilibj.IterativeRobot;
public class Robot extends IterativeRobot
{
@Override
public void robotInit()
{
}
@Override
public void autonomousInit()
{
}
@Override
public void autonomousPeriodic()
{
}
@Override
public void teleopPeriodic()
... | Remove a bunch of stuff | Remove a bunch of stuff
| Java | mit | RAR1741/RA17_RobotCode |
f8f11d1ef94aac5602af81f3e02ccf4fa236685f | src/main/java/de/muspellheim/signalslot/Signal.java | src/main/java/de/muspellheim/signalslot/Signal.java | /*
* Copyright (c) 2013-2015 Falko Schumann <www.muspellheim.de>
* Released under the terms of the MIT License.
*/
package de.muspellheim.signalslot;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
/**
* A signal act as source of data and can connect to any compatible slot.
*
* @param ... | /*
* Copyright (c) 2013-2015 Falko Schumann <www.muspellheim.de>
* Released under the terms of the MIT License.
*/
package de.muspellheim.signalslot;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.CopyOnWriteArrayList;
/**
* A signal act as source of data and can connect to any comp... | Use Objects::requireNonNull instead of if-throw | Use Objects::requireNonNull instead of if-throw | Java | mit | falkoschumann/signalslot4java |
3c3a697a525762df655ddaf1c0c91a2c06eb4a2b | cleanroom/Student.java | cleanroom/Student.java | import java.util.ArrayList;
import java.lang.*;
import java.math.BigDecimal;
public class Student {
int testVariable = 0;
int __cleanVariable = 0;
public int foo() {
return 4711 + __cleanVariable + testVariable;
}
public double bar() {
return 4711.0815 + testVariable;
}
public String baz() {
return "I a... | import java.util.ArrayList;
import java.lang.*;
import java.math.BigDecimal;
public class Student {
int testVariable = 0;
int __cleanVariable = 1;
public int foo() {
int ret = 4711 + testVariable;
__cleanIteratorClass iterator = new __cleanIteratorClass();
return ret + iterator.getCleanVar();
}
public doub... | Change cleanroom to use inner class. | Change cleanroom to use inner class.
| Java | apache-2.0 | FAU-Inf2/AuDoscore,FAU-Inf2/AuDoscore |
fc46bd253103fbcef1220259997d7a6fe07bdcb3 | Server.java | Server.java | import java.io.IOException;
public class Server {
// handler default init
public static RequestHandler rh = new RequestHandler();
}
| import java.io.IOException;
public class Server {
// handler default init
public static RequestHandler rh = new RequestHandler();
// one factor authentication string for Update 1.1
public static String authenticationString = "change me";
}
| Update 1.1 - Added one-factor authentication | Update 1.1 - Added one-factor authentication | Java | mit | kyoteprod/Iezon-EasyServer |
6a6d4c5e3c348beaff1657b273585b3ed4b7d91c | trunk/src/test/TestInputResponder.java | trunk/src/test/TestInputResponder.java | import java.awt.Component;
import java.awt.Container;
import java.awt.event.KeyEvent;
import static org.junit.Assert.*;
import org.junit.Test;
import org.junit.Before;
public class TestInputResponder implements InputResponder
{
private InputResponder inputResponder;
private KeyEvent currentKeyEvent = null;
private... | import java.awt.Component;
import java.awt.Container;
import java.awt.event.KeyEvent;
import static org.junit.Assert.*;
import org.junit.Test;
import org.junit.Before;
public class TestInputResponder implements InputResponder
{
private static final Component testKeyEventSource = new Container();
private InputRespo... | Refactor KeyEvent generation for unit tests. | Refactor KeyEvent generation for unit tests.
| Java | bsd-3-clause | JesseeMeadows/Fury-Fighter |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.