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 |
|---|---|---|---|---|---|---|---|---|---|
c54b70abc566dd0fb40bf9f6120ef7a7e26f2d81 | butterknife/src/main/java/butterknife/internal/DebouncingOnClickListener.java | butterknife/src/main/java/butterknife/internal/DebouncingOnClickListener.java | package butterknife.internal;
import android.view.View;
/**
* A {@link View.OnClickListener} that enables debouncing of multiple clicks posted in a row.
*
* Once a click is fired, a post is enqueued to the main thread looper queue and no further click
* is allowed until that post is dequeued.
*
* A click on one... | package butterknife.internal;
import android.view.View;
/**
* A {@linkplain View.OnClickListener click listener} that debounces multiple clicks posted in the
* same frame. A click on one button disables all buttons for that frame.
*/
public abstract class DebouncingOnClickListener implements View.OnClickListener {... | Clean up the docs to remove implementation details. | Clean up the docs to remove implementation details.
| Java | apache-2.0 | AmberWhiteSky/butterknife,renatohsc/butterknife,JuranoSaurus/butterknife,b-cuts/butterknife,NortonAhu/butterknife,github609195946/butterknife,ze-pequeno/butterknife,oguzbabaoglu/butterfork,KristenXu/butterknife,JakeWharton/butterknife,tanweijiu/butterknife,JackLeeMing/butterknife,ChinaKim/butterknife,JellyBeanIdea/butt... |
f9944dc7c87ef53525e44e06ca5357ca6ad65e2c | base/src/main/java/io/spine/query/Either.java | base/src/main/java/io/spine/query/Either.java | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | Add the missing docs for the parameter. | Add the missing docs for the parameter.
| Java | apache-2.0 | SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base |
7474ad2c88f9f71b148ae02b15877fd5e8ef023e | src/main/java/nuclibook/routes/ExportRoute.java | src/main/java/nuclibook/routes/ExportRoute.java | package nuclibook.routes;
import nuclibook.constants.P;
import nuclibook.entity_utils.ExportUtils;
import nuclibook.entity_utils.PatientUtils;
import nuclibook.entity_utils.SecurityUtils;
import nuclibook.models.Patient;
import nuclibook.server.HtmlRenderer;
import spark.Request;
import spark.Response;
import java.ut... | package nuclibook.routes;
import nuclibook.constants.P;
import nuclibook.entity_utils.ExportUtils;
import nuclibook.entity_utils.PatientUtils;
import nuclibook.entity_utils.SecurityUtils;
import nuclibook.models.Patient;
import nuclibook.server.HtmlRenderer;
import spark.Request;
import spark.Response;
import java.ut... | Fix string == null error | Fix string == null error
| Java | agpl-3.0 | musalbas/Nuclibook,musalbas/Nuclibook,musalbas/Nuclibook |
ed4931cc058dac775cd17cfff3565084243cfe32 | src/vg/civcraft/mc/citadel/command/commands/Off.java | src/vg/civcraft/mc/citadel/command/commands/Off.java | package vg.civcraft.mc.citadel.command.commands;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import vg.civcraft.mc.citadel.PlayerState;
import vg.civcraft.mc.citadel.Utility;
import vg.civcraft.mc.civmodcore.command.PlayerCommand;
import java.util.ArrayList;... | package vg.civcraft.mc.citadel.command.commands;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import vg.civcraft.mc.citadel.PlayerState;
import vg.civcraft.mc.citadel.Utility;
import vg.civcraft.mc.civmodcore.command.PlayerCommand;
import java.util.ArrayList;... | Clear easy mode on /cto | Clear easy mode on /cto
Why are we clearing bypass mode but not easy mode? | Java | bsd-3-clause | psygate/Citadel,psygate/Citadel |
94e6c787c6a3710374438095e4e0429d552d97ad | src/java/introspect/Interceptor.java | src/java/introspect/Interceptor.java | package introspect;
import net.bytebuddy.instrumentation.method.bytecode.bind.annotation.*;
import java.lang.invoke.MethodHandle;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent... | package introspect;
import net.bytebuddy.instrumentation.method.bytecode.bind.annotation.*;
import java.lang.invoke.MethodHandle;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent... | Add original method call interception for protocols | Add original method call interception for protocols
| Java | epl-1.0 | ifesdjeen/introspect |
7ded700d8c344388bf9496ab779f06a797ea47d9 | src/main/java/org/cyclops/cyclopscore/inventory/container/InventoryContainer.java | src/main/java/org/cyclops/cyclopscore/inventory/container/InventoryContainer.java | package org.cyclops.cyclopscore.inventory.container;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.container.ContainerType;
import javax.annotation.Nullable;
/**
* A container for an inve... | package org.cyclops.cyclopscore.inventory.container;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.container.ContainerType;
import javax.annotation.Nullable;
/**
* A container for an inve... | Allow inventory size assertion to be skipped | Allow inventory size assertion to be skipped
| Java | mit | CyclopsMC/CyclopsCore |
4d20c01ac6f1db42dc1179a5e9c5632f11f30f2c | src/com/growingwiththeweb/algorithms/interviewquestions/reverseString/Program.java | src/com/growingwiththeweb/algorithms/interviewquestions/reverseString/Program.java | package com.growingwiththeweb.algorithms.interviewquestions.reversestring;
public class Program {
public static void main(String[] args) {
assert reverse1("abc123def").equals("fed321cba");
assert reverse2("abc123def").equals("fed321cba");
assert reverse3("abc123def").equals("fed321cba");
... | package com.growingwiththeweb.algorithms.interviewquestions.reversestring;
public class Program {
public static void main(String[] args) {
assert reverseViaCharArray("abc123def").equals("fed321cba");
assert reverseViaStringBuilderA("abc123def").equals("fed321cba");
assert reverseViaStringBu... | Update reverse string method names | Update reverse string method names
| Java | mit | gwtw/growing-with-the-web,gwtw/growing-with-the-web,Tyriar/growing-with-the-web,Tyriar/growing-with-the-web |
61f6c31ad67adfaae3f7f086e4b117bd4fbda9df | atlas-api/src/test/java/org/atlasapi/query/v4/meta/ConfigurerBasedLinkCreatorTest.java | atlas-api/src/test/java/org/atlasapi/query/v4/meta/ConfigurerBasedLinkCreatorTest.java | package org.atlasapi.query.v4.meta;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class ConfigurerBasedLinkCreatorTest {
private String baseUri = "base";
private final LinkCreator linkCreator = new MetaApiLinkCreator(baseUri);
@Test
public void testLinkCreation() {... | package org.atlasapi.query.v4.meta;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class ConfigurerBasedLinkCreatorTest {
private String baseUri = "base";
private final LinkCreator linkCreator = new MetaApiLinkCreator(baseUri);
@Test
public void testLinkCreation() {... | Fix test for Meta API URL generation | Fix test for Meta API URL generation
| Java | apache-2.0 | atlasapi/atlas-deer,atlasapi/atlas-deer |
951ef5b0fc62c509806e1c1346d7d06ddb748c8b | src/unstar/server/Launcher.java | src/unstar/server/Launcher.java | package unstar.server;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintStream;
/**
* The main class for launching a server.
*/
public final class Launcher {
/**
* Hidden constructor.
*/
private Launcher() {
}
/**
* The main method, launches a server.
... | package unstar.server;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;
/**
* The main class for launching a server.
*/
public final class Launcher {
/**
* Hidden constructor.
*/
private Launcher() {
}
/**
* The ... | Append to the valid code log rather than truncate. | Append to the valid code log rather than truncate.
| Java | unlicense | skeeto/unstar |
a2727e5b8e08bbc8d6545cff96f6a59a04445eb3 | src/som/interpreter/nodes/ArgumentEvaluationNode.java | src/som/interpreter/nodes/ArgumentEvaluationNode.java | package som.interpreter.nodes;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.ExplodeLoop;
public class ArgumentEvaluationNode extends ExpressionNode {
@Children private final ExpressionNode[] arguments;
public ArgumentEvaluationNode(final ExpressionNode[] arguments) {
... | package som.interpreter.nodes;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.ExplodeLoop;
public class ArgumentEvaluationNode extends ExpressionNode {
@Children private final ExpressionNode[] arguments;
public ArgumentEvaluationNode(final ExpressionNode[] arguments) {
... | Remove the null and length check, this should always hold. | Remove the null and length check, this should always hold.
Signed-off-by: Stefan Marr <46f1a0bd5592a2f9244ca321b129902a06b53e03@stefan-marr.de>
| Java | mit | smarr/SOMns,richard-roberts/SOMns,MetaConc/SOMns,smarr/SOMns,richard-roberts/SOMns,smarr/SOMns,richard-roberts/SOMns,smarr/SOMns,smarr/SOMns,richard-roberts/SOMns,richard-roberts/SOMns,richard-roberts/SOMns,smarr/SOMns,MetaConc/SOMns,VAISHALI-DHANOA/SOMns,smarr/SOMns,MetaConc/SOMns,richard-roberts/SOMns,VAISHALI-DHANOA... |
d8243015f9b2d1b61671860c120088f0f092bd6c | examples/junit/src/test/java/com/example/AutofuzzFuzzTests.java | examples/junit/src/test/java/com/example/AutofuzzFuzzTests.java | // Copyright 2022 Code Intelligence GmbH
//
// 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 a... | // Copyright 2022 Code Intelligence GmbH
//
// 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 a... | Increase timout of autofuzz @FuzzTest | tests: Increase timout of autofuzz @FuzzTest
| Java | apache-2.0 | CodeIntelligenceTesting/jazzer,CodeIntelligenceTesting/jazzer,CodeIntelligenceTesting/jazzer,CodeIntelligenceTesting/jazzer,CodeIntelligenceTesting/jazzer |
fa8d1ae37e5f326f98f9bb997e0b2c0cbea88c39 | src/main/java/com/enderio/core/common/tweaks/InfiniBow.java | src/main/java/com/enderio/core/common/tweaks/InfiniBow.java | package com.enderio.core.common.tweaks;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.MinecraftForge;
import net.mi... | package com.enderio.core.common.tweaks;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.MinecraftForge;
import net.mi... | Make infinibow lowest priority to give other mod behaviors priority | Make infinibow lowest priority to give other mod behaviors priority | Java | cc0-1.0 | minecreatr/EnderCore,HenryLoenwind/EnderCore,SleepyTrousers/EnderCore,Adaptivity/EnderCore |
38677e5e344ce780d0b82c319da647efc9a95cf5 | src/main/java/com/bol/cd/stash/StashClient.java | src/main/java/com/bol/cd/stash/StashClient.java | package com.bol.cd.stash;
import feign.Feign;
import feign.RequestInterceptor;
import feign.auth.BasicAuthRequestInterceptor;
import feign.jackson.JacksonDecoder;
import feign.jackson.JacksonEncoder;
import feign.jaxrs.JAXRSModule;
import java.util.Arrays;
import com.bol.cd.stash.model.JsonApplicationMediaTypeInterc... | package com.bol.cd.stash;
import feign.Feign;
import feign.RequestInterceptor;
import feign.auth.BasicAuthRequestInterceptor;
import feign.jackson.JacksonDecoder;
import feign.jackson.JacksonEncoder;
import feign.jaxrs.JAXRSModule;
import java.util.Arrays;
import com.bol.cd.stash.model.JsonApplicationMediaTypeInterc... | Refactor in progress - cleaning... | Refactor in progress - cleaning...
| Java | apache-2.0 | bolcom/stash-java-client-cd |
10b05421eaceaaec0b8f397624397929607dea26 | src/main/java/jresp/pool/SingleCommandConnection.java | src/main/java/jresp/pool/SingleCommandConnection.java | /*
* Copyright 2015 Ben Ashford
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* Copyright 2015 Ben Ashford
*
* 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 ... | Put a sharper-edge on a potential failure-case when requests and responses become out-of-sync. | Put a sharper-edge on a potential failure-case when requests and
responses become out-of-sync.
| Java | apache-2.0 | benashford/jresp |
a2fe7e701161a5b232b1d8798834f6aa9a78c19c | src/main/java/org/osiam/client/oauth/QueryResult.java | src/main/java/org/osiam/client/oauth/QueryResult.java | package org.osiam.client.oauth;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.osiam.resources.scim.Group;
import java.util.Set;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_EMPTY)
public class QueryResult {
private Integer totalResults;
private Integer itemsPerPage;
private ... | package org.osiam.client.oauth;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.osiam.resources.scim.Group;
import java.util.Set;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_EMPTY)
public class QueryResult {
private Integer totalResults;
private Integer itemsPerPage;
private ... | Set Schemas changed to String Schemas | Set Schemas changed to String Schemas
| Java | mit | wallner/connector4java,osiam/connector4java |
92d9f1292fb63b01220fc5425dc9dbbbf1082056 | src/main/java/org/dynmap/modsupport/CopyBlockTextureRecord.java | src/main/java/org/dynmap/modsupport/CopyBlockTextureRecord.java | package org.dynmap.modsupport;
/**
* Record representing a texture mapping for one or more blocks, based on copying an existing one
*/
public interface CopyBlockTextureRecord {
public static final int METAMASK_ALL = -1;
/**
* Add block ID to mapping (in case multiple block IDs use same texture mapp... | package org.dynmap.modsupport;
/**
* Record representing a texture mapping for one or more blocks, based on copying an existing one
*/
public interface CopyBlockTextureRecord {
public static final int METAMASK_ALL = -1;
/**
* Add block ID to mapping (in case multiple block IDs use same texture mapp... | Add transparency mode override to copied records | Add transparency mode override to copied records | Java | apache-2.0 | KovuTheHusky/DynmapCoreAPI,webbukkit/DynmapCoreAPI |
368b3693a223609430d5af56f15c0352a5191e5c | src/test/java/se/kth/csc/controller/AdminControllerTest.java | src/test/java/se/kth/csc/controller/AdminControllerTest.java | package se.kth.csc.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import se.kth.csc.persist.AccountStore;
public class AdminControllerTest {
private AccountStore accountStore;
private ObjectMapper objectMapper;
}
| package se.kth.csc.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test;
import se.kth.csc.auth.Role;
import se.kth.csc.model.Account;
import se.kth.csc.persist.AccountStore;
import org.junit.Before;
import se.kth.csc.persist.QueueStore;
import javax.servlet.http.HttpServletRequest;
i... | Add tests for adding admins and removing admins. | Add tests for adding admins and removing admins.
| Java | agpl-3.0 | mvk13ogb/qwait,mvk13ogb/qwait,mvk13ogb/qwait |
dd29638dbbc843112bffbc1fd5fcd5b0f67ee2bd | src/main/java/seedu/address/commons/core/Messages.java | src/main/java/seedu/address/commons/core/Messages.java | package seedu.address.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 MESSA... | package seedu.address.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 MESSA... | Modify Variable and Method names | Modify Variable and Method names
changed all mention of AddressBook/Person to TaskManager/Task
| Java | mit | CS2103JAN2017-W13-B2/main,CS2103JAN2017-W13-B2/main |
1b4ed9624b7b05eff20bff2b7b2250e9c59a15ac | gwt-ol3-client/src/test/java/ol/FeatureTest.java | gwt-ol3-client/src/test/java/ol/FeatureTest.java | /*******************************************************************************
* Copyright 2014, 2016 gwt-ol3
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache... | /*******************************************************************************
* Copyright 2014, 2016 gwt-ol3
*
* 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... | Refactor and extend test for Feature | Refactor and extend test for Feature | Java | apache-2.0 | sebasbaumh/gwt-ol3,TDesjardins/GWT-OL3-Playground,sebasbaumh/gwt-ol3,TDesjardins/GWT-OL3-Playground,sebasbaumh/gwt-ol3,TDesjardins/gwt-ol3,TDesjardins/gwt-ol3,TDesjardins/GWT-OL3-Playground,TDesjardins/gwt-ol3 |
cf5041ea80267649e6c7d87cc305ad3838520657 | src/main/java/me/modmuss50/rebornstorage/proxys/ClientProxy.java | src/main/java/me/modmuss50/rebornstorage/proxys/ClientProxy.java | package me.modmuss50.rebornstorage.proxys;
import me.modmuss50.rebornstorage.init.ModelHelper;
/**
* Created by Gigabit101 on 03/01/2017.
*/
public class ClientProxy extends CommonProxy {
@Override
public void registerRenders() {
ModelHelper.init();
}
}
| package me.modmuss50.rebornstorage.proxys;
import com.raoulvdberge.refinedstorage.apiimpl.API;
import me.modmuss50.rebornstorage.client.gui.ContainerMultiCrafter;
import me.modmuss50.rebornstorage.init.ModelHelper;
import net.minecraft.client.Minecraft;
import net.minecraft.inventory.Container;
/**
* Created by Giga... | Make patters render output item when in multicrafter slot | Make patters render output item when in multicrafter slot
| Java | mit | TechReborn/RebornStorage |
80f8d80ca0b853ad9578bc5ec32bbda9ec7ea98f | jps-shared/src/com/haskforce/jps/model/JpsHaskellSdkType.java | jps-shared/src/com/haskforce/jps/model/JpsHaskellSdkType.java | package com.haskforce.jps.model;
import com.intellij.openapi.util.SystemInfo;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.model.JpsDummyElement;
import org.jetbrains.jps.model.JpsElementFactory;
import org.jetbrains.jps.model.JpsElementTypeWithDefaultProperties;
import org.jetbrains.jps.model.li... | package com.haskforce.jps.model;
import com.intellij.openapi.util.SystemInfo;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.model.JpsDummyElement;
import org.jetbrains.jps.model.JpsElementFactory;
import org.jetbrains.jps.model.JpsElementTypeWithDefaultProperties;
import org.jetbrains.jps.model.li... | Rename the method for getting the compiler. | Rename the method for getting the compiler.
| Java | apache-2.0 | KasperJanssens/intellij-haskforce,carymrobbins/intellij-haskforce,charleso/intellij-haskforce,carymrobbins/intellij-haskforce,carymrobbins/intellij-haskforce,begray/intellij-haskforce,KasperJanssens/intellij-haskforce,begray/intellij-haskforce,charleso/intellij-haskforce,charleso/intellij-haskforce,begray/intellij-hask... |
d5b3d13df2748272755a4bfc7bc29d73a7111930 | net/digitalbebop/JataSMART.java | net/digitalbebop/JataSMART.java | /**
* Copyright © 2014 Will Dignazio
*
* Java implementation file for the JNI wrapper of libatasmart.
* This provides an interface to produce SkDisk objects that are
* synonymous with the SkDisk structures within the atasmart library.
*
* The underlying implementation code is compiled from a .c file(s),
* the p... | /**
* Copyright © 2014 Will Dignazio
*
* Java implementation file for the JNI wrapper of libatasmart.
* This provides an interface to produce SkDisk objects that are
* synonymous with the SkDisk structures within the atasmart library.
*
* The underlying implementation code is compiled from a .c file(s),
* the p... | Add header docs for open | docs: Add header docs for open
| Java | mit | WillDignazio/JataSMART,WillDignazio/JataSMART |
2845d09e8c402a2d4d0417e464749a6c65d39791 | impl/src/main/java/net/minecraft/world/biome/SpawnListEntry.java | impl/src/main/java/net/minecraft/world/biome/SpawnListEntry.java | package net.minecraft.world.biome;
import net.minecraft.entity.EntityLiving;
public class SpawnListEntry {
public SpawnListEntry(Class<? extends EntityLiving> entityClass, int weightedProb, int min, int max) {
this.field_76300_b = entityClass;
this.field_76292_a = weightedProb;
this.field_... | package net.minecraft.world.biome;
import net.minecraft.entity.EntityLiving;
public class SpawnListEntry {
public SpawnListEntry(Class<? extends EntityLiving> entityClass, int weightedProb, int min, int max) {
this.field_76300_b = entityClass;
this.field_76292_a = weightedProb;
this.field_... | Fix spawn list fields visibility (438) | Fix spawn list fields visibility (438)
| Java | bsd-3-clause | agaricusb/MLIA |
9605b8c8f965228da5dd072397bae35c6e485c45 | app/src/main/java/sword/langbook3/android/sqlite/SqliteUtils.java | app/src/main/java/sword/langbook3/android/sqlite/SqliteUtils.java | package sword.langbook3.android.sqlite;
import sword.database.DbColumn;
import sword.database.DbValue;
public final class SqliteUtils {
private SqliteUtils() {
}
public static String sqlType(DbColumn column) {
if (column.isPrimaryKey()) {
return "INTEGER PRIMARY KEY AUTOINCREMENT";
... | package sword.langbook3.android.sqlite;
import sword.database.DbColumn;
import sword.database.DbValue;
public final class SqliteUtils {
private SqliteUtils() {
}
public static String sqlType(DbColumn column) {
if (column.isPrimaryKey()) {
return "INTEGER PRIMARY KEY AUTOINCREMENT";
... | Allow having unique integer columns in the database | Allow having unique integer columns in the database
| Java | mit | carlos-sancho-ramirez/android-java-langbook,carlos-sancho-ramirez/android-java-langbook |
7bbc57e4b30e66c04a45702fad47d39a77fb12dd | src/main/java/org/projectodd/nodej/NodeJSVerticleFactory.java | src/main/java/org/projectodd/nodej/NodeJSVerticleFactory.java | package org.projectodd.nodej;
import java.io.FileNotFoundException;
import org.dynjs.runtime.DynJS;
import org.dynjs.runtime.GlobalObject;
import org.dynjs.vertx.DynJSVerticleFactory;
import org.vertx.java.core.Vertx;
import org.vertx.java.platform.Container;
public class NodeJSVerticleFactory extends DynJSVerticleF... | package org.projectodd.nodej;
import java.io.FileNotFoundException;
import org.dynjs.runtime.DynJS;
import org.dynjs.runtime.ExecutionContext;
import org.dynjs.runtime.GlobalObject;
import org.dynjs.vertx.DynJSVerticleFactory;
import org.vertx.java.core.Vertx;
import org.vertx.java.platform.Container;
public class N... | Make the global object factory responsible for creating the Process object. | Make the global object factory responsible for creating the Process object.
| Java | apache-2.0 | nodyn/nodyn,dherges/nodyn,tony--/nodyn,tony--/nodyn,dherges/nodyn,dherges/nodyn,tony--/nodyn,nodyn/nodyn,nodyn/nodyn |
6fd857752a6a9e91c29265bd95bce2c793798e60 | SeleniumGridExtras/src/test/java/com/groupon/seleniumgridextras/utilities/HttpUtilityTest.java | SeleniumGridExtras/src/test/java/com/groupon/seleniumgridextras/utilities/HttpUtilityTest.java | package com.groupon.seleniumgridextras.utilities;
import org.junit.Test;
import java.net.ConnectException;
import java.net.URL;
import java.net.UnknownHostException;
import static org.junit.Assert.assertEquals;
/**
* Created with IntelliJ IDEA. User: dima Date: 7/8/14 Time: 4:09 PM To change this template use
* F... | package com.groupon.seleniumgridextras.utilities;
import org.junit.Test;
import java.net.ConnectException;
import java.net.ServerSocket;
import java.net.URL;
import java.net.UnknownHostException;
import static org.junit.Assert.assertEquals;
public class HttpUtilityTest {
@Test(expected = ConnectException.class)
... | Fix an issue where the port 9999 might be occupied thus the test fails. Now the test finds a garanteed emtpy port. | Fix an issue where the port 9999 might be occupied thus the test fails. Now the test finds a garanteed emtpy port.
| Java | bsd-3-clause | andrewmkrug/Selenium-Grid-Extras,smccarthy/Selenium-Grid-Extras,smccarthy/Selenium-Grid-Extras,smccarthy/Selenium-Grid-Extras,alexkogon/Selenium-Grid-Extras,groupon/Selenium-Grid-Extras,groupon/Selenium-Grid-Extras,alexkogon/Selenium-Grid-Extras,jivesoftware/Selenium-Grid-Extras,groupon/Selenium-Grid-Extras,alexkogon/S... |
e791a65932b9c83365a0fa5148d685131867b729 | subprojects/core/src/main/java/org/gradle/internal/fingerprint/GenericFileTreeSnapshotter.java | subprojects/core/src/main/java/org/gradle/internal/fingerprint/GenericFileTreeSnapshotter.java | /*
* Copyright 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Add example for generic file tree to Javadoc | Add example for generic file tree to Javadoc
`SingletonFileTree`s aren't generic file trees.
| Java | apache-2.0 | blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,grad... |
4e52f15c442875322e2b6c3e51108297eb8945a0 | src/com/davidmogar/njc/ast/types/StringType.java | src/com/davidmogar/njc/ast/types/StringType.java | package com.davidmogar.njc.ast.types;
import com.davidmogar.njc.visitors.Visitor;
import com.davidmogar.njc.ast.AbstractAstNode;
public class StringType extends AbstractType implements Type {
private static StringType instance;
private StringType(int line, int column) {
super(line, column);
}
... | package com.davidmogar.njc.ast.types;
import com.davidmogar.njc.TypeError;
import com.davidmogar.njc.visitors.Visitor;
import com.davidmogar.njc.ast.AbstractAstNode;
public class StringType extends AbstractType implements Type {
private static StringType instance;
private StringType(int line, int column) {
... | Remove code added in a previous commit | Remove code added in a previous commit
String literals shouldn't be assignable.
| Java | mit | davidmogar/njc |
78b1d21aebf4c0c4a122d3a6d14f41ae64529f10 | src/main/java/jannotate/beans/AnnotationEjb.java | src/main/java/jannotate/beans/AnnotationEjb.java | package jannotate.beans;
import jannotate.domain.Annotation;
import java.util.List;
import javax.annotation.Resource;
import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Transient;
import javax.ejb.*;
@Stateless
public class Annota... | package jannotate.beans;
import jannotate.domain.Annotation;
import java.util.List;
import javax.annotation.Resource;
import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Transient;
import javax.ejb.*;
@Stateless
public class Annota... | Add dummy @TransactionAttribute on read method. | Add dummy @TransactionAttribute on read method.
| Java | bsd-2-clause | IanDarwin/jannotate |
be1c6845230a94cb10e52d5c12e11bdee2137d97 | src/bakatxt/core/BakaTxtMain.java | src/bakatxt/core/BakaTxtMain.java | package bakatxt.core;
import java.awt.GraphicsEnvironment;
import java.util.LinkedList;
import java.util.Scanner;
import bakatxt.gui.BakaUI;
public class BakaTxtMain {
private static final String MESSAGE_WELCOME = "Welcome To BakaTxt!";
private static final String MESSAGE_BYEBYE = "Bye bye!";
private st... | package bakatxt.core;
import java.awt.GraphicsEnvironment;
import java.util.Scanner;
import bakatxt.gui.BakaUI;
public class BakaTxtMain {
private static Scanner _sc;
private static BakaProcessor _processor;
public BakaTxtMain() {
_sc = new Scanner(System.in);
_processor = new BakaProc... | Remove unused command line interface messages and instances in the main | Remove unused command line interface messages and instances in the main
| Java | mit | cs2103aug2014-t09-4j/main |
c1167f04177b30e5c986be5e61da91defd03a0d0 | src/test/java/org/dstadler/jgit/JGitBugTest.java | src/test/java/org/dstadler/jgit/JGitBugTest.java | package org.dstadler.jgit;
import org.dstadler.jgit.helper.CookbookHelper;
import org.eclipse.jgit.lib.ObjectLoader;
import org.eclipse.jgit.lib.ObjectReader;
import org.eclipse.jgit.lib.Ref;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.revwalk.RevWalk;
import org.junit.Test;
import java.io.IOExcep... | package org.dstadler.jgit;
import org.dstadler.jgit.helper.CookbookHelper;
import org.eclipse.jgit.lib.ObjectLoader;
import org.eclipse.jgit.lib.ObjectReader;
import org.eclipse.jgit.lib.Ref;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.revwalk.RevWalk;
import org.junit.Test;
import java.io.IOExcep... | Add additional assertions to fail test earlier on null responses | Add additional assertions to fail test earlier on null responses
| Java | apache-2.0 | centic9/jgit-cookbook |
6a8b7aeacf7ae440dfbbd7e4c74cf08563614c22 | src/com/haxademic/core/app/P.java | src/com/haxademic/core/app/P.java | package com.haxademic.core.app;
import javax.media.opengl.GL;
import processing.core.PApplet;
@SuppressWarnings("serial")
public class P
extends PApplet {
public static PAppletHax p;
public static GL gl;
public static String SUNFLOW = "hipstersinc.P5Sunflow";
}
| package com.haxademic.core.app;
import javax.media.opengl.GL;
import processing.core.PApplet;
@SuppressWarnings("serial")
public class P
extends PApplet {
public static PAppletHax p;
public static GL gl;
}
| Remove very old sunflow renderer string | Remove very old sunflow renderer string
| Java | mit | cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic |
fdb26478fd683923f10c14c9b9b70e7ba9d5c968 | java/squeek/veganoption/blocks/BlockRawEnder.java | java/squeek/veganoption/blocks/BlockRawEnder.java | package squeek.veganoption.blocks;
import net.minecraft.block.material.Material;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.fluids.BlockFluidFinite;
import net.minecraftforge.fluids.Fluid;
public class BlockRawEnder ext... | package squeek.veganoption.blocks;
import net.minecraft.block.BlockDoublePlant;
import net.minecraft.block.material.Material;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.fluids.BlockFluidFinite;
import net.minecraftforge.... | Fix raw ender buckets not creating full fluid blocks in the world | Fix raw ender buckets not creating full fluid blocks in the world
| Java | unlicense | squeek502/VeganOption |
514bbacc46df16932ff3897769a8f8fe0bb27b68 | src/main/java/sg/ncl/testbed_interface/domain/Credentials.java | src/main/java/sg/ncl/testbed_interface/domain/Credentials.java | package sg.ncl.testbed_interface.domain;
/**
* The {@link Credentials} interface represents the credentials of a {@link User}.
* @author Christopher Zhong
*/
public interface Credentials {
/**
* Returns the username.
* @return the username.
*/
String getUsername();
/**
* Returns th... | package sg.ncl.testbed_interface.domain;
/**
* The {@link Credentials} interface represents the credentials of a {@link User}.
* @author Christopher Zhong
*/
public interface Credentials {
/**
* Returns the username.
* @return the username.
*/
String getUsername();
/**
* Returns th... | Rename `getHashType` to `getHashingAlgorithm` (DEV-15) | Rename `getHashType` to `getHashingAlgorithm` (DEV-15)
| Java | apache-2.0 | nus-ncl/services-in-one,nus-ncl/services-in-one |
c044b25144186c4982a34983c5e609998c82bccf | src/main/java/com/vtence/molecule/MiddlewareStack.java | src/main/java/com/vtence/molecule/MiddlewareStack.java | package com.vtence.molecule;
import com.vtence.molecule.middlewares.NotFound;
import com.vtence.molecule.middlewares.URLMap;
import java.util.function.Consumer;
public class MiddlewareStack {
private Middleware pipeline = Middleware.identity();
private URLMap map;
private Application runner;
private... | package com.vtence.molecule;
import com.vtence.molecule.middlewares.NotFound;
import com.vtence.molecule.middlewares.URLMap;
import java.util.function.Consumer;
public class MiddlewareStack {
private Middleware pipeline = Middleware.identity();
private URLMap map;
private Application runner;
private... | Remove side effect when booting middleware stack | Remove side effect when booting middleware stack
See #64
| Java | mit | testinfected/molecule,testinfected/molecule,testinfected/molecule,testinfected/molecule,testinfected/molecule |
0e87bd04dc4d3637b2680f72cd58358d3a02ca9e | src/main/java/com/langpath/service/api/UserService.java | src/main/java/com/langpath/service/api/UserService.java | package com.langpath.service.api;
import com.langpath.sql.model.entity.User;
/**
* Created by sjakowski on 2016-03-16.
*/
public class UserService implements UserServiceApi {
@Override
public void save(User user) {
long value1 = 2l;
int value2 = 2;
if(value1==value2) {
... | package com.langpath.service.api;
import com.langpath.sql.model.entity.User;
/**
* Created by sjakowski on 2016-03-16.
*/
public class UserService implements UserServiceApi {
@Override
public void save(User user) {
String castException = (String) user;
}
}
| Add some test for findBug tools | Add some test for findBug tools
| Java | apache-2.0 | SebJak/spring-db-performance,SebJak/spring-db-performance,SebJak/spring-db-performance |
db8b81ac5c94d62ec55a86f88c4ec37d88282cbb | app/src/main/java/com/example/tools/timber/CrashlyticsTree.java | app/src/main/java/com/example/tools/timber/CrashlyticsTree.java | package com.example.tools.timber;
import android.util.Log;
import com.crashlytics.android.Crashlytics;
import timber.log.Timber;
import javax.annotation.Nullable;
/**
* A logging tree that logs {@link Timber#wtf} methods to crashlytics. This tree does not log to logcat at all.
*/
public class CrashlyticsTree exten... | package com.example.tools.timber;
import android.util.Log;
import com.crashlytics.android.Crashlytics;
import timber.log.Timber;
import javax.annotation.Nullable;
/**
* A logging tree that logs {@link Timber#wtf} methods to crashlytics. This tree does not log to logcat at all.
*/
public class CrashlyticsTree exten... | Make tag @Nullable in isLoggable | Make tag @Nullable in isLoggable
| Java | apache-2.0 | athkalia/Just-Another-Android-App,athkalia/Just-Another-Android-App |
add4a0f6bd6d6295e271fbf2363fb0abddd7fbb5 | ifs-data-layer/ifs-data-service/src/test/java/org/innovateuk/ifs/commons/security/DataServiceSecurityAnnotationsTest.java | ifs-data-layer/ifs-data-service/src/test/java/org/innovateuk/ifs/commons/security/DataServiceSecurityAnnotationsTest.java | package org.innovateuk.ifs.commons.security;
import org.innovateuk.ifs.activitylog.advice.TestActivityLogServiceImpl;
import org.innovateuk.ifs.security.AbstractDataServiceSecurityAnnotationsTest;
import org.innovateuk.ifs.security.StatelessAuthenticationFilter;
import java.util.List;
import static java.util.Arrays.... | package org.innovateuk.ifs.commons.security;
import org.innovateuk.ifs.activitylog.advice.TestActivityLogServiceImpl;
import org.innovateuk.ifs.security.AbstractDataServiceSecurityAnnotationsTest;
import org.innovateuk.ifs.security.StatelessAuthenticationFilter;
import springfox.documentation.schema.property.ModelSpec... | Add new endpoint with body and enable swagger-ui via 'swagger' Profile | [IFS-9682] Add new endpoint with body and enable swagger-ui via 'swagger' Profile
| Java | mit | InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service |
65d2d80d5c0121ef30d42e236819a0b3db8017cd | backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/vdscommands/gluster/GlusterServicesListVDSParameters.java | backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/vdscommands/gluster/GlusterServicesListVDSParameters.java | package org.ovirt.engine.core.common.vdscommands.gluster;
import java.util.List;
import org.ovirt.engine.core.common.vdscommands.VdsIdVDSCommandParametersBase;
import org.ovirt.engine.core.compat.Guid;
/**
* VDS parameters class with Server ID and service names as parameters, Used by the "Gluster Services List" com... | package org.ovirt.engine.core.common.vdscommands.gluster;
import java.util.Set;
import org.ovirt.engine.core.common.vdscommands.VdsIdVDSCommandParametersBase;
import org.ovirt.engine.core.compat.Guid;
/**
* VDS parameters class with Server ID and service names as parameters, Used by the "Gluster Services List" comm... | Use Set instead of List for serviceNames | gluster: Use Set instead of List for serviceNames
Use Set instead of List for serviceNames in GlusterServicesListVDSParameters
Change-Id: I26109a71448968fea0055c3d2df3c843e23d70f3
Signed-off-by: Shireesh Anjal <e067aec2602d7afc6292cb46e15bf5a637d10090@gmail.com>
| Java | apache-2.0 | walteryang47/ovirt-engine,yingyun001/ovirt-engine,zerodengxinchao/ovirt-engine,walteryang47/ovirt-engine,halober/ovirt-engine,zerodengxinchao/ovirt-engine,yapengsong/ovirt-engine,zerodengxinchao/ovirt-engine,eayun/ovirt-engine,yingyun001/ovirt-engine,walteryang47/ovirt-engine,eayun/ovirt-engine,walteryang47/ovirt-engin... |
0ced9f43ad24dba013967b0735d4f308f8797351 | src/main/java/com/ezardlabs/lostsector/objects/pickups/Pickup.java | src/main/java/com/ezardlabs/lostsector/objects/pickups/Pickup.java | package com.ezardlabs.lostsector.objects.pickups;
import com.ezardlabs.dethsquare.Collider.Collision;
import com.ezardlabs.dethsquare.Component;
import com.ezardlabs.dethsquare.Rigidbody;
import com.ezardlabs.dethsquare.TextureAtlas;
import com.ezardlabs.dethsquare.animation.Animations;
import com.ezardlabs.dethsquare... | package com.ezardlabs.lostsector.objects.pickups;
import com.ezardlabs.dethsquare.Collider.Collision;
import com.ezardlabs.dethsquare.Component;
import com.ezardlabs.dethsquare.Layers;
import com.ezardlabs.dethsquare.Rigidbody;
import com.ezardlabs.dethsquare.TextureAtlas;
import com.ezardlabs.dethsquare.animation.Ani... | Update to work with layers instead of tags | Update to work with layers instead of tags
| Java | mit | 8-Bit-Warframe/Lost-Sector |
f3f5af2ebaecfb3cf82e0a43b77dec9e5fe3a26e | src/main/java/com/github/aureliano/achmed/resources/IResource.java | src/main/java/com/github/aureliano/achmed/resources/IResource.java | package com.github.aureliano.achmed.resources;
import com.github.aureliano.achmed.resources.properties.IResourceProperties;
public interface IResource {
public abstract void make(IResourceProperties properties);
} | package com.github.aureliano.achmed.resources;
import com.github.aureliano.achmed.resources.properties.IResourceProperties;
public interface IResource {
public abstract void make(IResourceProperties properties);
public abstract ResourceType type();
} | Add method type in order to indentify resource implementations. | Add method type in order to indentify resource implementations.
| Java | mit | aureliano/achmed |
81e39334a0a324369aa8e025b149f14d6b25bbeb | src/main/java/org/graylog2/log/Log4jVersionChecker.java | src/main/java/org/graylog2/log/Log4jVersionChecker.java | package org.graylog2.log;
import org.apache.log4j.spi.LoggingEvent;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/**
*
* @author Anton Yakimov
* @author Jochen Schalanda
*/
public class Log4jVersionChecker {
private static boolean hasGetTimeStamp = true;
private s... | package org.graylog2.log;
import org.apache.log4j.spi.LoggingEvent;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/**
*
* @author Anton Yakimov
* @author Jochen Schalanda
*/
public class Log4jVersionChecker {
private static Method methodGetTimeStamp = null;
static... | Move looking up getTimestamp method to a static initialization block to ensure thread safety just in case that Log4j doesn't execute this code inside a synchronized block | Move looking up getTimestamp method to a static initialization block
to ensure thread safety just in case that Log4j doesn't execute this
code inside a synchronized block | Java | mit | voidifremoved/gelfj,mstipanov/logback-gelf,t0xa/gelfj,pukkaone/logback-gelf,gustajz/logback-gelf |
25be70476882f1688a0c648d0294ff9e51206a0e | src/test/java/guitests/HelpWindowTest.java | src/test/java/guitests/HelpWindowTest.java | package guitests;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import guitests.guihandles.HelpWindowHandle;
public class HelpWindowTest extends TaskManagerGuiTest {
@Test
public void openHelpWindow() {
taskListPanel.clickOnListView()... | package guitests;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import guitests.guihandles.HelpWindowHandle;
public class HelpWindowTest extends TaskManagerGuiTest {
@Test
public void openHelpWindow() {
//use command
assertHel... | Fix help window test fails | Fix help window test fails
| Java | mit | CS2103JAN2017-W09-B3/main,CS2103JAN2017-W09-B3/main,CS2103JAN2017-W09-B3/main |
cf431dcb586665bad274808c5d3087c4e14b2265 | src/main/java/com/easternedgerobotics/rov/io/CpuInformation.java | src/main/java/com/easternedgerobotics/rov/io/CpuInformation.java | package com.easternedgerobotics.rov.io;
import com.easternedgerobotics.rov.value.CpuValue;
import com.pi4j.system.SystemInfo;
import rx.Observable;
import rx.exceptions.Exceptions;
import rx.schedulers.Schedulers;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
public final class CpuInformation {
... | package com.easternedgerobotics.rov.io;
import com.easternedgerobotics.rov.value.CpuValue;
import com.pi4j.system.SystemInfo;
import rx.Observable;
import rx.exceptions.Exceptions;
import rx.schedulers.Schedulers;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
public final class CpuInformation {
... | Remove call to observeOn Schedulers.immediate | Remove call to observeOn Schedulers.immediate
| Java | mit | EasternEdgeRobotics/2016,EasternEdgeRobotics/2016,EasternEdgeRobotics/2016,EasternEdgeRobotics/2016 |
599ded62c8183c2fc4e5ecbd9ea399154c28c8a1 | android/src/se/hyperlab/tigcm/ListenerService.java | android/src/se/hyperlab/tigcm/ListenerService.java | package se.hyperlab.tigcm;
import android.content.Intent;
import android.os.Bundle;
import org.appcelerator.kroll.common.Log;
import org.appcelerator.kroll.KrollRuntime;
import org.appcelerator.titanium.TiApplication;
import java.util.HashMap;
import com.google.android.gms.gcm.GcmListenerService;
public class List... | package se.hyperlab.tigcm;
import android.content.Intent;
import android.os.Bundle;
import org.appcelerator.kroll.common.Log;
import org.appcelerator.kroll.KrollRuntime;
import org.appcelerator.titanium.TiApplication;
import java.util.HashMap;
import com.google.android.gms.gcm.GcmListenerService;
public class List... | Add forceCreateNotification flag to create notification even if the app is in foreground. | Add forceCreateNotification flag to create notification even if the app is in foreground.
| Java | mit | hyperlab/TiAndroidNotifications,hyperlab/TiAndroidNotifications |
2b46b7eb34a2383c62f51b4cd6cb365f769f588d | app/src/main/java/com/ibm/mil/smartringer/RingerAdjusterService.java | app/src/main/java/com/ibm/mil/smartringer/RingerAdjusterService.java | package com.ibm.mil.smartringer;
import android.app.IntentService;
import android.content.Intent;
import android.media.AudioManager;
import android.util.Log;
public class RingerAdjusterService extends IntentService {
private static final String TAG = RingerAdjusterService.class.getName();
private static final... | package com.ibm.mil.smartringer;
import android.app.IntentService;
import android.content.Intent;
import android.media.AudioManager;
import android.util.Log;
public class RingerAdjusterService extends IntentService {
private static final String TAG = RingerAdjusterService.class.getName();
public RingerAdjust... | Remove unnecessary string constants from service | Remove unnecessary string constants from service
| Java | apache-2.0 | jpetitto/android-smart-ringer |
3bfcd86532a3c068e804e3f569de38f6412d8e90 | core/src/main/java/bisq/core/btc/model/InputsAndChangeOutput.java | core/src/main/java/bisq/core/btc/model/InputsAndChangeOutput.java | /*
* This file is part of Bisq.
*
* Bisq 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.
*
* Bisq is distributed in the ... | /*
* This file is part of Bisq.
*
* Bisq 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.
*
* Bisq is distributed in the ... | Use List instead of ArrayList as type | Use List instead of ArrayList as type
| Java | agpl-3.0 | bitsquare/bitsquare,bisq-network/exchange,bisq-network/exchange,bitsquare/bitsquare |
f28110ef3ade004e6537fdedd1477556c24d80eb | atlassian-pageobjects-api/src/main/java/com/atlassian/pageobjects/binder/PageBindingException.java | atlassian-pageobjects-api/src/main/java/com/atlassian/pageobjects/binder/PageBindingException.java | package com.atlassian.pageobjects.binder;
/**
* Parent exception for all binding exceptions
*/
public class PageBindingException extends RuntimeException
{
private final Object pageObject;
public PageBindingException(String message, Object pageObject)
{
this(message, pageObject, null);
}
... | package com.atlassian.pageobjects.binder;
/**
* Parent exception for all binding exceptions
*/
public class PageBindingException extends RuntimeException
{
private final Object pageObject;
public PageBindingException(String message, Object pageObject)
{
this(message, pageObject, null);
}
... | Include PageObject type in PageBinder exception message | SELENIUM-151: Include PageObject type in PageBinder exception message
| Java | bsd-3-clause | adini121/atlassian,adini121/atlassian,adini121/atlassian,adini121/atlassian |
6479b9b98f931078513a185e08ab28bef5555e5f | src/main/java/com/jvm_bloggers/core/rss/fetchers/WgetFetcher.java | src/main/java/com/jvm_bloggers/core/rss/fetchers/WgetFetcher.java | package com.jvm_bloggers.core.rss.fetchers;
import com.rometools.rome.feed.synd.SyndFeed;
import com.rometools.rome.io.SyndFeedInput;
import javaslang.control.Option;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.io.File;
import java.util.UUID;
@Component
@Slf4j
pu... | package com.jvm_bloggers.core.rss.fetchers;
import com.rometools.rome.feed.synd.SyndFeed;
import com.rometools.rome.io.SyndFeedInput;
import javaslang.control.Option;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.io.File;
@Component
@Slf4j
public class WgetFetcher ... | Make wget use system dependent temp folder location | Make wget use system dependent temp folder location
| Java | mit | jvm-bloggers/jvm-bloggers,tdziurko/jvm-bloggers,szpak/jvm-bloggers,tdziurko/jvm-bloggers,tdziurko/jvm-bloggers,kraluk/jvm-bloggers,kraluk/jvm-bloggers,szpak/jvm-bloggers,kraluk/jvm-bloggers,jvm-bloggers/jvm-bloggers,szpak/jvm-bloggers,jvm-bloggers/jvm-bloggers,jvm-bloggers/jvm-bloggers,tdziurko/jvm-bloggers,kraluk/jvm-... |
70cdfd799cb0695502f7051bd6390ea58f5fc5e6 | network/src/net/mueller_martin/turirun/network/TurirunNetwork.java | network/src/net/mueller_martin/turirun/network/TurirunNetwork.java | package net.mueller_martin.turirun.network;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryonet.EndPoint;
public class TurirunNetwork {
public static final int tcpPort = 1337;
public static final int udpPort = 7331;
// This registers objects that are going to be sent over the network
publi... | package net.mueller_martin.turirun.network;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryonet.EndPoint;
public class TurirunNetwork {
public static final int tcpPort = 1337;
public static final int udpPort = 7331;
// This registers objects that are going to be sent over the network
publi... | Add direction to network objects | Add direction to network objects
| Java | mit | muellermartin/turirun,muellermartin/turirun,muellermartin/turirun |
16cd7d56f49213ede70d1b46910b26658ac8ae1a | api/src/main/java/com/creatubbles/api/model/gallery/HowToSection.java | api/src/main/java/com/creatubbles/api/model/gallery/HowToSection.java | package com.creatubbles.api.model.gallery;
import android.support.annotation.Nullable;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.jasminb.jsonapi.annotations.Id;
import com.github.jasminb.jsonapi.annotations.Type;
import com.github.jasm... | package com.creatubbles.api.model.gallery;
import android.support.annotation.Nullable;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.jasminb.jsonapi.annotations.Id;
import com.github.jasminb.jsonapi.annotations.Type;
import com.github.jasm... | Add video url fields to challenge section | [275] Add video url fields to challenge section
| Java | mit | creatubbles/ctb-api-android |
52b6e1bf3759d0a58f478f9616ad822eb4cd3bd5 | compiler/javatests/com/google/dart/compiler/parser/ParserTests.java | compiler/javatests/com/google/dart/compiler/parser/ParserTests.java | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.parser;
import junit.extensions.TestSetup;
import junit.framework.Tes... | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.parser;
import junit.extensions.TestSetup;
import junit.framework.Tes... | Disable dartc diet parser test | Disable dartc diet parser test
Reviewed here: http://codereview.chromium.org/10696100/
Review URL: https://chromiumcodereview.appspot.com//10692081
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@9380 260f80e4-7a28-3924-810f-c04153c831b5
| Java | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-la... |
c57c7c0e06a387e30a552301d0151fb654247d3e | src/main/java/com/collective/celos/SchedulingStrategy.java | src/main/java/com/collective/celos/SchedulingStrategy.java | package com.collective.celos;
import java.util.List;
/**
* A scheduling strategy determines the order in which slots of a workflow are executed.
*
* Scheduling strategies are configured on a per-workflow basis.
*
* On each scheduler cycle, a workflow's scheduling strategy is asked
* which workflow instances (s... | package com.collective.celos;
import java.util.List;
/**
* A scheduling strategy determines the order in which slots of a workflow are executed.
*
* Scheduling strategies are configured on a per-workflow basis.
*
* On each scheduler cycle, a workflow's scheduling strategy is asked
* which workflow instances (s... | Document that not all slots a scheduling strategy returns are necessarily executed. | Document that not all slots a scheduling strategy returns are necessarily executed.
| Java | apache-2.0 | collectivemedia/celos,collectivemedia/celos,collectivemedia/celos |
f0fcbc6f13435973185d6887b03bec565e7ff6ec | src/main/java/de/esoco/process/ui/container/DockPanel.java | src/main/java/de/esoco/process/ui/container/DockPanel.java | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// This file is a part of the 'esoco-business' project.
// Copyright 2017 Elmar Sonnenschein, esoco GmbH, Flensburg, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complia... | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// This file is a part of the 'esoco-business' project.
// Copyright 2017 Elmar Sonnenschein, esoco GmbH, Flensburg, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complia... | Add classes for simplified building of process UIs | sdack-1: Add classes for simplified building of process UIs | Java | apache-2.0 | esoco/esoco-business |
f27377ddca46fde2ce0938cbb6aeb001287ed38c | src/org/cryptonit/IOBuffer.java | src/org/cryptonit/IOBuffer.java | package org.cryptonit;
import javacard.framework.JCSystem;
public class IOBuffer {
private FileIndex index = null;
private byte [] buffer = null;
private short [] shorts = null;
final private byte SIZE = 0x0;
final private byte PATH = 0x1;
final private byte OFFSET = 0x2;
private boolean... | package org.cryptonit;
import javacard.framework.JCSystem;
public class IOBuffer {
private FileIndex index = null;
private byte [] buffer = null;
private short [] shorts = null;
final private byte SIZE = 0x0;
final private byte PATH = 0x1;
final private byte OFFSET = 0x2;
private boolean... | Load data that doesn’t fit in outgoing APDU into buffer | Load data that doesn’t fit in outgoing APDU into buffer
| Java | agpl-3.0 | mbrossard/cryptonit-applet |
44ffab3e468140cb06a4d9d8114fa34ff734911b | desktop/src/main/java/org/jdcoffre/mlc/desktop/cellar/CellarPane.java | desktop/src/main/java/org/jdcoffre/mlc/desktop/cellar/CellarPane.java | package org.jdcoffre.mlc.desktop.cellar;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.layout.GridPane;
import org.jdcoffre.mlc.desktop.Controller;
import org.jdcoffre.mlc.lib.MLCExecption;
public class CellarPane exte... | package org.jdcoffre.mlc.desktop.cellar;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.layout.GridPane;
import org.jdcoffre.mlc.desktop.Controller;
import org.jdcoffre.mlc.lib.MLCExecption;
public class CellarPane exte... | Make sure error message disappear on button click | Make sure error message disappear on button click
| Java | apache-2.0 | jdcoffre/my-little-cellar,jdcoffre/my-little-cellar |
8b6aef9bd693bb373974684aac16b5e2c5f58af0 | src/main/java/com/nulabinc/backlog4j/api/option/GetWatchesParams.java | src/main/java/com/nulabinc/backlog4j/api/option/GetWatchesParams.java | package com.nulabinc.backlog4j.api.option;
import com.nulabinc.backlog4j.http.NameValuePair;
/**
* Parameters for get watch API.
*
* @author nulab-inc
*/
public class GetWatchesParams extends GetParams {
public GetWatchesParams alreadyRead(boolean alreadyRead) {
parameters.add(new NameValuePair("alre... | package com.nulabinc.backlog4j.api.option;
import com.nulabinc.backlog4j.http.NameValuePair;
/**
* Parameters for get watch API.
*
* @author nulab-inc
*/
public class GetWatchesParams extends GetParams {
public GetWatchesParams alreadyRead(boolean alreadyRead) {
parameters.add(new NameValuePair("alre... | Fix watch count api client. | Fix watch count api client.
| Java | mit | nulab/backlog4j |
9b54b6c648bf6452ad04fa26d9bb62dcf88a5f64 | okapi-core/src/main/java/okapi/MainCluster.java | okapi-core/src/main/java/okapi/MainCluster.java | /*
* Copyright (c) 2015-2016, Index Data
* All rights reserved.
* See the file LICENSE for details.
*/
package okapi;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
public class MainCluster {
public static void main(String[] args) {
VertxOptions vopt =... | /*
* Copyright (c) 2015-2016, Index Data
* All rights reserved.
* See the file LICENSE for details.
*/
package okapi;
import com.hazelcast.config.Config;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import io.vertx.core.spi.cluster.ClusterManager;
import io... | Configure vertx/hazelcast to use SLF4J | Configure vertx/hazelcast to use SLF4J
instead of JUL
| Java | apache-2.0 | funkymalc/okapi,julianladisch/okapi-acquisitions-poc,folio-org/okapi,julianladisch/okapi-acquisitions-poc,funkymalc/okapi,julianladisch/okapi-acquisitions-poc,folio-org/okapi |
fe6dd83ee19616aef463cd03e193b2067dd72255 | src/main/java/com/tterrag/blurbg/BlurBGPlugin.java | src/main/java/com/tterrag/blurbg/BlurBGPlugin.java | package com.tterrag.blurbg;
import java.util.Map;
import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin;
public class BlurBGPlugin implements IFMLLoadingPlugin {
@Override
public String[] getASMTransformerClass() {
return new String[] { "com.tterrag.blurbg.BlurBGTransformer" };
}
@Over... | package com.tterrag.blurbg;
import java.util.Map;
import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin;
@IFMLLoadingPlugin.SortingIndex(Integer.MAX_VALUE)
public class BlurBGPlugin implements IFMLLoadingPlugin {
@Override
public String[] getASMTransformerClass() {
return new String[] { "com.tt... | Fix transformer getting pre-deobf names | Fix transformer getting pre-deobf names | Java | mit | tterrag1098/Blur |
b3ff5edd458909c5ff083f837805388462f498ab | NASAProject/src/com/example/nasaproject/MainActivity.java | NASAProject/src/com/example/nasaproject/MainActivity.java | package com.example.nasaproject;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
public class MainActivity extends Activity {
private TextView title;
privat... | package com.example.nasaproject;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import andro... | Set onClickListener on both buttons | Set onClickListener on both buttons
| Java | mit | EduTechLabs/NASAImageOfTheDay |
30ee2b3a05172ff28fd613b3b4189f80e83d29c2 | jctools-core/src/main/java/org/jctools/queues/LinkedArrayQueueUtil.java | jctools-core/src/main/java/org/jctools/queues/LinkedArrayQueueUtil.java | package org.jctools.queues;
import static org.jctools.util.UnsafeRefArrayAccess.REF_ARRAY_BASE;
import static org.jctools.util.UnsafeRefArrayAccess.REF_ELEMENT_SHIFT;
/**
* This is used for method substitution in the LinkedArray classes code generation.
*/
final class LinkedArrayQueueUtil
{
static int length(Ob... | package org.jctools.queues;
import org.jctools.util.InternalAPI;
import static org.jctools.util.UnsafeRefArrayAccess.REF_ARRAY_BASE;
import static org.jctools.util.UnsafeRefArrayAccess.REF_ELEMENT_SHIFT;
/**
* This is used for method substitution in the LinkedArray classes code generation.
*/
@InternalAPI
final cl... | Mark util class as internal API | Mark util class as internal API
Though it's already package private, but anyhow
| Java | apache-2.0 | JCTools/JCTools |
518a29243c12212464e18285beb13a1dd60be62f | src/vm/jvm/runtime/org/perl6/nqp/sixmodel/reprs/NativeCallInstance.java | src/vm/jvm/runtime/org/perl6/nqp/sixmodel/reprs/NativeCallInstance.java | package org.perl6.nqp.sixmodel.reprs;
import com.sun.jna.Function;
import org.perl6.nqp.sixmodel.SixModelObject;
public class NativeCallInstance extends SixModelObject {
/* Constants. Might be more idiomatic Java to move these to an enum. */
public static final byte ARG_VOID = 0;
public static final... | package org.perl6.nqp.sixmodel.reprs;
import com.sun.jna.Function;
import org.perl6.nqp.sixmodel.SixModelObject;
public class NativeCallInstance extends SixModelObject {
/* Flag for whether we should free a string after passing it or not. These
* are going away once the array handling is refactored.*/
p... | Move constants to enum from static final byte FOO. | Move constants to enum from static final byte FOO.
| Java | artistic-2.0 | cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp |
6e60e61429f95ee9037ce38d0caf195245d20f80 | docroot/WEB-INF/src/com/liferay/lms/upgrade/UpgradeVersion_4_2_0.java | docroot/WEB-INF/src/com/liferay/lms/upgrade/UpgradeVersion_4_2_0.java | package com.liferay.lms.upgrade;
import java.io.IOException;
import java.sql.SQLException;
import com.liferay.portal.kernel.dao.db.DB;
import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.u... | package com.liferay.lms.upgrade;
import java.io.IOException;
import java.sql.SQLException;
import com.liferay.portal.kernel.dao.db.DB;
import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.u... | Upgrade para columnas en tabla courseresult | [ADD] Upgrade para columnas en tabla courseresult
| Java | agpl-3.0 | TelefonicaED/liferaylms-portlet,TelefonicaED/liferaylms-portlet,TelefonicaED/liferaylms-portlet |
a134e1fcc245ea909c06cc14c613996a667dd750 | MagicAPI/src/main/java/com/elmakers/mine/bukkit/api/wand/WandAction.java | MagicAPI/src/main/java/com/elmakers/mine/bukkit/api/wand/WandAction.java | package com.elmakers.mine.bukkit.api.wand;
public enum WandAction {
NONE, CAST, TOGGLE, CYCLE, CYCLE_REVERSE, CYCLE_HOTBAR, CYCLE_HOTBAR_REVERSE, REPLACE,
CYCLE_ACTIVE_HOTBAR, CYCLE_ACTIVE_HOTBAR_REVERSE,
ALT_CAST, ALT_CAST2, ALT_CAST3, ALT_CAST4, ALT_CAST5, ALT_CAST6, ALT_CAST7,
CANCEL
}
| package com.elmakers.mine.bukkit.api.wand;
public enum WandAction {
NONE, CAST, TOGGLE, CYCLE, CYCLE_REVERSE, CYCLE_HOTBAR, CYCLE_HOTBAR_REVERSE, REPLACE,
CYCLE_BRUSH, CYCLE_BRUSH_REVERSE,
CYCLE_ACTIVE_HOTBAR, CYCLE_ACTIVE_HOTBAR_REVERSE,
ALT_CAST, ALT_CAST2, ALT_CAST3, ALT_CAST4, ALT_CAST5, ALT_CAS... | Add separate wand actions for cycling brushes | Add separate wand actions for cycling brushes
| Java | mit | elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicPlugin |
b5b8cfb2a20e2be02d8df469c72aa2daf97ad079 | standalone/src/main/java/org/jboss/as/console/client/util/Places.java | standalone/src/main/java/org/jboss/as/console/client/util/Places.java | package org.jboss.as.console.client.util;
import com.gwtplatform.mvp.client.proxy.PlaceRequest;
import java.util.ArrayList;
import java.util.List;
/**
* @author Heiko Braun
* @date 2/17/11
*/
public class Places {
public static List<PlaceRequest> fromString(String urlString)
{
List<PlaceRequest> ... | package org.jboss.as.console.client.util;
import com.allen_sauer.gwt.log.client.Log;
import com.gwtplatform.mvp.client.proxy.PlaceRequest;
import java.util.ArrayList;
import java.util.List;
/**
* @author Heiko Braun
* @date 2/17/11
*/
public class Places {
public static List<PlaceRequest> fromString(String u... | Fix token to place request parsing: allow hierarchy depths > 2 | Fix token to place request parsing: allow hierarchy depths > 2 | Java | lgpl-2.1 | hal/core,hal/core,hal/core,hal/core,hal/core |
40c7d72ca275680754e38fd8c926ee364d007198 | src/test/java/com/vtence/molecule/BodyPartTest.java | src/test/java/com/vtence/molecule/BodyPartTest.java | package com.vtence.molecule;
import org.junit.Test;
import java.io.IOException;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
public class BodyPartTest {
@Test
public void decodesTextContentAccordingToContentTypeCharset() throws IOException {
Stri... | package com.vtence.molecule;
import org.junit.Test;
import java.io.IOException;
import static com.vtence.molecule.helpers.Charsets.UTF_16;
import static com.vtence.molecule.helpers.Charsets.UTF_8;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
public class BodyPart... | Make sure our body part test actually proves we're using the right encoding | Make sure our body part test actually proves we're using the right encoding
| Java | mit | ensonik/molecule,ensonik/molecule,testinfected/molecule,ensonik/molecule,testinfected/molecule,testinfected/molecule,ensonik/molecule,testinfected/molecule,ensonik/molecule,testinfected/molecule |
ab0bc51effaa49e66b2ed46071b69114c43102cf | src/main/java/org/mybatis/dynamic/sql/util/ValueMapping.java | src/main/java/org/mybatis/dynamic/sql/util/ValueMapping.java | /**
* Copyright 2016-2017 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
*
* Unle... | /**
* Copyright 2016-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | Fix a little spot bugs problem | Fix a little spot bugs problem | Java | apache-2.0 | jeffgbutler/mybatis-dynamic-sql,jeffgbutler/mybatis-qbe,jeffgbutler/mybatis-dynamic-sql,jeffgbutler/mybatis-qbe |
65495e5a57d9f1e62d074af02f2f149b4998b37a | ggp-base/src/util/logging/LogSummaryGenerator.java | ggp-base/src/util/logging/LogSummaryGenerator.java | package util.logging;
import java.io.File;
import java.io.FilenameFilter;
public abstract class LogSummaryGenerator {
public String getLogSummary(String matchId) {
final String thePrefix = matchId;
File logsDirectory = new File("logs");
FilenameFilter logsFilter = new FilenameFilt... | package util.logging;
import java.io.File;
import java.io.FilenameFilter;
public abstract class LogSummaryGenerator {
public String getLogSummary(String matchId) {
final String thePrefix = matchId;
File logsDirectory = new File("logs");
FilenameFilter logsFilter = new FilenameFilt... | Fix a bug in the way the log summary generator fits together paths. | Fix a bug in the way the log summary generator fits together paths.
git-svn-id: 4739e81c2fe647bfb539b919360e2c658e6121ea@417 716a755e-b13f-cedc-210d-596dafc6fb9b
| Java | bsd-3-clause | cerebro/ggp-base,cerebro/ggp-base |
5983fd6bed6cb56c4a4e0456ad65fc83adcf7c3d | src/main/BitManipulator.java | src/main/BitManipulator.java | package main;
class BitManipulator {
static int insertBitsToPosition(int n, int m, int i, int j) {
int left = ~0 << j;
int right = (1 << i-1) - 1;
int mask = left | right;
int nCleared = n & mask;
int mShifted = m << i-1;
return nCleared | mShifted;
}
}
| package main;
class BitManipulator {
static int insertBitsToPosition(int n, int m, int i, int j) {
return (n & ((~0 << j) | ((1 << i-1) - 1))) | (m << i-1);
}
}
| Refactor solution for 5.1 to 1-line transofrmation function. Note: it takes less space but almost unreadable for human. | Refactor solution for 5.1 to 1-line transofrmation function. Note: it
takes less space but almost unreadable for human.
| Java | bsd-3-clause | mikhsol/crackingTheCodingInterviewJava |
0cc9970af32c36d72106e8dadcb8c1a530fbd2a1 | WaywardChat/src/main/java/net/wayward_realms/waywardchat/ReplyCommand.java | WaywardChat/src/main/java/net/wayward_realms/waywardchat/ReplyCommand.java | package net.wayward_realms.waywardchat;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class ReplyCommand implements CommandExecutor {
private WaywardChat plugin;
publ... | package net.wayward_realms.waywardchat;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class ReplyCommand implements CommandExecutor {
private WaywardChat plugin;
publ... | Add missing first word to replied messages | Add missing first word to replied messages
| Java | agpl-3.0 | WaywardRealms/Wayward |
b2a220b1e67ac548a906a0236d4d10f677214424 | src/test/java/org/clafer/choco/constraint/ElementArraySupportTest.java | src/test/java/org/clafer/choco/constraint/ElementArraySupportTest.java | package org.clafer.choco.constraint;
import org.chocosolver.solver.constraints.Constraint;
import org.chocosolver.solver.variables.IntVar;
import org.clafer.choco.constraint.ConstraintQuickTest.Check;
import org.clafer.choco.constraint.propagator.PropElementArraySupport;
import org.clafer.test.NonEmpty;
import static ... | package org.clafer.choco.constraint;
import org.chocosolver.solver.Model;
import org.chocosolver.solver.constraints.Constraint;
import org.chocosolver.solver.variables.IntVar;
import static org.clafer.choco.constraint.ConstraintQuickTest.$;
import org.clafer.choco.constraint.ConstraintQuickTest.Check;
import org.clafe... | Add a test case for test element array support constraint. | Add a test case for test element array support constraint.
| Java | mit | gsdlab/chocosolver,gsdlab/chocosolver |
8ed762f79ae2217e4eef59ecea669b5d3956f647 | featuros/src/main/java/io/fourfinanceit/featuros/deployment/Deployment.java | featuros/src/main/java/io/fourfinanceit/featuros/deployment/Deployment.java | package io.fourfinanceit.featuros.deployment;
import org.springframework.hateoas.Identifiable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.time.Instant;
@Entity
class Deployment implements Identifiable<Long> {
... | package io.fourfinanceit.featuros.deployment;
import com.fasterxml.jackson.annotation.JsonRootName;
import org.springframework.hateoas.Identifiable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.time.Instant;
@JsonR... | Add 'deployment' name for json root | Add 'deployment' name for json root
| Java | mit | 4finance/featuros,4finance/featuros,4finance/featuros |
ceaf9e730e701f80360ae7f02ccd945da64dee8e | gerrit-docker/src/main/java/io/fabric8/app/gerrit/GerritModelProcessor.java | gerrit-docker/src/main/java/io/fabric8/app/gerrit/GerritModelProcessor.java | package io.fabric8.app.gerrit;
import io.fabric8.kubernetes.generator.annotation.KubernetesModelProcessor;
import io.fabric8.openshift.api.model.template.TemplateBuilder;
@KubernetesModelProcessor
public class GerritModelProcessor {
public void onList(TemplateBuilder builder) {
builder.addNewServiceObjec... | package io.fabric8.app.gerrit;
import io.fabric8.kubernetes.generator.annotation.KubernetesModelProcessor;
import io.fabric8.openshift.api.model.template.TemplateBuilder;
@KubernetesModelProcessor
public class GerritModelProcessor {
public void onList(TemplateBuilder builder) {
builder.addNewServiceObjec... | Comment line with protocol to avoid this error javax.ws.rs.WebApplicationException: HTTP 422 Service 'gerrit-http-service' is invalid: spec.ports[0].protocol: unsupported value 'HTTP' | Comment line with protocol to avoid this error javax.ws.rs.WebApplicationException: HTTP 422 Service 'gerrit-http-service' is invalid: spec.ports[0].protocol: unsupported value 'HTTP'
| Java | apache-2.0 | finiteloopme/cd-jboss-fuse,finiteloopme/cd-jboss-fuse,finiteloopme/cd-jboss-fuse |
f4bbcc0498100f2de0f786e6eb7365d342e137c5 | src/main/java/org/usfirst/frc/team1360/robot/RobotMap.java | src/main/java/org/usfirst/frc/team1360/robot/RobotMap.java | package org.usfirst.frc.team1360.robot;
/**
* The RobotMap is a mapping from the ports sensors and actuators are wired into
* to a variable name. This provides flexibility changing wiring, makes checking
* the wiring easier and significantly reduces the number of magic numbers
* floating around.
*/
public class R... | package org.usfirst.frc.team1360.robot;
/**
* The RobotMap is a mapping from the ports sensors and actuators are wired into
* to a variable name. This provides flexibility changing wiring, makes checking
* the wiring easier and significantly reduces the number of magic numbers
* floating around.
*/
public class R... | Revert "Revert "Added new port"" | Revert "Revert "Added new port""
This reverts commit c6b095fabf0ba5228d1549738a0fef806401a1da.
| Java | mit | FRC1360/Stronghold2016 |
c680a8f2f109fd5edea6389fb653a544eabaa810 | src/com/crossbowffs/quotelock/modules/hitokoto/HitokotoQuoteModule.java | src/com/crossbowffs/quotelock/modules/hitokoto/HitokotoQuoteModule.java | package com.crossbowffs.quotelock.modules.hitokoto;
import android.content.ComponentName;
import android.content.Context;
import com.crossbowffs.quotelock.R;
import com.crossbowffs.quotelock.api.QuoteData;
import com.crossbowffs.quotelock.api.QuoteModule;
import com.crossbowffs.quotelock.utils.IOUtils;
import org.json... | package com.crossbowffs.quotelock.modules.hitokoto;
import android.content.ComponentName;
import android.content.Context;
import com.crossbowffs.quotelock.R;
import com.crossbowffs.quotelock.api.QuoteData;
import com.crossbowffs.quotelock.api.QuoteModule;
import com.crossbowffs.quotelock.utils.IOUtils;
import org.json... | Change the source of Hitokoto to Hitokoto.cn. | Change the source of Hitokoto to Hitokoto.cn.
| Java | mit | Yubyf/QuoteLock |
842015680d8c1efde9a70eb41ca460c32cb3a822 | src/main/java/net/hamnaberg/jsonstat/JsonStat.java | src/main/java/net/hamnaberg/jsonstat/JsonStat.java | package net.hamnaberg.jsonstat;
/**
* Created by hadrien on 07/06/16.
*
* @see <a href="https://json-stat.org/format/#version">json-stat.org/format/#version</a>
*/
public class JsonStat {
private final Version version;
private final Class clazz;
public JsonStat(Version version, Class clazz) {
... | package net.hamnaberg.jsonstat;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by hadrien on 07/06/16.
*
* @see <a href="https://json-stat.org/format/#version">json-stat.org/format/#version</a>
*/
public class JsonStat {
private final Version version;
private final Class clazz;
... | Add the class and version property | Add the class and version property
| Java | mit | statisticsnorway/json-stat.java |
acdf81128ac531b45b161a3b606de5d3ffc9fed6 | src/main/java/no/deichman/ls/parasite/Service.java | src/main/java/no/deichman/ls/parasite/Service.java |
package no.deichman.ls.parasite;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
/** Example resource class hosted at the URI path "/myresource"
*/
@Path("/myresource")
public class MyResource {
/** Method processing HTTP GET requests, producing "text/plain" MIME media
* ... |
package no.deichman.ls.parasite;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
/** Example resource class hosted at the URI path "/myresource"
*/
@Path("/service")
public class Service {
/** Method processing HTTP GET requests, producing "text/t... | Change classname, add basic framework | Change classname, add basic framework
| Java | mit | brinxmat/parasite |
8b8781acf4a6ffde04bba1530187928bab11a45f | python/src/com/jetbrains/python/buildout/config/BuildoutCfgFileType.java | python/src/com/jetbrains/python/buildout/config/BuildoutCfgFileType.java | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.buildout.config;
import com.intellij.openapi.fileTypes.LanguageFileType;
import icons.PythonIcons;
import org.jetbrains.annotations.NonNls;
import or... | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.buildout.config;
import com.intellij.openapi.fileTypes.LanguageFileType;
import com.intellij.openapi.util.NlsSafe;
import icons.PythonIcons;
import o... | Replace `@NonNls` with more appropriate `@NlsSafe` annotation | i18n: Replace `@NonNls` with more appropriate `@NlsSafe` annotation
GitOrigin-RevId: f3872ea7425784c82ad9e77e3a04b1805ab2685a | Java | apache-2.0 | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... |
6f6d810d0b73ab7f6a894c22eb9151bb6553b0ed | bindings/czmq-jni/src/main/java/org/zeromq/czmq/ZFrame.java | bindings/czmq-jni/src/main/java/org/zeromq/czmq/ZFrame.java | package org.zeromq.czmq;
public class ZFrame implements AutoCloseable {
long pointer;
public ZFrame() {
pointer = __init();
}
public ZFrame(long address) {
pointer = address;
}
native static long __init();
native static long __init(byte[] buf, long size);
native st... | package org.zeromq.czmq;
public class ZFrame implements AutoCloseable {
long pointer;
public ZFrame() {
pointer = __init();
}
public ZFrame(long address) {
pointer = address;
}
public ZFrame(byte[] buf, long size) {
pointer = __init(buf, size);
}
native stati... | Add byte constructor to zframe | Add byte constructor to zframe
| Java | mpl-2.0 | saki4510t/czmq,twhittock/czmq,ritchiecarroll/czmq,awynne/czmq,keent/czmq,oikosdev/czmq,taotetek/czmq,saki4510t/czmq,ritchiecarroll/czmq,evoskuil/czmq,awynne/czmq,oikosdev/czmq,evoskuil/czmq,c-rack/czmq,c-rack/czmq,taotetek/czmq,evoskuil/czmq,taotetek/czmq,eburkitt/czmq,evoskuil/czmq,awynne/czmq,eburkitt/czmq,trevorbern... |
0350eddfb48085144201078b5d0b18aa9050cdbd | src/main/java/de/prob2/ui/verifications/cbc/CBCFormulaFindStateItem.java | src/main/java/de/prob2/ui/verifications/cbc/CBCFormulaFindStateItem.java | package de.prob2.ui.verifications.cbc;
import java.util.Objects;
import de.prob.statespace.Trace;
public class CBCFormulaFindStateItem extends CBCFormulaItem {
private Trace example;
public CBCFormulaFindStateItem(String name, String code, CBCType type) {
super(name, code, type);
this.example = null;
}
... | package de.prob2.ui.verifications.cbc;
import java.util.Objects;
import de.prob.statespace.Trace;
public class CBCFormulaFindStateItem extends CBCFormulaItem {
private transient Trace example;
public CBCFormulaFindStateItem(String name, String code, CBCType type) {
super(name, code, type);
this.example = n... | Fix an exception when loading project | Fix an exception when loading project | Java | epl-1.0 | bendisposto/prob2-ui,bendisposto/prob2-ui,bendisposto/prob2-ui,bendisposto/prob2-ui |
49a1af4cae595d73706a64539ec3c6359eedcb76 | data-model/src/main/java/org/pdxfinder/repositories/PdxPassageRepository.java | data-model/src/main/java/org/pdxfinder/repositories/PdxPassageRepository.java | package org.pdxfinder.repositories;
import org.pdxfinder.dao.PdxPassage;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
@Repository
publi... | package org.pdxfinder.repositories;
import org.pdxfinder.dao.PdxPassage;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
@Repository
publi... | Add find method by passage, datasource and model Id | Add find method by passage, datasource and model Id
| Java | apache-2.0 | PDXFinder/pdxfinder,PDXFinder/pdxfinder,PDXFinder/pdxfinder,PDXFinder/pdxfinder |
1e58e41ba7f1d0a497856395057e798109e8d351 | src/de/danoeh/antennapod/util/FileNameGenerator.java | src/de/danoeh/antennapod/util/FileNameGenerator.java | package de.danoeh.antennapod.util;
import java.util.Arrays;
/** Generates valid filenames for a given string. */
public class FileNameGenerator {
private static final char[] ILLEGAL_CHARACTERS = { '/', '\\', '?', '%',
'*', ':', '|', '"', '<', '>' };
static {
Arrays.sort(ILLEGAL_CHARACTERS);
}
private Fil... | package de.danoeh.antennapod.util;
import java.util.Arrays;
/** Generates valid filenames for a given string. */
public class FileNameGenerator {
private static final char[] ILLEGAL_CHARACTERS = { '/', '\\', '?', '%',
'*', ':', '|', '"', '<', '>' };
static {
Arrays.sort(ILLEGAL_CHARACTERS);
}
private Fil... | Remove trailing spaces in filenames | Remove trailing spaces in filenames
FAT does not support trailing spaces, so we must remove them | Java | mit | cdysthe/AntennaPod,twiceyuan/AntennaPod,wooi/AntennaPod,TomHennen/AntennaPod,gk23/AntennaPod,the100rabh/AntennaPod,SpicyCurry/AntennaPod,hgl888/AntennaPod,wskplho/AntennaPod,udif/AntennaPod,mxttie/AntennaPod,drabux/AntennaPod,the100rabh/AntennaPod,jimulabs/AntennaPod-mirror,mfietz/AntennaPod,udif/AntennaPod,facebookarc... |
97ba30d1a7ec6dc8bab7de07eb1639196e6d5e2e | src/java/com/jme/bui/background/BlankBackground.java | src/java/com/jme/bui/background/BlankBackground.java | //
// $Id$
//
// BUI - a user interface library for the JME 3D engine
// Copyright (C) 2005, Michael Bayne, All Rights Reserved
//
// This library is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; eithe... | //
// $Id$
//
// BUI - a user interface library for the JME 3D engine
// Copyright (C) 2005, Michael Bayne, All Rights Reserved
//
// This library is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; eithe... | Allow blank backgrounds to be created with insets. | Allow blank backgrounds to be created with insets.
| Java | lgpl-2.1 | samskivert/jme-bui,samskivert/jme-bui |
0de25a836b65a1df54b38772ff5e58dd6873c151 | src/main/java/bio/terra/cli/command/config/List.java | src/main/java/bio/terra/cli/command/config/List.java | package bio.terra.cli.command.config;
import bio.terra.cli.context.GlobalContext;
import java.util.concurrent.Callable;
import picocli.CommandLine;
/** This class corresponds to the third-level "terra config list" command. */
@CommandLine.Command(
name = "list",
description = "List all configuration propertie... | package bio.terra.cli.command.config;
import bio.terra.cli.context.GlobalContext;
import java.util.concurrent.Callable;
import picocli.CommandLine;
/** This class corresponds to the third-level "terra config list" command. */
@CommandLine.Command(
name = "list",
description = "List all configuration propertie... | Include config parameter name in list output. | Include config parameter name in list output.
| Java | bsd-3-clause | DataBiosphere/terra-cli,DataBiosphere/terra-cli |
834c1c4968ac9aeb642b1dbf125c6aebd59bf963 | src/markehme/FactionsPerms/listeners/ReadyCheck.java | src/markehme/FactionsPerms/listeners/ReadyCheck.java | package markehme.FactionsPerms.listeners;
import markehme.FactionsPerms.FactionsPerms;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerLoginEvent;
import org.bukkit.event.player.PlayerLoginEvent.Result;
public class R... | package markehme.FactionsPerms.listeners;
import java.io.IOException;
import java.util.Arrays;
import java.util.logging.Level;
import markehme.FactionsPerms.FactionsPerms;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.Pla... | Add no-defined users to the 'default' group | Add no-defined users to the 'default' group
| Java | apache-2.0 | scriptinator/FactionsPerms |
7d25cf0f73f77f512490c67bbb47c4d2771d04b7 | src/main/java/com/leevilehtonen/cookagram/config/PostgreSQLDialectCustom.java | src/main/java/com/leevilehtonen/cookagram/config/PostgreSQLDialectCustom.java | package com.leevilehtonen.cookagram.config;
import org.hibernate.dialect.PostgreSQL94Dialect;
import org.hibernate.type.descriptor.sql.BinaryTypeDescriptor;
import org.hibernate.type.descriptor.sql.SqlTypeDescriptor;
import java.sql.Types;
public class PostgreSQLDialectCustom extends PostgreSQL94Dialect {
@Over... | package com.leevilehtonen.cookagram.config;
import org.hibernate.dialect.PostgreSQL94Dialect;
import java.sql.Types;
public class PostgreSQLDialectCustom extends PostgreSQL94Dialect {
public PostgreSQLDialectCustom() {
registerColumnType(Types.BLOB, "bytea");
registerColumnType(Types.LONGVARBINA... | Update image content type for Postgres | Update image content type for Postgres
| Java | mit | leevilehtonen/cook-a-gram,leevilehtonen/cook-a-gram,leevilehtonen/cook-a-gram |
a41366d068676d7fe4db8acb07a772956c121332 | src/main/java/net/onrc/onos/core/topology/serializers/PortSerializer.java | src/main/java/net/onrc/onos/core/topology/serializers/PortSerializer.java | package net.onrc.onos.core.topology.serializers;
import java.io.IOException;
import net.onrc.onos.core.topology.Port;
import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.map.SerializerProvider;
import org.codehaus.jackson.map.ser.std.SerializerB... | package net.onrc.onos.core.topology.serializers;
import java.io.IOException;
import net.onrc.onos.core.topology.Port;
import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.map.SerializerProvider;
import org.codehaus.jackson.map.ser.std.SerializerB... | Remove devices array from the Port JSON representation. | Remove devices array from the Port JSON representation.
The array was never populated with device data, it was only added to maintain compatability with the old REST API.
Change-Id: Id89e9732c1ae229b7accc13b97283b8e000cd3ae
| Java | apache-2.0 | opennetworkinglab/spring-open,opennetworkinglab/spring-open,opennetworkinglab/spring-open,opennetworkinglab/spring-open,opennetworkinglab/spring-open,opennetworkinglab/spring-open |
e4a7139aaf7abb3df49079e9fbe150917a0225dc | src/main/java/seedu/jimi/commons/events/ui/ShowTaskPanelSectionEvent.java | src/main/java/seedu/jimi/commons/events/ui/ShowTaskPanelSectionEvent.java | package seedu.jimi.commons.events.ui;
import seedu.jimi.commons.events.BaseEvent;
/**
* Indicates user request to show a section of the taskList panel.
* @author zexuan
*
*/
public class ShowTaskPanelSectionEvent extends BaseEvent{
String sectionToDisplay;
public ShowTaskPanelSectionEvent(String sec... | package seedu.jimi.commons.events.ui;
import seedu.jimi.commons.events.BaseEvent;
/**
* Indicates user request to show a section of the taskList panel.
* @author zexuan
*
*/
public class ShowTaskPanelSectionEvent extends BaseEvent{
public final String sectionToDisplay;
public ShowTaskPanelSectionEve... | Modify access level of member var | Modify access level of member var
| Java | mit | CS2103AUG2016-T09-C2/main,CS2103AUG2016-T09-C2/main |
081792483975a3c21c4c252a1e8e45d2a6567af6 | src/net.aeten.core/net/aeten/core/Model.java | src/net.aeten.core/net/aeten/core/Model.java | package net.aeten.core;
import net.aeten.core.event.EventData;
import net.aeten.core.event.Handler;
public interface Model<M, F extends Enum<F>> {
void addObserver(Handler<EventData<M, F>> observer);
void removeObserver(Handler<EventData<M, F>> observer);
}
| package net.aeten.core;
import net.aeten.core.event.EventData;
import net.aeten.core.event.Handler;
public interface Model <M extends Model<M, F>, F extends Enum <F>> {
void addObserver (Handler <EventData <M, F>> observer);
void removeObserver (Handler <EventData <M, F>> observer);
<T> void set ( F field,
... | Add getter and setter methods. | Add getter and setter methods. | Java | mit | aeten/net.aeten.core,aeten/net.aeten.core |
d1b0ecf7a695406a3a88da9a5f6c6b1859b784a9 | webkit/webkit/src/main/java/androidx/webkit/internal/StartupFeatures.java | webkit/webkit/src/main/java/androidx/webkit/internal/StartupFeatures.java | /*
* Copyright 2022 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 applica... | /*
* Copyright 2022 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 applica... | Rename the WebView manifest key name | Rename the WebView manifest key name
Rename SET_DATA_DIRECTORY_SUFFIX:DEV to
STARTUP_FEATURE_SET_DATA_DIRECTORY_SUFFIX
Change-Id: Id2a0a29a3cbc6972bbf285836cd13e8d2af7fd3d
Test: ./gradlew webkit:integration-tests:testapp:connectedAndroidTest
Bug: 250553687
| Java | apache-2.0 | androidx/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/andro... |
b0782aaa332a12d1b2ce8d45d4a69d7f29273169 | app/src/main/java/com/satsumasoftware/timetable/db/ClassDetailsSchema.java | app/src/main/java/com/satsumasoftware/timetable/db/ClassDetailsSchema.java | package com.satsumasoftware.timetable.db;
import android.provider.BaseColumns;
import com.satsumasoftware.timetable.db.util.SchemaUtilsKt;
public final class ClassDetailsSchema implements BaseColumns {
public static final String TABLE_NAME = "class_details";
public static final String COL_CLASS_ID = "class_... | package com.satsumasoftware.timetable.db;
import android.provider.BaseColumns;
import com.satsumasoftware.timetable.db.util.SchemaUtilsKt;
public final class ClassDetailsSchema implements BaseColumns {
public static final String TABLE_NAME = "class_details";
public static final String COL_CLASS_ID = "class_... | Make the room and teacher columns of TEXT type | Make the room and teacher columns of TEXT type
| Java | apache-2.0 | FarbodSalamat-Zadeh/TimetableApp,FarbodSalamat-Zadeh/TimetableApp |
ba02c820ee5a77e516b1a0e48184f54d39b03641 | cat-core/src/test/java/com/dianping/cat/AllTests.java | cat-core/src/test/java/com/dianping/cat/AllTests.java | package com.dianping.cat;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
import com.dianping.cat.message.spi.core.HtmlMessageCodecTest;
import com.dianping.cat.message.spi.core.WaterfallMessageCodecTest;
import com.dianping.cat.storage.dump.LocalM... | package com.dianping.cat;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
import com.dianping.cat.message.spi.core.HtmlMessageCodecTest;
import com.dianping.cat.message.spi.core.TcpSocketReceiverTest;
import com.dianping.cat.message.spi.core.Waterf... | Add TcpSocketReceiverTest into Test Suite | Add TcpSocketReceiverTest into Test Suite
| Java | apache-2.0 | redbeans2015/cat,chinaboard/cat,JacksonSha/cat,chqlb/cat,JacksonSha/cat,gspandy/cat,javachengwc/cat,wyzssw/cat,howepeng/cat,JacksonSha/cat,javachengwc/cat,wuqiangxjtu/cat,dadarom/cat,javachengwc/cat,redbeans2015/cat,jialinsun/cat,gspandy/cat,TonyChai24/cat,xiaojiaqi/cat,wuqiangxjtu/cat,redbeans2015/cat,xiaojiaqi/cat,ji... |
21b4bf89b4454d2af88762200e5d8b42e0d36cf4 | test/114-ParallelGC/src/Main.java | test/114-ParallelGC/src/Main.java | /*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Fix run-test 114 ParallelGC to account for OOM | ART: Fix run-test 114 ParallelGC to account for OOM
This catches any OOMs and doesn't pollute the log.
Bug: 16406852
Change-Id: I1bc95091ccae35a8cb5f2ef0a789f8c8ce5209d0
| Java | apache-2.0 | treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst |
b50359e01b5c9fd5a6e06f0e145c51560e2b5a2d | src/main/java/uk/ac/ic/wlgitbridge/snapshot/base/MissingRepositoryException.java | src/main/java/uk/ac/ic/wlgitbridge/snapshot/base/MissingRepositoryException.java | package uk.ac.ic.wlgitbridge.snapshot.base;
import com.google.gson.JsonElement;
import uk.ac.ic.wlgitbridge.git.exception.SnapshotAPIException;
import java.util.Arrays;
import java.util.List;
public class MissingRepositoryException extends SnapshotAPIException {
public static final String GENERIC_REASON =
... | package uk.ac.ic.wlgitbridge.snapshot.base;
import com.google.gson.JsonElement;
import uk.ac.ic.wlgitbridge.git.exception.SnapshotAPIException;
import java.util.Arrays;
import java.util.List;
public class MissingRepositoryException extends SnapshotAPIException {
public static final String GENERIC_REASON =
... | Make GENERIC_REASON consistent with web messages. | Make GENERIC_REASON consistent with web messages.
| Java | mit | overleaf/writelatex-git-bridge,overleaf/writelatex-git-bridge |
7550415bef2c1801432f9a141049d585bd648dd1 | hello-service-api/src/main/java/zero/down/time/soa/api/HelloServiceApi.java | hello-service-api/src/main/java/zero/down/time/soa/api/HelloServiceApi.java | package zero.down.time.soa.api;
import org.apache.camel.builder.RouteBuilder;
/**
* @author magonzal
* @version 1.0.0
*/
public class HelloServiceApi extends RouteBuilder {
@Override
public void configure() throws Exception {
//@formatter:off
restConfiguration().component("jetty")
.host("localhost")
.... | package zero.down.time.soa.api;
import org.apache.camel.builder.RouteBuilder;
import org.eclipse.jetty.server.Server;
/**
* @author magonzal
* @version 1.0.0
*/
public class HelloServiceApi extends RouteBuilder {
@Override
public void configure() throws Exception {
//@formatter:off
restConfiguration().comp... | Use random port to start Jetty | Use random port to start Jetty
| Java | apache-2.0 | robgmills/zero-downtime-soa,robgmills/zero-downtime-soa |
03995388971e91a6800759bbc4c785d3d337c9cc | cloudlets/src/main/java/eu/mosaic_cloud/cloudlets/connectors/core/IConnector.java | cloudlets/src/main/java/eu/mosaic_cloud/cloudlets/connectors/core/IConnector.java | /*
* #%L
* mosaic-cloudlets
* %%
* Copyright (C) 2010 - 2012 Institute e-Austria Timisoara (Romania)
* %%
* 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.o... | /*
* #%L
* mosaic-cloudlets
* %%
* Copyright (C) 2010 - 2012 Institute e-Austria Timisoara (Romania)
* %%
* 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.o... | Remove `destroy` method which is already inherited from extended interface | Remove `destroy` method which is already inherited from extended interface
| Java | apache-2.0 | mosaic-cloud/mosaic-java-platform,mosaic-cloud/mosaic-java-platform |
3cc4a175e58c9dcd1d36a4cef6f7954bdc035c25 | src/edu/yalestc/yalepublic/MapView.java | src/edu/yalestc/yalepublic/MapView.java | package edu.yalestc.yalepublic;
import android.app.Activity;
import android.os.Bundle;
/**
* Created by Jason Liu on 10/18/14.
*/
public class MapView extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layou... | package edu.yalestc.yalepublic;
import android.app.Activity;
import android.os.Bundle;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.MapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.ma... | Add centered map on our location | Add centered map on our location
| Java | mit | YaleSTC/YalePublic-android,YaleSTC/YalePublic-android |
b622595680769bb1f4378abe77d98a0069fe8fa0 | src/main/java/com/google/devtools/build/lib/rules/test/ExecutionInfoProvider.java | src/main/java/com/google/devtools/build/lib/rules/test/ExecutionInfoProvider.java | // Copyright 2014 The Bazel Authors. 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 appl... | // Copyright 2014 The Bazel Authors. 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 appl... | Remove reference to web browsers in bazel documentation. | Remove reference to web browsers in bazel documentation.
--
MOS_MIGRATED_REVID=115912069
| Java | apache-2.0 | LuminateWireless/bazel,twitter-forks/bazel,anupcshan/bazel,davidzchen/bazel,ButterflyNetwork/bazel,damienmg/bazel,UrbanCompass/bazel,Asana/bazel,Asana/bazel,UrbanCompass/bazel,iamthearm/bazel,ulfjack/bazel,hermione521/bazel,mikelalcon/bazel,variac/bazel,damienmg/bazel,perezd/bazel,kchodorow/bazel,katre/bazel,zhexuany/b... |
ddf8c66e6e7935b6eabd14f8e536e347439e315e | src/tests/com/puppycrawl/tools/checkstyle/checks/coding/ReturnCountCheckTest.java | src/tests/com/puppycrawl/tools/checkstyle/checks/coding/ReturnCountCheckTest.java | package com.puppycrawl.tools.checkstyle.checks.coding;
import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
import java.io.File;
public class ReturnCountCheckTest extends BaseCheckTestCase
{
public void testDefault() throws Exception
{
... | package com.puppycrawl.tools.checkstyle.checks.coding;
import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
import java.io.File;
public class ReturnCountCheckTest extends BaseCheckTestCase
{
public void testDefault() throws Exception
{
... | Test for format property of ReturnCount check | Test for format property of ReturnCount check
| Java | lgpl-2.1 | maddingo/checkstyle,lhanson/checkstyle,maddingo/checkstyle,lhanson/checkstyle |
8ae71e96fb279043b95d2d3608da0010e4e29b25 | fixture/Java/input_code/Seed.java | fixture/Java/input_code/Seed.java | package com.google.testing.pogen;
import com.google.common.base.Preconditions;
public class Seed {
public static void main(String[] args) {
int a = 0;
int b, c;
class A {
}
checkArgument(args == null);
checkArgument(args == null, "test");
Preconditions.checkArgument(args != null);
Preconditions.ch... | package com.google.testing.pogen;
import com.google.common.base.Preconditions;
public class Seed {
public static void main(String[] args) {
int a = 0;
int b, c;
class A {
}
checkArgument(args == null);
checkArgument(args == null, "test");
Preconditions.checkArgument(args != null);
Preconditions.ch... | Improve Java seed source code. | Improve Java seed source code.
| Java | apache-2.0 | exKAZUu/ParserTests,exKAZUu/ParserTests,exKAZUu/ParserTests,exKAZUu/ParserTests,exKAZUu/ParserTests,exKAZUu/ParserTests,exKAZUu/ParserTests |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.