Datasets:

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/othersonline/kv/distributed/impl/PropertiesConfigurator.java b/src/com/othersonline/kv/distributed/impl/PropertiesConfigurator.java index 57aed8d..51618b5 100644 --- a/src/com/othersonline/kv/distributed/impl/PropertiesConfigurator.java +++ b/src/com/othersonline/kv/distributed/impl/PropertiesConfi...
false
true
private Configuration getConfig(Properties p) throws IllegalArgumentException { ConnectionFactory cf = new UriConnectionFactory(); int syncOperationThreadPoolCount = getIntProperty(p, SYNC_OP_THREAD_POOL, 100); int syncOperationMaxQueueSize = getIntProperty(p, SYNC_OP_MAX_QUEUE_SIZE, 100); int async...
private Configuration getConfig(Properties p) throws IllegalArgumentException { ConnectionFactory cf = new UriConnectionFactory(); int syncOperationThreadPoolCount = getIntProperty(p, SYNC_OP_THREAD_POOL, 100); int syncOperationMaxQueueSize = getIntProperty(p, SYNC_OP_MAX_QUEUE_SIZE, 100); int async...
diff --git a/modules/cpr/src/main/java/org/atmosphere/cpr/WebSocketProcessor.java b/modules/cpr/src/main/java/org/atmosphere/cpr/WebSocketProcessor.java index f9070e522..515341989 100644 --- a/modules/cpr/src/main/java/org/atmosphere/cpr/WebSocketProcessor.java +++ b/modules/cpr/src/main/java/org/atmosphere/cpr/WebSock...
false
true
public void notifyListener(WebSocketEventListener.WebSocketEvent event) { if (resource == null) return; AtmosphereResourceImpl r = AtmosphereResourceImpl.class.cast(resource); for (AtmosphereResourceEventListener l : r.atmosphereResourceEventListener()) { if (WebSocketEventLis...
public void notifyListener(WebSocketEventListener.WebSocketEvent event) { if (resource == null) return; AtmosphereResourceImpl r = AtmosphereResourceImpl.class.cast(resource); for (AtmosphereResourceEventListener l : r.atmosphereResourceEventListener()) { if (WebSocketEventLis...
diff --git a/src/org/opensolaris/opengrok/configuration/Configuration.java b/src/org/opensolaris/opengrok/configuration/Configuration.java index 8763fd3..1e3cd79 100644 --- a/src/org/opensolaris/opengrok/configuration/Configuration.java +++ b/src/org/opensolaris/opengrok/configuration/Configuration.java @@ -1,474 +1,47...
true
true
public Configuration() { //defaults for an opengrok instance configuration setHistoryCache(true); setHistoryCacheTime(30); setHistoryCacheInDB(false); setProjects(new ArrayList<Project>()); setRepositories(new ArrayList<RepositoryInfo>()); setUrlPrefix("/sourc...
public Configuration() { //defaults for an opengrok instance configuration setHistoryCache(true); setHistoryCacheTime(30); setHistoryCacheInDB(false); setProjects(new ArrayList<Project>()); setRepositories(new ArrayList<RepositoryInfo>()); setUrlPrefix("/sourc...
diff --git a/src/main/java/com/jayway/maven/plugins/android/common/NativeHelper.java b/src/main/java/com/jayway/maven/plugins/android/common/NativeHelper.java index b513a14f..03a3ac97 100644 --- a/src/main/java/com/jayway/maven/plugins/android/common/NativeHelper.java +++ b/src/main/java/com/jayway/maven/plugins/androi...
true
true
private Set<Artifact> processTransientDependencies( Dependency dependency, boolean sharedLibraries ) throws MojoExecutionException { try { final Set<Artifact> artifacts = new LinkedHashSet<Artifact>(); final CollectRequest collectRequest = new CollectRequest(); collectR...
private Set<Artifact> processTransientDependencies( Dependency dependency, boolean sharedLibraries ) throws MojoExecutionException { try { final Set<Artifact> artifacts = new LinkedHashSet<Artifact>(); final CollectRequest collectRequest = new CollectRequest(); collectR...
diff --git a/src/main/java/org/apache/ibatis/builder/annotation/MapperAnnotationBuilder.java b/src/main/java/org/apache/ibatis/builder/annotation/MapperAnnotationBuilder.java index 4c5796e8dd..de50a63115 100644 --- a/src/main/java/org/apache/ibatis/builder/annotation/MapperAnnotationBuilder.java +++ b/src/main/java/org...
false
true
private void parseStatement(Method method) { SqlSource sqlSource = getSqlSourceFromAnnotations(method); if (sqlSource != null) { Options options = method.getAnnotation(Options.class); final String mappedStatementId = type.getName() + "." + method.getName(); boolean flushCache = false; ...
private void parseStatement(Method method) { SqlSource sqlSource = getSqlSourceFromAnnotations(method); if (sqlSource != null) { Options options = method.getAnnotation(Options.class); final String mappedStatementId = type.getName() + "." + method.getName(); Integer fetchSize = null; In...
diff --git a/src/net/sf/egonet/persistence/DB.java b/src/net/sf/egonet/persistence/DB.java index bbb4820..bdce015 100644 --- a/src/net/sf/egonet/persistence/DB.java +++ b/src/net/sf/egonet/persistence/DB.java @@ -1,84 +1,88 @@ package net.sf.egonet.persistence; import net.sf.egonet.model.Entity; import net.sf.egon...
true
true
public static void migrate() { new Action<Object>() { public Object get() { // TODO: Need to store schema version so each migration can be applied exactly once. /* for(String entity : new String[]{ "Alter","Answer","Expression","Interview","Question","QuestionOption","Study"}) { this.s...
public static void migrate() { new Action<Object>() { public Object get() { // TODO: Need to store schema version so each migration can be applied exactly once. session.createSQLQuery( "create index idx_questionoption_qid_ord on " + "question_option(question_id,ordering)") .executeUpdate()...
diff --git a/src/main/java/org/uncertweb/aquacrop/AquaCropInterface.java b/src/main/java/org/uncertweb/aquacrop/AquaCropInterface.java index e3f5003..b70c2fb 100644 --- a/src/main/java/org/uncertweb/aquacrop/AquaCropInterface.java +++ b/src/main/java/org/uncertweb/aquacrop/AquaCropInterface.java @@ -1,226 +1,230 @@ pa...
false
true
public Output run(Project project) throws AquaCropException { // check given params are sensible preRunChecks(); // generate an id final String runId = String.valueOf(System.currentTimeMillis()); // generate run folder File runDir = new File(basePath, "aquacrop_" + runId); String runPath = runDir.g...
public Output run(Project project) throws AquaCropException { // check given params are sensible preRunChecks(); // generate an id final String runId = String.valueOf(System.currentTimeMillis()); // generate run folder File runDir = new File(basePath, "aquacrop_" + runId); String runPath = runDir.g...
diff --git a/src/com/jidesoft/plaf/basic/BasicStyledLabelUI.java b/src/com/jidesoft/plaf/basic/BasicStyledLabelUI.java index 0acd55cb..958c0394 100644 --- a/src/com/jidesoft/plaf/basic/BasicStyledLabelUI.java +++ b/src/com/jidesoft/plaf/basic/BasicStyledLabelUI.java @@ -1,1619 +1,1632 @@ /* * @(#)BasicStyledLabelUI....
true
true
private int internalPaintStyledText(StyledLabel label, Graphics g, int textX, int textY, int paintWidth) { int labelHeight = label.getHeight(); if (labelHeight <= 0) { labelHeight = Integer.MAX_VALUE; } int startX = textX < label.getInsets().left ? label.getInsets().left ...
private int internalPaintStyledText(StyledLabel label, Graphics g, int textX, int textY, int paintWidth) { int labelHeight = label.getHeight(); if (labelHeight <= 0) { labelHeight = Integer.MAX_VALUE; } int startX = textX < label.getInsets().left ? label.getInsets().left ...
diff --git a/src/main/java/org/candlepin/thumbslug/HttpServerPipelineFactory.java b/src/main/java/org/candlepin/thumbslug/HttpServerPipelineFactory.java index 20ef2cb..0f563d3 100644 --- a/src/main/java/org/candlepin/thumbslug/HttpServerPipelineFactory.java +++ b/src/main/java/org/candlepin/thumbslug/HttpServerPipeline...
true
true
public ChannelPipeline getPipeline() throws Exception { // Create a default pipeline implementation. ChannelPipeline pipeline = pipeline(); if (config.getBoolean("ssl")) { SSLEngine engine = SslContextFactory.getServerContext(config.getProperty("ssl.keystore"), ...
public ChannelPipeline getPipeline() throws Exception { // Create a default pipeline implementation. ChannelPipeline pipeline = pipeline(); if (config.getBoolean("ssl")) { SSLEngine engine = SslContextFactory.getServerContext(config.getProperty("ssl.keystore"), ...
diff --git a/app/models/domain/Tag.java b/app/models/domain/Tag.java index d98543f..f3b6dbf 100644 --- a/app/models/domain/Tag.java +++ b/app/models/domain/Tag.java @@ -1,18 +1,18 @@ package models.domain; /** * User: Knut Haugen <knuthaug@gmail.com> * 2011-09-25 */ public class Tag { private String nam...
true
true
public Tag(int id, String name, String url) { this.id = id; this.name = name; this.url = name; }
public Tag(int id, String name, String url) { this.id = id; this.name = name; this.url = url; }
diff --git a/src/com/ds/avare/instruments/CDI.java b/src/com/ds/avare/instruments/CDI.java index 35c81bf2..0d7bd29b 100644 --- a/src/com/ds/avare/instruments/CDI.java +++ b/src/com/ds/avare/instruments/CDI.java @@ -1,253 +1,253 @@ /* Copyright (c) 2012, Apps4Av Inc. (apps4av.com) All rights reserved. Redistribut...
true
true
public void calcDeviation(GpsParams gpsParams, Destination dest) { // Assume an on-course display mDspOffset = 0; mBackColor = mColorCenter; // If either of these objects are null, there is nothing // we can do if(dest == null || gpsParams == null) { return; } // Get the bearing from the origin...
public void calcDeviation(GpsParams gpsParams, Destination dest) { // Assume an on-course display mDspOffset = 0; mBackColor = mColorCenter; // If either of these objects are null, there is nothing // we can do if(dest == null || gpsParams == null) { return; } // Get the bearing from the origin...
diff --git a/org.eclipse.bpmn2.modeler.core/src/org/eclipse/bpmn2/modeler/core/importer/Bpmn2ModelImport.java b/org.eclipse.bpmn2.modeler.core/src/org/eclipse/bpmn2/modeler/core/importer/Bpmn2ModelImport.java index 552bdbe5..9c0c6ff2 100755 --- a/org.eclipse.bpmn2.modeler.core/src/org/eclipse/bpmn2/modeler/core/importe...
false
true
protected void handleDefinitions(Definitions definitions) { // first we process the DI diagrams and associate them with the process elements List<BPMNDiagram> diagrams = definitions.getDiagrams(); for (BPMNDiagram bpmnDiagram : diagrams) { handleDIBpmnDiagram(bpmnDiagram); } // copied from old DIImp...
protected void handleDefinitions(Definitions definitions) { // first we process the DI diagrams and associate them with the process elements List<BPMNDiagram> diagrams = definitions.getDiagrams(); for (BPMNDiagram bpmnDiagram : diagrams) { handleDIBpmnDiagram(bpmnDiagram); } // copied from old DIImp...
diff --git a/weka/src/main/java/weka/core/KPrototypes_DistanceFunction.java b/weka/src/main/java/weka/core/KPrototypes_DistanceFunction.java index 457d3e3..81a09d4 100644 --- a/weka/src/main/java/weka/core/KPrototypes_DistanceFunction.java +++ b/weka/src/main/java/weka/core/KPrototypes_DistanceFunction.java @@ -1,161 +...
true
true
public double distance(Instance first, Instance second) { double sum_nominal = 0.0; double sum_continuous = 0.0; for(int i = 0; i < first.numAttributes(); i++){ if(first.attribute(i).isNominal()){ if(!first.attribute(i).equals(second.attribute(i)) ) sum_nomina...
public double distance(Instance first, Instance second) { double sum_nominal = 0.0; double sum_continuous = 0.0; for(int i = 0; i < first.numAttributes(); i++){ if(first.attribute(i).isNominal()){ if(!first.attribute(i).equals(second.attribute(i)) ) sum_nomina...
diff --git a/Fanorona/src/team01/Board.java b/Fanorona/src/team01/Board.java index a65fcc5..b441755 100644 --- a/Fanorona/src/team01/Board.java +++ b/Fanorona/src/team01/Board.java @@ -1,74 +1,74 @@ package team01; import java.util.*; public class Board { static final int ROW_SIZE = 5; static final int COL...
false
true
public Board() { board = new ArrayList <Integer>(BOARD_SIZE); nWhite = nBlack = 22; // first 2 rows for (int i = 0; i < 2*ROW_SIZE; i++) { this.setPosition(i, BLACK); } // middle row this.setPosition(18,BLACK); this.setPosition(19,WHITE); this.setPosition(20,BLACK); this.setPosition(21,WHI...
public Board() { board = new ArrayList <Integer>(BOARD_SIZE); nWhite = nBlack = 22; // first 2 rows for (int i = 0; i < 2*COL_SIZE; i++) { this.setPosition(i, BLACK); } // middle row this.setPosition(18,BLACK); this.setPosition(19,WHITE); this.setPosition(20,BLACK); this.setPosition(21,WHI...
diff --git a/tubular-core/src/main/java/org/trancecode/xproc/step/AbstractCompoundStepProcessor.java b/tubular-core/src/main/java/org/trancecode/xproc/step/AbstractCompoundStepProcessor.java index 744d3652..1d6874b9 100644 --- a/tubular-core/src/main/java/org/trancecode/xproc/step/AbstractCompoundStepProcessor.java +++...
true
true
protected Environment runSteps(final Iterable<Step> steps, final Environment environment) { LOG.trace("steps = {}", steps); final Environment initialEnvironment = environment.newChildStepEnvironment(); final Map<Step, Step> stepDependencies = Step.getSubpipelineStepDependencies(steps);...
protected Environment runSteps(final Iterable<Step> steps, final Environment environment) { LOG.trace("steps = {}", steps); final Environment initialEnvironment = environment.newChildStepEnvironment(); final Map<Step, Step> stepDependencies = Step.getSubpipelineStepDependencies(steps);...
diff --git a/TeaLeaf/src/com/tealeaf/EventQueue.java b/TeaLeaf/src/com/tealeaf/EventQueue.java index de6fe96..46db083 100644 --- a/TeaLeaf/src/com/tealeaf/EventQueue.java +++ b/TeaLeaf/src/com/tealeaf/EventQueue.java @@ -1,61 +1,61 @@ package com.tealeaf; import java.util.Queue; import com.tealeaf.event.Event; ...
true
true
public static void dispatchEvents() { String[] e = getEvents(); if (e.length > 256) { String[] batch256 = new String[256]; int ii, len = e.length; for (ii = 0; ii < len; ii += 256) { int batchLength = len - ii; if (batchLength < 256) { break; } System.arraycopy(e, ii, batch256, 0, ...
public static void dispatchEvents() { String[] e = getEvents(); if (e.length > 256) { String[] batch256 = new String[256]; int ii, len = e.length; for (ii = 0; ii < len; ii += 256) { int batchLength = len - ii; if (batchLength < 256) { break; } System.arraycopy(e, ii, batch256, 0, ...
diff --git a/freeplane_ant/src/org/freeplane/ant/FormatTranslation.java b/freeplane_ant/src/org/freeplane/ant/FormatTranslation.java index 505b470b0..9b8e9a005 100644 --- a/freeplane_ant/src/org/freeplane/ant/FormatTranslation.java +++ b/freeplane_ant/src/org/freeplane/ant/FormatTranslation.java @@ -1,309 +1,318 @@ /*...
false
true
ArrayList<String> processLines(final String filename, ArrayList<String> lines) { Collections.sort(lines, KEY_COMPARATOR); ArrayList<String> result = new ArrayList<String>(lines.size()); String lastKey = null; String lastValue = null; for (final String line : lines) { if (line.indexOf('#') == 0 || line.mat...
ArrayList<String> processLines(final String filename, ArrayList<String> lines) { Collections.sort(lines, KEY_COMPARATOR); ArrayList<String> result = new ArrayList<String>(lines.size()); String lastKey = null; String lastValue = null; for (final String line : lines) { if (line.indexOf('#') == 0 || line.mat...
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java index 6560c5d3..cc595387 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher2/LauncherModel.java @@ -1,1397 +1,1397 @@ /* * Copyright (C) 2008 The Android Open Source Project ...
false
true
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
diff --git a/src/java/net/sf/picard/analysis/CollectRnaSeqMetrics.java b/src/java/net/sf/picard/analysis/CollectRnaSeqMetrics.java index b6867eb..5b5929f 100644 --- a/src/java/net/sf/picard/analysis/CollectRnaSeqMetrics.java +++ b/src/java/net/sf/picard/analysis/CollectRnaSeqMetrics.java @@ -1,173 +1,178 @@ /* * The...
false
true
protected void acceptRead(final SAMRecord rec, final ReferenceSequence ref) { if (rec.getReadUnmappedFlag() || rec.getReadFailsVendorQualityCheckFlag() || rec.getNotPrimaryAlignmentFlag()) return; final Interval readInterval = new Interval(rec.getReferenceName(), rec.getAlignmentStart(), rec.getAlig...
protected void acceptRead(final SAMRecord rec, final ReferenceSequence ref) { if (rec.getReadUnmappedFlag() || rec.getReadFailsVendorQualityCheckFlag() || rec.getNotPrimaryAlignmentFlag()) return; final Interval readInterval = new Interval(rec.getReferenceName(), rec.getAlignmentStart(), rec.getAlig...
diff --git a/src/main/java/fi/csc/microarray/client/visualisation/methods/gbrowser/track/SeqBlockTrack.java b/src/main/java/fi/csc/microarray/client/visualisation/methods/gbrowser/track/SeqBlockTrack.java index 213a4793b..1037f337e 100644 --- a/src/main/java/fi/csc/microarray/client/visualisation/methods/gbrowser/track...
true
true
public Collection<Drawable> getDrawables() { Collection<Drawable> drawables = getEmptyDrawCollection(); occupiedSpace.clear(); // If SNP highlight mode is on, we need reference sequence data char[] refSeq = highlightSNP ? getReferenceArray(refReads, view, strand) : null; // Main loop: Iterate over RegionC...
public Collection<Drawable> getDrawables() { Collection<Drawable> drawables = getEmptyDrawCollection(); occupiedSpace.clear(); // If SNP highlight mode is on, we need reference sequence data char[] refSeq = highlightSNP ? getReferenceArray(refReads, view, strand) : null; // Main loop: Iterate over RegionC...
diff --git a/tools/host/src/com/android/cts/CtsTestResult.java b/tools/host/src/com/android/cts/CtsTestResult.java index 0aea74b3..851b07d3 100644 --- a/tools/host/src/com/android/cts/CtsTestResult.java +++ b/tools/host/src/com/android/cts/CtsTestResult.java @@ -1,203 +1,209 @@ /* * Copyright (C) 2009 The Android Op...
false
true
public void setResult(TestResult testResult) { int resCode = CODE_PASS; String failedMessage = null; String stackTrace = null; if ((testResult != null) && (testResult.failureCount() > 0)) { resCode = CODE_FAIL; Enumeration<TestFailure> failures = testResult.fa...
public void setResult(TestResult testResult) { int resCode = CODE_PASS; String failedMessage = null; String stackTrace = null; if ((testResult != null) && (testResult.failureCount() > 0 || testResult.errorCount() > 0)) { resCode = CODE_FAIL; Enumeration<TestFa...
diff --git a/tests/tests/os/src/android/os/cts/BuildVersionTest.java b/tests/tests/os/src/android/os/cts/BuildVersionTest.java index b0926e2d..fbde39ee 100644 --- a/tests/tests/os/src/android/os/cts/BuildVersionTest.java +++ b/tests/tests/os/src/android/os/cts/BuildVersionTest.java @@ -1,67 +1,68 @@ /* * Copyright (...
true
true
public void testBuildFingerprint() { final String fingerprint = Build.FINGERPRINT; Log.i(LOG_TAG, String.format("Testing fingerprint %s", fingerprint)); assertEquals("Build fingerprint must not include whitespace", -1, fingerprint.indexOf(' ')); final String[] finger...
public void testBuildFingerprint() { final String fingerprint = Build.FINGERPRINT; Log.i(LOG_TAG, String.format("Testing fingerprint %s", fingerprint)); assertEquals("Build fingerprint must not include whitespace", -1, fingerprint.indexOf(' ')); final String[] finger...
diff --git a/src/org/odk/collect/android/tasks/DownloadFormListTask.java b/src/org/odk/collect/android/tasks/DownloadFormListTask.java index 2a42ed8..95da20f 100644 --- a/src/org/odk/collect/android/tasks/DownloadFormListTask.java +++ b/src/org/odk/collect/android/tasks/DownloadFormListTask.java @@ -1,296 +1,296 @@ /*...
true
true
protected HashMap<String, FormDetails> doInBackground(Void... values) { SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(Collect.getInstance().getBaseContext()); String downloadListUrl = settings.getString(PreferencesActivity.KEY_SERVER_URL, ...
protected HashMap<String, FormDetails> doInBackground(Void... values) { SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(Collect.getInstance().getBaseContext()); String downloadListUrl = settings.getString(PreferencesActivity.KEY_SERVER_URL, ...
diff --git a/sensor/src/org/concord/sensor/device/impl/JavaDeviceFactory.java b/sensor/src/org/concord/sensor/device/impl/JavaDeviceFactory.java index 0d51ffc..d466e89 100644 --- a/sensor/src/org/concord/sensor/device/impl/JavaDeviceFactory.java +++ b/sensor/src/org/concord/sensor/device/impl/JavaDeviceFactory.java @@ ...
true
true
public SensorDevice createDevice(DeviceConfig config) { int id = config.getDeviceId(); String configStr = config.getConfigString(); String deviceConfigId = "" + id + ":" + configStr; SensorDevice existingDevice = (SensorDevice)deviceTable.get(deviceConfigId); if(existingDevice != null) { return exist...
public SensorDevice createDevice(DeviceConfig config) { int id = config.getDeviceId(); String configStr = config.getConfigString(); String deviceConfigId = "" + id + ":" + configStr; SensorDevice existingDevice = (SensorDevice)deviceTable.get(deviceConfigId); if(existingDevice != null) { return exist...
diff --git a/src/com/zygon/trade/Service.java b/src/com/zygon/trade/Service.java index e6e035a..38b70e8 100755 --- a/src/com/zygon/trade/Service.java +++ b/src/com/zygon/trade/Service.java @@ -1,112 +1,112 @@ /** * */ package com.zygon.trade; import java.io.File; import java.sql.SQLException; import java....
true
true
public void init(DaemonContext dc) throws DaemonInitException, Exception { log.info(new Date(System.currentTimeMillis())+": Initializing"); if (this.kernel != null) { throw new IllegalStateException("Kernel is already initialized"); } // TODO: pass in ro...
public void init(DaemonContext dc) throws DaemonInitException, Exception { log.info(new Date(System.currentTimeMillis())+": Initializing"); if (this.kernel != null) { throw new IllegalStateException("Kernel is already initialized"); } // TODO: pass in ro...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/ScheduleDatePicker.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/ScheduleDatePicker.java index 5def8e0dd..263dca219 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/ScheduleDatePick...
false
true
private void initialize(int style) { GridLayout gridLayout = new GridLayout(3, false); gridLayout.horizontalSpacing = 0; gridLayout.verticalSpacing = 0; gridLayout.marginWidth = 0; gridLayout.marginHeight = 0; this.setLayout(gridLayout); scheduledDateText = new Text(this, style); scheduledDateText.se...
private void initialize(int style) { GridLayout gridLayout = new GridLayout(3, false); gridLayout.horizontalSpacing = 0; gridLayout.verticalSpacing = 0; gridLayout.marginWidth = 0; gridLayout.marginHeight = 0; this.setLayout(gridLayout); scheduledDateText = new Text(this, style); scheduledDateText.se...
diff --git a/src/test/org/apache/hadoop/dfs/TestDatanodeBlockScanner.java b/src/test/org/apache/hadoop/dfs/TestDatanodeBlockScanner.java index e2eb59ca4..d547119d0 100644 --- a/src/test/org/apache/hadoop/dfs/TestDatanodeBlockScanner.java +++ b/src/test/org/apache/hadoop/dfs/TestDatanodeBlockScanner.java @@ -1,228 +1,22...
true
true
public void testBlockCorruptionPolicy() throws IOException { Configuration conf = new Configuration(); Random random = new Random(); FileSystem fs = null; DFSClient dfsClient = null; LocatedBlocks blocks = null; int blockCount = 0; MiniDFSCluster cluster = new MiniDFSCluster(conf, 3, true...
public void testBlockCorruptionPolicy() throws IOException { Configuration conf = new Configuration(); Random random = new Random(); FileSystem fs = null; DFSClient dfsClient = null; LocatedBlocks blocks = null; int blockCount = 0; MiniDFSCluster cluster = new MiniDFSCluster(conf, 3, true...
diff --git a/src/main/java/com/jcraft/jzlib/DeflaterOutputStream.java b/src/main/java/com/jcraft/jzlib/DeflaterOutputStream.java index 4c9f0d2..3c18836 100644 --- a/src/main/java/com/jcraft/jzlib/DeflaterOutputStream.java +++ b/src/main/java/com/jcraft/jzlib/DeflaterOutputStream.java @@ -1,181 +1,181 @@ /* -*-mode:jav...
true
true
protected int deflate(int flush) throws IOException { deflater.setOutput(buffer, 0, buffer.length); int err = deflater.deflate(flush); switch(err) { case JZlib.Z_OK: case JZlib.Z_STREAM_END: break; case JZlib.Z_BUF_ERROR: if(deflater.avail_in<=0 && flush!=JZlib.Z_FINISH){...
protected int deflate(int flush) throws IOException { deflater.setOutput(buffer, 0, buffer.length); int err = deflater.deflate(flush); switch(err) { case JZlib.Z_OK: case JZlib.Z_STREAM_END: break; case JZlib.Z_BUF_ERROR: if(deflater.avail_in<=0 && flush!=JZlib.Z_FINISH){...
diff --git a/src/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/org/bukkit/craftbukkit/entity/CraftPlayer.java index c7beec1..9fd1751 100644 --- a/src/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -1,1097 +1,1098 @@ package org.bukkit.craftbukkit.entit...
true
true
public boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause) { net.minecraft.entity.player.EntityPlayerMP/*was:EntityPlayer*/ entity = getHandle(); if (getHealth() == 0 || entity.isDead/*was:dead*/) { return false; } if (entity.playerNetServerHandler...
public boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause) { net.minecraft.entity.player.EntityPlayerMP/*was:EntityPlayer*/ entity = getHandle(); if (getHealth() == 0 || entity.isDead/*was:dead*/) { return false; } if (entity.playerNetServerHandler...
diff --git a/src/main/java/com/tehbeard/map/schematic/bukkit/BukkitSchematicLoader.java b/src/main/java/com/tehbeard/map/schematic/bukkit/BukkitSchematicLoader.java index 38175a3..3af303e 100644 --- a/src/main/java/com/tehbeard/map/schematic/bukkit/BukkitSchematicLoader.java +++ b/src/main/java/com/tehbeard/map/schemat...
true
true
public void paste(Location location,int rotations,byte[] layers){ WorldVector l = new WorldVector(location.getBlockX(),location.getBlockY(),location.getBlockZ(),location.getWorld().getName()); addBlocks(l,0,rotations,layers); addBlocks(l,1,rotations,layers); addBlocks(l,2,ro...
public void paste(Location location,int rotations,byte[] layers){ WorldVector l = new WorldVector(location.getBlockX(),location.getBlockY(),location.getBlockZ(),location.getWorld().getName()); addBlocks(l,0,rotations,layers); addBlocks(l,1,rotations,layers); addBlocks(l,2,ro...
diff --git a/src/org/geworkbench/bison/datastructure/bioobjects/markers/CSGeneMarker.java b/src/org/geworkbench/bison/datastructure/bioobjects/markers/CSGeneMarker.java index 71084ce2..50fae0d4 100755 --- a/src/org/geworkbench/bison/datastructure/bioobjects/markers/CSGeneMarker.java +++ b/src/org/geworkbench/bison/data...
false
true
private String getCanonicalLabel() { String text0 = ""; try { String[] descriptions = AnnotationParser.getInfo(label, AnnotationParser.DESCRIPTION); String text1 = ""; if (descriptions != null && descriptions.length > 0) { text1 = descriptions[0]; } text0 = label + ": (" + getShortName() +...
private String getCanonicalLabel() { String text0 = ""; String[] descriptions = AnnotationParser.getInfo(label, AnnotationParser.DESCRIPTION); String text1 = ""; if (descriptions != null && descriptions.length > 0) { text1 = descriptions[0]; } String[] geneSymbol = AnnotationParser.getInfo(label, ...
diff --git a/XServer/src/au/com/darkside/XServer/Drawable.java b/XServer/src/au/com/darkside/XServer/Drawable.java index 6dae91e..cef7e46 100644 --- a/XServer/src/au/com/darkside/XServer/Drawable.java +++ b/XServer/src/au/com/darkside/XServer/Drawable.java @@ -1,968 +1,968 @@ /** * This class implements an X drawabl...
true
true
public boolean processGCRequest ( XServer xServer, InputOutput io, int id, GContext gc, int sequenceNumber, byte opcode, int arg, int bytesRemaining ) throws IOException { Paint paint = gc.getPaint (); boolean changed = false; int originalColor = paint.getColor (); _...
public boolean processGCRequest ( XServer xServer, InputOutput io, int id, GContext gc, int sequenceNumber, byte opcode, int arg, int bytesRemaining ) throws IOException { Paint paint = gc.getPaint (); boolean changed = false; int originalColor = paint.getColor (); _...
diff --git a/src/controller/Main.java b/src/controller/Main.java index 13a0780..05f1af9 100644 --- a/src/controller/Main.java +++ b/src/controller/Main.java @@ -1,47 +1,48 @@ /* * Copyright (C) 2012 Andreas Halle * * This file is part of pplex. * * pplex is free software; you can redistribute it and/or modif...
true
true
public static void main(String[] args) { if (args.length > 0 && args[0].equals("-nogui")) { Shell shell = new Shell(); shell.setWelcomeMsg(Data.FWELCOME); shell.addCommand(new Conditions()); shell.addCommand(new Exit()); shell.addCommand(new Format...
public static void main(String[] args) { if (args.length > 0 && args[0].equals("-nogui")) { Shell shell = new Shell(); shell.setWelcomeMsg(Data.FWELCOME); shell.setPrompt("pplex"); shell.addCommand(new Conditions()); shell.addCommand(new Exit()); ...
diff --git a/src/zombiefu/human/Shop.java b/src/zombiefu/human/Shop.java index d37e510..2f8047d 100644 --- a/src/zombiefu/human/Shop.java +++ b/src/zombiefu/human/Shop.java @@ -1,33 +1,35 @@ package zombiefu.human; import zombiefu.util.ZombieGame; import jade.util.datatype.ColoredChar; import java.util.HashMap; ...
true
true
public void talkToPlayer(Player pl) { ZombieGame.newMessage("Willkommen im Mensa-Shop. Hier unser Angebot:"); ItemBuilder item = ZombieGame.askPlayerForItemToBuy(items); try { pl.pay(items.get(item)); pl.obtainItem(item.buildItem()); ZombieGame.newMessage(...
public void talkToPlayer(Player pl) { ZombieGame.newMessage("Willkommen im Mensa-Shop. Hier unser Angebot:"); ItemBuilder item = ZombieGame.askPlayerForItemToBuy(items); try { if (item!=null){ pl.pay(items.get(item)); pl.obtainItem(item.buildItem()...
diff --git a/java/helpdesk/mvc/Controller/TController.java b/java/helpdesk/mvc/Controller/TController.java index 6659923..841ef3a 100644 --- a/java/helpdesk/mvc/Controller/TController.java +++ b/java/helpdesk/mvc/Controller/TController.java @@ -1,291 +1,285 @@ package mvc.Controller; import java.awt.event.ActionEve...
false
true
public void actionPerformed(ActionEvent e) { try { //set timestamp for "create tickets" and "update tickets" Timestamp currentTimestamp = new java.sql.Timestamp(Calendar.getInstance().getTime().getTime()); //send Error frame if one of these textfield are empty ...
public void actionPerformed(ActionEvent e) { try { //set timestamp for "create tickets" and "update tickets" Timestamp currentTimestamp = new java.sql.Timestamp(Calendar.getInstance().getTime().getTime()); //send Error frame if one of these textfield are empty ...
diff --git a/bupro/src/main/java/cz/cvut/fel/bupro/controller/UserController.java b/bupro/src/main/java/cz/cvut/fel/bupro/controller/UserController.java index a8e6de1..5de98b9 100644 --- a/bupro/src/main/java/cz/cvut/fel/bupro/controller/UserController.java +++ b/bupro/src/main/java/cz/cvut/fel/bupro/controller/UserCon...
true
true
public String showUserDetail(Model model, Locale locale, @PathVariable Long id) { log.trace("UserController.showUserDetail()"); User user = userService.getUser(id); model.addAttribute("user", user); return "user-view"; }
public String showUserDetail(Model model, Locale locale, @PathVariable Long id) { log.trace("UserController.showUserDetail()"); User user = userService.getUser(id); user.getComments().size(); //force fetch model.addAttribute("user", user); return "user-view"; }
diff --git a/src/com/vividsolutions/jump/workbench/ui/plugin/analysis/UnionPlugIn.java b/src/com/vividsolutions/jump/workbench/ui/plugin/analysis/UnionPlugIn.java index d0280bd8..0991b4da 100644 --- a/src/com/vividsolutions/jump/workbench/ui/plugin/analysis/UnionPlugIn.java +++ b/src/com/vividsolutions/jump/workbench/u...
true
true
private FeatureCollection progressiveUnion(TaskMonitor monitor, FeatureCollection fc) { monitor.allowCancellationRequests(); //monitor.report(I18N.get("ui.plugin.analysis.UnionPlugIn.computing-union")); List unionGeometryList = new ArrayList(); for (Iterator i = fc.iterator(...
private FeatureCollection progressiveUnion(TaskMonitor monitor, FeatureCollection fc) { monitor.allowCancellationRequests(); //monitor.report(I18N.get("ui.plugin.analysis.UnionPlugIn.computing-union")); List unionGeometryList = new ArrayList(); for (Iterator i = fc.iterator(...
diff --git a/src/examples/mainTester.java b/src/examples/mainTester.java index 77a9297..2ff2b0f 100644 --- a/src/examples/mainTester.java +++ b/src/examples/mainTester.java @@ -1,15 +1,16 @@ package examples; import types.FlowData; import engine.Engine; public class mainTester { /** * @param args */ ...
true
true
public static void main(String[] args) { Engine engine = new Engine("src\\generated\\flow.xml"); FlowData data = engine.run(); }
public static void main(String[] args) { Engine engine = new Engine("src\\generated\\flow.xml"); FlowData data = engine.run(); System.out.println(data.getData().toString()); }
diff --git a/src/quizweb/database/DBConnection.java b/src/quizweb/database/DBConnection.java index a444d43..4065f08 100644 --- a/src/quizweb/database/DBConnection.java +++ b/src/quizweb/database/DBConnection.java @@ -1,54 +1,54 @@ package quizweb.database; import java.sql.*; public class DBConnection { static St...
true
true
private static Connection initConnection() { Connection thisCon = null; try { Class.forName("com.mysql.jdbc.Driver"); thisCon = DriverManager.getConnection("jdbc:mysql://" + server, account ,password); Statement stmt = con.createStatement(); stmt.executeQuery("USE " + database); } catch (SQLException...
private static Connection initConnection() { Connection thisCon = null; try { Class.forName("com.mysql.jdbc.Driver"); thisCon = DriverManager.getConnection("jdbc:mysql://" + server, account ,password); Statement stmt = thisCon.createStatement(); stmt.executeQuery("USE " + database); } catch (SQLExcep...
diff --git a/javanet/gnu/cajo/invoke/Remote.java b/javanet/gnu/cajo/invoke/Remote.java index c6695284..34177d13 100644 --- a/javanet/gnu/cajo/invoke/Remote.java +++ b/javanet/gnu/cajo/invoke/Remote.java @@ -1,624 +1,624 @@ package gnu.cajo.invoke; import java.io.*; import java.net.*; import java.rmi.*; import ja...
true
true
public static Method findBestMethod( Object item, String method, Class[] args) { LinkedList matchList = new LinkedList(); Method[] ms = item.getClass().getMethods(); // Find any matching methods in the item and put them in a list: list: for(int i = 0; i < ms.length; i++) { if (...
public static Method findBestMethod( Object item, String method, Class[] args) { LinkedList matchList = new LinkedList(); Method[] ms = item.getClass().getMethods(); // Find any matching methods in the item and put them in a list: list: for(int i = 0; i < ms.length; i++) { if (...
diff --git a/src/main/java/org/jbei/ice/lib/parsers/IceGenbankParser.java b/src/main/java/org/jbei/ice/lib/parsers/IceGenbankParser.java index 7601b164a..b7446b885 100644 --- a/src/main/java/org/jbei/ice/lib/parsers/IceGenbankParser.java +++ b/src/main/java/org/jbei/ice/lib/parsers/IceGenbankParser.java @@ -1,832 +1,83...
true
true
private FeaturesTag parseFeaturesTag(Tag tag) throws InvalidFormatParserException { FeaturesTag result = new FeaturesTag(); result.setKey(tag.getKey()); result.setRawBody(tag.getRawBody()); int apparentFeatureKeyColumn = 0; String[] lines = tag.getRawBody().split("\n"); ...
private FeaturesTag parseFeaturesTag(Tag tag) throws InvalidFormatParserException { FeaturesTag result = new FeaturesTag(); result.setKey(tag.getKey()); result.setRawBody(tag.getRawBody()); int apparentFeatureKeyColumn = 0; String[] lines = tag.getRawBody().split("\n"); ...
diff --git a/trunk/workflow-processes-core/src/main/java/gov/loc/repository/workflow/decisionhandlers/CheckPackageExistsDecisionHandler.java b/trunk/workflow-processes-core/src/main/java/gov/loc/repository/workflow/decisionhandlers/CheckPackageExistsDecisionHandler.java index 9755fc55..bcd2863a 100644 --- a/trunk/workf...
false
true
protected String decide() throws Exception { Package packge = this.dao.findPackage(Package.class, this.repositoryId, this.packageId); if (packge == null || (packge.getProcessInstanceId() != null && packge.getProcessInstanceId() == this.executionContext.getProcessInstance().getId())) { return TRANSITION_CONTI...
protected String decide() throws Exception { Package packge = this.dao.findPackage(Package.class, this.repositoryId, this.packageId); boolean b = true; String packageId = packge.getPackageId(); String normalizedPackageId = packageId.replaceAll("_\\d{8}_", "_"); if (packageId.equals(normalizedPackageId)) { ...
diff --git a/src/hello/FizzBuzz.java b/src/hello/FizzBuzz.java index b665795..f84a719 100644 --- a/src/hello/FizzBuzz.java +++ b/src/hello/FizzBuzz.java @@ -1,21 +1,21 @@ package hello; public class FizzBuzz { public static String fizzbuzz(int i) { String fb = fizz(i) + buzz(i); if (fb.isEmpty()) return S...
true
true
public static String fizzbuzz(int i) { String fb = fizz(i) + buzz(i); if (fb.isEmpty()) return String.valueOf(i); else return fb; }
public static String fizzbuzz(int i) { String fb = fizz(i) + buzz(i); if (fb.isEmpty()) return String.valueOf(i); return fb; }
diff --git a/test/org/jruby/test/TestRbConfigLibrary.java b/test/org/jruby/test/TestRbConfigLibrary.java index 5c998644b..5d98a8a56 100644 --- a/test/org/jruby/test/TestRbConfigLibrary.java +++ b/test/org/jruby/test/TestRbConfigLibrary.java @@ -1,22 +1,22 @@ package org.jruby.test; import org.jruby.Ruby; public ...
true
true
public void testConfigTargetOs() throws Exception { String script = "require 'rbconfig'\n" + "p Config::CONFIG['target_os']"; if (System.getProperty("os.name").compareTo("Mac OS X") == 0) { assertTrue(eval(script).contains("darwin")); } }
public void testConfigTargetOs() throws Exception { String script = "require 'rbconfig'\n" + "p Config::CONFIG['target_os']"; if (System.getProperty("os.name").compareTo("Mac OS X") == 0) { assertTrue(eval(script).indexOf("darwin") >= 0); } }
diff --git a/src/powercrystals/minefactoryreloaded/net/ClientProxy.java b/src/powercrystals/minefactoryreloaded/net/ClientProxy.java index 07cb1fc5..57da6991 100644 --- a/src/powercrystals/minefactoryreloaded/net/ClientProxy.java +++ b/src/powercrystals/minefactoryreloaded/net/ClientProxy.java @@ -1,36 +1,38 @@ packag...
true
true
public void onPostTextureStitch(TextureStitchEvent.Post e) { LiquidDictionary.getCanonicalLiquid("milk").setRenderingIcon(MineFactoryReloadedCore.milkLiquid.getBlockTextureFromSide(1)).setTextureSheet("/terrain.png"); LiquidDictionary.getCanonicalLiquid("sludge").setRenderingIcon(MineFactoryReloadedCore.sludgeLiq...
public void onPostTextureStitch(TextureStitchEvent.Post e) { LiquidDictionary.getCanonicalLiquid("milk").setRenderingIcon(MineFactoryReloadedCore.milkLiquid.getBlockTextureFromSide(1)).setTextureSheet("/terrain.png"); LiquidDictionary.getCanonicalLiquid("sludge").setRenderingIcon(MineFactoryReloadedCore.sludgeLiq...
diff --git a/application/app/controllers/user/ResetPasswordController.java b/application/app/controllers/user/ResetPasswordController.java index 01933c57..a6abe026 100644 --- a/application/app/controllers/user/ResetPasswordController.java +++ b/application/app/controllers/user/ResetPasswordController.java @@ -1,246 +1,...
true
true
public static Result forgotPwdSendMail() throws InvalidKeySpecException, NoSuchAlgorithmException { List<Link> breadcrumbs = new ArrayList<>(); breadcrumbs.add(new Link("Home", "/")); breadcrumbs.add(new Link(EMessages.get("forgot_pwd.forgot_pwd"), "/forgotPwd")); Form<ForgotPwd> f...
public static Result forgotPwdSendMail() throws InvalidKeySpecException, NoSuchAlgorithmException { List<Link> breadcrumbs = new ArrayList<>(); breadcrumbs.add(new Link("Home", "/")); breadcrumbs.add(new Link(EMessages.get("forgot_pwd.forgot_pwd"), "/forgotPwd")); Form<ForgotPwd> f...
diff --git a/src/net/brainvitamins/kerberos/KerberosCallbackArray.java b/src/net/brainvitamins/kerberos/KerberosCallbackArray.java index 042fedf..701ff37 100644 --- a/src/net/brainvitamins/kerberos/KerberosCallbackArray.java +++ b/src/net/brainvitamins/kerberos/KerberosCallbackArray.java @@ -1,47 +1,47 @@ package net....
true
true
public KerberosCallbackArray(Callback[] callbacks, KinitOperation source) { super(); this.callbacks = callbacks; this.source = source; }
public KerberosCallbackArray(Callback[] callbacks, AuthenticationDialogHandler source) { super(); this.callbacks = callbacks; this.source = source; }
diff --git a/src/main/java/org/iplantc/de/client/notifications/views/NotificationListView.java b/src/main/java/org/iplantc/de/client/notifications/views/NotificationListView.java index b2c12155..e85b5848 100644 --- a/src/main/java/org/iplantc/de/client/notifications/views/NotificationListView.java +++ b/src/main/java/o...
true
true
public Widget asWidget() { VerticalLayoutContainer container = new VerticalLayoutContainer(); container.setBorders(false); store = new ListStore<NotificationMessage>(kp); view = new ListView<NotificationMessage, NotificationMessage>(store, new IdentityValueProvider<N...
public Widget asWidget() { VerticalLayoutContainer container = new VerticalLayoutContainer(); container.setBorders(false); store = new ListStore<NotificationMessage>(kp); view = new ListView<NotificationMessage, NotificationMessage>(store, new IdentityValueProvider<N...
diff --git a/editor/src/main/java/kkckkc/jsourcepad/util/ui/KeyStrokeUtils.java b/editor/src/main/java/kkckkc/jsourcepad/util/ui/KeyStrokeUtils.java index 45a3275..0015c38 100644 --- a/editor/src/main/java/kkckkc/jsourcepad/util/ui/KeyStrokeUtils.java +++ b/editor/src/main/java/kkckkc/jsourcepad/util/ui/KeyStrokeUtils....
true
true
public static boolean matches(KeyStroke keyStroke, KeyEvent ks) { if (keyStroke == null) return false; char keyChar = ks.getKeyChar(); int keyCode = ks.getKeyCode(); if (keyChar < 0x20) { if (keyChar != keyCode) { keyChar += 0x40; if ((keyChar >= 'A') && (keyChar <= 'Z')) { keyChar ...
public static boolean matches(KeyStroke keyStroke, KeyEvent ks) { if (keyStroke == null) return false; char keyChar = ks.getKeyChar(); int keyCode = ks.getKeyCode(); if (keyChar < 0x20) { if (keyChar != keyCode) { keyChar += 0x40; if ((keyChar >= 'A') && (keyChar <= 'Z')) { keyChar ...
diff --git a/lucene/src/java/org/apache/lucene/search/FieldDoc.java b/lucene/src/java/org/apache/lucene/search/FieldDoc.java index d45ff2687..faf54a079 100644 --- a/lucene/src/java/org/apache/lucene/search/FieldDoc.java +++ b/lucene/src/java/org/apache/lucene/search/FieldDoc.java @@ -1,75 +1,75 @@ package org.apache.l...
true
true
public String toString() { // super.toString returns the doc and score information, so just add the // fields information StringBuilder sb = new StringBuilder(super.toString()); sb.append("["); for (int i = 0; i < fields.length; i++) { sb.append(fields[i]).append(", "); ...
public String toString() { // super.toString returns the doc and score information, so just add the // fields information StringBuilder sb = new StringBuilder(super.toString()); sb.append("["); for (int i = 0; i < fields.length; i++) { sb.append(fields[i]).append(", "); ...
diff --git a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/modes/commandline/CommandLineParser.java b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/modes/commandline/CommandLineParser.java index 9f87dff7..504a4c3a 100644 --- a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/mo...
true
true
public void parseAndExecute(String first, String command) { try { // if the command is a number, jump to the given line int line = Integer.parseInt(command); new MotionCommand(GoToLineMotion.FIRST_LINE).execute(editor, line); return; } catch (NumberFor...
public void parseAndExecute(String first, String command) { try { // if the command is a number, jump to the given line int line = Integer.parseInt(command); new MotionCommand(GoToLineMotion.FIRST_LINE).execute(editor, line); return; } catch (NumberFor...
diff --git a/src/net/milkbowl/combatevents/CombatPlayer.java b/src/net/milkbowl/combatevents/CombatPlayer.java index 1400d09..af61f82 100644 --- a/src/net/milkbowl/combatevents/CombatPlayer.java +++ b/src/net/milkbowl/combatevents/CombatPlayer.java @@ -1,81 +1,82 @@ package net.milkbowl.combatevents; import java.ut...
false
true
public CombatPlayer(Player player, CombatReason reason, Entity entity, CombatEventsCore plugin) { this.player = player; this.lastLocation = player.getLocation(); this.inventory = player.getInventory().getContents(); reasons.put(entity, reason); //if we create a new object always force the player into combat ...
public CombatPlayer(Player player, CombatReason reason, Entity entity, CombatEventsCore plugin) { this.player = player; this.lastLocation = player.getLocation(); this.inventory = player.getInventory().getContents(); reasons.put(entity, reason); CombatReason[] combatReasons = new CombatReason[] {reason}; //...
diff --git a/TargetClassification/src/featureselection/MultipleForestRunAndTest.java b/TargetClassification/src/featureselection/MultipleForestRunAndTest.java index 5dbd12b..281e5b6 100644 --- a/TargetClassification/src/featureselection/MultipleForestRunAndTest.java +++ b/TargetClassification/src/featureselection/Multi...
true
true
static void forestTraining(Map<String, Map<String, Double>> confusionMatrix, Map<String, Double> weights, TreeGrowthControl ctrl, String inputFile, List<Long> seeds, int repetitions, String negClass, String posClass, String resultsLocation, String mccResultsLocation, int analysisBeingRun) { double cumulativeO...
static void forestTraining(Map<String, Map<String, Double>> confusionMatrix, Map<String, Double> weights, TreeGrowthControl ctrl, String inputFile, List<Long> seeds, int repetitions, String negClass, String posClass, String resultsLocation, String mccResultsLocation, int analysisBeingRun) { double cumulativeO...
diff --git a/crescent_core_web/src/main/java/com/tistory/devyongsik/admin/MorphServiceImpl.java b/crescent_core_web/src/main/java/com/tistory/devyongsik/admin/MorphServiceImpl.java index 6f0715c..47ea1a0 100644 --- a/crescent_core_web/src/main/java/com/tistory/devyongsik/admin/MorphServiceImpl.java +++ b/crescent_core_...
true
true
public List<MorphToken> getTokens(String keyword, boolean isIndexingMode, String collectionName) throws IOException { StringReader reader = new StringReader(keyword); CrescentCollection crescentCollection = collectionHandler.getCrescentCollections().getCrescentCollection(collectionName); Analyzer analyzer = n...
public List<MorphToken> getTokens(String keyword, boolean isIndexingMode, String collectionName) throws IOException { StringReader reader = new StringReader(keyword); CrescentCollection crescentCollection = collectionHandler.getCrescentCollections().getCrescentCollection(collectionName); Analyzer analyzer = n...
diff --git a/loci/formats/in/TCSReader.java b/loci/formats/in/TCSReader.java index a6545c990..554665dfd 100644 --- a/loci/formats/in/TCSReader.java +++ b/loci/formats/in/TCSReader.java @@ -1,627 +1,628 @@ // // TCSReader.java // /* LOCI Bio-Formats package for reading and converting biological file formats. Cop...
true
true
protected void initFile(String id) throws FormatException, IOException { if (debug) debug("TCSReader.initFile(" + id + ")"); String lname = id.toLowerCase(); if (lname.endsWith("tiff") || lname.endsWith("tif")) { // find the associated XML file, if it exists Location l = new Location(id).getA...
protected void initFile(String id) throws FormatException, IOException { if (debug) debug("TCSReader.initFile(" + id + ")"); String lname = id.toLowerCase(); if (lname.endsWith("tiff") || lname.endsWith("tif")) { // find the associated XML file, if it exists Location l = new Location(id).getA...
diff --git a/src/play/modules/jobs/PlayJobsService.java b/src/play/modules/jobs/PlayJobsService.java index e3b9b85..e835e3d 100644 --- a/src/play/modules/jobs/PlayJobsService.java +++ b/src/play/modules/jobs/PlayJobsService.java @@ -1,161 +1,161 @@ /** * Copyright 2011 The Apache Software Foundation * * License...
true
true
public void triggerJob(String jobClass, Integer instances) { // Jobs Plugin Play.plugin(JobsPlugin.class); // Check Job Class if (StringUtils.isBlank(jobClass)) { throw new RuntimeException("Invalid Job Class!"); } // Check Number of Instances if (instances == null) { instances = 1; } if (ins...
public void triggerJob(String jobClass, Integer instances) { // Jobs Plugin Play.plugin(JobsPlugin.class); // Check Job Class if (StringUtils.isBlank(jobClass)) { throw new RuntimeException("Invalid Job Class!"); } // Check Number of Instances if (instances == null) { instances = 1; } if (ins...
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java index 13dc3a82..cbb336f9 100644 --- a/src/com/android/camera/Camera.java +++ b/src/com/android/camera/Camera.java @@ -1,2532 +1,2532 @@ /* * Copyright (C) 2007 The Android Open Source Project * Copyright (c) 2009, Code Aurora Foru...
true
true
private void updateCameraParametersPreference() { // Set picture size. String pictureSize = mPreferences.getString( CameraSettings.KEY_PICTURE_SIZE, null); if (pictureSize == null) { CameraSettings.initialCameraPictureSize(this, mParameters); } else { ...
private void updateCameraParametersPreference() { // Set picture size. String pictureSize = mPreferences.getString( CameraSettings.KEY_PICTURE_SIZE, null); if (pictureSize == null) { CameraSettings.initialCameraPictureSize(this, mParameters); } else { ...
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/GenerateDiffFileWizard.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/GenerateDiffFileWizard.java index 678a0bef6..c79d54bb6 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/...
true
true
public void createControl(Composite parent) { Composite composite= new Composite(parent, SWT.NULL); GridLayout layout= new GridLayout(); composite.setLayout(layout); composite.setLayoutData(new GridData()); setControl(composite); // set F1 help PlatformUI.getWorkbench().getHelpSystem().setHelp(c...
public void createControl(Composite parent) { Composite composite= new Composite(parent, SWT.NULL); GridLayout layout= new GridLayout(); composite.setLayout(layout); composite.setLayoutData(new GridData()); setControl(composite); // set F1 help PlatformUI.getWorkbench().getHelpSystem().setHelp(c...
diff --git a/src/paulscode/android/mupen64plusae/util/AssetExtractor.java b/src/paulscode/android/mupen64plusae/util/AssetExtractor.java index f295dcdf..a0b23f10 100644 --- a/src/paulscode/android/mupen64plusae/util/AssetExtractor.java +++ b/src/paulscode/android/mupen64plusae/util/AssetExtractor.java @@ -1,142 +1,142 ...
true
true
public static boolean extractAssets( AssetManager assetManager, String srcPath, String dstPath, OnExtractionProgressListener onProgress ) { boolean result = true; if( srcPath.startsWith( "/" ) ) srcPath = srcPath.substring( 1 ); String[] srcSubPa...
public static boolean extractAssets( AssetManager assetManager, String srcPath, String dstPath, OnExtractionProgressListener onProgress ) { boolean result = true; if( srcPath.startsWith( "/" ) ) srcPath = srcPath.substring( 1 ); String[] srcSubPa...
diff --git a/NetBeansProjects/LoginScreen/src/loginscreen/StartupScreen.java b/NetBeansProjects/LoginScreen/src/loginscreen/StartupScreen.java index 51658a5..7dfbd56 100644 --- a/NetBeansProjects/LoginScreen/src/loginscreen/StartupScreen.java +++ b/NetBeansProjects/LoginScreen/src/loginscreen/StartupScreen.java @@ -1,4...
true
true
private void initComponents() { jPanel7 = new javax.swing.JPanel(); jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel1 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jPanel6 = new javax.swing.JPanel(); jPanel13 = new javax.swing.JPanel()...
private void initComponents() { jPanel7 = new javax.swing.JPanel(); jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel1 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jPanel6 = new javax.swing.JPanel(); jPanel13 = new javax.swing.JPanel()...
diff --git a/src/main/java/org/infoscoop/request/OAuthAuthenticator.java b/src/main/java/org/infoscoop/request/OAuthAuthenticator.java index 2cd9e312..9d7e878d 100644 --- a/src/main/java/org/infoscoop/request/OAuthAuthenticator.java +++ b/src/main/java/org/infoscoop/request/OAuthAuthenticator.java @@ -1,206 +1,206 @@ ...
true
true
protected OAuthConsumer newConsumer(String name, ProxyRequest.OAuthConfig oauthConfig) throws ProxyAuthenticationException{ OAuthServiceProvider serviceProvider = new OAuthServiceProvider( oauthConfig.requestTokenURL, oauthConfig.userAuthorizationURL, oauthConfig.accessTokenURL); OAuthConsume...
protected OAuthConsumer newConsumer(String name, ProxyRequest.OAuthConfig oauthConfig) throws ProxyAuthenticationException{ OAuthServiceProvider serviceProvider = new OAuthServiceProvider( oauthConfig.requestTokenURL, oauthConfig.userAuthorizationURL, oauthConfig.accessTokenURL); OAuthConsume...
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/DefaultInformationControl.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/DefaultInformationControl.java index 49f8df867..cd0aeaf59 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/DefaultInformationControl.java +++ b/org.eclipse.jfac...
true
true
public DefaultInformationControl(Shell parent, int shellStyle, int style, IInformationPresenter presenter, String statusFieldText) { GridLayout layout; GridData gd; fShell= new Shell(parent, SWT.NO_FOCUS | SWT.ON_TOP | shellStyle); Display display= fShell.getDisplay(); fShell.setBackground(display.getSystem...
public DefaultInformationControl(Shell parent, int shellStyle, int style, IInformationPresenter presenter, String statusFieldText) { GridLayout layout; GridData gd; fShell= new Shell(parent, SWT.NO_FOCUS | SWT.ON_TOP | shellStyle); Display display= fShell.getDisplay(); fShell.setBackground(display.getSystem...
diff --git a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/net/internal/DataTransferManager.java b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/net/internal/DataTransferManager.java index b34fcdb10..beb1daa0f 100644 --- a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/net/internal/DataTransferManager.java +++ b/de.fu_b...
true
true
public void fileTransferRequest(final FileTransferRequest request) { final TransferDescription transferDescription; try { transferDescription = TransferDescription.fromBase64(request .getDescription()); } catch (IOException e) { ...
public void fileTransferRequest(final FileTransferRequest request) { final TransferDescription transferDescription; try { transferDescription = TransferDescription.fromBase64(request .getDescription()); } catch (IOException e) { ...
diff --git a/src/main/java/uk/ac/ebi/fgpt/sampletab/sra/ENASRACron.java b/src/main/java/uk/ac/ebi/fgpt/sampletab/sra/ENASRACron.java index b6d5938c..602eaec7 100644 --- a/src/main/java/uk/ac/ebi/fgpt/sampletab/sra/ENASRACron.java +++ b/src/main/java/uk/ac/ebi/fgpt/sampletab/sra/ENASRACron.java @@ -1,191 +1,192 @@ pack...
true
true
public void doMain(String[] args) { CmdLineParser parser = new CmdLineParser(this); try { // parse the arguments. parser.parseArgument(args); // TODO check for extra arguments? } catch (CmdLineException e) { System.err.println(e.getMessage()); ...
public void doMain(String[] args) { CmdLineParser parser = new CmdLineParser(this); try { // parse the arguments. parser.parseArgument(args); // TODO check for extra arguments? } catch (CmdLineException e) { System.err.println(e.getMessage()); ...
diff --git a/lib/src/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java b/lib/src/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java index 398a4bd..ca07bbc 100644 --- a/lib/src/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java +++ b/lib/src/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java...
true
true
public DaemonTaskResult executeTask(DaemonTask task) { try { ensureVersion(); switch (task.getMethod()) { case Retrieve: // Request all torrents from server JSONArray result = new JSONArray(makeRequest(version > 30000? "/json/torrents": "/json/events")); return new RetrieveTaskSuccessResult(...
public DaemonTaskResult executeTask(DaemonTask task) { try { ensureVersion(); switch (task.getMethod()) { case Retrieve: // Request all torrents from server JSONArray result = new JSONArray(makeRequest(version >= 30000? "/json/torrents": "/json/events")); return new RetrieveTaskSuccessResult...
diff --git a/src/main/java/org/atlasapi/tracking/BuzzMessageQueueProbe.java b/src/main/java/org/atlasapi/tracking/BuzzMessageQueueProbe.java index be3607a02..e7365919b 100644 --- a/src/main/java/org/atlasapi/tracking/BuzzMessageQueueProbe.java +++ b/src/main/java/org/atlasapi/tracking/BuzzMessageQueueProbe.java @@ -1,2...
true
true
public ProbeResult probe() { ProbeResult result = new ProbeResult(title()); result.addInfo("queue size", queue.queueSize() + " messages"); result.addInfo("active threads", queue.queueSize() + " threads"); return result; }
public ProbeResult probe() { ProbeResult result = new ProbeResult(title()); result.addInfo("queue size", queue.queueSize() + " messages"); result.addInfo("active threads", queue.activeThreads() + " threads"); return result; }
diff --git a/xtend.website.generator/xtend-gen/generator/xtend/Index.java b/xtend.website.generator/xtend-gen/generator/xtend/Index.java index 2660b9048..d9d4d0f43 100644 --- a/xtend.website.generator/xtend-gen/generator/xtend/Index.java +++ b/xtend.website.generator/xtend-gen/generator/xtend/Index.java @@ -1,535 +1,53...
true
true
public CharSequence contents() { StringConcatenation _builder = new StringConcatenation(); _builder.append("<!--Container-->"); _builder.newLine(); _builder.newLine(); _builder.append("<div id=\"header_wrapper\">"); _builder.newLine(); _builder.append("\t"); _builder.append("<div class...
public CharSequence contents() { StringConcatenation _builder = new StringConcatenation(); _builder.append("<!--Container-->"); _builder.newLine(); _builder.newLine(); _builder.append("<div id=\"header_wrapper\">"); _builder.newLine(); _builder.append("\t"); _builder.append("<div class...
diff --git a/kundera-tests/src/test/java/com/impetus/kundera/tests/crossdatastore/imdb/TwinAssociation.java b/kundera-tests/src/test/java/com/impetus/kundera/tests/crossdatastore/imdb/TwinAssociation.java index 4a4cdb2cc..f9dc6a39b 100644 --- a/kundera-tests/src/test/java/com/impetus/kundera/tests/crossdatastore/imdb/T...
true
true
protected void tryOperation(String[] ALL_PUs_UNDER_TEST) { try { Metamodel metaModel = null; for (int i = 0; i < ALL_PUs_UNDER_TEST.length; i++) { metaModel = KunderaMetadata.INSTANCE.getApplicationMetadata().getMetamodel(ALL_PUs_UNDER_TEST[i])...
protected void tryOperation(String[] ALL_PUs_UNDER_TEST) { try { Metamodel metaModel = null; for (int i = 0; i < ALL_PUs_UNDER_TEST.length; i++) { metaModel = KunderaMetadata.INSTANCE.getApplicationMetadata().getMetamodel(ALL_PUs_UNDER_TEST[i])...
diff --git a/src/rapidshare/cz/vity/freerapid/plugins/services/rapidshare/RapidShareRunner.java b/src/rapidshare/cz/vity/freerapid/plugins/services/rapidshare/RapidShareRunner.java index bd6187db..0fe98d47 100644 --- a/src/rapidshare/cz/vity/freerapid/plugins/services/rapidshare/RapidShareRunner.java +++ b/src/rapidsha...
true
true
public void run(HttpFileDownloader downloader) throws Exception { super.run(downloader); final GetMethod getMethod = client.getGetMethod(fileURL); if (makeRequest(getMethod)) { Matcher matcher = Pattern.compile("form id=\"ff\" action=\"([^\"]*)\"", Pattern.MULTILINE).matcher(clie...
public void run(HttpFileDownloader downloader) throws Exception { super.run(downloader); final GetMethod getMethod = client.getGetMethod(fileURL); if (makeRequest(getMethod)) { Matcher matcher = Pattern.compile("form id=\"ff\" action=\"([^\"]*)\"", Pattern.MULTILINE).matcher(clie...
diff --git a/rdb/src/main/java/org/apache/tuscany/das/rdb/impl/ConnectionImpl.java b/rdb/src/main/java/org/apache/tuscany/das/rdb/impl/ConnectionImpl.java index 2434179..5ee4650 100644 --- a/rdb/src/main/java/org/apache/tuscany/das/rdb/impl/ConnectionImpl.java +++ b/rdb/src/main/java/org/apache/tuscany/das/rdb/impl/Con...
true
true
public boolean isGeneratedKeysSupported() { try{ if(this.generatedKeysSupported == null){ DatabaseMetaData dbmsMetadata = this.connection.getMetaData(); boolean supportsGetGeneratedKeys = dbmsMetadata.supportsGetGeneratedKeys(); if(supportsGetGener...
public boolean isGeneratedKeysSupported() { try{ if(this.generatedKeysSupported == null){ DatabaseMetaData dbmsMetadata = this.connection.getMetaData(); boolean supportsGetGeneratedKeys = dbmsMetadata.supportsGetGeneratedKeys(); if(supportsGetGener...
diff --git a/shivas-server/src/main/java/org/shivas/server/core/fights/frames/Frame.java b/shivas-server/src/main/java/org/shivas/server/core/fights/frames/Frame.java index 04fdc5a..f876c9a 100644 --- a/shivas-server/src/main/java/org/shivas/server/core/fights/frames/Frame.java +++ b/shivas-server/src/main/java/org/shi...
true
true
protected void end() { endFuture.set(this); doEnd(); if (next != null) { try { next.begin(); } catch (FightException e) { fight.exceptionThrowed(e); } } }
protected void end() { endFuture.set(this); doEnd(); if (next != null) { try { next.begin(); } catch (FightException e) { fight.exceptionThrowed(e); } } else { fight.eraseCurrentFrame(); } }
diff --git a/src/main/java/hudson/plugins/clearcase/action/UcmSnapshotCheckoutAction.java b/src/main/java/hudson/plugins/clearcase/action/UcmSnapshotCheckoutAction.java index b7905bc..dbd7c6a 100644 --- a/src/main/java/hudson/plugins/clearcase/action/UcmSnapshotCheckoutAction.java +++ b/src/main/java/hudson/plugins/cle...
true
true
public boolean checkout(Launcher launcher, FilePath workspace, String viewName) throws IOException, InterruptedException { boolean localViewPathExists = new FilePath(workspace, viewName) .exists(); if (this.useUpdate) { if (localViewPathExists) { String configSpec = cleartool.catcs(viewName); Set...
public boolean checkout(Launcher launcher, FilePath workspace, String viewName) throws IOException, InterruptedException { boolean localViewPathExists = new FilePath(workspace, viewName) .exists(); if (this.useUpdate) { if (localViewPathExists) { String configSpec = cleartool.catcs(viewName); Set...
diff --git a/src/me/limebyte/battlenight/core/Listeners/CommandBlocker.java b/src/me/limebyte/battlenight/core/Listeners/CommandBlocker.java index bf79d9b..d145eaf 100644 --- a/src/me/limebyte/battlenight/core/Listeners/CommandBlocker.java +++ b/src/me/limebyte/battlenight/core/Listeners/CommandBlocker.java @@ -1,55 +1...
false
true
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) { if (event.isCancelled()) return; if (!plugin.BattleUsersTeam.containsKey(event.getPlayer().getName())) return; if (!plugin.config.getBoolean("Commands.Block")) return; List<String> whitelist = plugin...
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) { if (event.isCancelled()) return; if (!plugin.BattleUsersTeam.containsKey(event.getPlayer().getName())) return; if (!plugin.config.getBoolean("Commands.Block")) return; List<String> whitelist = plugin...
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/LocalizationSetterImplTest.java b/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/LocalizationSetterImplTest.java index f72c1d1ef..f3363bb24 100644 --- a/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/...
true
true
public void get_locale_model() { LocalizationSetter setter = new LocalizationSetterImpl(null, null, null, "en,fr"); SelectModel model = setter.getSupportedLocalesModel(); assertNull(model.getOptionGroups()); List<OptionModel> options = model.getOptions(); assertEquals...
public void get_locale_model() { LocalizationSetter setter = new LocalizationSetterImpl(null, null, null, "en,fr"); SelectModel model = setter.getSupportedLocalesModel(); assertNull(model.getOptionGroups()); List<OptionModel> options = model.getOptions(); assertEquals...
diff --git a/plugins/org.eclipse.recommenders.models.rcp/src/org/eclipse/recommenders/internal/models/rcp/ModelCoordinatesView.java b/plugins/org.eclipse.recommenders.models.rcp/src/org/eclipse/recommenders/internal/models/rcp/ModelCoordinatesView.java index 75a58b073..c1a76110c 100644 --- a/plugins/org.eclipse.recomme...
true
true
public void createPartControl(Composite parent) { bus.register(this); Composite container = new Composite(parent, SWT.NONE); container.setLayout(new GridLayout()); txtSearch = new Text(container, SWT.BORDER | SWT.ICON_SEARCH | SWT.SEARCH | SWT.CANCEL); txtSearch.setMessage("...
public void createPartControl(Composite parent) { bus.register(this); Composite container = new Composite(parent, SWT.NONE); container.setLayout(new GridLayout()); txtSearch = new Text(container, SWT.BORDER | SWT.ICON_SEARCH | SWT.SEARCH | SWT.CANCEL); txtSearch.setMessage("...
diff --git a/src/main/java/net/pms/encoders/MEncoderVideo.java b/src/main/java/net/pms/encoders/MEncoderVideo.java index 9d9464c27..92eab9fc4 100644 --- a/src/main/java/net/pms/encoders/MEncoderVideo.java +++ b/src/main/java/net/pms/encoders/MEncoderVideo.java @@ -1,2790 +1,2790 @@ /* * PS3 Media Server, for streami...
true
true
public ProcessWrapper launchTranscode( String fileName, DLNAResource dlna, DLNAMediaInfo media, OutputParams params ) throws IOException { params.manageFastStart(); boolean avisynth = avisynth(); setAudioAndSubs(fileName, media, params, configuration); String externalSubtitlesFileName = null; if ...
public ProcessWrapper launchTranscode( String fileName, DLNAResource dlna, DLNAMediaInfo media, OutputParams params ) throws IOException { params.manageFastStart(); boolean avisynth = avisynth(); setAudioAndSubs(fileName, media, params, configuration); String externalSubtitlesFileName = null; if ...
diff --git a/src/plugins/org.drftpd.commands.dir/src/org/drftpd/commands/dir/Dir.java b/src/plugins/org.drftpd.commands.dir/src/org/drftpd/commands/dir/Dir.java index 0156e9bb..108352ff 100644 --- a/src/plugins/org.drftpd.commands.dir/src/org/drftpd/commands/dir/Dir.java +++ b/src/plugins/org.drftpd.commands.dir/src/or...
false
true
public CommandResponse doDELE(CommandRequest request) { // argument check if (!request.hasArgument()) { // out.print(FtpResponse.RESPONSE_501_SYNTAX_ERROR); return StandardCommandManager .genericResponse("RESPONSE_501_SYNTAX_ERROR"); } // get filenames String fileName = request.getArgument(); Co...
public CommandResponse doDELE(CommandRequest request) { // argument check if (!request.hasArgument()) { // out.print(FtpResponse.RESPONSE_501_SYNTAX_ERROR); return StandardCommandManager .genericResponse("RESPONSE_501_SYNTAX_ERROR"); } // get filenames String fileName = request.getArgument(); Co...
diff --git a/Model/src/java/fr/cg95/cvq/dao/users/hibernate/IndividualDAO.java b/Model/src/java/fr/cg95/cvq/dao/users/hibernate/IndividualDAO.java index eaf790f12..1e0ba9581 100644 --- a/Model/src/java/fr/cg95/cvq/dao/users/hibernate/IndividualDAO.java +++ b/Model/src/java/fr/cg95/cvq/dao/users/hibernate/IndividualDAO....
true
true
protected StringBuffer buildStatement(Set<Critere> criterias,List<Type> typeList, List<Object> objectList,String prefix) { StringBuffer sb = new StringBuffer(); sb.append(prefix != null ? prefix : "") .append("from Individual as individual left...
protected StringBuffer buildStatement(Set<Critere> criterias,List<Type> typeList, List<Object> objectList,String prefix) { StringBuffer sb = new StringBuffer(); sb.append(prefix != null ? prefix : "") .append("from Individual as individual left...
diff --git a/media/android/NewsBlur/src/com/newsblur/activity/SocialFeedReading.java b/media/android/NewsBlur/src/com/newsblur/activity/SocialFeedReading.java index 2d1d3ca6c..5c82bc714 100644 --- a/media/android/NewsBlur/src/com/newsblur/activity/SocialFeedReading.java +++ b/media/android/NewsBlur/src/com/newsblur/act...
true
true
protected void onCreate(Bundle savedInstanceBundle) { super.onCreate(savedInstanceBundle); setResult(RESULT_OK); userId = getIntent().getStringExtra(Reading.EXTRA_USERID); username = getIntent().getStringExtra(Reading.EXTRA_USERNAME); markSocialAsReadList = new MarkSocialAsReadUpdate(userId); Uri ...
protected void onCreate(Bundle savedInstanceBundle) { super.onCreate(savedInstanceBundle); setResult(RESULT_OK); userId = getIntent().getStringExtra(Reading.EXTRA_USERID); username = getIntent().getStringExtra(Reading.EXTRA_USERNAME); markSocialAsReadList = new MarkSocialAsReadUpdate(userId); Uri ...
diff --git a/org.eclipse.virgo.kernel.shell/src/main/java/org/eclipse/virgo/kernel/shell/internal/CommandRegistryCommandInvoker.java b/org.eclipse.virgo.kernel.shell/src/main/java/org/eclipse/virgo/kernel/shell/internal/CommandRegistryCommandInvoker.java index 97fa3fc2..fffe799b 100644 --- a/org.eclipse.virgo.kernel.sh...
true
true
public List<String> invokeCommand(ParsedCommand command) throws CommandNotFoundException, ParametersMismatchException { List<CommandDescriptor> commands = commandsOfCommandName(this.commandRegistry, command.getCommand()); if (commands.isEmpty()) { throw new CommandNotFoundException(); ...
public List<String> invokeCommand(ParsedCommand command) throws CommandNotFoundException, ParametersMismatchException { List<CommandDescriptor> commands = commandsOfCommandName(this.commandRegistry, command.getCommand()); if (commands.isEmpty()) { throw new CommandNotFoundException(); ...
diff --git a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java index a2ea7601..77d13875 100644 --- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java +++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java @@ -1,284 +1,285 @@ package net....
true
true
public void handle(Packet1Login login) throws Exception { Preconditions.checkState( thisState == State.LOGIN, "Not exepcting LOGIN" ); ServerConnection server = new ServerConnection( ch, target, false ); ServerConnectedEvent event = new ServerConnectedEvent( user, server ); bung...
public void handle(Packet1Login login) throws Exception { Preconditions.checkState( thisState == State.LOGIN, "Not exepcting LOGIN" ); ServerConnection server = new ServerConnection( ch, target, false ); ServerConnectedEvent event = new ServerConnectedEvent( user, server ); bung...
diff --git a/src/main/java/pl/mjedynak/App.java b/src/main/java/pl/mjedynak/App.java index c394e1a..628e6d0 100644 --- a/src/main/java/pl/mjedynak/App.java +++ b/src/main/java/pl/mjedynak/App.java @@ -1,33 +1,33 @@ package pl.mjedynak; import com.sun.jersey.api.container.grizzly2.GrizzlyServerFactory; import com.s...
true
true
public static void main(String[] args) throws IOException { HttpServer httpServer = startServer(); logger.debug(String.format("Jersey app started with WADL available at %sapplication.wadl"), BASE_URI); logger.debug(String.format("Try out %sresource\nHit enter to stop it...", BASE_URI)); ...
public static void main(String[] args) throws IOException { HttpServer httpServer = startServer(); logger.debug(String.format("Jersey app started with WADL available at %sapplication.wadl", BASE_URI)); logger.debug(String.format("Try out %sresource\nHit enter to stop it...", BASE_URI)); ...
diff --git a/plugins/maven-scm-publish-plugin/src/main/java/org/apache/maven/plugins/scmpublish/ScmPublishPublishScmMojo.java b/plugins/maven-scm-publish-plugin/src/main/java/org/apache/maven/plugins/scmpublish/ScmPublishPublishScmMojo.java index 366e99b89..f8547da1a 100644 --- a/plugins/maven-scm-publish-plugin/src/ma...
true
true
private void update( File checkout, File dir, List<String> doNotDeleteDirs ) throws IOException { String[] files = checkout.list( new NotFileFilter( new NameFileFilter( scmProvider.getScmSpecificFilename() ) ) ); Set<String> checkoutContent = new HashSet<String>( Arrays.asLi...
private void update( File checkout, File dir, List<String> doNotDeleteDirs ) throws IOException { String[] files = checkout.list( new NotFileFilter( new NameFileFilter( scmProvider.getScmSpecificFilename() ) ) ); Set<String> checkoutContent = new HashSet<String>( Arrays.asLi...
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/DeclarationCollector.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/DeclarationCollector.java index 9e761de04..a2fa3057b 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/DeclarationCollector.java +++ b/src/checkstyle/com/...
true
true
public void visitToken(DetailAST aAST) { switch (aAST.getType()) { case TokenTypes.PARAMETER_DEF : case TokenTypes.VARIABLE_DEF : { final DetailAST nameAST = aAST.findFirstToken(TokenTypes.IDENT); this.mFrames.current().addName(nameAST.getText()); brea...
public void visitToken(DetailAST aAST) { switch (aAST.getType()) { case TokenTypes.PARAMETER_DEF : case TokenTypes.VARIABLE_DEF : { final DetailAST nameAST = aAST.findFirstToken(TokenTypes.IDENT); this.mFrames.current().addName(nameAST.getText()); brea...
diff --git a/src/org/vesalainen/parsers/sql/dsql/Statistics.java b/src/org/vesalainen/parsers/sql/dsql/Statistics.java index 4f2c7cf..a1c54c7 100644 --- a/src/org/vesalainen/parsers/sql/dsql/Statistics.java +++ b/src/org/vesalainen/parsers/sql/dsql/Statistics.java @@ -1,263 +1,263 @@ /* * Copyright (C) 2012 Timo Ves...
false
true
public void update() { synchronized(map) { if (System.currentTimeMillis() > nextUpdate) { indexes = datastore.getIndexes(); map.clear(); Query q0 = new Query("__Stat_Total__"); Entity total = datastore.prepar...
public void update() { synchronized(map) { if (System.currentTimeMillis() > nextUpdate) { indexes = datastore.getIndexes(); map.clear(); Query q0 = new Query("__Stat_Ns_Total__"); Entity total = datastore.pre...
diff --git a/src/main/java/hudson/plugins/warnings/WarningsPublisher.java b/src/main/java/hudson/plugins/warnings/WarningsPublisher.java index 1fa00bd5..7fbff602 100644 --- a/src/main/java/hudson/plugins/warnings/WarningsPublisher.java +++ b/src/main/java/hudson/plugins/warnings/WarningsPublisher.java @@ -1,384 +1,383 ...
true
true
private List<ParserResult> parseConsoleLog(final AbstractBuild<?, ?> build, final PluginLogger logger) throws IOException, InterruptedException { List<ParserResult> results = Lists.newArrayList(); for (ConsoleParser parser : getConsoleParsers()) { String parserName = parser.g...
private List<ParserResult> parseConsoleLog(final AbstractBuild<?, ?> build, final PluginLogger logger) throws IOException, InterruptedException { List<ParserResult> results = Lists.newArrayList(); for (ConsoleParser parser : getConsoleParsers()) { String parserName = parser.g...
diff --git a/atlas-web/src/test/java/uk/ac/ebi/gxa/requesthandlers/experimentpage/SimilarGeneListTest.java b/atlas-web/src/test/java/uk/ac/ebi/gxa/requesthandlers/experimentpage/SimilarGeneListTest.java index 9140227db..3bd3a325f 100644 --- a/atlas-web/src/test/java/uk/ac/ebi/gxa/requesthandlers/experimentpage/SimilarG...
true
true
public void testComputeSimilarityTask() { // do a similarity over E-AFMX-5 for an arbitrary design element/array design // TODO: fix similarity result test! final SimilarityResultSet simRS = new SimilarityResultSet("226010852", "153094131", "153069949", ""); final String callSim = "s...
public void testComputeSimilarityTask() { // do a similarity over E-AFMX-5 for an arbitrary design element/array design // TODO: fix similarity result test! final SimilarityResultSet simRS = new SimilarityResultSet("226010852", "153094131", "153069949", "/ebi/ArrayExpress-files/NetCDFs.ATLAS...
diff --git a/src/de/hdodenhof/holoreader/services/RefreshFeedService.java b/src/de/hdodenhof/holoreader/services/RefreshFeedService.java index b2b9d6c..d0ffe11 100644 --- a/src/de/hdodenhof/holoreader/services/RefreshFeedService.java +++ b/src/de/hdodenhof/holoreader/services/RefreshFeedService.java @@ -1,538 +1,537 @@...
true
true
protected void doWakefulWork(Intent intent) { if (intent.getAction() == NO_ACTION) { return; } int feedID = intent.getIntExtra("feedid", -1); ArrayList<ContentValues> contentValuesArrayList = new ArrayList<ContentValues>(); boolean isArticle = false; boo...
protected void doWakefulWork(Intent intent) { if (intent.getAction() == NO_ACTION) { return; } int feedID = intent.getIntExtra("feedid", -1); ArrayList<ContentValues> contentValuesArrayList = new ArrayList<ContentValues>(); boolean isArticle = false; boo...
diff --git a/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/DefaultTokenResolverGenerator.java b/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/DefaultTokenResolverGenerator.java index a748aa8a8..d76176e26 100644 --- a/org.emftext.sdk.codegen.resource/...
true
true
private void addResolveMethod(StringComposite sc) { sc.add("public void resolve(String lexem, " + E_STRUCTURAL_FEATURE + " feature, " + iTokenResolveResultClassName + " result) {"); sc.addLineBreak(); sc.add("if (feature instanceof " + E_ATTRIBUTE + ") {"); sc.add("if (feature.getEType() instanceof " + E_ENUM ...
private void addResolveMethod(StringComposite sc) { sc.add("public void resolve(String lexem, " + E_STRUCTURAL_FEATURE + " feature, " + iTokenResolveResultClassName + " result) {"); sc.addLineBreak(); sc.add("if (feature instanceof " + E_ATTRIBUTE + ") {"); sc.add("if (feature.getEType() instanceof " + E_ENUM ...
diff --git a/src/main/java/com/caindonaghey/commandbin/listeners/AxeListener.java b/src/main/java/com/caindonaghey/commandbin/listeners/AxeListener.java index 768abbb..0bbfb3e 100644 --- a/src/main/java/com/caindonaghey/commandbin/listeners/AxeListener.java +++ b/src/main/java/com/caindonaghey/commandbin/listeners/AxeL...
true
true
public void onBlockBreak(BlockBreakEvent e) { Block block = e.getBlock(); Material type = block.getType(); Player player = e.getPlayer(); if(CommandBin.woodCutter) { if(player.hasPermission("CommandBin.axe")) { if(player.getItemInHand().getType() == Material.IRON_AXE) { if(block.getRelative(0, -...
public void onBlockBreak(BlockBreakEvent e) { Block block = e.getBlock(); Material type = block.getType(); Player player = e.getPlayer(); if(CommandBin.woodCutter) { if(player.hasPermission("CommandBin.axe")) { if(player.getItemInHand().getType() == Material.IRON_AXE) { if(block.getRelative(0, -...
diff --git a/src/test/java/com/salesforce/phoenix/arithmatic/ArithmeticOperationTest.java b/src/test/java/com/salesforce/phoenix/arithmatic/ArithmeticOperationTest.java index fc40c537..36a17351 100644 --- a/src/test/java/com/salesforce/phoenix/arithmatic/ArithmeticOperationTest.java +++ b/src/test/java/com/salesforce/p...
true
true
public void testDecimalArithmetic() throws Exception { Properties props = new Properties(TEST_PROPERTIES); Connection conn = DriverManager.getConnection(getUrl(), props); conn.setAutoCommit(false); try { String ddl = "CREATE TABLE IF NOT EXISTS testDecimalArithmatic" + ...
public void testDecimalArithmetic() throws Exception { Properties props = new Properties(TEST_PROPERTIES); Connection conn = DriverManager.getConnection(getUrl(), props); conn.setAutoCommit(false); try { String ddl = "CREATE TABLE IF NOT EXISTS testDecimalArithmatic" + ...
diff --git a/src/org/flowvisor/config/ConfDBHandler.java b/src/org/flowvisor/config/ConfDBHandler.java index f99113a..8c120ef 100644 --- a/src/org/flowvisor/config/ConfDBHandler.java +++ b/src/org/flowvisor/config/ConfDBHandler.java @@ -1,127 +1,127 @@ package org.flowvisor.config; import java.sql.Connection; impo...
true
true
private DataSource getDataSource() { if (pds != null) return pds; gop = new GenericObjectPool(null); gop.setTestOnBorrow(true); gop.setTestWhileIdle(true); cf = new DriverManagerConnectionFactory(this.protocol + this.dbName, this.username, this.password); pcf = new PoolableConnectionFactory(cf, gop,...
private DataSource getDataSource() { if (pds != null) return pds; gop = new GenericObjectPool(null); gop.setTestOnBorrow(true); gop.setTestWhileIdle(true); cf = new DriverManagerConnectionFactory(this.protocol + this.dbName, this.username, this.password); pcf = new PoolableConnectionFactory(cf, gop,...
diff --git a/src/classes/com/sun/opengl/util/texture/TextureData.java b/src/classes/com/sun/opengl/util/texture/TextureData.java index 39075e387..67e5d347e 100755 --- a/src/classes/com/sun/opengl/util/texture/TextureData.java +++ b/src/classes/com/sun/opengl/util/texture/TextureData.java @@ -1,623 +1,623 @@ /* * Cop...
true
true
private void createFromImage(BufferedImage image) { pixelType = 0; // Determine from image mustFlipVertically = true; width = image.getWidth(); height = image.getHeight(); int scanlineStride; SampleModel sm = image.getRaster().getSampleModel(); if (sm instanceof SinglePixelPackedSampleMo...
private void createFromImage(BufferedImage image) { pixelType = 0; // Determine from image mustFlipVertically = true; width = image.getWidth(); height = image.getHeight(); int scanlineStride; SampleModel sm = image.getRaster().getSampleModel(); if (sm instanceof SinglePixelPackedSampleMo...
diff --git a/src/no/runsafe/nchat/events/PlayerDeath.java b/src/no/runsafe/nchat/events/PlayerDeath.java index 88d868b..8d5fef3 100644 --- a/src/no/runsafe/nchat/events/PlayerDeath.java +++ b/src/no/runsafe/nchat/events/PlayerDeath.java @@ -1,85 +1,85 @@ package no.runsafe.nchat.events; import no.runsafe.framework....
false
true
public void OnPlayerDeathEvent(RunsafePlayerDeathEvent runsafePlayerDeathEvent) { runsafePlayerDeathEvent.setDeathMessage(""); if (!this.hideDeathWorlds.contains(runsafePlayerDeathEvent.getEntity().getWorld().getName())) { String originalMessage = runsafePlayerDeathEvent.getDeathMessage(); Death deathTyp...
public void OnPlayerDeathEvent(RunsafePlayerDeathEvent runsafePlayerDeathEvent) { String originalMessage = runsafePlayerDeathEvent.getDeathMessage(); runsafePlayerDeathEvent.setDeathMessage(""); if (!this.hideDeathWorlds.contains(runsafePlayerDeathEvent.getEntity().getWorld().getName())) { Death deathType...
diff --git a/src/com/nolanlawson/apptracker/util/DatetimeUtil.java b/src/com/nolanlawson/apptracker/util/DatetimeUtil.java index 8d67843..ae3b983 100644 --- a/src/com/nolanlawson/apptracker/util/DatetimeUtil.java +++ b/src/com/nolanlawson/apptracker/util/DatetimeUtil.java @@ -1,46 +1,46 @@ package com.nolanlawson.appt...
true
true
public static String getHumanReadableDateDiff(Date pastDate) { Date currentDate = new Date(); long timeDiff = currentDate.getTime() - pastDate.getTime(); if (timeDiff < TimeUnit.SECONDS.toMillis(60)) { // less than a minute ago return "<1 min ago"; } else if (timeDiff < TimeUnit.SECONDS.toMillis(60 * ...
public static String getHumanReadableDateDiff(Date pastDate) { Date currentDate = new Date(); long timeDiff = currentDate.getTime() - pastDate.getTime(); if (timeDiff < TimeUnit.SECONDS.toMillis(60)) { // less than a minute ago return "<1 min ago"; } else if (timeDiff < TimeUnit.SECONDS.toMillis(60 * ...
diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/SearchableListModel.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/SearchableListModel.java index 4e44bfbd..ebb3b808 100644 --- a/frontend/webadmin/modules/uicommonw...
true
true
public void setItems(Iterable value) { if (items != value) { IVdcQueryable lastSelectedItem = (IVdcQueryable)getSelectedItem(); java.util.ArrayList<IVdcQueryable> lastSelectedItems = new java.util.ArrayList<IVdcQueryable>(); if (getSelectedItems() != null) { if (getSelectedItems() instanceof java...
public void setItems(Iterable value) { if (items != value) { IVdcQueryable lastSelectedItem = (IVdcQueryable)getSelectedItem(); java.util.ArrayList<IVdcQueryable> lastSelectedItems = new java.util.ArrayList<IVdcQueryable>(); if (getSelectedItems() != null) { if (getSelectedItems() instanceof java...
diff --git a/src/java/davmail/exchange/ExchangeSession.java b/src/java/davmail/exchange/ExchangeSession.java index ffe0d13..ae8d983 100644 --- a/src/java/davmail/exchange/ExchangeSession.java +++ b/src/java/davmail/exchange/ExchangeSession.java @@ -1,2406 +1,2403 @@ /* * DavMail POP/IMAP/SMTP/CalDav/LDAP Exchange Ga...
false
true
protected String fixICS(String icsBody, boolean fromServer) throws IOException { // first pass : detect class AllDayState { boolean isAllDay; boolean hasCdoAllDay; boolean isCdoAllDay; } // Convert event class from and to iCal // See https:...
protected String fixICS(String icsBody, boolean fromServer) throws IOException { // first pass : detect class AllDayState { boolean isAllDay; boolean hasCdoAllDay; boolean isCdoAllDay; } // Convert event class from and to iCal // See https:...
diff --git a/DesktopBranding/src/org/gephi/branding/desktop/multilingual/LanguageAction.java b/DesktopBranding/src/org/gephi/branding/desktop/multilingual/LanguageAction.java index da6165461..bdeb2a022 100644 --- a/DesktopBranding/src/org/gephi/branding/desktop/multilingual/LanguageAction.java +++ b/DesktopBranding/src...
true
true
private void setLanguage(Language language) { String homePath; if (Utilities.isMac()) { homePath = System.getProperty("netbeans.home"); } else { homePath = System.getProperty("user.dir"); } File etc = new File(homePath, "etc"); if (!etc.exists...
private void setLanguage(Language language) { String homePath; if (Utilities.isMac() || Utilities.isUnix()) { homePath = System.getProperty("netbeans.home"); } else { homePath = System.getProperty("user.dir"); } File etc = new File(homePath, "etc"); ...
diff --git a/Chat/src/ServerMainLoop.java b/Chat/src/ServerMainLoop.java index 2f75ef2..6d7b2ea 100644 --- a/Chat/src/ServerMainLoop.java +++ b/Chat/src/ServerMainLoop.java @@ -1,97 +1,97 @@ import java.net.InetAddress; import java.net.NetworkInterface; import java.net.ServerSocket; import java.net.Socket; imp...
true
true
public static void main(String[] args){ try { InetAddress address = null; Enumeration<NetworkInterface> interfaces = NetworkInterface .getNetworkInterfaces(); while (interfaces.hasMoreElements()) { NetworkInterface networkInterface = interfaces.nextElement(); if (networkInterface.isLoopback()) ...
public static void main(String[] args){ try { InetAddress address = null; Enumeration<NetworkInterface> interfaces = NetworkInterface .getNetworkInterfaces(); while (interfaces.hasMoreElements()) { NetworkInterface networkInterface = interfaces.nextElement(); if (networkInterface.isLoopback()) ...
diff --git a/Osm2GpsMid/src/de/ueller/osmToGpsMid/SplitLongWays.java b/Osm2GpsMid/src/de/ueller/osmToGpsMid/SplitLongWays.java index cba3fc8b..0f8bda22 100644 --- a/Osm2GpsMid/src/de/ueller/osmToGpsMid/SplitLongWays.java +++ b/Osm2GpsMid/src/de/ueller/osmToGpsMid/SplitLongWays.java @@ -1,80 +1,81 @@ /** * This file ...
true
true
public SplitLongWays(OsmParser parser) { super(); int count = 0; this.parser = parser; for (Way way : parser.getWays()) { testAndSplit(way); count++; if (count % 500 == 0) { System.err.println("Tested " + count + " ways for splitting"); } } for (Way w : added) { parser.addWa...
public SplitLongWays(OsmParser parser) { super(); int count = 0; this.parser = parser; for (Way way : parser.getWays()) { testAndSplit(way); count++; if (count % 500 == 0) { System.err.println("Tested " + count + " ways for splitting"); } } for (Way w : added) { parser.addWa...