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/toolsrc/org/mozilla/javascript/tools/shell/JSConsole.java b/toolsrc/org/mozilla/javascript/tools/shell/JSConsole.java
index e1e5720b..74e4daa6 100644
--- a/toolsrc/org/mozilla/javascript/tools/shell/JSConsole.java
+++ b/toolsrc/org/mozilla/javascript/tools/shell/JSConsole.java
@@ -1,211 +1,211 @@
/* -*- M... | true | true | public JSConsole(String[] args) {
super("Rhino JavaScript Console");
JMenuBar menubar = new JMenuBar();
createFileChooser();
String[] fileItems = {"Load...", "Exit"};
String[] fileCmds = {"Load", "Exit"};
char[] fileShortCuts = {'L', 'X'};
String[] editItems... | public JSConsole(String[] args) {
super("Rhino JavaScript Console");
JMenuBar menubar = new JMenuBar();
createFileChooser();
String[] fileItems = {"Load...", "Exit"};
String[] fileCmds = {"Load", "Exit"};
char[] fileShortCuts = {'L', 'X'};
String[] editItems... |
diff --git a/bitrepository-modifying-client/src/main/java/org/bitrepository/modify/putfile/ConversationBasedPutFileClient.java b/bitrepository-modifying-client/src/main/java/org/bitrepository/modify/putfile/ConversationBasedPutFileClient.java
index e5b261ac..48ef31b2 100644
--- a/bitrepository-modifying-client/src/main... | true | true | public void putFile(URL url, String fileId, long sizeOfFile, ChecksumDataForFileTYPE checksumForValidationAtPillar,
ChecksumSpecTYPE checksumRequestsForValidation, EventHandler eventHandler, String auditTrailInformation)
throws OperationFailedException {
ArgumentValidator.ch... | public void putFile(URL url, String fileId, long sizeOfFile, ChecksumDataForFileTYPE checksumForValidationAtPillar,
ChecksumSpecTYPE checksumRequestsForValidation, EventHandler eventHandler, String auditTrailInformation)
throws OperationFailedException {
ArgumentValidator.ch... |
diff --git a/java_interface/Main.java b/java_interface/Main.java
index cdc40c6..66aae66 100644
--- a/java_interface/Main.java
+++ b/java_interface/Main.java
@@ -1,15 +1,15 @@
public class Main {
static {
System.loadLibrary("rapid61850");
}
public static void main(String[] args) {
rapid61850.start();
... | true | true | public static void main(String[] args) {
rapid61850.start();
System.out.println(rapid61850.interface_gse_send_E1Q1SB1_C1_Performance_buf(1, 512)); // send GOOSE packet
rapid61850.getE1Q1SB1().getS1().getC1().getMMXUa_1().getMod().setStVal(Mod.MOD_ON); // interact with IED data model
System.out.pr... | public static void main(String[] args) {
rapid61850.start();
System.out.println(rapid61850.interface_gse_send_E1Q1SB1_C1_Performance(1, 512)); // send GOOSE packet
rapid61850.getE1Q1SB1().getS1().getC1().getMMXUa_1().getMod().setStVal(Mod.MOD_ON); // interact with IED data model
System.out.printl... |
diff --git a/java/server/src/org/openqa/selenium/security/CertificateGenerator.java b/java/server/src/org/openqa/selenium/security/CertificateGenerator.java
index 79be9154c..6550fb117 100644
--- a/java/server/src/org/openqa/selenium/security/CertificateGenerator.java
+++ b/java/server/src/org/openqa/selenium/security/C... | true | true | public KeyAndCert generateCertificate(String hostname, String certificateRevocationList) {
X500Principal x500issuer = caCert.getCertificate().getIssuerX500Principal();
String subject = String.format(
"CN=%s, OU=Test, O=CyberVillainsCA, L=Seattle, S=Washington, C=US", hostname);
X500Principal x500s... | public KeyAndCert generateCertificate(String hostname, String certificateRevocationList) {
X500Principal x500issuer = caCert.getCertificate().getIssuerX500Principal();
String subject = String.format(
"CN=%s, OU=Test, O=CyberVillainsCA, L=Seattle, S=Washington, C=US", hostname);
X500Principal x500s... |
diff --git a/forum/webapp/src/main/java/org/exoplatform/forum/webui/UIFormDateTimePicker.java b/forum/webapp/src/main/java/org/exoplatform/forum/webui/UIFormDateTimePicker.java
index 6633c680..37080cdf 100644
--- a/forum/webapp/src/main/java/org/exoplatform/forum/webui/UIFormDateTimePicker.java
+++ b/forum/webapp/src/m... | true | true | public void processRender(WebuiRequestContext context) throws Exception {
context.getJavascriptManager().require("SHARED/UIDateTimePicker", "dateTimePicker");
Writer w = context.getWriter();
w.write("<input type=\"text\" class=\"DateTimeInput\" name=\"");
w.write(getName());
w.write("\" id=\"... | public void processRender(WebuiRequestContext context) throws Exception {
context.getJavascriptManager().require("SHARED/ForumDateTimePicker", "dateTimePicker");
Writer w = context.getWriter();
w.write("<input type=\"text\" class=\"DateTimeInput\" name=\"");
w.write(getName());
w.write("\" id... |
diff --git a/src/com/android/mms/transaction/SmsMessageSender.java b/src/com/android/mms/transaction/SmsMessageSender.java
index 0aee539b..c59f147e 100644
--- a/src/com/android/mms/transaction/SmsMessageSender.java
+++ b/src/com/android/mms/transaction/SmsMessageSender.java
@@ -1,204 +1,204 @@
/*
* Copyright (C) 200... | true | true | private boolean queueMessage(long token) throws MmsException {
if ((mMessageText == null) || (mNumberOfDests == 0)) {
// Don't try to send an empty message.
throw new MmsException("Null message body or dest.");
}
SharedPreferences prefs = PreferenceManager.getDefault... | private boolean queueMessage(long token) throws MmsException {
if ((mMessageText == null) || (mNumberOfDests == 0)) {
// Don't try to send an empty message.
throw new MmsException("Null message body or dest.");
}
SharedPreferences prefs = PreferenceManager.getDefault... |
diff --git a/src/main/java/com/greatmancode/craftconomy3/commands/setup/SetupBasicCommand.java b/src/main/java/com/greatmancode/craftconomy3/commands/setup/SetupBasicCommand.java
index 9bb3012..8cb8061 100644
--- a/src/main/java/com/greatmancode/craftconomy3/commands/setup/SetupBasicCommand.java
+++ b/src/main/java/com... | false | true | public void execute(String sender, String[] args) {
if (SetupWizard.getState() == 4) {
if (args.length == 0) {
Common.getInstance().getServerCaller().sendMessage(sender, "{{DARK_GREEN}}Basic setup step. Here, we will configure how Craftconomy behave globally.");
Common.getInstance().getServerCaller().send... | public void execute(String sender, String[] args) {
if (SetupWizard.getState() == 4) {
if (args.length == 0) {
Common.getInstance().getServerCaller().sendMessage(sender, "{{DARK_GREEN}}Basic setup step. Here, we will configure how Craftconomy behave globally.");
Common.getInstance().getServerCaller().send... |
diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetStateCache.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetStateCache.java
index 2f23bc424..81c7df04b 100644
--- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetStateCache.java
+++ b/xwords4/android/XWords4/src/org/eehouse/androi... | true | true | public void onReceive( Context context, Intent intent )
{
if ( intent.getAction().
equals( ConnectivityManager.CONNECTIVITY_ACTION)) {
NetworkInfo ni = (NetworkInfo)intent.
getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO);
... | public void onReceive( Context context, Intent intent )
{
if ( intent.getAction().
equals( ConnectivityManager.CONNECTIVITY_ACTION)) {
NetworkInfo ni = (NetworkInfo)intent.
getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO);
... |
diff --git a/jdoris-nest/src/main/java/org/jdoris/nest/utils/ProductContainer.java b/jdoris-nest/src/main/java/org/jdoris/nest/utils/ProductContainer.java
index 6952f9b..5c773c5 100644
--- a/jdoris-nest/src/main/java/org/jdoris/nest/utils/ProductContainer.java
+++ b/jdoris-nest/src/main/java/org/jdoris/nest/utils/Produ... | true | true | public ProductContainer(String name, CplxContainer sourceMaster, CplxContainer sourceSlave, boolean subProductsFlag) {
this.name = name;
this.sourceMaster = sourceMaster;
this.sourceSlave = sourceSlave;
this.subProductsFlag = subProductsFlag;
if (subProductsFlag) {
... | public ProductContainer(String name, CplxContainer sourceMaster, CplxContainer sourceSlave, boolean subProductsFlag) {
this.name = name;
this.sourceMaster = sourceMaster;
this.sourceSlave = sourceSlave;
this.subProductsFlag = subProductsFlag;
if (subProductsFlag) {
... |
diff --git a/src/com/iBank/Commands/CommandPayBack.java b/src/com/iBank/Commands/CommandPayBack.java
index f99ecf1..6f88b67 100644
--- a/src/com/iBank/Commands/CommandPayBack.java
+++ b/src/com/iBank/Commands/CommandPayBack.java
@@ -1,110 +1,111 @@
package com.iBank.Commands;
import java.math.BigDecimal;
import ... | true | true | public void handle(CommandSender sender, String[] arguments, boolean check) {
if(!(sender instanceof Player)) {
MessageManager.send(sender, Configuration.StringEntry.ErrorNoPlayer.toString());
return;
}
if(!check && !iBank.canExecuteCommand(((Player)sender))) {
MessageManager.send(sender, "&r&"+Configur... | public void handle(CommandSender sender, String[] arguments, boolean check) {
if(!(sender instanceof Player)) {
MessageManager.send(sender, Configuration.StringEntry.ErrorNoPlayer.toString());
return;
}
if(!check && !iBank.canExecuteCommand(((Player)sender))) {
MessageManager.send(sender, "&r&"+Configur... |
diff --git a/branches/5.0.0/Crux/src/module/org/cruxframework/crux/module/launch/ModulesLauncher.java b/branches/5.0.0/Crux/src/module/org/cruxframework/crux/module/launch/ModulesLauncher.java
index e48b7df50..3059fd90f 100644
--- a/branches/5.0.0/Crux/src/module/org/cruxframework/crux/module/launch/ModulesLauncher.jav... | false | true | public static void main(String[] args) throws MalformedURLException
{
String[] developmentModules = CruxModuleHandler.getDevelopmentModules();
if (developmentModules==null || developmentModules.length ==0)
{
throw new RuntimeException("No development module specified.");
}
String webDir = "./war/";
... | public static void main(String[] args) throws MalformedURLException
{
String[] developmentModules = CruxModuleHandler.getDevelopmentModules();
if (developmentModules==null || developmentModules.length ==0)
{
throw new RuntimeException("No development module specified.");
}
String webDir = "./war/";
... |
diff --git a/src/SEG_Airport/src/Model/Test.java b/src/SEG_Airport/src/Model/Test.java
index fdbd6aa..b728c36 100644
--- a/src/SEG_Airport/src/Model/Test.java
+++ b/src/SEG_Airport/src/Model/Test.java
@@ -1,141 +1,141 @@
package Model;
import java.util.ArrayList;
public class Test {
//Just a class to unit te... | false | true | public static void main(String[] args) {
//create airport and 4 runways
Airport a = new Airport("Heathrow");
Runway r = new Runway("27R", 1, 2, 3, 4, 5);
Runway r1 = new Runway("09L", 6, 7, 8, 9, 10);
Runway r2 = new Runway("27L", 11, 12, 13, 14, 15);
Runway r3 = new Runway("09R", 16, 17, 18, 19, 20);
... | public static void main(String[] args) {
//create airport and 4 runways
Airport a = new Airport("Heathrow");
Runway r = new Runway("27R", 1, 2, 3, 4, 5);
Runway r1 = new Runway("09L", 6, 7, 8, 9, 10);
Runway r2 = new Runway("27L", 11, 12, 13, 14, 15);
Runway r3 = new Runway("09R", 16, 17, 18, 19, 20);
... |
diff --git a/app/controllers/Cron.java b/app/controllers/Cron.java
index ffd2095..6cb09bd 100644
--- a/app/controllers/Cron.java
+++ b/app/controllers/Cron.java
@@ -1,99 +1,99 @@
package controllers;
import java.io.UnsupportedEncodingException;
import java.util.Iterator;
import java.util.List;
import java.util.P... | true | true | public static void send() {
List<Contact> list = Contact.all().fetch();
Iterator<Contact> iter = list.iterator();
while (iter.hasNext()) {
String body = "";
Contact contact = iter.next();
List<Link> listLink = Link.getByNotModified(contact);
Iterator<Link> iterLink = listLink.iterator();
while (i... | public static void send() {
List<Contact> list = Contact.all().fetch();
Iterator<Contact> iter = list.iterator();
while (iter.hasNext()) {
String body = "";
Contact contact = iter.next();
List<Link> listLink = Link.getByNotModified(contact);
Iterator<Link> iterLink = listLink.iterator();
while (i... |
diff --git a/src/uk/ac/ebi/esd/magetab/CustomSDRF.java b/src/uk/ac/ebi/esd/magetab/CustomSDRF.java
index 1665fc7..0b52b22 100644
--- a/src/uk/ac/ebi/esd/magetab/CustomSDRF.java
+++ b/src/uk/ac/ebi/esd/magetab/CustomSDRF.java
@@ -1,697 +1,697 @@
package uk.ac.ebi.esd.magetab;
import java.io.BufferedReader;
import j... | true | true | public static void main(String[] args)
{
// set our dummy validator on the parser
// parser.setValidator(validator);
// now, parse from a file
// File idfFile = new
// File("/home/mike/ESD/AE/AE-EXP/E-MEXP-242/E-MEXP-242.idf.txt");
// File idfFile = new File("F:/BioSD/ae/E-ATMX-12/E-ATMX-12.idf.txt");
... | public static void main(String[] args)
{
// set our dummy validator on the parser
// parser.setValidator(validator);
// now, parse from a file
// File idfFile = new
// File("/home/mike/ESD/AE/AE-EXP/E-MEXP-242/E-MEXP-242.idf.txt");
// File idfFile = new File("F:/BioSD/ae/E-ATMX-12/E-ATMX-12.idf.txt");
... |
diff --git a/DataExtractionOSM/src/net/osmand/data/index/ExtractGooglecodeAuthorization.java b/DataExtractionOSM/src/net/osmand/data/index/ExtractGooglecodeAuthorization.java
index 3da700f6..cf614644 100644
--- a/DataExtractionOSM/src/net/osmand/data/index/ExtractGooglecodeAuthorization.java
+++ b/DataExtractionOSM/src... | true | true | public GooglecodeUploadTokens getGooglecodeTokensForUpload(String user, String password) throws IOException {
final MyCookieStore cookies = new MyCookieStore(
new java.net.CookieManager().getCookieStore());
CookieHandler.setDefault(new java.net.CookieManager(cookies, null));
//first try to delete file
Http... | public GooglecodeUploadTokens getGooglecodeTokensForUpload(String user, String password) throws IOException {
final MyCookieStore cookies = new MyCookieStore(
new java.net.CookieManager().getCookieStore());
CookieHandler.setDefault(new java.net.CookieManager(cookies, null));
//first try to delete file
Http... |
diff --git a/ui/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java b/ui/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java
index 105e7285..fa9d4be0 100644
--- a/ui/calendar/src/test/java/org/richfaces/component/CalendarComponentTest.java
+++ b/ui/calendar/src/test/java/org/... | true | true | public void setUp() throws Exception {
super.setUp();
form = new HtmlForm();
form.setId("form");
facesContext.getViewRoot().getChildren().add(form);
calendar = (UICalendar) application
.createComponent(UICalendar.COMPONENT_TYPE);
calendar1 = (UICalendar) application
.createComponent(UICalendar.CO... | public void setUp() throws Exception {
super.setUp();
form = new HtmlForm();
form.setId("form");
facesContext.getViewRoot().getChildren().add(form);
calendar = (UICalendar) application
.createComponent(UICalendar.COMPONENT_TYPE);
calendar1 = (UICalendar) application
.createComponent(UICalendar.CO... |
diff --git a/tds/src/test/java/thredds/servlet/TestDataRootHandler.java b/tds/src/test/java/thredds/servlet/TestDataRootHandler.java
index d5055e46b..9b423a202 100644
--- a/tds/src/test/java/thredds/servlet/TestDataRootHandler.java
+++ b/tds/src/test/java/thredds/servlet/TestDataRootHandler.java
@@ -1,419 +1,419 @@
pa... | true | true | public void testScanLocationContainOnlyAtomicDatasets()
{
// Create a temporary contentPath directory for this test.
File contentPathFile = createContentPathFile( contentPath );
// Create public data directory in content path.
File publicDataDir = new File( contentPathFile, "public/dataDir");
i... | public void testScanLocationContainOnlyAtomicDatasets()
{
// Create a temporary contentPath directory for this test.
File contentPathFile = createContentPathFile( contentPath );
// Create public data directory in content path.
File publicDataDir = new File( contentPathFile, "public/dataDir");
i... |
diff --git a/src/com/vaadin/ui/Upload.java b/src/com/vaadin/ui/Upload.java
index 238217a4c..70e16e1de 100644
--- a/src/com/vaadin/ui/Upload.java
+++ b/src/com/vaadin/ui/Upload.java
@@ -1,985 +1,986 @@
/*
@ITMillApache2LicenseForJavaFiles@
*/
package com.vaadin.ui;
import java.io.InputStream;
import java.io.... | true | true | public void receiveUpload(UploadStream upload) {
if (!isUploading) {
throw new IllegalStateException("uploading not started");
}
// Gets file properties
final String filename = upload.getContentName();
final String type = upload.getContentType();
final A... | public void receiveUpload(UploadStream upload) {
if (!isUploading) {
throw new IllegalStateException("uploading not started");
}
// Gets file properties
final String filename = upload.getContentName();
final String type = upload.getContentType();
final A... |
diff --git a/engine/src/main/java/org/archive/crawler/framework/CrawlJob.java b/engine/src/main/java/org/archive/crawler/framework/CrawlJob.java
index a7aa99a7..ee9cbccd 100644
--- a/engine/src/main/java/org/archive/crawler/framework/CrawlJob.java
+++ b/engine/src/main/java/org/archive/crawler/framework/CrawlJob.java
@... | true | true | public void launch() {
if (isProfile()) {
throw new IllegalArgumentException("Can't launch profile" + this);
}
if(isRunning()) {
getJobLogger().log(Level.SEVERE,"Can't relaunch running job");
return;
} else {
CrawlController cc... | public synchronized void launch() {
if (isProfile()) {
throw new IllegalArgumentException("Can't launch profile" + this);
}
if(isRunning()) {
getJobLogger().log(Level.SEVERE,"Can't relaunch running job");
return;
} else {
Crawl... |
diff --git a/web/src/main/java/org/fao/geonet/kernel/csw/services/GetDomain.java b/web/src/main/java/org/fao/geonet/kernel/csw/services/GetDomain.java
index 719c40f896..f569f1090d 100644
--- a/web/src/main/java/org/fao/geonet/kernel/csw/services/GetDomain.java
+++ b/web/src/main/java/org/fao/geonet/kernel/csw/services/... | true | true | public static List<Element> handlePropertyName(String[] propertyNames,
ServiceContext context, boolean freq, int maxRecords) throws Exception {
List<Element> domainValuesList = null;
Log.debug(Geonet.CSW,"Handling property names '"+Arrays.toString(propertyNames)+"' with max records of "+maxRecords);
f... | public static List<Element> handlePropertyName(String[] propertyNames,
ServiceContext context, boolean freq, int maxRecords) throws Exception {
List<Element> domainValuesList = null;
Log.debug(Geonet.CSW,"Handling property names '"+Arrays.toString(propertyNames)+"' with max records of "+maxRecords);
f... |
diff --git a/src/main/java/ch/entwine/weblounge/workbench/TrimpathPageletWrapper.java b/src/main/java/ch/entwine/weblounge/workbench/TrimpathPageletWrapper.java
index b60ed9c42..53864522f 100644
--- a/src/main/java/ch/entwine/weblounge/workbench/TrimpathPageletWrapper.java
+++ b/src/main/java/ch/entwine/weblounge/workb... | true | true | protected String[] replaceMultivalueContent(String element,
Language language, boolean force) {
List<String> replacements = new ArrayList<String>();
for (int i = 0; i < pagelet.getMultiValueContent(element, language, force).length; i++) {
StringBuilder sb = new StringBuilder();
sb.append("${... | protected String[] replaceMultivalueContent(String element,
Language language, boolean force) {
List<String> replacements = new ArrayList<String>();
for (int i = 0; i < pagelet.getMultiValueContent(element, language, force).length; i++) {
StringBuilder sb = new StringBuilder();
sb.append("${... |
diff --git a/src/io/rko/uzh/zt2/facade/cli/TestDriver.java b/src/io/rko/uzh/zt2/facade/cli/TestDriver.java
index 97b1a8c..18fe48d 100644
--- a/src/io/rko/uzh/zt2/facade/cli/TestDriver.java
+++ b/src/io/rko/uzh/zt2/facade/cli/TestDriver.java
@@ -1,51 +1,51 @@
/*
* The MIT License (MIT)
* Copyright © 2012 Remo Koch,... | true | true | public static void main(String[] pArgs) {
System.out.println(String.format("%s started successfully.", PackageVersion.getPackageVersion()));
System.out.println();
Fan luisa = new FamilyMember("Luisa", "0791234567", 18);
Fan axel = new CoWorker("Axel", "0441234567");
Celebri... | public static void main(String[] pArgs) {
System.out.println(String.format("%s started successfully.", PackageVersion.getPackageVersion()));
System.out.println();
Fan luisa = new FamilyMember("Luisa", "0791234567", 18);
Fan axel = new CoWorker("Axel", "0441234567");
Celebri... |
diff --git a/server/src/test/java/com/sinnerschrader/smaller/ServerTest.java b/server/src/test/java/com/sinnerschrader/smaller/ServerTest.java
index cbe46e9..57d980c 100644
--- a/server/src/test/java/com/sinnerschrader/smaller/ServerTest.java
+++ b/server/src/test/java/com/sinnerschrader/smaller/ServerTest.java
@@ -1,8... | true | true | public void test() throws Exception {
ServerRunnable server = new ServerRunnable();
try {
new Thread(new ServerRunnable()).start();
try {
Thread.sleep(1500);
} catch (InterruptedException e) {
}
HttpClient client = new HttpClient();
PostMethod post = new PostMethod... | public void testClosure() throws Exception {
ServerRunnable server = new ServerRunnable();
try {
new Thread(new ServerRunnable()).start();
try {
Thread.sleep(1500);
} catch (InterruptedException e) {
}
HttpClient client = new HttpClient();
PostMethod post = new Pos... |
diff --git a/core/ast/src/main/java/org/overture/ast/lex/LexNameToken.java b/core/ast/src/main/java/org/overture/ast/lex/LexNameToken.java
index dd3a9a1080..fe91e48cbc 100644
--- a/core/ast/src/main/java/org/overture/ast/lex/LexNameToken.java
+++ b/core/ast/src/main/java/org/overture/ast/lex/LexNameToken.java
@@ -1,356... | false | true | public boolean equals(Object other)
{
if (!(other instanceof ILexNameToken))
{
return false;
}
ILexNameToken lother = (ILexNameToken) other;
if (typeQualifier != null && lother.getTypeQualifier() != null)
{
ClassLoader cls = ClassLoader.getSystemClassLoader();
try
{
@SuppressWarnings... | public boolean equals(Object other)
{
if (!(other instanceof ILexNameToken))
{
return false;
}
ILexNameToken lother = (ILexNameToken) other;
if (typeQualifier != null && lother.getTypeQualifier() != null)
{
//FIXME: How to call this code? We have no test cases that causes this to be execised and t... |
diff --git a/plugins/org.eclipse.dltk.javascript.core.dom.support/src/org/eclipse/dlkt/javascript/dom/support/internal/DOMResolver.java b/plugins/org.eclipse.dltk.javascript.core.dom.support/src/org/eclipse/dlkt/javascript/dom/support/internal/DOMResolver.java
index 8258ff46..60c6eb29 100644
--- a/plugins/org.eclipse.d... | true | true | void createReferences(String key, HashMap globals, HashSet rs) {
Iterator iterator = globals.keySet().iterator();
while (iterator.hasNext()) {
String s = (String) iterator.next();
if (s.startsWith(key)) {
IFile sourceFile = null;
Object object = globals.get(s);
IReference ref = null;
if (obj... | void createReferences(String key, HashMap globals, HashSet rs) {
Iterator iterator = globals.keySet().iterator();
while (iterator.hasNext()) {
String s = (String) iterator.next();
if (s.startsWith(key)) {
IFile sourceFile = null;
Object object = globals.get(s);
IReference ref = null;
if (obj... |
diff --git a/src/main/org/deidentifier/arx/ARXAnonymizer.java b/src/main/org/deidentifier/arx/ARXAnonymizer.java
index 2db6acf75..9cd5c8a11 100644
--- a/src/main/org/deidentifier/arx/ARXAnonymizer.java
+++ b/src/main/org/deidentifier/arx/ARXAnonymizer.java
@@ -1,889 +1,889 @@
/*
* ARX: Efficient, Stable and Optimal ... | true | true | public ARXResult anonymize(final Data data, ARXConfiguration config) throws IOException {
// TODO: Fix this
if (config.isProtectSensitiveAssociations() &&
config.isPracticalMonotonicity() &&
data.getDefinition().getSensitiveAttributes().size()>1){
throw new Unsu... | public ARXResult anonymize(final Data data, ARXConfiguration config) throws IOException {
// TODO: Fix this
if (config.isProtectSensitiveAssociations() &&
config.isPracticalMonotonicity() &&
data.getDefinition().getSensitiveAttributes().size()>1){
throw new Unsu... |
diff --git a/titan-es/src/main/java/com/thinkaurelius/titan/diskstorage/es/ElasticSearchIndex.java b/titan-es/src/main/java/com/thinkaurelius/titan/diskstorage/es/ElasticSearchIndex.java
index a533f8423..de4f587fa 100644
--- a/titan-es/src/main/java/com/thinkaurelius/titan/diskstorage/es/ElasticSearchIndex.java
+++ b/t... | false | true | public ElasticSearchIndex(Configuration config) {
indexName = config.getString(INDEX_NAME_KEY, INDEX_NAME_DEFAULT);
checkExpectedClientVersion();
if (!config.containsKey(GraphDatabaseConfiguration.HOSTNAME_KEY)) {
boolean clientOnly = config.getBoolean(CLIENT_ONLY_KEY, CLIENT_O... | public ElasticSearchIndex(Configuration config) {
indexName = config.getString(INDEX_NAME_KEY, INDEX_NAME_DEFAULT);
checkExpectedClientVersion();
if (!config.containsKey(GraphDatabaseConfiguration.HOSTNAME_KEY)) {
boolean clientOnly = config.getBoolean(CLIENT_ONLY_KEY, CLIENT_O... |
diff --git a/app/controllers/Registration.java b/app/controllers/Registration.java
index 0e1785d..0bf853d 100644
--- a/app/controllers/Registration.java
+++ b/app/controllers/Registration.java
@@ -1,195 +1,195 @@
package controllers;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
i... | true | true | public static void registerParticipant(String community, String eventId, boolean embed, String returnURL,
Participant participant){
Event event = Event.findById(eventId);
notFoundIfNull(event);
Validation.required("participant.emailAddress", participant.emailAddress);
Validation.email("participant.emailAd... | public static void registerParticipant(String community, String eventId, boolean embed, String returnURL,
Participant participant){
Event event = Event.findById(eventId);
notFoundIfNull(event);
Validation.required("participant.emailAddress", participant.emailAddress);
Validation.email("participant.emailAd... |
diff --git a/libraries/javalib/gnu/java/net/protocol/http/HTTPURLConnection.java b/libraries/javalib/gnu/java/net/protocol/http/HTTPURLConnection.java
index 78505b788..50a6ed12e 100644
--- a/libraries/javalib/gnu/java/net/protocol/http/HTTPURLConnection.java
+++ b/libraries/javalib/gnu/java/net/protocol/http/HTTPURLCon... | true | true | public void connect()
throws IOException
{
if (connected)
{
return;
}
String protocol = url.getProtocol();
boolean secure = "https".equals(protocol);
String host = url.getHost();
int port = url.getPort();
if (port < 0)
{
port = secure ? HTTPConnection.HT... | public void connect()
throws IOException
{
if (connected)
{
return;
}
String protocol = url.getProtocol();
boolean secure = "https".equals(protocol);
String host = url.getHost();
int port = url.getPort();
if (port < 0)
{
port = secure ? HTTPConnection.HT... |
diff --git a/src/mud/network/server/input/interpreter/ChatInterpreter.java b/src/mud/network/server/input/interpreter/ChatInterpreter.java
index 6f5ff68..0f7464a 100644
--- a/src/mud/network/server/input/interpreter/ChatInterpreter.java
+++ b/src/mud/network/server/input/interpreter/ChatInterpreter.java
@@ -1,116 +1,11... | true | true | public boolean interpret(Connection sender, ParsedInput input) {
String firstWord = input.getFirstWord();
//Check to see if the message is a tell
if (firstWord.equalsIgnoreCase("tell")) {
String target = input.getWordAtIndex(1);
//Check to see if there is no target ar... | public boolean interpret(Connection sender, ParsedInput input) {
String firstWord = input.getFirstWord();
//Check to see if the message is a tell
if (firstWord.equalsIgnoreCase("tell")) {
String target = input.getWordAtIndex(1);
//Check to see if there is no target ar... |
diff --git a/src/main/java/com/netflix/simianarmy/janitor/JanitorEmailNotifier.java b/src/main/java/com/netflix/simianarmy/janitor/JanitorEmailNotifier.java
index dcb394d..5671fdb 100644
--- a/src/main/java/com/netflix/simianarmy/janitor/JanitorEmailNotifier.java
+++ b/src/main/java/com/netflix/simianarmy/janitor/Janit... | false | true | public void sendNotifications() {
validateEmails();
Map<String, Collection<Resource>> emailToResources = new HashMap<String, Collection<Resource>>();
invalidEmailToResources.clear();
for (Resource r : getMarkedResources()) {
if (r.isOptOutOfJanitor()) {
LO... | public void sendNotifications() {
validateEmails();
Map<String, Collection<Resource>> emailToResources = new HashMap<String, Collection<Resource>>();
invalidEmailToResources.clear();
for (Resource r : getMarkedResources()) {
if (r.isOptOutOfJanitor()) {
LO... |
diff --git a/src/net/zdremann/ClassFileParser.java b/src/net/zdremann/ClassFileParser.java
index 9339f0d..75c1cf6 100644
--- a/src/net/zdremann/ClassFileParser.java
+++ b/src/net/zdremann/ClassFileParser.java
@@ -1,165 +1,165 @@
package net.zdremann;
import java.io.BufferedInputStream;
import java.io.File;
import... | true | true | public ClassVO parseClass()
{
ClassVO vo = new ClassVO();
AbstractCPInfo[] cpool = classFile.getConstantPool();
//Get this
ConstantClassInfo thisClass = (ConstantClassInfo)cpool[classFile.getThisClass().getValue()];
vo.classNameAndPackage(getCString(cpool, thisClass.getNameIndex()).replace('/', '.'));... | public ClassVO parseClass()
{
ClassVO vo = new ClassVO();
AbstractCPInfo[] cpool = classFile.getConstantPool();
//Get this
ConstantClassInfo thisClass = (ConstantClassInfo)cpool[classFile.getThisClass().getValue()];
vo.classNameAndPackage(getCString(cpool, thisClass.getNameIndex()).replace('/', '.').r... |
diff --git a/mrjp.latte.generator/src/latte/grammar/Test.java b/mrjp.latte.generator/src/latte/grammar/Test.java
index 2bd57d0..0ae1e93 100644
--- a/mrjp.latte.generator/src/latte/grammar/Test.java
+++ b/mrjp.latte.generator/src/latte/grammar/Test.java
@@ -1,26 +1,26 @@
package latte.grammar;
import latte.grammar.l... | true | true | public static void main(String[] args) throws RecognitionException {
CharStream charStream = new ANTLRStringStream("int main() { return 1-1; }");
latteLexer lexer = new latteLexer(charStream);
TokenStream tokenStream = new CommonTokenStream(lexer);
latteParser parser = new latteParser(tokenStream);
program_r... | public static void main(String[] args) throws RecognitionException {
CharStream charStream = new ANTLRStringStream("int main() { return 1 - 1 - 1; } int main() { int x; x = 2 + 1; return 1 - 1 - 1; }");
latteLexer lexer = new latteLexer(charStream);
TokenStream tokenStream = new CommonTokenStream(lexer);
latte... |
diff --git a/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java b/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java
index 97ee53bc..addbf7f6 100644
--- a/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java
+++ b/src/main/java/net/pterodactylus/sone/web/page/Fr... | true | true | public Response handleRequest(FreenetRequest request, Response response) throws IOException {
String redirectTarget = getRedirectTarget(request);
if (redirectTarget != null) {
return new RedirectResponse(redirectTarget);
}
if (isFullAccessOnly() && !request.getToadletContext().isAllowedFullAccess()) {
r... | public Response handleRequest(FreenetRequest request, Response response) throws IOException {
String redirectTarget = getRedirectTarget(request);
if (redirectTarget != null) {
return new RedirectResponse(redirectTarget);
}
if (isFullAccessOnly() && !request.getToadletContext().isAllowedFullAccess()) {
r... |
diff --git a/src/main/java/org/jahia/modules/blog/AddBlogEntryAction.java b/src/main/java/org/jahia/modules/blog/AddBlogEntryAction.java
index 8ee4c0a..50a324a 100644
--- a/src/main/java/org/jahia/modules/blog/AddBlogEntryAction.java
+++ b/src/main/java/org/jahia/modules/blog/AddBlogEntryAction.java
@@ -1,41 +1,41 @@
... | true | true | public ActionResult doExecute(HttpServletRequest req, RenderContext renderContext, Resource resource, JCRSessionWrapper session, Map<String, List<String>> parameters, URLResolver urlResolver) throws Exception {
JCRSessionWrapper jcrSessionWrapper = resource.getNode().getSession();
JCRNodeWrapper nod... | public ActionResult doExecute(HttpServletRequest req, RenderContext renderContext, Resource resource, JCRSessionWrapper session, Map<String, List<String>> parameters, URLResolver urlResolver) throws Exception {
JCRSessionWrapper jcrSessionWrapper = resource.getNode().getSession();
JCRNodeWrapper nod... |
diff --git a/holmes-core/src/main/java/net/holmes/core/media/MediaServiceImpl.java b/holmes-core/src/main/java/net/holmes/core/media/MediaServiceImpl.java
index 462c891a..3b07d435 100644
--- a/holmes-core/src/main/java/net/holmes/core/media/MediaServiceImpl.java
+++ b/holmes-core/src/main/java/net/holmes/core/media/Med... | true | true | private List<AbstractNode> getPodcastChildNodes(final String parentId, final String url) {
try {
return podcastCache.get(url, new Callable<List<AbstractNode>>() {
@Override
public List<AbstractNode> call() throws Exception {
// No entries in c... | private List<AbstractNode> getPodcastChildNodes(final String parentId, final String url) {
try {
return podcastCache.get(url, new Callable<List<AbstractNode>>() {
@Override
public List<AbstractNode> call() throws Exception {
// No entries in c... |
diff --git a/classes/test/FileHandle.java b/classes/test/FileHandle.java
index 0310d68d..8ea9d76c 100644
--- a/classes/test/FileHandle.java
+++ b/classes/test/FileHandle.java
@@ -1,16 +1,16 @@
// read a local file
package classes.test;
import java.io.*;
public class FileHandle {
public static void main(String[] ... | true | true | public static void main(String[] args) {
FileInputStream in = null;
try {
in = new FileInputStream("./classes/test/FileHandle.java");
in.read();
in.close();
in.read();
} catch (Exception e) {
System.err.println(e.toString());
}
}
| public static void main(String[] args) {
FileInputStream in = null;
try {
in = new FileInputStream("./classes/test/FileHandle.java");
in.read();
in.close();
in.read();
} catch (IOException e) {
System.err.println("An IOException has occurred (expected).");
}
}
|
diff --git a/sgs-server/src/main/java/com/sun/sgs/impl/service/session/ClientSessionHandler.java b/sgs-server/src/main/java/com/sun/sgs/impl/service/session/ClientSessionHandler.java
index 72cbdc236..05c0e67db 100644
--- a/sgs-server/src/main/java/com/sun/sgs/impl/service/session/ClientSessionHandler.java
+++ b/sgs-ser... | true | true | private void handleLoginRequest() {
logger.log(
Level.FINEST,
"handling login request for identity:{0}", identity);
/*
* Get node assignment.
*/
final long assignedNodeId;
try{
assignedNodeId = sessionService.nodeMapService.assignNode(
... | private void handleLoginRequest() {
logger.log(
Level.FINEST,
"handling login request for identity:{0}", identity);
/*
* Get node assignment.
*/
final long assignedNodeId;
try {
assignedNodeId = sessionService.nodeMapService.assignNode(
... |
diff --git a/src/com/android/calendar/EventInfoFragment.java b/src/com/android/calendar/EventInfoFragment.java
index cac116bf..544613c2 100644
--- a/src/com/android/calendar/EventInfoFragment.java
+++ b/src/com/android/calendar/EventInfoFragment.java
@@ -1,1000 +1,1000 @@
/*
* Copyright (C) 2010 The Android Open Sou... | true | true | private void updateEvent(View view) {
if (mEventCursor == null) {
return;
}
String eventName = mEventCursor.getString(EVENT_INDEX_TITLE);
if (eventName == null || eventName.length() == 0) {
eventName = getActivity().getString(R.string.no_title_label);
... | private void updateEvent(View view) {
if (mEventCursor == null) {
return;
}
String eventName = mEventCursor.getString(EVENT_INDEX_TITLE);
if (eventName == null || eventName.length() == 0) {
eventName = getActivity().getString(R.string.no_title_label);
... |
diff --git a/src/java/PythonHandler.java b/src/java/PythonHandler.java
index 72c0bfd..5576cc5 100644
--- a/src/java/PythonHandler.java
+++ b/src/java/PythonHandler.java
@@ -1,34 +1,34 @@
import org.python.core.*;
import org.python.util.PythonInterpreter;
import java.io.File;
class PythonHandler {
PythonInterpre... | true | true | public void invokeParser(String vcfFilePath) {
if (!fileExists(vcfFilePath)) {
System.out.println("Fatal Error: file does not exist");
return;
}
interpreter.exec("import sys");
interpreter.exec("print 'hello'");
interpreter.exec("print 'world'");
interpreter.exec("sys.path.append('/home/git_vcf/src/'... | public void invokeParser(String vcfFilePath) {
if (!fileExists(vcfFilePath)) {
System.out.println("Fatal Error: file does not exist");
return;
}
interpreter.exec("import sys");
interpreter.exec("print 'hello'");
interpreter.exec("print 'world'");
interpreter.exec("sys.path.append('/home/git_vcf/src/V... |
diff --git a/examples/Java/syncsub.java b/examples/Java/syncsub.java
index 1405ed60..3abaab0b 100644
--- a/examples/Java/syncsub.java
+++ b/examples/Java/syncsub.java
@@ -1,43 +1,44 @@
import org.zeromq.ZMQ;
import org.zeromq.ZMQ.Context;
import org.zeromq.ZMQ.Socket;
/**
* Synchronized subscriber.
*/
public c... | true | true | public static void main (String[] args) {
Context context = ZMQ.context(1);
// First, connect our subscriber socket
Socket subscriber = context.socket(ZMQ.SUB);
subscriber.connect("tcp://localhost:5561");
subscriber.subscribe("".getBytes());
// Second, synchronize... | public static void main (String[] args) {
Context context = ZMQ.context(1);
// First, connect our subscriber socket
Socket subscriber = context.socket(ZMQ.SUB);
subscriber.setRcvHWM(0);
subscriber.connect("tcp://localhost:5561");
subscriber.subscribe("".getBytes());... |
diff --git a/src/com/vaadin/incubator/ratingstars/gwt/client/ui/VRatingStars.java b/src/com/vaadin/incubator/ratingstars/gwt/client/ui/VRatingStars.java
index d73391a..aa2bafc 100644
--- a/src/com/vaadin/incubator/ratingstars/gwt/client/ui/VRatingStars.java
+++ b/src/com/vaadin/incubator/ratingstars/gwt/client/ui/VRati... | true | true | public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
// This call should be made first. Ensure correct implementation,
// and let the containing layout manage caption, etc.
if (client.updateComponent(this, uidl, true)) {
return;
}
// Save referen... | public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
// This call should be made first. Ensure correct implementation,
// and let the containing layout manage caption, etc.
if (client.updateComponent(this, uidl, true)) {
return;
}
// Save referen... |
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/ResultFieldMetadata.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/ResultFieldMetadata.java
index 7d1c4a69c..36227ef37 100644
--- a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor... | false | true | public void setDataType( Class dataType )
{
assert( dataType == Integer.class ||
dataType == Double.class ||
dataType == String.class ||
dataType == BigDecimal.class ||
dataType == java.util.Date.class || // backward compatibilty
dataType == java.sql.Date.cl... | public void setDataType( Class dataType )
{
/* assert( dataType == Integer.class ||
dataType == Double.class ||
dataType == String.class ||
dataType == BigDecimal.class ||
dataType == java.util.Date.class || // backward compatibilty
dataType == java.sql.Date.... |
diff --git a/src/com/android/providers/media/MediaDocumentsProvider.java b/src/com/android/providers/media/MediaDocumentsProvider.java
index b0be20f..fbb44ed 100644
--- a/src/com/android/providers/media/MediaDocumentsProvider.java
+++ b/src/com/android/providers/media/MediaDocumentsProvider.java
@@ -1,862 +1,862 @@
/*... | true | true | public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException {
final ContentResolver resolver = getContext().getContentResolver();
final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection));
final Ident ident = getIdentForDocId(docId);
... | public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException {
final ContentResolver resolver = getContext().getContentResolver();
final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection));
final Ident ident = getIdentForDocId(docId);
... |
diff --git a/jsf-ri/src/com/sun/faces/facelets/tag/jsf/core/AjaxHandler.java b/jsf-ri/src/com/sun/faces/facelets/tag/jsf/core/AjaxHandler.java
index 7cc2a9c01..9c1534080 100644
--- a/jsf-ri/src/com/sun/faces/facelets/tag/jsf/core/AjaxHandler.java
+++ b/jsf-ri/src/com/sun/faces/facelets/tag/jsf/core/AjaxHandler.java
@@ ... | true | true | public void apply(FaceletContext ctx, UIComponent parent)
throws IOException, FacesException, FaceletException, ELException {
if (null == parent || !(ComponentSupport.isNew(parent))) {
return;
}
String event = this.event.getValue();
//AjaxBehavior ajaxBehavior... | public void apply(FaceletContext ctx, UIComponent parent)
throws IOException, FacesException, FaceletException, ELException {
if (null == parent || !(ComponentSupport.isNew(parent))) {
return;
}
String event = (this.event != null) ? this.event.getValue() : null;
... |
diff --git a/src/main/java/pt/go2/pagelets/PageLetFileReader.java b/src/main/java/pt/go2/pagelets/PageLetFileReader.java
index af8587f..6db502e 100644
--- a/src/main/java/pt/go2/pagelets/PageLetFileReader.java
+++ b/src/main/java/pt/go2/pagelets/PageLetFileReader.java
@@ -1,117 +1,121 @@
/**
*
*/
package pt.go2.... | true | true | private byte[] readFromFile(final BufferedReader br) throws IOException {
final StringBuilder sb = new StringBuilder();
String line = br.readLine();
while (line != null) {
if ( line.charAt(0) == '#' ) continue;
final Matcher tagMatcher = tagPattern.matcher(line);
while (tagMatcher.find()) {
... | private byte[] readFromFile(final BufferedReader br) throws IOException {
final StringBuilder sb = new StringBuilder();
String line = br.readLine();
while (line != null) {
if (line.isEmpty() || line.charAt(0) == '#')
{
line = br.readLine();
continue;
}
final Matcher tagMatcher = tagPa... |
diff --git a/gwt-jackson/src/test/java/com/github/nmorel/gwtjackson/shared/mapper/SimpleBeanJsonMapperTester.java b/gwt-jackson/src/test/java/com/github/nmorel/gwtjackson/shared/mapper/SimpleBeanJsonMapperTester.java
index 6488c04..51238ac 100644
--- a/gwt-jackson/src/test/java/com/github/nmorel/gwtjackson/shared/mappe... | true | true | public void testDeserializeValue( ObjectReaderTester<SimpleBean> reader ) {
String input = "{" +
"\"string\":\"toto\"," +
"\"bytePrimitive\":34," +
"\"byteBoxed\":87," +
"\"shortPrimitive\":12," +
"\"shortBoxed\":15," +
"\"intPrimitive... | public void testDeserializeValue( ObjectReaderTester<SimpleBean> reader ) {
String input = "{" +
"\"string\":\"toto\"," +
"\"bytePrimitive\":34," +
"\"byteBoxed\":87," +
"\"shortPrimitive\":12," +
"\"shortBoxed\":15," +
"\"intPrimitive... |
diff --git a/fi/hu/cs/titokone/Compiler.java b/fi/hu/cs/titokone/Compiler.java
index 13a5701..c4e07a3 100755
--- a/fi/hu/cs/titokone/Compiler.java
+++ b/fi/hu/cs/titokone/Compiler.java
@@ -1,997 +1,996 @@
package fi.hu.cs.titokone;
import fi.hu.cs.ttk91.TTK91CompileException;
import java.util.HashMap;
import java... | true | true | private CompileInfo firstRoundProcess(String line)
throws TTK91CompileException {
String[] lineTemp = parseCompilerCommandLine(line);
boolean nothingFound = true;
String comment = "";
String[] commentParameters;
int intValue = 0;
String[] symbolTableEntry = new String[2];
boolean labelFound = false;
boole... | private CompileInfo firstRoundProcess(String line)
throws TTK91CompileException {
String[] lineTemp = parseCompilerCommandLine(line);
boolean nothingFound = true;
String comment = "";
String[] commentParameters;
int intValue = 0;
String[] symbolTableEntry = new String[2];
boolean labelFound = false;
boole... |
diff --git a/src/main/java/com/madalla/webapp/components/member/MemberLoginPanel.java b/src/main/java/com/madalla/webapp/components/member/MemberLoginPanel.java
index c3c504c0..7eeb5210 100644
--- a/src/main/java/com/madalla/webapp/components/member/MemberLoginPanel.java
+++ b/src/main/java/com/madalla/webapp/component... | true | true | public MemberLoginPanel(String id, final ICredentialHolder credentials, Class<? extends Page> destinationParam) {
super(id);
final Class<? extends Page> destination = destinationParam == null? getApplication().getHomePage(): destinationParam;
final MemberSession session = getAppSession().getMemberSession()... | public MemberLoginPanel(String id, final ICredentialHolder credentials, Class<? extends Page> destinationParam) {
super(id);
final Class<? extends Page> destination = destinationParam == null? getApplication().getHomePage(): destinationParam;
final MemberSession session = getAppSession().getMemberSession()... |
diff --git a/java/gadgets/src/main/java/org/apache/shindig/gadgets/RemoteContentRequest.java b/java/gadgets/src/main/java/org/apache/shindig/gadgets/RemoteContentRequest.java
index 14b0628ae..149a0c558 100644
--- a/java/gadgets/src/main/java/org/apache/shindig/gadgets/RemoteContentRequest.java
+++ b/java/gadgets/src/ma... | false | true | public RemoteContentRequest(String method,
URI uri,
Map<String, List<String>> headers,
byte[] postBody,
Options options) {
this.method = method;
this.uri = uri;
this.options = options;
... | public RemoteContentRequest(String method,
URI uri,
Map<String, List<String>> headers,
byte[] postBody,
Options options) {
this.method = method;
this.uri = uri;
this.options = options;
... |
diff --git a/jbpm-designer-client/src/main/java/org/jbpm/designer/client/DesignerPresenter.java b/jbpm-designer-client/src/main/java/org/jbpm/designer/client/DesignerPresenter.java
index 3a4a17ebd..1e8622d9e 100644
--- a/jbpm-designer-client/src/main/java/org/jbpm/designer/client/DesignerPresenter.java
+++ b/jbpm-desig... | true | true | public void onStart( final Path path,
final PlaceRequest place ) {
this.path = path;
this.place = place;
this.publishOpenInTab(this);
this.publishSignalOnAssetUpdate(this);
this.publishSignalOnAssetDelete(this);
this.publishSignalOnAssetAdded(... | public void onStart( final Path path,
final PlaceRequest place ) {
this.path = path;
this.place = place;
this.publishOpenInTab(this);
this.publishSignalOnAssetUpdate(this);
this.publishSignalOnAssetDelete(this);
this.publishSignalOnAssetAdded(... |
diff --git a/src/driver/GUIDriver.java b/src/driver/GUIDriver.java
index fa4151d..27a7fd8 100644
--- a/src/driver/GUIDriver.java
+++ b/src/driver/GUIDriver.java
@@ -1,628 +1,628 @@
package driver;
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Grap... | false | true | public static void main(String[] args) {
// Create game window...
JFrame app = new JFrame();
app.setIgnoreRepaint(true);
app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Create canvas for painting...
Canvas canvas = new Canvas();
canvas.setIgnoreRepaint(true);
canvas.setSize(1200, 480);
//... | public static void main(String[] args) {
// Create game window...
JFrame app = new JFrame();
app.setIgnoreRepaint(true);
app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Create canvas for painting...
Canvas canvas = new Canvas();
canvas.setIgnoreRepaint(true);
canvas.setSize(1200, 480);
//... |
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/text/FileTableContentProvider.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/text/FileTableContentProvider.java
index 0753f5415..0a327d9e1 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/ui/text/FileTableContentPro... | true | true | public void elementsChanged(Object[] updatedElements) {
for (int i= 0; i < updatedElements.length; i++) {
if (fResult.getMatchCount(updatedElements[i]) > 0)
fTableViewer.add(updatedElements[i]);
else
fTableViewer.remove(updatedElements[i]);
}
}
| public void elementsChanged(Object[] updatedElements) {
for (int i= 0; i < updatedElements.length; i++) {
if (fResult.getMatchCount(updatedElements[i]) > 0) {
if (fTableViewer.testFindItem(updatedElements[i]) != null)
fTableViewer.update(updatedElements[i], null);
else
fTableViewer.add(updatedEl... |
diff --git a/src/com/teleca/jamendo/util/FixedViewFlipper.java b/src/com/teleca/jamendo/util/FixedViewFlipper.java
index 7093210..2ea6eca 100644
--- a/src/com/teleca/jamendo/util/FixedViewFlipper.java
+++ b/src/com/teleca/jamendo/util/FixedViewFlipper.java
@@ -1,37 +1,37 @@
package com.teleca.jamendo.util;
import a... | true | true | protected void onDetachedFromWindow() {
int apiLevel = Build.VERSION.SDK_INT;
if (apiLevel >= 7 && apiLevel < 10) {
try {
super.onDetachedFromWindow();
} catch (IllegalArgumentException e) {
Log.w("Jamendo", "Android project issue 6191 workaround.");
/* Quick catch and continue on api level 7... | protected void onDetachedFromWindow() {
int apiLevel = Build.VERSION.SDK_INT;
if (apiLevel >= 7) {
try {
super.onDetachedFromWindow();
} catch (IllegalArgumentException e) {
Log.w("Jamendo", "Android project issue 6191 workaround.");
/* Quick catch and continue on api level 7, the Eclair 2.1 ... |
diff --git a/modules/standard/src/rescuecore2/standard/view/AreaNeighboursLayer.java b/modules/standard/src/rescuecore2/standard/view/AreaNeighboursLayer.java
index 0f81d5c..d0ac912 100644
--- a/modules/standard/src/rescuecore2/standard/view/AreaNeighboursLayer.java
+++ b/modules/standard/src/rescuecore2/standard/view/... | true | true | public Shape render(Area area, Graphics2D g, ScreenTransform t) {
g.setColor(NEIGHBOUR_COLOUR);
g.setStroke(NEIGHBOUR_STROKE);
for (Edge edge : area.getEdges()) {
EntityID neighbour = edge.getNeighbour();
if (neighbour != null) {
Area a = (Area)world.g... | public Shape render(Area area, Graphics2D g, ScreenTransform t) {
g.setColor(NEIGHBOUR_COLOUR);
g.setStroke(NEIGHBOUR_STROKE);
for (Edge edge : area.getEdges()) {
EntityID neighbour = edge.getNeighbour();
if (neighbour != null) {
Area a = (Area)world.g... |
diff --git a/jython/org/python/core/exceptions.java b/jython/org/python/core/exceptions.java
index 79ab093e..5bc1ee30 100644
--- a/jython/org/python/core/exceptions.java
+++ b/jython/org/python/core/exceptions.java
@@ -1,437 +1,438 @@
// Copyright 2001 Finn Bock
package org.python.core;
import java.lang.reflect.... | true | true | public static void classDictInit(PyObject dict) {
dict.invoke("clear");
dict.__setitem__("__name__", new PyString("exceptions"));
dict.__setitem__("__doc__", new PyString(__doc__));
ThreadState ts = Py.getThreadState();
if (ts.systemState == null) {
ts.systemStat... | public static void classDictInit(PyObject dict) {
dict.invoke("clear");
dict.__setitem__("__name__", new PyString("exceptions"));
dict.__setitem__("__doc__", new PyString(__doc__));
ThreadState ts = Py.getThreadState();
if (ts.systemState == null) {
ts.systemStat... |
diff --git a/src/main/java/net/praqma/ccanalyzer/AbstractClient.java b/src/main/java/net/praqma/ccanalyzer/AbstractClient.java
index ba7d6a6..f69ee90 100644
--- a/src/main/java/net/praqma/ccanalyzer/AbstractClient.java
+++ b/src/main/java/net/praqma/ccanalyzer/AbstractClient.java
@@ -1,79 +1,79 @@
package net.praqma.c... | true | true | public void start( ConfigurationReader counters ) throws IOException {
Socket socket = null;
PrintWriter out = null;
BufferedReader in = null;
System.out.print( "Trying to connect to " + host );
try {
socket = new Socket( host, port );
out = ... | public void start( ConfigurationReader counters ) throws IOException {
Socket socket = null;
PrintWriter out = null;
BufferedReader in = null;
System.out.print( "Trying to connect to " + host );
try {
socket = new Socket( host, port );
out = ... |
diff --git a/src/ch/amana/android/cputuner/provider/CpuTunerProvider.java b/src/ch/amana/android/cputuner/provider/CpuTunerProvider.java
index 81590dbf..8149e6e3 100644
--- a/src/ch/amana/android/cputuner/provider/CpuTunerProvider.java
+++ b/src/ch/amana/android/cputuner/provider/CpuTunerProvider.java
@@ -1,248 +1,246 ... | true | true | public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
UriTableMapping utm = getUriTableMap(uri);
qb.setTables(utm.tableName);
if (utm.specialWhere != null) {
qb.appendWhere(utm.specialWhere);
}
... | public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
UriTableMapping utm = getUriTableMap(uri);
qb.setTables(utm.tableName);
if (utm.specialWhere != null) {
qb.appendWhere(utm.specialWhere);
}
... |
diff --git a/jobs/jobs-jms/src/main/java/com/redshape/jobs/jms/sources/JMSSource.java b/jobs/jobs-jms/src/main/java/com/redshape/jobs/jms/sources/JMSSource.java
index ff07b84f..9b485d83 100644
--- a/jobs/jobs-jms/src/main/java/com/redshape/jobs/jms/sources/JMSSource.java
+++ b/jobs/jobs-jms/src/main/java/com/redshape/j... | true | true | public List<IJob> fetch() throws JobException {
int failuresCount = 0;
List<IJob> result = new ArrayList<IJob>();
long startReceivingTime = System.currentTimeMillis();
while ( result.size() <= this.getWorkChunkSize()
&& failuresCount < this.getMaxFailuresCoun... | public List<IJob> fetch() throws JobException {
int failuresCount = 0;
List<IJob> result = new ArrayList<IJob>();
long startReceivingTime = System.currentTimeMillis();
while ( result.size() <= this.getWorkChunkSize()
&& failuresCount < this.getMaxFailuresCoun... |
diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLogCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLogCommand.java
index 73ebe6727..74b1eb556 100644
--- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLogCommand.java
+++ b/scm-... | true | true | public ChangesetPagingResult getChangesets(LogCommandRequest request)
throws IOException, RepositoryException
{
if (logger.isDebugEnabled())
{
logger.debug("fetch changesets for {}", request);
}
ChangesetPagingResult changesets = null;
String startRevision = request.getStartChan... | public ChangesetPagingResult getChangesets(LogCommandRequest request)
throws IOException, RepositoryException
{
if (logger.isDebugEnabled())
{
logger.debug("fetch changesets for {}", request);
}
ChangesetPagingResult changesets = null;
String startRevision = request.getStartChan... |
diff --git a/jbi/src/main/java/org/apache/ode/jbi/OdeConsumerAsync.java b/jbi/src/main/java/org/apache/ode/jbi/OdeConsumerAsync.java
index d12af19ac..972348a75 100644
--- a/jbi/src/main/java/org/apache/ode/jbi/OdeConsumerAsync.java
+++ b/jbi/src/main/java/org/apache/ode/jbi/OdeConsumerAsync.java
@@ -1,127 +1,127 @@
/*... | false | true | public void run() {
long now = System.currentTimeMillis();
Object[] inouts = _mexTimeouts.keySet().toArray();
for (int i=0; i<inouts.length; i++) {
long timeout = _mexTimeouts.get(inouts[i]);
if (timeout >= now) {
_mexTimeou... | public void run() {
long now = System.currentTimeMillis();
Object[] inouts = _mexTimeouts.keySet().toArray();
for (int i=0; i<inouts.length; i++) {
long timeout = _mexTimeouts.get(inouts[i]);
if (now >= timeout) {
_mexTimeou... |
diff --git a/src/test/java/com/intridea/io/vfs/provider/s3/S3ProviderTest.java b/src/test/java/com/intridea/io/vfs/provider/s3/S3ProviderTest.java
index 0952af3..cf2a87e 100644
--- a/src/test/java/com/intridea/io/vfs/provider/s3/S3ProviderTest.java
+++ b/src/test/java/com/intridea/io/vfs/provider/s3/S3ProviderTest.java... | true | true | public void upload_multiple() throws Exception {
FileObject dest = fsManager.resolveFile("s3://" + bucketName + "/test-place/backup.zip");
// Delete file if exists
if (dest.exists()) {
dest.delete();
}
// Copy data
final File backupFile = new File(BACKUP... | public void uploadMultiple() throws Exception {
FileObject dest = fsManager.resolveFile("s3://" + bucketName + "/test-place/backup.zip");
// Delete file if exists
if (dest.exists()) {
dest.delete();
}
// Copy data
final File backupFile = new File(BACKUP_... |
diff --git a/unfolding/examples/de/fhpotsdam/unfolding/examples/MapInteractionTestApp.java b/unfolding/examples/de/fhpotsdam/unfolding/examples/MapInteractionTestApp.java
index 6fe62b7..1e5cc50 100644
--- a/unfolding/examples/de/fhpotsdam/unfolding/examples/MapInteractionTestApp.java
+++ b/unfolding/examples/de/fhpotsd... | true | true | public void keyPressed() {
if (key == '+') {
// TODO Integrate object center as default innerTransCenter in public methods
float[] xy = map.mapDisplay.getScreenFromObjectPosition(map.mapDisplay.getWidth()/2, map.mapDisplay.getHeight()/2);
PVector transCenter = new PVector(xy[0], xy[1]);
map.mapDisplay.se... | public void keyPressed() {
if (key == '+') {
// TODO Integrate object center as default innerTransCenter in public methods
float[] xy = map.mapDisplay.getScreenFromObjectPosition(map.mapDisplay.getWidth()/2, map.mapDisplay.getHeight()/2);
PVector transCenter = new PVector(xy[0], xy[1]);
map.mapDisplay.se... |
diff --git a/dbproject/src/my/triviagame/gui/About.java b/dbproject/src/my/triviagame/gui/About.java
index bc0ed9f..d35c463 100755
--- a/dbproject/src/my/triviagame/gui/About.java
+++ b/dbproject/src/my/triviagame/gui/About.java
@@ -1,142 +1,142 @@
package my.triviagame.gui;
public class About extends javax.swing.J... | false | true | private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.D... | private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.D... |
diff --git a/M4/src/edu/gatech/oad/antlab/person/Person1.java b/M4/src/edu/gatech/oad/antlab/person/Person1.java
index 2a17d07..49fd98a 100644
--- a/M4/src/edu/gatech/oad/antlab/person/Person1.java
+++ b/M4/src/edu/gatech/oad/antlab/person/Person1.java
@@ -1,52 +1,52 @@
package edu.gatech.oad.antlab.person;
/**
*... | true | true | private String calc(String input) {
//Person 1 put your implementation here
String output = input.substring(2);
output.concat(input.charAt(0));
output.concat(input.charAt(1));
return output;
}
| private String calc(String input) {
//Person 1 put your implementation here
String output = input.substring(2);
output += input.charAt(0);
output += input.charAt(1);
return output;
}
|
diff --git a/src/main/java/freemarker/core/EvalUtil.java b/src/main/java/freemarker/core/EvalUtil.java
index 485da716..534f6a70 100644
--- a/src/main/java/freemarker/core/EvalUtil.java
+++ b/src/main/java/freemarker/core/EvalUtil.java
@@ -1,422 +1,422 @@
/*
* Copyright (c) 2003 The Visigoth Software Society. All rig... | true | true | static boolean compare(
TemplateModel leftValue, Expression leftExp,
int operator, String operatorString,
TemplateModel rightValue, Expression rightExp,
Expression defaultBlamed,
boolean typeMismatchMeansNotEqual,
boolean leftNullReturnsFalse, ... | static boolean compare(
TemplateModel leftValue, Expression leftExp,
int operator, String operatorString,
TemplateModel rightValue, Expression rightExp,
Expression defaultBlamed,
boolean typeMismatchMeansNotEqual,
boolean leftNullReturnsFalse, ... |
diff --git a/core/src/main/java/com/jayway/forest/core/MediaTypeHandler.java b/core/src/main/java/com/jayway/forest/core/MediaTypeHandler.java
index a1c4006..a6943f2 100644
--- a/core/src/main/java/com/jayway/forest/core/MediaTypeHandler.java
+++ b/core/src/main/java/com/jayway/forest/core/MediaTypeHandler.java
@@ -1,6... | false | true | public MediaTypeHandler( HttpServletRequest request, HttpServletResponse response ) {
String acceptHeader = request.getHeader("Accept");
String contentTypeHeader = request.getHeader("Content-Type");
// accept defaults to JSON
if ( acceptHeader != null ) {
accept = APPLICA... | public MediaTypeHandler( HttpServletRequest request, HttpServletResponse response ) {
String acceptHeader = request.getHeader("Accept");
String contentTypeHeader = request.getHeader("Content-Type");
// accept defaults to JSON
accept = APPLICATION_JSON;
if ( acceptHeader != nu... |
diff --git a/framework/src/org/apache/tapestry/multipart/DefaultMultipartDecoder.java b/framework/src/org/apache/tapestry/multipart/DefaultMultipartDecoder.java
index f0e22e66f..4342d7463 100644
--- a/framework/src/org/apache/tapestry/multipart/DefaultMultipartDecoder.java
+++ b/framework/src/org/apache/tapestry/multip... | true | true | public void decode(HttpServletRequest request)
{
Map partMap = new HashMap();
request.setAttribute(PART_MAP_ATTRIBUTE_NAME, partMap);
// The encoding that will be used to decode the string parameters
// It should NOT be null at this point, but it may be
// if the older... | public void decode(HttpServletRequest request)
{
Map partMap = new HashMap();
request.setAttribute(PART_MAP_ATTRIBUTE_NAME, partMap);
// The encoding that will be used to decode the string parameters
// It should NOT be null at this point, but it may be
// if the older... |
diff --git a/deegree-services/src/main/java/org/deegree/services/controller/utils/LoggingHttpResponseWrapper.java b/deegree-services/src/main/java/org/deegree/services/controller/utils/LoggingHttpResponseWrapper.java
index 685fad39c8..a65ef0c5f9 100644
--- a/deegree-services/src/main/java/org/deegree/services/controlle... | true | true | public void finalizeLogging() {
if ( logged ) {
return;
}
logged = true;
if ( !exceptionSent || !successfulOnly ) {
if ( kvp != null ) {
logger.logKVP( address, kvp, entryTime, currentTimeMillis(), creds );
}
}
if ( ... | public void finalizeLogging() {
if ( logged ) {
return;
}
logged = true;
if ( !exceptionSent || !successfulOnly ) {
if ( kvp != null ) {
logger.logKVP( address, kvp, entryTime, currentTimeMillis(), creds );
}
}
if ( ... |
diff --git a/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java b/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java
index 474e968..af27fef 100644
--- a/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java
+++ b/src/uk/ac/gla/dcs/tp3/w/algorithm/Graph.java
@@ -1,147 +1,147 @@
package uk.ac.gla.dcs.tp3.w.algorithm;
import java.util.Lin... | true | true | public Graph(League l, Team t) {
if (l == null || t == null)
return;
// Number of team nodes is one less than total number of teams.
// The team nodes do not include the team being tested for elimination.
int teamTotal = l.getTeams().length;
// The r-combination of teamTotal for length 2 is the number of ... | public Graph(League l, Team t) {
if (l == null || t == null)
return;
// Number of team nodes is one less than total number of teams.
// The team nodes do not include the team being tested for elimination.
int teamTotal = l.getTeams().length;
// The r-combination of teamTotal for length 2 is the number of ... |
diff --git a/org.flowerplatform.editor/src/org/flowerplatform/editor/EditorPlugin.java b/org.flowerplatform.editor/src/org/flowerplatform/editor/EditorPlugin.java
index fee97a36..c82f4cfe 100644
--- a/org.flowerplatform.editor/src/org/flowerplatform/editor/EditorPlugin.java
+++ b/org.flowerplatform.editor/src/org/flowe... | true | true | public void start(BundleContext bundleContext) throws Exception {
super.start(bundleContext);
INSTANCE = this;
// content types
contentTypeDescriptorsMap = new HashMap<String, ContentTypeDescriptor>();
contentTypeDescriptorsList = new ArrayList<ContentTypeDescriptor>();
int i = 0;
IConfigurationElement... | public void start(BundleContext bundleContext) throws Exception {
super.start(bundleContext);
INSTANCE = this;
// content types
contentTypeDescriptorsMap = new HashMap<String, ContentTypeDescriptor>();
contentTypeDescriptorsList = new ArrayList<ContentTypeDescriptor>();
int i = 0;
IConfigurationElement... |
diff --git a/src/main/java/edu/vt/middleware/cas/ldap/Authenticator.java b/src/main/java/edu/vt/middleware/cas/ldap/Authenticator.java
index ea4fcb3..150f248 100644
--- a/src/main/java/edu/vt/middleware/cas/ldap/Authenticator.java
+++ b/src/main/java/edu/vt/middleware/cas/ldap/Authenticator.java
@@ -1,47 +1,45 @@
/*
... | true | true | public void run() {
final Date start = new Date();
boolean success;
try {
success = this.state.getAuthenticationHandler().authenticate(this.state.getWorkQueue().take());
} catch (Exception e) {
success = false;
}
final Sample.Result result = su... | public void run() {
final Date start = new Date();
boolean success;
try {
success = this.state.getAuthenticationHandler().authenticate(this.state.getWorkQueue().take());
} catch (Exception e) {
success = false;
}
final Sample.Result result = su... |
diff --git a/test/mnj/lua/BaseLibTest.java b/test/mnj/lua/BaseLibTest.java
index 21c234f..926d3cb 100644
--- a/test/mnj/lua/BaseLibTest.java
+++ b/test/mnj/lua/BaseLibTest.java
@@ -1,293 +1,295 @@
// $Header$
package mnj.lua;
// For j2meunit see http://j2meunit.sourceforge.net/
import j2meunit.framework.Test;
im... | true | true | public Test suite()
{
TestSuite suite = new TestSuite();
suite.addTest(new BaseLibTest("testBaseLib")
{
public void runTest() { testBaseLib(); } });
suite.addTest(new BaseLibTest("testPrint")
{
public void runTest() { testPrint(); } });
suite.addTest(new BaseLibTest("tes... | public Test suite()
{
TestSuite suite = new TestSuite();
suite.addTest(new BaseLibTest("testBaseLib")
{
public void runTest() { testBaseLib(); } });
suite.addTest(new BaseLibTest("testPrint")
{
public void runTest() { testPrint(); } });
suite.addTest(new BaseLibTest("tes... |
diff --git a/trunk/pwm/servlet/src/password/pwm/servlet/ForgottenUsernameServlet.java b/trunk/pwm/servlet/src/password/pwm/servlet/ForgottenUsernameServlet.java
index 6e9c1870..1c8760b2 100644
--- a/trunk/pwm/servlet/src/password/pwm/servlet/ForgottenUsernameServlet.java
+++ b/trunk/pwm/servlet/src/password/pwm/servlet... | true | true | public void handleSearchRequest(final HttpServletRequest req, final HttpServletResponse resp)
throws PwmUnrecoverableException, ChaiUnavailableException, IOException, ServletException {
final ContextManager theManager = ContextManager.getContextManager(req);
final PwmSession pwmSession =... | public void handleSearchRequest(final HttpServletRequest req, final HttpServletResponse resp)
throws PwmUnrecoverableException, ChaiUnavailableException, IOException, ServletException {
final ContextManager theManager = ContextManager.getContextManager(req);
final PwmSession pwmSession =... |
diff --git a/omod/src/main/java/org/openmrs/module/spreadsheetimport/web/controller/SpreadsheetImportFormController.java b/omod/src/main/java/org/openmrs/module/spreadsheetimport/web/controller/SpreadsheetImportFormController.java
index 9d77662..4ddf821 100644
--- a/omod/src/main/java/org/openmrs/module/spreadsheetimpo... | false | true | public String processSubmit(@ModelAttribute("template") SpreadsheetImportTemplate template, BindingResult result,
HttpServletRequest request) throws Exception {
log.debug("process import, step = " + request.getParameter("step"));
Map<String, List<String>> tableColumnListMap = Datab... | public String processSubmit(@ModelAttribute("template") SpreadsheetImportTemplate template, BindingResult result,
HttpServletRequest request) throws Exception {
log.debug("process import, step = " + request.getParameter("step"));
Map<String, List<String>> tableColumnListMap = Datab... |
diff --git a/isomap/src/io/TileSetBuilderWesnoth.java b/isomap/src/io/TileSetBuilderWesnoth.java
index 9368408..a03f105 100644
--- a/isomap/src/io/TileSetBuilderWesnoth.java
+++ b/isomap/src/io/TileSetBuilderWesnoth.java
@@ -1,104 +1,104 @@
/*
* Copyright (C) 2012-2013 Martin Steiger
*
* This program is free sof... | true | true | public HexTileSet read()
{
Map<OctDirection, TerrainType> borders = new HashMap<>();
HexTileSet ts = new HexTileSet(72, 72, 36);
ts.addImage(new File("data/wesnoth/foreground.png"), 0, 0, 0, 0);
ts.setCursorTileIndex(0);
ts.setInvalidTileIndex(0);
ts.addImage(new File("data/wesnoth/grass/green.png"), ... | public HexTileSet read()
{
Map<OctDirection, TerrainType> borders = new HashMap<>();
HexTileSet ts = new HexTileSet(72, 72, 36);
ts.addImage(new File("data/wesnoth/foreground.png"), 0, 0, 0, 0);
ts.setCursorTileIndex(0);
ts.setInvalidTileIndex(0);
ts.addImage(new File("data/wesnoth/grass/green.png"), ... |
diff --git a/src/com/radicaldynamic/groupinform/tasks/InstanceUploaderTask.java b/src/com/radicaldynamic/groupinform/tasks/InstanceUploaderTask.java
index b8996e7..680eb54 100644
--- a/src/com/radicaldynamic/groupinform/tasks/InstanceUploaderTask.java
+++ b/src/com/radicaldynamic/groupinform/tasks/InstanceUploaderTask.... | true | true | protected HashMap<String, String> doInBackground(String... values) {
// END custom
mResults = new HashMap<String, String>();
// BEGIN custom
// String selection = InstanceColumns._ID + "=?";
// String[] selectionArgs = new String[values.length];
// for (int i = 0; i < v... | protected HashMap<String, String> doInBackground(String... values) {
// END custom
mResults = new HashMap<String, String>();
// BEGIN custom
// String selection = InstanceColumns._ID + "=?";
// String[] selectionArgs = new String[values.length];
// for (int i = 0; i < v... |
diff --git a/registry/src/gov/nih/ncgc/bardplugin/Registry.java b/registry/src/gov/nih/ncgc/bardplugin/Registry.java
index 07b765d..3b9ae67 100644
--- a/registry/src/gov/nih/ncgc/bardplugin/Registry.java
+++ b/registry/src/gov/nih/ncgc/bardplugin/Registry.java
@@ -1,114 +1,119 @@
package gov.nih.ncgc.bardplugin;
im... | false | true | public void listPlugins(PrintWriter writer, HttpServletRequest request) throws IOException {
ObjectMapper mapper = new ObjectMapper();
ArrayNode anode = mapper.createArrayNode();
Container[] containers = host.findChildren();
for (Container container : containers) {
org.a... | public void listPlugins(PrintWriter writer, HttpServletRequest request) throws IOException {
ObjectMapper mapper = new ObjectMapper();
ArrayNode anode = mapper.createArrayNode();
Container[] containers = host.findChildren();
for (Container container : containers) {
org.a... |
diff --git a/railo-java/railo-core/src/railo/runtime/orm/hibernate/tuplizer/accessors/CFCGetter.java b/railo-java/railo-core/src/railo/runtime/orm/hibernate/tuplizer/accessors/CFCGetter.java
index 1d2061aa4..95c1b38d4 100755
--- a/railo-java/railo-core/src/railo/runtime/orm/hibernate/tuplizer/accessors/CFCGetter.java
+... | true | true | public Object get(Object trg) throws HibernateException {
try {
// MUST cache this, pherhaps when building xml
HibernateORMEngine engine = getHibernateORMEngine();
PageContext pc = ThreadLocalPageContext.get();
Component cfc = Caster.toComponent(trg);
String name = HibernateCaster.getEntityName(cfc);
... | public Object get(Object trg) throws HibernateException {
try {
// MUST cache this, perhaps when building xml
HibernateORMEngine engine = getHibernateORMEngine();
PageContext pc = ThreadLocalPageContext.get();
Component cfc = Caster.toComponent(trg);
String name = HibernateCaster.getEntityName(cfc);
... |
diff --git a/src/be/ibridge/kettle/trans/TransMeta.java b/src/be/ibridge/kettle/trans/TransMeta.java
index 4ece0c9d..f8019ec0 100644
--- a/src/be/ibridge/kettle/trans/TransMeta.java
+++ b/src/be/ibridge/kettle/trans/TransMeta.java
@@ -1,5220 +1,5223 @@
/*****************************************************************... | true | true | public void loadXML(Node transnode, Repository rep, boolean setInternalVariables ) throws KettleXMLException
{
Props props = null;
if (Props.isInitialized())
{
props=Props.getInstance();
}
try
{
// Clear the transformation
... | public void loadXML(Node transnode, Repository rep, boolean setInternalVariables ) throws KettleXMLException
{
Props props = null;
if (Props.isInitialized())
{
props=Props.getInstance();
}
try
{
// Clear the transformation
... |
diff --git a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBuffersForWorkspaceFiles.java b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBuffersForWorkspaceFiles.java
index 49a629b52..491ee1fea 100644
--- a/org.eclipse.core.filebuffers.tests/src/org/eclips... | true | true | protected boolean modifyUnderlyingFile() throws Exception {
if (USE_ECLIPSE_FS) {
IFileStore fileStore= FileBuffers.getFileStoreAtLocation(getPath());
assertTrue(fileStore.fetchInfo().exists());
OutputStream out= fileStore.openOutputStream(IFileStoreConstants.NONE, null);
try {
out.write(new String("... | protected boolean modifyUnderlyingFile() throws Exception {
if (USE_ECLIPSE_FS) {
IFileStore fileStore= FileBuffers.getFileStoreAtLocation(getPath());
assertTrue(fileStore.fetchInfo().exists());
OutputStream out= fileStore.openOutputStream(IFileStoreConstants.NONE, null);
try {
out.write(new String("... |
diff --git a/src/main/java/net/croxis/plugins/lift/ElevatorManager.java b/src/main/java/net/croxis/plugins/lift/ElevatorManager.java
index d66a248..a9e3675 100644
--- a/src/main/java/net/croxis/plugins/lift/ElevatorManager.java
+++ b/src/main/java/net/croxis/plugins/lift/ElevatorManager.java
@@ -1,244 +1,244 @@
packag... | true | true | public static Elevator createLift(Block block){
long startTime = System.currentTimeMillis();
plugin.logDebug("Starting elevator gen");
Elevator elevator = new Elevator();
int yscan = block.getY() - 1;
while(yscan >= plugin.lowScan){
if (yscan == plugin.lowScan){ //Gone too far with no base abort!
plug... | public static Elevator createLift(Block block){
long startTime = System.currentTimeMillis();
plugin.logDebug("Starting elevator gen");
Elevator elevator = new Elevator();
int yscan = block.getY() - 1;
while(yscan >= plugin.lowScan){
if (yscan == plugin.lowScan){ //Gone too far with no base abort!
plug... |
diff --git a/TransportDroidIL/src/net/lutzky/transportdroidil/TransportDroidIL.java b/TransportDroidIL/src/net/lutzky/transportdroidil/TransportDroidIL.java
index 9dd18b1..94f2f2e 100644
--- a/TransportDroidIL/src/net/lutzky/transportdroidil/TransportDroidIL.java
+++ b/TransportDroidIL/src/net/lutzky/transportdroidil/T... | false | true | private void runQuery(final BusGetter bg, final int interactionIndex) {
final SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);
final Handler mHandler = new Handler();
QueryView queryView = (QueryView) findViewById(R.id.queryview);
final String query = queryView.getQueryString... | private void runQuery(final BusGetter bg, final int interactionIndex) {
final SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);
final Handler mHandler = new Handler();
QueryView queryView = (QueryView) findViewById(R.id.queryview);
final String query = queryView.getQueryString... |
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index 9dd801da..ca63305a 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -1,4390 +1,4397 @@
/*
* Copyright (C) 2006 The Android Open Source Project
... | true | true | public boolean onOptionsItemSelected(MenuItem item) {
// check the action bar button before mCanChord check, as the prepare call
// doesn't come for action bar buttons
if (item.getItemId() == R.id.newtab) {
openTabToHomePage();
return true;
}
if (!mCan... | public boolean onOptionsItemSelected(MenuItem item) {
// check the action bar button before mCanChord check, as the prepare call
// doesn't come for action bar buttons
if (item.getItemId() == R.id.newtab) {
openTabToHomePage();
return true;
}
if (!mCan... |
diff --git a/src/gov/nih/nci/rembrandt/web/xml/GeneExprSampleReport.java b/src/gov/nih/nci/rembrandt/web/xml/GeneExprSampleReport.java
index 22bf95a2..f48efbbb 100755
--- a/src/gov/nih/nci/rembrandt/web/xml/GeneExprSampleReport.java
+++ b/src/gov/nih/nci/rembrandt/web/xml/GeneExprSampleReport.java
@@ -1,491 +1,491 @@
... | true | true | public Document getReportXML(Resultant resultant, Map filterMapParams) {
DecimalFormat resultFormat = new DecimalFormat("0.0000");
String delim = " | ";
/* testing hardcoded vals - these will be params of this method soon */
/*
ArrayList g = new ArrayList();
g.add("EGFR");
g.add("VEGF");
String tmp_fi... | public Document getReportXML(Resultant resultant, Map filterMapParams) {
DecimalFormat resultFormat = new DecimalFormat("0.0000");
String delim = " | ";
/* testing hardcoded vals - these will be params of this method soon */
/*
ArrayList g = new ArrayList();
g.add("EGFR");
g.add("VEGF");
String tmp_fi... |
diff --git a/src/org/apache/pig/backend/hadoop/executionengine/HExecutionEngine.java b/src/org/apache/pig/backend/hadoop/executionengine/HExecutionEngine.java
index 604f82f4..64ff1294 100644
--- a/src/org/apache/pig/backend/hadoop/executionengine/HExecutionEngine.java
+++ b/src/org/apache/pig/backend/hadoop/executionen... | true | true | public void init(Properties properties) throws ExecException {
//First set the ssh socket factory
setSSHFactory();
String cluster = null;
String nameNode = null;
Configuration configuration = null;
// We need to build a configuration object first in the ... | public void init(Properties properties) throws ExecException {
//First set the ssh socket factory
setSSHFactory();
String cluster = null;
String nameNode = null;
Configuration configuration = null;
// We need to build a configuration object first in the ... |
diff --git a/src/test/usm/USMIncrementDecrementTest.java b/src/test/usm/USMIncrementDecrementTest.java
index e8a439f8..73c2db2b 100644
--- a/src/test/usm/USMIncrementDecrementTest.java
+++ b/src/test/usm/USMIncrementDecrementTest.java
@@ -1,95 +1,95 @@
package test.usm;
import static framework.utils.AdminUtils.load... | true | true | public void test() throws Exception {
Service service = USMTestUtils.usmDeploy(processName, this.serviceFileName);
ProcessingUnit pu = admin.getProcessingUnits().waitFor(processName);
pu.waitFor(pu.getTotalNumberOfInstances());
assertTrue("Service " + processName + " State is not R... | public void test() throws Exception {
Service service = USMTestUtils.usmDeploy(processName, this.serviceFileName);
ProcessingUnit pu = admin.getProcessingUnits().waitFor(processName);
pu.waitFor(pu.getTotalNumberOfInstances());
assertTrue("Service " + processName + " State is not R... |
diff --git a/src/com/nadmm/airports/wx/TafFragment.java b/src/com/nadmm/airports/wx/TafFragment.java
index bec0eee9..19683d8c 100644
--- a/src/com/nadmm/airports/wx/TafFragment.java
+++ b/src/com/nadmm/airports/wx/TafFragment.java
@@ -1,486 +1,486 @@
/*
* FlightIntel for Pilots
*
* Copyright 2012 Nadeem Hasan <n... | false | true | protected void showTaf( Intent intent ) {
if ( getActivity() == null ) {
// Not ready to do this yet
return;
}
Taf taf = (Taf) intent.getSerializableExtra( NoaaService.RESULT );
View detail = findViewById( R.id.wx_detail_layout );
LinearLayout layout... | protected void showTaf( Intent intent ) {
if ( getActivity() == null ) {
// Not ready to do this yet
return;
}
Taf taf = (Taf) intent.getSerializableExtra( NoaaService.RESULT );
View detail = findViewById( R.id.wx_detail_layout );
LinearLayout layout... |
diff --git a/src/freemail/InboundContact.java b/src/freemail/InboundContact.java
index 7cd8ddd..9d2804e 100644
--- a/src/freemail/InboundContact.java
+++ b/src/freemail/InboundContact.java
@@ -1,253 +1,258 @@
/*
* InboundContact.java
* This file is part of Freemail, copyright (C) 2006 Dave Baker
*
* This progr... | true | true | public void fetch(MessageBank mb) {
HighLevelFCPClient fcpcli = new HighLevelFCPClient();
String slots = this.ibct_props.get("slots");
if (slots == null) {
System.out.println("Contact "+this.ibct_dir.getName()+" is corrupt - account file has no 'slots' entry!");
// TODO: probably delete the contact. it'... | public void fetch(MessageBank mb) {
HighLevelFCPClient fcpcli = new HighLevelFCPClient();
String slots = this.ibct_props.get("slots");
if (slots == null) {
System.out.println("Contact "+this.ibct_dir.getName()+" is corrupt - account file has no 'slots' entry!");
// TODO: probably delete the contact. it'... |
diff --git a/src/org/chriswood/plugin/DirtBlock/DirtBlockTalk.java b/src/org/chriswood/plugin/DirtBlock/DirtBlockTalk.java
index d100b0b..1f73b9c 100644
--- a/src/org/chriswood/plugin/DirtBlock/DirtBlockTalk.java
+++ b/src/org/chriswood/plugin/DirtBlock/DirtBlockTalk.java
@@ -1,85 +1,92 @@
package org.chriswood.plugin... | false | true | public void run() {
while(running) {
try {
Socket socket = server.accept();
socket.setSoTimeout(5000);
BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
String ... | public void run() {
while(running) {
try {
Socket socket = server.accept();
socket.setSoTimeout(5000);
BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
String ... |
diff --git a/src/main/java/org/basex/gui/view/map/MapDefault.java b/src/main/java/org/basex/gui/view/map/MapDefault.java
index e00e6381d..ed8e68e4b 100644
--- a/src/main/java/org/basex/gui/view/map/MapDefault.java
+++ b/src/main/java/org/basex/gui/view/map/MapDefault.java
@@ -1,120 +1,121 @@
package org.basex.gui.view... | true | true | void drawRectangles(final Graphics g, final MapRects rects,
final float scale) {
// some additions to set up borders
final MapRect l = view.layout.layout;
l.x = (int) scale * l.x; l.y = (int) scale * l.y;
l.w = (int) scale * l.w; l.h = (int) scale * l.h;
final int ww = view.getWidth();
f... | void drawRectangles(final Graphics g, final MapRects rects,
final float scale) {
// some additions to set up borders
final MapRect l = view.layout.layout;
l.x = (int) scale * l.x; l.y = (int) scale * l.y;
l.w = (int) scale * l.w; l.h = (int) scale * l.h;
final int ww = view.getWidth();
f... |
diff --git a/src/test/java/Main3.java b/src/test/java/Main3.java
index e810e16..01c680c 100644
--- a/src/test/java/Main3.java
+++ b/src/test/java/Main3.java
@@ -1,12 +1,12 @@
import org.jvnet.winp.WinProcess;
/**
* @author Kohsuke Kawaguchi
*/
public class Main3 {
public static void main(String[] args) {
... | true | true | public static void main(String[] args) {
WinProcess p = new WinProcess(2512);
System.out.println(p.getCommandLine());
System.out.println(p.getEnvironmentVariables());
}
| public static void main(String[] args) {
WinProcess p = new WinProcess(1572);
System.out.println(p.getCommandLine());
System.out.println(p.getEnvironmentVariables());
}
|
diff --git a/classes/test/Inheritance.java b/classes/test/Inheritance.java
index 994c79d7..cad779b3 100644
--- a/classes/test/Inheritance.java
+++ b/classes/test/Inheritance.java
@@ -1,66 +1,68 @@
package classes.test;
public class Inheritance {
public Inheritance() {
+ String blargh = "I'm Nigel Thornberry!";
... | false | true | public Inheritance() {
BChild ch = null;
try {
System.out.println("a: " + ch.a);
} catch (NullPointerException e) {
System.out.println("Cannot getfield on a null object.");
}
BChild child = new BChild();
child.a = 3;
child.b = 5;
System.out.println("Child a: " + child.a);
System.out.println("P... | public Inheritance() {
String blargh = "I'm Nigel Thornberry!";
BChild ch = null;
try {
System.out.println("a: " + ch.a);
} catch (NullPointerException e) {
System.out.println("Cannot getfield on a null object.");
}
System.out.println(blargh);
BChild child = new BChild();
child.a = 3;
child.b ... |
diff --git a/systemtap/org.eclipse.linuxtools.callgraph.launch/src/org/eclipse/linuxtools/callgraph/launch/SystemTapLaunchConfigurationDelegate.java b/systemtap/org.eclipse.linuxtools.callgraph.launch/src/org/eclipse/linuxtools/callgraph/launch/SystemTapLaunchConfigurationDelegate.java
index c1e90d643..d7240270c 100644... | false | true | private void finishLaunch(ILaunch launch, ILaunchConfiguration config, String options,
IProgressMonitor monitor, boolean retry) {
String errorMessage = ""; //$NON-NLS-1$
try {
// Check for cancellation
if (monitor.isCanceled() || launch == null) {
return;
}
monitor.worked(1);
// set the def... | private void finishLaunch(ILaunch launch, ILaunchConfiguration config, String options,
IProgressMonitor monitor, boolean retry) {
try {
// Check for cancellation
if (monitor.isCanceled() || launch == null) {
return;
}
monitor.worked(1);
// set the default source locator if required
setDefa... |
diff --git a/src/test/java/it/org/agilos/zendesk_jira_plugin/integrationtest/JIRAClient.java b/src/test/java/it/org/agilos/zendesk_jira_plugin/integrationtest/JIRAClient.java
index ec0d377..902d0a2 100644
--- a/src/test/java/it/org/agilos/zendesk_jira_plugin/integrationtest/JIRAClient.java
+++ b/src/test/java/it/org/ag... | true | true | public void login() {
String jiraUrl = System.getProperty("zendesk.jira.url","http://localhost:1990/jira");
String loginName = System.getProperty("zendesk.jira.login.name", "bamboo");
String loginPassword = System.getProperty("zendesk.jira.login.password","bamboo2997");
try {
URL jiraSOAPServiceUrl = new UR... | public void login() {
String jiraUrl = System.getProperty("zendesk.jira.url","http://localhost:1990/jira");
String loginName = System.getProperty("zendesk.jira.login.name", "bamboo");
String loginPassword = System.getProperty("zendesk.jira.login.password","bamboo2997");
try {
URL jiraSOAPServiceUrl = new UR... |
diff --git a/src/test/java/org/dita/dost/platform/IntegratorTest.java b/src/test/java/org/dita/dost/platform/IntegratorTest.java
index b283b29d7..736923680 100644
--- a/src/test/java/org/dita/dost/platform/IntegratorTest.java
+++ b/src/test/java/org/dita/dost/platform/IntegratorTest.java
@@ -1,95 +1,98 @@
/*
* This ... | true | true | public void testExecute() throws Exception {
final File libDir = new File(tempDir, "lib");
if (!libDir.exists() && !libDir.mkdirs()) {
throw new IOException("Failed to create directory " + libDir);
}
final Integrator i = new Integrator();
i.setDitaDir(tempDir);
... | public void testExecute() throws Exception {
final File libDir = new File(tempDir, "lib");
if (!libDir.exists() && !libDir.mkdirs()) {
throw new IOException("Failed to create directory " + libDir);
}
final Integrator i = new Integrator();
i.setDitaDir(tempDir);
... |
diff --git a/src/main/java/tconstruct/tools/TActiveOmniMod.java b/src/main/java/tconstruct/tools/TActiveOmniMod.java
index 05481b8cf..c0e1fccf9 100644
--- a/src/main/java/tconstruct/tools/TActiveOmniMod.java
+++ b/src/main/java/tconstruct/tools/TActiveOmniMod.java
@@ -1,304 +1,313 @@
package tconstruct.tools;
impor... | true | true | private boolean autoSmelt (ToolCore tool, NBTTagCompound tags, ItemStack stack, int x, int y, int z, EntityLivingBase entity)
{
World world = entity.worldObj;
Block block = world.getBlock(x, y, z);
if (block == null)
return false;
int blockMeta = world.getBlockMetada... | private boolean autoSmelt (ToolCore tool, NBTTagCompound tags, ItemStack stack, int x, int y, int z, EntityLivingBase entity)
{
World world = entity.worldObj;
Block block = world.getBlock(x, y, z);
if (block == null)
return false;
int blockMeta = world.getBlockMetada... |
diff --git a/sonar-java-plugin/src/test/java/org/sonar/plugins/java/JavaPluginTest.java b/sonar-java-plugin/src/test/java/org/sonar/plugins/java/JavaPluginTest.java
index 8a7277f42..07f6225b4 100644
--- a/sonar-java-plugin/src/test/java/org/sonar/plugins/java/JavaPluginTest.java
+++ b/sonar-java-plugin/src/test/java/or... | true | true | public void testGetExtensions() {
assertThat(new JavaPlugin().getExtensions()).hasSize(2);
}
| public void testGetExtensions() {
assertThat(new JavaPlugin().getExtensions()).hasSize(3);
}
|
diff --git a/src/edu/cudenver/bios/matrixsvc/resource/MatrixContrastResource.java b/src/edu/cudenver/bios/matrixsvc/resource/MatrixContrastResource.java
index 39fc296..0f98c06 100644
--- a/src/edu/cudenver/bios/matrixsvc/resource/MatrixContrastResource.java
+++ b/src/edu/cudenver/bios/matrixsvc/resource/MatrixContrastR... | true | true | public void acceptRepresentation(Representation entity)
throws ResourceException
{
DomRepresentation domRep = new DomRepresentation(entity);
ArrayList<Factor> factors = null;
try
{
//Figure out the "type" of the Factor objects (between/within)
Nod... | public void acceptRepresentation(Representation entity)
throws ResourceException
{
DomRepresentation domRep = new DomRepresentation(entity);
ArrayList<Factor> factors = null;
try
{
//Figure out the "type" of the Factor objects (between/within)
Nod... |
diff --git a/CoCoNut/org.reuseware.coconut.reuseextensionactivator.ui/src/org/reuseware/coconut/reuseextensionactivator/ui/Rex_activatorProposalPostProcessor.java b/CoCoNut/org.reuseware.coconut.reuseextensionactivator.ui/src/org/reuseware/coconut/reuseextensionactivator/ui/Rex_activatorProposalPostProcessor.java
index... | true | true | public List<Rex_activatorCompletionProposal> process(List<Rex_activatorCompletionProposal> proposals) {
if (proposals.size() > 0) {
Rex_activatorCompletionProposal prototypeProposal = proposals.get(0);
if (prototypeProposal.getInsertString().equals("someRexNamespace")) {
List<Rex_activatorCompletionProposa... | public List<Rex_activatorCompletionProposal> process(List<Rex_activatorCompletionProposal> proposals) {
if (proposals.size() > 0) {
Rex_activatorCompletionProposal prototypeProposal = proposals.get(0);
if (prototypeProposal.getInsertString().equals("someRexNamespace")) {
List<Rex_activatorCompletionProposa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.