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/main/java/com/novemberain/quartz/mongodb/MongoDBJobStore.java b/src/main/java/com/novemberain/quartz/mongodb/MongoDBJobStore.java
index 5abbf58..659331e 100755
--- a/src/main/java/com/novemberain/quartz/mongodb/MongoDBJobStore.java
+++ b/src/main/java/com/novemberain/quartz/mongodb/MongoDBJobStore.java... | true | true | public List<OperableTrigger> acquireNextTriggers(long noLaterThan, int maxCount, long timeWindow)
throws JobPersistenceException {
BasicDBObject query = new BasicDBObject();
query.put(TRIGGER_NEXT_FIRE_TIME, new BasicDBObject("$lte", new Date(noLaterThan)));
if (log.isDebugEnabled()) {
log.de... | public List<OperableTrigger> acquireNextTriggers(long noLaterThan, int maxCount, long timeWindow)
throws JobPersistenceException {
BasicDBObject query = new BasicDBObject();
query.put(TRIGGER_NEXT_FIRE_TIME, new BasicDBObject("$lte", new Date(noLaterThan)));
if (log.isDebugEnabled()) {
log.de... |
diff --git a/src/com/NYXDigital/NiceSupportMapFragment.java b/src/com/NYXDigital/NiceSupportMapFragment.java
index 7ece844..96e1bdf 100644
--- a/src/com/NYXDigital/NiceSupportMapFragment.java
+++ b/src/com/NYXDigital/NiceSupportMapFragment.java
@@ -1,148 +1,148 @@
package com.NYXDigital;
import android.annotation.S... | false | true | public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
ViewGroup view = (ViewGroup) super.onCreateView(inflater, container,
savedInstanceState);
view.setBackgroundColor(0x00000000); // Set Root View to be transparent
// to prevent black screen on
... | public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
ViewGroup view = (ViewGroup) super.onCreateView(inflater, container,
savedInstanceState);
view.setBackgroundColor(0x00000000); // Set Root View to be transparent
// to prevent black screen on
... |
diff --git a/jsystem-core-projects/jsystemAnt/src/main/java/com/aqua/anttask/jsystem/JSystemDataDrivenTask.java b/jsystem-core-projects/jsystemAnt/src/main/java/com/aqua/anttask/jsystem/JSystemDataDrivenTask.java
index ecbdd4c..0aeb28a 100644
--- a/jsystem-core-projects/jsystemAnt/src/main/java/com/aqua/anttask/jsystem... | true | true | public void execute() throws BuildException {
if (!JSystemAntUtil.doesContainerHaveEnabledTests(getUuid())) {
return;
}
loadParameters();
final DataProvider provider = initProvider();
try {
data = provider.provide(new File(file), param);
} catch (DataCollectorException e) {
log.log(Level.WARNING... | public void execute() throws BuildException {
if (!JSystemAntUtil.doesContainerHaveEnabledTests(getUuid())) {
return;
}
loadParameters();
final DataProvider provider = initProvider();
try {
// in case file is a reference, if not the file name will be as entered by the user - nir
String fileName = ... |
diff --git a/src/share/classes/com/sun/tools/javafx/comp/JavafxMemberEnter.java b/src/share/classes/com/sun/tools/javafx/comp/JavafxMemberEnter.java
index 1f0276acc..f3a8aaacd 100644
--- a/src/share/classes/com/sun/tools/javafx/comp/JavafxMemberEnter.java
+++ b/src/share/classes/com/sun/tools/javafx/comp/JavafxMemberEn... | true | true | public void complete(Symbol sym) throws CompletionFailure {
// Suppress some (recursive) MemberEnter invocations
if (!completionEnabled) {
// Re-install same completer for next time around and return.
assert (sym.flags() & Flags.COMPOUND) == 0;
sym.completer = thi... | public void complete(Symbol sym) throws CompletionFailure {
// Suppress some (recursive) MemberEnter invocations
if (!completionEnabled) {
// Re-install same completer for next time around and return.
assert (sym.flags() & Flags.COMPOUND) == 0;
sym.completer = thi... |
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java
index d76e0260..fc97832a 100644
--- a/src/com/android/launcher2/LauncherModel.java
+++ b/src/com/android/launcher2/LauncherModel.java
@@ -1,1187 +1,1190 @@
/*
* Copyright (C) 2008 The Android Open Source Project
... | true | 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/edacc/EDACCManageDBMode.java b/src/edacc/EDACCManageDBMode.java
index b3d3e4a..58f1659 100755
--- a/src/edacc/EDACCManageDBMode.java
+++ b/src/edacc/EDACCManageDBMode.java
@@ -1,2528 +1,2527 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*... | true | true | private void initComponents() {
jFileChooserManageDBInstance = new javax.swing.JFileChooser();
jFileChooserManageDBExportInstance = new javax.swing.JFileChooser();
jPMInstanceTable = new javax.swing.JPopupMenu();
jMIAddInstance = new javax.swing.JMenuItem();
jMIRemoveInstanc... | private void initComponents() {
jFileChooserManageDBInstance = new javax.swing.JFileChooser();
jFileChooserManageDBExportInstance = new javax.swing.JFileChooser();
jPMInstanceTable = new javax.swing.JPopupMenu();
jMIAddInstance = new javax.swing.JMenuItem();
jMIRemoveInstanc... |
diff --git a/src/com/speakwrite/api/Client.java b/src/com/speakwrite/api/Client.java
index 254e102..a474c2a 100644
--- a/src/com/speakwrite/api/Client.java
+++ b/src/com/speakwrite/api/Client.java
@@ -1,119 +1,119 @@
package com.speakwrite.api;
import java.io.BufferedOutputStream;
import java.io.File;
import java... | true | true | public JobDownloadResponse download(JobDownloadRequest request) throws Exception {
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(API_BASE_URL + "download.ashx");
List<NameValuePair> nvps = GetBaseParams(request);
if(request.fileName == null || request.fileName == ... | public JobDownloadResponse download(JobDownloadRequest request) throws Exception {
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(API_BASE_URL + "download.ashx");
List<NameValuePair> nvps = GetBaseParams(request);
if(request.fileName == null || request.fileName == ... |
diff --git a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/objects/Log.java b/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/objects/Log.java
index 8fd49dda..02205393 100644
--- a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/objects/Log.java
+++ b/... | true | true | public JSONObject toJSON(int page, int pageSize) throws JSONException, URISyntaxException, IOException, CoreException {
if (commits == null)
throw new IllegalStateException("'commits' is null");
Map<ObjectId, JSONArray> commitToBranchMap = getCommitToBranchMap(db);
JSONObject result = new JSONObject();
J... | public JSONObject toJSON(int page, int pageSize) throws JSONException, URISyntaxException, IOException, CoreException {
if (commits == null)
throw new IllegalStateException("'commits' is null");
Map<ObjectId, JSONArray> commitToBranchMap = getCommitToBranchMap(db);
JSONObject result = new JSONObject();
J... |
diff --git a/spring-integration-http/src/main/java/org/springframework/integration/http/inbound/HttpRequestHandlingEndpointSupport.java b/spring-integration-http/src/main/java/org/springframework/integration/http/inbound/HttpRequestHandlingEndpointSupport.java
index 385884dafd..8d48528660 100644
--- a/spring-integratio... | true | true | protected final Object doHandleRequest(HttpServletRequest servletRequest, HttpServletResponse servletResponse)
throws IOException {
try {
ServletServerHttpRequest request = this.prepareRequest(servletRequest);
if (!this.supportedMethods.contains(request.getMethod())) {
servletResponse.setStatus(HttpServ... | protected final Object doHandleRequest(HttpServletRequest servletRequest, HttpServletResponse servletResponse)
throws IOException {
try {
ServletServerHttpRequest request = this.prepareRequest(servletRequest);
if (!this.supportedMethods.contains(request.getMethod())) {
servletResponse.setStatus(HttpServ... |
diff --git a/src/com/orangeleap/tangerine/web/flow/batch/ErrorBatchAction.java b/src/com/orangeleap/tangerine/web/flow/batch/ErrorBatchAction.java
index 8388e875..aaea44a2 100644
--- a/src/com/orangeleap/tangerine/web/flow/batch/ErrorBatchAction.java
+++ b/src/com/orangeleap/tangerine/web/flow/batch/ErrorBatchAction.ja... | true | true | public ModelMap errorStep2(final RequestContext flowRequestContext) {
if (logger.isTraceEnabled()) {
logger.trace("errorStep2:");
}
tangerineListHelper.checkAccess(getRequest(flowRequestContext), PageType.createBatch); // TODO: do as annotation
determineStepToSave(flowReq... | public ModelMap errorStep2(final RequestContext flowRequestContext) {
if (logger.isTraceEnabled()) {
logger.trace("errorStep2:");
}
tangerineListHelper.checkAccess(getRequest(flowRequestContext), PageType.createBatch); // TODO: do as annotation
determineStepToSave(flowReq... |
diff --git a/app/src/processing/app/debug/AvrdudeUploader.java b/app/src/processing/app/debug/AvrdudeUploader.java
index 641e4412..a9254d99 100755
--- a/app/src/processing/app/debug/AvrdudeUploader.java
+++ b/app/src/processing/app/debug/AvrdudeUploader.java
@@ -1,334 +1,335 @@
/* -*- mode: jde; c-basic-offset: 2; ind... | true | true | private boolean uploadViaBootloader(String buildPath, String className)
throws RunnerException, SerialException {
Map<String, String> boardPreferences = Base.getBoardPreferences();
List commandDownloader = new ArrayList();
String protocol = boardPreferences.get("upload.protocol");
// avrdude ... | private boolean uploadViaBootloader(String buildPath, String className)
throws RunnerException, SerialException {
Map<String, String> boardPreferences = Base.getBoardPreferences();
List commandDownloader = new ArrayList();
String protocol = boardPreferences.get("upload.protocol");
// avrdude ... |
diff --git a/cadpage/src/net/anei/cadpage/parsers/general/GeneralParser.java b/cadpage/src/net/anei/cadpage/parsers/general/GeneralParser.java
index e4b84912b..c7f88918a 100644
--- a/cadpage/src/net/anei/cadpage/parsers/general/GeneralParser.java
+++ b/cadpage/src/net/anei/cadpage/parsers/general/GeneralParser.java
@@ ... | true | true | protected boolean parseMsg(String body, Data data) {
// Accept anything, but only if there is a valid sender filter
if (ManagePreferences.filter().length() <= 1) return false;
// Starting with CAD: confuses things
if (body.startsWith("CAD:")) body = body.substring(4).trim();
// Stri... | protected boolean parseMsg(String body, Data data) {
// Accept anything, but only if there is a valid sender filter
if (! ManagePreferences.overrideFilter()) return false;
if (ManagePreferences.filter().length() <= 1) return false;
// Starting with CAD: confuses things
if (body.startsWit... |
diff --git a/src/com/untamedears/JukeAlert/JukeAlert.java b/src/com/untamedears/JukeAlert/JukeAlert.java
index 8455cf4..a7fff30 100644
--- a/src/com/untamedears/JukeAlert/JukeAlert.java
+++ b/src/com/untamedears/JukeAlert/JukeAlert.java
@@ -1,88 +1,88 @@
package com.untamedears.JukeAlert;
import com.untamedears.Juk... | false | true | public void onEnable() {
instance = this;
configManager = new ConfigManager();
jaLogger = new JukeAlertLogger();
snitchManager = new SnitchManager();
groupMediator = new GroupMediator();
registerEvents();
registerCommands();
snitchManager.loadSnitches();
}
| public void onEnable() {
instance = this;
configManager = new ConfigManager();
groupMediator = new GroupMediator();
jaLogger = new JukeAlertLogger();
snitchManager = new SnitchManager();
registerEvents();
registerCommands();
snitchManager.loadSnitches();
}
|
diff --git a/src/me/ellbristow/setXP/setXP.java b/src/me/ellbristow/setXP/setXP.java
index 8a50505..955a653 100644
--- a/src/me/ellbristow/setXP/setXP.java
+++ b/src/me/ellbristow/setXP/setXP.java
@@ -1,486 +1,492 @@
package me.ellbristow.setXP;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
impo... | false | true | private boolean readCommand(Player player, String command, String[] args) {
if(command.equalsIgnoreCase("setxp")) {
/*
* Set XP level
*/
if (args.length == 0) {
// No arguments sent, report error
player.sendMessage(ChatColor.GOLD + "== SetXP v" + ChatColor.WHITE + getDe... | private boolean readCommand(Player player, String command, String[] args) {
if(command.equalsIgnoreCase("setxp")) {
/*
* Set XP level
*/
if (args.length == 0) {
// No arguments sent, report error
player.sendMessage(ChatColor.GOLD + "== SetXP v" + ChatColor.WHITE + getDe... |
diff --git a/kmean/src/mapreduce/KmeansDriver.java b/kmean/src/mapreduce/KmeansDriver.java
index a45aca3..135c35f 100644
--- a/kmean/src/mapreduce/KmeansDriver.java
+++ b/kmean/src/mapreduce/KmeansDriver.java
@@ -1,114 +1,114 @@
package mapreduce;
import java.util.Date;
import org.apache.hadoop.conf.Configuratio... | true | true | public static void main(String[] args) {
Date start = new Date();
if (args.length < 2) {
System.out.println("Usage: program <input> <clusters>");
System.exit(0);
}
Configuration conf = new Configuration();
Counter converge = null;
Counter total = null;
Counter totalfile = null;
Path in = new P... | public static void main(String[] args) {
Date start = new Date();
if (args.length < 2) {
System.out.println("Usage: program <input> <clusters>");
System.exit(0);
}
Configuration conf = new Configuration();
Counter converge = null;
Counter total = null;
Counter totalfile = null;
Path in = new P... |
diff --git a/src/frontend/edu/brown/hstore/SpecExecScheduler.java b/src/frontend/edu/brown/hstore/SpecExecScheduler.java
index cfb37e48e..2b7cd8c75 100644
--- a/src/frontend/edu/brown/hstore/SpecExecScheduler.java
+++ b/src/frontend/edu/brown/hstore/SpecExecScheduler.java
@@ -1,409 +1,408 @@
package edu.brown.hstore;
... | false | true | public LocalTransaction next(AbstractTransaction dtxn, SpeculationType specType) {
this.interrupted = false;
if (debug.val) {
LOG.debug(String.format("%s - Checking queue for transaction to speculatively execute " +
"[specType=%s, windowSize=%d, queueSize=%... | public LocalTransaction next(AbstractTransaction dtxn, SpeculationType specType) {
this.interrupted = false;
if (debug.val) {
LOG.debug(String.format("%s - Checking queue for transaction to speculatively execute " +
"[specType=%s, windowSize=%d, queueSize=%... |
diff --git a/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/login/ILoginSplashView.java b/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena/navigation/ui/swt/login/ILoginSplashView.java
index 9734c73fe..0162db365 100644
--- a/org.eclipse.riena.navigation.ui.swt/src/org/eclipse/riena... | true | true | public void build(Composite parent);
| void build(Composite parent);
|
diff --git a/src/main/java/com/survivorserver/GlobalMarket/Lib/ItemIndex.java b/src/main/java/com/survivorserver/GlobalMarket/Lib/ItemIndex.java
index 5bccdd7..8842cc4 100644
--- a/src/main/java/com/survivorserver/GlobalMarket/Lib/ItemIndex.java
+++ b/src/main/java/com/survivorserver/GlobalMarket/Lib/ItemIndex.java
@@ ... | true | true | private void mapMaterials() {
monsterLangMap.put(50, "entity.Creeper.name");
monsterLangMap.put(51, "entity.Skeleton.name");
monsterLangMap.put(52, "entity.Spider.name");
monsterLangMap.put(54, "entity.Zombie.name");
monsterLangMap.put(55, "entity.Slime.name");
monsterLangMap.put(56, "entity.Ghast.name");
... | private void mapMaterials() {
monsterLangMap.put(50, "entity.Creeper.name");
monsterLangMap.put(51, "entity.Skeleton.name");
monsterLangMap.put(52, "entity.Spider.name");
monsterLangMap.put(54, "entity.Zombie.name");
monsterLangMap.put(55, "entity.Slime.name");
monsterLangMap.put(56, "entity.Ghast.name");
... |
diff --git a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc17/db/SvnWcDbCopy.java b/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc17/db/SvnWcDbCopy.java
index d7256cd43..9668a020c 100644
--- a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc17/db/SvnWcDbCopy.java
+++ b/svnkit/src/main/java/org/... | false | true | private static void copyShadowedLayer(SVNWCDbDir srcPdh, File srcRelpath, long srcOpDepth,
SVNWCDbDir dstPdh, File dstRelpath, long dstOpDepth, long delOpDepth, long reposId, File reposRelPath, long revision) throws SVNException {
Structure<NodeInfo> depthInfo = null;
try {
... | private static void copyShadowedLayer(SVNWCDbDir srcPdh, File srcRelpath, long srcOpDepth,
SVNWCDbDir dstPdh, File dstRelpath, long dstOpDepth, long delOpDepth, long reposId, File reposRelPath, long revision) throws SVNException {
Structure<NodeInfo> depthInfo = null;
try {
... |
diff --git a/infrastructure/tools/java/database/src/edu/uci/ics/sourcerer/db/tools/FileAccessor.java b/infrastructure/tools/java/database/src/edu/uci/ics/sourcerer/db/tools/FileAccessor.java
index aa653485..d70ee24d 100755
--- a/infrastructure/tools/java/database/src/edu/uci/ics/sourcerer/db/tools/FileAccessor.java
+++... | true | true | private static byte[] getFile(ProjectDB project, FileDB file, LocationDB location) {
if (file.getType() == File.JAR) {
JarIndex index = repo.getJarIndex();
IndexedJar indexed = index.getIndexedJar(file.getHash());
if (indexed == null) {
logger.log(Level.SEVERE, "Unable to find " + file +... | private static byte[] getFile(ProjectDB project, FileDB file, LocationDB location) {
if (file.getType() == File.JAR) {
JarIndex index = repo.getJarIndex();
IndexedJar indexed = index.getIndexedJar(file.getHash());
if (indexed == null) {
logger.log(Level.SEVERE, "Unable to find " + file +... |
diff --git a/src/fitnesse/testsystems/slim/HtmlTable.java b/src/fitnesse/testsystems/slim/HtmlTable.java
index d5fbc873f..f9f4619cb 100644
--- a/src/fitnesse/testsystems/slim/HtmlTable.java
+++ b/src/fitnesse/testsystems/slim/HtmlTable.java
@@ -1,383 +1,387 @@
// Copyright (C) 2003-2009 by Object Mentor, Inc. All righ... | true | true | public String formatTestResult() {
if (testResult.getExecutionResult() == null) {
return testResult.getMessage() != null ? testResult.getMessage() : originalContent;
}
final String escapedMessage = testResult.hasMessage() ? Utils.escapeHTML(testResult.getMessage()) : originalContent;
... | public String formatTestResult() {
if (testResult.getExecutionResult() == null) {
return testResult.getMessage() != null ? testResult.getMessage() : originalContent;
}
final String escapedMessage = testResult.hasMessage() ? Utils.escapeHTML(testResult.getMessage()) : originalContent;
... |
diff --git a/freeplane/src/org/freeplane/view/swing/map/attribute/CursorUpdater.java b/freeplane/src/org/freeplane/view/swing/map/attribute/CursorUpdater.java
index ede64830a..17dbf634f 100644
--- a/freeplane/src/org/freeplane/view/swing/map/attribute/CursorUpdater.java
+++ b/freeplane/src/org/freeplane/view/swing/map/... | true | true | private int getCursor(MouseEvent e) {
final AttributeTable table = (AttributeTable) e.getComponent();
final Point point = e.getPoint();
final int col = table.columnAtPoint(point);
if(col != 1){
return Cursor.DEFAULT_CURSOR;
}
final int row = table.rowAtPoint(e.getPoint());
if(row >= table.getRow... | private int getCursor(MouseEvent e) {
final AttributeTable table = (AttributeTable) e.getComponent();
final Point point = e.getPoint();
final int col = table.columnAtPoint(point);
if(col != 1){
return Cursor.DEFAULT_CURSOR;
}
final int row = table.rowAtPoint(e.getPoint());
if(row == -1 || row >... |
diff --git a/pmd-netbeans/src/pmd/RunPMDAction.java b/pmd-netbeans/src/pmd/RunPMDAction.java
index 16277275d..ac0d2b59f 100644
--- a/pmd-netbeans/src/pmd/RunPMDAction.java
+++ b/pmd-netbeans/src/pmd/RunPMDAction.java
@@ -1,392 +1,392 @@
/*
* Copyright (c) 2002-2003, the pmd-netbeans team
* All rights reserved.
... | true | true | public static List checkCookies( List dataobjects ) throws IOException {
SourceLevelQuery sourceLevelQuery =
(SourceLevelQuery) Lookup.getDefault().lookup(SourceLevelQuery.class);
RuleSet set = constructRuleSets();
PMD pmd_1_3 = null;
PMD pmd_1_... | public static List checkCookies( List dataobjects ) throws IOException {
SourceLevelQuery sourceLevelQuery =
(SourceLevelQuery) Lookup.getDefault().lookup(SourceLevelQuery.class);
RuleSet set = constructRuleSets();
PMD pmd_1_3 = null;
PMD pmd_1_... |
diff --git a/src/main/java/com/freeroom/projectci/beans/ReportService.java b/src/main/java/com/freeroom/projectci/beans/ReportService.java
index 18ee643..08888c8 100644
--- a/src/main/java/com/freeroom/projectci/beans/ReportService.java
+++ b/src/main/java/com/freeroom/projectci/beans/ReportService.java
@@ -1,72 +1,72 ... | true | true | public String utilityData() {
final DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyyMMdd");
final DateTime yesterday = new DateTime().minusDays(1);
DateTime date = new DateTime(2013, 7, 23, 0, 0, 0);
final StringBuilder sb = new StringBuilder();
sb.append("date\... | public String utilityData() {
final DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyyMMdd");
final DateTime yesterday = new DateTime().minusDays(1);
DateTime date = new DateTime(2014, 4, 15, 0, 0, 0);
final StringBuilder sb = new StringBuilder();
sb.append("date\... |
diff --git a/MonTransit/src/org/montrealtransit/android/activity/SplashScreen.java b/MonTransit/src/org/montrealtransit/android/activity/SplashScreen.java
index 3607dabf..66801380 100755
--- a/MonTransit/src/org/montrealtransit/android/activity/SplashScreen.java
+++ b/MonTransit/src/org/montrealtransit/android/activity... | true | true | private void deploy() {
MyLog.v(TAG, "deploy()");
if (!StmDbHelper.isDbExist(this)) {
showSplashScreen();
addProgressBar();
// show a progress dialog
this.progressBar.setIndeterminate(true);
this.progressBarMessageTitle.setVisibility(View.VISIBLE);
this.progressBarMessageTitle.setText(R.string.in... | private void deploy() {
MyLog.v(TAG, "deploy()");
if (!StmDbHelper.isDbExist(this)) {
showSplashScreen();
addProgressBar();
// show a progress dialog
this.progressBar.setIndeterminate(true);
this.progressBarMessageTitle.setVisibility(View.VISIBLE);
this.progressBarMessageTitle.setText(R.string.in... |
diff --git a/LabBook/source/GraphTool.java b/LabBook/source/GraphTool.java
index ff18aaf..33fda3e 100644
--- a/LabBook/source/GraphTool.java
+++ b/LabBook/source/GraphTool.java
@@ -1,341 +1,341 @@
/*
Copyright (C) 2001 Concord Consortium
This program is free software; you can redistribute it and/or
modify it unde... | false | true | public void dataReceived(DataEvent dataEvent)
{
if(dataEvent.type == DataEvent.DATA_READY_TO_START){
if(pm.getMode() == CCInterfaceManager.A2D_10_MODE){
slowUpdate = true;
} else {
slowUpdate = false;
}
numVals = 0;
curPtime = 0;
return;
}
if(slowUpdate){
if(dataEvent.... | public void dataReceived(DataEvent dataEvent)
{
if(dataEvent.type == DataEvent.DATA_READY_TO_START){
if(pm.getMode() == CCInterfaceManager.A2D_10_MODE){
slowUpdate = true;
} else {
slowUpdate = false;
}
numVals = 0;
curPtime = 0;
return;
}
if(slowUpdate){
if(dataEvent.... |
diff --git a/org.whole.lang.e4.ui/src/org/whole/lang/e4/ui/expressions/NotationsVisibleWhen.java b/org.whole.lang.e4.ui/src/org/whole/lang/e4/ui/expressions/NotationsVisibleWhen.java
index 080102518..247add40d 100644
--- a/org.whole.lang.e4.ui/src/org/whole/lang/e4/ui/expressions/NotationsVisibleWhen.java
+++ b/org.who... | true | true | public boolean isVisible(IBindingManager bm) {
if (!super.isVisible(bm))
return false;
return bm.wGet("viewer") instanceof E4GraphicalViewer;
}
| public boolean isVisible(IBindingManager bm) {
if (!super.isVisible(bm))
return false;
return bm.wGetValue("viewer") instanceof E4GraphicalViewer;
}
|
diff --git a/src/net/leifandersen/mobile/android/netcatch/activities/EpisodesListActivity.java b/src/net/leifandersen/mobile/android/netcatch/activities/EpisodesListActivity.java
index b2ca076..f4727fa 100644
--- a/src/net/leifandersen/mobile/android/netcatch/activities/EpisodesListActivity.java
+++ b/src/net/leifander... | true | true | protected Dialog onCreateDialog(int id, Bundle args) {
Dialog dialog = null;
switch(id) {
case NEW_FEED:
dialog = Tools.createSubscriptionDialog(this);
break;
case UNSUBSCRIBE:
dialog = Tools.createUnsubscribeDialog(this,
new DialogInterface.OnClickListener() {
BroadcastReceiver finishedRecei... | protected Dialog onCreateDialog(int id, Bundle args) {
Dialog dialog = null;
switch(id) {
case NEW_FEED:
dialog = Tools.createSubscriptionDialog(this);
break;
case UNSUBSCRIBE:
dialog = Tools.createUnsubscribeDialog(this,
new DialogInterface.OnClickListener() {
BroadcastReceiver finishedRecei... |
diff --git a/source/de/anomic/yacy/yacyRelease.java b/source/de/anomic/yacy/yacyRelease.java
index fb5c4f5df..2bdb0f7d6 100644
--- a/source/de/anomic/yacy/yacyRelease.java
+++ b/source/de/anomic/yacy/yacyRelease.java
@@ -1,660 +1,661 @@
// yacyVersion.java
// ----------------
// (C) 2007 by Michael Peter Christen; ... | true | true | public static void deployRelease(final File releaseFile) {
if(yacyBuildProperties.isPkgManager()) {
return;
}
//byte[] script = ("cd " + plasmaSwitchboard.getSwitchboard().getRootPath() + ";while [ -e ../yacy.running ]; do sleep 1;done;tar xfz " + release + ";cp -Rf yacy/* ../../... | public static void deployRelease(final File releaseFile) {
if(yacyBuildProperties.isPkgManager()) {
return;
}
//byte[] script = ("cd " + plasmaSwitchboard.getSwitchboard().getRootPath() + ";while [ -e ../yacy.running ]; do sleep 1;done;tar xfz " + release + ";cp -Rf yacy/* ../../... |
diff --git a/jason/asSemantics/TransitionSystem.java b/jason/asSemantics/TransitionSystem.java
index 7e8b98f..6ea8867 100644
--- a/jason/asSemantics/TransitionSystem.java
+++ b/jason/asSemantics/TransitionSystem.java
@@ -1,880 +1,885 @@
// ----------------------------------------------------------------------------
/... | false | true | private void applyExecInt() throws JasonException {
confP.step = State.ClrInt; // default next stop
if (conf.C.SI.isFinished()) {
return;
}
// get next formula in the body of the intended means
// on the top of the selected intention
Int... | private void applyExecInt() throws JasonException {
confP.step = State.ClrInt; // default next stop
if (conf.C.SI.isFinished()) {
return;
}
// get next formula in the body of the intended means
// on the top of the selected intention
Int... |
diff --git a/srcj/com/sun/electric/tool/user/menus/WindowMenu.java b/srcj/com/sun/electric/tool/user/menus/WindowMenu.java
index 3d1b322f2..53377e744 100644
--- a/srcj/com/sun/electric/tool/user/menus/WindowMenu.java
+++ b/srcj/com/sun/electric/tool/user/menus/WindowMenu.java
@@ -1,898 +1,898 @@
/* -*- tab-width: 4 -*... | false | true | static EMenu makeMenu() {
/****************************** THE WINDOW MENU ******************************/
// bindings for numpad keys. Need extra one because over VNC, they get sent as shift+KP_*
int ctrlshift = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() | InputEvent.SHIFT_MASK;
... | static EMenu makeMenu() {
/****************************** THE WINDOW MENU ******************************/
// bindings for numpad keys. Need extra one because over VNC, they get sent as shift+KP_*
int ctrlshift = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() | InputEvent.SHIFT_MASK;
... |
diff --git a/core/src/main/java/org/apache/mahout/cf/taste/impl/eval/GenericRecommenderIRStatsEvaluator.java b/core/src/main/java/org/apache/mahout/cf/taste/impl/eval/GenericRecommenderIRStatsEvaluator.java
index 1069bd51e..6c8463e72 100644
--- a/core/src/main/java/org/apache/mahout/cf/taste/impl/eval/GenericRecommende... | true | true | public IRStatistics evaluate(RecommenderBuilder recommenderBuilder,
DataModelBuilder dataModelBuilder,
DataModel dataModel,
IDRescorer rescorer,
int at,
double rel... | public IRStatistics evaluate(RecommenderBuilder recommenderBuilder,
DataModelBuilder dataModelBuilder,
DataModel dataModel,
IDRescorer rescorer,
int at,
double rel... |
diff --git a/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/FileRenameHelper.java b/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/FileRenameHelper.java
index 971490636..ab63201c9 100644
--- a/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui... | true | true | public static String checkFileRenamingWithinWebProjects(SWTWorkbenchBot bot , String oldFileName, String newFileName,
String[] treePathItems , String fileTreeItemSuffix){
bot.sleep(sleepTime);
SWTBot webProjects = eclipse.showView(ViewType.WEB_PROJECTS);
SWTBotTree tree = webProjects.tree(... | public static String checkFileRenamingWithinWebProjects(SWTWorkbenchBot bot , String oldFileName, String newFileName,
String[] treePathItems , String fileTreeItemSuffix){
bot.sleep(sleepTime);
SWTBot webProjects = eclipse.showView(ViewType.WEB_PROJECTS);
SWTBotTree tree = webProjects.tree(... |
diff --git a/src/com/android/email/view/CertificateSelector.java b/src/com/android/email/view/CertificateSelector.java
index d9d9e3eb..e180d11b 100644
--- a/src/com/android/email/view/CertificateSelector.java
+++ b/src/com/android/email/view/CertificateSelector.java
@@ -1,167 +1,169 @@
/*
* Copyright (C) 2011 The An... | true | true | public void onClick(View target) {
if (target == mSelectButton && mActivity != null) {
if (hasCertificate()) {
// Handle the click on the button when it says "Remove"
setCertificate(null);
} else {
// We don't restrict the chooser for ... | public void onClick(View target) {
if (target == mSelectButton && mActivity != null) {
if (hasCertificate()) {
// Handle the click on the button when it says "Remove"
setCertificate(null);
} else {
// We don't restrict the chooser for ... |
diff --git a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/FeedbackForm.java b/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/FeedbackForm.java
index e730f596f..12b7a2932 100644
--- a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspac... | true | true | public void addBody(Body body) throws SAXException, WingException,
UIException, SQLException, IOException, AuthorizeException
{
// Build the item viewer division.
Division feedback = body.addInteractiveDivision("feedback-form",
contextPath+"/feedback",Division.METHOD... | public void addBody(Body body) throws SAXException, WingException,
UIException, SQLException, IOException, AuthorizeException
{
// Build the item viewer division.
Division feedback = body.addInteractiveDivision("feedback-form",
contextPath+"/feedback",Division.METHOD... |
diff --git a/poulpe-view/poulpe-web-controller/src/main/java/org/jtalks/poulpe/web/controller/section/dialogs/DeleteBranchDialogVm.java b/poulpe-view/poulpe-web-controller/src/main/java/org/jtalks/poulpe/web/controller/section/dialogs/DeleteBranchDialogVm.java
index bd311d60..52289d47 100644
--- a/poulpe-view/poulpe-we... | true | true | public void confirmDeleteBranchWithContent() {
PoulpeBranch selectedBranch = forumStructureVm.getSelectedItemInTree().getBranchItem();
try {
forumStructureService.removeBranch(selectedBranch);
} catch (NoConnectionToJcommuneException e) {
Messagebox.show(Labels.getLab... | public void confirmDeleteBranchWithContent() {
PoulpeBranch selectedBranch = forumStructureVm.getSelectedItemInTree().getBranchItem();
try {
forumStructureService.removeBranch(selectedBranch);
forumStructureVm.removeBranchFromTree(selectedBranch);
} catch (NoConnectio... |
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/AbstractBugEditor.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/AbstractBugEditor.java
index 484b99962..0e298be17 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/Abstra... | true | true | protected void createAttributeLayout() {
String title = getTitleString();
String keywords = "";
String url = "";
// Attributes Composite- this holds all the combo fiels and text
// fields
Composite attributesComposite = new Composite(infoArea, SWT.NONE);
GridLayout attributesLayout = new GridLayout();... | protected void createAttributeLayout() {
String title = getTitleString();
String keywords = "";
String url = "";
// Attributes Composite- this holds all the combo fiels and text
// fields
Composite attributesComposite = new Composite(infoArea, SWT.NONE);
GridLayout attributesLayout = new GridLayout();... |
diff --git a/source/src/main/java/com/redcats/tst/dao/impl/ProjectDAO.java b/source/src/main/java/com/redcats/tst/dao/impl/ProjectDAO.java
index b68d27f20..8d34d1790 100644
--- a/source/src/main/java/com/redcats/tst/dao/impl/ProjectDAO.java
+++ b/source/src/main/java/com/redcats/tst/dao/impl/ProjectDAO.java
@@ -1,80 +1... | true | true | public List<Project> findAllProject() {
List<Project> result = null;
String idProject;
String vcCode;
String description;
final String query = "SELECT * FROM project ORDER BY idproject";
Connection connection = this.databaseSpring.connect();
try {
... | public List<Project> findAllProject() {
List<Project> result = null;
String idProject;
String vcCode;
String description;
final String query = "SELECT * FROM project ORDER BY idproject";
Connection connection = this.databaseSpring.connect();
try {
... |
diff --git a/src/main/java/org/codehaus/mojo/nbm/RunNetBeansMojo.java b/src/main/java/org/codehaus/mojo/nbm/RunNetBeansMojo.java
index 6311d4d..421b8b1 100644
--- a/src/main/java/org/codehaus/mojo/nbm/RunNetBeansMojo.java
+++ b/src/main/java/org/codehaus/mojo/nbm/RunNetBeansMojo.java
@@ -1,183 +1,186 @@
/* ===========... | true | true | public void execute() throws MojoExecutionException, MojoFailureException
{
netbeansUserdir.mkdirs();
List clusters = new ArrayList();
File[] fls = clusterBuildDir.listFiles();
for ( int i = 0; i < fls.length; i++ )
{
if ( fls[i].isDirectory() )
{... | public void execute() throws MojoExecutionException, MojoFailureException
{
netbeansUserdir.mkdirs();
List clusters = new ArrayList();
if (!clusterBuildDir.exists() || clusterBuildDir.listFiles() == null) {
throw new MojoExecutionException("No clusters to include in executio... |
diff --git a/main/src/cgeo/geocaching/MainActivity.java b/main/src/cgeo/geocaching/MainActivity.java
index 6d8999198..ba7795a65 100644
--- a/main/src/cgeo/geocaching/MainActivity.java
+++ b/main/src/cgeo/geocaching/MainActivity.java
@@ -1,726 +1,727 @@
package cgeo.geocaching;
import butterknife.ButterKnife;
impor... | true | true | private void init() {
if (initialized) {
return;
}
initialized = true;
Settings.setLanguage(Settings.isUseEnglish());
findOnMap.setClickable(true);
findOnMap.setOnClickListener(new OnClickListener() {
@Override
public void onClic... | private void init() {
if (initialized) {
return;
}
initialized = true;
Settings.setLanguage(Settings.isUseEnglish());
findOnMap.setClickable(true);
findOnMap.setOnClickListener(new OnClickListener() {
@Override
public void onClic... |
diff --git a/tools/host/src/com/android/cts/TestSession.java b/tools/host/src/com/android/cts/TestSession.java
index 2ac840b1..3a159e22 100644
--- a/tools/host/src/com/android/cts/TestSession.java
+++ b/tools/host/src/com/android/cts/TestSession.java
@@ -1,615 +1,618 @@
/*
* Copyright (C) 2008 The Android Open Sourc... | true | true | public void run() {
Log.d("Start a test session.");
mNeedRestartAdbServer = false;
mResultObserver.setTestSessionLog(getSessionLog());
mResultObserver.start();
try {
if (mTest != null) {
TestPackage pkg = mTest.getT... | public void run() {
Log.d("Start a test session.");
mNeedRestartAdbServer = false;
mResultObserver.setTestSessionLog(getSessionLog());
mResultObserver.start();
try {
if (mTest != null) {
TestPackage pkg = mTest.getT... |
diff --git a/sip-servlets-test-suite/testsuite/src/main/java/org/mobicents/servlet/sip/SipEmbedded.java b/sip-servlets-test-suite/testsuite/src/main/java/org/mobicents/servlet/sip/SipEmbedded.java
index 36191538b..246ce34b2 100644
--- a/sip-servlets-test-suite/testsuite/src/main/java/org/mobicents/servlet/sip/SipEmbedd... | true | true | private ClassLoader createClassLoader(String name, ClassLoader parent)
throws Exception {
String value = CatalinaProperties.getProperty(name + ".loader");
if ((value == null) || (value.equals("")))
return parent;
ArrayList repositoryLocations = new ArrayList();
... | private ClassLoader createClassLoader(String name, ClassLoader parent)
throws Exception {
String value = CatalinaProperties.getProperty(name + ".loader");
if ((value == null) || (value.equals("")))
return parent;
ArrayList repositoryLocations = new ArrayList();
... |
diff --git a/src/net/java/sip/communicator/impl/neomedia/jmfext/media/renderer/video/JAWTRenderer.java b/src/net/java/sip/communicator/impl/neomedia/jmfext/media/renderer/video/JAWTRenderer.java
index 609b28089..1e0aa1770 100644
--- a/src/net/java/sip/communicator/impl/neomedia/jmfext/media/renderer/video/JAWTRenderer.... | true | true | public synchronized Component getComponent()
{
if (component == null)
{
component = new Canvas()
{
/**
* The indicator which determines whether the native counterpart
* of this <tt>JAWTRenderer</tt> wants <tt>paint</tt> ca... | public synchronized Component getComponent()
{
if (component == null)
{
component = new Canvas()
{
/**
* The indicator which determines whether the native counterpart
* of this <tt>JAWTRenderer</tt> wants <tt>paint</tt> ca... |
diff --git a/tests/DiagTalker.java b/tests/DiagTalker.java
index 85a6671e..04e12327 100644
--- a/tests/DiagTalker.java
+++ b/tests/DiagTalker.java
@@ -1,69 +1,70 @@
/* A yet very simple tool to talk to imdiag.
*
* Copyright 2009 Rainer Gerhards and Adiscon GmbH.
*
* This file is part of rsyslog.
*
* Rsyslo... | true | true | public static void main(String[] args) throws IOException {
Socket diagSocket = null;
PrintWriter out = null;
BufferedReader in = null;
final String host = "127.0.0.1";
final int port = 13500;
try {
diagSocket = new Socket(host, port);
out = new PrintWrite... | public static void main(String[] args) throws IOException {
Socket diagSocket = null;
PrintWriter out = null;
BufferedReader in = null;
final String host = "127.0.0.1";
final int port = 13500;
try {
diagSocket = new Socket(host, port);
diagSocket.setSoTimeout(0);... |
diff --git a/main/src/cgeo/geocaching/export/GpxExport.java b/main/src/cgeo/geocaching/export/GpxExport.java
index 084a37855..6ed0a3ecd 100644
--- a/main/src/cgeo/geocaching/export/GpxExport.java
+++ b/main/src/cgeo/geocaching/export/GpxExport.java
@@ -1,325 +1,325 @@
package cgeo.geocaching.export;
import cgeo.geo... | false | true | protected Boolean doInBackground(Void... params) {
// quick check for being able to write the GPX file
if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
return false;
}
Writer gpx = null;
try {
... | protected Boolean doInBackground(Void... params) {
// quick check for being able to write the GPX file
if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
return false;
}
Writer gpx = null;
try {
... |
diff --git a/expleo/app/models/Template.java b/expleo/app/models/Template.java
index c94d73c..6cf1c6d 100644
--- a/expleo/app/models/Template.java
+++ b/expleo/app/models/Template.java
@@ -1,161 +1,161 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package mo... | true | true | public static String upload(String name, String description, File template)
{
try
{
FileStringReader reader = new FileStringReader(template);
String text = reader.read();
if(!Helper.isUtf8(text))
{
return "File must be in UTF 8.";... | public static String upload(String name, String description, File template)
{
try
{
FileStringReader reader = new FileStringReader(template);
String text = reader.read();
if(!Helper.isUtf8(text))
{
return "File must be in Plaintex... |
diff --git a/src/org/ebookdroid/core/DecodeServiceBase.java b/src/org/ebookdroid/core/DecodeServiceBase.java
index 3e9b8bfc..4ff193f2 100644
--- a/src/org/ebookdroid/core/DecodeServiceBase.java
+++ b/src/org/ebookdroid/core/DecodeServiceBase.java
@@ -1,643 +1,645 @@
package org.ebookdroid.core;
import org.ebookdroi... | true | true | void performDecode(final DecodeTask task) {
if (executor.isTaskDead(task)) {
if (LCTX.isDebugEnabled()) {
LCTX.d("Task " + task.id + ": Skipping dead decode task for " + task.node);
}
return;
}
if (LCTX.isDebugEnabled()) {
LCTX... | void performDecode(final DecodeTask task) {
if (executor.isTaskDead(task)) {
if (LCTX.isDebugEnabled()) {
LCTX.d("Task " + task.id + ": Skipping dead decode task for " + task.node);
}
return;
}
if (LCTX.isDebugEnabled()) {
LCTX... |
diff --git a/src/com/qiniu/utils/MultipartEntity.java b/src/com/qiniu/utils/MultipartEntity.java
index 0765262..bf2e06a 100644
--- a/src/com/qiniu/utils/MultipartEntity.java
+++ b/src/com/qiniu/utils/MultipartEntity.java
@@ -1,120 +1,120 @@
package com.qiniu.utils;
import org.apache.http.entity.AbstractHttpEntity;
... | false | true | public void writeTo(OutputStream outputStream) throws IOException {
outputStream.write(String.format(fileTpl, mBoundary, mField, mFilename, mContentType).getBytes());
outputStream.flush();
int blockSize = 256 * 1 << 10;
long index = 0;
long length = mIsa.length();
while(index < length) {
int re... | public void writeTo(OutputStream outputStream) throws IOException {
outputStream.write(String.format(fileTpl, mBoundary, mField, mFilename, mContentType).getBytes());
outputStream.flush();
int blockSize = 256 * 1024;
long index = 0;
long length = mIsa.length();
while (index < length) {
int read... |
diff --git a/src/org/geometerplus/fbreader/fbreader/FBView.java b/src/org/geometerplus/fbreader/fbreader/FBView.java
index c62b417b..b8365cde 100644
--- a/src/org/geometerplus/fbreader/fbreader/FBView.java
+++ b/src/org/geometerplus/fbreader/fbreader/FBView.java
@@ -1,599 +1,599 @@
/*
* Copyright (C) 2007-2011 Geome... | true | true | public synchronized void paint(ZLPaintContext context) {
final FBReaderApp reader = myReader;
if (reader == null) {
return;
}
final BookModel model = reader.Model;
if (model == null) {
return;
}
//final ZLColor bgColor = getBackgroundColor();
// TODO: separate color option for footer ... | public synchronized void paint(ZLPaintContext context) {
final FBReaderApp reader = myReader;
if (reader == null) {
return;
}
final BookModel model = reader.Model;
if (model == null) {
return;
}
//final ZLColor bgColor = getBackgroundColor();
// TODO: separate color option for footer ... |
diff --git a/src/java/azkaban/utils/Utils.java b/src/java/azkaban/utils/Utils.java
index 257508ad..44edfaab 100644
--- a/src/java/azkaban/utils/Utils.java
+++ b/src/java/azkaban/utils/Utils.java
@@ -1,393 +1,393 @@
/*
* Copyright 2012 LinkedIn Corp.
*
* Licensed under the Apache License, Version 2.0 (the "Licen... | true | true | public static ReadablePeriod parsePeriodString(String periodStr) {
ReadablePeriod period;
char periodUnit = periodStr.charAt(periodStr.length() - 1);
if (periodUnit == 'n') {
return null;
}
int periodInt = Integer.parseInt(periodStr.substring(0,
periodStr.length() - 1));
switch (periodUnit) {
cas... | public static ReadablePeriod parsePeriodString(String periodStr) {
ReadablePeriod period;
char periodUnit = periodStr.charAt(periodStr.length() - 1);
if (periodStr.equals("null") || periodUnit == 'n') {
return null;
}
int periodInt = Integer.parseInt(periodStr.substring(0,
periodStr.length() - 1));
... |
diff --git a/components/src/org/riotfamily/components/config/ComponentListConfig.java b/components/src/org/riotfamily/components/config/ComponentListConfig.java
index d26366cf0..37c9ab68d 100644
--- a/components/src/org/riotfamily/components/config/ComponentListConfig.java
+++ b/components/src/org/riotfamily/components... | true | true | public ComponentListConfig(Integer min, Integer max, List<String> initial, List<?> valid) {
this.min = min;
this.max = max;
if (initial != null) {
initialTypes.addAll(initial);
}
if (valid != null) {
for (Object obj : valid) {
ComponentConfig config = new ComponentConfig(obj);
validTypes.put(c... | public ComponentListConfig(Integer min, Integer max, List<String> initial, List<?> valid) {
this.min = min;
this.max = max;
if (initial != null) {
initialTypes.addAll(initial);
}
if (valid != null && !valid.isEmpty()) {
for (Object obj : valid) {
ComponentConfig config = new ComponentConfig(obj);
... |
diff --git a/libs/gino-runner/src/main/java/gino/Runner.java b/libs/gino-runner/src/main/java/gino/Runner.java
index e47bac7..abc679f 100644
--- a/libs/gino-runner/src/main/java/gino/Runner.java
+++ b/libs/gino-runner/src/main/java/gino/Runner.java
@@ -1,48 +1,48 @@
package gino;
import java.io.IOException;
impo... | true | true | public static Object run(String scriptFileName, Object[] args, ClassLoader classLoader, Object logger) throws IOException {
Object result;
Context cx = enterContext(classLoader);
try {
ScriptableObject scope = createScope(cx, logger);
Object bootFunc = Functions.loadScript(cx, scope, "gino/boo... | public static Object run(String scriptFileName, Object[] args, ClassLoader classLoader, Object logger) throws IOException {
Object result;
Context cx = enterContext(classLoader);
try {
ScriptableObject scope = createScope(cx, logger);
Object bootFunc = Functions.loadScript(cx, scope, "gino/boo... |
diff --git a/asm/src/org/objectweb/asm/tree/FrameNode.java b/asm/src/org/objectweb/asm/tree/FrameNode.java
index f0137b65..45250245 100644
--- a/asm/src/org/objectweb/asm/tree/FrameNode.java
+++ b/asm/src/org/objectweb/asm/tree/FrameNode.java
@@ -1,208 +1,206 @@
/***
* ASM: a very small and fast Java bytecode manipu... | true | true | public FrameNode(
final int type,
final int nLocal,
final Object[] local,
final int nStack,
final Object[] stack)
{
super(-1);
this.type = type;
switch (type) {
case Opcodes.F_NEW:
case Opcodes.F_FULL:
this.l... | public FrameNode(
final int type,
final int nLocal,
final Object[] local,
final int nStack,
final Object[] stack)
{
super(-1);
this.type = type;
switch (type) {
case Opcodes.F_NEW:
case Opcodes.F_FULL:
this.l... |
diff --git a/src/InvTweaksHandlerSorting.java b/src/InvTweaksHandlerSorting.java
index 03b4c06..2108f58 100644
--- a/src/InvTweaksHandlerSorting.java
+++ b/src/InvTweaksHandlerSorting.java
@@ -1,659 +1,659 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterat... | true | true | public void sort() throws TimeoutException {
// Do nothing if the inventory is closed
// if (!mc.hrrentScreen instanceof GuiContainer)
// return;
long timer = System.nanoTime();
InvTweaksContainerManager globalContainer = new InvTweaksContainerManager(m... | public void sort() throws TimeoutException {
// Do nothing if the inventory is closed
// if (!mc.hrrentScreen instanceof GuiContainer)
// return;
long timer = System.nanoTime();
InvTweaksContainerManager globalContainer = new InvTweaksContainerManager(m... |
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsConf.java b/Essentials/src/com/earth2me/essentials/EssentialsConf.java
index 616f39a6..124dc6fd 100644
--- a/Essentials/src/com/earth2me/essentials/EssentialsConf.java
+++ b/Essentials/src/com/earth2me/essentials/EssentialsConf.java
@@ -1,120 +1,121 @@
pack... | false | true | private void createFromTemplate()
{
OutputStream ostr = null;
try
{
InputStream istr = resourceClass.getResourceAsStream(templateName);
if (istr == null)
{
logger.log(Level.SEVERE, "Could not find template " + templateName);
return;
}
ostr = new FileOutputStream(configFile);
byte[] buf... | private void createFromTemplate()
{
OutputStream ostr = null;
try
{
InputStream istr = resourceClass.getResourceAsStream(templateName);
if (istr == null)
{
logger.log(Level.SEVERE, "Could not find template " + templateName);
return;
}
ostr = new FileOutputStream(configFile);
byte[] buf... |
diff --git a/x10.compiler/src/x10/types/X10TypeMixin.java b/x10.compiler/src/x10/types/X10TypeMixin.java
index 7b2634a6e..e95d4f401 100644
--- a/x10.compiler/src/x10/types/X10TypeMixin.java
+++ b/x10.compiler/src/x10/types/X10TypeMixin.java
@@ -1,1761 +1,1765 @@
/*
* This file is part of the X10 project (http://x10... | false | true | public static boolean isHaszero(Type t, Context xc) {
TypeSystem ts = xc.typeSystem();
XLit zeroLit = null; // see Lit_c.constantValue() in its decendants
if (t.isBoolean()) {
zeroLit = XTerms.FALSE;
} else if (ts.isChar(t)) {
zeroLit = XTerms.ZERO_CHAR;
... | public static boolean isHaszero(Type t, Context xc) {
TypeSystem ts = xc.typeSystem();
XLit zeroLit = null; // see Lit_c.constantValue() in its decendants
if (t.isBoolean()) {
zeroLit = XTerms.FALSE;
} else if (ts.isChar(t)) {
zeroLit = XTerms.ZERO_CHAR;
... |
diff --git a/src/gb-actions-unredd/script/src/main/java/it/geosolutions/geobatch/unredd/script/util/GeoStoreFacade.java b/src/gb-actions-unredd/script/src/main/java/it/geosolutions/geobatch/unredd/script/util/GeoStoreFacade.java
index 2f2f308..29b15e6 100644
--- a/src/gb-actions-unredd/script/src/main/java/it/geosoluti... | true | true | public void setStatsData(Resource statsDef, String statsContent, String year, String month, String day) throws GeoStoreException {
try {
Resource statsData = this.searchStatsData(statsDef.getName(), year, month, day);
if (statsData == null) {
LOGGER.info("No StatsDat... | public void setStatsData(Resource statsDef, String statsContent, String year, String month, String day) throws GeoStoreException {
try {
Resource statsData = this.searchStatsData(statsDef.getName(), year, month, day);
if (statsData == null) {
LOGGER.info("No StatsDat... |
diff --git a/src/main/java/net/aufdemrand/denizen/scripts/commands/core/RunCommand.java b/src/main/java/net/aufdemrand/denizen/scripts/commands/core/RunCommand.java
index 48ba327ff..194e373d6 100644
--- a/src/main/java/net/aufdemrand/denizen/scripts/commands/core/RunCommand.java
+++ b/src/main/java/net/aufdemrand/deniz... | false | true | public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
dB.report(scriptEntry, getName(),
(scriptEntry.hasObject("script") ? scriptEntry.getdObject("script").debug() : scriptEntry.getScript().debug())
+ (scriptEntry.hasObject("instant") ? scrip... | public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
dB.report(scriptEntry, getName(),
(scriptEntry.hasObject("script") ? scriptEntry.getdObject("script").debug() : scriptEntry.getScript().debug())
+ (scriptEntry.hasObject("instant") ? scrip... |
diff --git a/src/plugin/languageidentifier/src/test/org/apache/nutch/analysis/lang/TestLanguageIdentifier.java b/src/plugin/languageidentifier/src/test/org/apache/nutch/analysis/lang/TestLanguageIdentifier.java
index 902ed411..160f4e8f 100644
--- a/src/plugin/languageidentifier/src/test/org/apache/nutch/analysis/lang/T... | true | true | public void testIdentify() {
try {
long total = 0;
LanguageIdentifier idfr = LanguageIdentifier.getInstance();
BufferedReader in = new BufferedReader(new InputStreamReader(
this.getClass().getResourceAsStream("test-referencial.txt")));
... | public void testIdentify() {
try {
long total = 0;
LanguageIdentifier idfr = LanguageIdentifier.getInstance();
BufferedReader in = new BufferedReader(new InputStreamReader(
this.getClass().getResourceAsStream("test-referencial.txt")));
... |
diff --git a/webapp/lib/src/main/java/com/github/podd/impl/PoddArtifactManagerImpl.java b/webapp/lib/src/main/java/com/github/podd/impl/PoddArtifactManagerImpl.java
index 46a44b7c..9e8b2c84 100644
--- a/webapp/lib/src/main/java/com/github/podd/impl/PoddArtifactManagerImpl.java
+++ b/webapp/lib/src/main/java/com/github/... | true | true | public Model updateArtifact(final URI artifactUri, final URI versionUri, final Collection<URI> objectUris,
final InputStream inputStream, RDFFormat format, final UpdatePolicy updatePolicy,
final DanglingObjectPolicy danglingObjectAction, final DataReferenceVerificationPolicy fileReferenceAct... | public Model updateArtifact(final URI artifactUri, final URI versionUri, final Collection<URI> objectUris,
final InputStream inputStream, RDFFormat format, final UpdatePolicy updatePolicy,
final DanglingObjectPolicy danglingObjectAction, final DataReferenceVerificationPolicy fileReferenceAct... |
diff --git a/javamelody-core/src/main/java/net/bull/javamelody/SpringDataSourceBeanPostProcessor.java b/javamelody-core/src/main/java/net/bull/javamelody/SpringDataSourceBeanPostProcessor.java
index d2e290fc..eee8b1de 100644
--- a/javamelody-core/src/main/java/net/bull/javamelody/SpringDataSourceBeanPostProcessor.java
... | false | true | public Object postProcessAfterInitialization(final Object bean, String beanName) {
if (bean instanceof DataSource) {
final DataSource dataSource = (DataSource) bean;
JdbcWrapperHelper.registerSpringDataSource(beanName, dataSource);
return JdbcWrapper.SINGLETON.createDataSourceProxy(beanName, dataSource);
... | public Object postProcessAfterInitialization(final Object bean, final String beanName) {
if (bean instanceof DataSource) {
final DataSource dataSource = (DataSource) bean;
JdbcWrapperHelper.registerSpringDataSource(beanName, dataSource);
return JdbcWrapper.SINGLETON.createDataSourceProxy(beanName, dataSourc... |
diff --git a/Web/EarlyAccessUpdate/src/main/java/EarlyAccessUpdate.java b/Web/EarlyAccessUpdate/src/main/java/EarlyAccessUpdate.java
index 5581a3b..5ba48bb 100644
--- a/Web/EarlyAccessUpdate/src/main/java/EarlyAccessUpdate.java
+++ b/Web/EarlyAccessUpdate/src/main/java/EarlyAccessUpdate.java
@@ -1,64 +1,64 @@
import i... | true | true | public static void main(String[] args) throws Exception {
String user = args[0];
String password = args[1];
String oldMilestone = args[2];
String newMilestone = args[3];
String oldBuildNumber = args[4];
String newBuildNumber = args[5];
String buildVersion = a... | public static void main(String[] args) throws Exception {
String user = args[0];
String password = args[1];
String oldMilestone = args[2];
String newMilestone = args[3];
String oldBuildNumber = args[4];
String newBuildNumber = args[5];
String buildVersion = a... |
diff --git a/target_explorer/plugins/org.eclipse.tm.te.tcf.locator/src/org/eclipse/tm/te/tcf/locator/nodes/LocatorModel.java b/target_explorer/plugins/org.eclipse.tm.te.tcf.locator/src/org/eclipse/tm/te/tcf/locator/nodes/LocatorModel.java
index d92ae9cae..fd7345eba 100644
--- a/target_explorer/plugins/org.eclipse.tm.te... | true | true | public IPeerModel validatePeerNodeForAdd(IPeerModel node) {
Assert.isNotNull(node);
Assert.isTrue(Protocol.isDispatchThread());
// Get the peer from the peer node
IPeer peer = node.getPeer();
IPeerModel result = node;
// Check on the filtered by preference settings what to do
boolean isFilterByAgentId... | public IPeerModel validatePeerNodeForAdd(IPeerModel node) {
Assert.isNotNull(node);
Assert.isTrue(Protocol.isDispatchThread());
// Get the peer from the peer node
IPeer peer = node.getPeer();
IPeerModel result = node;
// Check on the filtered by preference settings what to do
boolean isFilterByAgentId... |
diff --git a/deegree-services/deegree-services-csw/src/main/java/org/deegree/services/csw/getrecordbyid/GetRecordByIdKVPAdapter.java b/deegree-services/deegree-services-csw/src/main/java/org/deegree/services/csw/getrecordbyid/GetRecordByIdKVPAdapter.java
index 6807eb1ba9..d9181c021c 100644
--- a/deegree-services/deegre... | false | true | private static GetRecordById parse202( Version version202, Map<String, String> normalizedKVPParams,
String defaultOutputFormat, String defaultOuputSchema ) {
// outputFormat (optional)
String outputFormat = KVPUtils.getDefault( normalizedKVPParams, "output... | private static GetRecordById parse202( Version version202, Map<String, String> normalizedKVPParams,
String defaultOutputFormat, String defaultOuputSchema ) {
// outputFormat (optional)
String outputFormat = KVPUtils.getDefault( normalizedKVPParams, "output... |
diff --git a/src/main/java/com/mysema/webmin/impl/MinifierHandler.java b/src/main/java/com/mysema/webmin/impl/MinifierHandler.java
index 1fb57ec..633c003 100644
--- a/src/main/java/com/mysema/webmin/impl/MinifierHandler.java
+++ b/src/main/java/com/mysema/webmin/impl/MinifierHandler.java
@@ -1,244 +1,245 @@
/*
* Cop... | true | true | public void handle(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
String path = request.getRequestURI().substring(request.getContextPath().length());
int i = path.indexOf(';');
if (i > -1){
// strip jsessionid paramete... | public void handle(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
String path = request.getRequestURI().substring(request.getContextPath().length());
int i = path.indexOf(';');
if (i > -1){
// strip jsessionid paramete... |
diff --git a/memory_structure/src/main/java/fr/sciencespo/medialab/hci/memorystructure/util/LRUUtil.java b/memory_structure/src/main/java/fr/sciencespo/medialab/hci/memorystructure/util/LRUUtil.java
index 4e46ce16..b7e51d94 100644
--- a/memory_structure/src/main/java/fr/sciencespo/medialab/hci/memorystructure/util/LRUU... | false | true | public static String revertLRU(String lru) {
if(lru == null) {
return null;
}
lru = lru.trim();
if(StringUtils.isEmpty(lru)) {
return null;
}
String url = "";
Scanner scanner = new Scanner(lru);
scanner.useDelimiter("\\|");
... | public static String revertLRU(String lru) {
if(lru == null) {
return null;
}
lru = lru.trim();
if(StringUtils.isEmpty(lru)) {
return null;
}
String url = "";
Scanner scanner = new Scanner(lru);
scanner.useDelimiter("\\|");
... |
diff --git a/roo/shell/src/main/java/org/springframework/roo/shell/AbstractShell.java b/roo/shell/src/main/java/org/springframework/roo/shell/AbstractShell.java
index d74b3ed1..5a088463 100644
--- a/roo/shell/src/main/java/org/springframework/roo/shell/AbstractShell.java
+++ b/roo/shell/src/main/java/org/springframewor... | true | true | public void script(
@CliOption(key = { "", "file" }, help = "The file to locate and execute", mandatory = true) final File script,
@CliOption(key = "lineNumbers", mandatory = false, specifiedDefaultValue = "true", unspecifiedDefaultValue = "false", help = "Display line numbers when executing... | public void script(
@CliOption(key = { "", "file" }, help = "The file to locate and execute", mandatory = true) final File script,
@CliOption(key = "lineNumbers", mandatory = false, specifiedDefaultValue = "true", unspecifiedDefaultValue = "false", help = "Display line numbers when executing... |
diff --git a/com/ai/myplugin/ShellCmdSensor.java b/com/ai/myplugin/ShellCmdSensor.java
index 738aeb8..3d135a1 100644
--- a/com/ai/myplugin/ShellCmdSensor.java
+++ b/com/ai/myplugin/ShellCmdSensor.java
@@ -1,237 +1,237 @@
/**
* User: pizuricv
* Date: 12/20/12
*/
package com.ai.myplugin;
import com.ai.bayes.mode... | true | true | public TestResult execute(TestSessionContext testSessionContext) {
try {
Runtime rt = Runtime.getRuntime();
Process process = rt.exec(command);
StreamGobbler errorGobbler = new StreamGobbler(process.getErrorStream(), StdType.ERROR);
StreamGobbler outputGobbl... | public TestResult execute(TestSessionContext testSessionContext) {
try {
Runtime rt = Runtime.getRuntime();
Process process = rt.exec(command);
StreamGobbler errorGobbler = new StreamGobbler(process.getErrorStream(), StdType.ERROR);
StreamGobbler outputGobbl... |
diff --git a/riot/src/org/riotfamily/riot/list/ui/ListModel.java b/riot/src/org/riotfamily/riot/list/ui/ListModel.java
index f0ff71b36..36d2c4a70 100644
--- a/riot/src/org/riotfamily/riot/list/ui/ListModel.java
+++ b/riot/src/org/riotfamily/riot/list/ui/ListModel.java
@@ -1,138 +1,140 @@
/* ***** BEGIN LICENSE BLOCK *... | true | true | public ListModel(int itemsTotal, int pageSize, int currentPage) {
this.itemsTotal = itemsTotal;
this.pageSize = pageSize;
this.currentPage = currentPage;
pages = (int) itemsTotal / pageSize + 1;
if (itemsTotal % pageSize == 0) {
pages--;
}
}
| public ListModel(int itemsTotal, int pageSize, int currentPage) {
this.itemsTotal = itemsTotal;
this.pageSize = pageSize;
this.currentPage = currentPage;
if (pageSize > 0) {
pages = (int) itemsTotal / pageSize + 1;
if (itemsTotal % pageSize == 0) {
pages--;
}
}
}
|
diff --git a/src/keepcalm/mods/bukkit/forgeHandler/ForgeEventHandler.java b/src/keepcalm/mods/bukkit/forgeHandler/ForgeEventHandler.java
index 4988dee..5fb4589 100644
--- a/src/keepcalm/mods/bukkit/forgeHandler/ForgeEventHandler.java
+++ b/src/keepcalm/mods/bukkit/forgeHandler/ForgeEventHandler.java
@@ -1,822 +1,822 @@... | true | true | public void onEntityJoinWorld(EntityJoinWorldEvent ev) {
if (!ready || isClient) return;
if (ev.entity instanceof EntityLiving && !(ev.entity instanceof EntityPlayer)) {// || ev.entity instanceof EntityPlayerMP) {
ev.setCanceled(BukkitEventRouters.Entity.CreatureSpawn.callEvent(ev.isCanceled(), ToBukkitEvent.... | public void onEntityJoinWorld(EntityJoinWorldEvent ev) {
if (!ready || isClient) return;
if (ev.entity instanceof EntityLiving && !(ev.entity instanceof EntityPlayer)) {// || ev.entity instanceof EntityPlayerMP) {
ev.setCanceled(BukkitEventRouters.Entity.CreatureSpawn.callEvent(ev.isCanceled(), ToBukkitEvent.... |
diff --git a/SeriesGuide/src/com/battlelancer/seriesguide/appwidget/ListWidgetProvider.java b/SeriesGuide/src/com/battlelancer/seriesguide/appwidget/ListWidgetProvider.java
index 7e9d48780..36e4a3b2b 100644
--- a/SeriesGuide/src/com/battlelancer/seriesguide/appwidget/ListWidgetProvider.java
+++ b/SeriesGuide/src/com/ba... | false | true | public static RemoteViews buildRemoteViews(Context context, int appWidgetId) {
// Here we setup the intent which points to the StackViewService
// which will provide the views for this collection.
Intent intent = new Intent(context, ListWidgetService.class);
intent.putExtra(AppWidge... | public static RemoteViews buildRemoteViews(Context context, int appWidgetId) {
// Here we setup the intent which points to the StackViewService
// which will provide the views for this collection.
Intent intent = new Intent(context, ListWidgetService.class);
intent.putExtra(AppWidge... |
diff --git a/src/robot/subsystems/HopperSubsystem.java b/src/robot/subsystems/HopperSubsystem.java
index fcdd6f7..21ad6e1 100644
--- a/src/robot/subsystems/HopperSubsystem.java
+++ b/src/robot/subsystems/HopperSubsystem.java
@@ -1,78 +1,79 @@
package robot.subsystems;
import edu.wpi.first.wpilibj.DoubleSolenoid;
i... | false | true | public void update(boolean requestRelease) {
double now = Timer.getFPGATimestamp();
if(now - lastReleaseTime > RELEASE_DELAY.get()) {
this.requestRelease = !this.requestRelease ? true : this.requestRelease;
}
if(requestRelease) {
//Record the... | public void update(boolean requestShot) {
double now = Timer.getFPGATimestamp();
if(requestShot && now - lastReleaseTime > RELEASE_DELAY.get()) {
requestRelease = !requestRelease ? true : requestRelease;
}
if(requestRelease) {
//Record the ti... |
diff --git a/src/net/java/sip/communicator/impl/media/codec/audio/alaw/DePacketizer.java b/src/net/java/sip/communicator/impl/media/codec/audio/alaw/DePacketizer.java
index ca867e0fa..f4ba9f094 100644
--- a/src/net/java/sip/communicator/impl/media/codec/audio/alaw/DePacketizer.java
+++ b/src/net/java/sip/communicator/i... | false | true | public Format[] getSupportedOutputFormats(Format in)
{
if (in == null)
{
return new Format[]{new AudioFormat(AudioFormat.ALAW)};
}
if (matches(in, inputFormats) == null)
{
return new Format[1];
}
if (! (in instanceof AudioFormat)... | public Format[] getSupportedOutputFormats(Format in)
{
if (in == null)
{
return new Format[]{new AudioFormat("ALAW")};
}
if (matches(in, inputFormats) == null)
{
return new Format[1];
}
if (! (in instanceof AudioFormat))
... |
diff --git a/ChromiumPostProcessor.java b/ChromiumPostProcessor.java
index b0030e7..77a0903 100644
--- a/ChromiumPostProcessor.java
+++ b/ChromiumPostProcessor.java
@@ -1,79 +1,79 @@
import java.io.*;
public class ChromiumPostProcessor {
//These variables are user-editable
static File chromium_log... | false | true | public static void main(String args[]) {
try{
BufferedReader rd =new BufferedReader(new FileReader(chromium_log));
wt=new BufferedWriter(new FileWriter(output_file));
String line=null, log="";
while((line=rd.readLine())!=null){
if(line.startsWith... | public static void main(String args[]) {
try{
BufferedReader rd =new BufferedReader(new FileReader(chromium_log));
wt=new BufferedWriter(new FileWriter(output_file));
String line=null, log="";
while((line=rd.readLine())!=null){
if(line.startsWith... |
diff --git a/src/main/java/me/tehbeard/BeardAch/BeardAch.java b/src/main/java/me/tehbeard/BeardAch/BeardAch.java
index 0a60898..74f41de 100644
--- a/src/main/java/me/tehbeard/BeardAch/BeardAch.java
+++ b/src/main/java/me/tehbeard/BeardAch/BeardAch.java
@@ -1,492 +1,495 @@
package me.tehbeard.BeardAch;
import java.i... | false | true | private void exportEditor(){
try {
ZipInputStream zis = new ZipInputStream(getResource("editor.zip"));
ZipEntry entry = null;
File outputDir = new File(getDataFolder(),"editor");
while((entry = zis.getNextEntry()) != null)
{
File outputFile = new File(outputDir,entry.getName(... | private void exportEditor(){
try {
ZipInputStream zis = new ZipInputStream(getResource("editor.zip"));
ZipEntry entry = null;
File outputDir = new File(getDataFolder(),"editor");
while((entry = zis.getNextEntry()) != null)
{
File outputFile = new File(outputDir,entry.getName(... |
diff --git a/core/src/main/java/therian/operator/convert/DefaultToIteratorConverter.java b/core/src/main/java/therian/operator/convert/DefaultToIteratorConverter.java
index 7055bbf..76140fb 100644
--- a/core/src/main/java/therian/operator/convert/DefaultToIteratorConverter.java
+++ b/core/src/main/java/therian/operator... | true | true | public boolean supports(TherianContext context, Convert<?, ? super Iterator> convert) {
if (!super.supports(context, convert) || convert.getSourcePosition().getValue() instanceof Iterator<?>) {
return false;
}
final Convert<?, Iterable> toIterable = Convert.to(Iterable.class, con... | public boolean supports(TherianContext context, Convert<?, ? super Iterator> convert) {
if (!super.supports(context, convert) || convert.getSourcePosition().getValue() instanceof Iterator<?>) {
return false;
}
final Convert<?, Iterable> toIterable = Convert.to(Iterable.class, con... |
diff --git a/anif/tools/java-src/Avy.java b/anif/tools/java-src/Avy.java
index 54d28ec..d18078b 100644
--- a/anif/tools/java-src/Avy.java
+++ b/anif/tools/java-src/Avy.java
@@ -1,42 +1,46 @@
package net.algoviz;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import com.google.... | false | true | public static void cmd(String name, Object ...args) {
if (name.equals("start")) {
if (file != null) {
file.close();
}
try {
file = new PrintWriter(new FileWriter(String.format("%d.avy", fileIndex++)));
} catch (IOException e) {
// TODO: do something with the exception
return;
}
... | public static void cmd(String name, Object ...args) {
if (name.equals("start")) {
if (file != null) {
file.close();
}
try {
file = new PrintWriter(new FileWriter(String.format("%d.avy", fileIndex++)));
} catch (IOException e) {
// TODO: do something with the exception
return;
}
... |
diff --git a/src/uk/me/parabola/mkgmap/osmstyle/RuleSet.java b/src/uk/me/parabola/mkgmap/osmstyle/RuleSet.java
index 2c08a2b7..fcbe7a9f 100644
--- a/src/uk/me/parabola/mkgmap/osmstyle/RuleSet.java
+++ b/src/uk/me/parabola/mkgmap/osmstyle/RuleSet.java
@@ -1,219 +1,222 @@
/*
* Copyright (C) 2008 Steve Ratcliffe
*
... | true | true | private void initExtraRules(RuleHolder rule, RuleList extraRules) {
Set<String> tags = rule.getChangeableTags();
Set<String> moreTags = new HashSet<String>();
do {
for (String t : tags) {
String match = t + '=';
for (Map.Entry<String, RuleList> ent : rules.entrySet()) {
if (ent.getKey().startsWi... | private void initExtraRules(RuleHolder rule, RuleList extraRules) {
Set<String> tags = rule.getChangeableTags();
Set<String> moreTags = new HashSet<String>();
do {
for (String t : tags) {
String match = t + '=';
for (Map.Entry<String, RuleList> ent : rules.entrySet()) {
if (ent.getKey().startsWi... |
diff --git a/cf-spring/src/main/java/cf/spring/ServiceBrokerHandler.java b/cf-spring/src/main/java/cf/spring/ServiceBrokerHandler.java
index d4cb862..6afe9d0 100644
--- a/cf-spring/src/main/java/cf/spring/ServiceBrokerHandler.java
+++ b/cf-spring/src/main/java/cf/spring/ServiceBrokerHandler.java
@@ -1,142 +1,142 @@
/*... | true | true | private void registerHandlers() {
// Create service
registerHandler("/gateway/v1/configurations", new RequestHandler("POST") {
@Override
protected String handleRequest(HttpServletRequest request, HttpServletResponse response, String authToken, byte[] body) throws ServiceBrokerException {
return serviceBr... | private void registerHandlers() {
// Create service
registerHandler("/gateway/v1/configurations", new RequestHandler("POST") {
@Override
protected String handleRequest(HttpServletRequest request, HttpServletResponse response, String authToken, byte[] body) throws ServiceBrokerException {
return serviceBr... |
diff --git a/nuxeo-runtime-tomcat-adapter/src/main/java/org/nuxeo/runtime/tomcat/dev/NuxeoDevWebappClassLoader.java b/nuxeo-runtime-tomcat-adapter/src/main/java/org/nuxeo/runtime/tomcat/dev/NuxeoDevWebappClassLoader.java
index c3d4f3c8..299d89af 100644
--- a/nuxeo-runtime-tomcat-adapter/src/main/java/org/nuxeo/runtime/... | true | true | public Class<?> loadClass(String name, boolean resolve)
throws ClassNotFoundException {
try {
return super.loadClass(name, resolve);
} catch (ClassNotFoundException e) {
for (LocalClassLoader cl : getChildren()) {
try {
return c... | public Class<?> loadClass(String name, boolean resolve)
throws ClassNotFoundException {
try {
synchronized (this) {
return super.loadClass(name, resolve);
}
} catch (ClassNotFoundException e) {
for (LocalClassLoader cl : getChildren()) ... |
diff --git a/Plugins/ExternalServices/Edemande/src/java/fr/capwebct/capdemat/plugins/externalservices/edemande/service/EdemandeService.java b/Plugins/ExternalServices/Edemande/src/java/fr/capwebct/capdemat/plugins/externalservices/edemande/service/EdemandeService.java
index 67f3a8bba..f213ddb93 100644
--- a/Plugins/Ext... | false | true | private void submitRequest(StudyGrantRequest sgr, String psCodeTiers, boolean firstSending) {
Map<String, Object> model = new HashMap<String, Object>();
String requestData = null;
if (!firstSending) {
try {
requestData = edemandeClient.chargerDemande(psCodeTiers, ... | private void submitRequest(StudyGrantRequest sgr, String psCodeTiers, boolean firstSending) {
Map<String, Object> model = new HashMap<String, Object>();
String requestData = null;
if (!firstSending) {
try {
requestData = edemandeClient.chargerDemande(psCodeTiers, ... |
diff --git a/src/org/openstreetmap/josm/actions/PasteAction.java b/src/org/openstreetmap/josm/actions/PasteAction.java
index 64ae826f..4e6cbd64 100644
--- a/src/org/openstreetmap/josm/actions/PasteAction.java
+++ b/src/org/openstreetmap/josm/actions/PasteAction.java
@@ -1,114 +1,118 @@
// License: GPL. Copyright 2007 ... | true | true | public void pasteData(PrimitiveDeepCopy pasteBuffer, Layer source, ActionEvent e) {
/* Find the middle of the pasteBuffer area */
double maxEast = -1E100, minEast = 1E100, maxNorth = -1E100, minNorth = 1E100;
for (PrimitiveData data : pasteBuffer.getAll()) {
if (data instanceof ... | public void pasteData(PrimitiveDeepCopy pasteBuffer, Layer source, ActionEvent e) {
/* Find the middle of the pasteBuffer area */
double maxEast = -1E100, minEast = 1E100, maxNorth = -1E100, minNorth = 1E100;
for (PrimitiveData data : pasteBuffer.getAll()) {
if (data instanceof ... |
diff --git a/modules/quercus/src/com/caucho/quercus/lib/regexp/PregReplaceProxy.java b/modules/quercus/src/com/caucho/quercus/lib/regexp/PregReplaceProxy.java
index 375b3912c..f40173f26 100644
--- a/modules/quercus/src/com/caucho/quercus/lib/regexp/PregReplaceProxy.java
+++ b/modules/quercus/src/com/caucho/quercus/lib/... | false | true | public Value preg_replace(Env env, Regexp []regexpList,
Value replacement, Value subject,
long limit, Value countRef)
{
if (_isPassthru) {
return RegexpModule.preg_replace(env, regexpList, replacement,
subject, ... | public Value preg_replace(Env env, Regexp []regexpList,
Value replacement, Value subject,
long limit, Value countRef)
{
return null;
/*
if (_isPassthru) {
return RegexpModule.preg_replace(env, regexpList, replacement,
... |
diff --git a/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java b/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
index f0111ddc..7d3bd5fe 100644
--- a/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
+++ b/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
@@ -1,156... | true | true | public RelationListDialog() {
super(tr("Relations"), "relationlist", tr("Open a list of all relations."), KeyEvent.VK_R, 150);
displaylist.setCellRenderer(new OsmPrimitivRenderer());
displaylist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
displaylist.addMouseListener(new MouseAdapter(){
@Override... | public RelationListDialog() {
super(tr("Relations"), "relationlist", tr("Open a list of all relations."), KeyEvent.VK_R, 150);
displaylist.setCellRenderer(new OsmPrimitivRenderer());
displaylist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
displaylist.addMouseListener(new MouseAdapter(){
@Override... |
diff --git a/src/org/ktln2/android/callstat/StatisticsMap.java b/src/org/ktln2/android/callstat/StatisticsMap.java
index 792e417..7523b42 100644
--- a/src/org/ktln2/android/callstat/StatisticsMap.java
+++ b/src/org/ktln2/android/callstat/StatisticsMap.java
@@ -1,142 +1,142 @@
package org.ktln2.android.callstat;
imp... | true | true | protected CallStat[] getCallStatOrderedBy(int type) {
TreeSet<CallStat> values;
Comparator comparator;
switch (type) {
case CALL_STAT_MAP_TYPE_MIN:
comparator = new Comparator<CallStat>() {
public int compare(CallStat lhs, CallStat rhs) {
... | protected CallStat[] getCallStatOrderedBy(int type) {
TreeSet<CallStat> values;
Comparator comparator;
switch (type) {
case CALL_STAT_MAP_TYPE_MIN:
comparator = new Comparator<CallStat>() {
public int compare(CallStat lhs, CallStat rhs) {
... |
diff --git a/src/edu/ua/moundville/ListItems.java b/src/edu/ua/moundville/ListItems.java
index 9be5a4f..2d87c16 100644
--- a/src/edu/ua/moundville/ListItems.java
+++ b/src/edu/ua/moundville/ListItems.java
@@ -1,171 +1,171 @@
package edu.ua.moundville;
import java.util.ArrayList;
import org.apache.http.NameValueP... | false | true | public void receiveResult(JSONArray jArray) {
if (jArray == null) {
listItems.add("I failed :(");
} else {
Log.d(TAG, jArray.toString());
for (int i=0; i<jArray.length(); i++) {
JSONObject obj = null;
try {
obj = (JSONObject) jArray.get(i);
switch (DBCase) {
case 2:
listIt... | public void receiveResult(JSONArray jArray) {
if (jArray == null) {
listItems.add("I failed :(");
} else {
Log.d(TAG, jArray.toString());
for (int i=0; i<jArray.length(); i++) {
JSONObject obj = null;
try {
obj = (JSONObject) jArray.get(i);
switch (DBCase) {
case 2:
listIt... |
diff --git a/jython/src/org/python/core/PyTraceback.java b/jython/src/org/python/core/PyTraceback.java
index 80983067..6943fbd3 100644
--- a/jython/src/org/python/core/PyTraceback.java
+++ b/jython/src/org/python/core/PyTraceback.java
@@ -1,112 +1,112 @@
// Copyright (c) Corporation for National Research Initiatives
... | true | true | private String getLine(String filename, int lineno) {
RelativeFile file = new RelativeFile(filename);
if (!file.isFile() || !file.canRead()) {
// XXX: We should run through sys.path until the filename is found
return null;
}
PyFile pyFile;
try {
... | private String getLine(String filename, int lineno) {
RelativeFile file = new RelativeFile(filename);
if (!file.isFile() || !file.canRead()) {
// XXX: We should run through sys.path until the filename is found
return null;
}
PyFile pyFile;
try {
... |
diff --git a/Wirtschaftsplanspiel/src/Client/Entities/Player.java b/Wirtschaftsplanspiel/src/Client/Entities/Player.java
index 1028878..f6fa9db 100644
--- a/Wirtschaftsplanspiel/src/Client/Entities/Player.java
+++ b/Wirtschaftsplanspiel/src/Client/Entities/Player.java
@@ -1,98 +1,98 @@
package Client.Entities;
impo... | true | true | public int compareTo(Player arg0) {
double res1 = 0;
for(Iterator<CompanyResult> resit = resultList.iterator(); resit.hasNext();){
res1 += resit.next().profit;
}
double res2 = 0;
for(Iterator<CompanyResult> resit2 = arg0.resultList.iterator(); resit2.hasNext();){
res2 += resit2.next().profit;
}
... | public int compareTo(Player arg0) {
double res1 = 0;
for(Iterator<CompanyResult> resit = resultList.iterator(); resit.hasNext();){
res1 += resit.next().profit;
}
double res2 = 0;
for(Iterator<CompanyResult> resit2 = arg0.resultList.iterator(); resit2.hasNext();){
res2 += resit2.next().profit;
}
... |
diff --git a/test/src/test/tmp/A.java b/test/src/test/tmp/A.java
index 2d49245..e599895 100644
--- a/test/src/test/tmp/A.java
+++ b/test/src/test/tmp/A.java
@@ -1,12 +1,14 @@
package test.tmp;
import org.testng.annotations.Test;
@Test
public class A extends Base {
- public void a1() {}
+ public void a1() ... | true | true | public void a1() {}
| public void a1() {
throw new RuntimeException();
}
|
diff --git a/tools/remotetools/org.eclipse.ptp.remotetools.core/src/org/eclipse/ptp/remotetools/internal/common/AbstractRemoteExecution.java b/tools/remotetools/org.eclipse.ptp.remotetools.core/src/org/eclipse/ptp/remotetools/internal/common/AbstractRemoteExecution.java
index 5c61e94db..d384229a7 100755
--- a/tools/rem... | false | true | public synchronized void waitForEndOfExecution() throws RemoteConnectionException, CancelException {
/*
* Block until the execution finishes or is canceled.
*/
if (!finished && !cancelled) {
try {
this.wait();
} catch (InterruptedException e) {
return;
}
}
if (wasCanceled()) {
throw n... | public synchronized void waitForEndOfExecution() throws RemoteConnectionException, CancelException {
/*
* Block until the execution finishes or is canceled.
*/
while (!finished && !cancelled) {
try {
this.wait();
} catch (InterruptedException e) {
// Ignore spurious interrupts
}
}
if (wa... |
diff --git a/src/com/irr310/client/graphics/gui/UpgradeWeaponTab.java b/src/com/irr310/client/graphics/gui/UpgradeWeaponTab.java
index 6b6c9fa..017e33a 100644
--- a/src/com/irr310/client/graphics/gui/UpgradeWeaponTab.java
+++ b/src/com/irr310/client/graphics/gui/UpgradeWeaponTab.java
@@ -1,172 +1,172 @@
package com.ir... | true | true | private V3DGuiComponent generateUpgradePane(final Upgrade upgrade) {
V3DContainer pane = new V3DContainer();
pane.setSize(320, 150);
V3DGuiRectangle upgradeRect = new V3DGuiRectangle();
upgradeRect.setyAlignment(GuiYAlignment.TOP);
upgradeRect.setPosition(0, 0);
... | private V3DGuiComponent generateUpgradePane(final Upgrade upgrade) {
V3DContainer pane = new V3DContainer();
pane.setSize(320, 150);
V3DGuiRectangle upgradeRect = new V3DGuiRectangle();
upgradeRect.setyAlignment(GuiYAlignment.TOP);
upgradeRect.setPosition(0, 0);
... |
diff --git a/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobArmory/EMAListener.java b/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobArmory/EMAListener.java
index 7c48f7f..b00ac42 100644
--- a/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobArmory/EMAListener.java
+++ b/EasyMobA... | false | true | public void OnPlayerEntityInteract(PlayerInteractEntityEvent event) {
Entity e = event.getRightClicked();
Player p = event.getPlayer();
if(Armoryenabled.get(p) != null){ if(Armoryenabled.get(p)) {
if(e.getType().equals(EntityType.ZOMBIE)) {
ItemStack i = p.getItemInHand();
Zombie z = (Zombie) e;
if(EMA... | public void OnPlayerEntityInteract(PlayerInteractEntityEvent event) {
Entity e = event.getRightClicked();
Player p = event.getPlayer();
if(Armoryenabled.get(p) != null){ if(Armoryenabled.get(p)) {
if(e.getType().equals(EntityType.ZOMBIE)) {
ItemStack i = p.getItemInHand();
Zombie z = (Zombie) e;
if(EMA... |
diff --git a/src/com/android/settings/MasterClear.java b/src/com/android/settings/MasterClear.java
index 1b045eae3..29a92b106 100644
--- a/src/com/android/settings/MasterClear.java
+++ b/src/com/android/settings/MasterClear.java
@@ -1,229 +1,230 @@
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Lice... | false | true | private void loadAccountList() {
View accountsLabel = mContentView.findViewById(R.id.accounts_label);
LinearLayout contents = (LinearLayout)mContentView.findViewById(R.id.accounts);
Context context = getActivity();
AccountManager mgr = AccountManager.get(context);
Account[]... | private void loadAccountList() {
View accountsLabel = mContentView.findViewById(R.id.accounts_label);
LinearLayout contents = (LinearLayout)mContentView.findViewById(R.id.accounts);
Context context = getActivity();
AccountManager mgr = AccountManager.get(context);
Account[]... |
diff --git a/src/citysdk/tourism/client/parser/DataReader.java b/src/citysdk/tourism/client/parser/DataReader.java
index f97d50d..af998c7 100644
--- a/src/citysdk/tourism/client/parser/DataReader.java
+++ b/src/citysdk/tourism/client/parser/DataReader.java
@@ -1,713 +1,713 @@
/**
* COPYRIGHT NOTICE:
*
* This fi... | false | true | private static String getValueWithTerm(POI poi, Locale lang, String tag) {
if (poi == null)
return null;
Locale descriptionLang;
Locale poiLang = parseLocale(poi.getLang());
String defaultValue = null;
List<POIBaseType> descriptions = poi.getDescription();
for (POIBaseType description : descriptions) ... | private static String getValueWithTerm(POI poi, Locale lang, String tag) {
if (poi == null)
return null;
Locale descriptionLang;
Locale poiLang = parseLocale(poi.getLang());
String defaultValue = null;
List<POIBaseType> descriptions = poi.getDescription();
for (POIBaseType description : descriptions) ... |
diff --git a/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/resources/ContentDescriptionManagerTest.java b/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/resources/ContentDescriptionManagerTest.java
index 4240696bb..a5856ca26 100644
--- a/tests/org.eclipse.core.tests.resources/src/... | false | true | public void testNatureContentTypeAssociation() {
IContentTypeManager contentTypeManager = Platform.getContentTypeManager();
IContentType baseType = contentTypeManager.getContentType("org.eclipse.core.tests.resources.nature_associated_1");
IContentType derivedType = contentTypeManager.getContentType("org.eclipse.... | public void testNatureContentTypeAssociation() {
IContentTypeManager contentTypeManager = Platform.getContentTypeManager();
IContentType baseType = contentTypeManager.getContentType("org.eclipse.core.tests.resources.nature_associated_1");
IContentType derivedType = contentTypeManager.getContentType("org.eclipse.... |
diff --git a/kovu/teamstats/api/TeamStatsAPI.java b/kovu/teamstats/api/TeamStatsAPI.java
index 4485ed4..6343d49 100644
--- a/kovu/teamstats/api/TeamStatsAPI.java
+++ b/kovu/teamstats/api/TeamStatsAPI.java
@@ -1,634 +1,641 @@
package kovu.teamstats.api;
import java.io.IOException;
import java.io.ObjectInputStream;
... | true | true | public void run() {
if (online) {
try {
Packet packet = new Packet(ClientRequest.GETFRIENDS);
packet.addData("session", Minecraft.getMinecraft().session.sessionId);
packetSender.sendPacket(packet);
String... | public void run() {
if (online) {
try {
Packet packet = new Packet(ClientRequest.GETFRIENDS);
packet.addData("session", Minecraft.getMinecraft().session.sessionId);
packetSender.sendPacket(packet);
String... |
diff --git a/branches/kernel-1.1.x/api/src/main/java/org/sakaiproject/util/RequestFilter.java b/branches/kernel-1.1.x/api/src/main/java/org/sakaiproject/util/RequestFilter.java
index abdb93dd..2b38e40e 100644
--- a/branches/kernel-1.1.x/api/src/main/java/org/sakaiproject/util/RequestFilter.java
+++ b/branches/kernel-1.... | true | true | public void doFilter(ServletRequest requestObj, ServletResponse responseObj, FilterChain chain) throws IOException,
ServletException
{
StringBuffer sb = null;
long startTime = System.currentTimeMillis();
// bind some preferences as "current"
Boolean curRemoteUser = (Boolean) ThreadLocalManager.get(CURRENT... | public void doFilter(ServletRequest requestObj, ServletResponse responseObj, FilterChain chain) throws IOException,
ServletException
{
StringBuffer sb = null;
long startTime = System.currentTimeMillis();
// bind some preferences as "current"
Boolean curRemoteUser = (Boolean) ThreadLocalManager.get(CURRENT... |
diff --git a/src/net/sf/gogui/thumbnail/Thumbnail.java b/src/net/sf/gogui/thumbnail/Thumbnail.java
index 3657ae8e..07a78fc2 100644
--- a/src/net/sf/gogui/thumbnail/Thumbnail.java
+++ b/src/net/sf/gogui/thumbnail/Thumbnail.java
@@ -1,284 +1,276 @@
//----------------------------------------------------------------------... | false | true | public boolean create(File input, File output)
{
m_lastThumbnail = null;
try
{
if (! checkThumbnailSupport())
{
// We cannot create it with the right permissions from Java
log("Thumbnail directory does not exist: " + input);
... | public boolean create(File input, File output)
{
m_lastThumbnail = null;
try
{
log("File: " + input);
URI uri = FileUtils.getURI(input);
log("URI: " + uri);
String md5 = getMD5(uri.toString());
if (m_verbose)
log... |
diff --git a/src/filius/gui/anwendungssicht/GUIApplicationTerminalWindow.java b/src/filius/gui/anwendungssicht/GUIApplicationTerminalWindow.java
index 6524900..7bcade8 100644
--- a/src/filius/gui/anwendungssicht/GUIApplicationTerminalWindow.java
+++ b/src/filius/gui/anwendungssicht/GUIApplicationTerminalWindow.java
@@ ... | false | true | public GUIApplicationTerminalWindow(GUIDesktopPanel desktop, String appName){
super(desktop, appName);
this.setMaximizable(false);
this.setResizable(false);
jobRunning = false;
multipleObserverEvents = false;
terminalField = new JTextArea("");
terminalField.setEditable(false);
terminalField.setCaretCo... | public GUIApplicationTerminalWindow(GUIDesktopPanel desktop, String appName) {
super(desktop, appName);
this.setMaximizable(false);
this.setResizable(false);
jobRunning = false;
multipleObserverEvents = false;
terminalField = new JTextArea("");
terminalField.setEditable(false);
terminalField.setCaretC... |
diff --git a/src/main/java/com/laytonsmith/PureUtilities/StringUtils.java b/src/main/java/com/laytonsmith/PureUtilities/StringUtils.java
index f4d6eea8..166332db 100644
--- a/src/main/java/com/laytonsmith/PureUtilities/StringUtils.java
+++ b/src/main/java/com/laytonsmith/PureUtilities/StringUtils.java
@@ -1,866 +1,867 ... | false | true | public static List<String> ArgParser(String args) {
//First, we have to tokenize the strings. Since we can have quoted arguments, we can't simply split on spaces.
List<String> arguments = new ArrayList<String>();
StringBuilder buf = new StringBuilder();
boolean state_in_single_quote = false;
boolean state_in... | public static List<String> ArgParser(String args) {
//First, we have to tokenize the strings. Since we can have quoted arguments, we can't simply split on spaces.
List<String> arguments = new ArrayList<String>();
StringBuilder buf = new StringBuilder();
boolean state_in_single_quote = false;
boolean state_in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.