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 |
|---|---|---|---|---|---|---|---|---|---|
0c8e60f30f055c4c455e3b66a85aa66848824517 | src/edu/ntnu/idi/goldfish/Result.java | src/edu/ntnu/idi/goldfish/Result.java | package edu.ntnu.idi.goldfish;
import org.apache.mahout.cf.taste.eval.IRStatistics;
public class Result {
String recommender;
// RMSE
double RMSE;
//
double AAD;
// IR stats (precision, recall)
IRStatistics irStats;
public Result(String recommender, double RMSE, double AAD, IRStatistics irStats) {... | package edu.ntnu.idi.goldfish;
import org.apache.mahout.cf.taste.eval.IRStatistics;
public class Result {
String recommender;
// RMSE
double RMSE;
//
double AAD;
// IR stats (precision, recall)
IRStatistics irStats;
public Result(String recommender, double RMSE, double AAD, IRStatistics irStats) {... | Use proxy methods for getPrecision() and getRecall(). | Use proxy methods for getPrecision() and getRecall().
| Java | mit | ntnu-smartmedia/goldfish,ntnu-smartmedia/goldfish,ntnu-smartmedia/goldfish,monsendag/goldfish,monsendag/goldfish,monsendag/goldfish |
a692c65ed369e9ad92b164c9beb900abda442933 | src/main/java/org/cyclops/integrateddynamics/core/evaluate/variable/ValueTypeListProxyEntityArmorInventory.java | src/main/java/org/cyclops/integrateddynamics/core/evaluate/variable/ValueTypeListProxyEntityArmorInventory.java | package org.cyclops.integrateddynamics.core.evaluate.variable;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import org.cyclops.cyclopscore.persist.nbt.INBTProvider;
/**
* A list proxy for the inventory of an entity... | package org.cyclops.integrateddynamics.core.evaluate.variable;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import org.cyclops.cyclopscore.persist.nbt.INBTProvider;
/**
* A list proxy for the inventory of an entity... | Fix NPE when reading mob armor inventories in peaceful mode | Fix NPE when reading mob armor inventories in peaceful mode
| Java | mit | CyclopsMC/IntegratedDynamics |
b2ef13d010d9bc3f50c6c2f2c580433814fbb702 | src/xyz/pushpad/Pushpad.java | src/xyz/pushpad/Pushpad.java | package xyz.pushpad;
import javax.crypto.spec.SecretKeySpec;
import javax.crypto.Mac;
import java.security.SignatureException;
import java.security.NoSuchAlgorithmException;
import java.security.InvalidKeyException;
import java.util.Base64;
public class Pushpad {
public String authToken;
public String projectId;
... | package xyz.pushpad;
import javax.crypto.spec.SecretKeySpec;
import javax.crypto.Mac;
import java.security.SignatureException;
import java.security.NoSuchAlgorithmException;
import java.security.InvalidKeyException;
import javax.xml.bind.DatatypeConverter;
public class Pushpad {
public String authToken;
public St... | Use hex-encoding for HMAC-SHA1 signature | Use hex-encoding for HMAC-SHA1 signature
As described in the documentation ( https://pushpad.xyz/docs/identifying_users ), the signature should be hex-encoded. Base64-encoded signatures get rejected. | Java | mit | pushpad/pushpad-java |
ad38b2042a6b9035162ee029be6d46e6132bd8e2 | src/main/java/de/espend/idea/laravel/LaravelSettings.java | src/main/java/de/espend/idea/laravel/LaravelSettings.java | package de.espend.idea.laravel;
import com.intellij.openapi.components.*;
import com.intellij.openapi.project.Project;
import com.intellij.util.xmlb.XmlSerializerUtil;
import de.espend.idea.laravel.view.dict.TemplatePath;
import org.apache.commons.lang.StringUtils;
import org.jetbrains.annotations.Nullable;
import ja... | package de.espend.idea.laravel;
import com.intellij.openapi.components.*;
import com.intellij.openapi.project.Project;
import com.intellij.util.xmlb.XmlSerializerUtil;
import de.espend.idea.laravel.view.dict.TemplatePath;
import org.apache.commons.lang.StringUtils;
import org.jetbrains.annotations.Nullable;
import ja... | Remove removed id property from storage annotation | Remove removed id property from storage annotation
| Java | mit | Haehnchen/idea-php-laravel-plugin,Haehnchen/idea-php-laravel-plugin,Haehnchen/idea-php-laravel-plugin,Haehnchen/idea-php-laravel-plugin |
e3952c23359db34641c944232d034d9ab642c6a9 | src/com/watcher/car/HttpClient.java | src/com/watcher/car/HttpClient.java | package com.watcher.car;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
public class HttpClient {
public void post(String data) {
try {
HttpURLConnection conn = openConnection("http://leetor.no-ip.org:8010/");
conn.setDoOutput(... | package com.watcher.car;
import android.util.Base64;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import static android.util.Base64.DEFAULT;
public class HttpClient {
public void post(String data) {
try {
HttpURLConnection conn =... | Use basic auth when posting data. | Use basic auth when posting data.
| Java | mit | jarmo/carguard-client |
94c2a97bf926e01ae68730ffdb92a9d1439b3dcc | enabler/src/com/openxc/enabler/PipelineStatusUpdateTask.java | enabler/src/com/openxc/enabler/PipelineStatusUpdateTask.java | package com.openxc.enabler;
import java.util.TimerTask;
import android.app.Activity;
import com.openxc.VehicleManager;
import android.widget.ListView;
import android.widget.ArrayAdapter;
public class PipelineStatusUpdateTask extends TimerTask {
private VehicleManager mVehicleManager;
private Activity mActiv... | package com.openxc.enabler;
import java.util.TimerTask;
import android.app.Activity;
import com.openxc.VehicleManager;
import android.widget.ListView;
import android.widget.ArrayAdapter;
public class PipelineStatusUpdateTask extends TimerTask {
private VehicleManager mVehicleManager;
private Activity mActiv... | Maintain scroll position in data source/sink list in Enabler. | Maintain scroll position in data source/sink list in Enabler.
Instead of blowing away the adapter each time we update, keep the same adapter
and just update the list.
Thanks to
http://vikinghammer.com/2011/06/17/android-listview-maintain-your-scroll-position-when-you-refresh/
| Java | bsd-3-clause | prateeknitish391/demo,mray19027/openxc-android,prateeknitish391/demo,msowka/openxc-android,dhootha/openxc-android,ChernyshovYuriy/openxc-android,openxc/openxc-android,openxc/openxc-android,msowka/openxc-android,mray19027/openxc-android,ChernyshovYuriy/openxc-android,petemaclellan/openxc-android,prateeknitish391/demo,pe... |
be26a931ac90f000fe36ed9334436d2ce4e9828a | src/test/java/examples/locale/LocaleNegotiationTest.java | src/test/java/examples/locale/LocaleNegotiationTest.java | package examples.locale;
import com.vtence.molecule.WebServer;
import com.vtence.molecule.testing.http.HttpRequest;
import com.vtence.molecule.testing.http.HttpResponse;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import java.util.Locale;
import static com.vten... | package examples.locale;
import com.vtence.molecule.WebServer;
import com.vtence.molecule.testing.http.HttpRequest;
import com.vtence.molecule.testing.http.HttpResponse;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import java.io.IOException;
import java.util.Locale... | Mark locale negotiation acceptance in progress | Mark locale negotiation acceptance in progress
| Java | mit | testinfected/molecule,testinfected/molecule,testinfected/molecule,ensonik/molecule,ensonik/molecule,ensonik/molecule,ensonik/molecule,testinfected/molecule,testinfected/molecule,ensonik/molecule |
4b3919cc92218092fa5fafd8b9e6f6826dca9817 | src/main/java/com/parquet/Test.java | src/main/java/com/parquet/Test.java | package com.parquet;
import com.richstonedt.nokia_api.peopleflow.Record;
import org.apache.spark.SparkConf;
import org.apache.spark.SparkContext;
import org.apache.spark.api.java.function.MapPartitionsFunction;
import org.apache.spark.sql.Encoder;
import org.apache.spark.sql.Encoders;
import org.apache.spark.sql.SaveM... | package com.parquet;
import com.richstonedt.nokia_api.peopleflow.Record;
import org.apache.spark.SparkConf;
import org.apache.spark.SparkContext;
import org.apache.spark.api.java.function.MapPartitionsFunction;
import org.apache.spark.sql.Encoder;
import org.apache.spark.sql.Encoders;
import org.apache.spark.sql.SaveM... | Modify data source to HDFS | Modify data source to HDFS
| Java | apache-2.0 | ypynetboy/SparkDemo |
909d546a96e48a40b6b6e503be0451666ba305a3 | src/main/java/fr/aumgn/dac2/DAC.java | src/main/java/fr/aumgn/dac2/DAC.java | package fr.aumgn.dac2;
import fr.aumgn.bukkitutils.localization.PluginResourceBundles;
import fr.aumgn.bukkitutils.localization.bundle.PluginResourceBundle;
import fr.aumgn.dac2.config.DACConfig;
public class DAC {
private final DACPlugin plugin;
private DACConfig config;
private PluginResourceBundle cm... | package fr.aumgn.dac2;
import fr.aumgn.bukkitutils.localization.PluginResourceBundles;
import fr.aumgn.bukkitutils.localization.bundle.PluginResourceBundle;
import fr.aumgn.dac2.config.DACConfig;
public class DAC {
private final DACPlugin plugin;
private DACConfig config;
private PluginResourceBundle cm... | Clear ResourceBundle cache on reload | Clear ResourceBundle cache on reload
| Java | mit | aumgn/DACv2,Loscillo/DACv2-temp |
5a5f1725b9c1e5706742f1919e34d8bc3a5bd941 | templates/play-java/test/ApplicationTest.java | templates/play-java/test/ApplicationTest.java | import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.databind.JsonNode;
import org.junit.*;
import play.mvc.*;
import play.test.*;
import play.data.DynamicForm;
import play.data.validation.ValidationError;
import play.data.validation.Constrain... | import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.databind.JsonNode;
import org.junit.*;
import play.mvc.*;
import play.test.*;
import play.data.DynamicForm;
import play.data.validation.ValidationError;
import play.data.validation.Constrain... | Update play-java template to use new Twirl API | Update play-java template to use new Twirl API
| Java | apache-2.0 | hagl/playframework,hagl/playframework,playframework/playframework,wegtam/playframework,richdougherty/playframework,Shruti9520/playframework,Shruti9520/playframework,benmccann/playframework,wsargent/playframework,marcospereira/playframework,marcospereira/playframework,wegtam/playframework,rajeshpg/playframework,wegtam/p... |
892923771ad020a2f8f18f4ce0794319d299f430 | src/foam/util/concurrent/AsyncAssemblyLine.java | src/foam/util/concurrent/AsyncAssemblyLine.java | /**
* @license
* Copyright 2019 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
package foam.util.concurrent;
import foam.core.Agency;
import foam.core.ContextAgent;
import foam.core.X;
/**
* An Aynchronous implementation of the AssemblyLine interface.
* Uses the threadpool... | /**
* @license
* Copyright 2019 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
package foam.util.concurrent;
import foam.core.Agency;
import foam.core.ContextAgent;
import foam.core.X;
/**
* An Aynchronous implementation of the AssemblyLine interface.
* Uses the threadpool... | Fix unitialized variable compiler error | Fix unitialized variable compiler error
| Java | apache-2.0 | foam-framework/foam2,foam-framework/foam2,jacksonic/vjlofvhjfgm,foam-framework/foam2,jacksonic/vjlofvhjfgm,jacksonic/vjlofvhjfgm,foam-framework/foam2,foam-framework/foam2 |
91651e30d8a20e8412c2a4f4d448ad8af3e7be95 | src/main/java/Config/Info.java | src/main/java/Config/Info.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Config;
/**
*
* @author liaoyilin
*/
public class Info {
//Main
public static final String BOT_TOKEN = "Mjk0MzI3Nzg... | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Config;
/**
*
* @author liaoyilin
*/
public class Info {
//Icon
public static String I_info = "https://maxcdn.icons... | Make bot token private :p | Make bot token private :p | Java | mit | AlienIdeology/AIBot |
e236be94ce3bc9372c83792c7abf4de1a0369f46 | src/com/edinarobotics/zephyr/Zephyr.java | src/com/edinarobotics/zephyr/Zephyr.java | /*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | /*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | Add joystick control to the new shooter Jaguar. | Add joystick control to the new shooter Jaguar.
| Java | bsd-3-clause | TheGreenMachine/Zephyr-Java |
be1d5d7013bd60ce2f04f1332e34d5a933b909be | src/main/java/csuf/cs544/hw1/dialogs/ErrorDialogFragment.java | src/main/java/csuf/cs544/hw1/dialogs/ErrorDialogFragment.java | package csuf.cs544.hw1.dialogs;
import android.R;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
public class ErrorDialogFragment extends DialogFragment {
@Override
public Dialog onCr... | package csuf.cs544.hw1.dialogs;
import android.R;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.os.Bundle;
public class ErrorDialogFragment extends DialogFragment {
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
... | Use null input handler for ErrorDialog; none needed | Use null input handler for ErrorDialog; none needed
| Java | mit | nimbus154/544-hw1,nimbus154/544-hw1 |
1fef0b8eb36489b7fc23b88ad3486d862d8f6e87 | src/test/java/webmon/HelloWorldTest.java | src/test/java/webmon/HelloWorldTest.java | package webmon;
import org.junit.Test;
import static org.junit.Assert.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class HelloWorldTest {
private String toTest = TestConstants.localAddress;
private St... | package webmon;
import org.junit.Test;
import static org.junit.Assert.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class HelloWorldTest {
private String toTest = TestConstants.localAddress;
private St... | Fix test execution step in maven build | Fix test execution step in maven build | Java | apache-2.0 | darshanmaiya/WebMon,darshanmaiya/WebMon,darshanmaiya/WebMon |
e0caa6c1f1e4d5b7d3ca40002f6a8834cca1d8f9 | splunk/com/splunk/DistributedPeer.java | splunk/com/splunk/DistributedPeer.java | /*
* Copyright 2011 Splunk, 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 2011 Splunk, 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... | Add default values to get field values | Add default values to get field values
| Java | apache-2.0 | splunk/splunk-sdk-java,splunk/splunk-sdk-java,splunk/splunk-sdk-java,dkelmer/splunk-sdk-java,dkelmer/splunk-sdk-java,splunk/splunk-sdk-java,splunk/splunk-sdk-java,dkelmer/splunk-sdk-java,splunk/splunk-sdk-java,dkelmer/splunk-sdk-java,dkelmer/splunk-sdk-java |
79a2a31927fde30d1fe3324907736049d952e074 | src/main/java/com/github/daytron/revworks/data/ErrorMsg.java | src/main/java/com/github/daytron/revworks/data/ErrorMsg.java | /*
* Copyright 2015 Ryan Gilera.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | /*
* Copyright 2015 Ryan Gilera.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Add new predefined generic message for announcement query failure | Add new predefined generic message for announcement query failure
| Java | apache-2.0 | Daytron/revworks |
996efffa55f599c543df2439cb6ddff2af48237e | src/main/java/se/fnord/katydid/internal/CompositeTester.java | src/main/java/se/fnord/katydid/internal/CompositeTester.java | package se.fnord.katydid.internal;
import se.fnord.katydid.ComparisonStatus;
import se.fnord.katydid.DataTester;
import se.fnord.katydid.TestingContext;
import java.nio.ByteBuffer;
import static java.lang.Math.max;
public abstract class CompositeTester extends AbstractTester {
private final DataTester[] values;
... | package se.fnord.katydid.internal;
import se.fnord.katydid.ComparisonStatus;
import se.fnord.katydid.DataTester;
import se.fnord.katydid.TestingContext;
import java.nio.ByteBuffer;
import static java.lang.Math.max;
public abstract class CompositeTester extends AbstractTester {
private final DataTester[] values;
... | Prepend the tester name in the composite item name formatter | Prepend the tester name in the composite item name formatter | Java | isc | gsson/katydid |
102de707cf9e6d17bb7b8ef83cb97a17ae619938 | src/main/java/net/gvmtool/api/Gvm.java | src/main/java/net/gvmtool/api/Gvm.java | package net.gvmtool.api;
/**
* @author Noam Y. Tenne
*/
public class Gvm {
public static Object use(String candidateName) {
return constructUse(candidateName);
}
public static Object getUse(String candidateName) {
return use(candidateName);
}
public static Object install(String... | package net.gvmtool.api;
/**
* @author Noam Y. Tenne
*/
public class Gvm {
public static Object use(String candidateName) {
return new Use(new Object(), candidateName);
}
public static Object install(String candidateName) {
return new Object();
}
public static Object uninstall(... | Remove redundant GVM main methods | Remove redundant GVM main methods
| Java | apache-2.0 | sdkman/sdkman-java-sdk,gvmtool/gvm-sdk |
1afe9ce2ee806772e837de124a72e83429b83a8d | server/src/test/java/com/genymobile/scrcpy/StringUtilsTest.java | server/src/test/java/com/genymobile/scrcpy/StringUtilsTest.java | package com.genymobile.scrcpy;
import junit.framework.Assert;
import org.junit.Test;
import java.nio.charset.StandardCharsets;
public class StringUtilsTest {
@Test
@SuppressWarnings("checkstyle:MagicNumber")
public void testUtf8Truncate() {
String s = "aÉbÔc";
byte[] utf8 = s.getBytes(S... | package com.genymobile.scrcpy;
import org.junit.Assert;
import org.junit.Test;
import java.nio.charset.StandardCharsets;
public class StringUtilsTest {
@Test
@SuppressWarnings("checkstyle:MagicNumber")
public void testUtf8Truncate() {
String s = "aÉbÔc";
byte[] utf8 = s.getBytes(Standard... | Fix deprecation warning in Java unit test | Fix deprecation warning in Java unit test
| Java | apache-2.0 | Genymobile/scrcpy,Genymobile/scrcpy,Genymobile/scrcpy |
49b708761079b7dee96139e8b9d8c659e14f6ae6 | services/src/main/java/no/deichman/services/resources/Work.java | services/src/main/java/no/deichman/services/resources/Work.java | package no.deichman.services.resources;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
@Path("/work")
public class Work {
@GET
@Path("/")
@Produces(MediaType.APPLICATION_JSON)
public Response listWork(... | package no.deichman.services.resources;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
@Path("/work")
public class Work {
@GET
@Path("/")
@Produces(MediaType.APPLICATION_JSON)
public Response listWork(... | Add headers to control Access | Add headers to control Access
| Java | mit | digibib/ls.ext,digibib/redef,digibib/redef,digibib/redef,digibib/ls.ext,digibib/ls.ext,digibib/redef,digibib/ls.ext,digibib/redef |
a079a955dfe3e0c1d098c24da85008353aa6417e | src/main/java/net/bourgau/philippe/concurrency/kata/Client.java | src/main/java/net/bourgau/philippe/concurrency/kata/Client.java | package net.bourgau.philippe.concurrency.kata;
import java.util.Scanner;
public class Client implements Broadcast {
private final ChatRoom chatRoom;
private final String name;
private final Output out;
public Client(String name, ChatRoom chatRoom, Output out) {
this.chatRoom = chatRoom;
... | package net.bourgau.philippe.concurrency.kata;
import java.util.Scanner;
public class Client implements Broadcast {
private final ChatRoom chatRoom;
private final String name;
private final Output out;
public Client(String name, ChatRoom chatRoom, Output out) {
this.chatRoom = chatRoom;
... | Clean exit from the command line client | Clean exit from the command line client
- 'bye' keyword exits the client
| Java | mit | philou/concurrency-kata,philou/concurrency-kata |
d03f540265a1491863900e35eb4be3e46b35d1c5 | project/src/main/java/com/google/sps/data/CompetitorInfo.java | project/src/main/java/com/google/sps/data/CompetitorInfo.java |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | Add class for competitor info | Add class for competitor info
| Java | apache-2.0 | googleinterns/sgonks,googleinterns/sgonks,googleinterns/sgonks,googleinterns/sgonks |
3052a1a376a0028d415a784d05b1ce7551ba9cc3 | src/test/java/com/twitter/diagnostics/PerfTracepointTest.java | src/test/java/com/twitter/diagnostics/PerfTracepointTest.java | package com.twitter.diagnostics;
import java.lang.reflect.Method;
import java.lang.NoSuchMethodException;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
class Tracepoints {
@PerfTracepoint static native void tracepoint0();
};
public class PerfTracepointTest exten... | package com.twitter.diagnostics;
import java.lang.reflect.Method;
import java.lang.NoSuchMethodException;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
class Tracepoints {
@PerfTracepoint static native void tracepoint0();
};
public class PerfTracepointTest exten... | Print a message if method reflection returns null. | Print a message if method reflection returns null.
| Java | apache-2.0 | twitter/PerfTracepoint |
c64ee6048aec4bb4c9592f3063994cae046ec7ed | src/test/java/eu/jasha/demo/sbtfragments/ApplicationTest.java | src/test/java/eu/jasha/demo/sbtfragments/ApplicationTest.java | /*
* Copyright 2021 Jasha Joachimsthal
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | /*
* Copyright 2021 Jasha Joachimsthal
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | Switch to assertJ to trigger Github Action | Switch to assertJ to trigger Github Action
| Java | apache-2.0 | jashaj/spring-boot-thymeleaf-fragments,jashaj/spring-boot-thymeleaf-fragments,jashaj/spring-boot-thymeleaf-fragments |
9dc8db7d3397239e48632bacf83e51144891e1b0 | src/test/java/org/yaml/snakeyaml/YamlTest.java | src/test/java/org/yaml/snakeyaml/YamlTest.java | /**
* Copyright (c) 2008-2010, http://www.snakeyaml.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | /**
* Copyright (c) 2008-2010, http://www.snakeyaml.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | Add test: check that documents are parsed only when they are asked to be loaded | Add test: check that documents are parsed only when they are asked to be loaded
| Java | apache-2.0 | bmoliveira/snake-yaml,alexarchambault/snakeyaml,bmoliveira/snake-yaml |
c825572c8f9c381f46e1b034e571809d3ff54454 | src/main/java/com/admicro/vertx/core/HttpServerContext.java | src/main/java/com/admicro/vertx/core/HttpServerContext.java | package com.admicro.vertx.core;
public interface HttpServerContext {
static final String ROOT_TAG = "server";
String configurationPath();
static HttpServerContext defaultContext() {
return new HttpServerContext() {
@Override
public String configurationPath() {
... | package com.admicro.vertx.core;
public interface HttpServerContext {
static final String ROOT_TAG = "server";
String configurationPath();
static HttpServerContext defaultContext() {
return () -> "server.xml";
}
}
| Replace anonymous class with lambda | Replace anonymous class with lambda
| Java | mit | tjeubaoit/vertx-servlet-wrapper,tjeubaoit/vertxlet |
ef067054faf0ab27038b2c3ce8e2c40e547f370f | src/main/java/org/grouplens/reflens/svd/FunkSVDFactory.java | src/main/java/org/grouplens/reflens/svd/FunkSVDFactory.java | package org.grouplens.reflens.svd;
import java.util.Collection;
import org.grouplens.reflens.Recommender;
import org.grouplens.reflens.bench.BenchmarkRecommenderFactory;
import org.grouplens.reflens.data.RatingVector;
import org.grouplens.reflens.data.integer.IntDataFactory;
public class FunkSVDFactory implements Be... | package org.grouplens.reflens.svd;
import java.util.Collection;
import org.grouplens.reflens.Recommender;
import org.grouplens.reflens.bench.BenchmarkRecommenderFactory;
import org.grouplens.reflens.data.RatingVector;
import org.grouplens.reflens.data.integer.IntDataFactory;
public class FunkSVDFactory implements Be... | Load FunkSVD learning rate from a property. | Load FunkSVD learning rate from a property.
| Java | lgpl-2.1 | binweiwu/lenskit,vaibhav345/lenskit,linjunleo/lenskit,kluver/lenskit,martinlaz/lenskit,kluver/lenskit,vaibhav345/lenskit,tajinder-txstate/lenskit,kluver/lenskit,amaliujia/lenskit,linjunleo/lenskit,aglne/lenskit,vaibhav345/lenskit,vijayvani/Lenskit,blankazucenalg/lenskit,blankazucenalg/lenskit,vijayvani/Lenskit,kluver/l... |
15be33a18e65436fd0f2044ae72619ed197a4aed | src/main/java/org/skife/jdbi/v2/logging/PrintStreamLog.java | src/main/java/org/skife/jdbi/v2/logging/PrintStreamLog.java | /*
* Copyright (C) 2004 - 2014 Brian McCallister
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | /*
* Copyright (C) 2004 - 2014 Brian McCallister
*
* 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 ... | Remove unnecessary synchronization on a PrintStream instance | Remove unnecessary synchronization on a PrintStream instance
| Java | apache-2.0 | jdbi/jdbi,stevenschlansker/jdbi,voidifremoved/jdbi,jdbi/jdbi,11xor6/jdbi,HubSpot/jdbi,john9x/jdbi,hgschmie/jdbi,omidp/jdbi,voidifremoved/jdbi,christophercurrie/jdbi,john9x/jdbi,zanebenefits/jdbi,omidp/jdbi,stevenschlansker/jdbi,fengshao0907/jdbi,jdbi/jdbi,pennello/jdbi,11xor6/jdbi,kentyeh/jdbi,HubSpot/jdbi,BernhardBln/... |
63e1f1ca1fba4f77c73f396a332e267d1c9e8569 | app/src/main/java/com/github/mobile/accounts/GitHubAccount.java | app/src/main/java/com/github/mobile/accounts/GitHubAccount.java | /*
* Copyright 2012 GitHub Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | /*
* Copyright 2012 GitHub Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | Update comment on authToken field | Update comment on authToken field | Java | apache-2.0 | njucsyyh/android,cnoldtree/PocketHub,weiyihz/PocketHub,pockethub/PocketHub,weiyihz/PocketHub,simple88/PocketHub,roadrunner1987/PocketHub,Meisolsson/PocketHub,hufsm/PocketHub,songful/PocketHub,funsociety/PocketHub,songful/PocketHub,Katariaa/PocketHub,JosephYao/android,ISkyLove/PocketHub,qiancy/PocketHub,qiancy/PocketHub... |
13994934b753a703745da6dc13f0eb8e47c32ea2 | python/src/com/jetbrains/python/console/ConsoleVisitorFilter.java | python/src/com/jetbrains/python/console/ConsoleVisitorFilter.java | package com.jetbrains.python.console;
import com.intellij.psi.PsiFile;
import com.jetbrains.python.inspections.*;
import com.jetbrains.python.validation.DocStringAnnotator;
import org.jetbrains.annotations.NotNull;
/**
* User : catherine
*
* filter out some python inspections and annotations if we're in console
*... | package com.jetbrains.python.console;
import com.intellij.psi.PsiFile;
import com.jetbrains.python.inspections.*;
import com.jetbrains.python.validation.DocStringAnnotator;
import org.jetbrains.annotations.NotNull;
/**
* User : catherine
*
* filter out some python inspections and annotations if we're in console
*... | Disable Encoding not specified inspection in console. | Disable Encoding not specified inspection in console.
| Java | apache-2.0 | apixandru/intellij-community,caot/intellij-community,ThiagoGarciaAlves/intellij-community,kdwink/intellij-community,allotria/intellij-community,kdwink/intellij-community,ahb0327/intellij-community,ol-loginov/intellij-community,gnuhub/intellij-community,petteyg/intellij-community,clumsy/intellij-community,lucafavatella/... |
cfc7ee19f09e99466846da458c72b68ac4f1b4d3 | src/org/sipc/se/plugin/PluginImpl.java | src/org/sipc/se/plugin/PluginImpl.java | package org.sipc.se.plugin;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public abstract class PluginImpl implements Plugin , Comparable<PluginImpl> {
private... | package org.sipc.se.plugin;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public abstract class PluginImpl implements Plugin , Comparable<PluginImpl> {
private... | Change function name of getServer | Change function name of getServer | Java | mit | DeckerCHAN/WebCraftHttpPlatform |
d95fc53d8f8b7c4d913ff02520c2692e6cd56891 | src/main/java/com/github/daytron/revworks/data/ErrorMsg.java | src/main/java/com/github/daytron/revworks/data/ErrorMsg.java | /*
* Copyright 2015 Ryan Gilera.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | /*
* Copyright 2015 Ryan Gilera.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Add error message for failed data send | Add error message for failed data send
| Java | apache-2.0 | Daytron/revworks |
45002c31d32d5b593ab1a705c49446099a7a6b20 | src/main/java/it/uniroma2/ember/EmberSensorsAggregation.java | src/main/java/it/uniroma2/ember/EmberSensorsAggregation.java | package it.uniroma2.ember;
import org.apache.flink.api.java.functions.KeySelector;
import org.apache.flink.api.java.tuple.Tuple2;
/**
* This is a utility class for aggregate statistics in Project Ember
*/
public class EmberSensorsAggregation {
/**
* Implements a simple KeySelector to divide by key (addre... | package it.uniroma2.ember;
import org.apache.flink.api.common.functions.JoinFunction;
import org.apache.flink.api.java.functions.KeySelector;
import org.apache.flink.api.java.tuple.Tuple2;
/**
* This is a utility class for aggregate statistics in Project Ember
*/
public class EmberSensorsAggregation {
/**
... | Add a simple and wrong data aggregation. | Add a simple and wrong data aggregation.
| Java | apache-2.0 | ProjectEmber/project-ember |
a8bfd1882135e4da195c4b7fd7f9cda66fb2a105 | src/main/java/uk/co/jezuk/mango/iterators/ChainIterator.java | src/main/java/uk/co/jezuk/mango/iterators/ChainIterator.java | package uk.co.jezuk.mango.iterators;
import java.util.Iterator;
import java.util.List;
import java.util.ArrayList;
public class ChainIterator<T> implements Iterator<T>
{
private final Iterator<Iterator<T>> chain_;
private Iterator<T> current_;
public ChainIterator(final Object... iterables)
{
final List<... | package uk.co.jezuk.mango.iterators;
import java.util.Iterator;
import java.util.List;
import java.util.ArrayList;
import java.util.NoSuchElementException;
public class ChainIterator<T> implements Iterator<T>
{
private final Iterator<Iterator<T>> chain_;
private Iterator<T> current_;
public ChainIterator(final... | Call hasNext in next to make sure we have an element available | Call hasNext in next to make sure we have an element available
| Java | lgpl-2.1 | jezhiggins/mango,jezhiggins/mango |
19e9f9172a8637009c0803e07027d76aca6731e5 | isoparser/src/main/java/org/mp4parser/SkipBox.java | isoparser/src/main/java/org/mp4parser/SkipBox.java | package org.mp4parser;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.SeekableByteChannel;
import java.nio.channels.WritableByteChannel;
public class SkipBox implements ParsableBox {
private String type;
private long size;
pr... | package org.mp4parser;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.WritableByteChannel;
public class SkipBox implements ParsableBox {
private String type;
private long size;
private lo... | Use FileChannel rather than SeekableByteChannel for Android compatibility | Use FileChannel rather than SeekableByteChannel for Android compatibility
| Java | apache-2.0 | sannies/mp4parser |
2dd8405761e08a4116cce61596191b9828da5265 | src/main/java/fr/bodul/demange/DisplayServlet.java | src/main/java/fr/bodul/demange/DisplayServlet.java | /**
* Copyright 2012 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | /**
* Copyright 2012 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | Add sorting with the Activation Date | Add sorting with the Activation Date
| Java | apache-2.0 | lborie/DemangeActivator,lborie/DemangeActivator,lborie/DemangeActivator |
a0aec759bff5aec42ddfab9fd081c6a10111b42d | gerrit/src/main/java/com/ruesga/rview/gerrit/filter/StatusType.java | gerrit/src/main/java/com/ruesga/rview/gerrit/filter/StatusType.java | /*
* Copyright (C) 2016 Jorge Ruesga
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | /*
* Copyright (C) 2016 Jorge Ruesga
*
* 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... | Annotate status draft for versions < 2.15 | Annotate status draft for versions < 2.15
| Java | apache-2.0 | jruesga/rview,jruesga/rview,jruesga/rview |
b9f94fadc1edd63d5fbb47bd9a24d26246de1d26 | alura/algoritmos/TestaMenorPreco.java | alura/algoritmos/TestaMenorPreco.java | public class TestaMenorPreco {
public static void main(String[] args) {
Produto produtos[] = {
new Produto("Lamborghini", 1000000),
new Produto("Jipe", 46000),
new Produto("Brasília", 16000),
new Produto("Smart", 46000),
new Produto("Fusca", 17000)
};
int maisBarato = 0;
... | public class TestaMenorPreco {
public static void main(String[] args) {
Produto produtos[] = {
new Produto("Lamborghini", 1000000),
new Produto("Jipe", 46000),
new Produto("Brasília", 16000),
new Produto("Smart", 46000),
new Produto("Fusca", 17000)
};
int maisBarato = busc... | Insert new files, Alura, Projeto de Algoritmos 1, Aula 11 | Insert new files, Alura, Projeto de Algoritmos 1, Aula 11
| Java | mit | fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs |
c3cdff70a8ecf349b0655fda59a765fd9bd1e172 | core-services/src/main/java/org/zalando/nakadi/ShutdownHooks.java | core-services/src/main/java/org/zalando/nakadi/ShutdownHooks.java | package org.zalando.nakadi;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.Closeable;
import java.util.HashSet;
import java.util.Set;
public class ShutdownHooks {
private static final Set<Runnable> HOOKS = new HashSet<>();
private static final Logger LOG = LoggerFactory.getLogger(Sh... | package org.zalando.nakadi;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.Closeable;
import java.util.HashSet;
import java.util.Set;
public class ShutdownHooks {
private static final Set<Runnable> HOOKS = new HashSet<>();
private static final Logger LOG = LoggerFactory.getLogger(Sh... | Revert "Trying direct printing instead of logs" | Revert "Trying direct printing instead of logs"
This reverts commit 92953b6f541fc94e7f4b93d5d8ac1faa8d240ca9.
| Java | mit | zalando/nakadi,zalando/nakadi |
2ff10b8fa6cea82291113d43941c4d7bc02d084c | io7m-jtensors-tests/src/test/java/com/io7m/jtensors/tests/Eq.java | io7m-jtensors-tests/src/test/java/com/io7m/jtensors/tests/Eq.java | /*
* Copyright © 2016 <code@io7m.com> http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ... | /*
* Copyright © 2016 <code@io7m.com> http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ... | Reduce double precision delta in tests | Reduce double precision delta in tests
This should reduce the occurrence of random test failures caused by
numerical imprecision.
| Java | isc | io7m/jtensors |
91fa7a8219027ebc5d94009e3ea9c6548337a713 | smack-core/src/main/java/org/jivesoftware/smack/sasl/SASLError.java | smack-core/src/main/java/org/jivesoftware/smack/sasl/SASLError.java | /**
*
* Copyright 2014 Florian Schmaus
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | /**
*
* Copyright 2014 Florian Schmaus
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | Add missing mechanism-too-weak SASL Error | Add missing mechanism-too-weak SASL Error
| Java | apache-2.0 | andrey42/Smack,u20024804/Smack,annovanvliet/Smack,vanitasvitae/smack-omemo,lovely3x/Smack,vanitasvitae/Smack,ayne/Smack,u20024804/Smack,Flowdalic/Smack,andrey42/Smack,mar-v-in/Smack,vanitasvitae/Smack,opg7371/Smack,Flowdalic/Smack,xuIcream/Smack,annovanvliet/Smack,magnetsystems/message-smack,ayne/Smack,Tibo-lg/Smack,es... |
e1e5db6743f6ac69d8189c41e460fa7526e8c7a9 | tests/src-android/cgeo/geocaching/connector/gc/WaypointsTest.java | tests/src-android/cgeo/geocaching/connector/gc/WaypointsTest.java | package cgeo.geocaching.connector.gc;
import static org.assertj.core.api.Assertions.assertThat;
import cgeo.CGeoTestCase;
import cgeo.geocaching.SearchResult;
import cgeo.geocaching.enumerations.LoadFlags;
import cgeo.geocaching.models.Geocache;
import cgeo.geocaching.storage.DataStore;
import cgeo.geocaching.utils.C... | package cgeo.geocaching.connector.gc;
import static org.assertj.core.api.Assertions.assertThat;
import cgeo.CGeoTestCase;
import cgeo.geocaching.SearchResult;
import cgeo.geocaching.enumerations.LoadFlags;
import cgeo.geocaching.models.Geocache;
import cgeo.geocaching.storage.DataStore;
import cgeo.geocaching.utils.C... | Fix compile error in WayPointsTest.java | Fix compile error in WayPointsTest.java
- as they are currently excluded in gradle, this did not affect the build
| Java | apache-2.0 | pstorch/cgeo,matej116/cgeo,rsudev/c-geo-opensource,cgeo/cgeo,S-Bartfast/cgeo,mucek4/cgeo,tobiasge/cgeo,tobiasge/cgeo,samueltardieu/cgeo,Bananeweizen/cgeo,cgeo/cgeo,kumy/cgeo,S-Bartfast/cgeo,kumy/cgeo,auricgoldfinger/cgeo,mucek4/cgeo,Bananeweizen/cgeo,rsudev/c-geo-opensource,kumy/cgeo,tobiasge/cgeo,cgeo/cgeo,pstorch/cge... |
91b56ee8e376ffe1e26e1c397108b10c2ff00ff7 | core/src/test/java/io/undertow/util/SecureHashMapTestCase.java | core/src/test/java/io/undertow/util/SecureHashMapTestCase.java | /*
* JBoss, Home of Professional Open Source.
* Copyright 2012 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Licen... | /*
* JBoss, Home of Professional Open Source.
* Copyright 2012 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Licen... | Add to secure hash map test | Add to secure hash map test
| Java | apache-2.0 | jstourac/undertow,undertow-io/undertow,popstr/undertow,amannm/undertow,wildfly-security-incubator/undertow,ctomc/undertow,popstr/undertow,golovnin/undertow,aradchykov/undertow,ctomc/undertow,stuartwdouglas/undertow,n1hility/undertow,emag/codereading-undertow,soul2zimate/undertow,jstourac/undertow,golovnin/undertow,bara... |
df495a55e910db2e8dc9ca2a740bf1c43c4821e0 | src/main/java/seedu/ezdo/commons/core/Messages.java | src/main/java/seedu/ezdo/commons/core/Messages.java | package seedu.ezdo.commons.core;
/**
* Container for user visible messages.
*/
public class Messages {
public static final String MESSAGE_UNKNOWN_COMMAND = "Unknown command";
public static final String MESSAGE_INVALID_COMMAND_FORMAT = "Invalid command format! \n%1$s";
public static final String MESSAGE_... | package seedu.ezdo.commons.core;
/**
* Container for user visible messages.
*/
public class Messages {
public static final String MESSAGE_UNKNOWN_COMMAND = "Unknown command";
public static final String MESSAGE_INVALID_COMMAND_FORMAT = "Invalid command format! \n%1$s";
public static final String MESSAGE_... | Update error message for Select command (if a task is already done) | Update error message for Select command (if a task is already done)
| Java | mit | CS2103JAN2017-W14-B4/main,CS2103JAN2017-W14-B4/main |
893f008addf91e72b5f27ac428a660d1fef5e09f | src/main/com/roly/nfc/crypto/view/nfc/KeyPickerDialogFragment.java | src/main/com/roly/nfc/crypto/view/nfc/KeyPickerDialogFragment.java | package com.roly.nfc.crypto.view.nfc;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import com.roly.nfc.crypto.R;
public class Key... | package com.roly.nfc.crypto.view.nfc;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import com.roly.nfc.crypto.R;
public class Key... | Remove title in Key Picker dialog | Remove title in Key Picker dialog
| Java | apache-2.0 | OlivierGonthier/CryptoNFC |
8573f6aab9dd861650c8238280ce4fcc6da7c92d | src/main/java/com/github/aureliano/achmed/os/IOperatingSystem.java | src/main/java/com/github/aureliano/achmed/os/IOperatingSystem.java | package com.github.aureliano.achmed.os;
import com.github.aureliano.achmed.command.CommandResponse;
import com.github.aureliano.achmed.os.pkg.IPackageManager;
import com.github.aureliano.achmed.os.service.IService;
import com.github.aureliano.achmed.types.OS;
import com.github.aureliano.achmed.types.OperatingSystemFam... | package com.github.aureliano.achmed.os;
import com.github.aureliano.achmed.command.CommandResponse;
import com.github.aureliano.achmed.os.pkg.IPackageManager;
import com.github.aureliano.achmed.os.service.IService;
import com.github.aureliano.achmed.types.OS;
import com.github.aureliano.achmed.types.OperatingSystemFam... | Add abstract method in order to make prototypes. | Add abstract method in order to make prototypes.
| Java | mit | aureliano/achmed |
84cf8d7616023a468782cfda09ec7fb3a888ad89 | src/main/java/com/github/slidekb/back/settings/PluginSettings.java | src/main/java/com/github/slidekb/back/settings/PluginSettings.java | package com.github.slidekb.back.settings;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class PluginSettings {
List<String> processes;
List<String> hotkeys;
boolean alwaysRun;
String[] sliderList;
public String getSliderAtIndex(int index) {
return slid... | package com.github.slidekb.back.settings;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class PluginSettings {
List<String> processes;
List<String> hotkeys;
boolean alwaysRun;
String[] sliderList;
public String getSliderAtIndex(int index) {
validateSli... | Make sure there always is a valid array | Make sure there always is a valid array
| Java | apache-2.0 | SlideKB/SlideBar |
53f383535cf71aee42ac89a35f17985bf196bb75 | Chat/src/ru/nsu/ccfit/bogush/msg/MessageHandler.java | Chat/src/ru/nsu/ccfit/bogush/msg/MessageHandler.java | package ru.nsu.ccfit.bogush.msg;
public interface MessageHandler {
void handle(LoginMessage message);
void handle(LogoutMessage message);
void handle(SuccessMessage message);
void handle(ErrorMessage message);
void handle(TextMessage message);
void handle(UserListMessage message);
void handle(Message message);
... | package ru.nsu.ccfit.bogush.msg;
public interface MessageHandler {
void handle(LoginMessage message);
void handle(LogoutMessage message);
void handle(SuccessMessage message);
void handle(ErrorMessage message);
void handle(TextMessage message);
void handle(UserListMessage message);
void handle(UserEnteredMessage... | Add user enter/left message handle methods | Add user enter/left message handle methods
| Java | mit | RoyPy/15201-bogush |
61baac10fc60f9bb67aa5e65fe23697db9c173b1 | src/main/java/App.java | src/main/java/App.java | import backend.Core;
import java.io.IOException;
import parse.GreetParser;
import parse.StepParser;
public class App {
public String getGreeting() {
return "Hello world.";
}
/**
* Main entry point to G2Tutorial.
*
* @param args commandline arguments
*/
public static void main(String[] args) {... | import backend.Core;
import java.io.IOException;
import parse.GreetParser;
import parse.StepParser;
public class App {
public String getGreeting() {
return "Hello world.";
}
/**
* Main entry point to G2Tutorial.
*
* @param args commandline arguments
*/
public static void main(String[] args) {... | Add missing commands to default help prompt | Add missing commands to default help prompt
| Java | epl-1.0 | ECSE456-G29/Untitled |
2fd6486ac6bc05dbe06e67bcdc8896f7b32ee5b2 | placebooks-webapp/src/placebooks/client/ui/items/WebBundleItem.java | placebooks-webapp/src/placebooks/client/ui/items/WebBundleItem.java | package placebooks.client.ui.items;
import placebooks.client.model.PlaceBookItem;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.Frame;
public class WebBundleItem extends PlaceBookItemWidget
{
private final Frame frame = new Frame("http://www.google.co.uk");
private String url;
... | package placebooks.client.ui.items;
import placebooks.client.model.PlaceBookItem;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.Frame;
public class WebBundleItem extends PlaceBookItemWidget
{
private final Frame frame = new Frame("http://www.google.co.uk");
private String url;
... | Fix Web Bundle not resizing correctly | Fix Web Bundle not resizing correctly | Java | agpl-3.0 | horizon-institute/placebooks,horizon-institute/placebooks |
3cef554302ac9ac4876bd265831491635d4fc547 | src/main/java/no/difi/sdp/client/asice/signature/Signature.java | src/main/java/no/difi/sdp/client/asice/signature/Signature.java | package no.difi.sdp.client.asice.signature;
import no.difi.sdp.client.asice.AsicEAttachable;
public class Signature implements AsicEAttachable {
private final byte[] xmlBytes;
public Signature(byte[] xmlBytes) {
this.xmlBytes = xmlBytes;
}
@Override
public String getFileName() {
... | package no.difi.sdp.client.asice.signature;
import no.difi.sdp.client.asice.AsicEAttachable;
public class Signature implements AsicEAttachable {
private final byte[] xmlBytes;
public Signature(byte[] xmlBytes) {
this.xmlBytes = xmlBytes;
}
@Override
public String getFileName() {
... | Set mime type for signature even though it's not used | Set mime type for signature even though it's not used
| Java | apache-2.0 | difi/sikker-digital-post-java-klient,difi/sikker-digital-post-klient-java |
e4350e625129472d7dbc6b77637bc08c00917670 | app/src/main/java/com/permutassep/presentation/utils/ParseUtils.java | app/src/main/java/com/permutassep/presentation/utils/ParseUtils.java | package com.permutassep.presentation.utils;
import com.parse.ParseInstallation;
/**
* By Jorge E. Hernandez (@lalongooo) 2015
*/
public class ParseUtils {
private static final String PARSE_INSTALLATION_COLUMN_PS_USER = "PSUser";
public static void setUpParseInstallationUser(int userId) {
ParseIn... | package com.permutassep.presentation.utils;
import com.parse.ParseInstallation;
/**
* By Jorge E. Hernandez (@lalongooo) 2015
*/
public class ParseUtils {
private static final String PARSE_INSTALLATION_COLUMN_PS_USER = "PSUser";
public static void setUpParseInstallationUser(int userId) {
ParseIn... | Use saveEventually() instead of saveInBackground() | Use saveEventually() instead of saveInBackground()
| Java | mit | lalongooo/permutas-sep-android,lalongooo/permutas-sep |
8af3fb06a577701885945577071c1470190a44d9 | src/main/java/it/reply/orchestrator/Application.java | src/main/java/it/reply/orchestrator/Application.java | /*
* Copyright © 2015-2018 Santer Reply S.p.A.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | /*
* Copyright © 2015-2018 Santer Reply S.p.A.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | Remove unused code left from JBMP -> Flowable migration | Remove unused code left from JBMP -> Flowable migration | Java | apache-2.0 | indigo-dc/orchestrator,indigo-dc/orchestrator |
8661a20ed8730484f3a195d8d80e5487e511fa0c | sample/src/main/java/com/jenzz/appstate/sample/SampleApplication.java | sample/src/main/java/com/jenzz/appstate/sample/SampleApplication.java | package com.jenzz.appstate.sample;
import android.app.Application;
import android.widget.Toast;
import com.jenzz.appstate.AppState;
import com.jenzz.appstate.AppStateListener;
import com.jenzz.appstate.RxAppState;
import rx.functions.Action1;
import static android.widget.Toast.LENGTH_LONG;
import static com.jenzz.app... | package com.jenzz.appstate.sample;
import android.app.Application;
import android.util.Log;
import android.widget.Toast;
import com.jenzz.appstate.AppState;
import com.jenzz.appstate.AppStateListener;
import com.jenzz.appstate.RxAppState;
import rx.functions.Action1;
import static android.widget.Toast.LENGTH_LONG;
... | Add logging for app state changes | Add logging for app state changes
| Java | mit | jenzz/RxAppState |
ade9519200bb73bf580d29fa389bbcb5bc53f32e | test/ConnectionTest.java | test/ConnectionTest.java | package yaz4jtest;
import org.junit.*;
import static org.junit.Assert.*;
import java.util.*;
public class ConnectionTest {
@Test
public void testConnection() {
org.yaz4j.Connection con = new org.yaz4j.Connection("z3950.indexdata.dk:210/gils", 0);
assertNotNull(con);
org.yaz4j.PrefixQuery pqf = new org.yaz4j.Pr... | package yaz4jtest;
import org.junit.*;
import static org.junit.Assert.*;
import java.util.*;
public class ConnectionTest {
@Test
public void testConnection() {
org.yaz4j.Connection con = new org.yaz4j.Connection("z3950.indexdata.dk:210/gils", 0);
assertNotNull(con);
con.setSyntax("sutrs");
org.yaz4j.PrefixQu... | Use ResultSet and Record in test. | Use ResultSet and Record in test.
| Java | bsd-3-clause | indexgeo/yaz4j,janek109/yaz4j,indexgeo/yaz4j,janek109/yaz4j,indexgeo/yaz4j,indexgeo/yaz4j,nla/yaz4j,janek109/yaz4j,nla/yaz4j,nla/yaz4j,nla/yaz4j,janek109/yaz4j |
17c56194e1d079fb1d527a90e8ebb7a06015724e | src/test/java/water/cookbook/Cookbook.java | src/test/java/water/cookbook/Cookbook.java | package water.cookbook;
import org.junit.*;
import water.*;
import water.fvec.*;
import water.util.Log;
import water.util.RemoveAllKeysTask;
public class Cookbook extends TestUtil {
@Before
public void removeAllKeys() {
Log.info("Removing all keys...");
RemoveAllKeysTask collector = new RemoveAllKeysTask(... | package water.cookbook;
import org.junit.*;
import water.*;
import water.fvec.*;
import water.util.Log;
import water.util.RemoveAllKeysTask;
public class Cookbook extends TestUtil {
@Before
public void removeAllKeys() {
Log.info("Removing all keys...");
RemoveAllKeysTask collector = new RemoveAllKeysTask(... | Comment out tests that fail intentionally (for testing purposes). | Comment out tests that fail intentionally (for testing purposes).
| Java | apache-2.0 | rowhit/h2o-2,h2oai/h2o,eg-zhang/h2o-2,elkingtonmcb/h2o-2,111t8e/h2o-2,rowhit/h2o-2,100star/h2o,100star/h2o,calvingit21/h2o-2,eg-zhang/h2o-2,111t8e/h2o-2,h2oai/h2o,100star/h2o,h2oai/h2o-2,rowhit/h2o-2,h2oai/h2o,111t8e/h2o-2,100star/h2o,elkingtonmcb/h2o-2,rowhit/h2o-2,rowhit/h2o-2,h2oai/h2o,rowhit/h2o-2,eg-zhang/h2o-2,ro... |
60cfb9623f4d7bab29633e45a63de02f024def6d | src/test/java/info/u_team/u_team_test/init/TestEnchantments.java | src/test/java/info/u_team/u_team_test/init/TestEnchantments.java | package info.u_team.u_team_test.init;
import info.u_team.u_team_test.enchantment.AutoSmeltEnchantment;
import net.minecraft.enchantment.Enchantment;
public class TestEnchantments {
public static final Enchantment AUTO_SMELT = new AutoSmeltEnchantment("auto_smelt");
}
| package info.u_team.u_team_test.init;
import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.enchantment.AutoSmeltEnchantment;
import net.minecraft.enchantment.Enchantment;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.registries.*;
public class TestEnchantments {
publ... | Add deferred register to enchantments | Add deferred register to enchantments | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
abd65e37cc0ddd434672aff1b76cfc9ea38ce711 | presto-parser/src/main/java/com/facebook/presto/sql/util/AstUtils.java | presto-parser/src/main/java/com/facebook/presto/sql/util/AstUtils.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... | Replace usage of deprecated TreeTraverser | Replace usage of deprecated TreeTraverser
| Java | apache-2.0 | electrum/presto,twitter-forks/presto,martint/presto,smartnews/presto,11xor6/presto,mvp/presto,EvilMcJerkface/presto,prestodb/presto,arhimondr/presto,smartnews/presto,hgschmie/presto,hgschmie/presto,dain/presto,Praveen2112/presto,erichwang/presto,arhimondr/presto,ptkool/presto,erichwang/presto,treasure-data/presto,ebyhr... |
2769a6b4faf0d9663297bcb2c2cc2ce2982bda65 | src/main/java/leetcode/Problem63.java | src/main/java/leetcode/Problem63.java | package leetcode;
/**
* https://leetcode.com/problems/unique-paths-ii/
*/
public class Problem63 {
public int uniquePathsWithObstacles(int[][] obstacleGrid) {
// TODO: implement this
return 0;
}
public static void main(String[] args) {
Problem63 prob = new Problem63();
... | package leetcode;
/**
* https://leetcode.com/problems/unique-paths-ii/
*/
public class Problem63 {
public int uniquePathsWithObstacles(int[][] obstacleGrid) {
if (obstacleGrid.length == 0) {
return 0;
}
return findPaths(obstacleGrid, obstacleGrid.length-1, obstacleGrid[0].leng... | Update problem 63 (too slow) | Update problem 63 (too slow)
| Java | mit | fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode |
60b7902f31bd364e987dbf975a6efdf60686129d | MatCalcitePlugin/src/com/github/vlsi/mat/optiq/HeapFunctions.java | MatCalcitePlugin/src/com/github/vlsi/mat/optiq/HeapFunctions.java | package com.github.vlsi.mat.optiq;
public class HeapFunctions {
public static int get_id(Object r) {
if (r == null || !(r instanceof HeapReference)) return -1;
return ((HeapReference) r).getIObject().getObjectId();
}
}
| package com.github.vlsi.mat.optiq;
public class HeapFunctions {
public static int get_id(Object r) {
if (r == null || !(r instanceof HeapReference)) return -1;
return ((HeapReference) r).getIObject().getObjectId();
}
public static String toString(Object r) {
if (r == null) return n... | Add toString to simplify conversion to String (e.g. references) | Add toString to simplify conversion to String (e.g. references)
| Java | apache-2.0 | vlsi/mat-calcite-plugin,vlsi/mat-calcite-plugin |
2e6745bcc99d6e3099669a9489c5997ae89d7037 | Secludedness-android/src/de/dbaelz/secludedness/MainActivity.java | Secludedness-android/src/de/dbaelz/secludedness/MainActivity.java | package de.dbaelz.secludedness;
import android.os.Bundle;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import de.dbaelz.secludedness.MainGame;
public class MainActivity extends AndroidApplication {
@Override
public voi... | package de.dbaelz.secludedness;
import android.os.Bundle;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import de.dbaelz.secludedness.MainGame;
public class MainActivity extends AndroidApplication {
@Override
public voi... | Add support for accelerometer and wakelock | Android: Add support for accelerometer and wakelock
| Java | apache-2.0 | dbaelz/Secludedness,dbaelz/Secludedness |
a5734b02e74650325b6a5594e1dff59f884e33d2 | src/main/java/co/uk/jiveelection/campaign/App.java | src/main/java/co/uk/jiveelection/campaign/App.java | package co.uk.jiveelection.campaign;
import java.io.IOException;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import twitter4j.TwitterException;
import co.uk.jiveelection.campaign.twit.TwitHelper;
/**
* Main entry point for the Jive Campaign application. Sets up a continuously running loop t... | package co.uk.jiveelection.campaign;
import co.uk.jiveelection.campaign.twit.TwitHelper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import twitter4j.TwitterException;
import java.io.IOException;
/**
* Main entry point for the Jive Campaign... | Add Theresa May Jive bot | Add Theresa May Jive bot
| Java | mit | mezpahlan/jivecampaign |
a6f2ffd6070fe85c2950c2901a72b41c64739add | cdap-api/src/main/java/co/cask/cdap/api/procedure/ProcedureContext.java | cdap-api/src/main/java/co/cask/cdap/api/procedure/ProcedureContext.java | /*
/*
* Copyright © 2014 Cask Data, 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 agree... | /*
/*
* Copyright © 2014 Cask Data, 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 agree... | Fix deprecation tag to link to service instead of context. | Fix deprecation tag to link to service instead of context.
| Java | apache-2.0 | caskdata/cdap,mpouttuclarke/cdap,anthcp/cdap,hsaputra/cdap,hsaputra/cdap,mpouttuclarke/cdap,hsaputra/cdap,chtyim/cdap,chtyim/cdap,caskdata/cdap,chtyim/cdap,hsaputra/cdap,hsaputra/cdap,chtyim/cdap,chtyim/cdap,anthcp/cdap,mpouttuclarke/cdap,caskdata/cdap,mpouttuclarke/cdap,caskdata/cdap,anthcp/cdap,chtyim/cdap,caskdata/c... |
2d4c125f68f097eb922472a44ebafa81cc04544a | src/common/me/nallar/tickthreading/minecraft/commands/TicksCommand.java | src/common/me/nallar/tickthreading/minecraft/commands/TicksCommand.java | package me.nallar.tickthreading.minecraft.commands;
import java.util.List;
import me.nallar.tickthreading.minecraft.TickThreading;
import me.nallar.tickthreading.util.TableFormatter;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.Entity;
import net.minecraft.world.World;
import net.... | package me.nallar.tickthreading.minecraft.commands;
import java.util.List;
import me.nallar.tickthreading.minecraft.TickThreading;
import me.nallar.tickthreading.util.TableFormatter;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.Entity;
import net.minecraft.world.World;
import net.... | Fix error on /ticks command with invalid parameters. | Fix error on /ticks command with invalid parameters.
Signed-off-by: Ross Allan <ca2c77e14df1e7ee673215c1ef658354e220f471@gmail.com>
| Java | mit | nallar/TickThreading |
03f7c2ad2612fcfbdbfc8c94f0227d6d877a25ba | src/main/java/net/aeronica/mods/mxtune/world/IModLockableContainer.java | src/main/java/net/aeronica/mods/mxtune/world/IModLockableContainer.java | /*
* Aeronica's mxTune MOD
* Copyright {2016} Paul Boese a.k.a. Aeronica
*
* 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
*
* Unles... | /*
* Aeronica's mxTune MOD
* Copyright {2016} Paul Boese a.k.a. Aeronica
*
* 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
*
* Unles... | Add isOwner EntityPlayer signature method to the interface. | Add isOwner EntityPlayer signature method to the interface.
| Java | apache-2.0 | Aeronica/mxTune |
f5f2a50dfbda96dd88905512025706ea054da9db | subprojects/base-services/src/main/java/org/gradle/api/Transformer.java | subprojects/base-services/src/main/java/org/gradle/api/Transformer.java | /*
* Copyright 2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Rename type tokens for clarity. | Rename type tokens for clarity.
I always get this around the wrong way the first time.
| Java | apache-2.0 | robinverduijn/gradle,lsmaira/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gstevey/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gstevey/gradle,gradle/gradle,gstevey/gradle,gstevey/gradle,gstevey/gradle,gstevey/gradle,robinverd... |
c5a929f2bb52ac6683279e8353db58f7064ae54b | src/main/java/mezz/jei/gui/DrawableResource.java | src/main/java/mezz/jei/gui/DrawableResource.java | package mezz.jei.gui;
import mezz.jei.api.gui.IDrawable;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.Gui;
import net.minecraft.util.ResourceLocation;
import javax.annotation.Nonnull;
public class DrawableResource extends Gui implements IDrawable {
@Nonnull
private final ResourceLocation... | package mezz.jei.gui;
import cpw.mods.fml.client.config.GuiUtils;
import mezz.jei.api.gui.IDrawable;
import net.minecraft.client.Minecraft;
import net.minecraft.util.ResourceLocation;
import javax.annotation.Nonnull;
public class DrawableResource implements IDrawable {
@Nonnull
private final ResourceLocation reso... | Use GuiUtils instead of extending Gui | Use GuiUtils instead of extending Gui
| Java | mit | mezz/JustEnoughItems,mezz/JustEnoughItems,way2muchnoise/JustEnoughItems,Adaptivity/JustEnoughItems,Adaptivity/JustEnoughItems |
b0652aecbc7345428c9d852a2bffde1daf07e137 | src/main/java/com/foundationdb/server/GetVersion.java | src/main/java/com/foundationdb/server/GetVersion.java | /**
* Copyright (C) 2009-2013 FoundationDB, LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Thi... | /**
* Copyright (C) 2009-2013 FoundationDB, LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Thi... | Add -v flag for dumping everything | Add -v flag for dumping everything
| Java | agpl-3.0 | qiuyesuifeng/sql-layer,jaytaylor/sql-layer,jaytaylor/sql-layer,relateiq/sql-layer,relateiq/sql-layer,ngaut/sql-layer,qiuyesuifeng/sql-layer,ngaut/sql-layer,qiuyesuifeng/sql-layer,shunwang/sql-layer-1,jaytaylor/sql-layer,jaytaylor/sql-layer,shunwang/sql-layer-1,relateiq/sql-layer,wfxiang08/sql-layer-1,ngaut/sql-layer,qi... |
28393ef7547a598346ceb9697701d12ec4baf413 | src/main/java/info/u_team/u_team_core/gui/elements/UTextField.java | src/main/java/info/u_team/u_team_core/gui/elements/UTextField.java | package info.u_team.u_team_core.gui.elements;
import info.u_team.u_team_core.api.gui.IRenderTickable;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.widget.TextFieldWidget;
import net.minecraft.util.text.ITextComponent;
public class UTextField extends TextFieldWidget implements IRenderT... | package info.u_team.u_team_core.gui.elements;
import info.u_team.u_team_core.api.gui.IRenderTickable;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.widget.TextFieldWidget;
import net.minecraft.util.text.ITextComponent;
public class UTextField extends TextFieldWidget implements IRenderT... | Copy things from previous text field | Copy things from previous text field | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
5ee3f28739700e97b91231a2b694f3ba78065e86 | src/main/java/com/googlesource/gerrit/plugins/cookbook/HelloTopMenu.java | src/main/java/com/googlesource/gerrit/plugins/cookbook/HelloTopMenu.java | // Copyright (C) 2013 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) 2013 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 ... | Add example of extending Gerrit's top menu item | Add example of extending Gerrit's top menu item
Add a "Browse Repositories" item in the "Projects" menu.
Change-Id: I67af5bca1a14288147b1bc43fb089ba0abe0d6b2
| Java | apache-2.0 | akilman/appd-hackathon-2016,GerritCodeReview/plugins_cookbook-plugin,GerritCodeReview/plugins_cookbook-plugin,akilman/appd-hackathon-2016,pgroudas/gerrit-keep-approvals,akilman/appd-hackathon-2016,pgroudas/gerrit-keep-approvals,GerritCodeReview/plugins_cookbook-plugin |
db44748e593166fdff24cef275e13d0dfb56df3b | src/net/java/sip/communicator/impl/gui/lookandfeel/SIPCommMenuBarUI.java | src/net/java/sip/communicator/impl/gui/lookandfeel/SIPCommMenuBarUI.java | /*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.gui.lookandfeel;
import javax.swing.*;
import javax.swing.plaf.*;
import javax.swing.plaf.basic.*;
/**
* @author Yana S... | /*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.gui.lookandfeel;
import javax.swing.*;
import javax.swing.plaf.*;
import javax.swing.plaf.basic.*;
/**
* @author Yana S... | Fix NullPointerException when starting SC. | Fix NullPointerException when starting SC.
| Java | apache-2.0 | ringdna/jitsi,HelioGuilherme66/jitsi,damencho/jitsi,gpolitis/jitsi,bhatvv/jitsi,iant-gmbh/jitsi,level7systems/jitsi,level7systems/jitsi,gpolitis/jitsi,bhatvv/jitsi,laborautonomo/jitsi,bebo/jitsi,procandi/jitsi,damencho/jitsi,jitsi/jitsi,cobratbq/jitsi,gpolitis/jitsi,laborautonomo/jitsi,Metaswitch/jitsi,iant-gmbh/jitsi,... |
4675ac85770ec8eaf285d8e12d753a7b5abd2130 | src/main/java/io/gravitee/repository/management/model/EventType.java | src/main/java/io/gravitee/repository/management/model/EventType.java | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | Rename events relative to the gateway | feat(instance): Rename events relative to the gateway
| Java | apache-2.0 | gravitee-io/gravitee-repository |
f706302398e4e3f13ac343e0fdf6725a393c972f | src/test/java/hu/kazocsaba/math/geometry/fitting/LineFitterTest.java | src/test/java/hu/kazocsaba/math/geometry/fitting/LineFitterTest.java | package hu.kazocsaba.math.geometry.fitting;
import hu.kazocsaba.math.matrix.Vector2;
import java.util.List;
import hu.kazocsaba.math.geometry.Line2;
import hu.kazocsaba.math.matrix.immutable.ImmutableMatrixFactory;
import java.util.ArrayList;
import java.util.Random;
import org.junit.Test;
import static org.junit.Asse... | package hu.kazocsaba.math.geometry.fitting;
import hu.kazocsaba.math.geometry.DegenerateCaseException;
import hu.kazocsaba.math.matrix.Vector2;
import java.util.List;
import hu.kazocsaba.math.geometry.Line2;
import hu.kazocsaba.math.matrix.MatrixFactory;
import hu.kazocsaba.math.matrix.immutable.ImmutableMatrixFactory... | Add test for degenerate line fitter task. | Add test for degenerate line fitter task.
| Java | mit | kazocsaba/fitting |
32e4fd0063c45cde83386190371642df4988b6ff | src/main/java/seedu/ezdo/commons/core/Messages.java | src/main/java/seedu/ezdo/commons/core/Messages.java | package seedu.ezdo.commons.core;
/**
* Container for user visible messages.
*/
public class Messages {
public static final String MESSAGE_UNKNOWN_COMMAND = "Unknown command";
public static final String MESSAGE_INVALID_COMMAND_FORMAT = "Invalid command format! \n%1$s";
public static final String MESSAGE_... | package seedu.ezdo.commons.core;
/**
* Container for user visible messages.
*/
public class Messages {
public static final String MESSAGE_UNKNOWN_COMMAND = "Unknown command";
public static final String MESSAGE_INVALID_COMMAND_FORMAT = "Invalid command format! \n%1$s";
public static final String MESSAGE_... | Add punctuation to messages to improve consistency | Add punctuation to messages to improve consistency
| Java | mit | CS2103JAN2017-W14-B4/main,CS2103JAN2017-W14-B4/main |
4e28756866640f9357c1d8cc573f27b6056652f8 | src/main/java/com/epam/ta/reportportal/ws/model/dashboard/AddWidgetRq.java | src/main/java/com/epam/ta/reportportal/ws/model/dashboard/AddWidgetRq.java | package com.epam.ta.reportportal.ws.model.dashboard;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
/**
* @author Pavel Bortnik
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
publi... | package com.epam.ta.reportportal.ws.model.dashboard;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
/**
* @author Pavel Bortnik
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
publi... | Add widget property has been renamed | Add widget property has been renamed
| Java | apache-2.0 | reportportal/commons-model |
cf501f8434d602db4b607d5cfaefc6cfb55971ef | src/main/java/com/thinksincode/tailstreamer/controller/MainController.java | src/main/java/com/thinksincode/tailstreamer/controller/MainController.java | package com.thinksincode.tailstreamer.controller;
import com.thinksincode.tailstreamer.FileTailService;
import com.thinksincode.tailstreamer.TailStreamer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.spr... | package com.thinksincode.tailstreamer.controller;
import com.thinksincode.tailstreamer.FileTailService;
import com.thinksincode.tailstreamer.TailStreamer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.spr... | Truncate filename if it exceeds 50 characters | Truncate filename if it exceeds 50 characters
| Java | mit | joeattardi/tailstreamer,joeattardi/tailstreamer,joeattardi/tailstreamer |
2e9e6227f79c422d10c38841e0d00f4e3fb82483 | src/main/java/com/btisystems/pronx/ems/core/model/INetworkDevice.java | src/main/java/com/btisystems/pronx/ems/core/model/INetworkDevice.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... | Make NetworkDevice serializable to help with potential cache implementations. | Make NetworkDevice serializable to help with potential cache implementations. | Java | apache-2.0 | btisystems/snmp-core,btisystems/snmp-core |
336af3e15f4f52e2261df58ff4abf29933d0de87 | src/main/java/org/apache/hadoop/hbase/client/AbstractHbaseClient.java | src/main/java/org/apache/hadoop/hbase/client/AbstractHbaseClient.java | package org.apache.hadoop.hbase.client;
/**
* Abstract class necessary to access protected parameters
*/
public abstract class AbstractHbaseClient {
protected final String clusterId;
/**
* Constructor
*
* @param connection to use for connection
*/
public AbstractHbaseClient(HConnection connection)... | package org.apache.hadoop.hbase.client;
/**
* Abstract class necessary to access protected parameters
*/
public abstract class AbstractHbaseClient {
protected final String clusterId;
private final HConnection connection;
/**
* Constructor
*
* @param connection to use for connection
*/
public Abs... | Add method to get Connection from HbaseClient | Add method to get Connection from HbaseClient
| Java | apache-2.0 | jurmous/async-hbase-client |
3ef358f07245e4c6a79a78c37099691c715e528e | src/main/java/com/srs/tetris/bob/evaluator/DangerZoneEvaluator.java | src/main/java/com/srs/tetris/bob/evaluator/DangerZoneEvaluator.java | package com.srs.tetris.bob.evaluator;
import com.srs.tetris.bob.Position;
import com.srs.tetris.game.BitBoard;
/**
* Gives a high
*/
public class DangerZoneEvaluator implements PositionEvaluator {
private int dangerZoneSize;
private double exponent;
public DangerZoneEvaluator(int dangerZoneSize, double exponent... | package com.srs.tetris.bob.evaluator;
import com.srs.tetris.bob.Position;
import com.srs.tetris.game.BitBoard;
/**
* Gives a high
*/
public class DangerZoneEvaluator implements PositionEvaluator {
private int dangerZoneSize;
private double exponent;
public DangerZoneEvaluator(int dangerZoneSize, double exponent... | Fix out of bounds exception when danger zone is larger than the board | Fix out of bounds exception when danger zone is larger than the board
| Java | mit | seanstephenson/tetris-bob |
70be153d760ff8434b8724ba53d603a3f9724c4f | src/main/java/org/skyscreamer/yoga/selector/AbstractSelectable.java | src/main/java/org/skyscreamer/yoga/selector/AbstractSelectable.java | package org.skyscreamer.yoga.selector;
import java.util.Set;
public abstract class AbstractSelectable implements Selectable
{
private Set<SelectorField> _selectorFields;
public AbstractSelectable( Selector selector )
{
_selectorFields = selector.getFields();
}
public Set<SelectorField> g... | package org.skyscreamer.yoga.selector;
import java.util.Collections;
import java.util.Set;
public abstract class AbstractSelectable implements Selectable
{
private Set<SelectorField> _selectorFields;
public AbstractSelectable() {}
public AbstractSelectable( Selector selector )
{
setSelector(... | Allow selector to be set after construction | Allow selector to be set after construction
| Java | apache-2.0 | skyscreamer/yoga,skyscreamer/yoga |
a54cfa33061345286d3608b2411b01f09f7bea91 | Stately/app/src/main/java/com/lloydtorres/stately/dto/IssueOption.java | Stately/app/src/main/java/com/lloydtorres/stately/dto/IssueOption.java | package com.lloydtorres.stately.dto;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by Lloyd on 2016-01-28.
* An object containing text for one of the options in an issue.
*/
public class IssueOption implements Parcelable {
public static final String QUERY = "https://www.nationstates.net... | package com.lloydtorres.stately.dto;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by Lloyd on 2016-01-28.
* An object containing text for one of the options in an issue.
*/
public class IssueOption implements Parcelable {
public static final String QUERY = "https://www.nationstates.net... | Revert "Add query response minimizer parameter back" | Revert "Add query response minimizer parameter back"
This reverts commit ead7b0d5c99c2e3d9ae14310af8f16bf56bf2a70.
| Java | apache-2.0 | lloydtorres/stately |
9d1d372484acd24b6f4a9227caf3064ca8400f19 | header/src/main/java/org/zstack/header/storage/primary/TakeSnapshotMsg.java | header/src/main/java/org/zstack/header/storage/primary/TakeSnapshotMsg.java | package org.zstack.header.storage.primary;
import org.zstack.header.message.NeedReplyMessage;
import org.zstack.header.storage.snapshot.VolumeSnapshotStruct;
/**
*/
public class TakeSnapshotMsg extends NeedReplyMessage implements PrimaryStorageMessage {
private String primaryStorageUuid;
private Vol... | package org.zstack.header.storage.primary;
import org.zstack.header.core.ApiTimeout;
import org.zstack.header.message.NeedReplyMessage;
import org.zstack.header.storage.snapshot.VolumeSnapshotStruct;
import org.zstack.header.volume.APICreateVolumeSnapshotMsg;
/**
*/
@ApiTimeout(apiClasses = {APICreateVolume... | Add a missing timeout decoration | Add a missing timeout decoration
Signed-off-by: David Lee <15c338f3b79a63a0d5423e9c6562cd312918fe74@gmail.com>
| Java | apache-2.0 | mingjian2049/zstack,winger007/zstack,hhjuliet/zstack,Alvin-Lau/zstack,zstackio/zstack,mingjian2049/zstack,WangXijue/zstack,camilesing/zstack,zsyzsyhao/zstack,MatheMatrix/zstack,MaJin1996/zstack,zxwing/zstack-1,AlanJager/zstack,WangXijue/zstack,AlanJager/zstack,liningone/zstack,winger007/zstack,AlanJinTS/zstack,mingjian... |
fddd1e2f9c7edc4b4c4759235f039f143bcdfbb9 | src/main/java/leetcode/Problem121.java | src/main/java/leetcode/Problem121.java | package leetcode;
/**
* https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
*/
public class Problem121 {
public int maxProfit(int[] prices) {
return 0;
}
public static void main(String[] args) {
Problem121 prob = new Problem121();
System.out.println(prob.maxProfit(... | package leetcode;
/**
* https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
*/
public class Problem121 {
public int maxProfit(int[] prices) {
int[] max = new int[prices.length];
int m = -1;
for (int i = prices.length-1; i != 0; i--) {
max[i] = Math.max(m, prices[i])... | Update problem 121 (not verified) | Update problem 121 (not verified)
| Java | mit | fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode |
528b421efa1c787b6a58d76c863d3bb4a6f6e847 | src/main/java/com/corwinjv/mobtotems/blocks/tiles/TotemLogic/WolfLogic.java | src/main/java/com/corwinjv/mobtotems/blocks/tiles/TotemLogic/WolfLogic.java | package com.corwinjv.mobtotems.blocks.tiles.TotemLogic;
import net.minecraft.item.ItemStack;
import javax.annotation.Nonnull;
import java.util.ArrayList;
import java.util.List;
/**
* Created by CorwinJV on 1/25/2017.
*/
public class WolfLogic extends TotemLogic {
@Override
public List<ItemStack> getCost() ... | package com.corwinjv.mobtotems.blocks.tiles.TotemLogic;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import javax.annotation.Nonnull;
import java.util.ArrayList;
import java.util.List;
/**
* Created by CorwinJV on 1/25/2017.
*/
public class WolfLogic extends TotemLogic {
@Override
... | Add cost to wolf totem | Add cost to wolf totem
| Java | mit | CorwinJV/MobTotems |
104989205bb2b366e20cd09fe58dd2046840d61f | src/main/java/com/mercateo/common/rest/schemagen/PropertySubTypeMapper.java | src/main/java/com/mercateo/common/rest/schemagen/PropertySubTypeMapper.java | package com.mercateo.common.rest.schemagen;
import com.mercateo.common.rest.schemagen.generictype.GenericType;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Map;
public final class PropertySubTypeMapper {
private PropertySubTypeMapper() {
}
public static Pr... | package com.mercateo.common.rest.schemagen;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Map;
import com.mercateo.common.rest.schemagen.generictype.GenericType;
public final class PropertySubTypeMapper {
private PropertySubTypeMapper() {
}
public static Pr... | Add default case to supress warning | Add default case to supress warning | Java | apache-2.0 | Mercateo/rest-schemagen,Mercateo/rest-schemagen,dpolivaev/rest-schemagen |
09fab7c61ff96e6479b2015ff12e5704627c870b | statix.solver/src/main/java/mb/statix/constraints/messages/MessageUtil.java | statix.solver/src/main/java/mb/statix/constraints/messages/MessageUtil.java | package mb.statix.constraints.messages;
import java.util.Map;
import javax.annotation.Nullable;
import com.google.common.collect.ImmutableMap;
import mb.statix.constraints.CAstId;
import mb.statix.constraints.CAstProperty;
import mb.statix.constraints.CTry;
import mb.statix.solver.IConstraint;
public class Message... | package mb.statix.constraints.messages;
import java.util.Map;
import javax.annotation.Nullable;
import com.google.common.collect.ImmutableMap;
import mb.statix.constraints.CAstId;
import mb.statix.constraints.CAstProperty;
import mb.statix.constraints.CTry;
import mb.statix.solver.IConstraint;
public class Message... | Revert reduced failure level for try. | Revert reduced failure level for try.
| Java | apache-2.0 | metaborg/nabl,metaborg/nabl,metaborg/nabl |
c6f9e33c7bd4ddb8eb20c4d810988345668d01ae | Common/src/main/java/net/darkhax/bookshelf/api/item/ICreativeTabBuilder.java | Common/src/main/java/net/darkhax/bookshelf/api/item/ICreativeTabBuilder.java | package net.darkhax.bookshelf.api.item;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.enchantment.EnchantmentCategory;
import net.minecraft.world.level.ItemLike;
import java.util.List;
import... | package net.darkhax.bookshelf.api.item;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.enchantment.EnchantmentCategory;
import net.minecraft.world.level.ItemLike;
import java.util.List;
import... | Add support for item tab icon suppliers. | Add support for item tab icon suppliers.
| Java | lgpl-2.1 | Darkhax-Minecraft/Bookshelf |
153819f0abfbd0c007dd78242d30e693283495a8 | edocs-app/src/main/java/com/github/aureliano/edocs/app/helper/GuiHelper.java | edocs-app/src/main/java/com/github/aureliano/edocs/app/helper/GuiHelper.java | package com.github.aureliano.edocs.app.helper;
import java.net.URL;
import javax.swing.Icon;
import javax.swing.ImageIcon;
public final class GuiHelper {
private GuiHelper() {}
public static Icon createIcon(String resource) {
URL url = ClassLoader.getSystemResource(resource);
return new ImageIcon(url);
}
} | package com.github.aureliano.edocs.app.helper;
import java.awt.Component;
import java.net.URL;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import com.github.aureliano.edocs.app.gui.configuration.wizard.DatabasePanel;
import com.github.aureliano.edocs.app.gui.configuration.wizard.RepositoryPanel;
import co... | Add method to build configuration model from wizard. | Add method to build configuration model from wizard.
| Java | mit | aureliano/e-docs |
145ba7ec4623f02d08a332ac6f975bcdf5634f13 | intermine/web/main/src/org/intermine/webservice/server/StatusDictionary.java | intermine/web/main/src/org/intermine/webservice/server/StatusDictionary.java | package org.intermine.webservice.server;
/*
* Copyright (C) 2002-2011 FlyMine
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. See the LICENSE file for more
* information or http://www.gnu.org/copyleft/l... | package org.intermine.webservice.server;
/*
* Copyright (C) 2002-2011 FlyMine
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. See the LICENSE file for more
* information or http://www.gnu.org/copyleft/l... | Include the status code in the string, and nicer messages | Include the status code in the string, and nicer messages
Former-commit-id: 60c52e31de5de813cbe1db16a291aadcaa473f90 | Java | lgpl-2.1 | julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine |
c4cc2331092c21242639a4715c95446b8c7546be | subprojects/core-api/src/main/java/org/gradle/api/component/package-info.java | subprojects/core-api/src/main/java/org/gradle/api/component/package-info.java | /*
* Copyright 2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Cover `org.gradle.api.component` with nullability annotations | Cover `org.gradle.api.component` with nullability annotations
| Java | apache-2.0 | robinverduijn/gradle,gstevey/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,gstevey/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,lsmaira/gradle,lsmaira/gradle,blindpirate/gradle,lsmaira/gradle,gradle/... |
4bad706442f65bfdb92534d192a1ec478dbc30c5 | src/main/java/seedu/emeraldo/commons/core/Messages.java | src/main/java/seedu/emeraldo/commons/core/Messages.java | package seedu.emeraldo.commons.core;
/**
* Container for user visible messages.
*/
public class Messages {
public static final String MESSAGE_UNKNOWN_COMMAND = "Unknown command";
public static final String MESSAGE_INVALID_COMMAND_FORMAT = "Invalid command format! \n%1$s";
public static final String MESS... | package seedu.emeraldo.commons.core;
import seedu.emeraldo.logic.commands.HelpCommand;
/**
* Container for user visible messages.
*/
public class Messages {
public static final String MESSAGE_UNKNOWN_COMMAND = "Unknown command!\n"
+ HelpCommand.MESSAGE_USAGE;
public static final String MESSAGE_INVALI... | Change message when an unknown command word is input | Change message when an unknown command word is input
| Java | mit | CS2103AUG2016-T10-C3/main |
7bcc96fc05bc1756288b35e139406c1ef35480d8 | demo-simple/src/main/java/com/novoda/downloadmanager/demo/simple/Download.java | demo-simple/src/main/java/com/novoda/downloadmanager/demo/simple/Download.java | package com.novoda.downloadmanager.demo.simple;
import com.novoda.downloadmanager.lib.DownloadManager;
class Download {
private final String title;
private final String fileName;
private final int downloadStatus;
public Download(String title, String fileName, int downloadStatus) {
this.title ... | package com.novoda.downloadmanager.demo.simple;
import com.novoda.downloadmanager.lib.DownloadManager;
class Download {
private final String title;
private final String fileName;
private final int downloadStatus;
public Download(String title, String fileName, int downloadStatus) {
this.title ... | Add deleting status text to the demo adapter | Add deleting status text to the demo adapter
| Java | apache-2.0 | xufeifandj/download-manager,novoda/download-manager |
76f893fd4f1dea7cba5e9263fb1f14f41a2bd9e0 | modules/archive/src/main/java/java/util/zip/DataFormatException.java | modules/archive/src/main/java/java/util/zip/DataFormatException.java | /* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LIC... | /* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LIC... | Add constant SUID and minor reformatting | Add constant SUID and minor reformatting
svn path=/incubator/harmony/enhanced/classlib/trunk/; revision=410563
| Java | apache-2.0 | freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM |
cdc77f145659b9dae096f004f68438a45c4fe093 | src/edu/usc/glidein/service/state/SiteEventCode.java | src/edu/usc/glidein/service/state/SiteEventCode.java | package edu.usc.glidein.service.state;
public enum SiteEventCode implements EventCode
{
SUBMIT, /* User requested submit */
INSTALL_SUCCESS, /* Condor installed successfully */
INSTALL_FAILED, /* Condor installation failed */
REMOVE, /* User requested remove */
UNINSTALL_SUCCESS, /* Condor uninstalled succ... | package edu.usc.glidein.service.state;
public enum SiteEventCode implements EventCode
{
SUBMIT, /* User requested submit */
INSTALL_SUCCESS, /* Condor installed successfully */
INSTALL_FAILED, /* Condor installation failed */
REMOVE, /* User requested remove */
UNINSTALL_SUCCESS, /* Condor uninstalled succ... | Change GLIDEIN_FINISHED to GLIDEIN_DELETED to make it clear when this event occurs | Change GLIDEIN_FINISHED to GLIDEIN_DELETED to make it clear when this event occurs
git-svn-id: bdb5f82b9b83a1400e05d69d262344b821646179@1387 e217846f-e12e-0410-a4e5-89ccaea66ff7
| Java | apache-2.0 | juve/corral,juve/corral,juve/corral |
fa82d79f628ec9e45389b2a8e3f9a167e0fd1b8a | src/main/java/com/github/yuri0x7c1/ofbiz/explorer/common/ui/view/HomeView.java | src/main/java/com/github/yuri0x7c1/ofbiz/explorer/common/ui/view/HomeView.java | package com.github.yuri0x7c1.ofbiz.explorer.common.ui.view;
import org.vaadin.spring.sidebar.annotation.FontAwesomeIcon;
import org.vaadin.spring.sidebar.annotation.SideBarItem;
import com.github.yuri0x7c1.ofbiz.explorer.common.ui.sidebar.Sections;
import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewCha... | package com.github.yuri0x7c1.ofbiz.explorer.common.ui.view;
import org.vaadin.spring.sidebar.annotation.SideBarItem;
import org.vaadin.spring.sidebar.annotation.VaadinFontIcon;
import com.github.yuri0x7c1.ofbiz.explorer.common.ui.sidebar.Sections;
import com.vaadin.icons.VaadinIcons;
import com.vaadin.navigator.View;... | Use vaadin icon instead font awesome icon for home page | Use vaadin icon instead font awesome icon for home page | Java | apache-2.0 | yuri0x7c1/ofbiz-explorer,yuri0x7c1/ofbiz-explorer,yuri0x7c1/ofbiz-explorer,yuri0x7c1/ofbiz-explorer,yuri0x7c1/ofbiz-explorer,yuri0x7c1/ofbiz-explorer,yuri0x7c1/ofbiz-explorer,yuri0x7c1/ofbiz-explorer |
2a81e9b207fa83fa57228e930e0e618b698e97b9 | app/src/main/java/com/github/vase4kin/teamcityapp/api/cache/CacheProviders.java | app/src/main/java/com/github/vase4kin/teamcityapp/api/cache/CacheProviders.java | /*
* Copyright 2016 Andrey Tolpeev
*
* 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 2016 Andrey Tolpeev
*
* 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... | Increase build types cache life for one day | Increase build types cache life for one day
| Java | apache-2.0 | vase4kin/TeamCityApp,vase4kin/TeamCityApp,vase4kin/TeamCityApp |
22cb9ab22003f290516c2e53766d565cef70a481 | org.mwc.debrief.legacy/src/Debrief/Wrappers/Track/FixWrapperCollisionCheck.java | org.mwc.debrief.legacy/src/Debrief/Wrappers/Track/FixWrapperCollisionCheck.java | package Debrief.Wrappers.Track;
import Debrief.Wrappers.FixWrapper;
import MWC.GUI.Plottables;
import MWC.GenericData.HiResDate;
public class FixWrapperCollisionCheck {
/**
* We are creating this method because the following ticket
* https://github.com/debrief/debrief/issues/4894
*
* FixWrapper were initial... | package Debrief.Wrappers.Track;
import java.util.Enumeration;
import Debrief.Wrappers.FixWrapper;
import MWC.GUI.Editable;
import MWC.GUI.Plottables;
import MWC.GenericData.HiResDate;
public class FixWrapperCollisionCheck {
/**
* We are creating this method because the following ticket
* https://github.com/deb... | Check if the exact item already exists, and don't correct it. | Check if the exact item already exists, and don't correct it.
| Java | epl-1.0 | debrief/debrief,debrief/debrief,debrief/debrief,debrief/debrief,debrief/debrief,debrief/debrief |
71a28f2feabb427e731d83ca37ce3ea40445121d | projects/memapGui/src/main/java/fortiss/gui/listeners/button/AcceptListener.java | projects/memapGui/src/main/java/fortiss/gui/listeners/button/AcceptListener.java | package fortiss.gui.listeners.button;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import fortiss.gui.Designer;
import fortiss.gui.LoadingScreen;
import fortiss.gui.listeners.helper.FileManager;
import fortiss.simulation.Simulation;
public class AcceptListener extends MouseAdapter {
public... | package fortiss.gui.listeners.button;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import fortiss.gui.LoadingScreen;
import fortiss.gui.listeners.helper.FileManager;
import fortiss.simulation.Simulation;
public class AcceptListener extends MouseAdapter {
public static Simulation sim;
publ... | Fix warning related to deserialization | Fix warning related to deserialization
| Java | apache-2.0 | SES-fortiss/SmartGridCoSimulation,SES-fortiss/SmartGridCoSimulation,SES-fortiss/SmartGridCoSimulation,SES-fortiss/SmartGridCoSimulation,SES-fortiss/SmartGridCoSimulation |
8b9f48b60a1abf00cbffb7e072eaa5a158afdebf | jobizer-plugin/src/main/java/com/epam/jobizer/plugin/JobConfigurationBuilder.java | jobizer-plugin/src/main/java/com/epam/jobizer/plugin/JobConfigurationBuilder.java | package com.epam.jobizer.plugin;
import hudson.tasks.Builder;
import lombok.extern.java.Log;
@Log
public class JobConfigurationBuilder extends Builder {
}
| package com.epam.jobizer.plugin;
import hudson.Launcher;
import hudson.model.AbstractBuild;
import hudson.model.BuildListener;
import hudson.tasks.Builder;
import lombok.extern.java.Log;
@Log
public class JobConfigurationBuilder extends Builder {
@Override
public boolean perform(AbstractBuild build, Launcher ... | Remove unnecessary annotation due to failure during plugin start | Remove unnecessary annotation due to failure during plugin start
| Java | apache-2.0 | webdizz/jobolizer,webdizz/jobolizer |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.