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 |
|---|---|---|---|---|---|---|---|---|---|
c7b3cfaf41d2c7409ab675fa8d412f7ecf6029cd | android/src/main/java/com/spaceout/MainActivity.java | android/src/main/java/com/spaceout/MainActivity.java | package com.spaceout;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
public class MainActivity extends Activity {
private static final int REQUEST_CODE = 1;
private String ipAddress;
@Override
protected voi... | package com.spaceout;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
public class MainActivity extends Activity {
private static final int REQUEST_CODE = 1;
private String ipAddress;... | Clear subtitles and display ip address when network settings are changed | Clear subtitles and display ip address when network settings are changed
| Java | agpl-3.0 | haniawni/spaceout |
0e02f982d3be07feaada517e5dff50120421a1f2 | app/src/main/java/fr/oni/gaagaa/api/TwitterApi.java | app/src/main/java/fr/oni/gaagaa/api/TwitterApi.java | package fr.oni.gaagaa.api;
import java.util.List;
import fr.oni.gaagaa.model.twitter.Authenticated;
import fr.oni.gaagaa.model.twitter.Tweet;
import fr.oni.gaagaa.model.twitter.TwitterUser;
import retrofit.http.Body;
import retrofit.http.Field;
import retrofit.http.FormUrlEncoded;
import retrofit.http.GET;
import ret... | package fr.oni.gaagaa.api;
import java.util.List;
import fr.oni.gaagaa.model.twitter.Authenticated;
import fr.oni.gaagaa.model.twitter.Tweet;
import fr.oni.gaagaa.model.twitter.TwitterUser;
import retrofit.http.Body;
import retrofit.http.Field;
import retrofit.http.FormUrlEncoded;
import retrofit.http.GET;
import ret... | Change paths for twitter API | Change paths for twitter API
| Java | mit | DanielChesters/gaagaa-client |
03a50817fc1941481a68e457139d45a35c4e1d0a | intent-listeners/src/test/java/org/opendaylight/nic/listeners/impl/LinkDeletedImplTest.java | intent-listeners/src/test/java/org/opendaylight/nic/listeners/impl/LinkDeletedImplTest.java | /*
* Copyright (c) 2015 Hewlett Packard Enterprise Development LP. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
... | /*
* Copyright (c) 2015 Hewlett Packard Enterprise Development LP. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
... | Increase intent-listeners coverage on LinkDeletedImpl. | Increase intent-listeners coverage on LinkDeletedImpl.
Change-Id: Ibddecf61379ef34f2d2fd90adc1a512188583fbd
Signed-off-by: Victor Mota <a399842758ce81a1b2704ada69a36369cee4aa4d@atlantico.com.br>
| Java | epl-1.0 | opendaylight/nic |
db7992af720c094cce7d4a319ec5898c55edfd7e | wicket-orientdb/src/main/java/ru/ydn/wicket/wicketorientdb/model/ODocumentWrapperModel.java | wicket-orientdb/src/main/java/ru/ydn/wicket/wicketorientdb/model/ODocumentWrapperModel.java | package ru.ydn.wicket.wicketorientdb.model;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;
import com.orientechnologies.orient.core.type.ODocumentWrapper;
/**
* {@link IModel} for a {@link ODocumentWrapper}s
*
* @param <T> {@link ODocumentWrapper} type
*/
public class ODocumentWrapp... | package ru.ydn.wicket.wicketorientdb.model;
import com.orientechnologies.orient.core.exception.ORecordNotFoundException;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;
import com.orientechnologies.orient.core.type.ODocumentWrapper;
/**
* {@link IModel} for a {@link ODocumentWrapper}s
... | Return null if record doesn't exists in database | Return null if record doesn't exists in database
| Java | apache-2.0 | OrienteerBAP/wicket-orientdb,OrienteerDW/wicket-orientdb,OrienteerDW/wicket-orientdb,OrienteerBAP/wicket-orientdb |
0ed1df7b077d8353cfdeac6beeaf0e520699eded | xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/KucoinTradeHistoryParams.java | xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/KucoinTradeHistoryParams.java | package org.knowm.xchange.kucoin.service;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.service.trade.params.TradeHistoryParamCurrencyPair;
import org.knowm.xchange.service.trade.params.TradeHistoryParamPaging;
public class KucoinTradeHistoryParams implements TradeHistoryParamCurrencyPair, ... | package org.knowm.xchange.kucoin.service;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.service.trade.params.TradeHistoryParamCurrencyPair;
import org.knowm.xchange.service.trade.params.TradeHistoryParamPaging;
import org.knowm.xchange.service.trade.params.TradeHistoryParamsTimeSpan;
import... | Allow to specify (optional) timespan on trade history params. | [kucoin] Allow to specify (optional) timespan on trade history params.
| Java | mit | douggie/XChange |
0889a48f8ebe652bccbf0c719a386ab2ced4edb2 | edocs-secure/src/main/java/com/github/aureliano/edocs/secure/hash/PasswordHashGenerator.java | edocs-secure/src/main/java/com/github/aureliano/edocs/secure/hash/PasswordHashGenerator.java | package com.github.aureliano.edocs.secure.hash;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import javax.xml.bind.DatatypeConverter;
import com.github.aureliano.edocs.secure.model.PasswordEncryptionModel;
public final class Password... | package com.github.aureliano.edocs.secure.hash;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import javax.xml.bind.DatatypeConverter;
import com.github.aureliano.edocs.common.config.AppConfiguration;
import com.github.aureliano.edocs.... | Add method to generate passowrd hash with configuration properties. | Add method to generate passowrd hash with configuration properties.
| Java | mit | aureliano/e-docs |
c1b1cca3d72de4e871e0d1cdb174712509cf4c3b | src/main/java/org/vanilladb/bench/remote/sp/VanillaDbSpResultSet.java | src/main/java/org/vanilladb/bench/remote/sp/VanillaDbSpResultSet.java | /*******************************************************************************
* Copyright 2016, 2017 vanilladb.org contributors
*
* 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
*
* ... | /*******************************************************************************
* Copyright 2016, 2017 vanilladb.org contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | Add a check for printing results | Add a check for printing results
| Java | apache-2.0 | vanilladb/vanillabench |
a512a8d85c714b397045f4cc321cd6004cf03a17 | portfolio/src/main/java/com/google/sps/servlets/AudioInputServlet.java | portfolio/src/main/java/com/google/sps/servlets/AudioInputServlet.java | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | Add get retrieval of FormData | Add get retrieval of FormData
| Java | apache-2.0 | googleinterns/step43-2020,googleinterns/step43-2020,googleinterns/step43-2020,googleinterns/step43-2020 |
6d11ff1845db8720bdb299c3d53008f6297ab037 | src/main/java/com/fundynamic/d2tm/math/Random.java | src/main/java/com/fundynamic/d2tm/math/Random.java | package com.fundynamic.d2tm.math;
import com.fundynamic.d2tm.game.map.Cell;
import com.fundynamic.d2tm.game.terrain.Terrain;
import java.util.List;
public class Random {
/**
* Returns value between min *until* max, not including max.
*
* Example, if you want a number between 0 or 1, you do: getRa... | package com.fundynamic.d2tm.math;
import java.util.List;
public class Random {
private static java.util.Random random = new java.util.Random();
/**
* Returns value between min *until* max, not including max.
*
* Example, if you want a number between 0 or 1, you do: getRandomBetween(0, 2)
... | Make it more random as suggested by Mark Platvoet | Make it more random as suggested by Mark Platvoet
| Java | mit | Fundynamic/dune2themaker4j,Fundynamic/dune2themaker4j |
665574a7d5f0f5959a3ca63c2f55844a4323cc6c | cracking-the-coding-interview/src/chapter_5/Insertion.java | cracking-the-coding-interview/src/chapter_5/Insertion.java | package chapter_5;
public class Insertion {
public String insertMIntoN(int m, int n, int i, int j) {
int result = clearBits(n, i, j);
return Integer.toBinaryString(result | (m << i));
}
private int clearBits(int n, int i, int j) {
int val = Integer.MAX_VALUE >>> (31 - j - 1);
int val2 = Integer.... | package chapter_5;
public class Insertion {
public String insertMIntoN(int m, int n, int i, int j) {
int result = clearBits(n, i, j);
return Integer.toBinaryString(result | (m << i));
}
private int clearBits(int n, int i, int j) {
int val = ~(0) >>> (31 - j);
int val2 = ~(0) << i;
int mask =... | Use ~0 instead of integer max value, Use Logical right shift which is important here | Use ~0 instead of integer max value, Use Logical right shift which is important here
| Java | mit | scaffeinate/crack-the-code |
bd1375df3d3f66b9f3a188690a4dc464979eaecd | logic/src/main/nl/jft/logic/match/event/MatchListener.java | logic/src/main/nl/jft/logic/match/event/MatchListener.java | package nl.jft.logic.match.event;
import nl.jft.logic.match.Match;
import nl.jft.logic.match.event.impl.GoalRemovedEvent;
import nl.jft.logic.match.event.impl.GoalScoredEvent;
import nl.jft.logic.match.event.impl.MatchStatusChangedEvent;
/**
* A {@code MatchListener} can be used to get notified about certain events ... | package nl.jft.logic.match.event;
import nl.jft.logic.match.Match;
import nl.jft.logic.match.event.impl.GoalRemovedEvent;
import nl.jft.logic.match.event.impl.GoalScoredEvent;
import nl.jft.logic.match.event.impl.MatchStatusChangedEvent;
/**
* A {@code MatchListener} can be used to get notified about certain events ... | Add missing documentation to interface. | Add missing documentation to interface.
| Java | mit | Just-Foosball-Things/Just-Foosball-Things |
38cd099e1f561b181f0f9d68c244b1483e2d6856 | src/main/java/seedu/address/logic/Logic.java | src/main/java/seedu/address/logic/Logic.java | package seedu.address.logic;
import javafx.collections.ObservableList;
import seedu.address.logic.commands.CommandResult;
import seedu.address.logic.commands.exceptions.CommandException;
import seedu.address.model.task.ReadOnlyTask;
/**
* API of the Logic component
*/
public interface Logic {
/**
* Execute... | package seedu.address.logic;
import javafx.collections.ObservableList;
import seedu.address.logic.commands.CommandResult;
import seedu.address.logic.commands.exceptions.CommandException;
import seedu.address.model.task.ReadOnlyTask;
/**
* API of the Logic component
*/
public interface Logic {
/**
* Execute... | Add methods to get incomplete task only | Add methods to get incomplete task only
| Java | mit | CS2103JAN2017-T16-B2/main,CS2103JAN2017-T16-B2/main |
3ad184efa37812ae9c2fc9f461dbf10a24c62a17 | src/main/java/com/github/aureliano/achmed/helper/ReflectionHelper.java | src/main/java/com/github/aureliano/achmed/helper/ReflectionHelper.java | package com.github.aureliano.achmed.helper;
import java.lang.reflect.Method;
public final class ReflectionHelper {
private ReflectionHelper() {
throw new InstantiationError(this.getClass().getName() + " cannot be instantiated.");
}
public static String getSimpleAccessMethodName(Method method) {
Str... | package com.github.aureliano.achmed.helper;
import java.lang.reflect.Method;
import com.github.aureliano.achmed.exception.AchmedException;
public final class ReflectionHelper {
private ReflectionHelper() {
throw new InstantiationError(this.getClass().getName() + " cannot be instantiated.");
}
public st... | Add method to call method through reflection. | Add method to call method through reflection.
| Java | mit | aureliano/achmed |
f52c054088062c300c21eddce258b51c7b119edc | src/main/java/com/xtremelabs/robolectric/shadows/ShadowTypedArray.java | src/main/java/com/xtremelabs/robolectric/shadows/ShadowTypedArray.java | package com.xtremelabs.robolectric.shadows;
import android.content.res.Resources;
import android.content.res.TypedArray;
import com.xtremelabs.robolectric.Robolectric;
import com.xtremelabs.robolectric.internal.Implementation;
import com.xtremelabs.robolectric.internal.Implements;
@SuppressWarnings({"UnusedDeclaratio... | package com.xtremelabs.robolectric.shadows;
import android.content.res.Resources;
import android.content.res.TypedArray;
import com.xtremelabs.robolectric.Robolectric;
import com.xtremelabs.robolectric.internal.Implementation;
import com.xtremelabs.robolectric.internal.Implements;
@SuppressWarnings({"UnusedDeclaratio... | Return the default value from TypedArray getInt calls | Return the default value from TypedArray getInt calls
| Java | mit | rburgst/robolectric,rossimo/robolectric,lexs/robolectric,rongou/robolectric,fiower/robolectric,cesar1000/robolectric,tjohn/robolectric,ChengCorp/robolectric,jingle1267/robolectric,wyvx/robolectric,toluju/robolectric,gruszczy/robolectric,charlesmunger/robolectric,svenji/robolectric,davidsun/robolectric,zbsz/robolectric,... |
20d560e2e0e0b4a936f7751c992d9cd4d581aa2b | Converter/src/main/java/adapters/EventHubAdapter.java | Converter/src/main/java/adapters/EventHubAdapter.java | package adapters;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import converters.JsonConverter;
import datamodel.EventHubMessage;
import datamodel.Measurement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.util.D... | package adapters;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import converters.JsonConverter;
import datamodel.EventHubMessage;
import datamodel.Measurement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.util.D... | Use a uuid to identify component. | Use a uuid to identify component.
| Java | apache-2.0 | IrimieBogdan/DistributedMonitoring,IrimieBogdan/DistributedMonitoring,IrimieBogdan/DistributedMonitoring |
658c583a5c2a68c8767b6f3e7baaced8a1218f3f | src/main/java/com/crowdmap/java/sdk/json/ResponseJson.java | src/main/java/com/crowdmap/java/sdk/json/ResponseJson.java | /*****************************************************************************
** Copyright (c) 2010 - 2012 Ushahidi Inc
** All rights reserved
** Contact: team@ushahidi.com
** Website: http://www.ushahidi.com
**
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesse... | /*****************************************************************************
** Copyright (c) 2010 - 2012 Ushahidi Inc
** All rights reserved
** Contact: team@ushahidi.com
** Website: http://www.ushahidi.com
**
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesse... | Add missing properties to response json | Add missing properties to response json
| Java | mit | ushahidi/Crowdmap-Java,ushahidi/Crowdmap-Java |
e9df5d6796c1af3aac998cf783879ff9751a5eac | src/main/java/ml/duncte123/skybot/config/ConfigLoader.java | src/main/java/ml/duncte123/skybot/config/ConfigLoader.java | package ml.duncte123.skybot.config;
import com.google.gson.*;
import org.apache.commons.text.translate.UnicodeUnescaper;
import java.io.*;
public class ConfigLoader {
/**
* This will attempt to load the config and create it if it is not there
* @param file the file to load
* @return the loaded co... | package ml.duncte123.skybot.config;
import com.google.gson.*;
import org.apache.commons.text.translate.UnicodeUnescaper;
import java.io.*;
public class ConfigLoader {
/**
* This will attempt to load the config and create it if it is not there
* @param file the file to load
* @return the loaded co... | Rename BlankConfig to something that makes more sense | Rename BlankConfig to something that makes more sense
| Java | agpl-3.0 | duncte123/SkyBot,duncte123/SkyBot,duncte123/SkyBot,duncte123/SkyBot |
1e69552b59aac8df9347ade321d3b51297fb6635 | src/main/java/de/sldk/mc/metrics/LoadedChunks.java | src/main/java/de/sldk/mc/metrics/LoadedChunks.java | package de.sldk.mc.metrics;
import io.prometheus.client.Gauge;
import org.bukkit.World;
import org.bukkit.plugin.Plugin;
public class LoadedChunks extends WorldMetric {
private static final Gauge LOADED_CHUNKS = Gauge.build()
.name(prefix("loaded_chunks_total"))
.help("Chunks loaded per w... | package de.sldk.mc.metrics;
import io.prometheus.client.Gauge;
import org.bukkit.World;
import org.bukkit.plugin.Plugin;
public class LoadedChunks extends WorldMetric {
private static final Gauge LOADED_CHUNKS = Gauge.build()
.name(prefix("loaded_chunks_total"))
.help("Chunks loaded per w... | Reset world chunks metric to fix accumulating unloaded worlds | Reset world chunks metric to fix accumulating unloaded worlds
Signed-off-by: Byron Marohn <72c48d57fac8949117d5a1dd58341ee30497c114@live.com>
| Java | mit | sladkoff/minecraft-prometheus-exporter |
2edacca9096633f82c3ad47180e259ded1510ebb | src/be/digitalia/fosdem/api/FosdemUrls.java | src/be/digitalia/fosdem/api/FosdemUrls.java | package be.digitalia.fosdem.api;
import java.util.Locale;
/**
* This class contains all FOSDEM Urls
*
* @author Christophe Beyls
*
*/
public class FosdemUrls {
// private static final String SCHEDULE_URL = "https://fosdem.org/schedule/xml";
private static final String SCHEDULE_URL = "https://archive.fosdem.... | package be.digitalia.fosdem.api;
import java.util.Locale;
/**
* This class contains all FOSDEM Urls
*
* @author Christophe Beyls
*
*/
public class FosdemUrls {
private static final String SCHEDULE_URL = "https://fosdem.org/schedule/xml";
private static final String EVENT_URL_FORMAT = "https://fosdem.org/%1$... | Switch to current year's database URL | Switch to current year's database URL | Java | apache-2.0 | linuxtage/glt-companion,KU-Programming-Club/ku-engineering-expo-2014,linuxtage/glt-companion,fossasia/fossasia-companion-android,cbeyls/fosdem-companion-android,flowolf/glt-companion,KU-Competitive-Programming/ku-engineering-expo-2014,flowolf/glt-companion |
ad287a6cd3ffde1b3f9794e53a94ed1e799043c1 | src/test/java/com/uwetrottmann/thetvdb/services/AuthenticationTest.java | src/test/java/com/uwetrottmann/thetvdb/services/AuthenticationTest.java | package com.uwetrottmann.thetvdb.services;
import com.uwetrottmann.thetvdb.BaseTestCase;
import com.uwetrottmann.thetvdb.entities.LoginData;
import com.uwetrottmann.thetvdb.entities.Token;
import org.junit.Ignore;
import org.junit.Test;
public class AuthenticationTest extends BaseTestCase {
private static final... | package com.uwetrottmann.thetvdb.services;
import com.uwetrottmann.thetvdb.BaseTestCase;
import com.uwetrottmann.thetvdb.entities.LoginData;
import com.uwetrottmann.thetvdb.entities.Token;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class AuthenticationTest extends BaseTes... | Set up auth tests properly so they can always run. | Set up auth tests properly so they can always run.
| Java | unlicense | UweTrottmann/thetvdb-java |
eee4cf6fe7df388f9a40222a696b2e9444e79264 | HashTables/HashTableTest.java | HashTables/HashTableTest.java | import org.junit.*;
public class HashTableTest {
@Test
public void testInsertEntry() {
HashTable ht = new HashTable(17);
ht.hashFunctionMod("5");
}
@Test
public void testFindKeyLast() {
HashTable ht = new HashTable(17);
ht.hashFunctionMod("35");
ht.hashFunctionMod("40");
ht.hashFunc... | import org.junit.*;
public class HashTableTest {
private HashTable ht;
@Before
public void init() {
ht = new HashTable(17);
}
@After
public void clear() {
ht = null;
}
@Test
public void testInsertEntry() {
ht.hashFunctionMod("5");
// Assert here
}
@Test
public void testFin... | Add setup and teardown to hash table test suite. | Add setup and teardown to hash table test suite.
| Java | mit | karysto/java-datastructures,karysto/java-datastructures |
05af2fd5e9fc24985f6e007410637ae742c0d0a1 | BeeeOn/app/src/main/java/com/rehivetech/beeeon/IdentifierComparator.java | BeeeOn/app/src/main/java/com/rehivetech/beeeon/IdentifierComparator.java | package com.rehivetech.beeeon;
import android.text.TextUtils;
import java.util.Comparator;
public class IdentifierComparator implements Comparator<IIdentifier> {
@Override
public int compare(IIdentifier lhs, IIdentifier rhs) {
return compareNumericIds(lhs, rhs);
}
public static int compareNumericIds(IIdentif... | package com.rehivetech.beeeon;
import android.text.TextUtils;
import java.util.Comparator;
public class IdentifierComparator implements Comparator<IIdentifier> {
@Override
public int compare(IIdentifier lhs, IIdentifier rhs) {
return compareNumericIds(lhs, rhs);
}
public static int compareNumericIds(IIdentif... | Fix overflow of device ids | Fix overflow of device ids
| Java | bsd-3-clause | BeeeOn/android,BeeeOn/android,BeeeOn/android |
c1b51f8c1bb97f28632e893e0d70ec1c26bd6e05 | src/Main.java | src/Main.java | /**
* Created by loomisdf on 4/10/2016.
*/
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class Main {
static DatabaseFrame dbFrame;
public static void main(String[] args) {
dbFrame = new Databas... | /**
* Created by loomisdf on 4/10/2016.
*/
public class Main {
static DatabaseFrame dbFrame;
public static void main(String[] args) {
dbFrame = new DatabaseFrame();
// load the sqlite-JDBC driver using the current class loader
try {
Class.forName("org.sqlite.JDBC");
... | Update main to use models | Update main to use models
| Java | mit | natemara/databases-project,natemara/databases-project |
9a1270970147809dbd97c25c7bf5c858001304fa | test/src/org/exist/collections/CollectionURITest.java | test/src/org/exist/collections/CollectionURITest.java | package org.exist.collections;
import static org.junit.Assert.*;
import org.junit.Test;
public class CollectionURITest {
@Test
public void append() {
CollectionURI uri = new CollectionURI("/db");
uri.append("test1");
assertTrue(uri.equals(new CollectionURI("/db/test1")));
assertEquals(uri.toString(), "/db... | package org.exist.collections;
import static org.junit.Assert.*;
import org.junit.Test;
public class CollectionURITest {
@Test
public void append() {
CollectionURI uri = new CollectionURI("/db");
uri.append("test1");
assertTrue(uri.equals(new CollectionURI("/db/test1")));
assertEquals(uri.toString(), "/db... | Improve performance of CollectionConfigurationManager by replacing XmldbURI with CollectionURI. | Improve performance of CollectionConfigurationManager by replacing XmldbURI with CollectionURI.
svn path=/trunk/eXist/; revision=6526
| Java | lgpl-2.1 | lcahlander/exist,ljo/exist,dizzzz/exist,wshager/exist,opax/exist,joewiz/exist,windauer/exist,olvidalo/exist,shabanovd/exist,wolfgangmm/exist,wolfgangmm/exist,wshager/exist,patczar/exist,lcahlander/exist,jensopetersen/exist,patczar/exist,adamretter/exist,opax/exist,RemiKoutcherawy/exist,hungerburg/exist,wshager/exist,je... |
a81018519c29c2d4b4c504dbe11bd35b13f23c8b | kotlin-eclipse-ui-test/src/org/jetbrains/kotlin/ui/tests/editors/quickfix/autoimport/KotlinAbstractModifierQuickFixTest.java | kotlin-eclipse-ui-test/src/org/jetbrains/kotlin/ui/tests/editors/quickfix/autoimport/KotlinAbstractModifierQuickFixTest.java | package org.jetbrains.kotlin.ui.tests.editors.quickfix.autoimport;
import org.junit.Test;
public class KotlinAbstractModifierQuickFixTest extends KotlinQuickFixTestCase {
@Override
protected String getTestDataRelativePath() {
return "../common_testData/ide/quickfix/abstract/";
}
@Test
... | package org.jetbrains.kotlin.ui.tests.editors.quickfix.autoimport;
import org.junit.Test;
public class KotlinAbstractModifierQuickFixTest extends KotlinQuickFixTestCase {
@Override
protected String getTestDataRelativePath() {
return "../common_testData/ide/quickfix/abstract/";
}
@Test
... | Remove test that was removed with 'redundant abstract' diagnostic | Remove test that was removed with 'redundant abstract' diagnostic
| Java | apache-2.0 | noemus/kotlin-eclipse,noemus/kotlin-eclipse |
fc95348177a60f40313f7ece442ac67f981f2ad7 | service/security/authentication/api/src/main/java/org/eclipse/kapua/service/authentication/credential/CredentialFactory.java | service/security/authentication/api/src/main/java/org/eclipse/kapua/service/authentication/credential/CredentialFactory.java | /*******************************************************************************
* Copyright (c) 2011, 2016 Eurotech and/or its affiliates and others
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this... | /*******************************************************************************
* Copyright (c) 2011, 2016 Eurotech and/or its affiliates and others
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this... | Fix warnings and apply code style | Fix warnings and apply code style | Java | epl-1.0 | stzilli/kapua,LeoNerdoG/kapua,LeoNerdoG/kapua,LeoNerdoG/kapua,stzilli/kapua,stzilli/kapua,LeoNerdoG/kapua,stzilli/kapua,stzilli/kapua,LeoNerdoG/kapua |
ccc66efdbe96bfe679db5b2c32303f310642b3b6 | querydsl-sql/src/main/java/com/querydsl/sql/types/JSR310InstantType.java | querydsl-sql/src/main/java/com/querydsl/sql/types/JSR310InstantType.java | package com.querydsl.sql.types;
import java.sql.*;
import java.time.Instant;
import javax.annotation.Nullable;
import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement;
/**
* JSR310InstantType maps {@linkplain java.time.Instant} to
* {@linkplain java.sql.Timestamp} on the JDBC level
*
*/
@IgnoreJRERequireme... | package com.querydsl.sql.types;
import java.sql.*;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import javax.annotation.Nullable;
import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement;
/**
* JSR310InstantType maps {@linkplain java.time.Instant} to
* {@linkplain java.sq... | Fix formatting of propertyless java.time.Instant | Fix formatting of propertyless java.time.Instant
| Java | apache-2.0 | tomforster/querydsl,lpandzic/querydsl,pkcool/querydsl,mdiazf/querydsl,dharaburda/querydsl,robertandrewbain/querydsl,izeye/querydsl,balazs-zsoldos/querydsl,querydsl/querydsl,querydsl/querydsl,pkcool/querydsl,robertandrewbain/querydsl,johnktims/querydsl,tomforster/querydsl,lpandzic/querydsl,pkcool/querydsl,querydsl/query... |
2ed76dbecc50de339279017bc214abb382afb20d | src/main/java/com/minelittlepony/client/gui/hdskins/IndirectHDSkins.java | src/main/java/com/minelittlepony/client/gui/hdskins/IndirectHDSkins.java | package com.minelittlepony.client.gui.hdskins;
public final class IndirectHDSkins {
public static void initialize() {
try {
Class<?> mlphd = Class.forName("com.minelittlepony.client.hdskins.MineLPHDSkins");
mlphd.getConstructor().newInstance();
} catch (Exception e) {
... | package com.minelittlepony.client.gui.hdskins;
import org.apache.logging.log4j.LogManager;
public final class IndirectHDSkins {
public static void initialize() {
try {
Class.forName("com.minelittlepony.client.hdskins.MineLPHDSkins").getConstructor().newInstance();
} catch (Exception e)... | Remove usage of IModUtilities from hdskins. | Remove usage of IModUtilities from hdskins.
| Java | mit | MineLittlePony/MineLittlePony,MineLittlePony/MineLittlePony |
f27c431ca343ec14b9c683f00763452e41a07a41 | src/net/mcft/copy/betterstorage/inventory/InventoryBackpackEquipped.java | src/net/mcft/copy/betterstorage/inventory/InventoryBackpackEquipped.java | package net.mcft.copy.betterstorage.inventory;
import net.mcft.copy.betterstorage.item.ItemBackpack;
import net.mcft.copy.betterstorage.utils.DirectionUtils;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.player.EntityPlayer;
public class InventoryBackpackEquipped extends InventoryWrapper {
... | package net.mcft.copy.betterstorage.inventory;
import net.mcft.copy.betterstorage.item.ItemBackpack;
import net.mcft.copy.betterstorage.utils.DirectionUtils;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.player.EntityPlayer;
public class InventoryBackpackEquipped extends InventoryWrapper {
... | Fix unequipping backpack not closing GUI | Fix unequipping backpack not closing GUI
| Java | mit | TehStoneMan/BetterStorage,KingDarkLord/BetterStorage,CannibalVox/BetterStorage,TehStoneMan/BetterStorageToo,Bunsan/BetterStorage,RX14/BetterStorage,copygirl/BetterStorage,skyem123/BetterStorage,Adaptivity/BetterStorage,AnodeCathode/BetterStorage |
843dd99fdd5dcc1154d5693d0058e54b809da60c | vespajlib/src/main/java/com/yahoo/concurrent/classlock/ClassLocking.java | vespajlib/src/main/java/com/yahoo/concurrent/classlock/ClassLocking.java | package com.yahoo.concurrent.classlock;
import java.util.HashMap;
import java.util.Map;
import java.util.function.BooleanSupplier;
/**
* @author valerijf
*/
public class ClassLocking {
private final Map<Class<?>, ClassLock> classLocks = new HashMap<>();
private final Object monitor = new Object();
publ... | package com.yahoo.concurrent.classlock;
import java.util.HashMap;
import java.util.Map;
import java.util.function.BooleanSupplier;
/**
* @author valerijf
*/
public class ClassLocking {
private final Map<String, ClassLock> classLocks = new HashMap<>();
private final Object monitor = new Object();
public... | Use String as lock key | Use String as lock key
| Java | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
84b7d3f7f3963ebca714ead0c3763e2a8cc4aa8e | src/main/java/editor/gui/ccp/handler/CardImportHandler.java | src/main/java/editor/gui/ccp/handler/CardImportHandler.java | package editor.gui.ccp.handler;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.io.IOException;
import java.util.Arrays;
import java.util.stream.Collectors;
import javax.swing.TransferHandler;
import editor.database.card.Card;
import editor.gui.ccp.data.D... | package editor.gui.ccp.handler;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.io.IOException;
import java.util.Arrays;
import java.util.stream.Collectors;
import javax.swing.TransferHandler;
import editor.database.card.Card;
import editor.gui.ccp.data.D... | Add documentation to card import handler | Add documentation to card import handler
| Java | mit | aroelke/deck-editor-java |
dafb7527acdb377967a93788eac511791374be48 | src/main/java/org/babblelang/engine/impl/natives/java/ImportFunction.java | src/main/java/org/babblelang/engine/impl/natives/java/ImportFunction.java | package org.babblelang.engine.impl.natives.java;
import org.babblelang.engine.impl.Callable;
import org.babblelang.engine.impl.Interpreter;
import org.babblelang.engine.impl.Namespace;
import org.babblelang.engine.impl.Scope;
import org.babblelang.parser.BabbleParser;
import java.util.HashMap;
import java.util.Map;
... | package org.babblelang.engine.impl.natives.java;
import org.babblelang.engine.impl.Callable;
import org.babblelang.engine.impl.Interpreter;
import org.babblelang.engine.impl.Namespace;
import org.babblelang.engine.impl.Scope;
import org.babblelang.parser.BabbleParser;
import java.util.HashMap;
import java.util.Map;
... | Fix redeclaration of name in use of Map.computeIfAbsent. | Fix redeclaration of name in use of Map.computeIfAbsent.
| Java | mit | nlehuen/babble |
8255c4af20fb2b63217a3ec9f810306756e7d967 | src/main/java/signature/display/ColoredTreePanel.java | src/main/java/signature/display/ColoredTreePanel.java | package signature.display;
import java.awt.Dimension;
import java.awt.Graphics;
import javax.swing.JPanel;
import signature.ColoredTree;
public class ColoredTreePanel extends JPanel {
public int maxDepth;
private DisplayableColoredTree displayTree;
private boolean drawKey;
public... | package signature.display;
import java.awt.Dimension;
import java.awt.Graphics;
import javax.swing.JPanel;
import signature.ColoredTree;
public class ColoredTreePanel extends JPanel {
public int maxDepth;
private DisplayableColoredTree displayTree;
private boolean drawKey;
public... | Make colored tree panel clearable | Make colored tree panel clearable
| Java | mit | gilleain/signatures |
3b02f44e0257811bec3f83905c087fc461a5c368 | src/storage/neo4j/src/main/java/org/geogit/storage/neo4j/Neo4JModule.java | src/storage/neo4j/src/main/java/org/geogit/storage/neo4j/Neo4JModule.java | /* Copyright (c) 2013 OpenPlans. All rights reserved.
* This code is licensed under the BSD New License, available at the root
* application directory.
*/
package org.geogit.storage.neo4j;
import org.geogit.storage.GraphDatabase;
import com.google.inject.AbstractModule;
public class Neo4JModule extends AbstractMo... | /* Copyright (c) 2013 OpenPlans. All rights reserved.
* This code is licensed under the BSD New License, available at the root
* application directory.
*/
package org.geogit.storage.neo4j;
import org.geogit.storage.GraphDatabase;
import com.google.inject.AbstractModule;
import com.google.inject.Scopes;
public cla... | Use Singleton scope for Neo4JGraphDatabase | Use Singleton scope for Neo4JGraphDatabase
Fixes #493
| Java | bsd-3-clause | markles/GeoGit,boundlessgeo/GeoGig,boundlessgeo/GeoGig,markles/GeoGit,markles/GeoGit,markles/GeoGit,annacarol/GeoGig,markles/GeoGit,boundlessgeo/GeoGig,annacarol/GeoGig,annacarol/GeoGig |
17c0497e1669300d780093c90871c9c9a38ce5d8 | extensions/jsonb/runtime/src/main/java/io/quarkus/jsonb/JsonbProducer.java | extensions/jsonb/runtime/src/main/java/io/quarkus/jsonb/JsonbProducer.java | package io.quarkus.jsonb;
import javax.enterprise.context.Dependent;
import javax.enterprise.inject.Instance;
import javax.enterprise.inject.Produces;
import javax.inject.Singleton;
import javax.json.bind.Jsonb;
import javax.json.bind.JsonbBuilder;
import javax.json.bind.JsonbConfig;
import io.quarkus.arc.DefaultBean... | package io.quarkus.jsonb;
import java.util.List;
import javax.enterprise.context.Dependent;
import javax.enterprise.inject.Produces;
import javax.inject.Singleton;
import javax.json.bind.Jsonb;
import javax.json.bind.JsonbBuilder;
import javax.json.bind.JsonbConfig;
import io.quarkus.arc.All;
import io.quarkus.arc.D... | Make sure JsonbConfigCustomizers are sorted by @Priority | Make sure JsonbConfigCustomizers are sorted by @Priority
| Java | apache-2.0 | quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus |
6b5bfff967176de077747fe8c6899376134121a5 | src/main/java/com/kolinkrewinkel/BitLimitTweaks/TweaksCommandExecutor.java | src/main/java/com/kolinkrewinkel/BitLimitTweaks/TweaksCommandExecutor.java | package com.kolinkrewinkel.BitLimitTweaks;
import java.util.*;
import com.google.common.base.Joiner;
import org.bukkit.ChatColor;
import org.bukkit.*;
import org.bukkit.plugin.Plugin;
import org.bukkit.command.*;
import org.bukkit.entity.Player;
import org.bukkit.block.*;
public class TweaksCommandExecutor implements... | package com.kolinkrewinkel.BitLimitTweaks;
import java.util.*;
import com.google.common.base.Joiner;
import org.bukkit.ChatColor;
import org.bukkit.*;
import org.bukkit.plugin.Plugin;
import org.bukkit.command.*;
import org.bukkit.entity.Player;
import org.bukkit.block.*;
public class TweaksCommandExecutor implements... | Add a method to set the duration | Add a method to set the duration
| Java | mit | BitLimit/Tweaks |
58d08d4d08e72926e2e3a35212e56f6dc25bac53 | src/main/java/org/bricolages/streaming/preflight/CreateTableGenerator.java | src/main/java/org/bricolages/streaming/preflight/CreateTableGenerator.java | package org.bricolages.streaming.preflight;
import java.util.StringJoiner;
import lombok.*;
class CreateTableGenerator {
private StreamDefinitionEntry streamDef;
CreateTableGenerator(StreamDefinitionEntry streamDef) {
this.streamDef = streamDef;
}
String generate() {
val sb = new Stri... | package org.bricolages.streaming.preflight;
import java.util.StringJoiner;
import lombok.*;
class CreateTableGenerator {
private StreamDefinitionEntry streamDef;
CreateTableGenerator(StreamDefinitionEntry streamDef) {
this.streamDef = streamDef;
}
String generate() {
val sb = new Stri... | Add sortkey to create table stmt | Add sortkey to create table stmt
| Java | mit | bricolages/bricolage-streaming-preprocessor,aamine/bricolage-streaming-preprocessor,aamine/bricolage-streaming-preprocessor,bricolages/bricolage-streaming-preprocessor |
3e267511aceb753ac62f8628a551574567db980d | JECP-SE/src/com/annimon/jecp/se/JecpApplication.java | JECP-SE/src/com/annimon/jecp/se/JecpApplication.java | package com.annimon.jecp.se;
import com.annimon.jecp.ApplicationListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import javax.swing.JFrame;
import javax.swing.WindowConstants;
/**
*
* @author aNNiMON
*/
public abstract class JecpApplication extends JFrame implements Ap... | package com.annimon.jecp.se;
import com.annimon.jecp.ApplicationListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import javax.swing.JFrame;
import javax.swing.WindowConstants;
/**
*
* @author aNNiMON
*/
public abstract class JecpApplication extends JFrame implements Wi... | Change JecpApllication class in JECP-SE | Change JecpApllication class in JECP-SE | Java | apache-2.0 | aNNiMON/JECP |
3bc4605780b134b5e2c9d292f70d58c65ddd01a9 | wicket/src/test/wicket/util/time/TimeOfDayTest.java | wicket/src/test/wicket/util/time/TimeOfDayTest.java | /*
* $Id$
* $Revision$
* $Date$
*
* ====================================================================
* 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/lic... | /*
* $Id$
* $Revision$
* $Date$
*
* ====================================================================
* 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/lic... | Use the appropriate methods for checking equality. This gives better results when debugging the errors. | Use the appropriate methods for checking equality. This gives better results when debugging the errors.
git-svn-id: ac804e38dcddf5e42ac850d29d9218b7df6087b7@459989 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | apache/wicket,AlienQueen/wicket,mosoft521/wicket,martin-g/wicket-osgi,mosoft521/wicket,zwsong/wicket,AlienQueen/wicket,mafulafunk/wicket,astrapi69/wicket,apache/wicket,klopfdreh/wicket,mosoft521/wicket,aldaris/wicket,freiheit-com/wicket,dashorst/wicket,topicusonderwijs/wicket,klopfdreh/wicket,Servoy/wicket,mosoft521/wi... |
daac07ae27a9e67687a60c985b7a107607eaaafb | src/org/coffeebrew/lang/parser/CoffeeScriptParser.java | src/org/coffeebrew/lang/parser/CoffeeScriptParser.java | package org.coffeebrew.lang.parser;
import com.intellij.lang.ASTNode;
import com.intellij.lang.PsiBuilder;
import com.intellij.lang.PsiParser;
import com.intellij.psi.impl.source.tree.PlainTextFileElement;
import com.intellij.psi.tree.IElementType;
import org.jetbrains.annotations.NotNull;
/**
* Parser implementatio... | package org.coffeebrew.lang.parser;
import com.intellij.lang.ASTNode;
import com.intellij.lang.PsiBuilder;
import com.intellij.lang.PsiParser;
import com.intellij.psi.PlainTextTokenTypes;
import com.intellij.psi.impl.source.tree.PlainTextASTFactory;
import com.intellij.psi.tree.IElementType;
import org.jetbrains.annot... | Fix wrong AST Node parsing on idea-x | Fix wrong AST Node parsing on idea-x
| Java | unlicense | consulo/consulo-coffeescript,netzpirat/coffee-brew |
c2b47c636236d563d4bf95e058809ea50f7ccb55 | src/main/java/com/indeed/proctor/service/JsonTestBucket.java | src/main/java/com/indeed/proctor/service/JsonTestBucket.java | package com.indeed.proctor.service;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.indeed.proctor.common.model.Payload;
import com.indeed.proctor.common.model.TestBucket;
/**
* Representation of TestBucket intended for serialization into JSON.
*
* Mostly a rewriting of TestBucket with a few extras... | package com.indeed.proctor.service;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.indeed.proctor.common.model.Payload;
import com.indeed.proctor.common.model.TestBucket;
/**
* Representation of TestBucket intended for serialization into JSON.
*
* Mostly a rewriting of TestBucket with a few extras... | Remove serializer 0.0->0 todo. Functionality is correct. | Remove serializer 0.0->0 todo. Functionality is correct.
My JSON Firefox plugin hid the .0, making me think this was a
Jackson problem. However, Jackson is correctly outputting floats.
| Java | apache-2.0 | indeedeng/proctor-pipet,indeedeng/proctor,indeedeng/proctor |
7745a3964bb705cfbf03518e6ca798902c069744 | src/main/java/com/kolinkrewinkel/BitLimitTweaks/TweaksCommandExecutor.java | src/main/java/com/kolinkrewinkel/BitLimitTweaks/TweaksCommandExecutor.java | package com.kolinkrewinkel.BitLimitTweaks;
import java.util.*;
import com.google.common.base.Joiner;
import org.bukkit.ChatColor;
import org.bukkit.*;
import org.bukkit.plugin.Plugin;
import org.bukkit.command.*;
import org.bukkit.entity.Player;
import org.bukkit.block.*;
public class TweaksCommandExecutor implements... | package com.kolinkrewinkel.BitLimitTweaks;
import java.util.*;
import com.google.common.base.Joiner;
import org.bukkit.ChatColor;
import org.bukkit.*;
import org.bukkit.plugin.Plugin;
import org.bukkit.command.*;
import org.bukkit.entity.Player;
import org.bukkit.block.*;
public class TweaksCommandExecutor implements... | Change parameter checking to make it you know.. check parameters | Change parameter checking to make it you know.. check parameters
| Java | mit | BitLimit/Tweaks |
d6da341c2b28550d0aee2957cdf60030cb97d399 | app/src/main/java/com/example/android/miwok/Word.java | app/src/main/java/com/example/android/miwok/Word.java | package com.example.android.miwok;
public class Word {
private String mMiwokWord;
private String mEnglishWord;
// Constructor setter method
// @params strings miwokWord and englishWord
// Sets private strings mMiwokWord and mEnglishWord
public Word(String miwokWord, String englishWord) {
... | package com.example.android.miwok;
public class Word {
private String mMiwokWord;
private String mEnglishWord;
private int mImageResourceId;
// Constructor setter method
// @params strings miwokWord and englishWord
// Sets private strings mMiwokWord and mEnglishWord
public Word(String miw... | Set mImageResourceId to type int. Add overload constructor to include in imageResourceId | Set mImageResourceId to type int. Add overload constructor to include in imageResourceId
| Java | apache-2.0 | dirtfeast/Miwok |
b0ed3f0b3b60e26bac47341e73955fbd0055013b | src/main/java/de/netpioneer/socialmedia/twitter/service/TwitterService.java | src/main/java/de/netpioneer/socialmedia/twitter/service/TwitterService.java | package de.netpioneer.socialmedia.twitter.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.social.twitter.api.SearchResults;
import org.springframework.social.twitter.api.Tweet;
import org.springframework.social.twitter.api.Twitter;
import org.s... | package de.netpioneer.socialmedia.twitter.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.social.twitter.api.SearchParameters;
import org.springframework.social.twitter.api.SearchParameters.ResultType;
import org.springframework.social.twitter.... | Improve search to contain the 100 most recent tweets in English language. | Improve search to contain the 100 most recent tweets in English
language. | Java | apache-2.0 | markuskiss/social-media-analysis,markuskiss/social-media-analysis,markuskiss/social-media-analysis |
0125617c7c08ca8985e6c0ba2a782acea7a6dfcc | android/src/com/haw/projecthorse/android/AndroidLauncher.java | android/src/com/haw/projecthorse/android/AndroidLauncher.java | package com.haw.projecthorse.android;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import com.haw.projecthorse.gamemanager.CoreGameMain;
p... | package com.haw.projecthorse.android;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import com.haw.projecthorse.gam... | Fix für Samsung Geräte ohne Navbar | Fix für Samsung Geräte ohne Navbar
| Java | apache-2.0 | PhilippGrulich/HAW-SE2-projecthorse,PhilippGrulich/HAW-SE2-projecthorse |
a2121c8120267935ff7458dcb2763b88a16e091a | src/main/java/com/sb/elsinore/html/RecipeListForm.java | src/main/java/com/sb/elsinore/html/RecipeListForm.java | package com.sb.elsinore.html;
import com.sb.elsinore.BrewServer;
import org.rendersnake.HtmlCanvas;
import org.rendersnake.Renderable;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Map;
import static org.rendersnake.HtmlAttributesFactory.id;
import static org.rendersnake.HtmlAttributesFact... | package com.sb.elsinore.html;
import com.sb.elsinore.BrewServer;
import org.rendersnake.HtmlCanvas;
import org.rendersnake.Renderable;
import java.io.IOException;
import java.util.ArrayList;
import static org.rendersnake.HtmlAttributesFactory.id;
import static org.rendersnake.HtmlAttributesFactory.name;
import stati... | Improve selection of the Recipe | Improve selection of the Recipe
| Java | mit | DougEdey/SB_Elsinore_Server,dbayub/SB_Elsinore_Server,dbayub/SB_Elsinore_Server,DougEdey/SB_Elsinore_Server,DougEdey/SB_Elsinore_Server,dbayub/SB_Elsinore_Server,dbayub/SB_Elsinore_Server,DougEdey/SB_Elsinore_Server |
1a6c02603fadd3bacda3750d6dfd261f3d996bb8 | core/src/us/thirdmillenium/desktoptrainer/DesktopTrainer.java | core/src/us/thirdmillenium/desktoptrainer/DesktopTrainer.java | package us.thirdmillenium.desktoptrainer;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import us.thirdmillenium.desktoptrainer.environment.SinglePlayEnvironment;
import java.util.Random;
public class DesktopTrainer extends ApplicationAdapter {
// Test Map Index (1 - 5)
private i... | package us.thirdmillenium.desktoptrainer;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import us.thirdmillenium.desktoptrainer.environment.Environment;
import java.util.Random;
public class DesktopTrainer extends ApplicationAdapter {
// Environment
private Environment MyEnvironm... | Revert "Environment is now an extendible Java class" | Revert "Environment is now an extendible Java class"
This reverts commit c1a40a0f0ea170a3111e4e5e807080b859d626cf.
| Java | apache-2.0 | dwaybright/SAS-DesktopTrainer |
22b3aadd784f36575a28d473c109127af09645ba | src/main/java/fr/pilato/elasticsearch/crawler/fs/FSCrawlerShutdownHook.java | src/main/java/fr/pilato/elasticsearch/crawler/fs/FSCrawlerShutdownHook.java | /*
* Licensed to David Pilato (the "Author") under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Author licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may not use... | /*
* Licensed to David Pilato (the "Author") under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Author licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may not use... | Fix Sonar errors and warnings | Fix Sonar errors and warnings
Sonar is reporting some bad code we need to fix.
https://sonarcloud.io/project/issues?id=fr.pilato.elasticsearch.crawler%3Afscrawler&open=AV4esPmAMtWHH574evMQ&resolved=false&types=BUG
| Java | apache-2.0 | dadoonet/fscrawler,dadoonet/fsriver,dadoonet/fscrawler,dadoonet/fsriver,dadoonet/fscrawler,dadoonet/fsriver |
f8bf22ddb63b6edf3a56c8013780998f69364831 | app/src/main/java/de/metalmatze/krautreporter/activities/ArticleActivity.java | app/src/main/java/de/metalmatze/krautreporter/activities/ArticleActivity.java | package de.metalmatze.krautreporter.activities;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.widget.ImageView;
import android.widget.TextView;
import com.activeandroid.query.Select;
import java.text.SimpleDateFormat;
import de.metalmatze.krautreporter.R;
import de.metalm... | package de.metalmatze.krautreporter.activities;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.text.Html;
import android.widget.ImageView;
import android.widget.TextView;
import com.activeandroid.query.Select;
import java.text.SimpleDateFormat;
import de.metalmatze.krautre... | Convert HTML content to spanned to use in content TextView | Convert HTML content to spanned to use in content TextView
| Java | mit | MetalMatze/Krautreporter |
e37ba4810d2fa759720b0e8047fe466f9e7fb294 | src/main/java/com/gpm/calameo/SingleDrm.java | src/main/java/com/gpm/calameo/SingleDrm.java | /**
* Copyright 2013 Mat Booth <mbooth@apache.org>
*/
package com.gpm.calameo;
public class SingleDrm {
private String ID;
private String SubscriptionID;
private String SubscriberLogin;
private Publication Book;
private String Extras;
public SingleDrm() {
}
public String getId() {
return ID;
... | /*
* Copyright 2013 Mat Booth <mbooth@apache.org>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | Fix licence header in newly added file. | Fix licence header in newly added file. | Java | apache-2.0 | mbooth101/calameo-api |
c1fc7c5e1897b6813388ac3f47e6df95d0d317b0 | src/main/java/org/gbif/api/util/HttpURI.java | src/main/java/org/gbif/api/util/HttpURI.java | /*
* Copyright 2020 Global Biodiversity Information Facility (GBIF)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | /*
* Copyright 2020 Global Biodiversity Information Facility (GBIF)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | Add default message to URI validator | Add default message to URI validator
| Java | apache-2.0 | gbif/gbif-api |
b54fbc9b0e805254f4cef69307cdbf16fee429cc | src/test/java/com/k13n/lt_codes/AppTest.java | src/test/java/com/k13n/lt_codes/AppTest.java | package com.k13n.lt_codes;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest... | package com.k13n.lt_codes;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import java.io.*;
import com.k13n.lt_codes.*;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName n... | Add a simple test case, does probably not compile. | Add a simple test case, does probably not compile.
| Java | mit | k13n/lt_codes |
685a3c967f8fefd26644127de09460ceaa385eac | src/revert/AI/EnemyAi.java | src/revert/AI/EnemyAi.java | package revert.AI;
import revert.Entities.Actor;
public interface EnemyAi {
/**
* AI to be invoked when an actor is told to attack
*/
public void attack(Actor a);
/**
* AI to be invoked when an actor enters the enemy's view
* @param a
*/
public void inView(Actor a);
/**
* AI to be invoked when a... | package revert.AI;
import revert.Entities.Actor;
public interface EnemyAi {
/**
* AI to be invoked when an actor is told to attack
*/
public void attack(Actor a);
/**
* AI to be invoked when an actor enters the enemy's view
* @param a
*/
public void inView(Actor a);
/**
* AI to be invoked when a... | Add ranges necessary for AI interaction | Add ranges necessary for AI interaction
| Java | mit | nhydock/revert |
6bcdbb43a8cd73ba80f770debcb227293222a3a0 | ode/app/models/relationships/HasSubstructureRelationship.java | ode/app/models/relationships/HasSubstructureRelationship.java | package models.relationships;
import play.libs.F.Promise;
import managers.relationships.HasSubstructureRelationshipManager;
import models.nodes.Feature;
import models.nodes.Rule;
import models.nodes.Substructure;
public class HasSubstructureRelationship extends HasRelationship {
public Feature startNode;
pu... | package models.relationships;
import play.libs.F.Promise;
import managers.relationships.HasSubstructureRelationshipManager;
import models.nodes.Feature;
import models.nodes.Substructure;
public class HasSubstructureRelationship extends HasRelationship {
public Feature startNode;
public Substructure endNode;... | Clean up: Remove unused import. | Clean up: Remove unused import.
| Java | agpl-3.0 | itsjeyd/ODE,itsjeyd/ODE,itsjeyd/ODE,itsjeyd/ODE |
3a91e6ac73ac301440b471b8b0e0d7d1f54bbc2a | src/java/org/apache/fop/fo/extensions/ExtensionObj.java | src/java/org/apache/fop/fo/extensions/ExtensionObj.java | /*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | /*
* Copyright 1999-2004 The Apache Software Foundation.
*
* 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... | Fix a regression in pdfoutline.fo. Supply empty createPropertyList and processNode methods since the extension elements handles all attributes themself. | Fix a regression in pdfoutline.fo. Supply empty createPropertyList and
processNode methods since the extension elements handles all attributes
themself.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: 102839466c3b40dd9c7e25c0a1a6d26afc40150a@198099 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | apache/fop,apache/fop,apache/fop,chunlinyao/fop,chunlinyao/fop,chunlinyao/fop,apache/fop,apache/fop,chunlinyao/fop,chunlinyao/fop |
999b6c3a2f3bc68f012d80c99c996dd82647c0d3 | src/main/java/com/ethlo/time/LeapSecondException.java | src/main/java/com/ethlo/time/LeapSecondException.java | package com.ethlo.time;
public class LeapSecondException extends Throwable
{
}
| package com.ethlo.time;
/*-
* #%L
* Internet Time Utility
* %%
* Copyright (C) 2017 - 2019 Morten Haraldsen (ethlo)
* %%
* 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
*
* htt... | Use exception for signaling leap second | Use exception for signaling leap second
| Java | apache-2.0 | ethlo/itu,ethlo/itu |
b5292658d7e123295505868dec072074a8bc743f | blormlib/src/main/java/br/com/bloder/blormlib/validation/validations/Filled.java | blormlib/src/main/java/br/com/bloder/blormlib/validation/validations/Filled.java | package br.com.bloder.blormlib.validation.validations;
import android.widget.EditText;
import br.com.bloder.blormlib.validation.Validate;
import br.com.bloder.blormlib.validation.Validation;
/**
* Created by bloder on 05/06/16.
*/
public class Filled extends Validation {
public EditText editText;
@Override
... | package br.com.bloder.blormlib.validation.validations;
import android.widget.EditText;
import br.com.bloder.blormlib.validation.Validate;
import br.com.bloder.blormlib.validation.Validation;
/**
* Created by bloder on 05/06/16.
*/
public class Filled extends Validation {
public EditText editText;
@Override
... | Implement on error funtion in filled validation | Implement on error funtion in filled validation
| Java | mit | bloder/Blorm |
f44a39ca20780fbebc2d77f0c106c22e2bc5d6a4 | sample/src/main/java/au/com/outware/cavemansample/GetEnvironmentProperty.java | sample/src/main/java/au/com/outware/cavemansample/GetEnvironmentProperty.java | package au.com.outware.cavemansample;
import android.content.Context;
import au.com.outware.caveman.data.repository.EnvironmentContentProviderRepository;
import au.com.outware.caveman.domain.repository.EnvironmentRepository;
/**
* @author Tim Mutton
* Copyright © 2015 Outware Mobile. All rights reserved.
*/
publi... | package au.com.outware.cavemansample;
import android.content.Context;
import android.support.annotation.VisibleForTesting;
import au.com.outware.caveman.data.repository.EnvironmentContentProviderRepository;
import au.com.outware.caveman.domain.repository.EnvironmentRepository;
/**
* @author Tim Mutton
* Copyright ... | Change key of logging property | Change key of logging property
| Java | mit | outware/caveman |
8262d48c2d08c85fe111602e8455ea94ccfd1304 | src/main/java/org/cyclops/integrateddynamics/block/BlockMenrilSaplingConfig.java | src/main/java/org/cyclops/integrateddynamics/block/BlockMenrilSaplingConfig.java | package org.cyclops.integrateddynamics.block;
import net.minecraft.block.Block;
import net.minecraft.block.SaplingBlock;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import org.cyclops.cyclopscore.config.extendedconfig.BlockConfig;
import org.cyclops.integrateddynamics.Integrated... | package org.cyclops.integrateddynamics.block;
import net.minecraft.block.Block;
import net.minecraft.block.SaplingBlock;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.RenderTypeLookup;
import net... | Fix menril sapling having incorrect render layer | Fix menril sapling having incorrect render layer
| Java | mit | CyclopsMC/IntegratedDynamics |
eb7a916f27e5cdbdf7f783e1c36a090327ee4b9e | tests/frontend/org/voltdb/compiler/dummy_test_underscore.java | tests/frontend/org/voltdb/compiler/dummy_test_underscore.java | package org.voltdb.compiler;
public class dummy_test_underscore {
}
| /* This file is part of VoltDB.
* Copyright (C) 2008-2014 VoltDB Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to... | Add License to dummy file used to test underscores. | Add License to dummy file used to test underscores. | Java | agpl-3.0 | migue/voltdb,ingted/voltdb,kumarrus/voltdb,ingted/voltdb,kumarrus/voltdb,VoltDB/voltdb,migue/voltdb,paulmartel/voltdb,creative-quant/voltdb,flybird119/voltdb,simonzhangsm/voltdb,creative-quant/voltdb,paulmartel/voltdb,migue/voltdb,migue/voltdb,simonzhangsm/voltdb,ingted/voltdb,deerwalk/voltdb,wolffcm/voltdb,paulmartel/... |
6ce18d20770a20e50bc034c866a5b4747a135d1b | src/HelloWorld.java | src/HelloWorld.java |
public class HelloWorld {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello world 1!");
}
}
|
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}
| Revert hello world message. Remove comment | Revert hello world message. Remove comment
| Java | apache-2.0 | wilsonths/java-hello-world |
dafd180923bebfcaf93a1b18e34d89dcd1fa8689 | app/src/main/java/me/jaxbot/wear/leafstatus/StartAC.java | app/src/main/java/me/jaxbot/wear/leafstatus/StartAC.java | package me.jaxbot.wear.leafstatus;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
/**
* Created by jonathan on 9/21/14.
*/
public class StartAC extends BroadcastReceiver {
final static String TAG = "StartAC";
@Override
p... | package me.jaxbot.wear.leafstatus;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
/**
* Created by jonathan on 9/21/14.
*/
public class StartAC extends BroadcastReceiver {
final static String TAG = "StartAC";
@Override
p... | Copy desired state into intent | Copy desired state into intent
| Java | mit | jaxbot/wear-LeafStatus |
91cf317092bb0237211072a5e5038001eaf15af2 | src/test/java/info/u_team/u_team_test2/TestMod2.java | src/test/java/info/u_team/u_team_test2/TestMod2.java | package info.u_team.u_team_test2;
import org.apache.logging.log4j.*;
import info.u_team.u_team_core.util.verify.JarSignVerifier;
import net.minecraftforge.fml.common.Mod;
@Mod(TestMod2.MODID)
public class TestMod2 {
public static final String MODID = "uteamtest2";
public static final Logger LOGGER = LogManager.g... | package info.u_team.u_team_test2;
import org.apache.logging.log4j.*;
import info.u_team.u_team_core.construct.ConstructManager;
import info.u_team.u_team_core.integration.IntegrationManager;
import info.u_team.u_team_core.util.verify.JarSignVerifier;
import net.minecraftforge.fml.common.Mod;
@Mod(TestMod2.MODID)
pub... | Call the construct manager and the integration manager | Call the construct manager and the integration manager | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
5117e260d20b116d7b24e0e257b6e98080222902 | androidemu/src/main/java/android/view/Menu.java | androidemu/src/main/java/android/view/Menu.java | package android.view;
import java.util.ArrayList;
public class Menu {
public ArrayList<MenuItem> menuItems = new ArrayList<MenuItem>();
public void add(int groupId, int itemId, int order, String title) {
MenuItem item = new MenuItem();
item.setGroupId(groupId);
item.setItemId(itemId);
item.setOrder(order)... | package android.view;
import java.util.ArrayList;
public class Menu {
public ArrayList<MenuItem> menuItems = new ArrayList<MenuItem>();
public MenuItem add(int groupId, int itemId, int order, String title) {
MenuItem item = new MenuItem();
item.setGroupId(groupId);
item.setItemId(itemId);
item.setOrder(or... | Add must return a menuitem | Add must return a menuitem
| Java | mit | albertoruibal/gwt_android_emu,albertoruibal/gwt_android_emu,albertoruibal/gwt_android_emu |
e2609690520f1913789f1f5283e9b5b06d1db08e | samples/java/computer-database/app/models/Computer.java | samples/java/computer-database/app/models/Computer.java | package models;
import java.util.*;
import javax.persistence.*;
import play.db.ebean.*;
import play.data.format.*;
import play.data.validation.*;
import com.avaje.ebean.*;
/**
* Computer entity managed by Ebean
*/
@Entity
public class Computer extends Model {
@Id
public Long id;
@Constraints.Re... | package models;
import java.util.*;
import javax.persistence.*;
import play.db.ebean.*;
import play.data.format.*;
import play.data.validation.*;
import com.avaje.ebean.*;
/**
* Computer entity managed by Ebean
*/
@Entity
public class Computer extends Model {
@Id
public Long id;
@Constraints.Re... | Fix to avoid asynchronous Ebean fetchAhead (automatically fetches the next page) | Fix to avoid asynchronous Ebean fetchAhead (automatically fetches the next page)
When a page is accessed, Ebean LimitOffsetPagingQuery.java automatically
starts a new background thread to fetch the next page. This thread uses
a database connection that can be still alive after the HTTP request was
processed. On heavy ... | Java | apache-2.0 | rajeshpg/playframework,benmccann/playframework,Shenker93/playframework,wegtam/playframework,wegtam/playframework,Shenker93/playframework,Shenker93/playframework,mkurz/playframework,playframework/playframework,Shruti9520/playframework,aradchykov/playframework,hagl/playframework,richdougherty/playframework,richdougherty/... |
f4c5b314f9aa2cd9a224eeaeb115a39040a3654c | platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsNew.java | platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsNew.java | package com.rhomobile.rhodes.webview;
import android.content.Context;
import android.webkit.WebSettings;
import android.webkit.WebView;
public class RhoWebSettingsNew implements RhoWebSettings {
public WebSettings setWebSettings(WebView w) {
RhoWebSettingsOld ws = new RhoWebSettingsOld();
WebSettings webSetting... | package com.rhomobile.rhodes.webview;
import android.content.Context;
import android.webkit.WebSettings;
import android.webkit.WebView;
public class RhoWebSettingsNew implements RhoWebSettings {
public WebSettings setWebSettings(WebView w) {
RhoWebSettingsOld ws = new RhoWebSettingsOld();
WebSettings webSetting... | Fix localStorage access from js. | Android: Fix localStorage access from js.
| Java | mit | rhomobile/rhodes,watusi/rhodes,tauplatform/tau,pslgoh/rhodes,tauplatform/tau,tauplatform/tau,pslgoh/rhodes,rhomobile/rhodes,tauplatform/tau,pslgoh/rhodes,tauplatform/tau,tauplatform/tau,pslgoh/rhodes,watusi/rhodes,watusi/rhodes,tauplatform/tau,watusi/rhodes,pslgoh/rhodes,tauplatform/tau,rhomobile/rhodes,pslgoh/rhodes,w... |
7490efaf9933ef984fe224bef199339049d1e61b | test/net/fortuna/ical4j/model/parameter/AltRepTest.java | test/net/fortuna/ical4j/model/parameter/AltRepTest.java | /*
* $Id: AltRepTest.java [23-Apr-2004]
*
* Copyright (c) 2004, Ben Fortuna All rights reserved.
*/
package net.fortuna.ical4j.model.parameter;
import java.net.URI;
import java.net.URISyntaxException;
import net.fortuna.ical4j.model.Parameter;
import net.fortuna.ical4j.model.ParameterFactoryImpl;
import junit.fr... | /*
* $Id: AltRepTest.java [23-Apr-2004]
*
* Copyright (c) 2004, Ben Fortuna All rights reserved.
*/
package net.fortuna.ical4j.model.parameter;
import java.net.URI;
import java.net.URISyntaxException;
import net.fortuna.ical4j.model.Parameter;
import net.fortuna.ical4j.model.ParameterFactoryImpl;
import junit.fr... | Update invalid URI to correctly throw exception | Update invalid URI to correctly throw exception
| Java | bsd-3-clause | guywithnose/iCal4j,guywithnose/iCal4j,guywithnose/iCal4j |
c6a1fcbe3a2a1910e3af6987134dc89e2d954949 | src/main/java/org/jabref/FallbackExceptionHandler.java | src/main/java/org/jabref/FallbackExceptionHandler.java | package org.jabref;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Catch and log any unhandled exceptions.
*/
public class FallbackExceptionHandler implements Thread.UncaughtExceptionHandler {
private static final Logger LOGGER = LoggerFactory.getLogger(FallbackExceptionHandler.class);
pub... | package org.jabref;
import org.jabref.gui.util.DefaultTaskExecutor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Catch and log any unhandled exceptions.
*/
public class FallbackExceptionHandler implements Thread.UncaughtExceptionHandler {
private static final Logger LOGGER = LoggerFactory.ge... | Fix not on FX thread exception | Fix not on FX thread exception
| Java | mit | JabRef/jabref,sauliusg/jabref,zellerdev/jabref,JabRef/jabref,JabRef/jabref,zellerdev/jabref,zellerdev/jabref,sauliusg/jabref,zellerdev/jabref,zellerdev/jabref,Siedlerchr/jabref,Siedlerchr/jabref,Siedlerchr/jabref,sauliusg/jabref,sauliusg/jabref,JabRef/jabref,Siedlerchr/jabref |
eb94c85937f353c103b9d610bf4a851b05d2e634 | src/test/resources/shared/nonexecute/StackOverflow.java | src/test/resources/shared/nonexecute/StackOverflow.java | /**
* This test simply overflows the stack through recursion.
*
* @author Elvis Stansvik <elvstone@gmail.com>
*/
class StackOverflow {
public static void main(String[] args) {
Overflower o;
o = new Overflower();
o.overflow();
}
}
class Overflower {
public int overflow() {
... | /**
* This test simply overflows the stack through recursion.
*
* @author Elvis Stansvik <elvstone@gmail.com>
*/
class StackOverflow {
public static void main(String[] args) {
Overflower o;
int r;
o = new Overflower();
r = o.overflow();
}
}
class Overflower {
public int ... | Make test case MiniJava (bah!). | Make test case MiniJava (bah!).
| Java | mit | estan/mjc,estan/mjc,liuxinglanyue/mjc,estan/mjc,liuxinglanyue/mjc,liuxinglanyue/mjc |
75720d6ee9b75b270bde6f50a73f236d61e59357 | test/com/aragaer/jtt/core/JdnTest.java | test/com/aragaer/jtt/core/JdnTest.java | // -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; -*-
// vim: et ts=4 sts=4 sw=4 syntax=java
package com.aragaer.jtt.core;
import static org.junit.Assert.*;
import org.junit.Test;
public class JdnTest {
@Test public void testTimestampToJdn() {
assertEquals(Jdn.fromTimestamp(1486502734000L), 24577... | // -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; -*-
// vim: et ts=4 sts=4 sw=4 syntax=java
package com.aragaer.jtt.core;
import static org.junit.Assert.*;
import org.junit.Test;
public class JdnTest {
@Test public void testHaveToTestConstructor() {
Jdn jdn = new Jdn(); // For now this serves on... | Fix Jdn class coverage report | Fix Jdn class coverage report
| Java | mit | aragaer/jtt_android |
463eac252b2e0ba16db908fe366fe372c4853517 | docker-plugin/src/main/java/com/nirima/jenkins/plugins/docker/utils/LogUtils.java | docker-plugin/src/main/java/com/nirima/jenkins/plugins/docker/utils/LogUtils.java | package com.nirima.jenkins.plugins.docker.utils;
import com.github.dockerjava.api.model.ResponseItem;
import hudson.model.BuildListener;
/**
* @author Kanstantsin Shautsou
*/
public class LogUtils {
private LogUtils() {
}
public static void printResponseItemToListener(BuildListener listener, ResponseIt... | package com.nirima.jenkins.plugins.docker.utils;
import com.github.dockerjava.api.model.ResponseItem;
import hudson.model.BuildListener;
import hudson.model.TaskListener;
/**
* @author Kanstantsin Shautsou
*/
public class LogUtils {
private LogUtils() {
}
public static void printResponseItemToListener(... | Make logging take superclass so not tied to Builds only. | Make logging take superclass so not tied to Builds only.
Signed-off-by: Nigel Magnay <0c422baef524090650d5dc166beb1e8269e8fa23@gmail.com>
| Java | mit | eaglerainbow/docker-plugin,jenkinsci/docker-plugin,jenkinsci/docker-plugin,jenkinsci/docker-plugin,eaglerainbow/docker-plugin,eaglerainbow/docker-plugin |
5cae594321b4dd931033ef17ab0634ab634c552a | lib/yoga/src/main/java/com/facebook/yoga/YogaJNI.java | lib/yoga/src/main/java/com/facebook/yoga/YogaJNI.java | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*
*/
package com.facebook.yoga;
import com.facebook.soloader.SoLoader;
public class YogaJNI {
// Known constants. 1-3 used in ... | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*
*/
package com.facebook.yoga;
import com.facebook.soloader.SoLoader;
public class YogaJNI {
private static boolean isInitiali... | Add Yoga JNI bindings to libcoldstart | Add Yoga JNI bindings to libcoldstart
Summary:
Yoga's JNI bindings are usually loaded during class loading, and can stall the UI thread.
Here, we try to mitigate the problem by adding the bindings to libcoldstart.
Reviewed By: michalgr
Differential Revision: D12956818
fbshipit-source-id: 9dda5cb6d26c2bae64606bc2d7... | Java | apache-2.0 | facebook/litho,facebook/litho,facebook/litho,facebook/litho,facebook/litho,facebook/litho |
84b4ea7faa838adaa5590779f95583376a8ac4b4 | runtime/src/main/java/com/redhat/ipaas/runtime/Application.java | runtime/src/main/java/com/redhat/ipaas/runtime/Application.java | /**
* Copyright (C) 2016 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | /**
* Copyright (C) 2016 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Use typesafe annotation for component scan | Use typesafe annotation for component scan
| Java | apache-2.0 | KurtStam/syndesis-rest,chirino/ipaas-rest,chirino/ipaas-rest,KurtStam/ipaas-rest,redhat-ipaas/ipaas-rest,KurtStam/ipaas-rest,redhat-ipaas/ipaas-api-java,rhuss/ipaas-rest,redhat-ipaas/ipaas-rest,rhuss/ipaas-rest,redhat-ipaas/ipaas-api-java,KurtStam/ipaas-rest,KurtStam/syndesis-rest,KurtStam/syndesis-rest,redhat-ipaas/ip... |
f1e1085ced66e5acacdc0c1613826f182f41a6dd | service-authentication/src/main/java/sg/ncl/service/authentication/AppConfig.java | service-authentication/src/main/java/sg/ncl/service/authentication/AppConfig.java | package sg.ncl.service.authentication;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import sg.ncl.common.jwt.JwtConfig;
/**
* @author Christopher Zhong
*/
@Configuration
@Import({JwtConfig.class})
public class AppConfig {}
| package sg.ncl.service.authentication;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import sg.ncl.common.jwt.JwtConfig;
/**
* @author Christopher Zhong
*/
@Configuration("sg.ncl.service.authentication.AppConfig")
@Import({JwtConfig.class})
public... | Change configuration name to avoid conflicts (DEV-99) | Change configuration name to avoid conflicts (DEV-99)
| Java | apache-2.0 | nus-ncl/services-in-one,nus-ncl/services-in-one |
89e0ae70468b95c7f34d76b149de1eb8f5818f8a | app/src/main/java/com/tehmou/rxbookapp/BookFragment.java | app/src/main/java/com/tehmou/rxbookapp/BookFragment.java | package com.tehmou.rxbookapp;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.tehmou.rxbookapp.data.DataStore;
import com.tehmou.rxbookapp.viewmodels.BookViewModel;
import com.tehmou.rxbookapp.vie... | package com.tehmou.rxbookapp;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.tehmou.rxbookapp.data.DataStore;
import com.tehmou.rxbookapp.viewmodels.BookViewModel;
import com.tehmou.rxbookapp.vie... | Update view model life cycle | Update view model life cycle
| Java | mit | ulx/reark,apoi/reark |
294f7779dd4ad3639144ba5aae69cee2d1a26d97 | app/src/main/java/com/trevorhalvorson/actorflix/RecyclerViewItemClickListener.java | app/src/main/java/com/trevorhalvorson/actorflix/RecyclerViewItemClickListener.java | package com.trevorhalvorson.actorflix;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
/**
* Created by Trevor Halvorson on 12/30/2015.
*/
public class RecyclerViewItemClickListener impleme... | package com.trevorhalvorson.actorflix;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
/**
* Created by Trevor Halvorson on 12/30/2015.
*/
public class RecyclerViewItemClickListener impleme... | Remove Hungarian notation in fields | Remove Hungarian notation in fields
| Java | mit | trevorhalvorson/ActorFlix |
d5fe0925c90cd6b9e634019a061d53b39e6c275c | src/com/twu/biblioteca/Books.java | src/com/twu/biblioteca/Books.java | package com.twu.biblioteca;
import java.util.ArrayList;
import java.util.List;
public class Books {
private List<String[]> books;
public Books() {
books = new ArrayList<>();
books.add(new String[]{"Harry Potter and The Sorcer's Stone", "JK Rowling", "1999"});
books.add(new String[]{"H... | package com.twu.biblioteca;
import java.util.ArrayList;
import java.util.List;
public class Books {
private List<Book> books;
public Books() {
books = new ArrayList<>();
books.add(new Book("Harry Potter and The Sorcer's Stone", "JK Rowling", 1999));
books.add(new Book("Harry Potter an... | Change List of String[] to List of Book | Change List of String[] to List of Book
| Java | apache-2.0 | arunvelsriram/twu-biblioteca-arunvelsriram |
a1bc7ad8adbcce9ff5fa64af5b5d1ee1c1891d2b | cloudfoundry-client/src/main/java/org/cloudfoundry/client/v3/packages/_DockerData.java | cloudfoundry-client/src/main/java/org/cloudfoundry/client/v3/packages/_DockerData.java | /*
* Copyright 2013-2020 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 2013-2020 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... | Make docker credentials Nullable to match API definition | Make docker credentials Nullable to match API definition
| Java | apache-2.0 | cloudfoundry/cf-java-client,cloudfoundry/cf-java-client,cloudfoundry/cf-java-client |
42726f684c5d46cda70f509be89029f102a54a90 | plugins/org.eclipse.oomph.ostools/src/org/eclipse/oomph/ostools/PromptHandler.java | plugins/org.eclipse.oomph.ostools/src/org/eclipse/oomph/ostools/PromptHandler.java | /*
* Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* ... | /*
* Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* ... | Support the "System Explorer" and "Command Prompt" commands on Mac and Linux, too | [475561] Support the "System Explorer" and "Command Prompt" commands on Mac and Linux, too
https://bugs.eclipse.org/bugs/show_bug.cgi?id=475561 | Java | epl-1.0 | peterkir/org.eclipse.oomph,peterkir/org.eclipse.oomph,peterkir/org.eclipse.oomph,peterkir/org.eclipse.oomph,peterkir/org.eclipse.oomph |
547ef81a97fdea2e92c872c1baabfe211adaff04 | geronimo-el_2.2_spec/src/main/java/javax/el/ELUtils.java | geronimo-el_2.2_spec/src/main/java/javax/el/ELUtils.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"); yo... | /**
* 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"); yo... | Remove public to pass signature test | Remove public to pass signature test
git-svn-id: 60e751271f50ec028ae56d425821c1c711e0b018@905897 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | salyh/javamailspec,salyh/geronimo-specs,salyh/geronimo-specs,apache/geronimo-specs,apache/geronimo-specs,salyh/geronimo-specs,apache/geronimo-specs |
c42530ec5d1f533b8fee8c9b01b445d36c213320 | src/main/java/net/darkhax/gamestages/addons/crt/CraftTweakerEventSubscription.java | src/main/java/net/darkhax/gamestages/addons/crt/CraftTweakerEventSubscription.java | package net.darkhax.gamestages.addons.crt;
import com.blamejared.crafttweaker.impl.commands.script_examples.ExampleCollectionEvent;
import net.darkhax.gamestages.GameStages;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod.Even... | package net.darkhax.gamestages.addons.crt;
import com.blamejared.crafttweaker.impl.commands.script_examples.ExampleCollectionEvent;
import net.darkhax.gamestages.GameStages;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod.Even... | Fix Forge trying to load CraftTweaker support even when CraftTweaker is missing. | Fix Forge trying to load CraftTweaker support even when CraftTweaker is missing.
| Java | lgpl-2.1 | Darkhax-Minecraft/Game-Stages |
c89aeeb0ef6af563d0610e10060b868501e35aa3 | ukelonn.bundle/src/test/java/no/priv/bang/ukelonn/impl/UkelonnServletProviderTest.java | ukelonn.bundle/src/test/java/no/priv/bang/ukelonn/impl/UkelonnServletProviderTest.java | /*
* Copyright 2016-2017 Steinar Bang
*
* 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 2016-2017 Steinar Bang
*
* 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... | Remove unused JUnit TemporaryFolder rule. | Remove unused JUnit TemporaryFolder rule.
| Java | apache-2.0 | steinarb/ukelonn,steinarb/ukelonn,steinarb/ukelonn |
246f39a6ac5dab8300600e5776da0e0b02bc6706 | Client/src/main/java/org/xdi/oxauth/client/fido/u2f/RegistrationRequestService.java | Client/src/main/java/org/xdi/oxauth/client/fido/u2f/RegistrationRequestService.java | /*
* oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
*
* Copyright (c) 2014, Gluu
*/
package org.xdi.oxauth.client.fido.u2f;
import org.xdi.oxauth.model.fido.u2f.protocol.RegisterRequestMessage;
import org.xdi.oxauth.model.fido.u2f.protocol.RegisterStatus;
... | /*
* oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
*
* Copyright (c) 2014, Gluu
*/
package org.xdi.oxauth.client.fido.u2f;
import org.xdi.oxauth.model.fido.u2f.protocol.RegisterRequestMessage;
import org.xdi.oxauth.model.fido.u2f.protocol.RegisterStatus;
... | Add enrollment_code to U2F client | Add enrollment_code to U2F client | Java | mit | madumlao/oxAuth,madumlao/oxAuth,GluuFederation/oxAuth,madumlao/oxAuth,GluuFederation/oxAuth,GluuFederation/oxAuth,GluuFederation/oxAuth,madumlao/oxAuth,madumlao/oxAuth,GluuFederation/oxAuth |
20cfeba2dd6ab01feb31be37e72d80cfb133532d | core/src/main/java/io/paradoxical/cassieq/discoverable/auth/AccountSecurityContext.java | core/src/main/java/io/paradoxical/cassieq/discoverable/auth/AccountSecurityContext.java | package io.paradoxical.cassieq.discoverable.auth;
import io.dropwizard.auth.Authorizer;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.core.SecurityContext;
import java.security.Principal;
public class AccountSecurityContext<P extends Principal> implements SecurityContext {
private fin... | package io.paradoxical.cassieq.discoverable.auth;
import io.dropwizard.auth.Authorizer;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.core.SecurityContext;
import java.security.Principal;
public class AccountSecurityContext<P extends Principal> implements SecurityContext {
private fin... | Clean up the account security context | Clean up the account security context
| Java | mit | paradoxical-io/cassieq,paradoxical-io/cassieq,paradoxical-io/cassieq,paradoxical-io/cassieq |
2fe2130e7466b6109efa4fefd7f3336107109fe6 | app/src/main/java/com/example/android/miwok/NumbersActivity.java | app/src/main/java/com/example/android/miwok/NumbersActivity.java | package com.example.android.miwok;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.widget.LinearLayout;
import android.widget.TextView;
import java.util.ArrayList;
public class NumbersActivity extends AppCompatActivity {
@Overri... | package com.example.android.miwok;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.widget.LinearLayout;
import android.widget.TextView;
import java.util.ArrayList;
public class NumbersActivity extends AppCompatActivity {
@Overri... | Change the while loop to a for loop to make the code more concise | Change the while loop to a for loop to make the code more concise
| Java | apache-2.0 | MuirDH/Miwok |
c44ab47c19bc3c0427e751034356517ef48c7f59 | src/main/java/aeronicamc/mods/mxtune/gui/Handler.java | src/main/java/aeronicamc/mods/mxtune/gui/Handler.java | package aeronicamc.mods.mxtune.gui;
import net.minecraft.client.Minecraft;
public class Handler
{
private static final Minecraft mc = Minecraft.getInstance();
private Handler()
{
// NOP
}
public static void openTestScreen()
{
mc.tell(()->mc.setScreen(new TestScreen(null)));
... | package aeronicamc.mods.mxtune.gui;
import aeronicamc.mods.mxtune.util.AntiNull;
import net.minecraft.client.Minecraft;
public class Handler
{
private static final Minecraft mc = Minecraft.getInstance();
private Handler()
{
// NOP
}
public static void openTestScreen()
{
mc.te... | Stop IntelliJ null warnings for non-null allow parameters... | Stop IntelliJ null warnings for non-null allow parameters...
| Java | apache-2.0 | Aeronica/mxTune |
67337102eaa5b01da1a9ad2c1f6a48290d4ff044 | src/test/java/com/quizdeck/analysis/QuizAnalysisFactoryTest.java | src/test/java/com/quizdeck/analysis/QuizAnalysisFactoryTest.java | package com.quizdeck.analysis;
import com.quizdeck.Application.QuizDeckApplication;
import com.quizdeck.analysis.exceptions.AnalysisException;
import com.quizdeck.analysis.inputs.*;
import com.quizdeck.analysis.outputs.QuizAnalysisData;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework... | package com.quizdeck.analysis;
import com.quizdeck.Application.QuizDeckApplication;
import com.quizdeck.analysis.exceptions.AnalysisException;
import com.quizdeck.analysis.exceptions.InsufficientDataException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.SpringApplicatio... | Make QuizAnalysisFactory unit tests more specific. | Make QuizAnalysisFactory unit tests more specific.
| Java | mit | bcroden/QuizDeck-Server |
2d5e69e901e774a221997bed1580d0828e5a3561 | src/com/facebook/buck/rules/keys/DefaultAlterRuleKey.java | src/com/facebook/buck/rules/keys/DefaultAlterRuleKey.java | /*
* Copyright 2015-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | /*
* Copyright 2015-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Improve error message when computing a rulekey fails | Improve error message when computing a rulekey fails
Summary: This adds the field name in the context message.
Test Plan: CI
Reviewed By: elsteveogrande
fbshipit-source-id: c373b6c
| Java | apache-2.0 | brettwooldridge/buck,zpao/buck,romanoid/buck,SeleniumHQ/buck,Addepar/buck,ilya-klyuchnikov/buck,JoelMarcey/buck,clonetwin26/buck,ilya-klyuchnikov/buck,romanoid/buck,shs96c/buck,ilya-klyuchnikov/buck,shs96c/buck,SeleniumHQ/buck,JoelMarcey/buck,SeleniumHQ/buck,shs96c/buck,Addepar/buck,zpao/buck,LegNeato/buck,kageiit/buck... |
985a968274ed4bce3d54f7294464a9b1ba1f7887 | src/net/zschech/gwt/comet/client/impl/CometTransport.java | src/net/zschech/gwt/comet/client/impl/CometTransport.java | /*
* Copyright 2009 Richard Zschech.
*
* 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 ... | /*
* Copyright 2009 Richard Zschech.
*
* 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 ... | Reduce the URL timestamp length and avoid using emulated longs | Reduce the URL timestamp length and avoid using emulated longs
git-svn-id: 558837a20bd4f75dae4ad66848e1ea511a65cec4@35 0d5c52f8-90a3-11de-8ad7-8b2c2f1e2016
| Java | apache-2.0 | rzschech/gwt-comet |
1a9254b0fce9ff28f510be5ad5f8a71e4b983626 | src/test/java/alien4cloud/packager/ArchiveDownloader.java | src/test/java/alien4cloud/packager/ArchiveDownloader.java | package alien4cloud.packager;
import alien4cloud.git.RepositoryManager;
import alien4cloud.utils.FileUtil;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
/**
* Utility that downloads the archives we want to package.
*/
public class ArchiveDownloader {
public static void main... | package alien4cloud.packager;
import alien4cloud.git.RepositoryManager;
import alien4cloud.utils.FileUtil;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
/**
* Utility that downloads the archives we want to package.
*/
public class ArchiveDownloader {
public static void main... | Fix archive versions for 1.3.0 | Fix archive versions for 1.3.0
| Java | apache-2.0 | alien4cloud/alien4cloud-dist,alien4cloud/alien4cloud-dist |
69a88a7e3783ee9dec5dcdea2a1e911485010505 | src/test/java/org/dita/dost/EndToEndTest.java | src/test/java/org/dita/dost/EndToEndTest.java | package org.dita.dost;
import org.junit.Ignore;
import org.junit.Test;
import java.io.File;
import java.nio.file.Paths;
import static org.dita.dost.AbstractIntegrationTest.Transtype.*;
public class EndToEndTest extends AbstractIntegrationTest {
@Test
public void xhtml() throws Throwable {
builder()... | package org.dita.dost;
import org.junit.Ignore;
import org.junit.Test;
import java.io.File;
import java.nio.file.Paths;
import static org.dita.dost.AbstractIntegrationTest.Transtype.*;
public class EndToEndTest extends AbstractIntegrationTest {
@Test
public void xhtml() throws Throwable {
builder()... | Fix expected PDF E2E warning count | Fix expected PDF E2E warning count
| Java | apache-2.0 | shaneataylor/dita-ot,dita-ot/dita-ot,dita-ot/dita-ot,shaneataylor/dita-ot,drmacro/dita-ot,infotexture/dita-ot,dita-ot/dita-ot,infotexture/dita-ot,shaneataylor/dita-ot,dita-ot/dita-ot,drmacro/dita-ot,drmacro/dita-ot,drmacro/dita-ot,dita-ot/dita-ot,infotexture/dita-ot,drmacro/dita-ot,shaneataylor/dita-ot,infotexture/dita... |
71c3fe8147f74551d0f83161ecc590882669c1e6 | java/server/test/org/openqa/grid/common/SeleniumProtocolTest.java | java/server/test/org/openqa/grid/common/SeleniumProtocolTest.java | package org.openqa.grid.common;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.openqa.selenium.remote.DesiredCapabilities;
public class SeleniumProtocolTest {
@Test
public void getPathTest() {
//Ensuring that when path is specified via capabilities, that is what we get back i... | // Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... | Update copyright header. No logical change. | Update copyright header. No logical change.
| Java | apache-2.0 | valfirst/selenium,asashour/selenium,juangj/selenium,carlosroh/selenium,chrisblock/selenium,titusfortner/selenium,Jarob22/selenium,oddui/selenium,mojwang/selenium,jabbrwcky/selenium,twalpole/selenium,juangj/selenium,krmahadevan/selenium,joshbruning/selenium,dibagga/selenium,valfirst/selenium,mach6/selenium,asolntsev/sel... |
bc922c083488feaf3aa7f798233f8c0fb3324b59 | platform/diff-api/src/com/intellij/ide/diff/AsyncDiffElement.java | platform/diff-api/src/com/intellij/ide/diff/AsyncDiffElement.java | /*
* Copyright 2000-2011 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-2011 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... | Revert "Forcing generics on DiffElements" IDEA-CR-54193 WI-27162 | Revert "Forcing generics on DiffElements" IDEA-CR-54193 WI-27162
This reverts commit cbf3b57c
GitOrigin-RevId: 8162c394fb08d374a0054844e26aee00c58c7dd1 | Java | apache-2.0 | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... |
75c6f8ff625a3b7466823d153ddbbb45901c1c64 | Server/src/org/openas2/partner/PartnershipFactory.java | Server/src/org/openas2/partner/PartnershipFactory.java | package org.openas2.partner;
import java.util.List;
import java.util.Map;
import org.openas2.Component;
import org.openas2.OpenAS2Exception;
import org.openas2.message.Message;
import org.openas2.message.MessageMDN;
/**
* original author unknown
*
* added getPartners method
* @author joseph mcverr... | package org.openas2.partner;
import java.util.List;
import java.util.Map;
import org.openas2.Component;
import org.openas2.OpenAS2Exception;
import org.openas2.message.Message;
import org.openas2.message.MessageMDN;
/**
* original author unknown
*
* added getPartners method
* @author joseph mcverr... | Support reverse lookup of partnership when it is an MDN | Support reverse lookup of partnership when it is an MDN | Java | bsd-2-clause | OpenAS2/OpenAs2App,igwtech/OpenAs2App,OpenAS2/OpenAs2App,igwtech/OpenAs2App,igwtech/OpenAs2App,OpenAS2/OpenAs2App,OpenAS2/OpenAs2App,igwtech/OpenAs2App |
f25c708819edaa09288e26d16bc14e8016936d75 | com.github.sormuras.bach/test/java/com/github/sormuras/bach/internal/StringsTests.java | com.github.sormuras.bach/test/java/com/github/sormuras/bach/internal/StringsTests.java | package com.github.sormuras.bach.internal;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.lang.module.ModuleDescriptor.Version;
import org.junit.jupiter.api.Test;
class StringsTests {
@Test
void toNumberAndPreRelease() {
assertEquals("1", Strings.toNumberAndPreRelease(Version.parse... | package com.github.sormuras.bach.internal;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.lang.module.ModuleDescriptor.Version;
import java.time.Duration;
import org.junit.jupiter.api.Test;
class StringsTests {
@Test
void durations() {
assertEquals("0s", Strings.toString(Duration.Z... | Add duration to string assertions | Add duration to string assertions
| Java | mit | sormuras/bach,sormuras/bach |
63df925112c15f1536cd5bed34bbf2b38adc1dba | src/main/java/com/hea3ven/tools/commonutils/mod/ProxyModBase.java | src/main/java/com/hea3ven/tools/commonutils/mod/ProxyModBase.java | package com.hea3ven.tools.commonutils.mod;
import java.util.List;
import com.google.common.collect.Lists;
import org.apache.commons.lang3.tuple.Pair;
import net.minecraftforge.fml.common.network.IGuiHandler;
public class ProxyModBase {
private ModInitializerCommon modInitializer;
public ProxyModBase(ModInitial... | package com.hea3ven.tools.commonutils.mod;
import java.util.List;
import com.google.common.collect.Lists;
import org.apache.commons.lang3.tuple.Pair;
import net.minecraftforge.fml.common.network.IGuiHandler;
public class ProxyModBase {
private ModInitializerCommon modInitializer;
public ProxyModBase(ModInitial... | Remove the final attribute from the main events on the proxy | Remove the final attribute from the main events on the proxy
| Java | mit | hea3ven/CommonUtils,hea3ven/CommonUtils |
7129974c1703012cc9f84662266c732608c7740f | src/main/java/de/retest/recheck/review/ignore/JSFilterLoader.java | src/main/java/de/retest/recheck/review/ignore/JSFilterLoader.java | package de.retest.recheck.review.ignore;
import de.retest.recheck.ignore.JSFilterImpl;
import de.retest.recheck.review.ignore.io.Loader;
public class JSFilterLoader implements Loader<JSFilterImpl> {
@Override
public JSFilterImpl load( final String line ) {
return new JSFilterImpl( null );
}
@Override
public ... | package de.retest.recheck.review.ignore;
import de.retest.recheck.ignore.JSFilterImpl;
import de.retest.recheck.review.ignore.io.Loader;
public class JSFilterLoader implements Loader<JSFilterImpl> {
@Override
public JSFilterImpl load( final String line ) {
// XXX This causes exceptions when something is loaded w... | Add a helpful comment for the future | Add a helpful comment for the future
| Java | agpl-3.0 | retest/recheck,retest/recheck |
8d28b15b07bce1fecdb6e2eb4177f8ab54a79cb4 | src/test/java/info/u_team/u_team_test/potion/RadiationPotion.java | src/test/java/info/u_team/u_team_test/potion/RadiationPotion.java | package info.u_team.u_team_test.potion;
import info.u_team.u_team_core.potion.UPotion;
import info.u_team.u_team_test.init.TestEffects;
import net.minecraft.potion.EffectInstance;
public class RadiationPotion extends UPotion {
public RadiationPotion(String name, int duration, int amplifier) {
super(name, "radiat... | package info.u_team.u_team_test.potion;
import info.u_team.u_team_test.init.TestEffects;
import net.minecraft.potion.*;
public class RadiationPotion extends Potion {
public RadiationPotion(int duration, int amplifier) {
super("radiation", new EffectInstance(TestEffects.RADIATION.get(), duration, amplifier));
}
... | Use the default potion class | Use the default potion class | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
bf753d3f58d9a141fe35741931c31504b835e97a | jutils/src/main/java/com/valencia/jutils/jvm/Platform.java | jutils/src/main/java/com/valencia/jutils/jvm/Platform.java | package com.valencia.jutils.jvm;
/**
*
*/
/**
* Used for introspecting the current OS platform.
*
* @author gee4vee@me.com
*/
public enum Platform {
WINDOWS, LINUX, MAC_OS, AIX,
;
public static Platform get() {
String os = System.getProperty("os.name");
if (os.toLowerCase().cont... | package com.valencia.jutils.jvm;
/**
*
*/
/**
* Used for introspecting the current OS platform.
*
* @author gee4vee@me.com
*/
public enum Platform {
WINDOWS, LINUX, MAC_OS, AIX,
/**
* Used to indicate any platform.
*/
ALL,
;
public static Platform get() {
String os = Syst... | Add any platform enum constant. | Add any platform enum constant. | Java | apache-2.0 | gee4vee/jutils |
77ba6ca73f0346c0e2d263b85ced6cbe86eef5f0 | src/main/java/org/scribe/model/Parameter.java | src/main/java/org/scribe/model/Parameter.java | package org.scribe.model;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import org.scribe.exceptions.OAuthException;
import org.scribe.utils.OAuthEncoder;
/**
* @author: Pablo Fernandez
*/
public class Parameter implements Comparable<Parameter>
{
private static final String UTF = "UTF8"... | package org.scribe.model;
import org.scribe.utils.OAuthEncoder;
/**
* @author: Pablo Fernandez
*/
public class Parameter implements Comparable<Parameter>
{
private final String key;
private final String value;
public Parameter(String key, String value)
{
this.key = key;
this.value = value;
}
p... | Remove unused imports and variables. | Remove unused imports and variables.
| Java | mit | alexsmirnov/scribe-java,alexsmirnov/scribe-java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.