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 |
|---|---|---|---|---|---|---|---|---|---|
833dc479266571e83b8a6c9802def2716c87570e | app/src/main/java/fi/jyu/ln/luontonurkka/tools/SettingsManager.java | app/src/main/java/fi/jyu/ln/luontonurkka/tools/SettingsManager.java | package fi.jyu.ln.luontonurkka.tools;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by jarno on 10/22/16.
*/
public class SettingsManager {
private SharedPreferences sp;
public SettingsManager(Activity activity) {
sp = activit... | package fi.jyu.ln.luontonurkka.tools;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
/**
* Created by Jarno 22.10.16
*/
public class SettingsManager {
private SharedPreferences sp;
public SettingsManager(... | Save preferences to application context | Save preferences to application context
| Java | mit | luontonurkka/app |
6559c13d39dd908e7b79fde2e2299a8935707978 | src/com/simplenote/android/Constants.java | src/com/simplenote/android/Constants.java | package com.simplenote.android;
public class Constants {
/** Name of stored preferences */
public static final String PREFS_NAME = "SimpleNotePrefs";
/** Logging tag prefix */
public static final String TAG = "SimpleNote:";
// Message Codes
public static final int MESSAGE_UPDATE_NOTE = 12398;
// Activity for r... | package com.simplenote.android;
public class Constants {
/** Name of stored preferences */
public static final String PREFS_NAME = "SimpleNotePrefs";
/** Logging tag prefix */
public static final String TAG = "SimpleNote:";
// Message Codes
public static final int MESSAGE_UPDATE_NOTE = 12398;
// Activity for r... | Add constant for an edit note request | Add constant for an edit note request
| Java | mit | bryanjswift/simplenote-android |
876932ae5b80a2a1f82eba06dd51418f728f6491 | src/thed/DRandom.java | src/thed/DRandom.java | package thed;
import java.util.Random;
/**
* ThreadLocal for java.util.Random instances.
*
* @author Derek Mulvihill - Sep 2, 2013
*/
public class DRandom {
private static ThreadLocal<Random> random = new ThreadLocal<Random>() {
protected Random initialValue() {
return new Random();
... | package thed;
import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;
/**
* ThreadLocal for java.util.Random instances.
*
* @author Derek Mulvihill - Sep 2, 2013
*/
public class DRandom {
public static Random get() {
ThreadLocalRandom.current();
}
}
| Use ThreadLocalRandom instead of ThreadLocal<Random> | Use ThreadLocalRandom instead of ThreadLocal<Random>
| Java | mit | derekmu/Schmince-2 |
b22f2441ff04656e733037644c259bf4f38be975 | cloudslang-runtime/src/main/java/io/cloudslang/lang/runtime/configuration/SlangRuntimeSpringConfig.java | cloudslang-runtime/src/main/java/io/cloudslang/lang/runtime/configuration/SlangRuntimeSpringConfig.java | package io.cloudslang.lang.runtime.configuration;
/*******************************************************************************
* (c) Copyright 2014 Hewlett-Packard Development Company, L.P.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License... | package io.cloudslang.lang.runtime.configuration;
/*******************************************************************************
* (c) Copyright 2014 Hewlett-Packard Development Company, L.P.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License... | Use Jython dont import site flag | Use Jython dont import site flag
The purpose of this change is to improve startup performance of the cslang CLI
According to jython java docs when this property is set to false site.py will not be imported
AFAIK this site packages doesn't exist unless you install jython (and not embedding)
Signed-off-by: Eliya Sadan ... | Java | apache-2.0 | CloudSlang/cloud-slang,CloudSlang/cloud-slang,CloudSlang/cloud-slang,CloudSlang/cloud-slang,narry/cloud-slang,narry/cloud-slang |
fb7913f58315b1e9c1a3534a7882b78149e274dd | fml/src/main/java/cpw/mods/fml/common/network/handshake/HandshakeMessageHandler.java | fml/src/main/java/cpw/mods/fml/common/network/handshake/HandshakeMessageHandler.java | package cpw.mods.fml.common.network.handshake;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.util.AttributeKey;
public class HandshakeMessageHandler<S extends Enum<S> & IHandshakeState<S>> extends SimpleChannelInboundHandler<FMLHandshakeMessage> {
... | package cpw.mods.fml.common.network.handshake;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.util.AttributeKey;
public class HandshakeMessageHandler<S extends Enum<S> & IHandshakeState<S>> extends SimpleChannelInboundHandler<FMLHandshakeMessage> {
... | Fix stupid possible compiler error. | Fix stupid possible compiler error.
| Java | lgpl-2.1 | fcjailybo/MinecraftForge,blay09/MinecraftForge,shadekiller666/MinecraftForge,jdpadrnos/MinecraftForge,luacs1998/MinecraftForge,Ghostlyr/MinecraftForge,dmf444/MinecraftForge,RainWarrior/MinecraftForge,bonii-xx/MinecraftForge,Theerapak/MinecraftForge,ThiagoGarciaAlves/MinecraftForge,karlthepagan/MinecraftForge,simon816/M... |
c9c4b398b9176b8f5c06216355d0478d44a52ecc | Snooper/src/main/java/com/prateekj/snooper/infra/CustomBindings.java | Snooper/src/main/java/com/prateekj/snooper/infra/CustomBindings.java | package com.prateekj.snooper.infra;
import android.databinding.BindingAdapter;
import android.support.v7.widget.RecyclerView;
import android.widget.BaseAdapter;
import android.widget.ListView;
import android.widget.TextView;
public class CustomBindings {
@BindingAdapter("app:adapter")
public static void setAdapt... | package com.prateekj.snooper.infra;
import android.databinding.BindingAdapter;
import android.support.v7.widget.RecyclerView;
import android.widget.BaseAdapter;
import android.widget.ListView;
import android.widget.TextView;
public class CustomBindings {
@BindingAdapter("adapter")
public static void setAdapter(R... | Revert "Revert "removing data binding warnings"" | Revert "Revert "removing data binding warnings""
This reverts commit 0d441ece80c6e8dbb7b9045a9e2a48d2af0ea992.
| Java | apache-2.0 | jainsahab/AndroidSnooper,jainsahab/AndroidSnooper,jainsahab/AndroidSnooper |
c7f49ffabb5644be7ecb474ffac90ea42652b475 | library/src/main/java/com/eowise/recyclerview/stickyheaders/StickyHeadersBuilder.java | library/src/main/java/com/eowise/recyclerview/stickyheaders/StickyHeadersBuilder.java | package com.eowise.recyclerview.stickyheaders;
import android.support.v7.widget.RecyclerView;
/**
* Created by aurel on 16/10/14.
*/
public class StickyHeadersBuilder {
private RecyclerView recyclerView;
private RecyclerView.Adapter adapter;
private StickyHeadersAdapter headersAdapter;
private Head... | package com.eowise.recyclerview.stickyheaders;
import android.support.v7.widget.RecyclerView;
/**
* Created by aurel on 16/10/14.
*/
public class StickyHeadersBuilder {
private RecyclerView recyclerView;
private RecyclerView.Adapter adapter;
private StickyHeadersAdapter headersAdapter;
private Head... | Add validation for adapter stable ids in builder | Add validation for adapter stable ids in builder
| Java | mit | pinball83/recyclerview-stickyheaders,akrezic1/recyclerview-stickyheaders,eowise/recyclerview-stickyheaders,msdgwzhy6/recyclerview-stickyheaders,chengkaizone/recyclerview-stickyheaders,bingshanguxue/recyclerview-stickyheaders |
4a171d74c1a545d1ddb023dde4e28c5f12db5f78 | src/main/java/uk/gov/register/presentation/RegisterDetail.java | src/main/java/uk/gov/register/presentation/RegisterDetail.java | package uk.gov.register.presentation;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class RegisterDetail {
private final static DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern("d MMM uuuu");
private... | package uk.gov.register.presentation;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDateTime;
public class RegisterDetail {
private final String domain;
private final int totalRecords;
private final int totalEntries;
private final int totalItems;
private final Local... | Change the string format for last-updated property of a register. | Change the string format for last-updated property of a register.
This now just uses toString() to return the whole timestamp. We may need to change this at a later date once we have decided whether or not the last-updated time will be an object with or without a timezone.
| Java | mit | openregister/openregister-java,openregister/openregister-java,openregister/openregister-java,openregister/openregister-java,openregister/openregister-java |
ccbf62e3bff58f1a8047616539ad548c29fa8832 | integration-tests/src/test/java/org/realityforge/arez/integration/EqualsAndHashCodeTest.java | integration-tests/src/test/java/org/realityforge/arez/integration/EqualsAndHashCodeTest.java | package org.realityforge.arez.integration;
import org.realityforge.arez.Arez;
import org.realityforge.guiceyloops.shared.ValueUtil;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
public class EqualsAndHashCodeTest
{
@Test
public void equalsAndHashBasedOnId()
{
final PersonModel perso... | package org.realityforge.arez.integration;
import javax.annotation.Nonnull;
import org.realityforge.arez.Arez;
import org.realityforge.arez.annotations.ArezComponent;
import org.realityforge.arez.annotations.Observable;
import org.realityforge.guiceyloops.shared.ValueUtil;
import org.testng.annotations.Test;
import st... | Use an isolated model so it does not interfere with other integration tests | Use an isolated model so it does not interfere with other integration tests
| Java | apache-2.0 | realityforge/arez,realityforge/arez,realityforge/arez |
15a6a9f1f244c217edfa3fc8a389ec2bf6b2de60 | tests/src/com/vaadin/tests/components/textarea/TextAreaTest.java | tests/src/com/vaadin/tests/components/textarea/TextAreaTest.java | package com.vaadin.tests.components.textarea;
import java.util.LinkedHashMap;
import com.vaadin.tests.components.abstractfield.AbstractTextFieldTest;
import com.vaadin.ui.TextArea;
public class TextAreaTest extends AbstractTextFieldTest<TextArea> {
private Command<TextArea, Boolean> wordwrapCommand = n... | package com.vaadin.tests.components.textarea;
import java.util.LinkedHashMap;
import com.vaadin.tests.components.abstractfield.AbstractTextFieldTest;
import com.vaadin.ui.TextArea;
public class TextAreaTest extends AbstractTextFieldTest<TextArea> {
private Command<TextArea, Boolean> wordwrapCommand = n... | Use 3 rows by default in test | Use 3 rows by default in test
svn changeset:16411/svn branch:6.5
| Java | apache-2.0 | udayinfy/vaadin,Darsstar/framework,kironapublic/vaadin,asashour/framework,oalles/vaadin,shahrzadmn/vaadin,magi42/vaadin,Peppe/vaadin,synes/vaadin,fireflyc/vaadin,kironapublic/vaadin,bmitc/vaadin,jdahlstrom/vaadin.react,oalles/vaadin,mittop/vaadin,oalles/vaadin,peterl1084/framework,asashour/framework,Legioth/vaadin,syne... |
e8243633f78de040cc22866d9d2ab16135549b57 | src/lib/morkim/mfw/usecase/SyncUseCase.java | src/lib/morkim/mfw/usecase/SyncUseCase.java | package lib.morkim.mfw.usecase;
import lib.morkim.mfw.app.AppContext;
public abstract class SyncUseCase extends BaseUseCase implements UseCaseStateListener {
public SyncUseCase(AppContext appContext) {
super(appContext);
}
@Override
public void execute(UseCaseRequest request) {
setRequest(request);
... | package lib.morkim.mfw.usecase;
import lib.morkim.mfw.app.AppContext;
public abstract class SyncUseCase extends BaseUseCase implements UseCaseStateListener {
public SyncUseCase(AppContext appContext) {
super(appContext);
}
@Override
public void execute(UseCaseRequest request) {
setRequest(request);
... | Call on progress update in sync use case | Call on progress update in sync use case | Java | mit | alkammar/morkim |
690a04bcb8d2adf727faf1aa23acd6540bcb0b0f | src/main/java/org/luxons/sevenwonders/game/cards/Card.java | src/main/java/org/luxons/sevenwonders/game/cards/Card.java | package org.luxons.sevenwonders.game.cards;
import org.luxons.sevenwonders.game.boards.Board;
import org.luxons.sevenwonders.game.effects.Effect;
public class Card {
private final String name;
private final Color color;
private final Requirements requirements;
private final Effect effect;
pub... | package org.luxons.sevenwonders.game.cards;
import java.util.List;
import org.luxons.sevenwonders.game.boards.Board;
import org.luxons.sevenwonders.game.effects.Effect;
public class Card {
private final String name;
private final Color color;
private final Requirements requirements;
private final... | Add multiple effects support for cards | Add multiple effects support for cards
| Java | mit | luxons/seven-wonders,luxons/seven-wonders,luxons/seven-wonders |
5bce92a4a77f4905326948744cd23a430a31d4b4 | pracler/src/main/java/com/icaynia/pracler/lockscreen/LockScreenService.java | pracler/src/main/java/com/icaynia/pracler/lockscreen/LockScreenService.java | package com.icaynia.pracler.lockscreen;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.IBinder;
/**
* Created by icaynia on 31/03/2017.
*/
public class LockScreenService exte... | package com.icaynia.pracler.lockscreen;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.IBinder;
import com.icaynia.pracler.Global;
/**
* Created by icaynia on 31/03/2017.
*/
... | Fix bugs lock screen service start lock screen activity intent when it's not playing | Fix bugs
lock screen service start lock screen activity intent when it's not playing
| Java | mit | icaynia/SoundKi,icaynia/pracler |
610a9245c9c222a341ce6071e30f2e18f558a59d | picasso/src/test/java/com/squareup/picasso/PicassoTestRunner.java | picasso/src/test/java/com/squareup/picasso/PicassoTestRunner.java | package com.squareup.picasso;
import java.io.File;
import org.junit.runners.model.InitializationError;
import org.robolectric.AndroidManifest;
import org.robolectric.RobolectricTestRunner;
public class PicassoTestRunner extends RobolectricTestRunner {
public PicassoTestRunner(Class<?> testClass) throws Initializati... | package com.squareup.picasso;
import org.junit.runners.model.InitializationError;
import org.robolectric.AndroidManifest;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.res.FsFile;
public class PicassoTestRunner extends RobolectricTestRunner {
public PicassoTestRunner(Class<?> testClass) throw... | Fix robolectric test runner override. | Fix robolectric test runner override.
| Java | apache-2.0 | ackimwilliams/picasso,NightlyNexus/picasso,fhchina/picasso,MaiMohamedMahmoud/picasso,riezkykenzie/picasso,hw-beijing/picasso,Shinelw/picasso,HossainKhademian/Picasso,zmywly8866/picasso,perrystreetsoftware/picasso,sowrabh/picasso,lixiaoyu/picasso,lypdemo/picasso,BinGoBinBin/picasso,Gary111/picasso,ruhaly/picasso,sahilk2... |
b0fbf6674124533347b31322d7f8017c41d2526d | src/main/java/io/github/likcoras/asuka/AuthManager.java | src/main/java/io/github/likcoras/asuka/AuthManager.java | package io.github.likcoras.asuka;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.pircbotx.User;
import org.pircbotx.UserLevel;
import com.google.common.base.Optional;
import io.github.likcoras.asuka.exception.ConfigException;
public class AuthManager {
private String ownerId;
priv... | package io.github.likcoras.asuka;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.pircbotx.User;
import org.pircbotx.UserLevel;
import com.google.common.base.Optional;
import io.github.likcoras.asuka.exception.ConfigException;
public class AuthManager {
private String ownerId;
priv... | Allow editing user levels by providing string id | Allow editing user levels by providing string id | Java | mit | likcoras/SSBot,likcoras/Asuka |
a1031eac97a7a28332c41a938d343bb2e9d3c4fc | dbapi/src/main/java/com/griddynamics/jagger/dbapi/fetcher/SummaryDbMetricDataFetcher.java | dbapi/src/main/java/com/griddynamics/jagger/dbapi/fetcher/SummaryDbMetricDataFetcher.java | package com.griddynamics.jagger.dbapi.fetcher;
import com.griddynamics.jagger.dbapi.util.ColorCodeGenerator;
import com.griddynamics.jagger.dbapi.dto.*;
import java.util.*;
public abstract class SummaryDbMetricDataFetcher extends DbMetricDataFetcher<MetricDto> {
protected PlotDatasetDto generatePlotDatasetDto(M... | package com.griddynamics.jagger.dbapi.fetcher;
import com.griddynamics.jagger.dbapi.util.ColorCodeGenerator;
import com.griddynamics.jagger.dbapi.dto.*;
import java.util.*;
public abstract class SummaryDbMetricDataFetcher extends DbMetricDataFetcher<MetricDto> {
protected PlotDatasetDto generatePlotDatasetDto(M... | Change new String() to "". | Change new String() to "". | Java | apache-2.0 | anton-antonenko/jagger,anton-antonenko/jagger,Nmishin/jagger,vladimir-bukhtoyarov/jagger,vladimir-bukhtoyarov/jagger8,vladimir-bukhtoyarov/jagger,Nmishin/jagger,vladimir-bukhtoyarov/jagger,griddynamics/jagger,vladimir-bukhtoyarov/jagger8,SokolAndrey/jagger,vladimir-bukhtoyarov/jagger8,SokolAndrey/jagger,SokolAndrey/jag... |
b01e225e2f5c23da84f6d7e454ff9c1956cad824 | VaadinatorExample/AddressbookExample/src/main/java/de/akquinet/engineering/vaadinator/example/address/model/Team.java | VaadinatorExample/AddressbookExample/src/main/java/de/akquinet/engineering/vaadinator/example/address/model/Team.java | package de.akquinet.engineering.vaadinator.example.address.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import de.akquinet.engineering.vaadinator.annotations.DisplayBean;
import de.akquinet.engineering.vaadinator... | package de.akquinet.engineering.vaadinator.example.address.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import de.akquinet.engineering.vaadinator.annotations.DisplayBean;
import de.akquinet.engineering.vaadinator... | Add content for team table | Add content for team table | Java | apache-2.0 | akquinet/vaadinator |
4c1a64b20caa1bbf1ab6215b1ee20ed3f2877bb3 | src/main/java/io/github/robwin/markup/builder/MarkupDocBuilders.java | src/main/java/io/github/robwin/markup/builder/MarkupDocBuilders.java | /*
*
* Copyright 2015 Robert Winkler
*
* 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 la... | /*
*
* Copyright 2015 Robert Winkler
*
* 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 la... | Create a builder instance from another builder instance, for easier composition | Create a builder instance from another builder instance, for easier composition
| Java | apache-2.0 | Swagger2Markup/markup-document-builder |
0757b56182e5d1e9d7efe9b83e5ca2fe7a1dd8c4 | edu.kit.ipd.sdq.vitruvius.framework.contracts/src/edu/kit/ipd/sdq/vitruvius/framework/contracts/interfaces/ChangePreparing.java | edu.kit.ipd.sdq.vitruvius.framework.contracts/src/edu/kit/ipd/sdq/vitruvius/framework/contracts/interfaces/ChangePreparing.java | package edu.kit.ipd.sdq.vitruvius.framework.contracts.interfaces;
import edu.kit.ipd.sdq.vitruvius.framework.contracts.datatypes.Blackboard;
public interface ChangePreparing {
void prepareAllChanges(Blackboard blackboard);
}
| package edu.kit.ipd.sdq.vitruvius.framework.contracts.interfaces;
import edu.kit.ipd.sdq.vitruvius.framework.contracts.datatypes.ProcessableChange;
import edu.kit.ipd.sdq.vitruvius.framework.contracts.datatypes.RecordedChange;
public interface ChangePreparing {
ProcessableChange prepareAllChanges(RecordedChange u... | Restructure change preparer to prepare recorded changes and return processable changes. | Restructure change preparer to prepare recorded changes and return processable changes.
| Java | epl-1.0 | vitruv-tools/Vitruv |
61a64802fe75f4e7a234dbd4e96f93dd9857716e | implementations/micrometer-registry-appoptics/src/test/java/io/micrometer/appoptics/AppOpticsMeterRegistryCompatibilityTest.java | implementations/micrometer-registry-appoptics/src/test/java/io/micrometer/appoptics/AppOpticsMeterRegistryCompatibilityTest.java | /**
* Copyright 2017 Pivotal Software, Inc.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicab... | /**
* Copyright 2017 Pivotal Software, Inc.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicab... | Use fake apiToken in AppOptics compatibility kit tests | Use fake apiToken in AppOptics compatibility kit tests
The apiToken is required and constructing the AppOpticsMeterRegistry will fail fast without it now.
| Java | apache-2.0 | micrometer-metrics/micrometer,micrometer-metrics/micrometer,micrometer-metrics/micrometer |
c8e3aa93eab3c6d62c97b8a9e834d3ec0b3130ba | xing-sync-app/src/main/java/com/gurkensalat/android/xingsync/api/MeCall.java | xing-sync-app/src/main/java/com/gurkensalat/android/xingsync/api/MeCall.java | package com.gurkensalat.android.xingsync.api;
import org.json.JSONArray;
import org.json.JSONException;
import android.util.Log;
import com.googlecode.androidannotations.annotations.EBean;
@EBean
public class MeCall // implements XingApiCall
{
private static final String TAG = "xingsync.MeCall";
public JSONArray... | package com.gurkensalat.android.xingsync.api;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.util.Log;
import com.googlecode.androidannotations.annotations.EBean;
@EBean
public class MeCall // implements XingApiCall
{
private static final String TAG = "xingsync... | Make the contract a JSONObject | Make the contract a JSONObject
| Java | apache-2.0 | hakan42/sync-for-xing |
aaec5ac4dd744b99cb75d4b7ccdb100d50d8fa8b | example-android/src/main/java/com/seatgeek/sixpack/android/SixpackModule.java | example-android/src/main/java/com/seatgeek/sixpack/android/SixpackModule.java | package com.seatgeek.sixpack.android;
import com.seatgeek.sixpack.Alternative;
import com.seatgeek.sixpack.Experiment;
import com.seatgeek.sixpack.Sixpack;
import com.seatgeek.sixpack.SixpackBuilder;
import com.seatgeek.sixpack.log.LogLevel;
import javax.inject.Named;
import javax.inject.Singleton;
import dagger.Mod... | package com.seatgeek.sixpack.android;
import com.seatgeek.sixpack.Alternative;
import com.seatgeek.sixpack.Experiment;
import com.seatgeek.sixpack.Sixpack;
import com.seatgeek.sixpack.SixpackBuilder;
import com.seatgeek.sixpack.log.LogLevel;
import javax.inject.Named;
import javax.inject.Singleton;
import dagger.Mod... | Fix compile error in android example app. | Fix compile error in android example app.
| Java | bsd-2-clause | seatgeek/sixpack-java,seatgeek/sixpack-java |
de2b4597b861704468c86789c73cd2b867e414b0 | src/main/java/kinetic/math/statistic/StandardDeviation.java | src/main/java/kinetic/math/statistic/StandardDeviation.java | /**
* Copyright (C) 2010 openecho
*
* 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 (C) 2010 openecho
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | Add population based divide option | Add population based divide option
| Java | apache-2.0 | openecho/Kinetic1-Java |
ef5d49f22513fbe76a5934e174bda16723322c92 | src/org/concord/framework/otrunk/view/OTLabbookManager.java | src/org/concord/framework/otrunk/view/OTLabbookManager.java | package org.concord.framework.otrunk.view;
import java.util.Vector;
import org.concord.framework.otrunk.OTChangeListener;
import org.concord.framework.otrunk.OTObject;
import org.concord.framework.otrunk.OTObjectService;
public interface OTLabbookManager
{
public void add(OTObject otObject);
public void add(OTOb... | package org.concord.framework.otrunk.view;
import java.util.Vector;
import org.concord.framework.otrunk.OTChangeListener;
import org.concord.framework.otrunk.OTObject;
import org.concord.framework.otrunk.OTObjectService;
public interface OTLabbookManager
{
/*
* This object will be added directly to an entry, so t... | Update methods on interface to allow adding reference objects | Update methods on interface to allow adding reference objects
git-svn-id: fdf63cc6b6871a635be2b727c8623e4c3a9a9ed7@15418 6e01202a-0783-4428-890a-84243c50cc2b
| Java | lgpl-2.1 | concord-consortium/framework |
a4cd05d3bbe9afbcb85df46365f32f38c2ccafe2 | src/test/java/edu/cwru/sicu_sms/util/EKGSerialPortTest.java | src/test/java/edu/cwru/sicu_sms/util/EKGSerialPortTest.java | /* *\
** SICU Stress Measurement System **
** Project P04 | C380 Team A **
** EBME 380: Biomedical Engineering Design Experience **
** ... | /* *\
** SICU Stress Measurement System **
** Project P04 | C380 Team A **
** EBME 380: Biomedical Engineering Design Experience **
** ... | Reimplement test method 'testInTerminal' to use serial port event listener | Reimplement test method 'testInTerminal' to use serial port event listener
| Java | apache-2.0 | SICU-Stress-Measurement-System/frontend-java |
1d7305c04113c4941ca57ffa024ed528c9163b3c | core/src/main/java/fi/vincit/multiusertest/util/TestMethodFilter.java | core/src/main/java/fi/vincit/multiusertest/util/TestMethodFilter.java | package fi.vincit.multiusertest.util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import org.junit.runners.model.FrameworkMethod;
import fi.vincit.multiusertest.annotation.TestUsers;
public class TestMethodFilter {
private UserIdentifier ... | package fi.vincit.multiusertest.util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import org.junit.runners.model.FrameworkMethod;
import fi.vincit.multiusertest.annotation.TestUsers;
public class TestMethodFilter {
private final UserIdent... | Add finals to TestMethidFilter properties | Add finals to TestMethidFilter properties
| Java | apache-2.0 | Vincit/multi-user-test-runner,Vincit/multi-user-test-runner,Vincit/multi-user-test-runner |
0b0c2558df17ef67e583a87b38e6c14f577dfc82 | src/main/java/com/stefanengineering/Application.java | src/main/java/com/stefanengineering/Application.java | package com.stefanengineering;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@Spring... | package com.stefanengineering;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Application {
private static final Logger logger = LoggerFactory.getLo... | Remove commented out init code | Remove commented out init code
| Java | mit | stefaneng/mariadb-springmvc-api,stefaneng/mariadb-springmvc-api,stefaneng/mariadb-springmvc-api |
47fc3843089cfd56d0ad301e3381612fd9c55d3f | src/main/java/hu/bme/mit/spaceship/TorpedoStore.java | src/main/java/hu/bme/mit/spaceship/TorpedoStore.java | package hu.bme.mit.spaceship;
import java.util.Random;
/**
* Class storing and managing the torpedoes of a ship
*/
public class TorpedoStore {
private int torpedos = 0;
private Random generator = new Random();
public TorpedoStore(int numberOfTorpedos){
this.torpedos = numberOfTorpedos;
}
public boole... | package hu.bme.mit.spaceship;
import java.util.Random;
/**
* Class storing and managing the torpedoes of a ship
*/
public class TorpedoStore {
private int torpedoCount = 0;
private Random generator = new Random();
public TorpedoStore(int numberOfTorpedos){
this.torpedoCount = numberOfTorpedos;
}
publ... | Rename variable torpedos to torpedoCount | Rename variable torpedos to torpedoCount
| Java | mit | FTSRG/ivt-lab |
740513cc6ee8a9fcb0f1aa08944d1152c6163099 | src/main/java/at/ac/tuwien/inso/entity/SemesterType.java | src/main/java/at/ac/tuwien/inso/entity/SemesterType.java | package at.ac.tuwien.inso.entity;
public enum SemesterType {
WinterSemester("WS"),
SummerSemester("SS");
private final String name;
SemesterType(String name) {
this.name = name;
}
@Override
public String toString() {
return name;
}
/**
* Reverse of toString... | package at.ac.tuwien.inso.entity;
public enum SemesterType {
WinterSemester("WS", 10, 1),
SummerSemester("SS", 3, 1);
/**
* Name of the semester: WS or SS
*/
private final String name;
/**
* Month the semester starts
*/
private final int startMonth;
/**
* Day i... | Add start dates to Semester Types | Add start dates to Semester Types
| Java | mit | university-information-system/uis,university-information-system/uis,university-information-system/uis,university-information-system/uis |
ab46b3a31f69f778cd1fc1312dee3db4d0aa23a0 | data-model-db/src/main/java/org/mousephenotype/cda/db/repositories/ParameterRepository.java | data-model-db/src/main/java/org/mousephenotype/cda/db/repositories/ParameterRepository.java | /*******************************************************************************
* Copyright © 2019 EMBL - European Bioinformatics Institute
* <p/>
* 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 Lic... | /*******************************************************************************
* Copyright © 2019 EMBL - European Bioinformatics Institute
* <p/>
* 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 Lic... | Add method to find first by parameter stable id | Add method to find first by parameter stable id
| Java | apache-2.0 | mpi2/PhenotypeData,mpi2/PhenotypeData,mpi2/PhenotypeData,mpi2/PhenotypeData,mpi2/PhenotypeData,mpi2/PhenotypeData |
a380fcbd1a2375b2d7dccd8f889b0fc447845989 | src/main/java/org/synyx/urlaubsverwaltung/security/SecurityRules.java | src/main/java/org/synyx/urlaubsverwaltung/security/SecurityRules.java | package org.synyx.urlaubsverwaltung.security;
/**
* Spring Security rules that can be used within {@link org.springframework.security.access.prepost.PreAuthorize}
* annotations.
*/
public final class SecurityRules {
public static final String IS_OFFICE = "hasAuthority('OFFICE')";
public static final String... | package org.synyx.urlaubsverwaltung.security;
/**
* Spring Security rules that can be used within {@link org.springframework.security.access.prepost.PreAuthorize}
* annotations.
*/
public final class SecurityRules {
public static final String IS_OFFICE = "hasAuthority('OFFICE')";
public static final String... | Remove not needed security rule bossOrDH | Remove not needed security rule bossOrDH
| Java | apache-2.0 | synyx/urlaubsverwaltung,synyx/urlaubsverwaltung,synyx/urlaubsverwaltung,synyx/urlaubsverwaltung |
c9a6e0847be2de61563d66d8d06c998abaf53954 | gerrit-server/src/main/java/com/google/gerrit/server/plugins/CleanupHandle.java | gerrit-server/src/main/java/com/google/gerrit/server/plugins/CleanupHandle.java | // Copyright (C) 2012 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | // Copyright (C) 2012 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | Print error message to log when plugin loader fails to close JAR file | Print error message to log when plugin loader fails to close JAR file
Change-Id: Ic113b7759e094bd18c8c68767d85a25044400cb4
| Java | apache-2.0 | anminhsu/gerrit,hdost/gerrit,GerritCodeReview/gerrit,joshuawilson/merrit,Seinlin/gerrit,thesamet/gerrit,quyixia/gerrit,Seinlin/gerrit,bootstraponline-archive/gerrit-mirror,Distrotech/gerrit,TonyChai24/test,quyixia/gerrit,Seinlin/gerrit,renchaorevee/gerrit,midnightradio/gerrit,gcoders/gerrit,hdost/gerrit,pkdevbox/gerrit... |
b4b4012190260ef1f0a7824e8fc2ea3b50f0bab9 | SeleniumGridExtras/src/main/java/com/groupon/seleniumgridextras/utilities/StreamUtility.java | SeleniumGridExtras/src/main/java/com/groupon/seleniumgridextras/utilities/StreamUtility.java | package com.groupon.seleniumgridextras.utilities;
import java.io.IOException;
import java.io.InputStream;
/**
* Created with IntelliJ IDEA. User: dima Date: 7/8/14 Time: 3:49 PM To change this template use
* File | Settings | File Templates.
*/
public class StreamUtility {
public static String inputStreamToStri... | package com.groupon.seleniumgridextras.utilities;
import org.apache.commons.io.IOUtils;
import java.io.IOException;
import java.io.InputStream;
public class StreamUtility {
public static String inputStreamToString(InputStream is) throws IOException {
return IOUtils.toString(is, "UTF-8");
}
}
| Use apache utility instead of the home baged thing | Use apache utility instead of the home baged thing
| Java | bsd-3-clause | jivesoftware/Selenium-Grid-Extras,rgonalo/Selenium-Grid-Extras,groupon/Selenium-Grid-Extras,jivesoftware/Selenium-Grid-Extras,rgonalo/Selenium-Grid-Extras,rgonalo/Selenium-Grid-Extras,andrewmkrug/Selenium-Grid-Extras,andrewmkrug/Selenium-Grid-Extras,smccarthy/Selenium-Grid-Extras,alexkogon/Selenium-Grid-Extras,rgonalo/... |
fa6eef5b544f0cdd1b697f9856b4390303239aa0 | pwd-service/src/main/java/org/pwd/web/websites/WebsitesController.java | pwd-service/src/main/java/org/pwd/web/websites/WebsitesController.java | package org.pwd.web.websites;
import org.pwd.domain.websites.Website;
import org.pwd.domain.websites.WebsiteRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.util.StringUtils;
impo... | package org.pwd.web.websites;
import org.pwd.domain.websites.Website;
import org.pwd.domain.websites.WebsiteRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.util.StringUtils;
impo... | Revert "Zastąpienie findAll generowaniem pustej listy" | Revert "Zastąpienie findAll generowaniem pustej listy"
This reverts commit b28c03003ff556dd56690ba848062505f951476d.
| Java | apache-2.0 | pwd-project/pwd,pwd-project/pwd,pwd-project/pwd |
9f71b4edc07e003a94192ee0c4a7ac6bbfd64679 | src/main/java/org/openmhealth/dsu/repository/UserRepository.java | src/main/java/org/openmhealth/dsu/repository/UserRepository.java | /*
* Copyright 2014 Open mHealth
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2014 Open mHealth
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Add a delete method to the user repository for testing purposes. | Add a delete method to the user repository for testing purposes.
| Java | apache-2.0 | openmhealth/omh-dsu-ri,smalldatalab/omh-dsu,openmhealth/omh-dsu-ri,smalldatalab/omh-dsu,smalldatalab/omh-dsu,smalldatalab/omh-dsu |
dd60e762840a8e8647087e36b5d3ecd3eedf074d | src/protocolsupport/protocol/core/initial/ProtocolUtils.java | src/protocolsupport/protocol/core/initial/ProtocolUtils.java | package protocolsupport.protocol.core.initial;
import io.netty.buffer.ByteBuf;
import protocolsupport.api.ProtocolVersion;
import protocolsupport.utils.netty.ChannelUtils;
public class ProtocolUtils {
protected static ProtocolVersion get16PingVersion(int protocolId) {
switch (protocolId) {
case 78: {
retur... | package protocolsupport.protocol.core.initial;
import io.netty.buffer.ByteBuf;
import io.netty.handler.codec.DecoderException;
import protocolsupport.api.ProtocolVersion;
import protocolsupport.utils.netty.ChannelUtils;
public class ProtocolUtils {
protected static ProtocolVersion get16PingVersion(int protocolId) {... | Throw exception if packet id is wrong | Throw exception if packet id is wrong | Java | agpl-3.0 | ridalarry/ProtocolSupport,ProtocolSupport/ProtocolSupport |
87e257e37f1e5625d878bbcbb78ed25741c86209 | java/client/src/org/openqa/selenium/lift/TestContext.java | java/client/src/org/openqa/selenium/lift/TestContext.java | /*
Copyright 2007-2009 WebDriver committers
Copyright 2007-2009 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appli... | /*
Copyright 2007-2009 WebDriver committers
Copyright 2007-2009 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appli... | Remove unnecessary modifiers and cleanup whitespace. | JasonLeyba: Remove unnecessary modifiers and cleanup whitespace.
git-svn-id: aa1aa1384423cb28c2b1e29129bb3a91de1d9196@12481 07704840-8298-11de-bf8c-fd130f914ac9
| Java | apache-2.0 | jmt4/Selenium2,jmt4/Selenium2,yumingjuan/selenium,jmt4/Selenium2,yumingjuan/selenium,yumingjuan/selenium,yumingjuan/selenium,jmt4/Selenium2,jmt4/Selenium2,jmt4/Selenium2,yumingjuan/selenium,yumingjuan/selenium,yumingjuan/selenium,jmt4/Selenium2,jmt4/Selenium2,jmt4/Selenium2,yumingjuan/selenium,yumingjuan/selenium |
0aa102b0487f2b76ad1c2caba0dc06a63579be3e | common/src/main/java/org/conscrypt/ct/SerializationException.java | common/src/main/java/org/conscrypt/ct/SerializationException.java | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Add a serialization UID to exception | Add a serialization UID to exception
In case someone needs to serialize this CT exception.
| Java | apache-2.0 | google/conscrypt,google/conscrypt,google/conscrypt,google/conscrypt,google/conscrypt,google/conscrypt |
0debe58e18006abac16837d50922e98503284a00 | src/main/java/com/sandjelkovic/dispatchd/api/dto/RelationDto.java | src/main/java/com/sandjelkovic/dispatchd/api/dto/RelationDto.java | package com.sandjelkovic.dispatchd.api.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.RequiredArgsConstructor;
/**
* Created by stefan on 21.1.17..
*/
@Data
@RequiredArgsConstructor
@AllArgsConstructor
public class RelationDto {
private Long id;
private Integer order;
public RelationD... | package com.sandjelkovic.dispatchd.api.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.RequiredArgsConstructor;
/**
* Created by stefan on 21.1.17..
*/
@Data
@RequiredArgsConstructor
@AllArgsConstructor
public class RelationDto {
private Long targetId;
private Long sourceId;
private int... | Insert source id in Relation | Insert source id in Relation
| Java | apache-2.0 | sandjelkovic/dispatchd,sandjelkovic/dispatchd |
dc0cbb74a86e5781d62c7d94e35800ba3fc252c9 | MCU-EndUser/src/org/mcupdater/translate/Languages.java | MCU-EndUser/src/org/mcupdater/translate/Languages.java | package org.mcupdater.translate;
public enum Languages {
en_US(new USEnglish());
private TranslateProxy proxy;
Languages(TranslateProxy proxy){
this.proxy = proxy;
}
public TranslateProxy getProxy() {
return this.proxy;
}
public static String getLocale() {
return System.getProperty("user.language")... | package org.mcupdater.translate;
public enum Languages {
en_US(new USEnglish()),
en_GB(en_US.getProxy()),
en_CA(en_US.getProxy()),
en_AU(en_US.getProxy()),
;
private TranslateProxy proxy;
Languages(TranslateProxy proxy){
this.proxy = proxy;
}
public TranslateProxy getProxy() {
return this.proxy;
}
... | Add additional English locales to demonstrate translation inheritance. | Add additional English locales to demonstrate translation inheritance. | Java | apache-2.0 | MCUpdater/MCUpdater,MCUpdater/MCUpdater |
72ce3294d08b704f4dd4d0c8b5daada43cbbda15 | main/src/cgeo/geocaching/models/TrackableLog.java | main/src/cgeo/geocaching/models/TrackableLog.java | package cgeo.geocaching.models;
import cgeo.geocaching.connector.trackable.TrackableBrand;
import cgeo.geocaching.enumerations.LogTypeTrackable;
import org.apache.commons.lang3.StringUtils;
public final class TrackableLog {
public TrackableLog(final String geocode, final String trackCode, final String name, fina... | package cgeo.geocaching.models;
import cgeo.geocaching.connector.trackable.TrackableBrand;
import cgeo.geocaching.enumerations.LogTypeTrackable;
import org.apache.commons.lang3.StringUtils;
public final class TrackableLog {
public final int ctl;
public final int id;
public final String geocode;
publi... | Fix codacy: Fields should be declared at the top of the class | Fix codacy: Fields should be declared at the top of the class
| Java | apache-2.0 | Bananeweizen/cgeo,tobiasge/cgeo,kumy/cgeo,pstorch/cgeo,matej116/cgeo,S-Bartfast/cgeo,rsudev/c-geo-opensource,rsudev/c-geo-opensource,cgeo/cgeo,superspindel/cgeo,cgeo/cgeo,matej116/cgeo,kumy/cgeo,superspindel/cgeo,S-Bartfast/cgeo,Bananeweizen/cgeo,mucek4/cgeo,pstorch/cgeo,auricgoldfinger/cgeo,auricgoldfinger/cgeo,mucek4... |
777ca5e27a3754f154fe31529b3592878e552efd | test/uk/org/ponder/rsf/test/sitemap/TestSiteMap.java | test/uk/org/ponder/rsf/test/sitemap/TestSiteMap.java | /*
* Created on 11-Jan-2006
*/
package uk.org.ponder.rsf.test.sitemap;
import java.util.HashMap;
import uk.org.ponder.rsf.bare.junit.PlainRSFTests;
import uk.org.ponder.rsf.viewstate.EntityCentredViewParameters;
import uk.org.ponder.rsf.viewstate.support.BasicViewParametersParser;
public class TestSiteM... | /*
* Created on 11-Jan-2006
*/
package uk.org.ponder.rsf.test.sitemap;
import java.util.HashMap;
import uk.org.ponder.rsf.bare.junit.PlainRSFTests;
import uk.org.ponder.rsf.viewstate.EntityCentredViewParameters;
import uk.org.ponder.rsf.viewstate.support.BasicViewParametersParser;
public class TestSiteM... | Fix for loading SiteMap entry on Spring 2.x | Fix for loading SiteMap entry on Spring 2.x
| Java | bsd-3-clause | axxter99/RSFUtil,axxter99/RSFUtil,rsf/RSFUtil,rsf/RSFUtil |
9f626de2e7403a4f8c20d4a50be0e87a3ade443e | src/main/java/org/jenkinsci/plugins/authorizeproject/GlobalQueueItemAuthenticator.java | src/main/java/org/jenkinsci/plugins/authorizeproject/GlobalQueueItemAuthenticator.java | package org.jenkinsci.plugins.authorizeproject;
import hudson.Extension;
import hudson.model.Job;
import hudson.model.Queue;
import jenkins.security.QueueItemAuthenticator;
import jenkins.security.QueueItemAuthenticatorDescriptor;
import org.acegisecurity.Authentication;
import org.jenkinsci.plugins.authorizeproject.s... | package org.jenkinsci.plugins.authorizeproject;
import hudson.Extension;
import hudson.model.Job;
import hudson.model.Queue;
import jenkins.security.QueueItemAuthenticator;
import jenkins.security.QueueItemAuthenticatorDescriptor;
import org.acegisecurity.Authentication;
import org.jenkinsci.plugins.authorizeproject.s... | Fix form binding and change default to anonymous | [JENKINS-30574] Fix form binding and change default to anonymous
| Java | mit | ikedam/authorize-project,jenkinsci/authorize-project-plugin,ikedam/authorize-project,jenkinsci/authorize-project-plugin,jenkinsci/authorize-project-plugin,ikedam/authorize-project |
830a9b0111ba612109b204ce1b414b11b4946254 | src/main/java/com/github/pedrovgs/problem69/BitsToTransform.java | src/main/java/com/github/pedrovgs/problem69/BitsToTransform.java | /*
* Copyright (C) 2014 Pedro Vicente Gómez Sánchez.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | /*
* Copyright (C) 2014 Pedro Vicente Gómez Sánchez.
*
* 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 ... | Add solution to problem 69 | Add solution to problem 69
| Java | apache-2.0 | sridhar-newsdistill/Algorithms,mrgenco/Algorithms-1,Arkar-Aung/Algorithms,ajinkyakolhe112/Algorithms,chengjinqian/Algorithms,007slm/Algorithms,Ariloum/Algorithms,VeskoI/Algorithms,pedrovgs/Algorithms,JeffreyWei/Algorithms,inexistence/Algorithms,zmywly8866/Algorithms,ArlenLiu/Algorithms,zhdh2008/Algorithms,AppScientist/... |
4e94bbe0ef884f619f8611d1cbfc4931c414a9e0 | java/client/test/com/thoughtworks/selenium/thirdparty/YahooHttpsTest.java | java/client/test/com/thoughtworks/selenium/thirdparty/YahooHttpsTest.java | /*
Copyright 2012 Selenium committers
Copyright 2012 Software Freedom Conservancy
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 2012 Selenium committers
Copyright 2012 Software Freedom Conservancy
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... | Convert the https test that we never run to use junit. | SimonStewart: Convert the https test that we never run to use junit.
r17194
| Java | apache-2.0 | chrsmithdemos/selenium,sebady/selenium,Tom-Trumper/selenium,Jarob22/selenium,lrowe/selenium,stupidnetizen/selenium,dandv/selenium,pulkitsinghal/selenium,Herst/selenium,compstak/selenium,lukeis/selenium,tkurnosova/selenium,actmd/selenium,zenefits/selenium,p0deje/selenium,vinay-qa/vinayit-android-server-apk,Sravyaksr/sel... |
3c5bd3cedd3d5043725625b3f5b180c43eb9e5b3 | src/main/java/com/gmail/nossr50/runnables/MobHealthDisplayUpdaterTask.java | src/main/java/com/gmail/nossr50/runnables/MobHealthDisplayUpdaterTask.java | package com.gmail.nossr50.runnables;
import org.bukkit.entity.LivingEntity;
import org.bukkit.scheduler.BukkitRunnable;
import com.gmail.nossr50.mcMMO;
public class MobHealthDisplayUpdaterTask extends BukkitRunnable {
private LivingEntity target;
private String oldName;
private boolean oldNameVisible;
... | package com.gmail.nossr50.runnables;
import org.bukkit.entity.LivingEntity;
import org.bukkit.scheduler.BukkitRunnable;
import com.gmail.nossr50.mcMMO;
public class MobHealthDisplayUpdaterTask extends BukkitRunnable {
private LivingEntity target;
private String oldName;
private boolean oldNameVisible;
... | Fix a NPE in MobHealthDisplayUpdateTask | Fix a NPE in MobHealthDisplayUpdateTask
Band aid for broken isValid() function.
Fixes #1396
| Java | agpl-3.0 | jhonMalcom79/mcMMO_pers,isokissa3/mcMMO,virustotalop/mcMMO,EvilOlaf/mcMMO,Maximvdw/mcMMO |
bfecbe84cdd975c90e9d088d6b76d199af7694f7 | org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commit/OpenCommitAction.java | org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commit/OpenCommitAction.java | /*******************************************************************************
* Copyright (c) 2011 GitHub Inc.
* 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
... | /*******************************************************************************
* Copyright (c) 2011 GitHub Inc.
* 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
... | Add check for null/empty results in commit selection dialog. | Add check for null/empty results in commit selection dialog.
Bug: 353151
Change-Id: Ia3ca7764b4d7dde41da6f9219ff43d322c9f4ab5
Signed-off-by: Kevin Sawicki <ffb4761cba839470133bee36aeb139f58d7dbaa9@github.com>
| Java | epl-1.0 | collaborative-modeling/egit,chalstrick/egit,paulvi/egit,collaborative-modeling/egit,blizzy78/egit,paulvi/egit,mdoninger/egit,SmithAndr/egit,wdliu/egit,SmithAndr/egit,wdliu/egit |
9f9edfac2b97b92156c8212cb886b9bd3c6547ad | src/com/vectrace/MercurialEclipse/synchronize/MercurialResourceVariant.java | src/com/vectrace/MercurialEclipse/synchronize/MercurialResourceVariant.java | /*******************************************************************************
* Copyright (c) 2005-2008 VecTrace (Zingo Andersen) 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 distrib... | /*******************************************************************************
* Copyright (c) 2005-2008 VecTrace (Zingo Andersen) 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 distrib... | Enable right content types (based on file types) in compare editor opened from Synchronization view | Enable right content types (based on file types) in compare editor opened from Synchronization view
| Java | epl-1.0 | boa0332/mercurialeclipse,naidu/mercurialeclipse,leinier/mercurialeclipse,tectronics/mercurialeclipse |
28e3e0614730ff3134956bde3751bf420ad16977 | src/uk/ac/ed/inf/Metabolic/ndomAPI/IModel.java | src/uk/ac/ed/inf/Metabolic/ndomAPI/IModel.java | package uk.ac.ed.inf.Metabolic.ndomAPI;
import java.util.List;
public interface IModel extends IModelObject {
public List<ICompartment> getCompartmentList();
public List<IReaction> getReactionList();
}
| package uk.ac.ed.inf.Metabolic.ndomAPI;
import java.util.List;
public interface IModel extends IModelObject {
public List<ICompartment> getCompartmentList();
public List<IReaction> getReactionList();
//Defined properties dictionaries
public List<String> getECnumberList();
public List<String> getSmilesList()... | Add getters, based upon properties values | Add getters, based upon properties values
| Java | apache-2.0 | stumoodie/MetabolicNotationSubsystem,stumoodie/MetabolicNotationSubsystem |
8750766766c9fac08254fc627858c999477e8c56 | core/cas-server-core-configuration/src/main/java/org/apereo/cas/configuration/model/core/authentication/AuthenticationExceptionsProperties.java | core/cas-server-core-configuration/src/main/java/org/apereo/cas/configuration/model/core/authentication/AuthenticationExceptionsProperties.java | package org.apereo.cas.configuration.model.core.authentication;
import java.util.ArrayList;
import java.util.List;
/**
* This is {@link AuthenticationExceptionsProperties}.
*
* @author Misagh Moayyed
* @since 5.0.0
*/
public class AuthenticationExceptionsProperties {
private List exceptions = new ArrayList<... | package org.apereo.cas.configuration.model.core.authentication;
import java.util.ArrayList;
import java.util.List;
/**
* This is {@link AuthenticationExceptionsProperties}.
*
* @author Misagh Moayyed
* @since 5.0.0
*/
public class AuthenticationExceptionsProperties {
private List<Class<? extends Exception>>... | Fix generic type enforcement for exceptions | Fix generic type enforcement for exceptions
| Java | apache-2.0 | prigaux/cas,petracvv/cas,rrenomeron/cas,rrenomeron/cas,dodok1/cas,GIP-RECIA/cas,dodok1/cas,robertoschwald/cas,rrenomeron/cas,prigaux/cas,Unicon/cas,robertoschwald/cas,frett/cas,pmarasse/cas,prigaux/cas,Unicon/cas,Unicon/cas,GIP-RECIA/cas,tduehr/cas,petracvv/cas,rrenomeron/cas,robertoschwald/cas,William-Hill-Online/cas,... |
f2e3ae3e82b622500a6c85ba7aa284babb7ba22a | microsoft-azure-api/src/test/java/com/microsoft/azure/services/blob/IntegrationTestBase.java | microsoft-azure-api/src/test/java/com/microsoft/azure/services/blob/IntegrationTestBase.java | package com.microsoft.azure.services.blob;
import org.junit.Before;
import org.junit.BeforeClass;
import com.microsoft.azure.configuration.Configuration;
public abstract class IntegrationTestBase {
protected Configuration createConfiguration() {
Configuration config = new Configuration();
config.... | package com.microsoft.azure.services.blob;
import java.util.Map;
import org.junit.Before;
import org.junit.BeforeClass;
import com.microsoft.azure.configuration.Configuration;
public abstract class IntegrationTestBase {
protected Configuration createConfiguration() {
Configuration config = new Configura... | Support configuring integration tests with env. variables | Support configuring integration tests with env. variables
| Java | mit | manikandan-palaniappan/azure-sdk-for-java,selvasingh/azure-sdk-for-java,hovsepm/azure-sdk-for-java,navalev/azure-sdk-for-java,jianghaolu/azure-sdk-for-java,oaastest/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,selvasingh/azure-sdk-for-java,southworkscom/azure-sdk-for-java,herveyw/azure-sdk-for-j... |
f777ccc59fe8f6f05107b7d53a5bc42e51891daf | src/test/java/prope/executables/AnalysisWorkflowTests.java | src/test/java/prope/executables/AnalysisWorkflowTests.java | package prope.executables;
import java.nio.file.Paths;
import org.junit.Test;
public class AnalysisWorkflowTests {
@Test(expected = IllegalArgumentException.class)
public void testNonExistingDirectory() {
@SuppressWarnings("unused")
AnalysisWorkflow sut = new AnalysisWorkflow(Paths.get("foobar"),
Analysis... | package prope.executables;
import static org.junit.Assert.assertEquals;
import java.nio.file.Paths;
import java.util.List;
import org.junit.Test;
import prope.reporting.ReportEntry;
public class AnalysisWorkflowTests {
private AnalysisWorkflow sut;
private final String deployabilityResourcesPath = "src/test/... | Add integration test for deployability analysis | Add integration test for deployability analysis
| Java | mit | uniba-dsg/prope,uniba-dsg/prope,uniba-dsg/prope |
70f277a856a6c44cc0594360d41f4d512a4685a8 | motech-pillreminder-api/src/main/java/org/motechproject/server/pillreminder/util/Util.java | motech-pillreminder-api/src/main/java/org/motechproject/server/pillreminder/util/Util.java | package org.motechproject.server.pillreminder.util;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class Util {
public static DateTime currentDateTime() {
return new DateTime(DateTimeZone.UTC);... | package org.motechproject.server.pillreminder.util;
import org.joda.time.DateTime;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class Util {
public static DateTime currentDateTime() {
return new DateTime();
}
public static Date newDate(int year, in... | Remove UTC from time util<Manohar/Shruthi> | Remove UTC from time util<Manohar/Shruthi>
| Java | bsd-3-clause | frankhuster/modules,ScottKimball/modules,tstalka/modules,sebbrudzinski/modules,tstalka/modules,pmuchowski/modules,pgesek/modules,ScottKimball/modules,pmuchowski/modules,atish160384/modules,pmuchowski/modules,justin-hayes/modules,ngraczewski/modules,mkwiatkowskisoldevelo/modules,1stmateusz/modules,sebbrudzinski/modules,... |
f95d9478a0e71f1e12768d4a0b1b592df71b83f1 | dspace/modules/dryad-rest-webapp/src/main/java/org/datadryad/rest/responses/ResponseFactory.java | dspace/modules/dryad-rest-webapp/src/main/java/org/datadryad/rest/responses/ResponseFactory.java | /*
*/
package org.datadryad.rest.responses;
import javax.ws.rs.core.UriInfo;
/**
*
* @author Dan Leehr <dan.leehr@nescent.org>
*/
public class ResponseFactory {
public static ErrorsResponse makeError(String detail, String title, UriInfo uriInfo, Integer statusCode) {
ErrorObject error = new ErrorObjec... | /*
*/
package org.datadryad.rest.responses;
import javax.ws.rs.core.UriInfo;
/**
*
* @author Dan Leehr <dan.leehr@nescent.org>
*/
public class ResponseFactory {
public static ErrorsResponse makeError(String detail, String title, UriInfo uriInfo, Integer statusCode) {
ErrorObject error = new ErrorObjec... | Include absolute paths in error | Include absolute paths in error
| Java | bsd-3-clause | rnathanday/dryad-repo,jamie-dryad/dryad-repo,rnathanday/dryad-repo,ojacobson/dryad-repo,jimallman/dryad-repo,jimallman/dryad-repo,jamie-dryad/dryad-repo,ojacobson/dryad-repo,ojacobson/dryad-repo,ojacobson/dryad-repo,jimallman/dryad-repo,jimallman/dryad-repo,ojacobson/dryad-repo,rnathanday/dryad-repo,jimallman/dryad-rep... |
e33438504f1d546c9248801596d3996f93a46ede | ethereumj-core/src/test/java/org/ethereum/jsontestsuite/GitHubBasicTest.java | ethereumj-core/src/test/java/org/ethereum/jsontestsuite/GitHubBasicTest.java | package org.ethereum.jsontestsuite;
import org.ethereum.core.BlockHeader;
import org.json.simple.parser.ParseException;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import static or... | package org.ethereum.jsontestsuite;
import org.ethereum.config.SystemProperties;
import org.ethereum.core.BlockHeader;
import org.json.simple.parser.ParseException;
import org.junit.Before;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
import org.slf4j.Logger;
import o... | Fix difficulty test to run correctly via Gradle | Fix difficulty test to run correctly via Gradle
| Java | mit | caxqueiroz/ethereumj,loxal/ethereumj,loxal/FreeEthereum,loxal/FreeEthereum,gerbrand/ethereumj,chengtalent/ethereumj,loxal/FreeEthereum |
f14be911678d9e6488f800593bf66c32ae0197c6 | utils/src/com/cloud/utils/exception/ExceptionUtil.java | utils/src/com/cloud/utils/exception/ExceptionUtil.java | /**
* Copyright (C) 2010 Cloud.com, Inc. All rights reserved.
*
* This software is licensed under the GNU General Public License v3 or later.
*
* It is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, e... | /**
* Copyright (C) 2010 Cloud.com, Inc. All rights reserved.
*
* This software is licensed under the GNU General Public License v3 or later.
*
* It is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, e... | Apply changes in FOSS because of prioprietary merges | Apply changes in FOSS because of prioprietary merges
| Java | apache-2.0 | jcshen007/cloudstack,DaanHoogland/cloudstack,wido/cloudstack,resmo/cloudstack,argv0/cloudstack,resmo/cloudstack,GabrielBrascher/cloudstack,resmo/cloudstack,wido/cloudstack,cinderella/incubator-cloudstack,argv0/cloudstack,argv0/cloudstack,GabrielBrascher/cloudstack,GabrielBrascher/cloudstack,resmo/cloudstack,DaanHooglan... |
1c2a0232ac34d8271284297adb16a0ee81a98438 | src/globals/WMath.java | src/globals/WMath.java | package globals;
import util.KawaWrap;
public class WMath extends Globals {
/**
* Add methods related to (random n)
*
* @param kawa The interpreter to add them to.
* @throws Throwable If anything breaks while adding them.
*/
@Override
public void addMethods(KawaWrap kawa) throws Throwable {
... | package globals;
import gnu.mapping.Procedure1;
import gnu.math.IntNum;
import util.KawaWrap;
public class WMath extends Globals {
/**
* Add methods related to (random n)
*
* @param kawa The interpreter to add them to.
* @throws Throwable If anything breaks while adding them.
*/
@Override
... | Fix for even? and odd? | Fix for even? and odd?
git-svn-id: 4d643f7da126170ce1f05d01cf12027d96868c5b@200 07aa23ea-853d-4461-9545-5093946fcb7a
| Java | bsd-3-clause | jpverkamp/wombat-ide,jpverkamp/wombat-ide |
1e3ee71d6d08d1036425a02b5f0be86ac5c44d52 | src/main/java/com/vmware/vim25/mo/samples/SampleUtil.java | src/main/java/com/vmware/vim25/mo/samples/SampleUtil.java | package com.vmware.vim25.mo.samples;
import java.net.MalformedURLException;
import java.net.URL;
import java.rmi.RemoteException;
import com.vmware.vim25.mo.ServiceInstance;
public class SampleUtil {
public static ServiceInstance createServiceInstance() throws RemoteException, MalformedURLException {
return new ... | package com.vmware.vim25.mo.samples;
import java.net.MalformedURLException;
import java.net.URL;
import java.rmi.RemoteException;
import com.vmware.vim25.mo.ServiceInstance;
public class SampleUtil {
public static ServiceInstance createServiceInstance() throws RemoteException, MalformedURLException {
ServiceIn... | Set locale for the content of all API result | Set locale for the content of all API result
| Java | bsd-3-clause | vmware-serengeti/yavijava-samples,yavijava/yavijava-samples,yavijava/yavijava-samples,vmware-serengeti/yavijava-samples |
f1e8b37fabcccf135159ed995a6b9fb23d5cd24a | code/iaas/healthcheck/src/main/java/io/cattle/iaas/healthcheck/process/InstanceHealthCheckUpdate.java | code/iaas/healthcheck/src/main/java/io/cattle/iaas/healthcheck/process/InstanceHealthCheckUpdate.java | package io.cattle.iaas.healthcheck.process;
import static io.cattle.platform.core.model.tables.InstanceTable.*;
import io.cattle.platform.core.constants.HealthcheckConstants;
import io.cattle.platform.engine.handler.HandlerResult;
import io.cattle.platform.engine.handler.ProcessPostListener;
import io.cattle.platform... | package io.cattle.iaas.healthcheck.process;
import static io.cattle.platform.core.model.tables.InstanceTable.*;
import io.cattle.platform.core.constants.HealthcheckConstants;
import io.cattle.platform.engine.handler.HandlerResult;
import io.cattle.platform.engine.handler.ProcessPostListener;
import io.cattle.platform... | Fix idepotency issues in healthcheck update | Fix idepotency issues in healthcheck update
| Java | apache-2.0 | cloudnautique/cattle,cjellick/cattle,vincent99/cattle,rancher/cattle,rancherio/cattle,cjellick/cattle,rancherio/cattle,cloudnautique/cattle,vincent99/cattle,Cerfoglg/cattle,Cerfoglg/cattle,rancher/cattle,Cerfoglg/cattle,cloudnautique/cattle,vincent99/cattle,cjellick/cattle,cjellick/cattle,rancherio/cattle,cloudnautique... |
130e675e9aead33f8bd67c72df5bb8f5ae55d2f2 | src/main/java/com/kurento/kmf/media/MediaObject.java | src/main/java/com/kurento/kmf/media/MediaObject.java | package com.kurento.kmf.media;
import com.kurento.kmf.media.events.ErrorEvent;
import com.kurento.kmf.media.events.MediaEventListener;
import com.kurento.tool.rom.RemoteClass;
@RemoteClass
public interface MediaObject {
MediaPipeline getMediaPipeline();
void getMediaPipeline(Continuation<MediaPipeline> cont);
M... | package com.kurento.kmf.media;
import com.kurento.kmf.media.events.ErrorEvent;
import com.kurento.kmf.media.events.MediaEventListener;
import com.kurento.tool.rom.RemoteClass;
@RemoteClass
public interface MediaObject {
MediaPipeline getMediaPipeline();
void getMediaPipeline(Continuation<MediaPipeline> cont);
M... | Add generated documentation for release methods | Add generated documentation for release methods
Change-Id: Id29eacefc9ba8e0a38840b8c99fede7cb3055c02
| Java | lgpl-2.1 | TribeMedia/kurento-java,TribeMedia/kurento-java,KurentoLegacy/kurento-media-framework,bawn92/kurento-java,Kurento/kurento-java,shelsonjava/kurento-java,bawn92/kurento-java,EugenioFidel/kurento-java,KurentoLegacy/kmf-media-api,bawn92/kurento-java,Kurento/kurento-java,EugenioFidel/kurento-java,shelsonjava/kurento-java,Tr... |
19ce5e58c639c6502126a94c61ec104abee1449d | src/uk/org/ponder/rsf/uitype/BooleanUIType.java | src/uk/org/ponder/rsf/uitype/BooleanUIType.java | /*
* Created on Nov 11, 2005
*/
package uk.org.ponder.rsf.uitype;
public class BooleanUIType implements UIType {
public static final BooleanUIType instance = new BooleanUIType();
public Boolean PLACEHOLDER = new Boolean(false);
public Object getPlaceholder() {
return PLACEHOLDER;
}
public St... | /*
* Created on Nov 11, 2005
*/
package uk.org.ponder.rsf.uitype;
public class BooleanUIType implements UIType {
public static final BooleanUIType instance = new BooleanUIType();
public Boolean PLACEHOLDER = Boolean.FALSE;
public Object getPlaceholder() {
return PLACEHOLDER;
}
public String ... | Use constant to generate Boolean | Use constant to generate Boolean
| Java | bsd-3-clause | rsf/RSFUtil,rsf/RSFUtil,axxter99/RSFUtil,axxter99/RSFUtil |
65c0a3967235bd31ce41724b56bd9b006e55dcb0 | jni/Mapper/InstanceEventListener.java | jni/Mapper/InstanceEventListener.java |
package Mapper;
public class InstanceEventListener {
/*! The set of possible actions on an instance, used to
* register callbacks to inform them of what is happening. */
public final int IN_NEW = 0x01;
public final int IN_UPSTREAM_RELEASE = 0x02;
public final int IN_DOWNSTREAM_RELEASE = 0x04;
... |
package Mapper;
public class InstanceEventListener {
/*! The set of possible actions on an instance, used to
* register callbacks to inform them of what is happening. */
public static final int IN_NEW = 0x01;
public static final int IN_UPSTREAM_RELEASE = 0x02;
public static final int IN_DOWNSTRE... | Declare instance event type flags static. | JNI: Declare instance event type flags static.
| Java | lgpl-2.1 | libmapper/libmapper,malloch/libmapper,davidhernon/libmapper-admin2,malloch/libmapper,johnty/libmapper,libmapper/libmapper,radarsat1/libmapper,radarsat1/libmapper,davidhernon/libmapper-admin2,libmapper/libmapper,davidhernon/libmapper-admin2,malloch/libmapper,malloch/libmapper,johnty/libmapper,malloch/libmapper,davidhern... |
ebf68a7176c2301123bbac9ebe7fa35b879a40e3 | src/main/java/com/zaxxer/hikari/proxy/IHikariConnectionProxy.java | src/main/java/com/zaxxer/hikari/proxy/IHikariConnectionProxy.java | /*
* Copyright (C) 2013 Brett Wooldridge
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | /*
* Copyright (C) 2013 Brett Wooldridge
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Remove unused methods from signature | Remove unused methods from signature
| Java | apache-2.0 | yaojuncn/HikariCP,bobwenx/HikariCP,ams2990/HikariCP,schlosna/HikariCP,guai/HikariCP,junlapong/HikariCP,hito-asa/HikariCP,mwegrz/HikariCP,udayshnk/HikariCP,squidsolutions/HikariCP,brettwooldridge/HikariCP,newsky/HikariCP,sridhar-newsdistill/HikariCP,guai/HikariCP,barrysun/HikariCP,ligzy/HikariCP,atschx/HikariCP,openbouq... |
7cf25e346930f4985d2e969b1eeec986ce31a10c | src/net/happygiraffe/jslint/Main.java | src/net/happygiraffe/jslint/Main.java | package net.happygiraffe.jslint;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.List;
/**
* A command line interface to {@link JSLint}.
*
* @author dom
* @version $Id$
*/
public c... | package net.happygiraffe.jslint;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.List;
/**
* A command line interface to {@link JSLint}.
*
* @author dom
* @version $Id$
*/
public c... | Make into a real object instead of lots of static methods. | Make into a real object instead of lots of static methods.
| Java | bsd-2-clause | rsingla/jslint4java,mmayorivera/jslint4java,llwanghong/jslint4java,nikgoodley-ibboost/jslint4java,mmayorivera/jslint4java,llwanghong/jslint4java,rsingla/jslint4java,mmayorivera/jslint4java,mmayorivera/jslint4java,llwanghong/jslint4java,rsingla/jslint4java,rsingla/jslint4java,llwanghong/jslint4java,rsingla/jslint4java,m... |
2f9dfccb595a68609405ba822f346e41285c9458 | uitest/src/com/vaadin/tests/integration/AbstractServletIntegrationTest.java | uitest/src/com/vaadin/tests/integration/AbstractServletIntegrationTest.java | /*
* Copyright 2000-2014 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | /*
* Copyright 2000-2014 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | Make server tests work again | Make server tests work again
Change-Id: Ie0097cef628ef013579067443d4a52be049cf1da
| Java | apache-2.0 | shahrzadmn/vaadin,sitexa/vaadin,sitexa/vaadin,synes/vaadin,Darsstar/framework,peterl1084/framework,Flamenco/vaadin,Darsstar/framework,fireflyc/vaadin,Legioth/vaadin,mittop/vaadin,asashour/framework,Flamenco/vaadin,fireflyc/vaadin,Peppe/vaadin,kironapublic/vaadin,magi42/vaadin,Flamenco/vaadin,Scarlethue/vaadin,sitexa/va... |
3fc70649970d8ee7927c84b64fad40a6d6325643 | protocol/src/main/java/net/md_5/bungee/protocol/packet/Packet2Handshake.java | protocol/src/main/java/net/md_5/bungee/protocol/packet/Packet2Handshake.java | package net.md_5.bungee.protocol.packet;
import io.netty.buffer.ByteBuf;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
@Getter
@ToString
@EqualsAndHashCode(callSuper = false)
public class Packet2Handshake extends DefinedPacket
{
private byte protocolVersion;
private String us... | package net.md_5.bungee.protocol.packet;
import io.netty.buffer.ByteBuf;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@EqualsAndHashCode(callSuper = false)
public class Packet2Handshake extends DefinedPacket
{
private byte protocol... | Add missing setters for handshake. | Add missing setters for handshake.
| Java | bsd-3-clause | starlis/BungeeCord,XMeowTW/BungeeCord,TCPR/BungeeCord,mariolars/BungeeCord,ConnorLinfoot/BungeeCord,PrisonPvP/BungeeCord,LinEvil/BungeeCord,GamesConMCGames/Bungeecord,LolnetModPack/BungeeCord,starlis/BungeeCord,btilm305/BungeeCord,GingerGeek/BungeeCord,LolnetModPack/BungeeCord,ConnorLinfoot/BungeeCord,GamesConMCGames/B... |
4e4d0dc279e0ca4d2f3ca74a5c92f3929a5cffce | src/main/java/com/collective/celos/SlotState.java | src/main/java/com/collective/celos/SlotState.java | package com.collective.celos;
/**
* The execution status of a slot.
*/
public class SlotState extends ValueObject {
protected final SlotID slotID;
protected final Status status;
public enum Status {
WAITING,
READY,
RUNNING,
SUCCESS,
FAILURE
};
... | package com.collective.celos;
/**
* The execution status of a slot.
*/
public class SlotState extends ValueObject {
protected final SlotID slotID;
protected final Status status;
public enum Status {
/** No data availability yet. */
WAITING,
/** No data availability for t... | Add TIMEOUT status and document statuses. | Add TIMEOUT status and document statuses.
| Java | apache-2.0 | collectivemedia/celos,collectivemedia/celos,collectivemedia/celos |
16540c67baa6f1a41bbacf22d6c53e1b5e4dc221 | solutions/java/ConvertArray.java | solutions/java/ConvertArray.java | import java.util.Arrays;
public class ConvertArray {
public int getOriginalIndex(int currentIndex, int length) {
return (currentIndex % 3) * length + currentIndex/3;
}
public int[] convert(int[] input) {
for (int i = 0; i < input.length; ++i) {
int originalIndex = getOriginalIndex(i, input.length/3);
... | import java.util.Arrays;
public class ConvertArray {
public int getOriginalIndex(int currentIndex, int length) {
return (currentIndex % 3) * length + currentIndex/3;
}
public int[] convert(int[] input) {
// When array size is less than 3, returns an error.
if (input.length % 3 != 0 ) {
System.out.pr... | Update to handle an edge case | Update to handle an edge case
Added an update to handle the case when array size is not a multiple of 3.
Without this the program will run into an infinite loop! | Java | mit | jmera/code-problems,jmera/code-problems,faruzzy/code-problems,faruzzy/code-problems,saurabhjn76/code-problems,jmera/code-problems,saurabhjn76/code-problems,jmera/code-problems,saurabhjn76/code-problems,faruzzy/code-problems,saurabhjn76/code-problems,jmera/code-problems,jmera/code-problems,saurabhjn76/code-problems,saur... |
1250d1a1ebdbf8ed057f8a08ce554cd4f47d30b9 | src/edu/colorado/csdms/wmt/client/ui/cell/TextCell.java | src/edu/colorado/csdms/wmt/client/ui/cell/TextCell.java | package edu.colorado.csdms.wmt.client.ui.cell;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.user.client.ui.TextBox;
import edu.colorado.csdms.wmt.client.data.ParameterJSO;
/**
* Displays an editab... | package edu.colorado.csdms.wmt.client.ui.cell;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.user.client.ui.TextBox;
import edu.colorado.csdms.wmt.client.data.ParameterJSO;
/**
* Creates an editabl... | Rename event handler, add docstrings | Rename event handler, add docstrings
| Java | mit | mdpiper/wmt-client,mdpiper/wmt-client,mdpiper/wmt-client,csdms/wmt-client,csdms/wmt-client,csdms/wmt-client |
1ad3b909ef418580d286272bb3ac2f7dca4e86f9 | android/src/com/phonegap/demo/NetworkManager.java | android/src/com/phonegap/demo/NetworkManager.java | package com.phonegap.demo;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import android.content.Context;
import android.net.*;
import android.webkit.WebView;
public class NetworkManager {
Context mCtx;
WebView mView;
ConnectivityManager sockMan;
NetworkMa... | package com.phonegap.demo;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import android.content.Context;
import android.net.*;
import android.webkit.WebView;
public class NetworkManager {
Context mCtx;
WebView mView;
ConnectivityManager sockMan;
NetworkMa... | Make reachable depend on availability | Make reachable depend on availability
| Java | apache-2.0 | LonnyGomes/cordova-ios,dpogue/cordova-ios,Tomikes/cordova-ios,xandroidx/cordova-ios,LonnyGomes/cordova-ios,revolunet/cordova-ios,beedesk/cordova-ios,sportstech/cordova-ios,revolunet/cordova-ios,coderReview/cordova-ios,shazron/cordova-ios,Newstex/cordova-ios,hgl888/cordova-ios,liubiqu/cordova-ios,Newstex/cordova-ios,apa... |
2c6cc4b298e9cbf28978e7846f2ada1e83061158 | src/main/java/techreborn/compat/ic2/RecipesIC2.java | src/main/java/techreborn/compat/ic2/RecipesIC2.java | package techreborn.compat.ic2;
import ic2.api.item.IC2Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.mi... | package techreborn.compat.ic2;
import ic2.api.item.IC2Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.mi... | Clean up ic2 recipes a little | Clean up ic2 recipes a little
| Java | mit | drcrazy/TechReborn,TechReborn/TechReborn,Dimmerworld/TechReborn |
19585101ef0647a59be5db9feb1feefce0125a66 | presto-main/src/test/java/com/facebook/presto/operator/aggregation/TestApproximateCountDoubleAggregation.java | presto-main/src/test/java/com/facebook/presto/operator/aggregation/TestApproximateCountDoubleAggregation.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | Fix approximate count double test | Fix approximate count double test
Use DoubleType instead of BigintType
| Java | apache-2.0 | ajoabraham/presto,aleph-zero/presto,mandusm/presto,sopel39/presto,ipros-team/presto,wrmsr/presto,mono-plane/presto,ebd2/presto,cberner/presto,suyucs/presto,Teradata/presto,ebyhr/presto,Teradata/presto,aleph-zero/presto,losipiuk/presto,prestodb/presto,treasure-data/presto,zhenxiao/presto,y-lan/presto,kuzemchik/presto,oc... |
35ffb4ae1511c9ee77396cd60fe13984a2a976a5 | contrib/jackrabbit-jcr-mapping/jcr-mapping/src/main/java/org/apache/jackrabbit/ocm/exception/InvalidQueryException.java | contrib/jackrabbit-jcr-mapping/jcr-mapping/src/main/java/org/apache/jackrabbit/ocm/exception/InvalidQueryException.java | /*
* $Url: $
* $Id: $
*
* Copyright 1997-2005 Day Management AG
* Barfuesserplatz 6, 4001 Basel, Switzerland
* All Rights Reserved.
*
* This software is the confidential and proprietary information of
* Day Management AG, ("Confidential Information"). You shall not
* disclose such Confidential Information and... | /*
* Copyright 2007 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 appli... | Fix License Header (Thanks Christophe). | Fix License Header (Thanks Christophe).
git-svn-id: 02b679d096242155780e1604e997947d154ee04a@572356 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | tripodsan/jackrabbit,kigsmtua/jackrabbit,kigsmtua/jackrabbit,sdmcraft/jackrabbit,Kast0rTr0y/jackrabbit,kigsmtua/jackrabbit,SylvesterAbreu/jackrabbit,Kast0rTr0y/jackrabbit,Overseas-Student-Living/jackrabbit,afilimonov/jackrabbit,Overseas-Student-Living/jackrabbit,bartosz-grabski/jackrabbit,tripodsan/jackrabbit,bartosz-g... |
4b93dede336bfbbb7adfa99a77f80b2b904a1cc6 | src/main/java/com/gmail/nossr50/api/AbilityAPI.java | src/main/java/com/gmail/nossr50/api/AbilityAPI.java | package com.gmail.nossr50.api;
import org.bukkit.entity.Player;
import com.gmail.nossr50.datatypes.AbilityType;
import com.gmail.nossr50.util.Users;
public class AbilityAPI {
public static boolean berserkEnabled(Player player) {
return Users.getProfile(player).getAbilityMode(AbilityType.BERSER... | package com.gmail.nossr50.api;
import org.bukkit.entity.Player;
import com.gmail.nossr50.datatypes.AbilityType;
import com.gmail.nossr50.util.Users;
public class AbilityAPI {
public static boolean berserkEnabled(Player player) {
return Users.getProfile(player).getAbilityMode(AbilityType.BERSER... | Add ability to check if any ability is enabled. | Add ability to check if any ability is enabled. | Java | agpl-3.0 | Maximvdw/mcMMO,jhonMalcom79/mcMMO_pers,virustotalop/mcMMO,EvilOlaf/mcMMO,isokissa3/mcMMO |
602956a555622fcbf9d764f74a1f610b26c555e3 | src/main/java/com/gmail/nossr50/chat/PartyChatManager.java | src/main/java/com/gmail/nossr50/chat/PartyChatManager.java | package com.gmail.nossr50.chat;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import com.gmail.nossr50.config.Config;
import com.gmail.nossr50.datatypes.party.Party;
import com.gmail.nossr50.events.chat.McMMOPartyChatEvent;
import com.gmail.nossr50.locale.LocaleLoader;... | package com.gmail.nossr50.chat;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import com.gmail.nossr50.config.Config;
import com.gmail.nossr50.datatypes.party.Party;
import com.gmail.nossr50.events.chat.McMMOPartyChatEvent;
public class PartyChatManager extends ChatManager {
private Party par... | Fix duplicate prefix sending with party chat & logging. | Fix duplicate prefix sending with party chat & logging. | Java | agpl-3.0 | isokissa3/mcMMO,jhonMalcom79/mcMMO_pers,Maximvdw/mcMMO,EvilOlaf/mcMMO,virustotalop/mcMMO |
2a60f8b5b623cd3be9fc035d3d93f45c4d9f9a13 | engine/src/main/java/org/terasology/asset/AssetFactory.java | engine/src/main/java/org/terasology/asset/AssetFactory.java | /*
* Copyright 2013 MovingBlocks
*
* 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 t... | /*
* Copyright 2013 MovingBlocks
*
* 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 t... | Fix checkstyle type name warning | Fix checkstyle type name warning
| Java | apache-2.0 | frankpunx/Terasology,Halamix2/Terasology,Malanius/Terasology,Nanoware/Terasology,jacklotusho/Terasology,kaen/Terasology,Felges/Terasology,neshume/Terasology,kartikey0303/Terasology,indianajohn/Terasology,DPirate/Terasology,Vizaxo/Terasology,dimamo5/Terasology,sceptross/Terasology,Felges/Terasology,MovingBlocks/Terasolo... |
72af10999d6372770623075eee018f2a0f463b33 | src/com/connectsdk/DefaultPlatform.java | src/com/connectsdk/DefaultPlatform.java | package com.connectsdk;
import java.util.HashMap;
public class DefaultPlatform {
public DefaultPlatform() {
}
public static HashMap<String, String> getDeviceServiceMap() {
HashMap<String, String> devicesList = new HashMap<String, String>();
devicesList.put("com.connectsdk.service.WebOSTVService", "com.... | package com.connectsdk;
import java.util.HashMap;
public class DefaultPlatform {
public DefaultPlatform() {
}
public static HashMap<String, String> getDeviceServiceMap() {
HashMap<String, String> devicesList = new HashMap<String, String>();
devicesList.put("com.connectsdk.service.WebOSTVService", "com.... | Add MultiScreenService to Default platforms | Add MultiScreenService to Default platforms
| Java | apache-2.0 | ConnectSDK/Connect-SDK-Android,happysir/Connect-SDK-Android,AspiroTV/Connect-SDK-Android,jaambee/Connect-SDK-Android |
fcea87d46e62ead5e8196ba1414aa7f31836ee86 | demo/src/com/google/maps/android/utils/demo/BaseDemoActivity.java | demo/src/com/google/maps/android/utils/demo/BaseDemoActivity.java | package com.google.maps.android.utils.demo;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.SupportMapFragment;
public abstract class BaseDemoActivity extends FragmentActivity {
private GoogleMap mMap;
... | package com.google.maps.android.utils.demo;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.SupportMapFragment;
public abstract class BaseDemoActivity extends FragmentActivity {
private GoogleMap mMap;
... | Check if mMap is null before running demo. Necessary to show the "Play services is out of date" button. | Check if mMap is null before running demo. Necessary to show the "Play services is out of date" button.
| Java | apache-2.0 | commonsguy/android-maps-utils,hermance/android-maps-utils,mansigoel/android-maps-utils,erpragatisingh/android-maps-utils,ifrhector/android-maps-utils,sufeiiz/android-maps-utils,ardock/android-maps-utils,ajju4455/android-maps-utils,jiu9x9uij/GoogleMapUtilsDemo,stephenmcd/android-maps-utils,didldum/android-maps-utils,goo... |
ce3196bc2eefb1f758a7974dfae49e22188307cd | src/aima/basic/vaccum/ModelBasedTVEVaccumAgentProgram.java | src/aima/basic/vaccum/ModelBasedTVEVaccumAgentProgram.java | package aima.basic.vaccum;
import aima.basic.AgentProgram;
import aima.basic.Percept;
/**
* @author Ravi Mohan
*
*/
public class ModelBasedTVEVaccumAgentProgram extends AgentProgram {
VaccumEnvironmentModel myModel;
ModelBasedTVEVaccumAgentProgram(VaccumEnvironmentModel model) {
myModel = model;... | package aima.basic.vaccum;
import aima.basic.Agent;
import aima.basic.AgentProgram;
import aima.basic.Percept;
/**
* @author Ravi Mohan
*
*/
public class ModelBasedTVEVaccumAgentProgram extends AgentProgram {
VaccumEnvironmentModel myModel;
ModelBasedTVEVaccumAgentProgram(VaccumEnvironmentModel mo... | Return value of execute method fixed (NoOP). | Return value of execute method fixed (NoOP). | Java | mit | ngrj93/aima-java,aima-java/aima-java,EvgenyKarataev/aima-java,aimacode/aima-java,futuristixa/aima-java,ramgovin/aima-java,pkdtheking/AI-aima-java-code,j129008/aima-java,sonyccd/aima-java,dariosena/aima-java,futuristixa/aima-java,aimacode/aima-java,pkdtheking/AI-aima-java-code |
a6726cc2a05cfaaf0d10415bf082fe88947438d8 | tests/src-android/cgeo/geocaching/connector/gc/GCLoginTest.java | tests/src-android/cgeo/geocaching/connector/gc/GCLoginTest.java | package cgeo.geocaching.connector.gc;
import static org.assertj.core.api.Assertions.assertThat;
import cgeo.geocaching.enumerations.StatusCode;
import junit.framework.TestCase;
import org.apache.commons.lang3.StringUtils;
import android.test.suitebuilder.annotation.Suppress;
public class GCLoginTest extends TestCa... | package cgeo.geocaching.connector.gc;
import static org.assertj.core.api.Assertions.assertThat;
import cgeo.geocaching.enumerations.StatusCode;
import cgeo.geocaching.location.Geopoint;
import junit.framework.TestCase;
import org.apache.commons.lang3.StringUtils;
import android.test.suitebuilder.annotation.Suppress... | Add a test to confirm that the home location contains valid coordinates | Add a test to confirm that the home location contains valid coordinates
Related to #6042.
| Java | apache-2.0 | Bananeweizen/cgeo,auricgoldfinger/cgeo,rsudev/c-geo-opensource,S-Bartfast/cgeo,cgeo/cgeo,matej116/cgeo,pstorch/cgeo,matej116/cgeo,auricgoldfinger/cgeo,kumy/cgeo,cgeo/cgeo,S-Bartfast/cgeo,superspindel/cgeo,tobiasge/cgeo,rsudev/c-geo-opensource,S-Bartfast/cgeo,Bananeweizen/cgeo,auricgoldfinger/cgeo,matej116/cgeo,superspi... |
62a5d2db5c0ff5e96d66d91bfaa6a35ef9a0ef94 | src/main/java/com/gmail/nossr50/listeners/HardcoreListener.java | src/main/java/com/gmail/nossr50/listeners/HardcoreListener.java | package com.gmail.nossr50.listeners;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.PlayerDeathEvent;
import com.gmail.nossr50.util.Hardcore;
import com.gmail.nossr50.util.Misc;
import com.g... | package com.gmail.nossr50.listeners;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.PlayerDeathEvent;
import com.gmail.nossr50.util.Hardcore;
import com.gmail.nossr50.util.Misc;
import com.g... | Make sure we ignore cancelled events. | Make sure we ignore cancelled events. | Java | agpl-3.0 | EvilOlaf/mcMMO,jhonMalcom79/mcMMO_pers,isokissa3/mcMMO,Maximvdw/mcMMO,virustotalop/mcMMO |
8127c6cf30e3b1410b8194773a07fdfb89435cee | gwt-ol3-client/src/test/java/ol/geom/GeometryCollectionTest.java | gwt-ol3-client/src/test/java/ol/geom/GeometryCollectionTest.java | package ol.geom;
import ol.*;
/**
* A test case for {@link GeometryCollection}.
*
* @author sbaumhekel
*/
public class GeometryCollectionTest extends BaseTestCase {
public void test() {
Geometry[] geoms = new Geometry[] { OLFactory.createPoint(1, 2), OLFactory.createLineString(
new Coordinate[] { OLFacto... | package ol.geom;
import ol.Coordinate;
import ol.GwtOL3BaseTestCase;
import ol.OLFactory;
/**
* A test case for {@link GeometryCollection}.
*
* @author sbaumhekel
*/
public class GeometryCollectionTest extends GwtOL3BaseTestCase {
public void test() {
Geometry[] geoms = new Geometry[] { OLFactory.cr... | Update test for GWT 2.8 | Update test for GWT 2.8 | Java | apache-2.0 | sebasbaumh/gwt-ol3,sebasbaumh/gwt-ol3,mazlixek/gwt-ol3,TDesjardins/gwt-ol3,mazlixek/gwt-ol3,TDesjardins/GWT-OL3-Playground,TDesjardins/gwt-ol3,TDesjardins/gwt-ol3,TDesjardins/GWT-OL3-Playground,sebasbaumh/gwt-ol3,TDesjardins/GWT-OL3-Playground,mazlixek/gwt-ol3 |
0816bbd2dd00da19427523a9e4210dae33e78423 | plugins/terminal/src/org/jetbrains/plugins/terminal/OpenLocalTerminalAction.java | plugins/terminal/src/org/jetbrains/plugins/terminal/OpenLocalTerminalAction.java | package org.jetbrains.plugins.terminal;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.PlatformDataKeys;
import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.project.Project;
import com.intellij.o... | package org.jetbrains.plugins.terminal;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.PlatformDataKeys;
import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.project.Project;
import com.intellij.o... | Disable for Windows as it doesn't work now. | Disable for Windows as it doesn't work now.
| Java | apache-2.0 | vladmm/intellij-community,fitermay/intellij-community,vladmm/intellij-community,hurricup/intellij-community,supersven/intellij-community,da1z/intellij-community,SerCeMan/intellij-community,apixandru/intellij-community,apixandru/intellij-community,hurricup/intellij-community,fnouama/intellij-community,asedunov/intellij-... |
24d38cdba4e6698dafc0c9e2e34cb017b8e51962 | core/src/main/java/com/google/bitcoin/utils/ListenerRegistration.java | core/src/main/java/com/google/bitcoin/utils/ListenerRegistration.java | /**
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /**
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Check for and reject null event listeners. | Check for and reject null event listeners.
| Java | apache-2.0 | TrustPlus/trustpluscoinj,HashEngineering/dashj,szdx/bitcoinj,stonecoldpat/bitcoinj,blockchain/bitcoinj,MintcoinCommunity/mintcoinj,yezune/darkcoinj,HashEngineering/darkcoinj,reddcoin-project/reddcoinj-pow,HashEngineering/dashj,DynamicCoinOrg/dmcJ,schildbach/bitcoinj,ohac/sha1coinj,patricklodder/bitcoinj,HashEngineering... |
da3db625ebf98c9d4c20562ca1688c19d3a05102 | platform/platform-impl/src/com/intellij/openapi/keymap/impl/DefaultBundledKeymaps.java | platform/platform-impl/src/com/intellij/openapi/keymap/impl/DefaultBundledKeymaps.java | /*
* Copyright 2000-2009 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-2009 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... | Fix GNOME keymap missing shortcuts. | Fix GNOME keymap missing shortcuts.
| Java | apache-2.0 | supersven/intellij-community,apixandru/intellij-community,retomerz/intellij-community,suncycheng/intellij-community,FHannes/intellij-community,suncycheng/intellij-community,supersven/intellij-community,wreckJ/intellij-community,gnuhub/intellij-community,muntasirsyed/intellij-community,holmes/intellij-community,caot/int... |
e9cdf7a1e90aa2be4dd833f005181c862ff22b70 | org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/HardResetToRevisionAction.java | org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/HardResetToRevisionAction.java | /*******************************************************************************
* Copyright (C) 2008, Robin Rosenberg <robin.rosenberg@dewire.com>
*
* 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 d... | /*******************************************************************************
* Copyright (C) 2008, Robin Rosenberg <robin.rosenberg@dewire.com>
*
* 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 d... | Add missing confirmation dialog for hard reset | Add missing confirmation dialog for hard reset
Added the missing confirmation dialog for Reset->Hard
action in History view.
Bug: 319947
Change-Id: I1fab712e20a0087ce6f91903968416c24e3d902a
Signed-off-by: Jens Baumgart <6d4d33e37bca550188034acaf6d86b3d82efd688@sap.com> | Java | epl-1.0 | paulvi/egit,bols-blue/eclipse_maven_autobuild_sample,jdcasey/EGit,mdoninger/egit,collaborative-modeling/egit,jdcasey/EGit,SmithAndr/egit,blizzy78/egit,wdliu/egit,rickard-von-essen/egit,bols-blue/eclipse_maven_autobuild_sample,rickard-von-essen/egit,SmithAndr/egit,wdliu/egit,chalstrick/egit,paulvi/egit,collaborative-mod... |
d9b23a6b3adaa1cee67b0e3db42db7b3b57112e2 | runtime/src/main/java/org/wildfly/swarm/logstash/runtime/LogstashConfiguration.java | runtime/src/main/java/org/wildfly/swarm/logstash/runtime/LogstashConfiguration.java | /**
* Copyright 2015 Red Hat, Inc, and individual 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | /**
* Copyright 2015 Red Hat, Inc, and individual 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | Add some more *Configuration super-classes to simplify boiler-plate stuff. | Add some more *Configuration super-classes to simplify boiler-plate stuff.
| Java | apache-2.0 | bobmcwhirter/wildfly-swarm,bobmcwhirter/wildfly-swarm,juangon/wildfly-swarm,emag/wildfly-swarm,wildfly-swarm/wildfly-swarm,emag/wildfly-swarm,jamezp/wildfly-swarm,juangon/wildfly-swarm,jamesnetherton/wildfly-swarm,wildfly-swarm/wildfly-swarm-core,kenfinnigan/wildfly-swarm,nelsongraca/wildfly-swarm,heiko-braun/wildfly-s... |
edc7a7607ced0e5ab1366b7423a388d8cde3ba0d | app/src/main/java/com/bubbletastic/android/ping/Ping.java | app/src/main/java/com/bubbletastic/android/ping/Ping.java | package com.bubbletastic.android.ping;
import android.app.Application;
import android.app.job.JobInfo;
import android.app.job.JobScheduler;
import android.content.ComponentName;
import android.content.Context;
import com.squareup.otto.Bus;
import com.squareup.otto.ThreadEnforcer;
/**
* Created by brendanmartens on ... | package com.bubbletastic.android.ping;
import android.app.Application;
import android.app.job.JobInfo;
import android.app.job.JobScheduler;
import android.content.ComponentName;
import android.content.Context;
import com.squareup.otto.Bus;
import com.squareup.otto.ThreadEnforcer;
/**
* Created by brendanmartens on ... | Increase time between host refreshing to four minutes. | Increase time between host refreshing to four minutes.
| Java | mit | shrift/ping_android,shrift/ping_android |
b347423f3d9063b36374e73f31aba4f92b2b1d32 | src/main/java/no/javazone/VertxHttpServer.java | src/main/java/no/javazone/VertxHttpServer.java | package no.javazone;
import io.vertx.core.Vertx;
import io.vertx.core.json.Json;
import io.vertx.ext.web.Router;
import io.vertx.ext.web.RoutingContext;
public class VertxHttpServer {
public static void main(String[] args) {
Vertx vertx = Vertx.vertx();
Router router = Router.router(vertx);
... | package no.javazone;
import io.vertx.core.Vertx;
import io.vertx.core.json.Json;
import io.vertx.ext.web.Router;
import io.vertx.ext.web.RoutingContext;
public class VertxHttpServer {
public static void main(String[] args) {
Vertx vertx = Vertx.vertx();
Router router = Router.router(vertx);
... | Add output when server has started. | Add output when server has started.
| Java | mit | ChristinGorman/javazone2016 |
10f4b70a08e7c47b2a4c4f401366ea4f9ff0426c | src/main/java/com/github/aureliano/achmed/os/service/IService.java | src/main/java/com/github/aureliano/achmed/os/service/IService.java | package com.github.aureliano.achmed.os.service;
import com.github.aureliano.achmed.command.CommandResponse;
public interface IService {
public abstract CommandResponse start();
public abstract CommandResponse stop();
public abstract CommandResponse restart();
public abstract boolean isRunning();
public ... | package com.github.aureliano.achmed.os.service;
import com.github.aureliano.achmed.command.CommandResponse;
import com.github.aureliano.achmed.resources.properties.ServiceProperties;
public interface IService {
public abstract CommandResponse start();
public abstract CommandResponse stop();
public abstract Co... | Add methods to set and get properties. | Add methods to set and get properties.
| Java | mit | aureliano/achmed |
86aa28995e84491ab7157de7a0ed3912c7a1a8df | src/main/java/com/grayben/riskExtractor/htmlScorer/HtmlScorer.java | src/main/java/com/grayben/riskExtractor/htmlScorer/HtmlScorer.java | /**
*
*/
package com.grayben.riskExtractor.htmlScorer;
import java.io.IOException;
import java.io.InputStream;
/**
* A class implementing this interface is able to process HTML from a number of sources
* and output a representation of the readable text in that HTML, with scores attached to
* elements of this te... | /**
*
*/
package com.grayben.riskExtractor.htmlScorer;
import java.io.IOException;
import java.io.InputStream;
/**
* A class implementing this interface is able to process HTML from a number of sources
* and output a representation of the readable text in that HTML, with scores attached to
* elements of this te... | Add documentation for IOException thrown | Add documentation for IOException thrown
| Java | mit | grayben/10K-item-extractor,grayben/10K-item-extractor |
255e8be9f41a12dabac2205c7bd21d06cc4589f1 | src/com/budgetreporter/View/MenuView.java | src/com/budgetreporter/View/MenuView.java | /**
* Package contains all the views required by budgetreporter
*/
package com.budgetreporter.View;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.GridLayout;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLa... | /**
* Package contains all the views required by budgetreporter
*/
package com.budgetreporter.View;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Box;
import javax.swing.BoxLayout;
impo... | Add quit button functionality in menuView | Add quit button functionality in menuView
| Java | apache-2.0 | jackycool/BudgetReporter |
2f60eada39dea6bac4ee4bde5abbb10e299c6bd1 | src/main/java/net/qbar/common/block/BlockTank.java | src/main/java/net/qbar/common/block/BlockTank.java | package net.qbar.common.block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.mat... | package net.qbar.common.block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.mat... | Fix side check in tank filling | Fix side check in tank filling
| Java | apache-2.0 | mantal/Qbar,Phenix246/Qbar,OPMCorp/Qbar |
54cfbbd9bdd30f75e48b3099dc90a02121534e0e | src/io/miti/beetle/model/ContentType.java | src/io/miti/beetle/model/ContentType.java | package io.miti.beetle.model;
public enum ContentType {
SQL(1), SQL_FILE(2), HADOOP(3), CSV(4), JSON(5), YAML(6), TEXT(7);
private int id = -1;
ContentType(final int nId) {
id = nId;
}
public int getId() {
return id;
}
public static ContentType getById(final int pId) {
ContentType... | package io.miti.beetle.model;
public enum ContentType {
SQL(1), SQL_FILE(2), HADOOP(3), CSV(4), JSON(5), YAML(6), TEXT(7), TOML(8), XML(9);
private int id = -1;
ContentType(final int nId) {
id = nId;
}
public int getId() {
return id;
}
public static ContentType getById(final int pId) ... | Support for exporting to TOML and XML. | Support for exporting to TOML and XML. | Java | mit | argonium/beetle-cli |
ddd684e28294ed4aac5d0d40dc4ff8dbdd9f9c47 | src/main/java/net/ihiroky/niotty/sample/StringDecoder.java | src/main/java/net/ihiroky/niotty/sample/StringDecoder.java | package net.ihiroky.niotty.sample;
import net.ihiroky.niotty.LoadStage;
import net.ihiroky.niotty.LoadStageContext;
import net.ihiroky.niotty.buffer.CodecBuffer;
import net.ihiroky.niotty.TransportStateEvent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.nio.charset.CharacterCodingException;
im... | package net.ihiroky.niotty.sample;
import net.ihiroky.niotty.LoadStage;
import net.ihiroky.niotty.LoadStageContext;
import net.ihiroky.niotty.TransportStateEvent;
import net.ihiroky.niotty.buffer.CodecBuffer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.nio.charset.Charset;
/**
* Created on ... | Fix invalid decoder in sample | Fix invalid decoder in sample
StringDecoder should use CoderBuffer#readString(), so StringEncoder
encodes a string with CoderBuffer#writeString().
| Java | mit | ihiroky/niotty |
5b8ab42f37cd9e955a1314656681b45c14402547 | src/test/java/seedu/address/testutil/TestTask.java | src/test/java/seedu/address/testutil/TestTask.java | package seedu.address.testutil;
import seedu.address.model.tag.UniqueTagList;
import seedu.address.model.task.Name;
import seedu.address.model.task.ReadOnlyTask;
/**
* A mutable person object. For testing only.
*/
public class TestTask implements ReadOnlyTask {
private Name name;
private UniqueTagList tags... | package seedu.address.testutil;
import seedu.address.model.tag.UniqueTagList;
import seedu.address.model.task.Name;
import seedu.address.model.task.ReadOnlyTask;
/**
* A mutable task object. For testing only.
*/
public class TestTask implements ReadOnlyTask {
private Name name;
private UniqueTagList tags;
... | Fix some wrong references to person | Fix some wrong references to person
| Java | mit | CS2103JAN2017-F14-B3/main,CS2103JAN2017-F14-B3/main |
94ecf3e4efa8701ec6233617a516f814bb25fdc4 | src/main/ed/appserver/HeadArray.java | src/main/ed/appserver/HeadArray.java | // HeadArray.java
package ed.appserver;
import ed.js.*;
public class HeadArray extends JSArray {
public void addCSS( String css ){
add( "<link rel=\"stylesheet\" type=\"text/css\" href=\"" + css + "\" >" );
}
public void addScript( String script ){
add( "<script src=\"" + script + "\" >... | // HeadArray.java
package ed.appserver;
import ed.js.*;
public class HeadArray extends JSArray {
protected int getIndex( Object index ){
int idx;
if( index == null ) idx = size();
else {
if( ! (index instanceof Number) ) throw new JSException( "index must be number, not " + i... | Allow indexes on scripts and CSS files (so you can add them at the beginning). | Allow indexes on scripts and CSS files (so you can add them at the beginning).
| Java | apache-2.0 | babble/babble,babble/babble,babble/babble,babble/babble,babble/babble,babble/babble |
2b227facf6d67d43eafc5c2ee7323f9eae6bf45a | src/main/java/seedu/bulletjournal/logic/parser/FlexibleCommand.java | src/main/java/seedu/bulletjournal/logic/parser/FlexibleCommand.java | package seedu.bulletjournal.logic.parser;
/**
* Provides variations of commands Note: hard-coded for v0.2, will implement nlp
* for future versions
* @author Tu An - arishuynhvan
*/
public class FlexibleCommand {
private String commandFromUser = "";
private String[] commandGroups = new String[] { "add a a... | package seedu.bulletjournal.logic.parser;
/**
* Provides variations of commands Note: hard-coded for v0.2, will implement nlp
* for future versions
* @author Tu An - arishuynhvan
*/
public class FlexibleCommand {
private String commandFromUser = "";
private String[] commandGroups = new String[] { "add a a... | Fix one more style error | Fix one more style error
| Java | mit | CS2103JAN2017-F12-B4/main,CS2103JAN2017-F12-B4/main |
f19cd9bcd6767d12d15849979c720091da5e562d | android/src/main/java/com/AlexanderZaytsev/RNI18n/RNI18nPackage.java | android/src/main/java/com/AlexanderZaytsev/RNI18n/RNI18nPackage.java | package com.AlexanderZaytsev.RNI18n;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import java.util.Arrays;
import java... | package com.AlexanderZaytsev.RNI18n;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import java.util.Arrays;
import java... | Fix unexistant createJSModules on rn 0.47+ | Fix unexistant createJSModules on rn 0.47+
| Java | mit | AlexanderZaytsev/react-native-i18n,AlexanderZaytsev/react-native-i18n,AlexanderZaytsev/react-native-i18n,AlexanderZaytsev/react-native-i18n |
4917f2de81937a56f392bd7de010ba8ccd046548 | src/main/java/dk/kleistsvendsen/GameTimer.java | src/main/java/dk/kleistsvendsen/GameTimer.java | package dk.kleistsvendsen;
import com.google.inject.Inject;
public class GameTimer implements IGameTimer {
private ITicSource ticSource_;
private long startTic_;
private long pauseTic_;
private boolean running_;
@Inject
public GameTimer(ITicSource ticSource) {
running_ = false;
... | package dk.kleistsvendsen;
import com.google.inject.Inject;
public class GameTimer implements IGameTimer {
private ITicSource ticSource_;
private long startTic_;
private long pauseTic_;
private enum State {
IDLE,
PAUSED,
RUNNING
}
private State running_;
@Inject
... | Use enum instead of boolean to hold state. | Use enum instead of boolean to hold state.
| Java | mit | Kleist/GameClock |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.