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 |
|---|---|---|---|---|---|---|---|---|---|
5b12b9b42961c4686a06bc636221b16d2d3ed033 | src/main/java/me/semx11/autotip/api/reply/TipReply.java | src/main/java/me/semx11/autotip/api/reply/TipReply.java | package me.semx11.autotip.api.reply;
import java.util.Collections;
import java.util.List;
import me.semx11.autotip.api.util.RequestType;
public class TipReply extends AbstractReply {
private List<Tip> tips;
public TipReply() {
}
public TipReply(boolean success) {
super(success);
}
... | package me.semx11.autotip.api.reply;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import me.semx11.autotip.api.util.RequestType;
public class TipReply extends AbstractReply {
private List<Tip> tips;
public TipReply() {
}
public TipReply(boolean success) {
s... | Bump 2.1.0.3 beta release - ha | Bump 2.1.0.3 beta release - ha
| Java | mit | Semx11/Autotip |
ce3ac0e3cf3ef777c9b46161539c8bd43e57223f | src/main/java/hackerrank/RunningTimeOfQuicksort.java | src/main/java/hackerrank/RunningTimeOfQuicksort.java | package hackerrank;
import java.util.Scanner;
/**
* https://www.hackerrank.com/challenges/quicksort4
*/
public class RunningTimeOfQuicksort {
private static int quicksort(int[] array) {
// TODO:
return 0;
}
public static void main(String[] args) {
Scanner in = new Scanner(System... | package hackerrank;
import java.util.Arrays;
import java.util.Scanner;
/**
* https://www.hackerrank.com/challenges/quicksort4
*/
public class RunningTimeOfQuicksort {
private static int quicksortSwaps;
private static int insertionSortShifts;
private static int runningTime(int[] array) {
int[] c... | Solve Running Time of Quicksort | Solve Running Time of Quicksort
| Java | mit | fredyw/hackerrank |
73a41f2d8f8d2479e67dc8028cf615f2019aeaf2 | src/main/java/com/metroveu/metroveu/WearConnector.java | src/main/java/com/metroveu/metroveu/WearConnector.java | package com.metroveu.metroveu;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import com.google.android.gms.wearable.DataEvent;
import com.google.android.gms.wearable.DataEventBuffer;
import com.google.android.gms.wearable.DataMap;
import com.google.andr... | package com.metroveu.metroveu;
import android.util.Log;
import com.google.android.gms.wearable.DataEvent;
import com.google.android.gms.wearable.DataEventBuffer;
import com.google.android.gms.wearable.DataMap;
import com.google.android.gms.wearable.DataMapItem;
import com.google.android.gms.wearable.MessageEvent;
imp... | Change WeareableListener tag and implement onMessageReceived | Change WeareableListener tag and implement onMessageReceived
| Java | mit | joanvila/MetroVeu |
34438d7f431fd3bc164dd27134a10692dbcf86c7 | src/main/java/hudson/plugins/git/UserRemoteConfig.java | src/main/java/hudson/plugins/git/UserRemoteConfig.java | package hudson.plugins.git;
import java.io.Serializable;
import hudson.Extension;
import hudson.model.AbstractDescribableImpl;
import hudson.model.Descriptor;
import hudson.util.FormValidation;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.QueryParameter;
import org.kohsuke.stapler.expor... | package hudson.plugins.git;
import java.io.Serializable;
import hudson.Extension;
import hudson.model.AbstractDescribableImpl;
import hudson.model.Descriptor;
import hudson.util.FormValidation;
import org.apache.commons.lang.StringUtils;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.Que... | Trim repository URL when copied/pasted from a repo hoster (google code) the URL may include trailing spaces that make the clone command fail | Trim repository URL
when copied/pasted from a repo hoster (google code) the URL may include trailing spaces that make the clone command fail
| Java | mit | ndeloof/git-plugin,ndeloof/git-plugin,kzantow/git-plugin,mklein0/git-plugin,martinda/git-plugin,Nonymus/git-plugin,ialbors/git-plugin,Vlatombe/git-plugin,ndeloof/git-plugin,abaditsegay/git-plugin,ydubreuil/git-plugin,jacob-keller/git-plugin,Jellyvision/git-plugin,mklein0/git-plugin,ydubreuil/git-plugin,nordstrand/git-p... |
8ff6caa8db3ff7731ec69965d90614b198e5853c | src/test/java/com/md_5/fondue/protocol/HandlerTest.java | src/test/java/com/md_5/fondue/protocol/HandlerTest.java | package com.md_5.fondue.protocol;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.Arrays;
import org.junit.Test;
import static org.junit.Assert.*;
public class HandlerTest {
/**
* Method to test each handler type defines everything it requires
*/
@Test
... | package com.md_5.fondue.protocol;
import java.lang.reflect.Method;
import static org.junit.Assert.*;
import org.junit.Test;
public class HandlerTest {
/**
* Method to test each handler type defines everything it requires
*/
@Test
public void doTest() throws NoSuchMethodException {
check... | Add additional test to ensure the wrong methods are not implemented. | Add additional test to ensure the wrong methods are not implemented.
| Java | bsd-3-clause | BukkitDevTeam/Fondue |
f26c4170991f4f2b6c96732259dfee83d351e1cf | view/src/main/java/org/xcolab/view/pages/proposals/view/contest/ContestDiscussionController.java | view/src/main/java/org/xcolab/view/pages/proposals/view/contest/ContestDiscussionController.java | package org.xcolab.view.pages.proposals.view.contest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.xcolab.view.pages.proposals.utils.context.ProposalContext;
import org.xcolab.view.pages.proposals.view.prop... | package org.xcolab.view.pages.proposals.view.contest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.xcolab.client.admin.pojo.ContestType;
import org.xcolab.client.contest.pojo.Contest;
import org.xcolab.clie... | Add permissions to contest discussion | [COLAB-2820] Add permissions to contest discussion
| Java | mit | CCI-MIT/XCoLab,CCI-MIT/XCoLab,CCI-MIT/XCoLab,CCI-MIT/XCoLab |
5a6db176d891fb22ca6600f2e3b9cf567530b730 | plugins/github/src/org/jetbrains/plugins/github/GithubUser.java | plugins/github/src/org/jetbrains/plugins/github/GithubUser.java | /*
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | /*
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Add "Enterprise" to the list of possible user plans. | [github] Add "Enterprise" to the list of possible user plans.
It fixes IDEA-101433, since unknown plan is treated as "free".
| Java | apache-2.0 | adedayo/intellij-community,izonder/intellij-community,samthor/intellij-community,Distrotech/intellij-community,nicolargo/intellij-community,holmes/intellij-community,salguarnieri/intellij-community,hurricup/intellij-community,dslomov/intellij-community,clumsy/intellij-community,vvv1559/intellij-community,youdonghai/int... |
dfe3ff5dfe5196c4dd5eb31e935de69e63b21450 | app/src/main/java/fr/free/nrw/commons/nearby/NearbyViewHolder.java | app/src/main/java/fr/free/nrw/commons/nearby/NearbyViewHolder.java | package fr.free.nrw.commons.nearby;
import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import fr.free.nrw.commons.R;
import fr.free.nrw.commons.ViewHolder;
import fr.free.nrw.commons.ut... | package fr.free.nrw.commons.nearby;
import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import fr.free.nrw.commons.R;
import fr.free.nrw.commons.ViewHolder;
import fr.free.nrw.commons.ut... | Set default text when no description found | Set default text when no description found
| Java | apache-2.0 | tobias47n9e/apps-android-commons,sandarumk/apps-android-commons,neslihanturan/apps-android-commons,psh/apps-android-commons,misaochan/apps-android-commons,sandarumk/apps-android-commons,akaita/apps-android-commons,tobias47n9e/apps-android-commons,dbrant/apps-android-commons,whym/apps-android-commons,psh/apps-android-co... |
f1bed47f6c1005f35ff153ef8d9d4ebbbd74cccf | src/org/adaptlab/chpir/android/survey/QuestionFragments/FreeResponseQuestionFragment.java | src/org/adaptlab/chpir/android/survey/QuestionFragments/FreeResponseQuestionFragment.java | package org.adaptlab.chpir.android.survey.QuestionFragments;
import org.adaptlab.chpir.android.survey.QuestionFragment;
import org.adaptlab.chpir.android.survey.R;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.ViewGroup;
import android.widget.EditText;
public class FreeResponseQu... | package org.adaptlab.chpir.android.survey.QuestionFragments;
import org.adaptlab.chpir.android.survey.QuestionFragment;
import org.adaptlab.chpir.android.survey.R;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.ViewGroup;
import android.widget.EditText;
public class FreeResponseQu... | Fix delete free response subclass response deletion on rotation bug | Fix delete free response subclass response deletion on rotation bug
| Java | mit | mnipper/AndroidSurvey,mnipper/AndroidSurvey,mnipper/AndroidSurvey,DukeMobileTech/AndroidSurvey |
9d9461ffa155fdd892619a396966054095672f43 | webapp/mockui/src/main/java/com/autonomy/abc/selenium/find/filters/FindIndexLeafNode.java | webapp/mockui/src/main/java/com/autonomy/abc/selenium/find/filters/FindIndexLeafNode.java | package com.autonomy.abc.selenium.find.filters;
import com.autonomy.abc.selenium.indexes.tree.IndexNodeElement;
import com.hp.autonomy.frontend.selenium.element.CheckboxBase;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
class FindIndexLeafNode implements IndexNodeElement {
private final C... | package com.autonomy.abc.selenium.find.filters;
import com.autonomy.abc.selenium.indexes.tree.IndexNodeElement;
import com.hp.autonomy.frontend.selenium.element.CheckboxBase;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
class FindIndexLeafNode implements IndexNodeElement {
private final C... | Fix finding the checkbox for the index filters | Fix finding the checkbox for the index filters
Broken either by actual change or updating Checkboxes to extend CheckBoxBase.
Could not click on 'All' in tests.
| Java | mit | hpautonomy/find,hpautonomy/find,hpautonomy/find,hpautonomy/find,hpautonomy/find,hpe-idol/find,hpe-idol/find,hpe-idol/find,hpe-idol/java-powerpoint-report,hpe-idol/find,hpe-idol/find,hpe-idol/java-powerpoint-report |
a723e19db1503bb921525164eae3c89cead0073b | app/src/main/java/com/sandrlab/listcase/presentation/repos_list/view/GitReposListView.java | app/src/main/java/com/sandrlab/listcase/presentation/repos_list/view/GitReposListView.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribu... | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribu... | Add Moxy StrategyType for showMessage | Add Moxy StrategyType for showMessage
| Java | apache-2.0 | sandrfx/ListCase |
239254f784ff0e748a80cf6d566b6f3b5b96799c | src/main/java/org/openlmis/stockmanagement/CustomWebMvcConfigurerAdapter.java | src/main/java/org/openlmis/stockmanagement/CustomWebMvcConfigurerAdapter.java | package org.openlmis.stockmanagement;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry... | package org.openlmis.stockmanagement;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.CacheControl;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.se... | Enable cache for swagger ui web jar so that it's faster to load in test/uat envs | Enable cache for swagger ui web jar so that it's faster to load in test/uat envs
| Java | agpl-3.0 | OpenLMIS/openlmis-stockmanagement,OpenLMIS/openlmis-stockmanagement,OpenLMIS/openlmis-stockmanagement,OpenLMIS/openlmis-stockmanagement |
e17bab5abe1fd317e401698f723fa89d09e2526f | src/main/java/org/hummingbirdlang/nodes/HBSourceRootNode.java | src/main/java/org/hummingbirdlang/nodes/HBSourceRootNode.java | package org.hummingbirdlang.nodes;
import com.oracle.truffle.api.frame.FrameDescriptor;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.RootNode;
import com.oracle.truffle.api.source.SourceSection;
import org.hummingbirdlang.HBLanguage;
import org.hummingbirdlang.types.realize.In... | package org.hummingbirdlang.nodes;
import com.oracle.truffle.api.frame.FrameDescriptor;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.RootNode;
import com.oracle.truffle.api.source.SourceSection;
import org.hummingbirdlang.HBLanguage;
import org.hummingbirdlang.types.realize.In... | Make root node able to execute itself | Make root node able to execute itself
| Java | bsd-3-clause | dirk/hummingbird2,dirk/hummingbird2,dirk/hummingbird2 |
ab879a25ea6751d273c679d221d2c894cfec51e8 | client/src/main/java/me/izstas/rfs/client/RfsClient.java | client/src/main/java/me/izstas/rfs/client/RfsClient.java | package me.izstas.rfs.client;
public class RfsClient {
public static void main(String[] args) {
}
}
| package me.izstas.rfs.client;
import javax.swing.JFrame;
import javax.swing.UIManager;
import me.izstas.rfs.client.ui.ServerForm;
public class RfsClient {
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catc... | Make main method open ServerForm | Make main method open ServerForm
| Java | mit | izstas/RFS |
024ce90a01876b08435db00795ed2b22a7a0f218 | project/Activity.java | 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... | Use ConfigXmlParser in activity. Adds CordovaWebView.init() | Refactor: Use ConfigXmlParser in activity. Adds CordovaWebView.init()
This does subtly change the API surface due to CordovaWebView.init(),
but only minimally, and is backwards compatibly with the default
generated projects from prior versions.
| Java | apache-2.0 | CrandellWS/cordova-android-template,CrandellWS/cordova-android-template,CrandellWS/cordova-android-template |
ccb2718f8cac8ce138229a70174b84e74bf50b1e | test/source/se/ericthelin/fractions/GreatestCommonDivisorTest.java | test/source/se/ericthelin/fractions/GreatestCommonDivisorTest.java | package se.ericthelin.fractions;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
public class GreatestCommonDivisorTest {
@Test
public void returnsFirstWhenSecondIsZero() {
assertThat(GreatestCommonDivisor.of(6, 0), is(6));
}
@Test
public void re... | package se.ericthelin.fractions;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
public class GreatestCommonDivisorTest {
@Test
public void returnsFirstWhenSecondIsZero() {
assertThat(GreatestCommonDivisor.of(6, 0), is(6));
}
@Test
public void re... | Check that GreatestCommonDivisor accepts negative second argument | Check that GreatestCommonDivisor accepts negative second argument
| Java | mit | eric-thelin/fractions |
2b9fcbaf87d26a73ef0a3239c90e1cfea8fc3728 | src/net/localizethat/actions/GlossaryManagerAction.java | src/net/localizethat/actions/GlossaryManagerAction.java | /*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package net.localizethat.actions;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
impor... | /*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package net.localizethat.actions;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
impor... | Move GlossaryManager to tabpanels package (leftover) | Move GlossaryManager to tabpanels package (leftover) | Java | mpl-2.0 | RickieES/glossarymanager,RickieES/glossarymanager |
61a5c5870c7363034eb20b19b54b3df6e622da39 | services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/snapshot/getsavedvers/SnapshotInfo.java | services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/snapshot/getsavedvers/SnapshotInfo.java | package uk.ac.ic.wlgitbridge.snapshot.getsavedvers;
import uk.ac.ic.wlgitbridge.util.Util;
/**
* Created by Winston on 06/11/14.
*/
public class SnapshotInfo implements Comparable<SnapshotInfo> {
private int versionId;
private String comment;
private WLUser user;
private String createdAt;
publ... | package uk.ac.ic.wlgitbridge.snapshot.getsavedvers;
import uk.ac.ic.wlgitbridge.util.Util;
/**
* Created by Winston on 06/11/14.
*/
public class SnapshotInfo implements Comparable<SnapshotInfo> {
private int versionId;
private String comment;
private WLUser user;
private String createdAt;
publ... | Support for anonymous saved versions | Support for anonymous saved versions
This fixes a case when de API sends a version without user. There was a
bug allowing to create anonymous versions in the application and we
have to support the old data.
The problem here is that SnapshotInfo classes are inflated from json
via Gson. This method does not call any co... | Java | agpl-3.0 | sharelatex/sharelatex |
188cc1207695ca622c32d5bc9cce44f96918d0d2 | src/main/java/com/ibm/watson/developer_cloud/personality_insights/v2/model/AcceptLanguage.java | src/main/java/com/ibm/watson/developer_cloud/personality_insights/v2/model/AcceptLanguage.java | /*
* Copyright 2015 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | /*
* Copyright 2015 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | Add Arabic and Japanese support for Personality Insights | Add Arabic and Japanese support for Personality Insights
| Java | apache-2.0 | JoshSharpe/java-sdk,watson-developer-cloud/java-sdk,watson-developer-cloud/java-sdk,watson-developer-cloud/java-sdk,m2fd/java-sdk,m2fd/java-sdk,supunucsc/java-sdk,watson-developer-cloud/java-sdk,JoshSharpe/java-sdk,supunucsc/java-sdk,JoshSharpe/java-sdk,supunucsc/java-sdk,m2fd/java-sdk |
c22a8452f11899a0982d3123bd05912a8b53b6a3 | src/main/java/org/icij/extract/DocumentQueueType.java | src/main/java/org/icij/extract/DocumentQueueType.java | package org.icij.extract;
import java.util.Locale;
/**
* An enumerated list of implemented queue types.
*
* @author Matthew Caruana Galizia <mcaruana@icij.org>
* @since 1.0.0-beta
*/
public enum DocumentQueueType {
NONE, ARRAY, REDIS;
/**
* Return the name of the queue type.
*
* @return The name of the ... | package org.icij.extract;
import java.util.Locale;
/**
* An enumerated list of implemented queue types.
*
* @author Matthew Caruana Galizia <mcaruana@icij.org>
* @since 1.0.0-beta
*/
public enum DocumentQueueType {
ARRAY, REDIS;
/**
* Return the name of the queue type.
*
* @return The name of the queue ... | Remove unused queue type 'none' | Remove unused queue type 'none'
| Java | mit | ICIJ/extract,ICIJ/extract |
63a7198eed9835e2319d244aaeb55cab0a605086 | src/protocolsupport/injector/network/NettyInjector.java | src/protocolsupport/injector/network/NettyInjector.java | package protocolsupport.injector.network;
import net.minecraft.server.v1_8_R3.MinecraftServer;
import net.minecraft.server.v1_8_R3.ServerConnection;
import protocolsupport.ProtocolSupport;
import protocolsupport.utils.Utils;
import protocolsupport.utils.Utils.Converter;
public class NettyInjector {
private static f... | package protocolsupport.injector.network;
import net.minecraft.server.v1_8_R3.MinecraftServer;
import net.minecraft.server.v1_8_R3.ServerConnection;
import protocolsupport.ProtocolSupport;
import protocolsupport.utils.Utils;
import protocolsupport.utils.Utils.Converter;
public class NettyInjector {
private static f... | Disable native transport by default unless allowed by system property. | Disable native transport by default unless allowed by system property. | Java | agpl-3.0 | ridalarry/ProtocolSupport,ProtocolSupport/ProtocolSupport |
e2a9a61ce77d6b702464e567ebe50657a1ad4fa7 | FractalLandscapeGenerator/src/flg/rendering/HeatMap.java | FractalLandscapeGenerator/src/flg/rendering/HeatMap.java | package flg.rendering;
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPanel;
public class HeatMap
extends JPanel {
private static final long serialVersionUID = 1L;
public final static int PIXEL_SIZE = 5;
private float[][] heights;
public HeatMap(float[][] he... | package flg.rendering;
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPanel;
public class HeatMap
extends JPanel {
private static final long serialVersionUID = 1L;
public final static int PIXEL_SIZE = 3;
private float[][] heights;
public HeatMap(float[][] he... | Extend heat map with better color scale. | Extend heat map with better color scale. | Java | mit | samuelsmal/fractal_landscape_generator |
2081dbaab1c6fd51979f1b1a03736244714a32cc | geneproduct-common/src/test/java/uk/ac/ebi/quickgo/geneproduct/common/common/GeneProductDocMocker.java | geneproduct-common/src/test/java/uk/ac/ebi/quickgo/geneproduct/common/common/GeneProductDocMocker.java | package uk.ac.ebi.quickgo.geneproduct.common.common;
import uk.ac.ebi.quickgo.geneproduct.common.document.GeneProductDocument;
import java.util.Arrays;
import java.util.Collections;
/**
* Class to create mocked objects of type {@link GeneProductDocument}.
*/
public final class GeneProductDocMocker {
private Ge... | package uk.ac.ebi.quickgo.geneproduct.common.common;
import uk.ac.ebi.quickgo.geneproduct.common.document.GeneProductDocument;
import java.util.Arrays;
import java.util.Collections;
/**
* Class to create mocked objects of type {@link GeneProductDocument}.
*/
public final class GeneProductDocMocker {
private Ge... | Add taxon name example to gene product stub. | Add taxon name example to gene product stub.
See issue: https://www.ebi.ac.uk/panda/jira/browse/GOA-2398
| Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
03d2365c8869b4af89754e2de2afb8c6a89b8b26 | src/main/java/openmods/igw/impl/client/GuiOpenEventHandler.java | src/main/java/openmods/igw/impl/client/GuiOpenEventHandler.java | package openmods.igw.impl.client;
import net.minecraft.client.gui.GuiMainMenu;
import net.minecraftforge.client.event.GuiOpenEvent;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import openmods.igw.OpenModsIGW;
@SideOnly(Side.CL... | package openmods.igw.impl.client;
import com.google.common.base.Preconditions;
import net.minecraft.client.gui.GuiMainMenu;
import net.minecraftforge.client.event.GuiOpenEvent;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
impor... | Use API instead of direct calls in GUI event handler | Use API instead of direct calls in GUI event handler
Sorry for no GPG signature, but Git doesn't want to run GPG nor any
other software. Reason: unknown
Signed-off-by: TheSilkMiner <7e811527e53179cd216d0ac71740b4760bead5b2@outlook.com>
| Java | mit | OpenMods/OpenMods-IGW |
b1aed31d683bbd74976f429e5773741fa5695254 | src/main/java/openmods/network/targets/SelectChunkWatchers.java | src/main/java/openmods/network/targets/SelectChunkWatchers.java | package openmods.network.targets;
import java.util.Collection;
import java.util.Set;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.server.MinecraftServer;
import net.minecraft.world.WorldServer;
import openmods.network.DimCoord;
import openmods.network.IPacketTargetSelector;
import openmods.... | package openmods.network.targets;
import java.util.Collection;
import java.util.Set;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.world.WorldServer;
import net.minecraftforge.common.DimensionManager;
import openmods.network.DimCoord;
import openmods.network.IPacketTargetSelector;
import ope... | Fix invalid method used to get worlds | Fix invalid method used to get worlds
| Java | mit | OpenMods/OpenModsLib,nevercast/OpenModsLib,OpenMods/OpenModsLib |
0746a877c05c57f2edf0200e2a1fe314883bde87 | src/test/java/org/apache/commons/crypto/random/TestOsCryptoRandom.java | src/test/java/org/apache/commons/crypto/random/TestOsCryptoRandom.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | Check that class is instantiated correctly | Check that class is instantiated correctly | Java | apache-2.0 | kexianda/commons-crypto,kexianda/commons-crypto,kexianda/commons-crypto,kexianda/commons-crypto |
d332c3f6c5f8f953965ebe00868851bf36694d12 | software/ncia-ctp/src/gov/nih/nci/ncia/util/UltrasoundUtil.java | software/ncia-ctp/src/gov/nih/nci/ncia/util/UltrasoundUtil.java | package gov.nih.nci.ncia.util;
import java.text.DecimalFormat;
import java.text.NumberFormat;
/**
* Util class for Ultrasound process
*
* @author zhoujim
*
*/
public class UltrasoundUtil {
public static final int[] MASKS = {0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020,0x0040, 0x0100, 0x0200};
... | package gov.nih.nci.ncia.util;
import java.text.DecimalFormat;
import java.text.NumberFormat;
/**
* Util class for Ultrasound process
*
* @author zhoujim
*
*/
public class UltrasoundUtil {
public static final int[] MASKS = {0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020,0x0040, 0x0100, 0x0200};
... | Use exception if the image is not Ultrasound image. | Use exception if the image is not Ultrasound image.
| Java | bsd-3-clause | NCIP/national-biomedical-image-archive,NCIP/national-biomedical-image-archive,NCIP/national-biomedical-image-archive,NCIP/national-biomedical-image-archive,NCIP/national-biomedical-image-archive |
17d41651603b40c79d3deb5c0ab3d5c9b74042f3 | codenvy-ext-datasource-shared/src/main/java/com/codenvy/ide/ext/datasource/shared/ExploreTableType.java | codenvy-ext-datasource-shared/src/main/java/com/codenvy/ide/ext/datasource/shared/ExploreTableType.java | /*
* Copyright 2014 Codenvy, S.A.
*
* 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 ... | /*
* Copyright 2014 Codenvy, S.A.
*
* 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 ... | Add index to table categories | Add index to table categories | Java | epl-1.0 | codenvy/plugin-datasource,codenvy/plugin-datasource |
c76474a6500f0c601a225a1ae42a3c80f5735de6 | src/main/java/net/kleinhaneveld/fn/validations/Validations.java | src/main/java/net/kleinhaneveld/fn/validations/Validations.java | package net.kleinhaneveld.fn.validations;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
public abstract class Validations {
public static <T> T notNull(@CheckForNull T item) {
if (item == null) {
throw new NullPointerException();
}
return item;
}
... | package net.kleinhaneveld.fn.validations;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
public abstract class Validations {
public static <T> T notNull(@CheckForNull T item) {
if (item == null) {
throw new NullPointerException();
}
return item;
}
... | Allow formatting of error message for null check. | Allow formatting of error message for null check.
| Java | mit | peterpaul/fn |
f5395c07e1a4d3d60998f5c798cc3cf22c1566f4 | initializr-generator/src/main/java/io/spring/initializr/metadata/InvalidInitializrMetadataException.java | initializr-generator/src/main/java/io/spring/initializr/metadata/InvalidInitializrMetadataException.java | /*
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | /*
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Split metadata specific exception from InitializrException | Split metadata specific exception from InitializrException
| Java | apache-2.0 | spring-io/initializr,snicoll/initializr,spring-io/initializr,snicoll/initializr,snicoll/initializr,spring-io/initializr |
9c350511de1fe77606818d77beee6788f85ef8e3 | tennis-stats/src/main/java/org/strangeforest/tcb/stats/jobs/RefreshRecordsJob.java | tennis-stats/src/main/java/org/strangeforest/tcb/stats/jobs/RefreshRecordsJob.java | package org.strangeforest.tcb.stats.jobs;
import org.slf4j.*;
import org.springframework.beans.factory.annotation.*;
import org.springframework.context.annotation.*;
import org.springframework.scheduling.annotation.*;
import org.springframework.stereotype.*;
import org.strangeforest.tcb.stats.service.*;
@Component
@P... | package org.strangeforest.tcb.stats.jobs;
import org.slf4j.*;
import org.springframework.beans.factory.annotation.*;
import org.springframework.context.annotation.*;
import org.springframework.scheduling.annotation.*;
import org.springframework.stereotype.*;
import org.strangeforest.tcb.stats.service.*;
@Component
@P... | Clear all caches after refreshing records | Clear all caches after refreshing records
| Java | apache-2.0 | mcekovic/tennis-crystal-ball,mcekovic/tennis-crystal-ball,mcekovic/tennis-crystal-ball,mcekovic/tennis-crystal-ball,mcekovic/tennis-crystal-ball |
dec7c3ed334e21bb0b4768d720cd1cf8fdf6b50a | ethereumj-core/src/test/java/org/ethereum/net/shh/TopicTest.java | ethereumj-core/src/test/java/org/ethereum/net/shh/TopicTest.java | package org.ethereum.net.shh;
import org.junit.Test;
import org.spongycastle.util.encoders.Hex;
import static org.junit.Assert.assertEquals;
public class TopicTest {
@Test
public void test1(){
Topic topic = new Topic("cow");
assertEquals("c85ef7d7", Hex.toHexString(topic.getBytes()));
}
... | package org.ethereum.net.shh;
import org.junit.Test;
import org.spongycastle.util.encoders.Hex;
import static org.junit.Assert.assertEquals;
public class TopicTest {
@Test
public void test1(){
Topic topic = new Topic("cow");
assertEquals("91887637", Hex.toHexString(topic.getBytes()));
}
... | Change test to conform version 3 topic encoding | Change test to conform version 3 topic encoding
| Java | mit | loxal/FreeEthereum,chengtalent/ethereumj,loxal/FreeEthereum,loxal/ethereumj,loxal/FreeEthereum,caxqueiroz/ethereumj |
dee1c30719c88d81cc0a6c29d18dd406a78d965d | nassau/src/main/java/org/jvirtanen/nassau/ProtocolException.java | nassau/src/main/java/org/jvirtanen/nassau/ProtocolException.java | package org.jvirtanen.nassau;
import java.io.IOException;
public class ProtocolException extends IOException {
public ProtocolException(String message) {
super(message);
}
public ProtocolException(String message, Throwable reason) {
super(message, reason);
}
public ProtocolExcep... | package org.jvirtanen.nassau;
import java.io.IOException;
public class ProtocolException extends IOException {
public ProtocolException(String message) {
super(message);
}
public ProtocolException(String message, Throwable cause) {
super(message, cause);
}
public ProtocolExcepti... | Clean up interface for protocol exception | Clean up interface for protocol exception
| Java | apache-2.0 | paritytrading/nassau,pmcs/nassau,pmcs/nassau,paritytrading/nassau |
b60c5ec3ad1549b11831bbe95f957abc0b38d3dc | src/main/java/fr/insee/rmes/utils/XmlUtils.java | src/main/java/fr/insee/rmes/utils/XmlUtils.java | package fr.insee.rmes.utils;
public class XmlUtils {
public static String encodeXml(String s) {
return s.replaceAll("<([a-zA-Z]+)>", "<$1>") //xml open tag
.replaceAll("</([a-zA-Z]+)>", "</$1>") //xml close tag
.replaceAll("<([a-zA-Z]+)/>", "<$1/>") //br
.replaceAll("<([a-zA-Z... | package fr.insee.rmes.utils;
public class XmlUtils {
public static String encodeXml(String s) {
return s.replaceAll("<([a-zA-Z]+)>", "<$1>") //xml open tag
.replaceAll("</([a-zA-Z]+)>", "</$1>") //xml close tag
.replaceAll("<([a-zA-Z]+)/>", "<$1/>") //br
.replaceAll("<([a-zA-Z... | Fix issue with href tag | Fix issue with href tag
| Java | mit | FranckCo/Metadata-API |
ee53cbec926a9d201e428622ef67440089f46147 | src/net/zephyrizing/http_server/HttpServer.java | src/net/zephyrizing/http_server/HttpServer.java | package net.zephyrizing.http_server;
public class HttpServer {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}
| package net.zephyrizing.http_server;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
public class HttpServer {
public static void main(String[] args) throws Exception {
int portNumber = Integer.parseInt(args... | Implement a simple echo server | Implement a simple echo server
| Java | mit | RadicalZephyr/http-server |
d2cc3204064326b513432a1d690b3d3a66e8c027 | annotation-rest/src/main/java/uk/ac/ebi/quickgo/annotation/service/converter/AnnotationDocConverterImpl.java | annotation-rest/src/main/java/uk/ac/ebi/quickgo/annotation/service/converter/AnnotationDocConverterImpl.java | package uk.ac.ebi.quickgo.annotation.service.converter;
import uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocument;
import uk.ac.ebi.quickgo.annotation.model.Annotation;
import java.util.ArrayList;
/**
* Concrete implementation of the {@link AnnotationDocConverter}.
*
* @author Tony Wardell
* Date: 2... | package uk.ac.ebi.quickgo.annotation.service.converter;
import uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocument;
import uk.ac.ebi.quickgo.annotation.model.Annotation;
import java.util.ArrayList;
/**
* Concrete implementation of the {@link AnnotationDocConverter}.
*
* @author Tony Wardell
* Date: 2... | Remove duplicate assignment of goEvidence. | Remove duplicate assignment of goEvidence.
| Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
bf174a0c7581bdb716a8c5f7e07ad4392423106c | src/main/java/org/openmhealth/dsu/repository/UserRepository.java | src/main/java/org/openmhealth/dsu/repository/UserRepository.java | /*
* Copyright 2014 Open mHealth
*
* 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 2014 Open mHealth
*
* 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... | Add more user repository methods. | Add more user repository methods.
| Java | apache-2.0 | smalldatalab/omh-dsu,smalldatalab/omh-dsu,openmhealth/omh-dsu-ri,smalldatalab/omh-dsu,smalldatalab/omh-dsu,openmhealth/omh-dsu-ri |
1876431d9f0382ce6e042aea102cc447ffef6601 | SwapMyRide/app/src/androidTest/java/ca/ualberta/cs/swapmyride/UserSingletonTest.java | SwapMyRide/app/src/androidTest/java/ca/ualberta/cs/swapmyride/UserSingletonTest.java | package ca.ualberta.cs.swapmyride;
import android.test.ActivityInstrumentationTestCase2;
/**
* Created by adrianomarini on 2015-11-01.
*/
public class UserSingletonTest extends ActivityInstrumentationTestCase2 {
public UserSingletonTest(){
super(MainMenu.class);
}
public void testAddUser(){
... | package ca.ualberta.cs.swapmyride;
import android.test.ActivityInstrumentationTestCase2;
/**
* Created by adrianomarini on 2015-11-01.
*/
public class UserSingletonTest extends ActivityInstrumentationTestCase2 {
public UserSingletonTest(){
super(MainMenu.class);
}
public void testAddUser(){
... | Fix SingletonTest so we can run other tests | Fix SingletonTest so we can run other tests
| Java | apache-2.0 | CMPUT301F15T05/cuddly-quack |
4fbf43d24d5c391de3d4b6abf964d361ad0f55e0 | Realization/backend/core/core-api/src/main/java/eu/bcvsolutions/idm/core/api/rest/lookup/AbstractEntityLookup.java | Realization/backend/core/core-api/src/main/java/eu/bcvsolutions/idm/core/api/rest/lookup/AbstractEntityLookup.java | package eu.bcvsolutions.idm.core.api.rest.lookup;
import org.springframework.core.GenericTypeResolver;
import eu.bcvsolutions.idm.core.api.entity.BaseEntity;
/**
* Lookup support
*
* @author Radek Tomiška
*
* @param <E>
*/
public abstract class AbstractEntityLookup<E extends BaseEntity> implements EntityLooku... | package eu.bcvsolutions.idm.core.api.rest.lookup;
import org.springframework.core.GenericTypeResolver;
import eu.bcvsolutions.idm.core.api.entity.BaseEntity;
import eu.bcvsolutions.idm.core.api.script.ScriptEnabled;
/**
* Lookup support
*
* @author Radek Tomiška
*
* @param <E>
*/
public abstract class Abstrac... | Add temporary scrip enabled for lookup services | Add temporary scrip enabled for lookup services
| Java | mit | bcvsolutions/CzechIdMng,bcvsolutions/CzechIdMng,bcvsolutions/CzechIdMng,bcvsolutions/CzechIdMng |
e42f0cd66b4c3d3489b745d7d29c81f2810f751e | src/main/java/de/prob2/ui/ProB2Preloader.java | src/main/java/de/prob2/ui/ProB2Preloader.java | package de.prob2.ui;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.ImageView;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
public class ProB2Preloader extends javafx.application.Preloader {
Stage loadingStage;
Scene scene;
@Override
public void init() ... | package de.prob2.ui;
import javafx.application.Preloader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.ImageView;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
public class ProB2Preloader extends Preloader {
private Stage loadingStage;
private Scene scene;
... | Fix loading stage hiding in preloader | Fix loading stage hiding in preloader
| Java | epl-1.0 | bendisposto/prob2-ui,bendisposto/prob2-ui,bendisposto/prob2-ui,bendisposto/prob2-ui |
7b98ee757774e5c2daa4229b3d2d007c3e08479f | src/main/java/com/github/daytron/revworks/authentication/AuthenticationException.java | src/main/java/com/github/daytron/revworks/authentication/AuthenticationException.java | /*
* Copyright 2015 Ryan Gilera.
*
* 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 ... | /*
* Copyright 2015 Ryan Gilera.
*
* 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 ... | Apply class comments and refactor spacing | Apply class comments and refactor spacing
| Java | apache-2.0 | Daytron/revworks |
c2264b943b05438f4a1322d4c3adfd0a991ff1bb | rio-lib/src/main/java/org/rioproject/util/BannerProviderImpl.java | rio-lib/src/main/java/org/rioproject/util/BannerProviderImpl.java | /*
* Copyright to 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 applicabl... | /*
* Copyright to 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 applicabl... | Add details on Java version, vendor and home when banner is displayed | Add details on Java version, vendor and home when banner is displayed
| Java | apache-2.0 | dreedyman/Rio,dreedyman/Rio,dreedyman/Rio |
4081d372be6250b7a2ff28990af27980c0ffaf60 | test/dependency-rewrite/src/main/java/com/vaadin/test/dependencyrewrite/MyService.java | test/dependency-rewrite/src/main/java/com/vaadin/test/dependencyrewrite/MyService.java | package com.vaadin.test.dependencyrewrite;
import java.util.List;
import com.vaadin.server.DependencyFilter;
import com.vaadin.server.DeploymentConfiguration;
import com.vaadin.server.ServiceException;
import com.vaadin.server.VaadinServlet;
import com.vaadin.server.VaadinServletService;
public class MyService exten... | package com.vaadin.test.dependencyrewrite;
import java.util.ArrayList;
import java.util.List;
import com.vaadin.server.DependencyFilter;
import com.vaadin.server.DeploymentConfiguration;
import com.vaadin.server.ServiceException;
import com.vaadin.server.VaadinServlet;
import com.vaadin.server.VaadinServletService;
... | Fix test module for changed dependency filter API | Fix test module for changed dependency filter API
| Java | apache-2.0 | asashour/framework,asashour/framework,kironapublic/vaadin,Darsstar/framework,kironapublic/vaadin,Darsstar/framework,peterl1084/framework,mstahv/framework,peterl1084/framework,kironapublic/vaadin,asashour/framework,Darsstar/framework,Darsstar/framework,peterl1084/framework,mstahv/framework,asashour/framework,peterl1084/... |
8016b06f4ce9182ca8f6907078f7a5ddaf2cefce | broker-core/src/main/java/org/powertac/samplebroker/core/BrokerMain.java | broker-core/src/main/java/org/powertac/samplebroker/core/BrokerMain.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... | Add Authenticator for proxy users | Add Authenticator for proxy users
| Java | apache-2.0 | powertac/powertac-core |
48ef8e364d725044862328fd6db0e3280c64ef51 | src/main/java/com/github/dockerjava/core/CompressArchiveUtil.java | src/main/java/com/github/dockerjava/core/CompressArchiveUtil.java | package com.github.dockerjava.core;
import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream;
import org.apache.commons.io.FileUtils;
import java.io.*;
public class CompressArchiveUtil {
public static File archiveTARFiles(File base... | package com.github.dockerjava.core;
import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream;
import org.apache.commons.io.FileUtils;
import java.io.*;
public class CompressArchiveUtil {
public static File archiveTARFiles(File base... | Use canonical form of Docker folder when building TAR files | Use canonical form of Docker folder when building TAR files
In BuildImageCmdImpl#buildDockerFolderTar a canonical form of the source
files referenced in the Dockerfile is used. But the Docker folder is
passed in the given form to the CompressArchiveUtil.
CompressArchiveUtil#relativize creates absolute TAR archive ent... | Java | apache-2.0 | klesgidis/docker-java,carlossg/docker-java,SpazioDati/docker-java,nfsantos/docker-java,dianping/docker-java,camunda-ci/docker-java,ollie314/docker-java,rohitkadam19/docker-java,metavige/docker-java,gesellix/docker-java,signalfx/docker-java,gesellix/docker-java,ollie314/docker-java,rohitkadam19/docker-java,chenchun/dock... |
9e877f9d5114e995516b972120fefbae238dc32e | src/main/java/com/laytonsmith/abstraction/enums/MCPotionType.java | src/main/java/com/laytonsmith/abstraction/enums/MCPotionType.java | package com.laytonsmith.abstraction.enums;
import com.laytonsmith.annotations.MEnum;
@MEnum("PotionType")
public enum MCPotionType {
AWKWARD,
FIRE_RESISTANCE,
INSTANT_DAMAGE,
INSTANT_HEAL,
INVISIBILITY,
JUMP,
LUCK,
MUNDANE,
NIGHT_VISION,
POISON,
REGEN,
SLOWNESS,
SPEED,
STRENGTH,
THICK,
UNCRAFTABLE,
W... | package com.laytonsmith.abstraction.enums;
import com.laytonsmith.annotations.MEnum;
@MEnum("PotionType")
public enum MCPotionType {
AWKWARD,
FIRE_RESISTANCE,
INSTANT_DAMAGE,
INSTANT_HEAL,
INVISIBILITY,
JUMP,
LUCK,
MUNDANE,
NIGHT_VISION,
POISON,
REGEN,
SLOWNESS,
SLOW_FALLING,
SPEED,
STRENGTH,
THICK,
... | Add SLOW_FALLING and TURTLE_MASTER potion types | Add SLOW_FALLING and TURTLE_MASTER potion types
| Java | mit | sk89q/CommandHelper,sk89q/CommandHelper,sk89q/CommandHelper,sk89q/CommandHelper |
7a5851d8b42d5a3d38f6c5944fbe70f2c85336a5 | api/src/main/java/uk/gov/dvla/services/enquiry/DriverEnquiry.java | api/src/main/java/uk/gov/dvla/services/enquiry/DriverEnquiry.java | package uk.gov.dvla.services.enquiry;
import uk.gov.dvla.domain.Driver;
import uk.gov.dvla.domain.Person;
import uk.gov.dvla.services.ManagedService;
public interface DriverEnquiry extends ManagedService
{
public static final String EXTERNAL_DRIVER_URI = "/mib/driver";
public static final String DRIV... | package uk.gov.dvla.services.enquiry;
import uk.gov.dvla.domain.Driver;
import uk.gov.dvla.domain.Person;
import uk.gov.dvla.services.ManagedService;
public interface DriverEnquiry extends ManagedService
{
public static final String EXTERNAL_DRIVER_URI = "/iiadd/api/v1/driver";
public static final St... | Change endpoint to match spec | Change endpoint to match spec
| Java | mit | dvla/vdr-core |
2653ec893488852b8571c4e9ce619ebf51f6e358 | junit4/src/test/java/io/github/bonigarcia/TestRuleExpectedException.java | junit4/src/test/java/io/github/bonigarcia/TestRuleExpectedException.java | /*
* (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | /*
* (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | Remove JUnit 4 rule ExpectedException.none() (deprecated in version 4.13) | Remove JUnit 4 rule ExpectedException.none() (deprecated in version 4.13)
| Java | apache-2.0 | bonigarcia/mastering-junit5,bonigarcia/mastering-junit5 |
a5ab366e0329bffec2ee03cde056b005e5d7ac83 | netty-test-client/src/main/java/com/albin/NettyMain.java | netty-test-client/src/main/java/com/albin/NettyMain.java | package com.albin;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import com.albin.mqtt.NettyClient;
public class NettyMain {
private static NettyClient client;
private static String topic;
public static void main(String[] args) throws InterruptedException, IOExcep... | package com.albin;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import com.albin.mqtt.NettyClient;
public class NettyMain {
private static NettyClient client;
private static String topic;
public static void main(String[] args) throws InterruptedException, IOExcep... | Test app now creates dummy id if none is specified. | Test app now creates dummy id if none is specified.
| Java | apache-2.0 | soenter/MeQanTT,soenter/MeQanTT,AlbinTheander/MeQanTT |
1c9c3d28e1b560d1653f3ebba7ab6ad3c3c76fac | elo-rating-core/src/main/java/com/elorating/config/AppConfig.java | elo-rating-core/src/main/java/com/elorating/config/AppConfig.java | package com.elorating.config;
import com.elorating.service.PlayerStatsService;
import com.elorating.service.PlayerStatsServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* Created by pokor on 10.06.2017.
*/
@Configuration
public class Ap... | package com.elorating.config;
import com.elorating.service.PlayerStatsService;
import com.elorating.service.PlayerStatsServiceImpl;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
import org.springframework.boot.web.servlet.ErrorPage;
import org.springframework.context.annotation.B... | Add 404 handler for SPA routing | Add 404 handler for SPA routing
| Java | apache-2.0 | tomek199/elo-rating,tomek199/elo-rating,tomek199/elo-rating,tomek199/elo-rating |
9c2e3b18a8fb5e1a1c7f29d484b84367442ed247 | goci-data-services/goci-association-upload-services/src/main/java/uk/ac/ebi/spot/goci/service/SheetCreationService.java | goci-data-services/goci-association-upload-services/src/main/java/uk/ac/ebi/spot/goci/service/SheetCreationService.java | package uk.ac.ebi.spot.goci.service;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.openxml4j.opc.OPCPackage;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.springframework.stereotype.Service;
import java.io.IOExc... | package uk.ac.ebi.spot.goci.service;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.openxml4j.exceptions.InvalidOperationException;
import org.apache.poi.openxml4j.opc.OPCPackage;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook... | Add exception to method signature, and add additional annotation | Add exception to method signature, and add additional annotation
| Java | apache-2.0 | EBISPOT/goci,EBISPOT/goci,EBISPOT/goci,EBISPOT/goci,EBISPOT/goci,EBISPOT/goci |
aa83f506e7682b1ee26f118f7cb19db53249288e | mobile/src/main/java/com/alexstyl/specialdates/addevent/bottomsheet/IntentResolver.java | mobile/src/main/java/com/alexstyl/specialdates/addevent/bottomsheet/IntentResolver.java | package com.alexstyl.specialdates.addevent.bottomsheet;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.graphics.drawable.Drawable;
import java.util.ArrayList;
import java.util.List;
final public class IntentResolver {
private final ... | package com.alexstyl.specialdates.addevent.bottomsheet;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.graphics.drawable.Drawable;
import java.util.ArrayList;
import java.util.List;
final public class IntentResolver {
private final ... | Create a new intent for each launching intent | Create a new intent for each launching intent
| Java | mit | alexstyl/Memento-Calendar,auricgoldfinger/Memento-Namedays,alexstyl/Memento-Calendar,alexstyl/Memento-Calendar,alexstyl/Memento-Namedays,auricgoldfinger/Memento-Namedays,alexstyl/Memento-Namedays |
fb5d0925955237fa93a9f65dc419fd37be301c8b | modules/beans/src/main/java/java/beans/PropertyVetoException.java | modules/beans/src/main/java/java/beans/PropertyVetoException.java | /*
* Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
*
* 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... | /*
* Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
*
* 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... | Adjust serialization artifacts to match RI. | Adjust serialization artifacts to match RI.
svn path=/incubator/harmony/enhanced/classlib/trunk/; revision=414445
| Java | apache-2.0 | freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM |
305ccba6af86868b2bc49980810f12337daa552d | src/main/java/org/hummingbirdlang/nodes/HBLetDeclarationNode.java | src/main/java/org/hummingbirdlang/nodes/HBLetDeclarationNode.java | package org.hummingbirdlang.nodes;
import com.oracle.truffle.api.frame.VirtualFrame;
import org.hummingbirdlang.types.TypeException;
import org.hummingbirdlang.types.realize.InferenceVisitor;
public class HBLetDeclarationNode extends HBStatementNode {
private final String left;
@Child private HBExpressionNode ri... | package org.hummingbirdlang.nodes;
import com.oracle.truffle.api.frame.FrameSlot;
import com.oracle.truffle.api.frame.VirtualFrame;
import org.hummingbirdlang.types.TypeException;
import org.hummingbirdlang.types.realize.InferenceVisitor;
public class HBLetDeclarationNode extends HBStatementNode {
private final St... | Make `let` declarations put their value in the local frame | Make `let` declarations put their value in the local frame
| Java | bsd-3-clause | dirk/hummingbird2,dirk/hummingbird2,dirk/hummingbird2 |
f82527752addc9044ab887249f65db88acd3f38b | reactfx/src/main/java/org/reactfx/LazilyBoundStream.java | reactfx/src/main/java/org/reactfx/LazilyBoundStream.java | package org.reactfx;
import java.util.function.Consumer;
/**
* Event stream that has one or more sources (most commonly event streams,
* but not necessarily) to which it is subscribed only when it itself has
* at least one subscriber.
*
* @param <T> type of events emitted by this event stream.
*/
public abstrac... | package org.reactfx;
import java.util.function.Consumer;
/**
* Event stream that has one or more sources (most commonly event streams,
* but not necessarily) to which it is subscribed only when it itself has
* at least one subscriber.
*
* @param <T> type of events emitted by this event stream.
*/
public abstrac... | Use runUnsafeAction in lazy binding implementation | Use runUnsafeAction in lazy binding implementation
| Java | bsd-2-clause | karelinoleg/ReactFX,argv-minus-one/ReactFX,JordanMartinez/ReactFX,TomasMikula/ReactFX,rodel-talampas/ReactFX,hastebrot/ReactFX |
7295040849c890f94133c905663e829e9b166ccd | escape/jsp/src/main/java/net/darkmist/alib/escape/jsp/BaseTag.java | escape/jsp/src/main/java/net/darkmist/alib/escape/jsp/BaseTag.java | package net.darkmist.alib.escape.jsp;
import java.io.IOException;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.Tag;
import net.darkmist.alib.escape.Escaper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
abstract class BaseTag implements ... | package net.darkmist.alib.escape.jsp;
import java.io.IOException;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.tagext.BodyTagSupport;
import net.darkmist.alib.escape.Escaper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
abstract class BaseTag extends BodyTagSupport
{
private stat... | Move back to old way... | Move back to old way...
| Java | lgpl-2.1 | schallee/alib4j |
c2a91514761bd7d4dece2394c7a8e1f6693268e7 | src/test/java/pt/fccn/mobile/arquivo/suite/TestSuite.java | src/test/java/pt/fccn/mobile/arquivo/suite/TestSuite.java | package pt.fccn.mobile.arquivo.suite;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
import pt.fccn.arquivo.tests.imagesearch.ImageSearchTest;
import pt.fccn.mobile.arquivo.tests.FullTextSearchTest;
import pt.fccn.mobile.arquivo.tests.URLSearchTest;
impor... | package pt.fccn.mobile.arquivo.suite;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
import pt.fccn.mobile.arquivo.tests.FullTextSearchTest;
import pt.fccn.mobile.arquivo.tests.URLSearchTest;
import pt.fccn.mobile.arquivo.tests.imagesearch.ImageAdvancedSe... | Fix mobile test suite was using incorrect desktop image search test. | Fix mobile test suite was using incorrect desktop image search test.
| Java | apache-2.0 | arquivo/functional-tests,arquivo/functional-tests |
b9dc910f9190a912704945687c8c1f6efadedebe | src/edu/washington/escience/myria/parallel/CollectProducer.java | src/edu/washington/escience/myria/parallel/CollectProducer.java | package edu.washington.escience.myria.parallel;
import edu.washington.escience.myria.TupleBatch;
import edu.washington.escience.myria.operator.Operator;
/**
* The producer part of the Collect Exchange operator.
*
* The producer actively pushes the tuples generated by the child operator to the paired CollectConsum... | package edu.washington.escience.myria.parallel;
import edu.washington.escience.myria.MyriaConstants;
import edu.washington.escience.myria.TupleBatch;
import edu.washington.escience.myria.operator.Operator;
/**
* The producer part of the Collect Exchange operator.
*
* The producer actively pushes the tuples genera... | Use myria constant for master worker id | Use myria constant for master worker id | Java | bsd-3-clause | bsalimi/myria,jamesmarva/myria,bsalimi/myria,jamesmarva/myria,bsalimi/myria,uwescience/myria,jamesmarva/myria,uwescience/myria,uwescience/myria |
fa814359b0c217095575b43aa4651e613719aabb | src/test/java/org/wkh/bateman/trade/GoogleQuoteFetcherTest.java | src/test/java/org/wkh/bateman/trade/GoogleQuoteFetcherTest.java | package org.wkh.bateman.trade;
import org.wkh.bateman.trade.Quote;
import org.wkh.bateman.trade.GoogleQuoteFetcher;
import java.io.File;
import java.util.List;
import java.util.Scanner;
import static junit.framework.Assert.assertEquals;
import junit.framework.TestCase;
public class GoogleQuoteFetcherTest extends Test... | package org.wkh.bateman.trade;
import org.wkh.bateman.trade.Quote;
import org.wkh.bateman.trade.GoogleQuoteFetcher;
import java.io.File;
import java.util.List;
import java.util.Scanner;
import static junit.framework.Assert.assertEquals;
import junit.framework.TestCase;
public class GoogleQuoteFetcherTest extends Test... | Fix test to work correctly on windows. | Fix test to work correctly on windows.
| Java | mit | fearofcode/bateman,7630155/bateman,7630155/bateman,fearofcode/bateman,priyatransbit/bateman,priyatransbit/bateman,MaxSmile/bateman,MaxSmile/bateman |
75248f30bb92b48918ff5623ec97016bba7378e3 | src/main/java/com/faforever/api/data/domain/Faction.java | src/main/java/com/faforever/api/data/domain/Faction.java | package com.faforever.api.data.domain;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
import java.util.HashMap;
public enum Faction {
// Order is crucial
AEON("aeon"), CYBRAN(... | package com.faforever.api.data.domain;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
import java.util.HashMap;
public enum Faction {
// Order is crucial
AEON("aeon"), CYBRAN(... | Handle factions >5 Nobody knows what they are and where they come from. | Handle factions >5
Nobody knows what they are and where they come from.
| Java | mit | FAForever/faf-java-api,micheljung/faf-java-api,FAForever/faf-java-api,FAForever/faf-java-api,micheljung/faf-java-api |
599d093c766938f631f2142249d86b32b851ef82 | src/main/java/org/jenkinsci/plugins/koji/XMLRPCTest.java | src/main/java/org/jenkinsci/plugins/koji/XMLRPCTest.java | package org.jenkinsci.plugins.koji;
import java.util.Map;
public class XMLRPCTest {
private KojiClient koji;
public static void main(String[] args) {
String kojiInstanceURL = "http://koji.fedoraproject.org/kojihub";
XMLRPCTest kojiTest = new XMLRPCTest(kojiInstanceURL);
kojiTest.tes... | package org.jenkinsci.plugins.koji;
import java.util.Map;
public class XMLRPCTest {
private KojiClient koji;
public static void main(String[] args) {
String kojiInstanceURL = "http://koji.fedoraproject.org/kojihub";
XMLRPCTest kojiTest = new XMLRPCTest(kojiInstanceURL);
kojiTest.exe... | Refactor the XML-RPC testing class. | Refactor the XML-RPC testing class.
| Java | mit | jenkinsci/koji-plugin,jenkinsci/koji-plugin,vtunka/jenkins-koji-plugin |
087c511e5521237b13c8e72950c470bf57885575 | app/src/main/java/eu/redray/trevie/utility/ConnectionDetector.java | app/src/main/java/eu/redray/trevie/utility/ConnectionDetector.java | /*
* Copyright (C) 2016 Mateusz Widuch
*/
package eu.redray.trevie.utility;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/**
* Checks for all possible internet providers
*/
public class ConnectionDetector {
/** Returns true if internet connection is a... | /*
* Copyright (C) 2016 Mateusz Widuch
*/
package eu.redray.trevie.utility;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.Network;
import android.net.NetworkInfo;
/**
* Checks for all possible internet providers
*/
public class ConnectionDetector {
/**
* Retur... | Use non deprecated methods to check for connection on APIs 21+ | refactor: Use non deprecated methods to check for connection on APIs 21+
| Java | mit | mattwiduch/Trevie |
9273b9e9cac50c949c8ac4befa7290cbff84d2b7 | src/main/java/com/pg/creg/expr/character/Negation.java | src/main/java/com/pg/creg/expr/character/Negation.java | /*
* Copyright 2014 gandola.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | /*
* Copyright 2014 gandola.
*
* 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... | Use appendExpr on simple expressions | Use appendExpr on simple expressions
| Java | apache-2.0 | gandola/creg |
b650a1c811d74bb1ae50801f84b66abedda2dd0b | src/api/java/info/u_team/u_team_core/api/integration/Integration.java | src/api/java/info/u_team/u_team_core/api/integration/Integration.java | package info.u_team.u_team_core.api.integration;
import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Integration {
String modid();
String value();
}
| package info.u_team.u_team_core.api.integration;
import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Integration {
String modid();
String integration();
}
| Rename value to integration in annotation | Rename value to integration in annotation | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
0c3545a99ab5da2f3a285976663b37c389c2513d | src/test/java/org/dainst/chronontology/store/ESServerTestUtil.java | src/test/java/org/dainst/chronontology/store/ESServerTestUtil.java | package org.dainst.chronontology.store;
import org.dainst.chronontology.TestConstants;
import org.elasticsearch.common.settings.ImmutableSettings;
import org.elasticsearch.node.Node;
import static org.elasticsearch.node.NodeBuilder.nodeBuilder;
/**
* TODO clean up test dir after tests
*
* @author Daniel M. de Oli... | package org.dainst.chronontology.store;
import org.apache.commons.io.FileUtils;
import org.dainst.chronontology.TestConstants;
import org.elasticsearch.common.settings.ImmutableSettings;
import org.elasticsearch.node.Node;
import java.io.File;
import java.io.IOException;
import static org.elasticsearch.node.NodeBuil... | Delete elasticsearch test data folder after stopping it in tests. | Delete elasticsearch test data folder after stopping it in tests.
| Java | apache-2.0 | codarchlab/chronontology-connected,codarchlab/chronontology-connected |
cb6815c54d44ca62a8f9b1a06fc07dccecc4ebfa | src/main/scala/intellij/haskell/editor/HaskellFoldingSettings.java | src/main/scala/intellij/haskell/editor/HaskellFoldingSettings.java | package intellij.haskell.editor;
import com.intellij.openapi.components.PersistentStateComponent;
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.components.State;
import com.intellij.openapi.components.Storage;
import com.intellij.util.xmlb.XmlSerializerUtil;
import org.jetbrains.an... | package intellij.haskell.editor;
import com.intellij.openapi.components.PersistentStateComponent;
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.components.State;
import com.intellij.openapi.components.Storage;
import com.intellij.util.xmlb.XmlSerializerUtil;
import org.jetbrains.an... | Fix collapse file header setting | Fix collapse file header setting
| Java | apache-2.0 | rikvdkleij/intellij-haskell,rikvdkleij/intellij-haskell |
4e8a0bcfacc9f58bb4e54b08c6b14bb5bd6a05ad | src/test/java/com/codeup/movies/console/CategoriesConsoleTest.java | src/test/java/com/codeup/movies/console/CategoriesConsoleTest.java | /**
* This source file is subject to the license that is bundled with this package in the file LICENSE.
*/
package com.codeup.movies.console;
import com.codeup.console.Console;
import com.codeup.validation.NonEmptyString;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.moc... | /**
* This source file is subject to the license that is bundled with this package in the file LICENSE.
*/
package com.codeup.movies.console;
import com.codeup.console.Console;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import java... | Add test to verify that the console prompts more than once if needed. | Add test to verify that the console prompts more than once if needed.
| Java | mit | MontealegreLuis/hibernate-example |
ce4e107417916e5aac171144d1f34c8735bd525c | test/source/se/ericthelin/fractions/GreatestCommonDivisorTest.java | test/source/se/ericthelin/fractions/GreatestCommonDivisorTest.java | package se.ericthelin.fractions;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
public class GreatestCommonDivisorTest {
@Test
public void returnsFirstWhenSecondIsZero() {
assertThat(GreatestCommonDivisor.of(6, 0), is(6));
}
@Test
public void re... | package se.ericthelin.fractions;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
public class GreatestCommonDivisorTest {
@Test
public void returnsFirstWhenSecondIsZero() {
assertThat(GreatestCommonDivisor.of(6, 0), is(6));
}
@Test
public void re... | Check that GreatestCommonDivisor handles large numbers | Check that GreatestCommonDivisor handles large numbers
| Java | mit | eric-thelin/fractions |
a1224a56179a95f13f94e12a94f4cc4ec32cafef | src/main/java/com/myyearbook/hudson/plugins/confluence/Util.java | src/main/java/com/myyearbook/hudson/plugins/confluence/Util.java | package com.myyearbook.hudson.plugins.confluence;
import java.net.URI;
import java.util.logging.Logger;
/**
* Utility methods
*
* @author Joe Hansche <jhansche@myyearbook.com>
*/
public class Util {
private static final Logger LOGGER = Logger.getLogger(Util.class.getName());
/** Relative path to resolve ... |
package com.myyearbook.hudson.plugins.confluence;
import java.net.URI;
/**
* Utility methods
*
* @author Joe Hansche <jhansche@myyearbook.com>
*/
public class Util {
/** Relative path to resolve the XmlRpc endpoint URL */
private static final String XML_RPC_URL_PATH = "rpc/xmlrpc";
/** Relative pat... | Fix bug with GH-1 for root-installations. | Fix bug with GH-1 for root-installations.
The change made in dd0ecf4 fixed the URLs for Confluence
installations in non-root paths (e.g., http://foo.example.com/confluence/*),
but that broke root installations, because URI#resolve()
interprets "//foo/bar" to mean that the host should become "foo".
Instead of using ge... | Java | apache-2.0 | jenkinsci/confluence-publisher-plugin,jenkinsci/confluence-publisher-plugin |
39045363291cde02ce60284cf092e6061eaecd0e | src/main/java/uk/ac/ebi/biosamples/model/util/ExecutionInfo.java | src/main/java/uk/ac/ebi/biosamples/model/util/ExecutionInfo.java | package uk.ac.ebi.biosamples.model.util;
import java.util.concurrent.atomic.AtomicInteger;
public class ExecutionInfo {
private AtomicInteger submitted;
private AtomicInteger completed;
private AtomicInteger error;
public ExecutionInfo() {
submitted = new AtomicInteger(0);
completed =... | package uk.ac.ebi.biosamples.model.util;
import java.util.concurrent.atomic.AtomicInteger;
public class ExecutionInfo {
private final AtomicInteger submitted;
private final AtomicInteger completed;
private final AtomicInteger error;
public ExecutionInfo() {
submitted = new AtomicInteger(0);
... | Use atomic operation to increment the execution stats values | Use atomic operation to increment the execution stats values
| Java | apache-2.0 | EBIBioSamples/EbiGeneralSearch,EBIBioSamples/EbiGeneralSearch |
1653984ae19d2a5ec8d154be6ad5bb146fcf496b | src/main/java/com/thegongoliers/pathFollowing/PathTaskCommand.java | src/main/java/com/thegongoliers/pathFollowing/PathTaskCommand.java | package com.thegongoliers.pathFollowing;
import edu.wpi.first.wpilibj.command.Command;
public abstract class PathTaskCommand extends Command {
protected SmartDriveTrainSubsystem drivetrain;
public PathTaskCommand(SmartDriveTrainSubsystem drivetrain){
requires(drivetrain);
this.drivetrain = d... | package com.thegongoliers.pathFollowing;
import edu.wpi.first.wpilibj.command.Command;
public abstract class PathTaskCommand extends Command {
protected SmartDriveTrainSubsystem drivetrain;
public PathTaskCommand(SmartDriveTrainSubsystem drivetrain){
requires(drivetrain);
this.drivetrain = d... | Make drivetrain stop at end of path | Make drivetrain stop at end of path
| Java | mit | Gongoliers/Library-of-Gongolierium |
97b25c150b04818216fd82479c0a209b180e659e | jre/javatests/com/google/gwt/junit/tools/GWTTestSuite.java | jre/javatests/com/google/gwt/junit/tools/GWTTestSuite.java | /*
* Copyright 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | /*
* Copyright 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Remove more code from TestCase Remove TestResult Remove TestSuite Remove Test | Remove more code from TestCase
Remove TestResult
Remove TestSuite
Remove Test
Change-Id: Ia1465fb99c39232d7450f84020eb9a258f920b10
Review-Link: https://gwt-review.googlesource.com/#/c/19200/
PiperOrigin-RevId: 166386367
| Java | apache-2.0 | google/j2cl,google/j2cl,google/j2cl,google/j2cl,google/j2cl |
78d1333a31e594366c88e7f85371de5a2f03170c | src/test/java/com/natpryce/worktorule/issues/github/GitHubIssuesTest.java | src/test/java/com/natpryce/worktorule/issues/github/GitHubIssuesTest.java | package com.natpryce.worktorule.issues.github;
import org.junit.Test;
import java.io.IOException;
import static org.junit.Assert.assertFalse;
public class GitHubIssuesTest {
GitHubIssues issues = new GitHubIssues("npryce", "worktorule");
@Test
public void closedIssue() throws IOException {
asse... | package com.natpryce.worktorule.issues.github;
import org.junit.Test;
import java.io.IOException;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class GitHubIssuesTest {
GitHubIssues issues = new GitHubIssues("npryce", "worktorule");
@Test
public void clos... | Test for open github issue | Test for open github issue
| Java | apache-2.0 | npryce/worktorule,npryce/worktorule |
df3fe73193b9f577c80c878f20d0a33855e27fbd | gs-reactor/src/main/java/org/genericsystem/reactor/ReactorStatics.java | gs-reactor/src/main/java/org/genericsystem/reactor/ReactorStatics.java | package org.genericsystem.reactor;
public class ReactorStatics {
public static final String BACKGROUND = "background";
public static final String CHECKED = "checked";
public static final String DISABLED = "disabled";
}
| package org.genericsystem.reactor;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.Base64;
public class ReactorStatics {
public static final Strin... | Add two methods for serialize/deserialize lambda in strings | Add two methods for serialize/deserialize lambda in strings | Java | apache-2.0 | genericsystem/genericsystem2015,genericsystem/genericsystem2015,genericsystem/genericsystem2015,genericsystem/genericsystem2015,genericsystem/genericsystem2015 |
61a308dfe15ecf189599f60603f50c3c0d33f019 | src/main/java/com/kiselev/reflection/ui/impl/exception/ExceptionUtils.java | src/main/java/com/kiselev/reflection/ui/impl/exception/ExceptionUtils.java | package com.kiselev.reflection.ui.impl.exception;
import java.lang.reflect.Executable;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;
public class ExceptionUtils {
public String getExceptions(Executable executable) {
String exceptions = "";
List<String> excepti... | package com.kiselev.reflection.ui.impl.exception;
import com.kiselev.reflection.ui.impl.generic.GenericsUtils;
import java.lang.reflect.Executable;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;
public class ExceptionUtils {
public String getExceptions(Executable executable) {... | Revert another one missed fix | Revert another one missed fix | Java | mit | vadim8kiselev/reflection-ui |
174ab65cb742bc9e6255475b8ed95fde6cb9845a | src/main/java/se/simonsoft/cms/item/commit/CmsItemLockedException.java | src/main/java/se/simonsoft/cms/item/commit/CmsItemLockedException.java | /**
* Copyright (C) 2009-2013 Simonsoft Nordic AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | /**
* Copyright (C) 2009-2013 Simonsoft Nordic AB
*
* 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... | Clarify error message when item is already locked. | Clarify error message when item is already locked.
| Java | apache-2.0 | simonsoft/cms-item |
6952e4c7c62f9ff7a2cc92e3c1b1e29501b72cf8 | src/main/java/com/herocc/bukkit/core/commands/CommandFakeblock.java | src/main/java/com/herocc/bukkit/core/commands/CommandFakeblock.java | package com.herocc.bukkit.core.commands;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import com.herocc.bukkit.core.Core;
public class CommandFakeblock implements CommandExecutor {
private final Core plugin = Core.getPlugin();
public bo... | package com.herocc.bukkit.core.commands;
import org.bukkit.Material;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.herocc.bukkit.core.Core;
import net.md_5.bungee.api.ChatColor;
public class CommandF... | Add more functions to this command. | Add more functions to this command.
Config not supported yet. For now the block will change to WOOL. | Java | lgpl-2.1 | HeroiCraft/Core |
68697c9a7a30391faf3864d20a003596d493379c | common/src/main/java/de/philipp1994/lunch/common/LunchMenuItem.java | common/src/main/java/de/philipp1994/lunch/common/LunchMenuItem.java | package de.philipp1994.lunch.common;
import java.io.Serializable;
public class LunchMenuItem implements Serializable {
private static final long serialVersionUID = -1796231509545846611L;
private final String itemName;
private final double price;
public static final double PRICE_UNKOWN = -1;
public LunchMenu... | package de.philipp1994.lunch.common;
import java.io.Serializable;
public class LunchMenuItem implements Serializable {
private static final long serialVersionUID = -1796231509545846611L;
private final String itemName, comment;
private final double price;
public static final double PRICE_UNKOWN = -1;
public ... | Add comment field to lunchmenuitem | Add comment field to lunchmenuitem
| Java | mit | Peter42/lunch_parser,Peter42/lunch_parser,Peter42/lunch_parser,Peter42/lunch_parser |
7f4c216b9996393dfb5390367a669db8431a6b17 | whistlepost-app/src/main/java/org/mnode/whistlepost/model/Article.java | whistlepost-app/src/main/java/org/mnode/whistlepost/model/Article.java | package org.mnode.whistlepost.model;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.models.annotations.Model;
@Model(adaptables = {Resource.class, SlingHttpServletRequest.class})
public class Article extends Page {
public String getSumm... | package org.mnode.whistlepost.model;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.api.resource.ResourceResolver;
import org.apache.sling.models.annotations.Model;
import org.apache.sling.models.annotations.injectorspecific.SlingObject;
imp... | Support sidebar and related articles | Support sidebar and related articles
| Java | apache-2.0 | micronode/whistlepost,micronode/whistlepost,micronode/whistlepost,micronode/whistlepost |
e30fdd809109f78ff9fe09875b6a2a4e700ef48a | src/com/qubling/sidekick/ModuleViewActivity.java | src/com/qubling/sidekick/ModuleViewActivity.java | package com.qubling.sidekick;
import com.qubling.sidekick.metacpan.result.Module;
import com.qubling.sidekick.widget.ModuleHelper;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
public class ModuleViewActivity extends Activity {
public static final St... | package com.qubling.sidekick;
import com.qubling.sidekick.metacpan.result.Module;
import com.qubling.sidekick.widget.ModuleHelper;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
public class ModuleViewActivity extends Activity {
public static final St... | Use the module name as the title | Use the module name as the title
| Java | artistic-2.0 | 1nv4d3r5/CPAN-Sidekick,zostay/CPAN-Sidekick,1nv4d3r5/CPAN-Sidekick,zostay/CPAN-Sidekick |
9c81975cf3eb7c120e130a2db83657437debadac | src/test/java/com/gistlabs/mechanize/integration/test/GoogleApiJsonIT.java | src/test/java/com/gistlabs/mechanize/integration/test/GoogleApiJsonIT.java | /**
* Copyright (C) 2012 Gist Labs, LLC. (http://gistlabs.com)
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package com.gistlabs.mechanize.integration.test... | /**
* Copyright (C) 2012 Gist Labs, LLC. (http://gistlabs.com)
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package com.gistlabs.mechanize.integration.test... | Use new css selector to get longUrl attribute for google service call | Use new css selector to get longUrl attribute for google service call
| Java | mpl-2.0 | GistLabs/mechanize,GistLabs/mechanize |
dd02d4046a09acbfbfa45801f522c1721a988f08 | src/test/java/org/gwtproject/http/HTTPSuite.java | src/test/java/org/gwtproject/http/HTTPSuite.java | /*
* Copyright 2007 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | /*
* Copyright 2007 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Upgrade testsuite to JUnit 4's @RunWith(Suite.class) | Upgrade testsuite to JUnit 4's @RunWith(Suite.class)
This is in preparation for j2cl where this will be the norm.
| Java | apache-2.0 | gwtproject/gwt-http,gwtproject/gwt-http |
c5c2314a238b12c63db5df998b5a9a094f048298 | subversion/bindings/java/jni/tests/AllTests.java | subversion/bindings/java/jni/tests/AllTests.java | /**
* ====================================================================
* Copyright (c) 2000-2001 CollabNet. All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at http://subversion.... | /**
* ====================================================================
* Copyright (c) 2000-2001 CollabNet. All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at http://subversion.... | Integrate the hashtable Unit testcases. | Integrate the hashtable Unit testcases.
* tests/AllTests.java (suite): added HashtableTests
git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@841026 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,wbond/subversion,wbond/subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion |
37cbdc6402f568f7bf613a69f029a068f4ef3113 | vector/src/main/java/im/vector/EventEmitter.java | vector/src/main/java/im/vector/EventEmitter.java | package im.vector;
import android.os.Handler;
import android.os.Looper;
import org.matrix.androidsdk.util.Log;
import java.util.HashSet;
import java.util.Set;
public class EventEmitter<T> {
private static final String LOG_TAG = EventEmitter.class.getSimpleName();
private final Set<Listener<T>> mCallbacks;... | package im.vector;
import android.os.Handler;
import android.os.Looper;
import org.matrix.androidsdk.util.Log;
import java.util.HashSet;
import java.util.Set;
public class EventEmitter<T> {
private static final String LOG_TAG = EventEmitter.class.getSimpleName();
private final Set<Listener<T>> mCallbacks;
... | Add parameter documentation to the even emitter | Add parameter documentation to the even emitter
| Java | apache-2.0 | vector-im/vector-android,vector-im/vector-android,vector-im/riot-android,vector-im/riot-android,vector-im/vector-android,vector-im/riot-android,vector-im/vector-android,vector-im/riot-android,vector-im/riot-android |
6e5603e623a997dbc2a80c963db0b81b333aaf97 | src/main/java/foodtruck/server/resources/DailyScheduleResource.java | src/main/java/foodtruck/server/resources/DailyScheduleResource.java | package foodtruck.server.resources;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import com.google.inject.Inject;
import org.joda.time.DateTime;
import foodtruck.model.DailySchedule;
import foodtruck.truckstops.FoodTr... | package foodtruck.server.resources;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import com.google.inject.Inject;
import org.joda.time.DateTime;
import foodtruck.model.DailySchedule;
import foodtruck.truckstops.FoodTr... | Handle correct timezone when retrieving the daily schedule with a specific time. | Handle correct timezone when retrieving the daily schedule with a specific time.
| Java | mit | aviolette/foodtrucklocator,aviolette/foodtrucklocator,aviolette/foodtrucklocator,aviolette/foodtrucklocator |
25e5c078598d2c0eb772a948caa2b061d677970e | src/test/java/au/gov/ga/geodesy/support/moxy/GeodesyMLMoxyTest.java | src/test/java/au/gov/ga/geodesy/support/moxy/GeodesyMLMoxyTest.java | package au.gov.ga.geodesy.support.moxy;
import java.io.InputStreamReader;
import java.io.Reader;
import org.testng.annotations.Test;
import au.gov.xml.icsm.geodesyml.v_0_2_1.GeodesyMLType;
public class GeodesyMLMoxyTest {
private GeodesyMLMoxy marshaller;
public GeodesyMLMoxyTest() throws Exception {
... | package au.gov.ga.geodesy.support.moxy;
import java.io.InputStreamReader;
import java.io.Reader;
import org.junit.Assert;
import org.testng.annotations.Test;
import au.gov.xml.icsm.geodesyml.v_0_2_1.GeodesyMLType;
public class GeodesyMLMoxyTest {
private GeodesyMLMoxy marshaller;
public GeodesyMLMoxyTest(... | Add test condition to GeodesyML unmarshall test. | Add test condition to GeodesyML unmarshall test.
| Java | bsd-3-clause | GeoscienceAustralia/Geodesy-Web-Services,GeoscienceAustralia/Geodesy-Web-Services,GeoscienceAustralia/Geodesy-Web-Services,GeoscienceAustralia/geodesy-domain-model,lbodor/geodesy-domain-model,GeoscienceAustralia/geodesy-domain-model,GeoscienceAustralia/Geodesy-Web-Services,lbodor/geodesy-domain-model |
78a3a928f317efd1590cccdd35f7fdeeb7b6fe10 | src/main/java/io/github/Cnly/BusyInv/BusyInv/BusyInv.java | src/main/java/io/github/Cnly/BusyInv/BusyInv/BusyInv.java | package io.github.Cnly.BusyInv.BusyInv;
import io.github.Cnly.BusyInv.BusyInv.listeners.BusyListener;
import org.bukkit.Bukkit;
import org.bukkit.event.HandlerList;
import org.bukkit.plugin.java.JavaPlugin;
public class BusyInv extends JavaPlugin
{
private static BusyInv instance;
@Override
pub... | package io.github.Cnly.BusyInv.BusyInv;
import io.github.Cnly.BusyInv.BusyInv.listeners.BusyListener;
import org.bukkit.Bukkit;
import org.bukkit.event.HandlerList;
import org.bukkit.plugin.java.JavaPlugin;
public class BusyInv extends JavaPlugin
{
private static BusyInv instance;
@Override
pub... | Add a register method for plugins | Add a register method for plugins | Java | mit | Cnly/BusyInv |
cc56ae47fd54df7adc17804f946d0051f2f14f4d | src/main/java/org/graylog2/gelfclient/GelfTransports.java | src/main/java/org/graylog2/gelfclient/GelfTransports.java | /*
* Copyright 2012-2014 TORCH GmbH
*
* This file is part of Graylog2.
*
* Graylog2 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 option) any later vers... | /*
* Copyright 2012-2014 TORCH GmbH
*
* This file is part of Graylog2.
*
* Graylog2 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 option) any later vers... | Return the transport not the channel handler. | Return the transport not the channel handler.
| Java | apache-2.0 | Graylog2/gelfclient |
cc3a5d38f7f616a2a8f419bf4aca8c2d9178bd98 | src/main/java/org/threadly/test/concurrent/TestUtils.java | src/main/java/org/threadly/test/concurrent/TestUtils.java | package org.threadly.test.concurrent;
/**
* Generic tools to be used in unit testing.
*
* @author jent - Mike Jensen
*/
public class TestUtils {
private TestUtils() {
// don't construct
}
/**
* Since sleeps are sometimes necessary, this makes
* an easy way to ignore InterruptedException's.
*... | package org.threadly.test.concurrent;
import org.threadly.util.Clock;
/**
* Generic tools to be used in unit testing.
*
* @author jent - Mike Jensen
*/
public class TestUtils {
private TestUtils() {
// don't construct
}
/**
* Since sleeps are sometimes necessary, this makes
* an easy way to ig... | Change this to use Clock in case people are relying on this function to advance the Clock abstraction | Change this to use Clock in case people are relying on this function to advance the Clock abstraction
| Java | mpl-2.0 | jentfoo/threadly,threadly/threadly |
95a680b717f5b1a87837cafddd352ca2af0366c1 | src/main/java/nom/bdezonia/zorbage/type/algebra/HighPrecRepresentation.java | src/main/java/nom/bdezonia/zorbage/type/algebra/HighPrecRepresentation.java | package nom.bdezonia.zorbage.type.algebra;
import nom.bdezonia.zorbage.type.data.bigdec.HighPrecisionMember;
/**
*
* @author Barry DeZonia
*
*/
public interface HighPrecRepresentation {
void toHighPrec(HighPrecisionMember result);
}
| /*
* Zorbage: an algebraic data hierarchy for use in numeric processing.
*
* Copyright (C) 2016-2019 Barry DeZonia
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must ret... | Add license header to file that needs it | Add license header to file that needs it
| Java | bsd-3-clause | bdezonia/zorbage,bdezonia/zorbage |
570b53d4b75ce34b45d7596b34e30e4e8a1396e5 | apiv2/src/test/java/com/plnyyanks/tba/apiv2/test/APIv2ErrorTest.java | apiv2/src/test/java/com/plnyyanks/tba/apiv2/test/APIv2ErrorTest.java | package com.plnyyanks.tba.apiv2.test;
import com.plnyyanks.tba.apiv2.APIv2Helper;
import com.plnyyanks.tba.apiv2.interfaces.APIv2;
import org.junit.Before;
import org.junit.Test;
/**
* Created by phil on 5/5/15.
*/
public class APIv2ErrorTest {
APIv2 api;
@Before
public void setupAPIClient(){
... | package com.plnyyanks.tba.apiv2.test;
import com.plnyyanks.tba.apiv2.APIv2Helper;
import com.plnyyanks.tba.apiv2.interfaces.APIv2;
import org.junit.Before;
import org.junit.Test;
import retrofit.RetrofitError;
/**
* Created by phil on 5/5/15.
*/
public class APIv2ErrorTest {
APIv2 api;
@Before
publi... | Make sure App Id is not set for test | Make sure App Id is not set for test
| Java | mit | phil-lopreiato/tba-apiv2-java |
f5d66477e1f4bad73f6c1a6ccb00e376b4ab97c1 | app/src/androidTest/java/com/arles/swissmanager/test/algorithm/MatchTest.java | app/src/androidTest/java/com/arles/swissmanager/test/algorithm/MatchTest.java | package com.arles.swissmanager.test.algorithm;
/**
* Created by Admin on 04.08.2015.
*/
public class MatchTest {
}
| package com.arles.swissmanager.test.algorithm;
import com.arles.swissmanager.algorithm.Match;
import com.arles.swissmanager.algorithm.MatchResult;
import com.arles.swissmanager.algorithm.Points;
import com.arles.swissmanager.algorithm.Report;
import com.arles.swissmanager.algorithm.Tournament;
import com.arles.swissma... | Add test to Match class. | Add test to Match class.
| Java | apache-2.0 | floring/SwissManager |
cf35887e2e6769eab725e88e65552aa886dbaee9 | src/com/jasonlam604/stocktechnicals/indicators/SimpleMovingAverage.java | src/com/jasonlam604/stocktechnicals/indicators/SimpleMovingAverage.java | package com.jasonlam604.stocktechnicals.indicators;
import java.util.Arrays;
import org.junit.Test;
import com.jasonlam604.stocktechnicals.util.NumberFormatter;
/**
* Simple Moving Average
*/
public class SimpleMovingAverage {
private double[] results;
public SimpleMovingAverage calculate(double[] price, int... | package com.jasonlam604.stocktechnicals.indicators;
import java.util.Arrays;
import com.jasonlam604.stocktechnicals.util.NumberFormatter;
/**
* Simple Moving Average
*/
public class SimpleMovingAverage {
private double[] results;
public SimpleMovingAverage calculate(double[] price, int period) throws Exception... | Remove junit package (included by mistake) | Remove junit package (included by mistake) | Java | mit | jasonlam604/StockTechnicals |
ae22bbc03160032cdd77f6c6f12a9458ce1cc0a6 | demo/src/main/java/me/yokeyword/sample/demo_wechat/base/BaseBackFragment.java | demo/src/main/java/me/yokeyword/sample/demo_wechat/base/BaseBackFragment.java | package me.yokeyword.sample.demo_wechat.base;
import android.support.v7.widget.Toolbar;
import android.view.View;
import me.yokeyword.fragmentation_swipeback.SwipeBackFragment;
import me.yokeyword.sample.R;
/**
* Created by YoKeyword on 16/2/7.
*/
public class BaseBackFragment extends SwipeBackFragment {
priva... | package me.yokeyword.sample.demo_wechat.base;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.Toolbar;
import android.view.View;
import me.yokeyword.fragmentation_swipeback.SwipeBackFragment;
import me.yokeyword.sample.R;
/**
* Created by YoKeyword on 16/2/7.
... | Add a sample of setParallaxOffset(). | Add a sample of setParallaxOffset().
| Java | apache-2.0 | YoKeyword/Fragmentation |
efb0aba7cd198de088b6c5872d47b10002061c63 | src/main/java/de/stklcode/jvault/connector/factory/VaultConnectorFactory.java | src/main/java/de/stklcode/jvault/connector/factory/VaultConnectorFactory.java | /*
* Copyright 2016-2019 Stefan Kalscheuer
*
* 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 agr... | /*
* Copyright 2016-2019 Stefan Kalscheuer
*
* 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 agr... | Clean up imports of factory class | Clean up imports of factory class
| Java | apache-2.0 | skalscheuer/jvaultconnector,stklcode/jvaultconnector |
157c6cfad203ac31e72b00e08da5e3ae50286215 | src/main/java/in/twizmwaz/cardinal/module/modules/filter/type/VoidFilter.java | src/main/java/in/twizmwaz/cardinal/module/modules/filter/type/VoidFilter.java | package in.twizmwaz.cardinal.module.modules.filter.type;
import in.twizmwaz.cardinal.GameHandler;
import in.twizmwaz.cardinal.module.modules.filter.FilterModule;
import in.twizmwaz.cardinal.module.modules.filter.FilterState;
import in.twizmwaz.cardinal.module.modules.filter.parsers.GenericFilterParser;
import org.bukk... | package in.twizmwaz.cardinal.module.modules.filter.type;
import in.twizmwaz.cardinal.GameHandler;
import in.twizmwaz.cardinal.module.modules.filter.FilterModule;
import in.twizmwaz.cardinal.module.modules.filter.FilterState;
import in.twizmwaz.cardinal.module.modules.filter.parsers.GenericFilterParser;
import org.bukk... | Switch void filters to make them work correcty | Switch void filters to make them work correcty
| Java | mit | TheMolkaPL/CardinalPGM,dentmaged/CardinalPGM,Electroid/ExperimentalPGM,TheMolkaPL/CardinalPGM,dentmaged/Cardinal-Dev,SungMatt/CardinalPGM,dentmaged/Cardinal-Dev,Alan736/NotCardinalPGM,Electroid/ExperimentalPGM,angelitorb99/CardinalPGM,Pablete1234/CardinalPGM,dentmaged/Cardinal-Plus,twizmwazin/CardinalPGM,CaptainElliott... |
4c5d2afc9bf4e7d440d6b446c0066a7f91824dd9 | src/main/java/com/github/games647/scoreboardstats/UpdateThread.java | src/main/java/com/github/games647/scoreboardstats/UpdateThread.java | package com.github.games647.scoreboardstats;
public final class UpdateThread implements Runnable {
@Override
public void run() {
for (org.bukkit.entity.Player player : org.bukkit.Bukkit.getOnlinePlayers()) {
final org.bukkit.scoreboard.Objective objective = player.getScoreboard().ge... | package com.github.games647.scoreboardstats;
public final class UpdateThread implements Runnable {
@Override
public void run() {
for (org.bukkit.entity.Player player : org.bukkit.Bukkit.getOnlinePlayers()) {
com.github.games647.scoreboardstats.ScoreboardStats.getSettings().sendUpdat... | Fix some Bugs and revert the PacketManager. Release it now as a different version. | Fix some Bugs and revert the PacketManager. Release it now as a different version.
Former-commit-id: 0ea26aa800e5ea8d05dc5882ecba6158e23f50ec [formerly 0c98ac05766874a1f0bdfd3b9e55afd70c99fa16]
Former-commit-id: b2abba01076fed7c368e7ebc8edc06a82ec490ae | Java | mit | PiLogic/ScoreboardStats,games647/ScoreboardStats |
24cb4ed8bea737bd4726623780a79103525730b1 | ontology-rest/src/main/java/uk/ac/ebi/quickgo/ontology/coterms/CoTermLimit.java | ontology-rest/src/main/java/uk/ac/ebi/quickgo/ontology/coterms/CoTermLimit.java | package uk.ac.ebi.quickgo.ontology.coterms;
/**
* @author Tony Wardell
* Date: 29/09/2016
* Time: 16:08
* Created with IntelliJ IDEA.
*/
public class CoTermLimit {
int defaultLimit;
public CoTermLimit(int defaultLimit) {
this.defaultLimit = defaultLimit;
}
public int workoutLimit(String... | package uk.ac.ebi.quickgo.ontology.coterms;
/**
* Logic for determining the limit to use for retrieving co-occurring terms
*
* @author Tony Wardell
* Date: 29/09/2016
* Time: 16:08
* Created with IntelliJ IDEA.
*/
public class CoTermLimit {
int defaultLimit;
/**
*
* @param defaultLimit The ... | Add some javadoc. Detect if the limit is a negative number. Extract method for processing the limit value as a numeric. | Add some javadoc. Detect if the limit is a negative number. Extract method for processing the limit value as a numeric.
| Java | apache-2.0 | ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE |
9f674701de36b65e3fd9b87741435f687e976c15 | src/test/java/com/emc/ecs/managementClient/NamespaceQuotaActionTest.java | src/test/java/com/emc/ecs/managementClient/NamespaceQuotaActionTest.java | package com.emc.ecs.managementClient;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.emc.ecs.common.EcsActionTest;
import com.emc.ecs.managementClient.model.NamespaceQuotaDetails;
import com.emc.ecs.serviceBroker.EcsManagementClientException;
pub... | package com.emc.ecs.managementClient;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.emc.ecs.common.EcsActionTest;
import com.emc.ecs.managementClient.model.NamespaceQuotaDetails;
import com.emc.ecs.serviceBroker.EcsManagementClientException;
pub... | Update namespace quota action test to match new constructor | Update namespace quota action test to match new constructor
| Java | apache-2.0 | codedellemc/ecs-cf-service-broker,spiegela/ecs-cf-service-broker,emccode/ecs-cf-service-broker |
7f4dd3dfefc3e5cd7ed4d5236d099c2dcee1ecb7 | vassal-app/src/main/java/VASSAL/configure/NotNullConfigureName.java | vassal-app/src/main/java/VASSAL/configure/NotNullConfigureName.java | /*
*
* Copyright (c) 2004 by VASSAL team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License (LGPL) as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHO... | /*
*
* Copyright (c) 2004 by VASSAL team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License (LGPL) as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHO... | Add null check as per request from Joel | Add null check as per request from Joel
| Java | lgpl-2.1 | ethaneldridge/vassal,ethaneldridge/vassal,ethaneldridge/vassal |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.