diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/src/com/android/contacts/ViewContactActivity.java b/src/com/android/contacts/ViewContactActivity.java
index 5313c287a..168da46dd 100644
--- a/src/com/android/contacts/ViewContactActivity.java
+++ b/src/com/android/contacts/ViewContactActivity.java
@@ -1,1278 +1,1278 @@
/*
* Copyright (C) 2007 The Androi... | true | true | private final void buildEntries() {
// Clear out the old entries
final int numSections = mSections.size();
for (int i = 0; i < numSections; i++) {
mSections.get(i).clear();
}
mRawContactIds.clear();
mReadOnlySourcesCnt = 0;
mWritableSourcesCnt = ... | private final void buildEntries() {
// Clear out the old entries
final int numSections = mSections.size();
for (int i = 0; i < numSections; i++) {
mSections.get(i).clear();
}
mRawContactIds.clear();
mReadOnlySourcesCnt = 0;
mWritableSourcesCnt = ... |
diff --git a/main/src/com/google/refine/importers/ExcelImporter.java b/main/src/com/google/refine/importers/ExcelImporter.java
index ee7976d2..e040b1d2 100644
--- a/main/src/com/google/refine/importers/ExcelImporter.java
+++ b/main/src/com/google/refine/importers/ExcelImporter.java
@@ -1,282 +1,282 @@
/*
Copyright ... | true | true | public void parseOneFile(
Project project,
ProjectMetadata metadata,
ImportingJob job,
String fileSource,
InputStream inputStream,
int limit,
JSONObject options,
List<Exception> exceptions
) {
boolean xmlBased = JSONUtilities.getBoolean(opt... | public void parseOneFile(
Project project,
ProjectMetadata metadata,
ImportingJob job,
String fileSource,
InputStream inputStream,
int limit,
JSONObject options,
List<Exception> exceptions
) {
boolean xmlBased = JSONUtilities.getBoolean(opt... |
diff --git a/app/models/Guess.java b/app/models/Guess.java
index baa5f88..7066770 100644
--- a/app/models/Guess.java
+++ b/app/models/Guess.java
@@ -1,27 +1,28 @@
package models;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import play.db.jpa.Model;
@Entity
public class Guess extends... | true | true | public Guess(User player, double answer, Problem problemAnswered) {
this.player = player;
this.answer = answer;
this.problemAnswered = problemAnswered;
}
| public Guess(User player, double answer, Problem problemAnswered) {
this.player = player;
this.answer = answer;
this.problemAnswered = problemAnswered;
this.game = player.game;
}
|
diff --git a/core-task-impl/src/main/java/org/cytoscape/task/internal/CyActivator.java b/core-task-impl/src/main/java/org/cytoscape/task/internal/CyActivator.java
index 2a98498b2..0e000a2e3 100644
--- a/core-task-impl/src/main/java/org/cytoscape/task/internal/CyActivator.java
+++ b/core-task-impl/src/main/java/org/cyto... | false | true | public void start(BundleContext bc) {
CyEventHelper cyEventHelperRef = getService(bc,CyEventHelper.class);
RecentlyOpenedTracker recentlyOpenedTrackerServiceRef = getService(bc,RecentlyOpenedTracker.class);
CyNetworkNaming cyNetworkNamingServiceRef = getService(bc,CyNetworkNaming.class);
UndoSupport undoSuppo... | public void start(BundleContext bc) {
CyEventHelper cyEventHelperRef = getService(bc,CyEventHelper.class);
RecentlyOpenedTracker recentlyOpenedTrackerServiceRef = getService(bc,RecentlyOpenedTracker.class);
CyNetworkNaming cyNetworkNamingServiceRef = getService(bc,CyNetworkNaming.class);
UndoSupport undoSuppo... |
diff --git a/whitepages/whitepages-war/src/main/java/com/silverpeas/whitePages/servlets/WhitePagesRequestRouter.java b/whitepages/whitepages-war/src/main/java/com/silverpeas/whitePages/servlets/WhitePagesRequestRouter.java
index c4e41bb9f..f6f2dbe19 100644
--- a/whitepages/whitepages-war/src/main/java/com/silverpeas/wh... | true | true | public String getDestination(String function, WhitePagesSessionController scc,
HttpServletRequest request) {
SilverTrace.info("whitePages", "WhitePagesRequestRouter.getDestination()",
"root.MSG_GEN_PARAM_VALUE", function);
String destination = "";
/*
* Retrieves user highest role and s... | public String getDestination(String function, WhitePagesSessionController scc,
HttpServletRequest request) {
SilverTrace.info("whitePages", "WhitePagesRequestRouter.getDestination()",
"root.MSG_GEN_PARAM_VALUE", function);
String destination = "";
/*
* Retrieves user highest role and s... |
diff --git a/Madz.DatabaseMetaData/src/main/java/net/madz/db/core/impl/mysql/MySQLDatabaseGeneratorImpl.java b/Madz.DatabaseMetaData/src/main/java/net/madz/db/core/impl/mysql/MySQLDatabaseGeneratorImpl.java
index 3f301a4..452389a 100644
--- a/Madz.DatabaseMetaData/src/main/java/net/madz/db/core/impl/mysql/MySQLDatabase... | false | true | private void GenerateTables(final MySQLSchemaMetaData metaData, final Connection conn, final String targetDatabaseName) throws SQLException {
final Statement stmt = conn.createStatement();
conn.setAutoCommit(false);
stmt.executeUpdate("USE `" + targetDatabaseName + "`");
for ( final ... | private void GenerateTables(final MySQLSchemaMetaData metaData, final Connection conn, final String targetDatabaseName) throws SQLException {
final Statement stmt = conn.createStatement();
conn.setAutoCommit(false);
stmt.executeUpdate("USE `" + targetDatabaseName + "`");
for ( final ... |
diff --git a/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/StaxSource.java b/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/StaxSource.java
index 57b8d58b1..4f3a8d254 100644
--- a/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/StaxSource.java
+++ b/core/servicem... | true | true | protected void parse() throws SAXException {
try {
while (true) {
switch (streamReader.getEventType()) {
// Attributes are handled in START_ELEMENT
case XMLStreamConstants.ATTRIBUTE:
break;
case XMLStreamConstant... | protected void parse() throws SAXException {
try {
while (true) {
switch (streamReader.getEventType()) {
// Attributes are handled in START_ELEMENT
case XMLStreamConstants.ATTRIBUTE:
break;
case XMLStreamConstant... |
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java
index 608aea62d..b05092ca2 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java
+++ b/org.... | true | true | protected boolean doBuild(
AjBuildConfig buildConfig,
IMessageHandler baseHandler,
boolean batch) throws IOException, AbortException {
boolean ret = true;
batchCompile = batch;
try {
if (batch) {
this.state = new AjState(this);
}
... | protected boolean doBuild(
AjBuildConfig buildConfig,
IMessageHandler baseHandler,
boolean batch) throws IOException, AbortException {
boolean ret = true;
batchCompile = batch;
try {
if (batch) {
this.state = new AjState(this);
}
... |
diff --git a/src/main/java/net/jeremybrooks/suprsetr/workers/RefreshPhotosetWorker.java b/src/main/java/net/jeremybrooks/suprsetr/workers/RefreshPhotosetWorker.java
index ba191c3..3e4db97 100644
--- a/src/main/java/net/jeremybrooks/suprsetr/workers/RefreshPhotosetWorker.java
+++ b/src/main/java/net/jeremybrooks/suprset... | false | true | private void updatePhotoset(SSPhotoset ssPhotoset) throws Exception {
int oldCount = ssPhotoset.getPhotos();
int matches;
Photos searchResults = null;
SearchParameters params;
String newPrimaryPhotoId = null;
String currentPrimaryId;
blocker.setTitle(resourceBundle.getString("RefreshPhotosetWorker.block... | private void updatePhotoset(SSPhotoset ssPhotoset) throws Exception {
int oldCount = ssPhotoset.getPhotos();
int matches;
Photos searchResults = null;
SearchParameters params;
String newPrimaryPhotoId = null;
String currentPrimaryId;
blocker.setTitle(resourceBundle.getString("RefreshPhotosetWorker.block... |
diff --git a/phresco-service-impl/src/main/java/com/photon/phresco/service/impl/ArchetypeExecutorImpl.java b/phresco-service-impl/src/main/java/com/photon/phresco/service/impl/ArchetypeExecutorImpl.java
index b96938b5..c3864109 100644
--- a/phresco-service-impl/src/main/java/com/photon/phresco/service/impl/ArchetypeExe... | true | true | private String buildCommandString(ApplicationInfo info, String projectVersion, String customerId) throws PhrescoException {
if (isDebugEnabled) {
S_LOGGER.debug("Entering Method ArchetypeExecutorImpl.buildCommandString(ProjectInfo info)");
S_LOGGER.debug("buildCommandString() ProjectCode=" + info.getCode... | private String buildCommandString(ApplicationInfo info, String projectVersion, String customerId) throws PhrescoException {
if (isDebugEnabled) {
S_LOGGER.debug("Entering Method ArchetypeExecutorImpl.buildCommandString(ProjectInfo info)");
S_LOGGER.debug("buildCommandString() ProjectCode=" + info.getCode... |
diff --git a/parser/org/eclipse/cdt/core/dom/parser/GNUScannerExtensionConfiguration.java b/parser/org/eclipse/cdt/core/dom/parser/GNUScannerExtensionConfiguration.java
index 0ed8d0f32..edb9211a8 100644
--- a/parser/org/eclipse/cdt/core/dom/parser/GNUScannerExtensionConfiguration.java
+++ b/parser/org/eclipse/cdt/core/... | true | true | public GNUScannerExtensionConfiguration() {
addMacro("__complex__", "_Complex");
addMacro("__extension__", "");
addMacro("__imag__", "(int)");
addMacro("__real__", "(int)");
addMacro("__stdcall", "");
addMacro("__builtin_va_arg(ap,type)", "*(type *)ap");
addMacro("__builtin_constant_p(exp)", "0");
a... | public GNUScannerExtensionConfiguration() {
addMacro("__complex__", "_Complex");
addMacro("__extension__", "");
addMacro("__imag__", "(int)");
addMacro("__real__", "(int)");
addMacro("__stdcall", "");
addMacro("__thread", "");
addMacro("__builtin_va_arg(ap,type)", "*(type *)ap");
addMacro("__builtin... |
diff --git a/src/main/java/biz/deinum/springframework/batch/item/excel/transform/DefaultRowTokenizer.java b/src/main/java/biz/deinum/springframework/batch/item/excel/transform/DefaultRowTokenizer.java
index 14bdb7a..691d08f 100644
--- a/src/main/java/biz/deinum/springframework/batch/item/excel/transform/DefaultRowToken... | true | true | public FieldSet tokenize(final Sheet sheet, final String[] row) {
String[] values = new String[row.length];
System.arraycopy(row, 0, values, 0, row.length);
if (this.includeSheetName) {
values = StringUtils.addStringToArray(values, sheet.getName());
}
if (this.u... | public FieldSet tokenize(final Sheet sheet, final String[] row) {
String[] values = new String[sheet.getNumberOfColumns()];
System.arraycopy(row, 0, values, 0, row.length);
if (this.includeSheetName) {
values = StringUtils.addStringToArray(values, sheet.getName());
}
... |
diff --git a/core/src/com/google/zxing/datamatrix/detector/Detector.java b/core/src/com/google/zxing/datamatrix/detector/Detector.java
index af53b915..a7549e3f 100644
--- a/core/src/com/google/zxing/datamatrix/detector/Detector.java
+++ b/core/src/com/google/zxing/datamatrix/detector/Detector.java
@@ -1,422 +1,422 @@
... | false | true | public DetectorResult detect() throws ReaderException {
if (!BlackPointEstimationMethod.TWO_D_SAMPLING.equals(image.getLastEstimationMethod())) {
image.estimateBlackPoint(BlackPointEstimationMethod.TWO_D_SAMPLING, 0);
}
int height = image.getHeight();
int width = image.getWidth();
int half... | public DetectorResult detect() throws ReaderException {
if (!BlackPointEstimationMethod.TWO_D_SAMPLING.equals(image.getLastEstimationMethod())) {
image.estimateBlackPoint(BlackPointEstimationMethod.TWO_D_SAMPLING, 0);
}
int height = image.getHeight();
int width = image.getWidth();
int half... |
diff --git a/src/com/wolvencraft/prison/mines/util/Message.java b/src/com/wolvencraft/prison/mines/util/Message.java
index 9032f85..3598e63 100644
--- a/src/com/wolvencraft/prison/mines/util/Message.java
+++ b/src/com/wolvencraft/prison/mines/util/Message.java
@@ -1,190 +1,190 @@
/*
* Message.java
*
* PrisonMin... | true | true | public static void send(CommandSender sender, String message, boolean parseVars, Mine curMine) {
if(sender == null) sender = Bukkit.getServer().getConsoleSender();
if(message == null) message = "";
if(parseVars && curMine != null) message = Util.parseVars(message, curMine);
else mess... | public static void send(CommandSender sender, String message, boolean parseVars, Mine curMine) {
if(sender == null) sender = Bukkit.getServer().getConsoleSender();
if(message == null) message = "";
if(parseVars && curMine != null) message = Util.parseVars(message, curMine);
else mess... |
diff --git a/sandbox/prototype/exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/partitionsender/OutgoingRecordBatch.java b/sandbox/prototype/exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/partitionsender/OutgoingRecordBatch.java
index b40ce4cee..6847e5af3 100644
--- a/sandbox/prototype... | true | true | public void flush() throws SchemaChangeException {
if (recordCount == 0) {
logger.warn("Attempted to flush an empty record batch");
}
logger.debug("Flushing record batch. count is: " + recordCount + ", capacity is " + recordCapacity);
final ExecProtos.FragmentHandle handle = context.getHandle()... | public void flush() throws SchemaChangeException {
if (recordCount == 0) {
logger.warn("Attempted to flush an empty record batch");
}
logger.debug("Flushing record batch. count is: " + recordCount + ", capacity is " + recordCapacity);
final ExecProtos.FragmentHandle handle = context.getHandle()... |
diff --git a/jtrim-gui/src/main/java/org/jtrim/image/transform/ZoomToFitTransformer.java b/jtrim-gui/src/main/java/org/jtrim/image/transform/ZoomToFitTransformer.java
index f81f8061..ce677887 100644
--- a/jtrim-gui/src/main/java/org/jtrim/image/transform/ZoomToFitTransformer.java
+++ b/jtrim-gui/src/main/java/org/jtrim... | true | true | public static BasicImageTransformations getBasicTransformations(
int srcWidth, int srcHeight, int destWidth, int destHeight,
Set<ZoomToFitOption> options,
BasicImageTransformations transBase) {
ExceptionHelper.checkArgumentInRange(destWidth, 0, Integer.MAX_VALUE, "destWid... | public static BasicImageTransformations getBasicTransformations(
int srcWidth, int srcHeight, int destWidth, int destHeight,
Set<ZoomToFitOption> options,
BasicImageTransformations transBase) {
ExceptionHelper.checkArgumentInRange(destWidth, 0, Integer.MAX_VALUE, "destWid... |
diff --git a/seminer/src/cvsanaly/CvsAnalyFileReader.java b/seminer/src/cvsanaly/CvsAnalyFileReader.java
index cb78a5e..d94b592 100644
--- a/seminer/src/cvsanaly/CvsAnalyFileReader.java
+++ b/seminer/src/cvsanaly/CvsAnalyFileReader.java
@@ -1,249 +1,248 @@
package cvsanaly;
import java.util.ArrayList;
import java.... | false | true | public List<File> parseFile(String projectName)
{
Map<Integer, Set<String>> cache = new HashMap<Integer, Set<String>>();
List<File> fileObjList = new ArrayList<File>();
Session effortMetricsSession = MinerUtils
.openSession("effortmetrics/effortmetrics_hibernate.cfg.xml");
eff... | public List<File> parseFile(String projectName)
{
Map<Integer, Set<String>> cache = new HashMap<Integer, Set<String>>();
List<File> fileObjList = new ArrayList<File>();
Session effortMetricsSession = MinerUtils
.openSession("effortmetrics/effortmetrics_hibernate.cfg.xml");
eff... |
diff --git a/src/main/java/org/synyx/hades/roo/addon/support/DefaultSpringManager.java b/src/main/java/org/synyx/hades/roo/addon/support/DefaultSpringManager.java
index c186f84..22629ed 100644
--- a/src/main/java/org/synyx/hades/roo/addon/support/DefaultSpringManager.java
+++ b/src/main/java/org/synyx/hades/roo/addon/s... | true | true | public Element getConfigFile(String configFileName) {
String contextPath =
pathResolver.getIdentifier(Path.SPRING_CONFIG_ROOT,
configFileName);
MutableFile contextMutableFile = null;
Document appCtx;
try {
if (fileManager.exists(c... | public Element getConfigFile(String configFileName) {
String contextPath =
pathResolver.getIdentifier(Path.SPRING_CONFIG_ROOT,
configFileName);
MutableFile contextMutableFile = null;
Document appCtx;
try {
if (fileManager.exists(c... |
diff --git a/app/controllers/BaseService.java b/app/controllers/BaseService.java
index c0b1f5c..e044bf4 100644
--- a/app/controllers/BaseService.java
+++ b/app/controllers/BaseService.java
@@ -1,29 +1,29 @@
package controllers;
import play.Play;
import play.mvc.Controller;
import controllers.response.Ok;
import ... | true | true | protected static void jsonOk(Object obj) {
String result = serializer.include("body.userCachos").serialize(new Ok(obj));
play.Logger.info("result: %s", result);
renderJSON(serializer.include("userCachos").serialize(obj));
}
| protected static void jsonOk(Object obj) {
String result = serializer.include("body.userCachos").serialize(new Ok(obj));
play.Logger.info("result: %s", result);
renderJSON(result);
}
|
diff --git a/src/main/java/com/tonicsystems/jarjar/JarJarMojo.java b/src/main/java/com/tonicsystems/jarjar/JarJarMojo.java
index 5359d18..dc16c71 100644
--- a/src/main/java/com/tonicsystems/jarjar/JarJarMojo.java
+++ b/src/main/java/com/tonicsystems/jarjar/JarJarMojo.java
@@ -1,260 +1,259 @@
/**
* Copyright 2007 Goo... | true | true | public void execute()
throws MojoExecutionException
{
try
{
// VALIDATE INPUT / OUTPUT
if ( null == input && null != project.getArtifact() )
{
input = project.getArtifact().getFile().getAbsolutePath();
}
if ( "{... | public void execute()
throws MojoExecutionException
{
try
{
// VALIDATE INPUT / OUTPUT
if ( null == input && null != project.getArtifact() )
{
input = project.getArtifact().getFile().getAbsolutePath();
}
if ( "{... |
diff --git a/src/com/android/camera/panorama/PanoramaActivity.java b/src/com/android/camera/panorama/PanoramaActivity.java
index a65d2634..fe708273 100755
--- a/src/com/android/camera/panorama/PanoramaActivity.java
+++ b/src/com/android/camera/panorama/PanoramaActivity.java
@@ -1,1100 +1,1101 @@
/*
* Copyright (C) 2... | true | true | private void createContentView() {
setContentView(R.layout.panorama);
mCaptureState = CAPTURE_STATE_VIEWFINDER;
Resources appRes = getResources();
mCaptureLayout = (View) findViewById(R.id.pano_capture_layout);
mPanoProgressBar = (PanoProgressBar) findViewById(R.id.pano_pa... | private void createContentView() {
setContentView(R.layout.panorama);
mCaptureState = CAPTURE_STATE_VIEWFINDER;
Resources appRes = getResources();
mCaptureLayout = (View) findViewById(R.id.pano_capture_layout);
mPanoProgressBar = (PanoProgressBar) findViewById(R.id.pano_pa... |
diff --git a/src/org/jmist/toolkit/BoundingBoxBuilder3.java b/src/org/jmist/toolkit/BoundingBoxBuilder3.java
index 857b048e..4278db24 100644
--- a/src/org/jmist/toolkit/BoundingBoxBuilder3.java
+++ b/src/org/jmist/toolkit/BoundingBoxBuilder3.java
@@ -1,123 +1,125 @@
/**
*
*/
package org.jmist.toolkit;
/**
* ... | false | true | public void add(Sphere sphere) {
double r = sphere.getRadius();
Point3 c = sphere.getCenter();
if (this.isEmpty()) {
minimumX = c.x() - r;
minimumY = c.y() - r;
minimumZ = c.z() - r;
maximumX = c.x() + r;
maximumY = c.y() + r;
maximumZ = c.z() + r;
} else {
minimumX = Math.min(c.x() - r, ... | public void add(Sphere sphere) {
if (!sphere.isEmpty()) {
double r = sphere.getRadius();
Point3 c = sphere.getCenter();
if (this.isEmpty()) {
minimumX = c.x() - r;
minimumY = c.y() - r;
minimumZ = c.z() - r;
maximumX = c.x() + r;
maximumY = c.y() + r;
maximumZ = c.z() + r;
} else... |
diff --git a/src/org/kohsuke/stapler/idea/JellyCompletionContributer.java b/src/org/kohsuke/stapler/idea/JellyCompletionContributer.java
index e4bc4b1..052f086 100644
--- a/src/org/kohsuke/stapler/idea/JellyCompletionContributer.java
+++ b/src/org/kohsuke/stapler/idea/JellyCompletionContributer.java
@@ -1,140 +1,142 @@... | true | true | public JellyCompletionContributer() {
extend(CompletionType.BASIC, // in case of XML completion, this always seems to be BASIC
XML_ELEMENT_NAME_PATTERN,
new CompletionProvider<CompletionParameters>(false, true) {
// REFERENCE: spring plugin adds Completion... | public JellyCompletionContributer() {
extend(CompletionType.BASIC, // in case of XML completion, this always seems to be BASIC
XML_ELEMENT_NAME_PATTERN,
new CompletionProvider<CompletionParameters>(
true, // true means completion from other sources are... |
diff --git a/runtime/ceylon/language/Launcher.java b/runtime/ceylon/language/Launcher.java
index 4056452d2..15d7b7e73 100644
--- a/runtime/ceylon/language/Launcher.java
+++ b/runtime/ceylon/language/Launcher.java
@@ -1,14 +1,14 @@
package ceylon.language;
import java.lang.reflect.Method;
public class Launcher
{
... | true | true | public static void main(java.lang.String[] args)
throws Throwable
{
Class<?> c = Class.forName(args[0]);
Method m = c.getMethod("run", ceylon.language.Process.class);
m.invoke(null, new Process());
}
| public static void main(java.lang.String[] args)
throws Throwable
{
Class<?> c = Class.forName(args[0]);
Method m = c.getMethod(c.getSimpleName(), ceylon.language.Process.class);
m.invoke(null, new Process());
}
|
diff --git a/cmds/monkey/src/com/android/commands/monkey/Monkey.java b/cmds/monkey/src/com/android/commands/monkey/Monkey.java
index 0d7a758e..79548d44 100644
--- a/cmds/monkey/src/com/android/commands/monkey/Monkey.java
+++ b/cmds/monkey/src/com/android/commands/monkey/Monkey.java
@@ -1,1004 +1,1004 @@
/*
* Copyrig... | true | true | private int run(String[] args) {
// Super-early debugger wait
for (String s : args) {
if ("--wait-dbg".equals(s)) {
Debug.waitForDebugger();
}
}
// Default values for some command-line options
mVerbose = 0;
mCount = 1000;
... | private int run(String[] args) {
// Super-early debugger wait
for (String s : args) {
if ("--wait-dbg".equals(s)) {
Debug.waitForDebugger();
}
}
// Default values for some command-line options
mVerbose = 0;
mCount = 1000;
... |
diff --git a/src/main/java/com/tnes/Main.java b/src/main/java/com/tnes/Main.java
index 3624a1f..056de09 100644
--- a/src/main/java/com/tnes/Main.java
+++ b/src/main/java/com/tnes/Main.java
@@ -1,243 +1,244 @@
package com.tnes;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.... | true | true | public static void main(String[] args) {
final NES nes = new NES();
final Screen screen = new Screen(nes);
final Debugger debugger = Debugger.getInstance();
boolean debugging = false;
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
final ResourceBundle resourceBundle = ResourceBundle.getBundle("tnes... | public static void main(String[] args) {
final NES nes = new NES();
final Screen screen = new Screen(nes);
final Debugger debugger = Debugger.getInstance();
boolean debugging = false;
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
final ResourceBundle resourceBundle = ResourceBundle.getBundle("tnes... |
diff --git a/common/net/lomeli/equivalency/api/TransmutationHelper.java b/common/net/lomeli/equivalency/api/TransmutationHelper.java
index 7d07717..4723fc0 100644
--- a/common/net/lomeli/equivalency/api/TransmutationHelper.java
+++ b/common/net/lomeli/equivalency/api/TransmutationHelper.java
@@ -1,135 +1,135 @@
packag... | false | true | public static void addSmeltingRecipe(ItemStack input, ItemStack stone, ItemStack fuel) {
ItemStack result = FurnaceRecipes.smelting().getSmeltingResult(input);
if(input == null || input.getItem() == null || result == null)
return;
Object[] list = new Object[9];
list[0] ... | public static void addSmeltingRecipe(ItemStack input, ItemStack stone, ItemStack fuel) {
ItemStack result = FurnaceRecipes.smelting().getSmeltingResult(input);
if(input == null || input.getItem() == null || result == null)
return;
Object[] list = new Object[9];
list[0] ... |
diff --git a/ReactorEE/Networking/HandshakeRequest.java b/ReactorEE/Networking/HandshakeRequest.java
index 46ea53a..155aceb 100644
--- a/ReactorEE/Networking/HandshakeRequest.java
+++ b/ReactorEE/Networking/HandshakeRequest.java
@@ -1,43 +1,42 @@
package ReactorEE.Networking;
import java.io.IOException;
import jav... | false | true | public void run(String HostIP) throws UnknownHostException, IOException
{
Socket socket = new Socket(InetAddress.getByName(HostIP), SocketUtil.HANDSHAKE_PORT_NO);
SocketUtil.write(socket, "ANCHOVY");
PlantController plantController = new PlantController(new ReactorUtils());
if(SocketUtil.readStri... | public void run(String HostIP) throws UnknownHostException, IOException
{
Socket socket = new Socket(InetAddress.getByName(HostIP), SocketUtil.HANDSHAKE_PORT_NO);
SocketUtil.write(socket, "ANCHOVY");
PlantController plantController = new PlantController(new ReactorUtils());
if(SocketUtil.readStri... |
diff --git a/framework/src/main/java/org/radargun/stages/WebSessionBenchmarkStage.java b/framework/src/main/java/org/radargun/stages/WebSessionBenchmarkStage.java
index 47107eff..7bd51ff1 100644
--- a/framework/src/main/java/org/radargun/stages/WebSessionBenchmarkStage.java
+++ b/framework/src/main/java/org/radargun/st... | true | true | public boolean processAckOnMaster(List<DistStageAck> acks, MasterState masterState) {
logDurationInfo(acks);
boolean success = true;
Map<Integer, Map<String, Object>> results = new HashMap<Integer, Map<String, Object>>();
masterState.put("results", results);
for (DistStageAck ack : acks... | public boolean processAckOnMaster(List<DistStageAck> acks, MasterState masterState) {
logDurationInfo(acks);
boolean success = true;
Map<Integer, Map<String, Object>> results = new HashMap<Integer, Map<String, Object>>();
masterState.put("results", results);
for (DistStageAck ack : acks... |
diff --git a/Test.java b/Test.java
index a602bec..707344f 100644
--- a/Test.java
+++ b/Test.java
@@ -1,111 +1,117 @@
public class Test {
public static void main(String[] args) {
Player Bplayer = new Player((byte)3, Board.B);
Player Wplayer = new Player((byte)0, Board.W);
/* initializing the Move ... | false | true | public static void main(String[] args) {
Player Bplayer = new Player((byte)3, Board.B);
Player Wplayer = new Player((byte)0, Board.W);
/* initializing the Move boards
* for human players*/
Move Wmove[] = new Move[0];
Move Bmove[] = new Move[0];
int counter = 0;
int movecounter = 0;
Boar... | public static void main(String[] args) {
Player Bplayer = new Player((byte)3, Board.B);
Player Wplayer = new Player((byte)0, Board.W);
/* initializing the Move boards
* for human players*/
Move Wmove[] = new Move[0];
Move Bmove[] = new Move[0];
int counter = 0;
int movecounter = 0;
Boar... |
diff --git a/src/net/tuschhcm/routercontrol/ui/ConsoleUI.java b/src/net/tuschhcm/routercontrol/ui/ConsoleUI.java
index c35391d..c23e7fd 100644
--- a/src/net/tuschhcm/routercontrol/ui/ConsoleUI.java
+++ b/src/net/tuschhcm/routercontrol/ui/ConsoleUI.java
@@ -1,88 +1,88 @@
package net.tuschhcm.routercontrol.ui;
import... | true | true | public void run() {
Scanner keyboard = new Scanner(System.in);
String userInput;
boolean running = true;
System.out.println("Welcome to Router Control!");
System.out.println("--------------------------");
System.out.println("Available commands: \nLock: Locks/unlock... | public void run() {
Scanner keyboard = new Scanner(System.in);
String userInput;
boolean running = true;
System.out.println("Welcome to Router Control!");
System.out.println("--------------------------");
System.out.println("Available commands: \nLock: Locks/unlock... |
diff --git a/spring-social-vkontakte/src/main/java/org/springframework/social/vkontakte/api/impl/FriendsTemplate.java b/spring-social-vkontakte/src/main/java/org/springframework/social/vkontakte/api/impl/FriendsTemplate.java
index f140a16..7c0cddf 100644
--- a/spring-social-vkontakte/src/main/java/org/springframework/s... | true | true | private List<List<String>> getOnlineFriends(String userId, boolean onlineMobile, int count, int offset) {
requireAuthorization();
Properties props = new Properties();
// User ID, positive number, current user id is used by default
if (userId != null) {
props.put("user_i... | private List<List<String>> getOnlineFriends(String userId, boolean onlineMobile, int count, int offset) {
requireAuthorization();
Properties props = new Properties();
// User ID, positive number, current user id is used by default
if (userId != null) {
props.put("user_i... |
diff --git a/modules/org.restlet/src/org/restlet/representation/WriterRepresentation.java b/modules/org.restlet/src/org/restlet/representation/WriterRepresentation.java
index 4f63c80eb..4974e7af9 100644
--- a/modules/org.restlet/src/org/restlet/representation/WriterRepresentation.java
+++ b/modules/org.restlet/src/org/... | false | true | public void write(OutputStream outputStream) throws IOException {
Writer writer = null;
if (getCharacterSet() != null) {
new OutputStreamWriter(outputStream, getCharacterSet().getName());
} else {
new OutputStreamWriter(outputStream);
}
write(writer);... | public void write(OutputStream outputStream) throws IOException {
Writer writer = null;
if (getCharacterSet() != null) {
writer = new OutputStreamWriter(outputStream, getCharacterSet()
.getName());
} else {
writer = new OutputStreamWriter(outputStr... |
diff --git a/Bukkit/src/io/github/matho97/lockdown/LockdownCommandExecutor.java b/Bukkit/src/io/github/matho97/lockdown/LockdownCommandExecutor.java
index d1ddd2f..0fd2dd6 100644
--- a/Bukkit/src/io/github/matho97/lockdown/LockdownCommandExecutor.java
+++ b/Bukkit/src/io/github/matho97/lockdown/LockdownCommandExecutor.... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
if (cmd.getName().equalsIgnoreCase("lockdown")){
//Player target = Bukkit.getPlayerExact(args[0]);
if (args.length == 0){
sender.sendMessage(notenough);
return false;
}
if (args[0].equalsIgnoreCase("set")){... | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
if (cmd.getName().equalsIgnoreCase("lockdown")){
//Player target = Bukkit.getPlayerExact(args[0]);
if (args.length == 0){
sender.sendMessage(ChatColor.RED + "----------------" + ChatColor.WHITE + " Lockdown Help Page ... |
diff --git a/xfire-core/src/main/org/codehaus/xfire/transport/DefaultEndpoint.java b/xfire-core/src/main/org/codehaus/xfire/transport/DefaultEndpoint.java
index 8706fdf5..4c6a2173 100644
--- a/xfire-core/src/main/org/codehaus/xfire/transport/DefaultEndpoint.java
+++ b/xfire-core/src/main/org/codehaus/xfire/transport/De... | true | true | public void onReceive(MessageContext context, InMessage msg)
{
if (log.isDebugEnabled()) log.debug("Received message to " + msg.getUri());
if (context.getExchange() == null)
{
InExchange exchange = new InExchange(context);
exchange.setInMessage(msg);
... | public void onReceive(MessageContext context, InMessage msg)
{
if (log.isDebugEnabled()) log.debug("Received message to " + msg.getUri());
if (context.getExchange() == null)
{
InExchange exchange = new InExchange(context);
exchange.setInMessage(msg);
... |
diff --git a/java/com/ez/EzTimeKeeper/tileentities/TileEntityTimeKeeper.java b/java/com/ez/EzTimeKeeper/tileentities/TileEntityTimeKeeper.java
index d1de9b6..c72fec1 100644
--- a/java/com/ez/EzTimeKeeper/tileentities/TileEntityTimeKeeper.java
+++ b/java/com/ez/EzTimeKeeper/tileentities/TileEntityTimeKeeper.java
@@ -1,5... | true | true | public void updateEntity() {
time++;
if (time == 20 && BlockInfo.ZIP != 00000) {
URL url = null;
try {
url = new URL("http://ezekielelin.com/minecraft/mod/timekeeper/loc.php?zip=03755");
} catch (MalformedURLException e1) {
e1.printStackTrace();
}
String zipCodeData = "";
try {
Buffer... | public void updateEntity() {
time++;
if (time == 20 && BlockInfo.ZIP != 00000) {
URL url = null;
try {
url = new URL("http://ezekielelin.com/minecraft/mod/timekeeper/loc.php?zip="+BlockInfo.ZIP);
} catch (MalformedURLException e1) {
e1.printStackTrace();
}
String zipCodeData = "";
try {
... |
diff --git a/src/generator/BindingsGenerator.java b/src/generator/BindingsGenerator.java
index 02d1b25e..74f6649f 100644
--- a/src/generator/BindingsGenerator.java
+++ b/src/generator/BindingsGenerator.java
@@ -1,198 +1,200 @@
/*
* BindingsGenerator.java
*
* Copyright (c) 2007 Operational Dynamics Consulting Pty... | true | true | private static void demoRunGeneratorOutputToFiles() {
Block[] blocks;
DefsParser parser;
File dir;
File[] files;
BufferedReader in;
DefsFile data;
List all;
Iterator iter;
dir = new File("tests/generator/");
files = dir.listFiles(new ... | private static void demoRunGeneratorOutputToFiles() {
Block[] blocks;
DefsParser parser;
File dir;
File[] files;
BufferedReader in;
DefsFile data;
List all;
Iterator iter;
dir = new File("tests/generator/");
files = dir.listFiles(new ... |
diff --git a/trauma-backend/src/main/java/com/epam/pf/trauma/backend/HomeController.java b/trauma-backend/src/main/java/com/epam/pf/trauma/backend/HomeController.java
index 03a30c1..16236fb 100644
--- a/trauma-backend/src/main/java/com/epam/pf/trauma/backend/HomeController.java
+++ b/trauma-backend/src/main/java/com/ep... | false | true | public Collection<Marker> getMarkers(@RequestParam(value = "central-lan", required=false, defaultValue="999999999") float centrallan, @RequestParam(value = "central-lng" ,required=false,defaultValue="999999999") float centrallng,
@RequestParam(value = "central-rad", required=false,defaultValue="999999999") float ce... | public Collection<Marker> getMarkers(@RequestParam(value = "central-lan", required=false, defaultValue="0") float centrallan, @RequestParam(value = "central-lng" ,required=false,defaultValue="0") float centrallng,
@RequestParam(value = "central-rad", required=false,defaultValue="999999999") float centralrad){
if(... |
diff --git a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java b/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java
index 86d78651..4d569b80 100644
--- a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java
+++ b/java/src/com/an... | true | true | public SuggestionsInfo onGetSuggestions(final TextInfo textInfo,
final int suggestionsLimit) {
try {
final String text = textInfo.getText();
if (shouldFilterOut(text)) {
DictAndProximity dictInfo = null;
try {
... | public SuggestionsInfo onGetSuggestions(final TextInfo textInfo,
final int suggestionsLimit) {
try {
final String text = textInfo.getText();
if (shouldFilterOut(text)) {
DictAndProximity dictInfo = null;
try {
... |
diff --git a/src/com/nadmm/airports/afd/AirportDetailsActivity.java b/src/com/nadmm/airports/afd/AirportDetailsActivity.java
index 5e9d7b11..30113183 100644
--- a/src/com/nadmm/airports/afd/AirportDetailsActivity.java
+++ b/src/com/nadmm/airports/afd/AirportDetailsActivity.java
@@ -1,1089 +1,1091 @@
/*
* FlightIntel... | true | true | protected Cursor[] doInBackground( String... params ) {
mSiteNumber = params[ 0 ];
SQLiteDatabase db = getDatabase( DatabaseManager.DB_FADDS );
Cursor[] cursors = new Cursor[ 14 ];
Cursor apt = getAirportDetails( mSiteNumber );
... | protected Cursor[] doInBackground( String... params ) {
mSiteNumber = params[ 0 ];
SQLiteDatabase db = getDatabase( DatabaseManager.DB_FADDS );
Cursor[] cursors = new Cursor[ 14 ];
Cursor apt = getAirportDetails( mSiteNumber );
... |
diff --git a/src/de/minestar/director/area/Area.java b/src/de/minestar/director/area/Area.java
index 7ace9de..d9af1a9 100644
--- a/src/de/minestar/director/area/Area.java
+++ b/src/de/minestar/director/area/Area.java
@@ -1,99 +1,99 @@
/*
* Copyright (C) 2011 MineStar.de
*
* This file is part of DirectorPlugin.... | true | true | public Area(final String areaName, final String areaOwner, final String worldName, Chunk chunk1, Chunk chunk2) {
this.areaName = areaName;
this.areaOwner = areaOwner;
this.worldName = worldName;
this.minChunk = new Point(Math.min(chunk1.getX(), chunk2.getX()), Math.min(chunk1.getX(),... | public Area(final String areaName, final String areaOwner, final String worldName, Chunk chunk1, Chunk chunk2) {
this.areaName = areaName;
this.areaOwner = areaOwner;
this.worldName = worldName;
this.minChunk = new Point(Math.min(chunk1.getX(), chunk2.getX()), Math.min(chunk1.getZ(),... |
diff --git a/src/main/java/net/daboross/bukkitdev/timedblockreplace/TimedBlockReplace.java b/src/main/java/net/daboross/bukkitdev/timedblockreplace/TimedBlockReplace.java
index 276a13a..e806a59 100644
--- a/src/main/java/net/daboross/bukkitdev/timedblockreplace/TimedBlockReplace.java
+++ b/src/main/java/net/daboross/bu... | true | true | public boolean removeConfigBlock(int fromBlockID) {
FileConfiguration config = getConfig();
List<Integer> list = config.getIntegerList(CONFIG_FROMBLOCK_LIST);
config.set(CONFIG_TO_BLOCK_PREFIX + fromBlockID, null);
config.set(CONFIG_TIMES_PREFIX + fromBlockID, null);
if (list... | public boolean removeConfigBlock(int fromBlockID) {
FileConfiguration config = getConfig();
List<Integer> list = config.getIntegerList(CONFIG_FROMBLOCK_LIST);
config.set(CONFIG_TO_BLOCK_PREFIX + fromBlockID, null);
config.set(CONFIG_TIMES_PREFIX + fromBlockID, null);
if (list... |
diff --git a/src/main/java/pl/psnc/dl/wf4ever/eventbus/lazy/listeners/LazySolrListener.java b/src/main/java/pl/psnc/dl/wf4ever/eventbus/lazy/listeners/LazySolrListener.java
index 0c270b7f..a40663ae 100644
--- a/src/main/java/pl/psnc/dl/wf4ever/eventbus/lazy/listeners/LazySolrListener.java
+++ b/src/main/java/pl/psnc/dl... | true | true | public void commit() {
researchObjectsToReindex.retainAll(researchObjectsToDeleteFromIndex);
for (ResearchObjectSerializable ro : researchObjectsToReindex) {
ro.updateIndexAttributes();
}
researchObjectsToReindex.clear();
for (ResearchObjectSerializable ro : resea... | public void commit() {
researchObjectsToReindex.removeAll(researchObjectsToDeleteFromIndex);
for (ResearchObjectSerializable ro : researchObjectsToReindex) {
ro.updateIndexAttributes();
}
researchObjectsToReindex.clear();
for (ResearchObjectSerializable ro : resea... |
diff --git a/src/net/lotrcraft/minepermit/CommandInterpreter.java b/src/net/lotrcraft/minepermit/CommandInterpreter.java
index 8bdabdf..e69a489 100644
--- a/src/net/lotrcraft/minepermit/CommandInterpreter.java
+++ b/src/net/lotrcraft/minepermit/CommandInterpreter.java
@@ -1,144 +1,148 @@
package net.lotrcraft.mineperm... | false | true | public boolean onCommand(CommandSender sender, Command cmnd, String arg2,
String[] arg3) {
// Console cant send commands
if (sender instanceof ConsoleCommandSender) {
MinePermit.log.info("[MinePermit] Sorry, commands cant be sent from console yet.");
return true;
}
Player p = (Player) sender;
// ... | public boolean onCommand(CommandSender sender, Command cmnd, String arg2,
String[] arg3) {
// Console cant send commands
if (sender instanceof ConsoleCommandSender) {
MinePermit.log.info("[MinePermit] Sorry, commands cant be sent from console yet.");
return true;
}
Player p = (Player) sender;
// ... |
diff --git a/software/base/src/main/java/brooklyn/entity/basic/AbstractSoftwareProcessSshDriver.java b/software/base/src/main/java/brooklyn/entity/basic/AbstractSoftwareProcessSshDriver.java
index 24afaf67e..ee2804e7a 100644
--- a/software/base/src/main/java/brooklyn/entity/basic/AbstractSoftwareProcessSshDriver.java
+... | false | true | protected ScriptHelper newScript(Map<?,?> flags, String phase) {
ScriptHelper s = new ScriptHelper(this, phase+" "+elvis(entity,this));
if (!truth(flags.get("nonStandardLayout"))) {
if (INSTALLING.equals(phase)) {
// mutexId should be global because otherwise package mana... | protected ScriptHelper newScript(Map<?,?> flags, String phase) {
ScriptHelper s = new ScriptHelper(this, phase+" "+elvis(entity,this));
if (!truth(flags.get("nonStandardLayout"))) {
if (INSTALLING.equals(phase)) {
// mutexId should be global because otherwise package mana... |
diff --git a/src/gov/nih/nci/caintegrator/studyQueryService/FindingsManagerImpl.java b/src/gov/nih/nci/caintegrator/studyQueryService/FindingsManagerImpl.java
index 0f472f5e..5b436c42 100644
--- a/src/gov/nih/nci/caintegrator/studyQueryService/FindingsManagerImpl.java
+++ b/src/gov/nih/nci/caintegrator/studyQueryServic... | true | true | public Task checkStatus(Task task){
SessionBasedFindingStrategy strategy = chooseStrategy(task.getQueryDTO());
TaskResult taskResult = strategy.retrieveTaskResult(task);
task = taskResult.getTask();
if(taskResult instanceof AnalysisFinding) {
task.setElapsedTime((... | public Task checkStatus(Task task){
SessionBasedFindingStrategy strategy = chooseStrategy(task.getQueryDTO());
TaskResult taskResult = strategy.retrieveTaskResult(task);
task = taskResult.getTask();
if(taskResult instanceof AnalysisFinding) {
task.setElapsedTime((... |
diff --git a/src/com/sourcery/magiccontrol/shortcuts/Shortcuts.java b/src/com/sourcery/magiccontrol/shortcuts/Shortcuts.java
index 5218d89..dc42540 100644
--- a/src/com/sourcery/magiccontrol/shortcuts/Shortcuts.java
+++ b/src/com/sourcery/magiccontrol/shortcuts/Shortcuts.java
@@ -1,481 +1,482 @@
/*
* Copyright (C) 2... | true | true | public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
mPreference = preference;
final String packageName = mPreference.getSummary().toString();
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
builder.setTitle(R.string.i... | public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
mPreference = preference;
final String packageName = mPreference.getSummary().toString();
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
builder.setTitle(R.string.i... |
diff --git a/lib-core/src/main/java/com/silverpeas/comment/service/CommentServiceFactory.java b/lib-core/src/main/java/com/silverpeas/comment/service/CommentServiceFactory.java
index fcf26b5c20..2294aa69e7 100644
--- a/lib-core/src/main/java/com/silverpeas/comment/service/CommentServiceFactory.java
+++ b/lib-core/src/m... | true | true | public CommentService getCommentService() {
if (commentService == null) {
SilverTrace.warn("comment", getClass().getSimpleName() + ".getCommentService()",
"EX_NO_MESSAGES", "IoC container not bootstrapped or no CommentService bean found! "
+ "Creates explicitly the bean");
}
retu... | public CommentService getCommentService() {
if (commentService == null) {
SilverTrace.error("comment", getClass().getSimpleName() + ".getCommentService()",
"EX_NO_MESSAGES", "IoC container not bootstrapped or no CommentService bean found!");
}
return commentService;
}
|
diff --git a/src/main/java/org/rsna/isn/transfercontent/Worker.java b/src/main/java/org/rsna/isn/transfercontent/Worker.java
index eab9108..2b5bf8a 100644
--- a/src/main/java/org/rsna/isn/transfercontent/Worker.java
+++ b/src/main/java/org/rsna/isn/transfercontent/Worker.java
@@ -1,176 +1,176 @@
/*
* To change this ... | false | true | public void run()
{
logger.info("Started worker thread for " + job);
try
{
JobDao dao = new JobDao();
try
{
//
// Generate KOS objects
//
Map<String, DicomStudy> studies = Collections.EMPTY_MAP;
try
{
dao.updateStatus(job, Job.STARTED_KOS_GENERATION);
logger.info("St... | public void run()
{
logger.info("Started worker thread for " + job);
try
{
JobDao dao = new JobDao();
try
{
//
// Generate KOS objects
//
Map<String, DicomStudy> studies = Collections.EMPTY_MAP;
try
{
dao.updateStatus(job, Job.STARTED_KOS_GENERATION);
logger.info("St... |
diff --git a/src/main/java/at/jclehner/rxdroid/SystemEventReceiver.java b/src/main/java/at/jclehner/rxdroid/SystemEventReceiver.java
index 33d99a8d..fdf114d3 100644
--- a/src/main/java/at/jclehner/rxdroid/SystemEventReceiver.java
+++ b/src/main/java/at/jclehner/rxdroid/SystemEventReceiver.java
@@ -1,55 +1,56 @@
/**
... | true | true | public void onReceive(Context context, Intent intent)
{
if(Intent.ACTION_TIMEZONE_CHANGED.equals(intent.getAction())
|| Intent.ACTION_TIME_CHANGED.equals(intent.getAction())
|| Intent.ACTION_DATE_CHANGED.equals(intent.getAction()))
{
DateTime.clearDateCache();
Database.reload(context);
}
else if... | public void onReceive(Context context, Intent intent)
{
if(Intent.ACTION_TIMEZONE_CHANGED.equals(intent.getAction())
|| Intent.ACTION_TIME_CHANGED.equals(intent.getAction())
|| Intent.ACTION_DATE_CHANGED.equals(intent.getAction()))
{
DateTime.clearDateCache();
Database.reload(context);
}
else if... |
diff --git a/tests/FieldWriteTest.java b/tests/FieldWriteTest.java
index edd65891..4790acc6 100644
--- a/tests/FieldWriteTest.java
+++ b/tests/FieldWriteTest.java
@@ -1,31 +1,28 @@
import java.lang.Thread;
public class FieldWriteTest {
static class FieldWriterThread extends Thread {
boolean val = false;
... | false | true | public static void main(String[] args) throws Exception {
// First time passes, the rest fail.
int fail = 0;
for (int i = 0; i < 100; ++i) {
FieldWriterThread t = new FieldWriterThread();
t.start();
t.join(); // Synchronization point!
if (!t.val) ++fail;
}
if (fail > 0)
... | public static void main(String[] args) throws Exception {
for (int i = 0; i < 100; ++i) {
FieldWriterThread t = new FieldWriterThread();
t.start();
check(t.isAlive());
t.join(); // Synchronization point!
check(!t.isAlive());
check(t.val);
}
}
|
diff --git a/powershell/jaxrs/src/main/java/com/redhat/rhevm/api/powershell/model/PowerShellDataCenter.java b/powershell/jaxrs/src/main/java/com/redhat/rhevm/api/powershell/model/PowerShellDataCenter.java
index 50b742a2..44e181a5 100644
--- a/powershell/jaxrs/src/main/java/com/redhat/rhevm/api/powershell/model/PowerShe... | true | true | public static ArrayList<DataCenter> parse(String output) {
ArrayList<HashMap<String,String>> dataCentersProps = PowerShellUtils.parseProps(output);
ArrayList<DataCenter> ret = new ArrayList<DataCenter>();
for (HashMap<String,String> props : dataCentersProps) {
DataCenter dataCen... | public static ArrayList<DataCenter> parse(String output) {
ArrayList<HashMap<String,String>> dataCentersProps = PowerShellUtils.parseProps(output);
ArrayList<DataCenter> ret = new ArrayList<DataCenter>();
for (HashMap<String,String> props : dataCentersProps) {
DataCenter dataCen... |
diff --git a/alitheia/core/src/main/java/eu/sqooss/impl/service/webadmin/ProjectDeleteJob.java b/alitheia/core/src/main/java/eu/sqooss/impl/service/webadmin/ProjectDeleteJob.java
index 56626e2c..c0becd14 100644
--- a/alitheia/core/src/main/java/eu/sqooss/impl/service/webadmin/ProjectDeleteJob.java
+++ b/alitheia/core/s... | true | true | protected void run() throws Exception {
DBService dbs = core.getDBService();
if (!dbs.isDBSessionActive()) {
dbs.startDBSession();
}
sp = dbs.attachObjectToDBSession(sp);
// Delete any associated invocation rules first
HashMap<String, Object> properties ... | protected void run() throws Exception {
DBService dbs = core.getDBService();
if (!dbs.isDBSessionActive()) {
dbs.startDBSession();
}
sp = dbs.attachObjectToDBSession(sp);
// Delete any associated invocation rules first
HashMap<String, Object> properties ... |
diff --git a/BullGit/src/BullWhip.java b/BullGit/src/BullWhip.java
index 8e95ede..4da8fff 100644
--- a/BullGit/src/BullWhip.java
+++ b/BullGit/src/BullWhip.java
@@ -1,22 +1,21 @@
public class BullWhip {
public static void whipIt() {
}
public static void whipItGood() {
}
public static void w... | true | true | public static void main(String[] args) {
System.out.println("BullWhip");
BullWhip.whipItRealGood();
}
| public static void main(String[] args) {
System.out.println("BullWhip");
}
|
diff --git a/src/org/intellij/erlang/ErlangStructureViewFactory.java b/src/org/intellij/erlang/ErlangStructureViewFactory.java
index 00710e99..ce668800 100644
--- a/src/org/intellij/erlang/ErlangStructureViewFactory.java
+++ b/src/org/intellij/erlang/ErlangStructureViewFactory.java
@@ -1,163 +1,163 @@
package org.inte... | true | true | public String getPresentableText() {
if (myElement instanceof ErlangFunctionClause) {
final List<ErlangArgumentDefinition> exprs = ((ErlangFunctionClause) myElement).getArgumentDefinitionList();
String res = ((ErlangFunctionClause) myElement).getQAtom().getText();
final List<String> st... | public String getPresentableText() {
if (myElement instanceof ErlangFunctionClause) {
final List<ErlangArgumentDefinition> exprs = ((ErlangFunctionClause) myElement).getArgumentDefinitionList();
String res = ((ErlangFunctionClause) myElement).getQAtom().getText();
final List<String> st... |
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/dialogs/UpdateWizard.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/dialogs/UpdateWizard.java
index ca1f99e88..8e997eca9 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/e... | false | true | public static ProfileChangeRequest createProfileChangeRequest(IInstallableUnit[] iusToUpdate, String profileId, IUElementListRoot root, Collection initialSelections, IProgressMonitor monitor) {
// Here we create a profile change request by finding the latest version available for any replacement.
// We have to con... | public static ProfileChangeRequest createProfileChangeRequest(IInstallableUnit[] iusToUpdate, String profileId, IUElementListRoot root, Collection initialSelections, IProgressMonitor monitor) {
// Here we create a profile change request by finding the latest version available for any replacement.
// We have to con... |
diff --git a/src/java/com/eviware/soapui/support/xml/actions/FormatXmlAction.java b/src/java/com/eviware/soapui/support/xml/actions/FormatXmlAction.java
index c8c590bbe..38dddc437 100644
--- a/src/java/com/eviware/soapui/support/xml/actions/FormatXmlAction.java
+++ b/src/java/com/eviware/soapui/support/xml/actions/Form... | true | true | public FormatXmlAction( RSyntaxTextArea editArea, String title )
{
super( title );
putValue( Action.SMALL_ICON, UISupport.createImageIcon( "/format_request.gif" ) );
putValue( Action.SHORT_DESCRIPTION, "Pretty-prints the request xml" );
if( UISupport.isMac() )
{
putValue( Action.ACCELERATOR_KEY, UISuppor... | public FormatXmlAction( RSyntaxTextArea editArea, String title )
{
super( title );
putValue( Action.SMALL_ICON, UISupport.createImageIcon( "/format_request.gif" ) );
putValue( Action.SHORT_DESCRIPTION, "Pretty-prints the xml" );
if( UISupport.isMac() )
{
putValue( Action.ACCELERATOR_KEY, UISupport.getKey... |
diff --git a/src/main/java/com/github/websend/Main.java b/src/main/java/com/github/websend/Main.java
index 167e7ec..9841c27 100644
--- a/src/main/java/com/github/websend/Main.java
+++ b/src/main/java/com/github/websend/Main.java
@@ -1,276 +1,275 @@
package com.github.websend;
import com.github.websend.post.POSTHand... | true | true | public void onEnable() {
// Setup vars
logger = this.getLogger();
bukkitServer = this.getServer();
plugin = this;
port = this.getServer().getPort();
// Parse config
ConfigHandler configHandler = new ConfigHandler();
try {
settings = config... | public void onEnable() {
// Setup vars
logger = this.getLogger();
bukkitServer = this.getServer();
plugin = this;
port = this.getServer().getPort();
// Parse config
ConfigHandler configHandler = new ConfigHandler();
try {
settings = config... |
diff --git a/araqne-logdb/src/main/java/org/araqne/logdb/writer/CsvLineWriter.java b/araqne-logdb/src/main/java/org/araqne/logdb/writer/CsvLineWriter.java
index 3eef2cb7..85e3c045 100644
--- a/araqne-logdb/src/main/java/org/araqne/logdb/writer/CsvLineWriter.java
+++ b/araqne-logdb/src/main/java/org/araqne/logdb/writer/... | false | true | public CsvLineWriter(String path, List<String> fields, String encoding, char separator, boolean useBom,
Map<String, List<Integer>> boms) throws IOException {
this.fields = fields;
this.csvLine = new String[fields.size()];
this.os = new FileOutputStream(new File(path));
this.writer = new CSVWriter(new Output... | public CsvLineWriter(String path, List<String> fields, String encoding, char separator, boolean useBom,
Map<String, List<Integer>> boms) throws IOException {
this.fields = fields;
this.csvLine = new String[fields.size()];
this.os = new FileOutputStream(new File(path));
this.writer = new CSVWriter(new Output... |
diff --git a/src/main/java/org/chaoticbits/collabcloud/visualizer/LayoutTokens.java b/src/main/java/org/chaoticbits/collabcloud/visualizer/LayoutTokens.java
index ad9b029..5ec2f0d 100755
--- a/src/main/java/org/chaoticbits/collabcloud/visualizer/LayoutTokens.java
+++ b/src/main/java/org/chaoticbits/collabcloud/visualiz... | false | true | private void layoutTokens(Graphics2D g2d, CloudWeights weights) throws IOException {
initImage(g2d);
LastHitCache<Shape> placedShapes = new LastHitCache<Shape>(checker);
List<Entry<ISummaryToken, Double>> entries = weights.sortedEntries();
int tokensHit = 0;
for (Entry<ISummaryToken, Double> entry : entries)... | private void layoutTokens(Graphics2D g2d, CloudWeights weights) throws IOException {
initImage(g2d);
LastHitCache<Shape> placedShapes = new LastHitCache<Shape>(checker);
List<Entry<ISummaryToken, Double>> entries = weights.sortedEntries();
int tokensHit = 0;
for (Entry<ISummaryToken, Double> entry : entries)... |
diff --git a/Dashboard/src/dashboard/model/achievement/Achievement.java b/Dashboard/src/dashboard/model/achievement/Achievement.java
index 74485cd..2e448b1 100644
--- a/Dashboard/src/dashboard/model/achievement/Achievement.java
+++ b/Dashboard/src/dashboard/model/achievement/Achievement.java
@@ -1,329 +1,329 @@
packag... | true | true | private float checkProgress(ArrayList<StudyMoment> moments,Student student) {
float progress = 0;
float parameters = 0;
if(needTime){
long momentsTime = Statistics.getTotalTime(moments);
progress += checkTimeProgress(momentsTime);
parameters++;
}
if(needNumber){
int number = moments.size();
pr... | private float checkProgress(ArrayList<StudyMoment> moments,Student student) {
float progress = 0;
float parameters = 0;
if(needTime){
long momentsTime = Statistics.getTotalTime(moments);
progress += checkTimeProgress(momentsTime);
parameters++;
}
if(needNumber){
int number = moments.size();
pr... |
diff --git a/ld26/src/io/github/ldears/ld26/core/GameScreen.java b/ld26/src/io/github/ldears/ld26/core/GameScreen.java
index d76b83d..f8f008c 100644
--- a/ld26/src/io/github/ldears/ld26/core/GameScreen.java
+++ b/ld26/src/io/github/ldears/ld26/core/GameScreen.java
@@ -1,371 +1,371 @@
package io.github.ldears.ld26.core... | true | true | public GameScreen() {
model = new GameModel();
// WARNING: to use wall textures, room must be proportional to texture size (64x64)
// TODO mockup
{
TileType[][] tileTypeMap = {
// { WALL_LEFT, CEIL, CEIL, CEIL, CEIL, WALL_MC, CEIL, CEIL, CEIL, CEIL, WALL_MC, CEIL, CEIL, WALL_RIGHT },... | public GameScreen() {
model = new GameModel();
// WARNING: to use wall textures, room must be proportional to texture size (64x64)
// TODO mockup
{
TileType[][] tileTypeMap = {
// { WALL_LEFT, CEIL, CEIL, CEIL, CEIL, WALL_MC, CEIL, CEIL, CEIL, CEIL, WALL_MC, CEIL, CEIL, WALL_RIGHT },... |
diff --git a/bundles/org.eclipse.rap.rwt/src/org/eclipse/rwt/internal/theme/ThemeManager.java b/bundles/org.eclipse.rap.rwt/src/org/eclipse/rwt/internal/theme/ThemeManager.java
index f7212ddc1..b3f13103e 100644
--- a/bundles/org.eclipse.rap.rwt/src/org/eclipse/rwt/internal/theme/ThemeManager.java
+++ b/bundles/org.ecli... | true | true | private String createThemeStore( final Theme theme, final String jsId ) {
StringBuffer sb = new StringBuffer();
String[] keys = theme.getKeysWithVariants();
Arrays.sort( keys );
sb.append( "ts = org.eclipse.swt.theme.ThemeStore.getInstance();\n" );
for( int i = 0; i < keys.length; i++ ) {
Ob... | private String createThemeStore( final Theme theme, final String jsId ) {
StringBuffer sb = new StringBuffer();
String[] keys = theme.getKeysWithVariants();
Arrays.sort( keys );
sb.append( "ts = org.eclipse.swt.theme.ThemeStore.getInstance();\n" );
for( int i = 0; i < keys.length; i++ ) {
Ob... |
diff --git a/org/xbill/DNS/SimpleResolver.java b/org/xbill/DNS/SimpleResolver.java
index bacca6a..05236fa 100644
--- a/org/xbill/DNS/SimpleResolver.java
+++ b/org/xbill/DNS/SimpleResolver.java
@@ -1,401 +1,412 @@
// Copyright (c) 1999 Brian Wellington (bwelling@xbill.org)
// Portions Copyright (c) 1999 Network Associ... | false | true | public Message
send(Message query) throws IOException {
if (Options.check("verbose"))
System.err.println("Sending to " + addr.getHostAddress() +
":" + port);
if (query.getHeader().getOpcode() == Opcode.QUERY) {
Record question = query.getQuestion();
if (question != null && question.getType() == Type.AXF... | public Message
send(Message query) throws IOException {
if (Options.check("verbose"))
System.err.println("Sending to " + addr.getHostAddress() +
":" + port);
if (query.getHeader().getOpcode() == Opcode.QUERY) {
Record question = query.getQuestion();
if (question != null && question.getType() == Type.AXF... |
diff --git a/org.teiid.designer.help/src/com/metamatrix/modeler/help/examples/ImportExamplesAction.java b/org.teiid.designer.help/src/com/metamatrix/modeler/help/examples/ImportExamplesAction.java
index 14a43483b..231d1bbf0 100644
--- a/org.teiid.designer.help/src/com/metamatrix/modeler/help/examples/ImportExamplesActi... | true | true | public void run() {
try {
URL url = FileLocator.find(Platform.getBundle("com.metamatrix.modeler.help"), new Path("/"), null); //$NON-NLS-1$ //$NON-NLS-2$
String helpPluginDir = FileLocator.toFileURL(url).getFile();
File examplesDir = new File(helpPluginDir, EXAMPLES_DIR_... | public void run() {
try {
URL url = FileLocator.find(Platform.getBundle("org.teiid.designer.help"), new Path("/"), null); //$NON-NLS-1$ //$NON-NLS-2$
String helpPluginDir = FileLocator.toFileURL(url).getFile();
File examplesDir = new File(helpPluginDir, EXAMPLES_DIR_NAME... |
diff --git a/src/org/cyanogenmod/nemesis/CameraManager.java b/src/org/cyanogenmod/nemesis/CameraManager.java
index 769d4b7..12859ec 100644
--- a/src/org/cyanogenmod/nemesis/CameraManager.java
+++ b/src/org/cyanogenmod/nemesis/CameraManager.java
@@ -1,787 +1,787 @@
/**
* Copyright (C) 2013 The CyanogenMod Project
*... | true | true | public boolean open(final int cameraId) {
if (mCamera != null) {
if (mPreviewPauseListener != null) {
mPreviewPauseListener.onPreviewPause();
}
// Close the previous camera
releaseCamera();
}
mCameraReady = false;
// ... | public boolean open(final int cameraId) {
if (mCamera != null) {
if (mPreviewPauseListener != null) {
mPreviewPauseListener.onPreviewPause();
}
// Close the previous camera
releaseCamera();
}
mCameraReady = false;
// ... |
diff --git a/src/main/java/org/jenkinsci/plugins/pitmutation/targets/MutatedClass.java b/src/main/java/org/jenkinsci/plugins/pitmutation/targets/MutatedClass.java
index 9a5fa52..f3f5811 100644
--- a/src/main/java/org/jenkinsci/plugins/pitmutation/targets/MutatedClass.java
+++ b/src/main/java/org/jenkinsci/plugins/pitmu... | true | true | private MutatedClass(String name, MutationStats stats) {
super(stats);
name_ = name;
int lastDot = name.lastIndexOf('.');
package_ = name_.substring(0, lastDot);
fileName_ = name_.substring(lastDot + 1) + ".java.html";
}
| private MutatedClass(String name, MutationStats stats) {
super(null, null);
name_ = name;
int lastDot = name.lastIndexOf('.');
package_ = name_.substring(0, lastDot);
fileName_ = name_.substring(lastDot + 1) + ".java.html";
}
|
diff --git a/src/org/fao/geonet/services/resources/Download.java b/src/org/fao/geonet/services/resources/Download.java
index 6f1db0f043..e8b2205c32 100644
--- a/src/org/fao/geonet/services/resources/Download.java
+++ b/src/org/fao/geonet/services/resources/Download.java
@@ -1,140 +1,140 @@
//==========================... | false | true | public Element exec(Element params, ServiceContext context) throws Exception
{
String id = Util.getParam(params, Params.ID);
String fname = Util.getParam(params, Params.FNAME);
String access = Util.getParam(params, Params.ACCESS);
boolean doNotify = false;
if (access == null || access.equals(Params.A... | public Element exec(Element params, ServiceContext context) throws Exception
{
String id = Util.getParam(params, Params.ID);
String fname = Util.getParam(params, Params.FNAME);
String access = Util.getParam(params, Params.ACCESS, Params.Access.PUBLIC);
boolean doNotify = false;
if (access.equals(Para... |
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index ecfd4165..d9cd7276 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1,2584 +1,2585 @@
/*
* Copyright (C) 2008 ... | true | true | public void onStartInputView(EditorInfo attribute, boolean restarting) {
LatinKeyboardView inputView = mKeyboardSwitcher.getInputView();
// In landscape mode, this method gets called without the input view being created.
if (inputView == null) {
return;
}
if (mRe... | public void onStartInputView(EditorInfo attribute, boolean restarting) {
LatinKeyboardView inputView = mKeyboardSwitcher.getInputView();
// In landscape mode, this method gets called without the input view being created.
if (inputView == null) {
return;
}
if (mRe... |
diff --git a/src/main/wikiduper/analysis/HistogramClusters.java b/src/main/wikiduper/analysis/HistogramClusters.java
index 7d15b54..e4fe48b 100644
--- a/src/main/wikiduper/analysis/HistogramClusters.java
+++ b/src/main/wikiduper/analysis/HistogramClusters.java
@@ -1,435 +1,435 @@
package wikiduper.analysis;
imp... | true | true | public void getHistogram(JobConf conf){
String filein = conf.get(INPUT);
int max = conf.getInt(MAX, 30);
int thresh = conf.getInt(THRESH, 30);
int binsize = conf.getInt(BINSIZE, 10);
//IntWritable, Text
// Overall histogram: cluster sizes -> cluster ... | public void getHistogram(JobConf conf){
String filein = conf.get(INPUT);
int max = conf.getInt(MAX, 30);
int thresh = conf.getInt(THRESH, 30);
int binsize = conf.getInt(BINSIZE, 10);
//IntWritable, Text
// Overall histogram: cluster sizes -> cluster ... |
diff --git a/Globerry/src/main/java/com/globerry/project/controllers/CompanyController.java b/Globerry/src/main/java/com/globerry/project/controllers/CompanyController.java
index 4b13a72..4d51c1f 100644
--- a/Globerry/src/main/java/com/globerry/project/controllers/CompanyController.java
+++ b/Globerry/src/main/java/com... | true | true | public String home(){
City city = new City();
cityDao.addCity(city);
Temperature temperature = new Temperature();
temperature.setMonth(Month.AUGUST);
temperature.setCityId(city.getId());
temperature.setVal(10);
temperatureDao.setTemp(temperature);
Company company = new Company();
company.setName(name... | public String home(){
City city = new City();
cityDao.addCity(city);
Temperature temperature = new Temperature();
temperature.setMonth(Month.AUGUST);
temperature.setCityId(city.getId());
temperature.setVal(10);
temperatureDao.setTemp(temperature);
Company company = new Company();
company.setName("nam... |
diff --git a/src/com/prototypical/darksoulscalculator/MainActivity.java b/src/com/prototypical/darksoulscalculator/MainActivity.java
index 5a78d18..d584876 100644
--- a/src/com/prototypical/darksoulscalculator/MainActivity.java
+++ b/src/com/prototypical/darksoulscalculator/MainActivity.java
@@ -1,241 +1,241 @@
packag... | false | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
setContentView(R.layout.activity_main);
Typeface font = Typeface.createFromAsset(this.getAssets(), "fonts/... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
setContentView(R.layout.activity_main);
Typeface font = Typeface.createFromAsset(this.getAssets(), "fonts/... |
diff --git a/seqware-pipeline/src/main/java/net/sourceforge/seqware/pipeline/module/Module.java b/seqware-pipeline/src/main/java/net/sourceforge/seqware/pipeline/module/Module.java
index 5f1bf0e1..8574a543 100644
--- a/seqware-pipeline/src/main/java/net/sourceforge/seqware/pipeline/module/Module.java
+++ b/seqware-pipe... | true | true | public void setParameters(List<String> parameters) {
Log.info("Parsing Command Parameters:");
// Clear the parameters first. Otherwise, it will have side effect when
// setParameters are called twice, the parameters
// are merged as opposed to be set
this.parameters.clear();
boolean readingQuo... | public void setParameters(List<String> parameters) {
Log.info("Parsing Command Parameters:");
// Clear the parameters first. Otherwise, it will have side effect when
// setParameters are called twice, the parameters
// are merged as opposed to be set
this.parameters.clear();
boolean readingQuo... |
diff --git a/src/ca/slashdev/bb/tasks/JadtoolTask.java b/src/ca/slashdev/bb/tasks/JadtoolTask.java
index e918b5c..ddfb0b1 100644
--- a/src/ca/slashdev/bb/tasks/JadtoolTask.java
+++ b/src/ca/slashdev/bb/tasks/JadtoolTask.java
@@ -1,198 +1,198 @@
/*
* Copyright 2008 Josh Kropf
*
* This file is part of bb-ant-tool... | true | true | private void executeRewrite() {
BufferedReader reader = null;
PrintStream output = null;
try {
try {
reader = new BufferedReader(new FileReader(input));
output = new PrintStream(new File(destDir, input.getName()));
int i, num = 0;
... | private void executeRewrite() {
BufferedReader reader = null;
PrintStream output = null;
try {
try {
reader = new BufferedReader(new FileReader(input));
output = new PrintStream(new File(destDir, input.getName()));
int i, num = 0;
... |
diff --git a/src/org/opensolaris/opengrok/util/Executor.java b/src/org/opensolaris/opengrok/util/Executor.java
index 68d1ce5..bcc3ee3 100644
--- a/src/org/opensolaris/opengrok/util/Executor.java
+++ b/src/org/opensolaris/opengrok/util/Executor.java
@@ -1,286 +1,309 @@
/*
* CDDL HEADER START
*
* The contents of t... | false | true | public int exec(final boolean reportExceptions, StreamHandler handler) {
int ret = -1;
ProcessBuilder processBuilder = new ProcessBuilder(cmdList);
if (workingDirectory != null) {
processBuilder.directory(workingDirectory);
if (processBuilder.environment().containsKe... | public int exec(final boolean reportExceptions, StreamHandler handler) {
int ret = -1;
String error = null;
ProcessBuilder processBuilder = new ProcessBuilder(cmdList);
if (workingDirectory != null) {
processBuilder.directory(workingDirectory);
if (processBui... |
diff --git a/pingpongnet/src/main/java/ping/pong/net/server/ServerExceptionHandler.java b/pingpongnet/src/main/java/ping/pong/net/server/ServerExceptionHandler.java
index c84edf4..0d4b69c 100644
--- a/pingpongnet/src/main/java/ping/pong/net/server/ServerExceptionHandler.java
+++ b/pingpongnet/src/main/java/ping/pong/ne... | false | true | public static void handleException(final Exception ex, Logger logger)
{
// BindException, ConnectException, NoRouteToHostException, PortUnreachableException
if (ex instanceof SocketException)
{
if ((ex instanceof BindException) || ex.getMessage().contains("JVM_Bind"))
... | public static void handleException(final Exception ex, Logger logger)
{
// BindException, ConnectException, NoRouteToHostException, PortUnreachableException
if (ex instanceof SocketException)
{
if ((ex instanceof BindException) || ex.getMessage().contains("JVM_Bind"))
... |
diff --git a/archquery/src/com/android/archquery/Main.java b/archquery/src/com/android/archquery/Main.java
index c76cca122..030cfe598 100644
--- a/archquery/src/com/android/archquery/Main.java
+++ b/archquery/src/com/android/archquery/Main.java
@@ -1,72 +1,72 @@
/*
* Copyright (C) 2009 The Android Open Source Projec... | true | true | public static void main(String[] args) {
for (String arg : args) {
System.out.println(String.format("%1$s: %2$s", arg, System.getProperty(arg)));
}
if (args.length == 0) {
// Values listed from http://lopica.sourceforge.net/os.html
String arch = System.g... | public static void main(String[] args) {
for (String arg : args) {
System.out.println(System.getProperty(arg));
}
if (args.length == 0) {
// Values listed from http://lopica.sourceforge.net/os.html
String arch = System.getProperty("os.arch");
... |
diff --git a/filter/src/main/java/com/kawsoft/rewritehtml/HtmlTranslationFilter.java b/filter/src/main/java/com/kawsoft/rewritehtml/HtmlTranslationFilter.java
index e63a962..a3afc3d 100644
--- a/filter/src/main/java/com/kawsoft/rewritehtml/HtmlTranslationFilter.java
+++ b/filter/src/main/java/com/kawsoft/rewritehtml/Ht... | false | true | public void doFilter(ServletRequest req, ServletResponse res, FilterChain filterChain) throws IOException, ServletException {
HttpServletRequest httpReq = (HttpServletRequest) req;
if (log.isLoggable(Level.FINE)) {
log.info("Processing request for URI: " + httpReq.getRequestURI());
... | public void doFilter(ServletRequest req, ServletResponse res, FilterChain filterChain) throws IOException, ServletException {
// Get the uri for possible rewrite.
HttpServletRequest httpReq = (HttpServletRequest) req;
String uri = httpReq.getRequestURI();
String uriOriginal = uri;
... |
diff --git a/chorus-webagent/src/test/java/org/chorusbdd/chorus/tools/webagent/httpconnector/HttpConnectorHandler.java b/chorus-webagent/src/test/java/org/chorusbdd/chorus/tools/webagent/httpconnector/HttpConnectorHandler.java
index d80a880..efcfc9d 100644
--- a/chorus-webagent/src/test/java/org/chorusbdd/chorus/tools/... | true | true | public void checkWebContent(final String url, String resource) throws IOException {
InputStream is = getClass().getResource("expected/" + resource).openStream();
final String expected = FileUtil.readToString(is);
new PolledAssertion() {
@Override
protected void valid... | public void checkWebContent(final String url, String resource) throws IOException {
InputStream is = getClass().getResource("expected/" + resource).openStream();
final String expected = FileUtil.readToString(is);
new PolledAssertion() {
@Override
protected void valid... |
diff --git a/plugins/wyclipse.ui/src/wyclipse/ui/dialogs/VirtualContainerSelectionDialog.java b/plugins/wyclipse.ui/src/wyclipse/ui/dialogs/VirtualContainerSelectionDialog.java
index 2a8a5b7..bfd13b5 100644
--- a/plugins/wyclipse.ui/src/wyclipse/ui/dialogs/VirtualContainerSelectionDialog.java
+++ b/plugins/wyclipse.ui/... | true | true | public Control createDialogArea(Composite parent) {
Composite container = new Composite(parent, SWT.NONE);
// =====================================================================
// Configure Grid
// =====================================================================
GridLayout layout = new GridLayout... | public Control createDialogArea(Composite parent) {
Composite container = new Composite(parent, SWT.NONE);
// =====================================================================
// Configure Grid
// =====================================================================
GridLayout layout = new GridLayout... |
diff --git a/android/src/com/google/zxing/client/android/encode/EncodeActivity.java b/android/src/com/google/zxing/client/android/encode/EncodeActivity.java
index 562ebbf4..4e901341 100755
--- a/android/src/com/google/zxing/client/android/encode/EncodeActivity.java
+++ b/android/src/com/google/zxing/client/android/enco... | false | true | public boolean onOptionsItemSelected(MenuItem item) {
if (qrCodeEncoder == null) { // Odd
Log.w(TAG, "No existing barcode to send?");
return true;
}
String contents = qrCodeEncoder.getContents();
Bitmap bitmap;
try {
bitmap = QRCodeEncoder.encodeAsBitmap(contents,
... | public boolean onOptionsItemSelected(MenuItem item) {
if (qrCodeEncoder == null) { // Odd
Log.w(TAG, "No existing barcode to send?");
return true;
}
String contents = qrCodeEncoder.getContents();
Bitmap bitmap;
try {
bitmap = QRCodeEncoder.encodeAsBitmap(contents, BarcodeFormat.... |
diff --git a/src/bb.java b/src/bb.java
index e0f205e..b0983ae 100644
--- a/src/bb.java
+++ b/src/bb.java
@@ -1,125 +1,125 @@
import java.util.Random;
public class bb extends gm {
private int a;
public bb(int paramInt1, int paramInt2) {
super(paramInt1);
this.aX = 1;
this.a... | false | true | public il a(il paramik, ff paramff, gq paramgp) {
float f1 = 1.0F;
float f2 = paramgp.y + (paramgp.w - paramgp.y) * f1;
float f3 = paramgp.x + (paramgp.v - paramgp.x) * f1;
double d1 = paramgp.m + (paramgp.p - paramgp.m) * f1;
double d2 = paramgp.n + (paramgp.q - paramgp.n)... | public il a(il paramik, ff paramff, gq paramgp) {
float f1 = 1.0F;
float f2 = paramgp.y + (paramgp.w - paramgp.y) * f1;
float f3 = paramgp.x + (paramgp.v - paramgp.x) * f1;
double d1 = paramgp.m + (paramgp.p - paramgp.m) * f1;
double d2 = paramgp.n + (paramgp.q - paramgp.n)... |
diff --git a/src/scene/test/SceneSelectorScene.java b/src/scene/test/SceneSelectorScene.java
index da179f6..5e0ccd0 100644
--- a/src/scene/test/SceneSelectorScene.java
+++ b/src/scene/test/SceneSelectorScene.java
@@ -1,196 +1,196 @@
package scene.test;
import java.util.ArrayList;
import java.util.List;
import jav... | true | true | public Party makeRandomParty() {
Random random = new Random();
ArrayList<Person> people = new ArrayList<Person>();
people.add(new Person("Alice"));
people.add(new Person("Bob"));
people.add(new Person("Carl"));
people.add(new Person("Diane"));
for(Person person : people) {
ArrayList<Person.Sk... | public Party makeRandomParty() {
Random random = new Random();
ArrayList<Person> people = new ArrayList<Person>();
people.add(new Person("Alice"));
people.add(new Person("Bob"));
people.add(new Person("Carl"));
people.add(new Person("Diane"));
for(Person person : people) {
ArrayList<Person.Sk... |
diff --git a/DataModel/src/org/sleuthkit/autopsy/datamodel/EmailExtracted.java b/DataModel/src/org/sleuthkit/autopsy/datamodel/EmailExtracted.java
index b10b4ef1c..e6d1de383 100644
--- a/DataModel/src/org/sleuthkit/autopsy/datamodel/EmailExtracted.java
+++ b/DataModel/src/org/sleuthkit/autopsy/datamodel/EmailExtracted.... | true | true | private void initArtifacts() {
accounts.clear();
try {
int artId = BlackboardArtifact.ARTIFACT_TYPE.TSK_EMAIL_MSG.getTypeID();
int pathAttrId = BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PATH.getTypeID();
String query = "SELECT value_text,blackboard_attributes.artifac... | private void initArtifacts() {
accounts.clear();
try {
int artId = BlackboardArtifact.ARTIFACT_TYPE.TSK_EMAIL_MSG.getTypeID();
int pathAttrId = BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PATH.getTypeID();
String query = "SELECT value_text,blackboard_attributes.artifac... |
diff --git a/src/com/dmdirc/parser/ProcessNick.java b/src/com/dmdirc/parser/ProcessNick.java
index 7f0abed3d..a4c343df9 100644
--- a/src/com/dmdirc/parser/ProcessNick.java
+++ b/src/com/dmdirc/parser/ProcessNick.java
@@ -1,137 +1,136 @@
/*
* Copyright (c) 2006-2007 Chris Smith, Shane Mc Cormack, Gregory Holmes
*
... | true | true | public void process(String sParam, String[] token) {
ClientInfo iClient;
ChannelClientInfo iChannelClient;
String oldNickname;
iClient = getClientInfo(token[0]);
if (iClient != null) {
oldNickname = myParser.toLowerCase(iClient.getNickname());
// Remove the client from the known clients list
fina... | public void process(String sParam, String[] token) {
ClientInfo iClient;
ChannelClientInfo iChannelClient;
String oldNickname;
iClient = getClientInfo(token[0]);
if (iClient != null) {
oldNickname = myParser.toLowerCase(iClient.getNickname());
// Remove the client from the known clients list
fina... |
diff --git a/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmith/xtext/dommodel/formatter/css/DefaultStylesheetProvider.java b/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmith/xtext/dommodel/formatter/css/DefaultStylesheetProvider.java
index 786ee8d1..6f80e1c4 100644
--- a/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmi... | true | true | public DomCSS get() {
DomCSS css = new DomCSS();
css.addRules( //
// All nodes print their text
Select.any()//
.withStyle(styles.tokenText(functions.textOfNode()))//
.withRuleName("DefaultCSS.TextOfNode"), //
// Default spacing is one space per whitespace, no line break
Select.whitespace()//
... | public DomCSS get() {
DomCSS css = new DomCSS();
css.addRules( //
// All nodes print their text
Select.any()//
.withStyle(styles.tokenText(functions.textOfNode()))//
.withRuleName("DefaultCSS.TextOfNode"), //
// Default spacing is one space per whitespace, no line break
Select.whitespace()//
... |
diff --git a/src/main/java/com/onarandombox/MultiverseCore/destination/AnchorDestination.java b/src/main/java/com/onarandombox/MultiverseCore/destination/AnchorDestination.java
index b957e94..5236fcf 100644
--- a/src/main/java/com/onarandombox/MultiverseCore/destination/AnchorDestination.java
+++ b/src/main/java/com/on... | true | true | public void setDestination(JavaPlugin plugin, String destination) {
if (!(plugin instanceof MultiverseCore)) {
return;
}
this.plugin = (MultiverseCore) plugin;
List<String> parsed = Arrays.asList(destination.split(":"));
// Need at least: e:world:x,y,z
// ... | public void setDestination(JavaPlugin plugin, String destination) {
if (!(plugin instanceof MultiverseCore)) {
return;
}
this.plugin = (MultiverseCore) plugin;
List<String> parsed = Arrays.asList(destination.split(":"));
// Need at least: e:world:x,y,z
// ... |
diff --git a/caintegrator-war/src/gov/nih/nci/caintegrator/web/action/AbstractCaIntegrator2Action.java b/caintegrator-war/src/gov/nih/nci/caintegrator/web/action/AbstractCaIntegrator2Action.java
index a2715e4f2..de0c0ee67 100644
--- a/caintegrator-war/src/gov/nih/nci/caintegrator/web/action/AbstractCaIntegrator2Action.... | true | true | protected static final String removeHtmlChars(String inputString) {
if (inputString != null) {
String holdString = inputString.replaceAll("(<[^>]+>)", StringUtils.EMPTY);
holdString = holdString.replaceAll("(<.+)", StringUtils.EMPTY);
holdString = holdString.replaceAll... | protected static final String removeHtmlChars(String inputString) {
if (inputString != null) {
String holdString = inputString.replaceAll("(<[^>]+>)", StringUtils.EMPTY);
holdString = holdString.replaceAll("(<.+)", StringUtils.EMPTY);
holdString = holdString.replaceAll... |
diff --git a/src/main/java/de/javakaffee/kryoserializers/JdkProxySerializer.java b/src/main/java/de/javakaffee/kryoserializers/JdkProxySerializer.java
index 117a36e..dab2b44 100644
--- a/src/main/java/de/javakaffee/kryoserializers/JdkProxySerializer.java
+++ b/src/main/java/de/javakaffee/kryoserializers/JdkProxySeriali... | true | true | public Object read(final Kryo kryo, final Input input, final Class<Object> type) {
final InvocationHandler invocationHandler = (InvocationHandler) kryo.readClassAndObject( input );
final Class<?>[] interfaces = kryo.readObject( input, Class[].class );
final ClassLoader classLoader = kryo.get... | public Object read(final Kryo kryo, final Input input, final Class<Object> type) {
final InvocationHandler invocationHandler = (InvocationHandler) kryo.readClassAndObject( input );
final Class<?>[] interfaces = kryo.readObject( input, Class[].class );
final ClassLoader classLoader = kryo.get... |
diff --git a/src/org/rascalmpl/interpreter/result/ListResult.java b/src/org/rascalmpl/interpreter/result/ListResult.java
index 0800b43054..1a65ac62e4 100644
--- a/src/org/rascalmpl/interpreter/result/ListResult.java
+++ b/src/org/rascalmpl/interpreter/result/ListResult.java
@@ -1,250 +1,251 @@
/***********************... | true | true | protected <U extends IValue> Result<U> lessThanList(ListResult that) {
IList val = that.getValue();
if (val.length() > value.length()) {
return bool(false, ctx);
}
OUTER:for (int iThat = 0, iThis = 0; iThat < val.length(); iThat++) {
for (iThis = Math.max(iThis, iThat) ; iThis < va... | protected <U extends IValue> Result<U> lessThanList(ListResult that) {
IList val = that.getValue();
if (val.length() > value.length()) {
return bool(false, ctx);
}
OUTER:for (int iThat = 0, iThis = 0; iThat < val.length(); iThat++) {
for (iThis = Math.max(iThis, iThat) ; iThis < va... |
diff --git a/hot-deploy/opentaps-common/src/common/org/opentaps/common/domain/organization/OrganizationRepository.java b/hot-deploy/opentaps-common/src/common/org/opentaps/common/domain/organization/OrganizationRepository.java
index 08355c54c..28f172368 100644
--- a/hot-deploy/opentaps-common/src/common/org/opentaps/co... | true | true | public BigDecimal determineUomConversionFactor(String organizationPartyId, String currencyUomId, Timestamp asOfDate) throws RepositoryException {
try {
Organization organization = getOrganizationById(organizationPartyId);
// default conversion factor
BigDecimal conversion... | public BigDecimal determineUomConversionFactor(String organizationPartyId, String currencyUomId, Timestamp asOfDate) throws RepositoryException {
try {
Organization organization = getOrganizationById(organizationPartyId);
// default conversion factor
BigDecimal conversion... |
diff --git a/src/main/java/org/mvel/util/ParseTools.java b/src/main/java/org/mvel/util/ParseTools.java
index 42a1571b..db976e40 100644
--- a/src/main/java/org/mvel/util/ParseTools.java
+++ b/src/main/java/org/mvel/util/ParseTools.java
@@ -1,953 +1,957 @@
package org.mvel.util;
import static java.lang.String.valueOf... | false | true | private static Object doOperationsSameType(int type1, Object val1, int operation, Object val2) {
switch (type1) {
case DataTypes.INTEGER:
case DataTypes.W_INTEGER:
switch (operation) {
case Operator.ADD:
return ((Integer) va... | private static Object doOperationsSameType(int type1, Object val1, int operation, Object val2) {
switch (type1) {
case DataTypes.INTEGER:
case DataTypes.W_INTEGER:
switch (operation) {
case Operator.ADD:
return ((Integer) va... |
diff --git a/component/web/resources/src/main/java/org/exoplatform/web/application/javascript/JavascriptConfigService.java b/component/web/resources/src/main/java/org/exoplatform/web/application/javascript/JavascriptConfigService.java
index 93fd98bf0..b80bfb722 100644
--- a/component/web/resources/src/main/java/org/exo... | true | true | public Reader getScript(ResourceId resourceId, Locale locale)
{
ScriptResource resource = getResource(resourceId);
if (resource != null)
{
List<Module> modules = new ArrayList<Module>(resource.getModules());
Collections.sort(modules, MODULE_COMPARATOR);
ArrayList<Reade... | public Reader getScript(ResourceId resourceId, Locale locale)
{
ScriptResource resource = getResource(resourceId);
if (resource != null)
{
List<Module> modules = new ArrayList<Module>(resource.getModules());
Collections.sort(modules, MODULE_COMPARATOR);
ArrayList<Reade... |
diff --git a/cat-home/src/main/java/com/dianping/cat/system/page/login/Handler.java b/cat-home/src/main/java/com/dianping/cat/system/page/login/Handler.java
index 6ecbe330..de787e06 100644
--- a/cat-home/src/main/java/com/dianping/cat/system/page/login/Handler.java
+++ b/cat-home/src/main/java/com/dianping/cat/system/p... | true | true | public void handleInbound(Context ctx) throws ServletException, IOException {
Payload payload = ctx.getPayload();
Action action = payload.getAction();
if (payload.isSubmit() && action == Action.LOGIN) {
String account = payload.getAccount();
String password = payload.getPassword();
if (account != null... | public void handleInbound(Context ctx) throws ServletException, IOException {
Payload payload = ctx.getPayload();
Action action = payload.getAction();
if (payload.isSubmit() && action == Action.LOGIN) {
String account = payload.getAccount();
String password = payload.getPassword();
if (account != null... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskRepositoryAdapterFactory.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskRepositoryAdapterFactory.java
index 90e87bc16..d5a2eb684 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks... | true | true | public Object getAdapter(final Object adaptable, @SuppressWarnings("unchecked")
Class adapterType) {
if (adaptable instanceof TaskRepository) {
return new IActionFilter() {
public boolean testAttribute(Object target, String name, String value) {
TaskRepository repository = (TaskRepository) target;
... | public Object getAdapter(final Object adaptable, @SuppressWarnings("unchecked")
Class adapterType) {
if (adaptable instanceof TaskRepository) {
return new IActionFilter() {
public boolean testAttribute(Object target, String name, String value) {
TaskRepository repository = (TaskRepository) target;
... |
diff --git a/main/java/org/spoutcraft/spoutcraftapi/addon/SimpleAddonManager.java b/main/java/org/spoutcraft/spoutcraftapi/addon/SimpleAddonManager.java
index 0f7b6cba..2cbcec22 100644
--- a/main/java/org/spoutcraft/spoutcraftapi/addon/SimpleAddonManager.java
+++ b/main/java/org/spoutcraft/spoutcraftapi/addon/SimpleAdd... | false | true | public Addon[] loadAddons(File directory) {
List<Addon> result = new ArrayList<Addon>();
File[] files = directory.listFiles();
boolean allFailed = false;
boolean finalPass = false;
LinkedList<File> filesList = new LinkedList<File>(Arrays.asList(files));
if (!(client.getUpdateFolder() == null)) {
upda... | public Addon[] loadAddons(File directory) {
List<Addon> result = new ArrayList<Addon>();
File[] files = directory.listFiles();
boolean allFailed = false;
boolean finalPass = false;
LinkedList<File> filesList = new LinkedList<File>(Arrays.asList(files));
if (!(client.getUpdateFolder() == null)) {
upda... |
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/JavaTextFileBuffer.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/JavaTextFileBuffer.java
index cc4e57896..227c09d6a 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/Java... | true | true | protected void commitFileBufferContent(IProgressMonitor monitor, boolean overwrite) throws CoreException {
String encoding= computeEncoding();
Charset charset;
try {
charset= Charset.forName(encoding);
} catch (UnsupportedCharsetException ex) {
String message= NLSUtility.format(FileBuffersMessages.Resou... | protected void commitFileBufferContent(IProgressMonitor monitor, boolean overwrite) throws CoreException {
String encoding= computeEncoding();
Charset charset;
try {
charset= Charset.forName(encoding);
} catch (UnsupportedCharsetException ex) {
String message= NLSUtility.format(FileBuffersMessages.Resou... |
diff --git a/Search/java/search/minimax/AbstractMiniMax.java b/Search/java/search/minimax/AbstractMiniMax.java
index 79c471b..64f9fe5 100644
--- a/Search/java/search/minimax/AbstractMiniMax.java
+++ b/Search/java/search/minimax/AbstractMiniMax.java
@@ -1,38 +1,38 @@
package search.minimax;
import search.TreeSearch;... | true | true | @Override public int search(int color, Board[] board, int empties) {
int bestScore = minVal;
for (int curLocation = 11 ; curLocation<89; curLocation++) {
if (curLocation%10 == 9) {
curLocation +=2;
}
if (board[empties].isMoveValid(color,curLocatio... | @Override public int search(int color, Board[] board, int empties) {
int bestScore = minVal;
for (int curLocation = 11 ; curLocation<89; curLocation++) {
if (curLocation%10 == 9) {
curLocation +=2;
}
if (board[empties].isMoveValid(color,curLocatio... |
diff --git a/parser/org/eclipse/cdt/internal/core/parser/ast/complete/ASTElaboratedTypeSpecifier.java b/parser/org/eclipse/cdt/internal/core/parser/ast/complete/ASTElaboratedTypeSpecifier.java
index 1314a1f4a..c3af3ed51 100644
--- a/parser/org/eclipse/cdt/internal/core/parser/ast/complete/ASTElaboratedTypeSpecifier.jav... | true | true | public void acceptElement(ISourceElementRequestor requestor)
{
if( isForwardDeclaration )
try
{
requestor.acceptElaboratedForewardDeclaration(this);
}
catch (Exception e)
{
/* do nothing */
}
ASTReference... | public void acceptElement(ISourceElementRequestor requestor)
{
if( isForwardDeclaration )
try
{
requestor.acceptElaboratedForewardDeclaration(this);
}
catch (Exception e)
{
/* do nothing */
}
ASTReference... |
diff --git a/RubeLoader/src/com/mangecailloux/rube/loader/serializers/FixtureSerializer.java b/RubeLoader/src/com/mangecailloux/rube/loader/serializers/FixtureSerializer.java
index b4a6093..e37afc1 100644
--- a/RubeLoader/src/com/mangecailloux/rube/loader/serializers/FixtureSerializer.java
+++ b/RubeLoader/src/com/mang... | true | true | public Fixture read(Json json, Object jsonData, Class type)
{
if(body == null)
return null;
json.setIgnoreUnknownFields(true);
FixtureDef def = new FixtureDef();
json.readFields(def, jsonData);
def.isSensor = json.readValue("sensor", boolean.class, false, jsonData);
CircleShape circle = json... | public Fixture read(Json json, Object jsonData, Class type)
{
if(body == null)
return null;
json.setIgnoreUnknownFields(true);
FixtureDef def = new FixtureDef();
def.friction = 0; // NOTE: fixtures with 0 friction do not have a friction member in the RUBE Json file. Do not use the libgdx default o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.