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/org/ohmage/service/UploadService.java b/src/org/ohmage/service/UploadService.java
index 9650ee0..ea68d63 100644
--- a/src/org/ohmage/service/UploadService.java
+++ b/src/org/ohmage/service/UploadService.java
@@ -1,422 +1,424 @@
package org.ohmage.service;
import android.content.ContentResolver;
im... | false | true | private void uploadSurveyResponses(Intent intent) {
String serverUrl = ConfigHelper.serverUrl();
UserPreferencesHelper helper = new UserPreferencesHelper(this);
String username = helper.getUsername();
String hashedPassword = helper.getHashedPassword();
boolean uploadErrorOccurred = false;
boolean authEr... | private void uploadSurveyResponses(Intent intent) {
String serverUrl = ConfigHelper.serverUrl();
UserPreferencesHelper helper = new UserPreferencesHelper(this);
String username = helper.getUsername();
String hashedPassword = helper.getHashedPassword();
boolean uploadErrorOccurred = false;
boolean authEr... |
diff --git a/nexus/nexus-indexer-lucene/nexus-indexer-lucene-app/src/test/java/org/sonatype/nexus/index/GroupReindexIndexerManagerTest.java b/nexus/nexus-indexer-lucene/nexus-indexer-lucene-app/src/test/java/org/sonatype/nexus/index/GroupReindexIndexerManagerTest.java
index 06c9112d5..b6d7a55a9 100644
--- a/nexus/nexus... | false | true | public void testGroupReindex()
throws Exception
{
fillInRepo();
GroupRepository group = (GroupRepository) repositoryRegistry.getRepository( "public" );
File groupRoot = new File( new URL( group.getLocalUrl() ).toURI() );
File index = new File( groupRoot, ".index" );
... | public void testGroupReindex()
throws Exception
{
fillInRepo();
GroupRepository group = (GroupRepository) repositoryRegistry.getRepository( "public" );
File groupRoot = new File( new URL( group.getLocalUrl() ).toURI() );
File index = new File( groupRoot, ".index" );
... |
diff --git a/src/main/java/org/otherobjects/cms/util/StartupMessage.java b/src/main/java/org/otherobjects/cms/util/StartupMessage.java
index 1e457d73..de9124c2 100644
--- a/src/main/java/org/otherobjects/cms/util/StartupMessage.java
+++ b/src/main/java/org/otherobjects/cms/util/StartupMessage.java
@@ -1,74 +1,74 @@
pa... | true | true | public void onApplicationEvent(ApplicationEvent e)
{
// Only do for root context refreshes
if (e instanceof ContextRefreshedEvent) // && ((ContextRefreshedEvent)e).getApplicationContext().getParent() == null)
{
this.logger.info("**********************************************... | public void onApplicationEvent(ApplicationEvent e)
{
// Only do for root context refreshes
if (e instanceof ContextRefreshedEvent) // && ((ContextRefreshedEvent)e).getApplicationContext().getParent() == null)
{
this.logger.info("**********************************************... |
diff --git a/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/bizlogic/SPPBizLogic.java b/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/bizlogic/SPPBizLogic.java
index 45ae985d7..88e0c870d 100644
--- a/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/bizlogic/... | true | true | public String[] getAllSPPEventFormNames(Map<String, Long> dynamicEventMap)
{
dynamicEventMap.clear();
EntityCache cache = EntityCache.getInstance();
EntityGroupInterface entityGroup = cache.getEntityGroupById(1L);
EntityInterface actionRecordEntry = entityGroup
.getEntityByName("edu.wustl.catissuecore.dom... | public String[] getAllSPPEventFormNames(Map<String, Long> dynamicEventMap)
{
dynamicEventMap.clear();
EntityCache cache = EntityCache.getInstance();
EntityGroupInterface entityGroup = cache.getEntityGroupById(1L);
EntityInterface actionRecordEntry = entityGroup
.getEntityByName("edu.wustl.catissuecore.dom... |
diff --git a/src/InventoryFrame.java b/src/InventoryFrame.java
index d5c75db..d0289d5 100644
--- a/src/InventoryFrame.java
+++ b/src/InventoryFrame.java
@@ -1,196 +1,197 @@
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.Actio... | false | true | public InventoryFrame(Player player)
{
super("Inventory");
addWindowFocusListener(this);
thePlayer = player;
use = new JButton("Use");
drop = new JButton("Drop");
back = new JButton("Back");
buttons = new JPanel();
buttons.setBackground(Color.DARK_GRAY);
bank = new JLabel("... | public InventoryFrame(Player player)
{
super("Inventory");
addWindowFocusListener(this);
thePlayer = player;
use = new JButton("Use");
drop = new JButton("Drop");
back = new JButton("Back");
buttons = new JPanel();
buttons.setBackground(Color.DARK_GRAY);
bank = new JLabel("... |
diff --git a/web/app/controllers/Poller.java b/web/app/controllers/Poller.java
index 8cdf136..0ab833f 100644
--- a/web/app/controllers/Poller.java
+++ b/web/app/controllers/Poller.java
@@ -1,49 +1,51 @@
/*
* Copyright (c) 2013, Swedish Institute of Computer Science
* All rights reserved.
* Redistribution and use... | true | true | public static void pollAll() {
//Logger.info("Poller pollAll()");
List<Resource> withPolling = Resource.find.where()
.gt("pollingPeriod", 0)
.findList();
for(Resource resource: withPolling) {
//Logger.info("Poller poll a resource");
resource.poll();
}
}
| public static void pollAll() {
//Logger.info("Poller pollAll()");
List<Resource> withPolling = Resource.find.where()
.gt("pollingPeriod", 0)
.findList();
for(Resource resource: withPolling) {
//Logger.info("Poller poll a resource");
if (resource!=null) {
resource.poll();
}
}... |
diff --git a/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceMessage.java b/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceMessage.java
index cfc5fd8..183e8f6 100644
--- a/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceMessage.java
+++ b/src/main/java/org/apach... | true | true | protected Object createBody() {
if (webServiceMessage != null) {
webServiceMessage.getPayloadSource();
}
return null;
}
| protected Object createBody() {
if (webServiceMessage != null) {
return webServiceMessage.getPayloadSource();
}
return null;
}
|
diff --git a/src/test/java/LoginUsingFacebookAccount.java b/src/test/java/LoginUsingFacebookAccount.java
index c7f3fc9..5983695 100644
--- a/src/test/java/LoginUsingFacebookAccount.java
+++ b/src/test/java/LoginUsingFacebookAccount.java
@@ -1,163 +1,163 @@
package test;
import com.saucelabs.common.SauceOnDemandAuth... | true | true | public void Login_Using_Facebook_Account() throws Exception {
driver.get("http://markavip.com");
driver.findElementByClassName("do_modal").click();
//Save Current Window Name
String markavipwindow= driver.getWindowHandle();
WebDriverWait wait=new WebDriverWait(driver, 25);
wait.until(ExpectedConditions.vi... | public void Login_Using_Facebook_Account() throws Exception {
driver.get("http://markavip.com");
driver.findElement(By.className("do_modal")).click();
//Save Current Window Name
String markavipwindow= driver.getWindowHandle();
WebDriverWait wait=new WebDriverWait(driver, 25);
wait.until(ExpectedConditions... |
diff --git a/integration/src/main/java/org/apache/mahout/text/SequenceFilesFromDirectory.java b/integration/src/main/java/org/apache/mahout/text/SequenceFilesFromDirectory.java
index e0572b2f5..9cd4f8b94 100644
--- a/integration/src/main/java/org/apache/mahout/text/SequenceFilesFromDirectory.java
+++ b/integration/src/... | true | true | public int run(String[] args) throws Exception {
addOptions();
if (parseArguments(args) == null) {
return -1;
}
Map<String, String> options = parseOptions();
Path input = getInputPath();
Path output = getOutputPath();
if (hasOption(DefaultOptionCreator.OVERWRITE_OPTION))... | public int run(String[] args) throws Exception {
addOptions();
if (parseArguments(args) == null) {
return -1;
}
Map<String, String> options = parseOptions();
Path input = getInputPath();
Path output = getOutputPath();
if (hasOption(DefaultOptionCreator.OVERWRITE_OPTION))... |
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/mapping/ResourceModelContentProvider.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/mapping/ResourceModelContentProvider.java
index abc813769..8c4b04b8f 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/u... | true | true | protected ResourceTraversal[] getTraversals(ISynchronizationContext context, Object elementOrPath) {
Object object = internalGetElement(elementOrPath);
ISynchronizationScope scope = context.getScope();
// First see if the object is a root of the scope
ResourceMapping mapping = scope.getMapping(object);
if (m... | protected ResourceTraversal[] getTraversals(ISynchronizationContext context, Object elementOrPath) {
Object object = internalGetElement(elementOrPath);
ISynchronizationScope scope = context.getScope();
// First see if the object is a root of the scope
ResourceMapping mapping = scope.getMapping(object);
if (m... |
diff --git a/src/aurora/service/SimulationManager.java b/src/aurora/service/SimulationManager.java
index f26d063..d747786 100644
--- a/src/aurora/service/SimulationManager.java
+++ b/src/aurora/service/SimulationManager.java
@@ -1,148 +1,148 @@
/**
* @(#)SimulationManager.java
*/
package aurora.service;
impo... | true | true | public String run_application(String[] input_files, String[] output_files, Updatable updater, int period) throws Exception {
double initial_time, max_time;
if ((input_files == null) || (input_files.length < 1))
throw new Exception("Error: No input files!");
if ((output_files == null) || (output_files.length <... | public String run_application(String[] input_files, String[] output_files, Updatable updater, int period) throws Exception {
double initial_time, max_time;
if ((input_files == null) || (input_files.length < 1))
throw new Exception("Error: No input files!");
if ((output_files == null) || (output_files.length <... |
diff --git a/core/src/java/com/dtolabs/rundeck/core/common/NodesYamlParser.java b/core/src/java/com/dtolabs/rundeck/core/common/NodesYamlParser.java
index f7c707f07..30b12f69b 100644
--- a/core/src/java/com/dtolabs/rundeck/core/common/NodesYamlParser.java
+++ b/core/src/java/com/dtolabs/rundeck/core/common/NodesYamlPar... | true | true | public void parse() throws NodeFileParserException {
if (null == file && null == inputStream) {
throw new NullPointerException("file or inputStream was not set");
}
final Reader reader;
if (null != file) {
try {
reader = new FileReader(file);
... | public void parse() throws NodeFileParserException {
if (null == file && null == inputStream) {
throw new NullPointerException("file or inputStream was not set");
}
final Reader reader;
if (null != file) {
try {
reader = new FileReader(file);
... |
diff --git a/web/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/template/EditTemplateCommand.java b/web/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/template/EditTemplateCommand.java
index a02424529..b40ea2938 100644
--- a/web/src/main/java/edu/northwestern/bioinformatics/studycalend... | true | true | public Map<String, Object> getModel() {
Map<String, Object> model = new HashMap<String, Object>();
Map<String, Object> modeModel = getMode().getModel();
model.put("developmentRevision", getStudy().getDevelopmentAmendment());
model.put("revisionChanges",
new RevisionChange... | public Map<String, Object> getModel() {
Map<String, Object> model = new HashMap<String, Object>();
Map<String, Object> modeModel = getMode().getModel();
model.put("developmentRevision", getStudy().getDevelopmentAmendment());
model.put("revisionChanges",
new RevisionChange... |
diff --git a/src/edu/gordian/elements/GordianInterpreter.java b/src/edu/gordian/elements/GordianInterpreter.java
index be63467..b473a1f 100644
--- a/src/edu/gordian/elements/GordianInterpreter.java
+++ b/src/edu/gordian/elements/GordianInterpreter.java
@@ -1,223 +1,228 @@
package edu.gordian.elements;
import edu.fi... | true | true | public Value interpretValue(String s) {
if (Strings.isEmpty(s)) {
throw new NullPointerException("Value was empty");
}
GordianNumber n = GordianNumber.toNumber(s);
if (n != null) {
return n;
}
if (s.equalsIgnoreCase("true")) {
ret... | public Value interpretValue(String s) {
if (Strings.isEmpty(s)) {
throw new NullPointerException("Value was empty");
}
GordianNumber n = GordianNumber.toNumber(s);
if (n != null) {
return n;
}
if (s.equalsIgnoreCase("true")) {
ret... |
diff --git a/astrid/plugin-src/com/todoroo/astrid/repeats/RepeatTaskCompleteListener.java b/astrid/plugin-src/com/todoroo/astrid/repeats/RepeatTaskCompleteListener.java
index 71b0dc223..56c724cc5 100644
--- a/astrid/plugin-src/com/todoroo/astrid/repeats/RepeatTaskCompleteListener.java
+++ b/astrid/plugin-src/com/todoro... | true | true | public void onReceive(Context context, Intent intent) {
ContextManager.setContext(context);
DependencyInjectionService.getInstance().inject(this);
long taskId = intent.getLongExtra(AstridApiConstants.EXTRAS_TASK_ID, -1);
if(taskId == -1)
return;
Task task = Plugi... | public void onReceive(Context context, Intent intent) {
ContextManager.setContext(context);
DependencyInjectionService.getInstance().inject(this);
long taskId = intent.getLongExtra(AstridApiConstants.EXTRAS_TASK_ID, -1);
if(taskId == -1)
return;
Task task = Plugi... |
diff --git a/src/bt/Model/PeerListener.java b/src/bt/Model/PeerListener.java
index 1185ff6..6409c4e 100644
--- a/src/bt/Model/PeerListener.java
+++ b/src/bt/Model/PeerListener.java
@@ -1,208 +1,209 @@
package bt.Model;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import b... | true | true | private void readLine() throws IOException {
byte[] lengthArray = new byte [4];
this.in.read(lengthArray, 0, 4);
ByteBuffer lengthBuffer = ByteBuffer.wrap(lengthArray);
int length = lengthBuffer.getInt();
if(length < 0 || length > 16394) {
if (length == 0) {
parent.updateTimeout(); // This is a keep ... | private void readLine() throws IOException {
byte[] lengthArray = new byte [4];
this.in.read(lengthArray, 0, 4);
ByteBuffer lengthBuffer = ByteBuffer.wrap(lengthArray);
int length = lengthBuffer.getInt();
if(length < 0 || length > 16394) {
if (length == 0) {
parent.updateTimeout(); // This is a keep ... |
diff --git a/src/WorldRunner.java b/src/WorldRunner.java
index cb62adf..8037559 100644
--- a/src/WorldRunner.java
+++ b/src/WorldRunner.java
@@ -1,211 +1,212 @@
//1 = 1 foot 5280 feet = 1 mile
// average walk speed = 4mph
// beginning run speed = 9 mph
import java.awt.AWTException;
import java.awt.Color;
import... | true | true | public WorldRunner(){
frame= new JFrame("Hello World!");
try {
robo = new Robot();
} catch (AWTException e1) {
System.out.println("ROBOT CREATING FAILED");
}
frame.getContentPane().setCursor(blankCursor); //Sets the blank cursor
GLCapabilities capabilities=new GLCapabilities(GLProfile.getDefaul... | public WorldRunner(){
frame= new JFrame("Hello World!");
try {
robo = new Robot();
} catch (AWTException e1) {
System.out.println("ROBOT CREATING FAILED");
}
frame.getContentPane().setCursor(blankCursor); //Sets the blank cursor
GLCapabilities capabilities=new GLCapabilities(GLProfile.getDefaul... |
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/raptor/Raptor.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/raptor/Raptor.java
index f036cab61..6bcadf18e 100644
--- a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/raptor/Raptor.... | true | true | public List<GraphPath> getPaths(RoutingRequest options) {
final Graph graph = graphService.getGraph(options.getRouterId());
if (options.rctx == null) {
options.setRoutingContext(graph);
options.rctx.pathParsers = new PathParser[1];
options.rctx.pathParsers[0] = n... | public List<GraphPath> getPaths(RoutingRequest options) {
final Graph graph = graphService.getGraph(options.getRouterId());
if (options.rctx == null) {
options.setRoutingContext(graph);
options.rctx.pathParsers = new PathParser[1];
options.rctx.pathParsers[0] = n... |
diff --git a/src/main/java/us/yuxin/hump/Hump.java b/src/main/java/us/yuxin/hump/Hump.java
index d42b429..761f85b 100644
--- a/src/main/java/us/yuxin/hump/Hump.java
+++ b/src/main/java/us/yuxin/hump/Hump.java
@@ -1,127 +1,129 @@
package us.yuxin.hump;
import java.io.IOException;
import java.net.InetSocketAddress;
... | false | true | private void runJob() throws IOException, ClassNotFoundException, InterruptedException {
Configuration conf = getConf();
// TODO list dir and add jars
FileSystem fs = FileSystem.get(conf);
FileStatus[] fileStatuses = fs.listStatus(new Path("/is/app/hump/lib/*.jar"));
for (FileStatus fileStatus:... | private void runJob() throws IOException, ClassNotFoundException, InterruptedException {
Configuration conf = getConf();
// TODO list dir and add jars
FileSystem fs = FileSystem.get(conf);
FileStatus[] fileStatuses = fs.listStatus(new Path("/is/app/hump/lib"));
for (FileStatus fileStatus: fileS... |
diff --git a/src/main/java/me/desht/clicksort/ClickSortPlugin.java b/src/main/java/me/desht/clicksort/ClickSortPlugin.java
index a918d6b..7d99ad9 100644
--- a/src/main/java/me/desht/clicksort/ClickSortPlugin.java
+++ b/src/main/java/me/desht/clicksort/ClickSortPlugin.java
@@ -1,359 +1,360 @@
package me.desht.clicksort... | true | true | public void onInventoryClicked(final InventoryClickEvent event) {
// if (!event.isLeftClick()) return;
if (!(event.getWhoClicked() instanceof Player)) return;
if (!PermissionUtils.isAllowedTo((Player) event.getWhoClicked(), "clicksort.sort")) return;
Player player = (Player)event.getWhoClicked();
String play... | public void onInventoryClicked(final InventoryClickEvent event) {
// if (!event.isLeftClick()) return;
if (!(event.getWhoClicked() instanceof Player)) return;
if (!PermissionUtils.isAllowedTo((Player) event.getWhoClicked(), "clicksort.sort")) return;
if (event.getCurrentItem() == null) return;
Player player ... |
diff --git a/common/logisticspipes/pipes/PipeItemsBasicLogistics.java b/common/logisticspipes/pipes/PipeItemsBasicLogistics.java
index 9460503a..352cd70c 100644
--- a/common/logisticspipes/pipes/PipeItemsBasicLogistics.java
+++ b/common/logisticspipes/pipes/PipeItemsBasicLogistics.java
@@ -1,122 +1,122 @@
/**
* Cop... | true | true | public PipeItemsBasicLogistics(int itemID) {
super(new PipeTransportLogistics() {
@Override
public boolean isPipeConnected(TileEntity tile) {
if(super.isPipeConnected(tile)) return true;
if(tile instanceof ILogisticsPowerProvider) {
ForgeDirection ori = OrientationsUtil.getOrientationOfTilewithPi... | public PipeItemsBasicLogistics(int itemID) {
super(new PipeTransportLogistics() {
@Override
public boolean isPipeConnected(TileEntity tile) {
if(super.isPipeConnected(tile)) return true;
if(tile instanceof ILogisticsPowerProvider) {
ForgeDirection ori = OrientationsUtil.getOrientationOfTilewithPi... |
diff --git a/src/com/akjava/gwt/webappmaker/client/ServletDataDto.java b/src/com/akjava/gwt/webappmaker/client/ServletDataDto.java
index 8dbaee3..9fd014d 100644
--- a/src/com/akjava/gwt/webappmaker/client/ServletDataDto.java
+++ b/src/com/akjava/gwt/webappmaker/client/ServletDataDto.java
@@ -1,489 +1,490 @@
package co... | true | true | public List<FileNameAndText> apply(ServletData data) {
Map<String,String> map=new HashMap<String,String>();
List<FileNameAndText> files=new ArrayList<FileNameAndText>();
String type=data.getServletType();
FileNameAndText file=new FileNameAndText();
String head="";
if(!data.getLastPackage().equals("ma... | public List<FileNameAndText> apply(ServletData data) {
Map<String,String> map=new HashMap<String,String>();
List<FileNameAndText> files=new ArrayList<FileNameAndText>();
String type=data.getServletType();
FileNameAndText file=new FileNameAndText();
String head="";
if(!data.getLastPackage().equals("ma... |
diff --git a/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityDecoder.java b/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityDecoder.java
index 380c1fade..b325022c1 100644
--- a/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityDecoder.java
+++ b/httpcore-nio/src/ma... | true | true | public long transfer(
final FileChannel dst,
long position,
long count) throws IOException {
if (dst == null) {
return 0;
}
if (this.completed) {
return 0;
}
long bytesRead;
if (this.buffe... | public long transfer(
final FileChannel dst,
long position,
long count) throws IOException {
if (dst == null) {
return 0;
}
if (this.completed) {
return 0;
}
long bytesRead;
if (this.buffe... |
diff --git a/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/CajaContentRewriter.java b/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/CajaContentRewriter.java
index cba5d348..adcbd80a 100644
--- a/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/CajaContentRewriter.java
+++ b/... | true | true | public void rewrite(Gadget gadget, MutableContent content) {
if (gadget.getSpec().getModulePrefs().getFeatures().containsKey("caja") ||
"1".equals(gadget.getContext().getParameter("caja"))) {
final URI retrievedUri = gadget.getContext().getUrl().toJavaUri();
UriCallback cb = new UriCallback()... | public void rewrite(Gadget gadget, MutableContent content) {
if (gadget.getSpec().getModulePrefs().getFeatures().containsKey("caja") ||
"1".equals(gadget.getContext().getParameter("caja"))) {
final URI retrievedUri = gadget.getContext().getUrl().toJavaUri();
UriCallback cb = new UriCallback()... |
diff --git a/slim3-gen/src/main/java/org/slim3/gen/generator/ModelGenerator.java b/slim3-gen/src/main/java/org/slim3/gen/generator/ModelGenerator.java
index 24088f52..5fdc013f 100644
--- a/slim3-gen/src/main/java/org/slim3/gen/generator/ModelGenerator.java
+++ b/slim3-gen/src/main/java/org/slim3/gen/generator/ModelGene... | true | true | public void generate(Printer p) {
p.println("package %s;", modelDesc.getPackageName());
p.println();
p.println("import java.io.Serializable;");
p.println();
p.println("import javax.jdo.annotations.Extension;");
p.println("import javax.jdo.annotations.IdGeneratorStrate... | public void generate(Printer p) {
p.println("package %s;", modelDesc.getPackageName());
p.println();
p.println("import java.io.Serializable;");
p.println();
p.println("import javax.jdo.annotations.Extension;");
p.println("import javax.jdo.annotations.IdGeneratorStrate... |
diff --git a/src/org/hackystat/projectbrowser/page/telemetry/TelemetrySession.java b/src/org/hackystat/projectbrowser/page/telemetry/TelemetrySession.java
index 97bff8d..20a87b7 100644
--- a/src/org/hackystat/projectbrowser/page/telemetry/TelemetrySession.java
+++ b/src/org/hackystat/projectbrowser/page/telemetry/Telem... | false | true | public boolean loadPageParameters(PageParameters parameters) {
boolean isLoadSucceed = true;
boolean isTelemetryLoaded = false;
StringBuffer errorMessage = new StringBuffer(1000);
Logger logger = this.getLogger();
//load telemetry name
if (parameters.containsKey(TELEMETRY_KEY)) {
String ... | public boolean loadPageParameters(PageParameters parameters) {
boolean isLoadSucceed = true;
boolean isTelemetryLoaded = false;
StringBuffer errorMessage = new StringBuffer(1000);
Logger logger = this.getLogger();
//load telemetry name
if (parameters.containsKey(TELEMETRY_KEY)) {
String ... |
diff --git a/src/main/java/de.akquinet.innovation.play.maven/Play2InstallPlayMojo.java b/src/main/java/de.akquinet.innovation.play.maven/Play2InstallPlayMojo.java
index d54d186..984202a 100644
--- a/src/main/java/de.akquinet.innovation.play.maven/Play2InstallPlayMojo.java
+++ b/src/main/java/de.akquinet.innovation.play... | true | true | public void execute()
throws MojoExecutionException, MojoFailureException
{
if ( StringUtils.isEmpty( play2version ) ) {
throw new MojoExecutionException( "play2version configuration parameter is not set" );
}
String debugLogPrefix = "AutoInstall - Play! " + play2... | public void execute()
throws MojoExecutionException, MojoFailureException
{
if ( StringUtils.isEmpty( play2version ) ) {
throw new MojoExecutionException( "play2version configuration parameter is not set" );
}
String debugLogPrefix = "AutoInstall - Play! " + play2... |
diff --git a/dropwizard-core/src/main/java/com/yammer/dropwizard/cli/Cli.java b/dropwizard-core/src/main/java/com/yammer/dropwizard/cli/Cli.java
index c026ce221..5b4d96a16 100644
--- a/dropwizard-core/src/main/java/com/yammer/dropwizard/cli/Cli.java
+++ b/dropwizard-core/src/main/java/com/yammer/dropwizard/cli/Cli.java... | true | true | private ArgumentParser buildParser(Class<?> serviceClass) {
final String usage = "java -jar " + new JarLocation(serviceClass);
final ArgumentParser p = ArgumentParsers.newArgumentParser(usage)
.defaultHelp(true);
String version = serviceClass.g... | private ArgumentParser buildParser(Class<?> serviceClass) {
final String usage = "java -jar " + new JarLocation(serviceClass);
final ArgumentParser p = ArgumentParsers.newArgumentParser(usage)
.defaultHelp(true);
Package pkg = serviceClass.getP... |
diff --git a/src/com/joy/launcher2/preference/Preferences.java b/src/com/joy/launcher2/preference/Preferences.java
index 67c8582..f43a4d8 100644
--- a/src/com/joy/launcher2/preference/Preferences.java
+++ b/src/com/joy/launcher2/preference/Preferences.java
@@ -1,482 +1,482 @@
/*
* Copyright (C) 2011 The CyanogenMod ... | true | true | public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
if(which == DialogInterface.BUTTON_POSITIVE)
{
Resources res = getResources();
boolean isOrdinaryUser = PreferencesProvider.getIsOrdinaryUser();
if(mHeaderId == R.id.preferences_backup_section)
{
boolean s... | public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
if(which == DialogInterface.BUTTON_POSITIVE)
{
Resources res = getResources();
boolean isOrdinaryUser = PreferencesProvider.getIsOrdinaryUser();
if(mHeaderId == R.id.preferences_backup_section)
{
boolean s... |
diff --git a/nuxeo-platform-webapp-base/src/main/java/org/nuxeo/ecm/webapp/clipboard/ClipboardActionsBean.java b/nuxeo-platform-webapp-base/src/main/java/org/nuxeo/ecm/webapp/clipboard/ClipboardActionsBean.java
index ed658c9c..f576dccb 100644
--- a/nuxeo-platform-webapp-base/src/main/java/org/nuxeo/ecm/webapp/clipboard... | true | true | protected List<DocumentModel> recreateDocumentsWithNewParent(
DocumentModel parent, List<DocumentModel> documents)
throws ClientException {
List<DocumentModel> newDocuments = new ArrayList<DocumentModel>();
if (null == parent || null == documents) {
log.error("N... | protected List<DocumentModel> recreateDocumentsWithNewParent(
DocumentModel parent, List<DocumentModel> documents)
throws ClientException {
List<DocumentModel> newDocuments = new ArrayList<DocumentModel>();
if (null == parent || null == documents) {
log.error("N... |
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/RefreshRemoteProjectWizard.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/RefreshRemoteProjectWizard.java
index 5e7f3a6ea..ee95deeb8 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/tea... | false | true | public boolean performFinish() {
final ICVSRemoteResource[] selectedFolders = projectSelectionPage.getSelectedRemoteProject();
try {
getContainer().run(true, true, new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
monitor.be... | public boolean performFinish() {
final ICVSRemoteResource[] selectedFolders = projectSelectionPage.getSelectedRemoteProject();
try {
getContainer().run(true, true, new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
final Repo... |
diff --git a/src/main/java/org/geoscript/js/process/Process.java b/src/main/java/org/geoscript/js/process/Process.java
index ef73151..d6e1a4c 100644
--- a/src/main/java/org/geoscript/js/process/Process.java
+++ b/src/main/java/org/geoscript/js/process/Process.java
@@ -1,333 +1,333 @@
package org.geoscript.js.process;
... | false | true | private Parameter<?> createParameter(String name, Scriptable paramObj) {
String typeName = (String) getRequiredMember(paramObj, "type", String.class);
Type type;
try {
type = Type.valueOf(typeName);
} catch (IllegalArgumentException e) {
throw ScriptR... | private Parameter<?> createParameter(String name, Scriptable paramObj) {
String typeName = (String) getRequiredMember(paramObj, "type", String.class);
Type type;
try {
type = Type.valueOf(typeName);
} catch (IllegalArgumentException e) {
throw ScriptR... |
diff --git a/src/java-server-framework/org/xins/server/AccessRuleFile.java b/src/java-server-framework/org/xins/server/AccessRuleFile.java
index a48646969..d5d505731 100644
--- a/src/java-server-framework/org/xins/server/AccessRuleFile.java
+++ b/src/java-server-framework/org/xins/server/AccessRuleFile.java
@@ -1,401 +... | true | true | public AccessRuleFile(String descriptor, int interval)
throws IllegalArgumentException, ParseException {
// Check preconditions
MandatoryArgumentChecker.check("descriptor", descriptor);
if (interval < 1) {
throw new IllegalArgumentException("interval ("
... | public AccessRuleFile(String descriptor, int interval)
throws IllegalArgumentException, ParseException {
// Check preconditions
MandatoryArgumentChecker.check("descriptor", descriptor);
if (interval < 0) {
throw new IllegalArgumentException("interval ("
... |
diff --git a/code/backend/src/swp_compiler_ss13/fuc/backend/Function.java b/code/backend/src/swp_compiler_ss13/fuc/backend/Function.java
index 92c79bd0..7cebddd6 100644
--- a/code/backend/src/swp_compiler_ss13/fuc/backend/Function.java
+++ b/code/backend/src/swp_compiler_ss13/fuc/backend/Function.java
@@ -1,724 +1,724 ... | true | true | public void addPrimitiveDerivedSetOrGet(Type.Kind derivedTypeKind,
String derived,
String index,
Kind primitiveType,
String primitive,
... | public void addPrimitiveDerivedSetOrGet(Type.Kind derivedTypeKind,
String derived,
String index,
Kind primitiveType,
String primitive,
... |
diff --git a/biz.aQute.bndlib/src/aQute/bnd/build/ProjectLauncher.java b/biz.aQute.bndlib/src/aQute/bnd/build/ProjectLauncher.java
index f62b7a9a3..5f21fad7c 100644
--- a/biz.aQute.bndlib/src/aQute/bnd/build/ProjectLauncher.java
+++ b/biz.aQute.bndlib/src/aQute/bnd/build/ProjectLauncher.java
@@ -1,324 +1,327 @@
packag... | true | true | protected void updateFromProject() throws Exception {
// pkr: could not use this because this is killing the runtests.
// project.refresh();
runbundles.clear();
Collection<Container> run = project.getRunbundles();
for (File file : project.toFile(run))
runbundles.add(file.getAbsolutePath());
if (proj... | protected void updateFromProject() throws Exception {
// pkr: could not use this because this is killing the runtests.
// project.refresh();
runbundles.clear();
Collection<Container> run = project.getRunbundles();
for (Container container : run) {
File file = container.getFile();
if (file != null &&... |
diff --git a/dnslib/src/main/java/nl/sidn/dnslib/trustanchor/TrustAnchorService.java b/dnslib/src/main/java/nl/sidn/dnslib/trustanchor/TrustAnchorService.java
index a04803c..3ae2a96 100644
--- a/dnslib/src/main/java/nl/sidn/dnslib/trustanchor/TrustAnchorService.java
+++ b/dnslib/src/main/java/nl/sidn/dnslib/trustanchor... | true | true | private TrustAnchor createTrustAnchor(String xml){
try {
SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
InputStream xsdStream = TrustAnchor.class.getClassLoader().getResourceAsStream("trust-anchor.xsd");
StreamSource xsdSource = new StreamSource(xsdStream);
... | private TrustAnchor createTrustAnchor(String xml){
try {
SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
InputStream xsdStream = TrustAnchor.class.getClassLoader().getResourceAsStream("trust-anchor.xsd");
if(xsdStream == null){
xsdStream = Thread.currentThread().... |
diff --git a/java/tools/org/apache/derby/impl/tools/dblook/DB_Trigger.java b/java/tools/org/apache/derby/impl/tools/dblook/DB_Trigger.java
index 5530a9435..a15a5c3ce 100644
--- a/java/tools/org/apache/derby/impl/tools/dblook/DB_Trigger.java
+++ b/java/tools/org/apache/derby/impl/tools/dblook/DB_Trigger.java
@@ -1,185 +... | true | true | private static String createTrigger(String trigName, String tableName,
ResultSet aTrig) throws SQLException
{
StringBuffer sb = new StringBuffer ("CREATE TRIGGER ");
sb.append(trigName);
// Firing time.
if (aTrig.getString(4).charAt(0) == 'A')
sb.append(" AFTER ");
else
sb.append(" NO CASCADE BEFO... | private static String createTrigger(String trigName, String tableName,
ResultSet aTrig) throws SQLException
{
StringBuffer sb = new StringBuffer ("CREATE TRIGGER ");
sb.append(trigName);
// Firing time.
if (aTrig.getString(4).charAt(0) == 'A')
sb.append(" AFTER ");
else
sb.append(" NO CASCADE BEFO... |
diff --git a/src/dctc/java/com/dataiku/dctc/file/GSFile.java b/src/dctc/java/com/dataiku/dctc/file/GSFile.java
index d39e820..1f52e75 100644
--- a/src/dctc/java/com/dataiku/dctc/file/GSFile.java
+++ b/src/dctc/java/com/dataiku/dctc/file/GSFile.java
@@ -1,466 +1,466 @@
package com.dataiku.dctc.file;
import java.io.B... | true | true | protected void resolve() throws IOException {
if (type != Type.UNRESOLVED) return;
try {
logger.debug("Resolving data for " + getAbsoluteAddress());
initStorage();
if (bucket.length() == 0) {
type = Type.ROOT;
/* List the buckets ... | protected void resolve() throws IOException {
if (type != Type.UNRESOLVED) return;
try {
logger.debug("Resolving data for " + getAbsoluteAddress());
initStorage();
if (bucket.length() == 0) {
type = Type.ROOT;
/* List the buckets ... |
diff --git a/src/main/java/com/threerings/admin/server/PeeredExportDatabaseConfigRegistry.java b/src/main/java/com/threerings/admin/server/PeeredExportDatabaseConfigRegistry.java
index 51e0a6ab..e7179882 100644
--- a/src/main/java/com/threerings/admin/server/PeeredExportDatabaseConfigRegistry.java
+++ b/src/main/java/c... | true | true | protected ObjectRecord createObjectRecord (String path, DObject object)
{
return new PeerDatabaseObjectRecord(path, object) {
@Override protected void serialize (String name, String key, Object value) {
setValue(key, StringUtil.hexlate(ExportUtil.toBytes(value)));
... | protected ObjectRecord createObjectRecord (String path, DObject object)
{
return new PeerDatabaseObjectRecord(path, object) {
@Override protected void serialize (String name, String key, Object value) {
setValue(key, StringUtil.hexlate(ExportUtil.toBytes(value)));
... |
diff --git a/utils/src/main/java/com/mtgi/analytics/xml/XSLLibrary.java b/utils/src/main/java/com/mtgi/analytics/xml/XSLLibrary.java
index acf3164..0e71d7a 100644
--- a/utils/src/main/java/com/mtgi/analytics/xml/XSLLibrary.java
+++ b/utils/src/main/java/com/mtgi/analytics/xml/XSLLibrary.java
@@ -1,117 +1,117 @@
/*
... | true | true | public static String serialize(Object node) throws IOException {
//null matched node serializes to null
if (node == null)
return null;
//because XSLT is weakly typed, we have to do a bit
//of introspection to handle various data types.
//collection of nodes get just get a... | public static String serialize(Object node) throws IOException {
//null matched node serializes to null
if (node == null)
return null;
//because XSLT is weakly typed, we have to do a bit
//of introspection to handle various data types.
//collection of nodes get just get a... |
diff --git a/src/test/java/com/seitenbau/jenkins/plugins/dynamicparameter/FileUtilsTests.java b/src/test/java/com/seitenbau/jenkins/plugins/dynamicparameter/FileUtilsTests.java
index 813e2e7..017a4d0 100644
--- a/src/test/java/com/seitenbau/jenkins/plugins/dynamicparameter/FileUtilsTests.java
+++ b/src/test/java/com/se... | true | true | public void testIsDescendant()
{
assertTrue(FileUtils.isDescendant("root", "root/dir1"));
assertTrue(FileUtils.isDescendant("root", "root/dir2/dir2/dir3"));
assertTrue(FileUtils.isDescendant("\\root", "\\root\\dir1"));
assertTrue(FileUtils.isDescendant("root", "root\\dir2\\dir2\\dir3"));
assertF... | public void testIsDescendant()
{
assertTrue(FileUtils.isDescendant("root", "root/dir1"));
assertTrue(FileUtils.isDescendant("root", "root/dir2/dir2/dir3"));
assertTrue(FileUtils.isDescendant("\\root", "\\root\\dir1"));
assertTrue(FileUtils.isDescendant("root", "root\\dir2\\dir2\\dir3"));
// Issu... |
diff --git a/java/testing/org/apache/derbyTesting/functionTests/tests/tools/ConnectWrongSubprotocolTest.java b/java/testing/org/apache/derbyTesting/functionTests/tests/tools/ConnectWrongSubprotocolTest.java
index ead31ff02..fe6492d24 100644
--- a/java/testing/org/apache/derbyTesting/functionTests/tests/tools/ConnectWro... | false | true | private String runIjScript(String ijScript, boolean useSystemProperties)
throws UnsupportedEncodingException, SQLException {
ByteArrayInputStream bais =
new ByteArrayInputStream(ijScript.getBytes());
ByteArrayOutputStream baos = new ByteArrayOutputStream(10 * 1024);
C... | private String runIjScript(String ijScript, boolean useSystemProperties)
throws UnsupportedEncodingException, SQLException {
ByteArrayInputStream bais =
new ByteArrayInputStream(ijScript.getBytes("US-ASCII"));
ByteArrayOutputStream baos = new ByteArrayOutputStream(10 * 1024);... |
diff --git a/src/com/android/browser/FetchUrlMimeType.java b/src/com/android/browser/FetchUrlMimeType.java
index 33b58086..6556b380 100644
--- a/src/com/android/browser/FetchUrlMimeType.java
+++ b/src/com/android/browser/FetchUrlMimeType.java
@@ -1,139 +1,143 @@
/*
* Copyright (C) 2008 The Android Open Source Projec... | false | true | public void run() {
// User agent is likely to be null, though the AndroidHttpClient
// seems ok with that.
AndroidHttpClient client = AndroidHttpClient.newInstance(mUserAgent);
HttpHost httpHost;
try {
httpHost = Proxy.getPreferredHttpHost(mContext, mUri);
... | public void run() {
// User agent is likely to be null, though the AndroidHttpClient
// seems ok with that.
AndroidHttpClient client = AndroidHttpClient.newInstance(mUserAgent);
HttpHost httpHost;
try {
httpHost = Proxy.getPreferredHttpHost(mContext, mUri);
... |
diff --git a/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java b/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java
index 7af6e24cf..4756eb62f 100644
--- a/src/test/system/java/org/apache/hadoop/test/system/AbstractDaemonCluster.java
+++ b/src/test/system/java/org/... | false | true | public void restartClusterWithNewConfig(Hashtable<String,Long> props,
String configFile) throws IOException {
String mapredConf = null;
String localDirPath = null;
File localFolderObj = null;
File xmlFileObj = null;
String confXMLFile = null;
Configuration initConf = new Configuration(... | public void restartClusterWithNewConfig(Hashtable<String,?> props,
String configFile) throws IOException {
String mapredConf = null;
String localDirPath = null;
File localFolderObj = null;
File xmlFileObj = null;
String confXMLFile = null;
Configuration initConf = new Configuration(get... |
diff --git a/core/src/main/java/org/javnce/vnc/server/ClientFramebufferHandler.java b/core/src/main/java/org/javnce/vnc/server/ClientFramebufferHandler.java
index 47b9c1e..e91e178 100644
--- a/core/src/main/java/org/javnce/vnc/server/ClientFramebufferHandler.java
+++ b/core/src/main/java/org/javnce/vnc/server/ClientFra... | false | true | private Framebuffer createFB(Rect rect, ByteBuffer buffers[]) {
Framebuffer result = null;
if (usedEncoding == Encoding.JaVNCeRLE) {
List<ByteBuffer> list = new ArrayList<>();
int bytesPerPixel = format.bytesPerPixel();
int orgSize = 0;
for (int i = ... | private Framebuffer createFB(Rect rect, ByteBuffer buffers[]) {
Framebuffer result = null;
if (usedEncoding == Encoding.JaVNCeRLE) {
List<ByteBuffer> list = new ArrayList<>();
int bytesPerPixel = format.bytesPerPixel();
int orgSize = 0;
for (int i = ... |
diff --git a/cydonia/src/main/java/de/findus/cydonia/level/FlagFactory.java b/cydonia/src/main/java/de/findus/cydonia/level/FlagFactory.java
index 14eb3eb..b0e842c 100644
--- a/cydonia/src/main/java/de/findus/cydonia/level/FlagFactory.java
+++ b/cydonia/src/main/java/de/findus/cydonia/level/FlagFactory.java
@@ -1,132 +... | true | true | public Flag createFlag(int id, Vector3f origin, int team) {
Flag f = new Flag();
f.setId(id);
f.setOrigin(origin);
f.setTeam(team);
ColorRGBA color = null;
ColorRGBA colorbase = null;
if(team == 1) {
color = ColorRGBA.Blue;
colorbase = new ColorRGBA(0, 0, 1, 0.5f);
}else if (team == 2) {
c... | public Flag createFlag(int id, Vector3f origin, int team) {
Flag f = new Flag();
f.setId(id);
f.setOrigin(origin);
f.setTeam(team);
ColorRGBA color = null;
ColorRGBA colorbase = null;
if(team == 1) {
color = ColorRGBA.Blue;
colorbase = new ColorRGBA(0, 0, 1, 0.5f);
}else if (team == 2) {
c... |
diff --git a/conan-core-services/src/main/java/uk/ac/ebi/fgpt/conan/core/task/AbstractConanTask.java b/conan-core-services/src/main/java/uk/ac/ebi/fgpt/conan/core/task/AbstractConanTask.java
index 7049414..b198e78 100644
--- a/conan-core-services/src/main/java/uk/ac/ebi/fgpt/conan/core/task/AbstractConanTask.java
+++ b... | true | true | public boolean execute() throws TaskExecutionException, InterruptedException {
// check the current state for execution
checkState();
getLog().debug("Executing task " + getId());
try {
// do processes in order
while (!isPaused() && getCurrentProcess() != null... | public boolean execute() throws TaskExecutionException, InterruptedException {
// check the current state for execution
checkState();
getLog().debug("Executing task " + getId());
try {
// do processes in order
while (!isPaused() && getCurrentProcess() != null... |
diff --git a/topcat/src/main/uk/ac/starlink/topcat/plot/Histogram.java b/topcat/src/main/uk/ac/starlink/topcat/plot/Histogram.java
index 3e6cea923..baab06c43 100644
--- a/topcat/src/main/uk/ac/starlink/topcat/plot/Histogram.java
+++ b/topcat/src/main/uk/ac/starlink/topcat/plot/Histogram.java
@@ -1,408 +1,409 @@
packag... | true | true | private void drawData( Graphics g ) {
/* Get and check relevant state. */
Points points = getPoints();
HistogramPlotState state = (HistogramPlotState) getState();
PlotSurface surface = getSurface();
if ( points == null || state == null || surface == null ||
! st... | private void drawData( Graphics g ) {
/* Get and check relevant state. */
Points points = getPoints();
HistogramPlotState state = (HistogramPlotState) getState();
PlotSurface surface = getSurface();
if ( points == null || state == null || surface == null ||
! st... |
diff --git a/net.sourceforge.eclipseccase/src/net/sourceforge/eclipseccase/Activity.java b/net.sourceforge.eclipseccase/src/net/sourceforge/eclipseccase/Activity.java
index 6f7d15c..665508b 100644
--- a/net.sourceforge.eclipseccase/src/net/sourceforge/eclipseccase/Activity.java
+++ b/net.sourceforge.eclipseccase/src/ne... | false | true | public Date getDate() {
try {
// ISO8601 time format.
if (date.indexOf("T") > 0) {
// ISO8601 time format like: 2011-05-22T16:02:37+03:00
myDate = (Date) parseIso(date);
} else {
//Other format: 06-Jun-00.17:16:12
DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
S... | public Date getDate() {
try {
// ISO8601 time format.
if (date.indexOf("T") != -1 ) {
// ISO8601 time format like: 2011-05-22T16:02:37+03:00
System.out.println("ISO Date used\n");
myDate = (Date) parseIso(date);
} else {
//Other format: 06-Jun-00.17:16:12
System.out.println("Other D... |
diff --git a/drools-verifier/src/main/java/org/drools/verifier/builder/VerifierImpl.java b/drools-verifier/src/main/java/org/drools/verifier/builder/VerifierImpl.java
index 57d01d534d..522ce77f73 100644
--- a/drools-verifier/src/main/java/org/drools/verifier/builder/VerifierImpl.java
+++ b/drools-verifier/src/main/java... | true | true | public void addResourcesToVerify(Resource resource,
ResourceType type) {
// TODO: Other than DRL
if ( type.matchesExtension( ".drl" ) ) {
DrlParser p = new DrlParser();
try {
BufferedReader reader = new BufferedReader( r... | public void addResourcesToVerify(Resource resource,
ResourceType type) {
// TODO: Other than DRL
if ( type.matchesExtension( ".drl" ) ) {
DrlParser p = new DrlParser();
try {
BufferedReader reader = new BufferedReader( r... |
diff --git a/broadcast-transcoder-fetcher/src/test/java/dk/statsbiblioteket/broadcasttranscoder/fetcher/DomsTranscodingStructureFetcherTest.java b/broadcast-transcoder-fetcher/src/test/java/dk/statsbiblioteket/broadcasttranscoder/fetcher/DomsTranscodingStructureFetcherTest.java
index 62208ff..30b337b 100644
--- a/broad... | true | true | public void testProcessThis() throws Exception {
FetcherContext context = new FetcherContext();
context.setBatchSize(100);
context.setCollection("doms:RadioTV_Collection");
context.setState("Published");
context.setViewAngle("GUI");
context.setDomsPassword("fedoraAdmi... | public void testProcessThis() throws Exception {
FetcherContext context = new FetcherContext();
context.setBatchSize(100);
context.setCollection("doms:RadioTV_Collection");
context.setState("Published");
context.setViewAngle("GUI");
context.setDomsPassword("fedoraAdmi... |
diff --git a/src/lib/com/izforge/izpack/util/FileExecutor.java b/src/lib/com/izforge/izpack/util/FileExecutor.java
index 760c5bbf..aed7b0b2 100644
--- a/src/lib/com/izforge/izpack/util/FileExecutor.java
+++ b/src/lib/com/izforge/izpack/util/FileExecutor.java
@@ -1,373 +1,374 @@
/*
* $Id$
* IzPack
* Copyright ... | true | true | public int executeFiles(int currentStage, AbstractUIHandler handler)
{
int exitStatus = 0;
String[] output = new String[2];
String pathSep = System.getProperty("path.separator");
String osName = System.getProperty("os.name").toLowerCase();
//String permissions = (System.getProperty("user.name").... | public int executeFiles(int currentStage, AbstractUIHandler handler)
{
int exitStatus = 0;
String[] output = new String[2];
String pathSep = System.getProperty("path.separator");
String osName = System.getProperty("os.name").toLowerCase();
//String permissions = (System.getProperty("user.name").... |
diff --git a/src/main/java/org/basex/build/DiskBuilder.java b/src/main/java/org/basex/build/DiskBuilder.java
index ac01c9385..778cc0a05 100644
--- a/src/main/java/org/basex/build/DiskBuilder.java
+++ b/src/main/java/org/basex/build/DiskBuilder.java
@@ -1,186 +1,187 @@
package org.basex.build;
import static org.base... | true | true | public DiskData build(final String name) throws IOException {
DropDB.drop(name, prop);
prop.dbpath(name).mkdirs();
meta = new MetaData(name, prop);
meta.file = parser.file;
meta.filesize = meta.file.length();
meta.time = meta.file.date();
// calculate optimized output buffer sizes to red... | public DiskData build(final String name) throws IOException {
DropDB.drop(name, prop);
prop.dbpath(name).mkdirs();
meta = new MetaData(name, prop);
meta.file = parser.file;
meta.filesize = meta.file.length();
meta.time = meta.file.date() != 0 ? meta.file.date() :
System.currentTimeMilli... |
diff --git a/src/de/dakror/liturfaliarcest/game/Game.java b/src/de/dakror/liturfaliarcest/game/Game.java
index 4662a55..0649036 100644
--- a/src/de/dakror/liturfaliarcest/game/Game.java
+++ b/src/de/dakror/liturfaliarcest/game/Game.java
@@ -1,57 +1,57 @@
package de.dakror.liturfaliarcest.game;
import java.awt.Graph... | true | true | public void initGame()
{
ObjectType.init();
worlds = new HashMap<>();
world = new World("map2");
player = new Player(0, 128);
world.addEntity(player);
addLayer(world);
}
| public void initGame()
{
ObjectType.init();
worlds = new HashMap<>();
world = new World("Zu Hause");
player = new Player(90, 400);
world.addEntity(player);
addLayer(world);
}
|
diff --git a/src/com/java/phondeux/team/TeamCommand.java b/src/com/java/phondeux/team/TeamCommand.java
index acc07b2..d99a3f3 100644
--- a/src/com/java/phondeux/team/TeamCommand.java
+++ b/src/com/java/phondeux/team/TeamCommand.java
@@ -1,357 +1,358 @@
package com.java.phondeux.team;
import java.sql.SQLException;
... | true | true | public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
// Team commands
// create - create a team
// disband - disband a team
// invite - invite a player to a team (admin or mod only)
// deinvite - de-invite a player
// description - set team description
... | public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
// Team commands
// create - create a team
// disband - disband a team
// invite - invite a player to a team (admin or mod only)
// deinvite - de-invite a player
// description - set team description
... |
diff --git a/src/com/jogamp/opencl/demos/gamma/CLSimpleGammaCorrection.java b/src/com/jogamp/opencl/demos/gamma/CLSimpleGammaCorrection.java
index 1845cbc..2191f70 100644
--- a/src/com/jogamp/opencl/demos/gamma/CLSimpleGammaCorrection.java
+++ b/src/com/jogamp/opencl/demos/gamma/CLSimpleGammaCorrection.java
@@ -1,178 +... | false | true | public static void main(String[] args) throws IOException {
// find a CL implementation
CLPlatform platform = CLPlatform.getDefault(/*type(CPU)*/);
CLContext context = CLContext.create(platform.getMaxFlopsDevice());
try{
//load and compile progr... | public static void main(String[] args) throws IOException {
// find a CL implementation
CLPlatform platform = CLPlatform.getDefault(/*type(CPU)*/);
CLContext context = CLContext.create(platform.getMaxFlopsDevice());
try{
//load and compile progr... |
diff --git a/htroot/AccessTracker_p.java b/htroot/AccessTracker_p.java
index 0a8617822..ee2fc75e4 100644
--- a/htroot/AccessTracker_p.java
+++ b/htroot/AccessTracker_p.java
@@ -1,232 +1,232 @@
// AccessTracker_p.java
// (C) 2006 by Michael Peter Christen; mc@yacy.net, Frankfurt a. M., Germany
// first published 14.0... | true | true | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch sb) {
plasmaSwitchboard switchboard = (plasmaSwitchboard) sb;
// return variable that accumulates replacements
serverObjects prop = new serverObjects();
prop.setLocalized(!((String)header.ge... | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch sb) {
plasmaSwitchboard switchboard = (plasmaSwitchboard) sb;
// return variable that accumulates replacements
serverObjects prop = new serverObjects();
prop.setLocalized(!((String)header.ge... |
diff --git a/src/main/java/fi/helsinki/cs/tmc/testrunner/TestRunner.java b/src/main/java/fi/helsinki/cs/tmc/testrunner/TestRunner.java
index 2faedb1..c066cd4 100644
--- a/src/main/java/fi/helsinki/cs/tmc/testrunner/TestRunner.java
+++ b/src/main/java/fi/helsinki/cs/tmc/testrunner/TestRunner.java
@@ -1,177 +1,181 @@
pa... | true | true | private void doRun() {
TestCase currentCase;
while (true) {
synchronized (lock) {
if (currentCaseIndex == cases.size()) {
break;
}
currentCase = cases.get(currentCaseIndex);
... | private void doRun() {
TestCase currentCase;
while (true) {
synchronized (lock) {
if (currentCaseIndex == cases.size()) {
break;
}
currentCase = cases.get(currentCaseIndex);
... |
diff --git a/JavaSource/nl/nn/adapterframework/webcontrol/action/TestPipeLineExecute.java b/JavaSource/nl/nn/adapterframework/webcontrol/action/TestPipeLineExecute.java
index 565344de..7bbe8fdb 100644
--- a/JavaSource/nl/nn/adapterframework/webcontrol/action/TestPipeLineExecute.java
+++ b/JavaSource/nl/nn/adapterframew... | false | true | public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
// Initialize action
initAction(request);
if (null == config) {
return (mapping.findForward("noconfig... | public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
// Initialize action
initAction(request);
if (null == config) {
return (mapping.findForward("noconfig... |
diff --git a/src/org/python/core/PyJavaType.java b/src/org/python/core/PyJavaType.java
index ae5d5a73..f5f31250 100644
--- a/src/org/python/core/PyJavaType.java
+++ b/src/org/python/core/PyJavaType.java
@@ -1,918 +1,918 @@
package org.python.core;
import java.lang.reflect.Constructor;
import java.lang.reflect.Fiel... | false | true | protected void init(Class<?> forClass, Set<PyJavaType> needsInners) {
name = forClass.getName();
// Strip the java fully qualified class name from Py classes in core
if (name.startsWith("org.python.core.Py")) {
name = name.substring("org.python.core.Py".length()).toLowerCase();
... | protected void init(Class<?> forClass, Set<PyJavaType> needsInners) {
name = forClass.getName();
// Strip the java fully qualified class name from Py classes in core
if (name.startsWith("org.python.core.Py")) {
name = name.substring("org.python.core.Py".length()).toLowerCase();
... |
diff --git a/src/net/colar/netbeans/fan/ast/FanAstScopeVarBase.java b/src/net/colar/netbeans/fan/ast/FanAstScopeVarBase.java
index 510adf4..864c357 100644
--- a/src/net/colar/netbeans/fan/ast/FanAstScopeVarBase.java
+++ b/src/net/colar/netbeans/fan/ast/FanAstScopeVarBase.java
@@ -1,143 +1,144 @@
/*
* Thibaut Colar D... | true | true | public static ModifEnum parseModifier(String m)
{
//TODO: const ?
if (m.toLowerCase().equalsIgnoreCase("private"))
{
return ModifEnum.PRIVATE;
} else if (m.toLowerCase().equalsIgnoreCase("public"))
{
return ModifEnum.PUBLIC;
} else if (m.toLowerCase().equalsIgnoreCase("protected"))
{
return Mod... | public static ModifEnum parseModifier(String m)
{
//TODO: const ?
if (m.toLowerCase().equalsIgnoreCase("private"))
{
return ModifEnum.PRIVATE;
} else if (m.toLowerCase().equalsIgnoreCase("public"))
{
return ModifEnum.PUBLIC;
} else if (m.toLowerCase().equalsIgnoreCase("protected"))
{
return Mod... |
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/narrative/model/NarrativeSection.java b/opentripplanner-routing/src/main/java/org/opentripplanner/narrative/model/NarrativeSection.java
index 7139cd1c0..da974e7e6 100644
--- a/opentripplanner-routing/src/main/java/org/opentripplanner/narrative/model... | true | true | public NarrativeSection(List<SPTVertex> vertices, Vector<SPTEdge> edges) {
/* compute start and end times */
SPTVertex first = vertices.get(0);
startTime = first.state.getTime();
SPTVertex last = vertices.get(vertices.size() - 1);
endTime = last.state.getTime();
item... | public NarrativeSection(List<SPTVertex> vertices, Vector<SPTEdge> edges) {
/* compute start and end times */
SPTVertex first = vertices.get(0);
startTime = first.state.getTime();
SPTVertex last = vertices.get(vertices.size() - 1);
endTime = last.state.getTime();
item... |
diff --git a/src/RunBatch.java b/src/RunBatch.java
index a83ae3e..e57c6c3 100644
--- a/src/RunBatch.java
+++ b/src/RunBatch.java
@@ -1,95 +1,95 @@
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.InputStream;
import java.io.InputStreamR... | true | true | public void run() throws Exception {
InputStream in = this.getClass().getResourceAsStream(PIDS_FILE);
BufferedReader seqReader = new BufferedReader(new InputStreamReader(in,"UTF-8"));
String outFileName = bundle.getString("output.file");
out = new PrintStream(new FileOutputStream(outFileName));
ModifyData... | public void run() throws Exception {
InputStream in = this.getClass().getResourceAsStream(PIDS_FILE);
BufferedReader seqReader = new BufferedReader(new InputStreamReader(in,"UTF-8"));
String outFileName = bundle.getString("output.file");
out = new PrintStream(new FileOutputStream(outFileName));
ModifyData... |
diff --git a/src/main/java/org/mozilla/gecko/background/announcements/AnnouncementPresenter.java b/src/main/java/org/mozilla/gecko/background/announcements/AnnouncementPresenter.java
index a35029dd7..6ba603c6e 100644
--- a/src/main/java/org/mozilla/gecko/background/announcements/AnnouncementPresenter.java
+++ b/src/mai... | true | true | public static void displayAnnouncement(final Context context,
final int notificationID,
final String title,
final String body,
final URI uri) {
final ... | public static void displayAnnouncement(final Context context,
final int notificationID,
final String title,
final String body,
final URI uri) {
final ... |
diff --git a/src/main/java/cc/kune/events/server/EventsServlet.java b/src/main/java/cc/kune/events/server/EventsServlet.java
index 82679fcea..13618ad96 100644
--- a/src/main/java/cc/kune/events/server/EventsServlet.java
+++ b/src/main/java/cc/kune/events/server/EventsServlet.java
@@ -1,114 +1,114 @@
package cc.kune.ev... | true | true | protected void doGet(final HttpServletRequest req, final HttpServletResponse resp)
throws ServletException, IOException {
final String userHash = req.getParameter(FileConstants.HASH);
final StateToken token = new StateToken(req.getParameter(FileConstants.TOKEN));
final Calendar calendar = new Cale... | protected void doGet(final HttpServletRequest req, final HttpServletResponse resp)
throws ServletException, IOException {
final String userHash = req.getParameter(FileConstants.HASH);
final StateToken token = new StateToken(req.getParameter(FileConstants.TOKEN));
final Calendar calendar = new Cale... |
diff --git a/src/main/java/com/theminequest/common/quest/js/JsTask.java b/src/main/java/com/theminequest/common/quest/js/JsTask.java
index dd45855..6a6cb2b 100644
--- a/src/main/java/com/theminequest/common/quest/js/JsTask.java
+++ b/src/main/java/com/theminequest/common/quest/js/JsTask.java
@@ -1,173 +1,173 @@
packag... | true | true | public void start() {
if (jsThread != null)
return;
jsThread = new Thread(new Runnable() {
@Override
public void run() {
Context cx = Context.enter();
try {
synchronized(SYNCLOCK) {
if (STD_OBJ == null) {
STD_OBJ = cx.initStandardObjects(null, true);
STD_OBJ.sealO... | public void start() {
if (jsThread != null)
return;
jsThread = new Thread(new Runnable() {
@Override
public void run() {
Context cx = Context.enter();
try {
synchronized(SYNCLOCK) {
if (STD_OBJ == null) {
STD_OBJ = cx.initStandardObjects(null, true);
STD_OBJ.sealO... |
diff --git a/src/plugins/WoT/ui/web/WebInterface.java b/src/plugins/WoT/ui/web/WebInterface.java
index bd63b442..d6a85aed 100644
--- a/src/plugins/WoT/ui/web/WebInterface.java
+++ b/src/plugins/WoT/ui/web/WebInterface.java
@@ -1,500 +1,500 @@
/* This code is part of WoT, a plugin for Freenet. It is distributed
* un... | true | true | public void handleMethodGET(URI uri, HTTPRequest req, ToadletContext ctx) throws ToadletContextClosedException, IOException {
// ATTENTION: The same code is used in Freetalk's WebInterface.java. Please synchronize any changes which happen there.
Bucket dataBucket = null;
Bucket output = core.tempBucketF... | public void handleMethodGET(URI uri, HTTPRequest req, ToadletContext ctx) throws ToadletContextClosedException, IOException {
// ATTENTION: The same code is used in Freetalk's WebInterface.java. Please synchronize any changes which happen there.
Bucket dataBucket = null;
Bucket output = core.tempBucketF... |
diff --git a/tools/src/main/java/org/apache/tuscany/sdo/generate/util/SDOGenUtil.java b/tools/src/main/java/org/apache/tuscany/sdo/generate/util/SDOGenUtil.java
index 854e638..7e5cd16 100644
--- a/tools/src/main/java/org/apache/tuscany/sdo/generate/util/SDOGenUtil.java
+++ b/tools/src/main/java/org/apache/tuscany/sdo/g... | false | true | public static String getListKind(GenFeature genFeature, boolean suppressNotification )
{
boolean unsettable = genFeature.isUnsettable();
if(suppressNotification)
{
return "ListKind.BASIC";
}
else if (genFeature.isEffectiveContains())
{
... | public static String getListKind(GenFeature genFeature, boolean suppressNotification )
{
boolean unsettable = genFeature.isUnsettable();
if (suppressNotification)
{
return "ListKind.BASIC";
}
else if (genFeature.isEffectiveContains())
{
... |
diff --git a/src/main/java/net/nanopool/Connector.java b/src/main/java/net/nanopool/Connector.java
index 2a9935c..ec79417 100644
--- a/src/main/java/net/nanopool/Connector.java
+++ b/src/main/java/net/nanopool/Connector.java
@@ -1,51 +1,54 @@
package net.nanopool;
import java.sql.Connection;
import java.sql.SQLExc... | false | true | public Connection getConnection() throws SQLException {
long now = System.currentTimeMillis();
if (deadTime < now)
connection = null;
if (connection == null) {
connection = source.getPooledConnection();
connection.addConnectionEventListener(new ConnectionL... | public Connection getConnection() throws SQLException {
long now = System.currentTimeMillis();
if (deadTime < now) {
PooledConnection con = connection;
connection = null;
con.close();
}
if (connection == null) {
connection = source.getP... |
diff --git a/src/bwmcts/sparcraft/Unit.java b/src/bwmcts/sparcraft/Unit.java
index 59bbda4..a4b07d6 100644
--- a/src/bwmcts/sparcraft/Unit.java
+++ b/src/bwmcts/sparcraft/Unit.java
@@ -1,528 +1,528 @@
package bwmcts.sparcraft;
import javabot.JNIBWAPI;
import javabot.types.UnitCommandType.UnitCommandTypes;
import ... | false | true | public Position currentPosition(int gameTime) {
if (_previousAction.type() == UnitActionTypes.MOVE)
{
// if gameTime is equal to previous move time then we haven't moved yet
if (gameTime == _previousActionTime)
{
return _previousPosition;
... | public Position currentPosition(int gameTime) {
if (_previousAction.type() == UnitActionTypes.MOVE)
{
// if gameTime is equal to previous move time then we haven't moved yet
if (gameTime == _previousActionTime)
{
return _previousPosition;
... |
diff --git a/apps/animaldb/org/molgenis/animaldb/plugins/administration/ShowDecSubprojects.java b/apps/animaldb/org/molgenis/animaldb/plugins/administration/ShowDecSubprojects.java
index 09851e942..b75818714 100644
--- a/apps/animaldb/org/molgenis/animaldb/plugins/administration/ShowDecSubprojects.java
+++ b/apps/anima... | true | true | public void handleRequest(Database db, MolgenisRequest request)
{
ct.setDatabase(db);
if (addAnimalsMatrixViewer != null)
{
addAnimalsMatrixViewer.setDatabase(db);
}
if (remAnimalsMatrixViewer != null)
{
remAnimalsMatrixViewer.setDatabase(db);
}
try
{
this.setAction(request.getAction());
... | public void handleRequest(Database db, MolgenisRequest request)
{
ct.setDatabase(db);
if (addAnimalsMatrixViewer != null)
{
addAnimalsMatrixViewer.setDatabase(db);
}
if (remAnimalsMatrixViewer != null)
{
remAnimalsMatrixViewer.setDatabase(db);
}
try
{
this.setAction(request.getAction());
... |
diff --git a/src/synclogic/DatabaseUnit.java b/src/synclogic/DatabaseUnit.java
index c9c7cc1..e5fef76 100644
--- a/src/synclogic/DatabaseUnit.java
+++ b/src/synclogic/DatabaseUnit.java
@@ -1,660 +1,662 @@
package synclogic;
import java.net.ConnectException;
import java.sql.Connection;
import java.sql.DriverManage... | false | true | public void objectsToDb(List<SyncListener> objects) throws SQLException{
eventCount = 0;
invitationCount = 0;
notificationCount = 0;
roomCount = 0;
//iterates the list of objects that are to be put i the database, checks what type of SyncListener it is
for (int i = 0; i < objects.size(); i++) {
if(obj... | public void objectsToDb(List<SyncListener> objects) throws SQLException{
eventCount = 0;
invitationCount = 0;
notificationCount = 0;
roomCount = 0;
//iterates the list of objects that are to be put i the database, checks what type of SyncListener it is
for (int i = 0; i < objects.size(); i++) {
if(obj... |
diff --git a/fritzing/Fritzing.diagram/src/org/fritzing/fritzing/diagram/part/FritzingPCBExportAction.java b/fritzing/Fritzing.diagram/src/org/fritzing/fritzing/diagram/part/FritzingPCBExportAction.java
index 31b3fc1e9..6196b12e7 100644
--- a/fritzing/Fritzing.diagram/src/org/fritzing/fritzing/diagram/part/FritzingPCBE... | false | true | public void run(IAction action) {
// STEP 1: create Eagle script file from Fritzing files
IDiagramWorkbenchPart editor = null;
URI diagramUri = null;
try {
// use currently active diagram
editor = FritzingDiagramEditorUtil.getActiveDiagramPart();
diagramUri = FritzingDiagramEditorUtil.getActiveD... | public void run(IAction action) {
// STEP 1: create Eagle script file from Fritzing files
IDiagramWorkbenchPart editor = null;
URI diagramUri = null;
try {
// use currently active diagram
editor = FritzingDiagramEditorUtil.getActiveDiagramPart();
diagramUri = FritzingDiagramEditorUtil.getActiveD... |
diff --git a/src/demo/androidSokoban/src/org/xmlvm/asokoban/InputController.java b/src/demo/androidSokoban/src/org/xmlvm/asokoban/InputController.java
index d117e086..0101a1f5 100644
--- a/src/demo/androidSokoban/src/org/xmlvm/asokoban/InputController.java
+++ b/src/demo/androidSokoban/src/org/xmlvm/asokoban/InputContr... | true | true | public boolean onTouch(View v, MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_DOWN && tapHandler != null) {
tapHandler.onTap();
return true;
}
if (event.getAction() == MotionEvent.ACTION_DOWN) {
lastDownX = event.getX();
last... | public boolean onTouch(View v, MotionEvent event) {
if ((event.getAction() == MotionEvent.ACTION_DOWN || event.getAction() == MotionEvent.ACTION_UP)
&& tapHandler != null) {
if (event.getAction() == MotionEvent.ACTION_UP) {
tapHandler.onTap();
}
... |
diff --git a/src/ru/naumen/servacc/platform/Windows.java b/src/ru/naumen/servacc/platform/Windows.java
index db915b0..a94f67d 100644
--- a/src/ru/naumen/servacc/platform/Windows.java
+++ b/src/ru/naumen/servacc/platform/Windows.java
@@ -1,73 +1,73 @@
package ru.naumen.servacc.platform;
import java.io.File;
import ... | true | true | public File getConfigDirectory() throws IOException
{
String appData = System.getenv("APPDATA");
if (Util.isEmptyOrNull(appData))
{
return new File(new File(appData), "Server Access");
}
return null;
}
| public File getConfigDirectory() throws IOException
{
String appData = System.getenv("APPDATA");
if (!Util.isEmptyOrNull(appData))
{
return new File(new File(appData), "Server Access");
}
return null;
}
|
diff --git a/javafx.fxd/src/org/netbeans/modules/javafx/fxd/composer/preview/PreviewImagePanel.java b/javafx.fxd/src/org/netbeans/modules/javafx/fxd/composer/preview/PreviewImagePanel.java
index f4af2724..562674c6 100644
--- a/javafx.fxd/src/org/netbeans/modules/javafx/fxd/composer/preview/PreviewImagePanel.java
+++ b/... | false | true | synchronized void refresh() {
FXZArchive fxzArchive = m_dObj.getDataModel().getFXDContainer();
if ( fxzArchive != null) {
final int tickerCopy = fxzArchive.getChangeTicker();
final TargetProfile profileCopy = m_dObj.getDataModel().getPreviewProfile();
final Stri... | synchronized void refresh() {
FXZArchive fxzArchive = m_dObj.getDataModel().getFXDContainer();
if ( fxzArchive != null) {
final int tickerCopy = fxzArchive.getChangeTicker();
final TargetProfile profileCopy = m_dObj.getDataModel().getPreviewProfile();
final Stri... |
diff --git a/fog/src/de/tuilmenau/ics/fog/util/BlockingEventHandling.java b/fog/src/de/tuilmenau/ics/fog/util/BlockingEventHandling.java
index f0555020..3d3b154a 100644
--- a/fog/src/de/tuilmenau/ics/fog/util/BlockingEventHandling.java
+++ b/fog/src/de/tuilmenau/ics/fog/util/BlockingEventHandling.java
@@ -1,94 +1,98 @@... | true | true | public synchronized Event waitForEvent(double pTimeout)
{
Event res = null;
boolean tInterrupted = false;
int tAttempt = 0;
do {
if(firstEvent != null) {
res = firstEvent;
firstEvent = null;
} else {
if(events != null) {
if(!events.isEmpty()) {
res = events.removeFirst();
... | public synchronized Event waitForEvent(double pTimeout)
{
Event res = null;
boolean tInterrupted = false;
int tAttempt = 0;
do {
if(firstEvent != null) {
res = firstEvent;
firstEvent = null;
} else {
if(events != null) {
if(!events.isEmpty()) {
res = events.removeFirst();
... |
diff --git a/astrid/src/com/todoroo/astrid/service/abtesting/ABTests.java b/astrid/src/com/todoroo/astrid/service/abtesting/ABTests.java
index efc2a72be..51fc4d65a 100644
--- a/astrid/src/com/todoroo/astrid/service/abtesting/ABTests.java
+++ b/astrid/src/com/todoroo/astrid/service/abtesting/ABTests.java
@@ -1,179 +1,17... | false | true | public void externalInit(Context context) {
// The outer 'if' statement is to prevent one test from being added one time
// and the other from being added later if the accounts changed
if (ABChooser.readChoiceForTest(AB_NEW_LOGIN_NO_GOOGLE) == ABChooser.NO_OPTION
&& ABChooser... | public void externalInit(Context context) {
// The outer 'if' statement is to prevent one test from being added one time
// and the other from being added later if the accounts changed
if (ABChooser.readChoiceForTest(AB_NEW_LOGIN_NO_GOOGLE) == ABChooser.NO_OPTION
&& ABChooser... |
diff --git a/src/haven/GLState.java b/src/haven/GLState.java
index 309a2a79..67753fd0 100644
--- a/src/haven/GLState.java
+++ b/src/haven/GLState.java
@@ -1,405 +1,405 @@
/*
* This file is part of the Haven & Hearth game client.
* Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and
* ... | true | true | public static int bufdiff(Buffer f, Buffer t, boolean[] trans, boolean[] repl) {
int cost = 0;
f.adjust(); t.adjust();
if(trans != null) {
for(int i = 0; i < trans.length; i++) {
trans[i] = false;
repl[i] = false;
}
}
for(int i = 0; i < f.states.length; i++) {
if(((f.states[i] == null) != (t... | public static int bufdiff(Buffer f, Buffer t, boolean[] trans, boolean[] repl) {
int cost = 0;
f.adjust(); t.adjust();
if(trans != null) {
for(int i = 0; i < trans.length; i++) {
trans[i] = false;
repl[i] = false;
}
}
for(int i = 0; i < f.states.length; i++) {
if(((f.states[i] == null) != (t... |
diff --git a/jOOQ-console/src/main/java/org/jooq/debug/impl/LocalStatementExecutor.java b/jOOQ-console/src/main/java/org/jooq/debug/impl/LocalStatementExecutor.java
index 84f521141..444495c70 100644
--- a/jOOQ-console/src/main/java/org/jooq/debug/impl/LocalStatementExecutor.java
+++ b/jOOQ-console/src/main/java/org/joo... | false | true | public QueryExecution execute(String sql, int maxRSRowsParsing, int retainParsedRSDataRowCountThreshold, boolean isUpdatable) {
boolean isReadOnly = executorContext.isReadOnly();
isUpdatable = !isReadOnly && isUpdatable;
boolean isAllowed = true;
if(isReadOnly) {
String s... | public QueryExecution execute(String sql, int maxRSRowsParsing, int retainParsedRSDataRowCountThreshold, boolean isUpdatable) {
boolean isReadOnly = executorContext.isReadOnly();
isUpdatable = !isReadOnly && isUpdatable;
boolean isAllowed = true;
if(isReadOnly) {
String s... |
diff --git a/src/client/MapleCharacter.java b/src/client/MapleCharacter.java
index 3a65018..184fb22 100644
--- a/src/client/MapleCharacter.java
+++ b/src/client/MapleCharacter.java
@@ -1,4017 +1,4017 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
... | true | true | public void saveToDB(boolean update) {
Connection con = DatabaseConnection.getConnection();
try {
con.setTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED);
con.setAutoCommit(false);
PreparedStatement ps;
if (update) {
ps = c... | public void saveToDB(boolean update) {
Connection con = DatabaseConnection.getConnection();
try {
con.setTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED);
con.setAutoCommit(false);
PreparedStatement ps;
if (update) {
ps = c... |
diff --git a/xwiki-commons-core/xwiki-commons-extension/xwiki-commons-extension-api/src/main/java/org/xwiki/extension/job/internal/AbstractExtensionJob.java b/xwiki-commons-core/xwiki-commons-extension/xwiki-commons-extension-api/src/main/java/org/xwiki/extension/job/internal/AbstractExtensionJob.java
index 6571838ee..... | true | true | protected void applyAction(ExtensionPlanAction action) throws InstallException, UninstallException,
LocalExtensionRepositoryException, ResolveException
{
Extension extension = action.getExtension();
String namespace = action.getNamespace();
if (namespace != null) {
t... | protected void applyAction(ExtensionPlanAction action) throws InstallException, UninstallException,
LocalExtensionRepositoryException, ResolveException
{
Extension extension = action.getExtension();
String namespace = action.getNamespace();
if (namespace != null) {
t... |
diff --git a/AdvancedMap3D/src/main/java/com/nutiteq/advancedmap/VectorFileMapActivity.java b/AdvancedMap3D/src/main/java/com/nutiteq/advancedmap/VectorFileMapActivity.java
index c0cea85..4ac198e 100644
--- a/AdvancedMap3D/src/main/java/com/nutiteq/advancedmap/VectorFileMapActivity.java
+++ b/AdvancedMap3D/src/main/jav... | false | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// spinner in status bar, for progress indication
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.main);
// enable logging for troubleshooting - optional
Log.enableAll();
Lo... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// spinner in status bar, for progress indication
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.main);
// enable logging for troubleshooting - optional
Log.enableAll();
Lo... |
diff --git a/mongo-emulator/src/test/java/org/usergrid/mongo/MongoQueryTest.java b/mongo-emulator/src/test/java/org/usergrid/mongo/MongoQueryTest.java
index 726e1d26..975f9c14 100644
--- a/mongo-emulator/src/test/java/org/usergrid/mongo/MongoQueryTest.java
+++ b/mongo-emulator/src/test/java/org/usergrid/mongo/MongoQuer... | true | true | public void basicTest() throws Exception {
UUID appId = emf.lookupApplication("test-organization/test-query-app");
EntityManager em = emf.getEntityManager(appId);
Map<String, Object> properties = new LinkedHashMap<String, Object>();
properties.put("name", "Kings of Leon");
p... | public void basicTest() throws Exception {
UUID appId = emf.createApplication("test-organization",
"test-query-app");
EntityManager em = emf.getEntityManager(appId);
Map<String, Object> properties = new LinkedHashMap<String, Object>();
properties.put("name", "Kings o... |
diff --git a/src/com/jidesoft/plaf/basic/BasicJideTabbedPaneUI.java b/src/com/jidesoft/plaf/basic/BasicJideTabbedPaneUI.java
index 92c6b332..01675224 100644
--- a/src/com/jidesoft/plaf/basic/BasicJideTabbedPaneUI.java
+++ b/src/com/jidesoft/plaf/basic/BasicJideTabbedPaneUI.java
@@ -1,9782 +1,9785 @@
/* @(#)BasicJideTa... | true | true | protected boolean requestFocusForVisibleComponent() {
Component visibleComponent = getVisibleComponent();
Component lastFocused = _tabPane.getLastFocusedComponent(visibleComponent);
if (lastFocused != null && lastFocused.requestFocusInWindow()) {
return true;
}
el... | protected boolean requestFocusForVisibleComponent() {
Component visibleComponent = getVisibleComponent();
Component lastFocused = _tabPane.getLastFocusedComponent(visibleComponent);
if (lastFocused != null && lastFocused.requestFocusInWindow()) {
return true;
}
el... |
diff --git a/modules/cpr/src/main/java/org/atmosphere/util/analytics/ModuleDetection.java b/modules/cpr/src/main/java/org/atmosphere/util/analytics/ModuleDetection.java
index 902925d8e..8164c0daa 100644
--- a/modules/cpr/src/main/java/org/atmosphere/util/analytics/ModuleDetection.java
+++ b/modules/cpr/src/main/java/or... | true | true | public final static String detect() {
for (Map.Entry<String, String> e : modules.entrySet()) {
if (check(e.getValue())) {
e.getKey();
}
}
return "runtime";
}
| public final static String detect() {
for (Map.Entry<String, String> e : modules.entrySet()) {
if (check(e.getValue())) {
return e.getKey();
}
}
return "runtime";
}
|
diff --git a/src/main/java/tk/kirlian/SignTraderWithDucks/SignTraderPlugin.java b/src/main/java/tk/kirlian/SignTraderWithDucks/SignTraderPlugin.java
index 857b9db..a39994d 100644
--- a/src/main/java/tk/kirlian/SignTraderWithDucks/SignTraderPlugin.java
+++ b/src/main/java/tk/kirlian/SignTraderWithDucks/SignTraderPlugin.... | true | true | public void onEnable() {
// Logger needs to be created here because the description file
// isn't loaded until now
log = CustomLogger.getLogger(getDescription().getName());
// I don't know where to put this, so it's going here!
if(!getDataFolder().mkdirs()) {
log... | public void onEnable() {
// Logger needs to be created here because the description file
// isn't loaded until now
log = CustomLogger.getLogger(getDescription().getName());
// I don't know where to put this, so it's going here!
if(getDataFolder().isDirectory()) {
... |
diff --git a/src/main/java/org/basex/io/IO.java b/src/main/java/org/basex/io/IO.java
index dabc82e54..cc5256da5 100644
--- a/src/main/java/org/basex/io/IO.java
+++ b/src/main/java/org/basex/io/IO.java
@@ -1,278 +1,278 @@
package org.basex.io;
import java.io.IOException;
import java.text.SimpleDateFormat;
import... | true | true | public static IO get(final String source) {
if(source == null) return new IOContent(Token.EMPTY);
final String s = source.trim();
if(s.startsWith("<")) return new IOContent(Token.token(s));
if(s.startsWith(FILEPREF)) return new IOUrl(IOUrl.file(s));
if(IOFile.valid(s)) return new IOFil... | public static IO get(final String source) {
if(source == null) return new IOContent(Token.EMPTY);
final String s = source.trim();
if(s.startsWith("<")) return new IOContent(Token.token(s));
if(s.startsWith(FILEPREF)) return new IOFile(IOUrl.file(s));
if(IOFile.valid(s)) return new IOFi... |
diff --git a/jmxterm/trunk/jmxterm/src/main/java/org/cyclopsgroup/jmxterm/cmd/OpenCommand.java b/jmxterm/trunk/jmxterm/src/main/java/org/cyclopsgroup/jmxterm/cmd/OpenCommand.java
index 52cd0d74..aa50f880 100644
--- a/jmxterm/trunk/jmxterm/src/main/java/org/cyclopsgroup/jmxterm/cmd/OpenCommand.java
+++ b/jmxterm/trunk/j... | true | true | public void execute( Session session )
throws IOException
{
if ( url == null )
{
Connection con = session.getConnection();
if ( con == null )
{
session.output.println( "Not connected" );
}
else
{
... | public void execute( Session session )
throws IOException
{
if ( url == null )
{
Connection con = session.getConnection();
if ( con == null )
{
session.output.println( "Not connected" );
}
else
{
... |
diff --git a/ghana-national-messaging-gateway/src/main/java/org/motechproject/ghana/national/messagegateway/service/PayloadDispatcher.java b/ghana-national-messaging-gateway/src/main/java/org/motechproject/ghana/national/messagegateway/service/PayloadDispatcher.java
index 5cdaa194..a53534a3 100644
--- a/ghana-national-... | true | true | public void dispatch(Payload payload) {
List<SMS> smsList = (List<SMS>) payload;
for (SMS sms : smsList) {
smsService.sendSMS(sms.getPhoneNumber(), sms.getText());
}
}
| public void dispatch(List<Payload> payloads) {
for (Payload payload : payloads) {
SMS sms = (SMS) payload;
smsService.sendSMS(sms.getPhoneNumber(), sms.getText());
}
}
|
diff --git a/CSVExporter.java b/CSVExporter.java
index c71546e..854d88f 100644
--- a/CSVExporter.java
+++ b/CSVExporter.java
@@ -1,581 +1,581 @@
/*
Copyright (C) 2012 Fabian 'fabs' Yamaguchi <fabs@phenoelit.de>
This program is free software: you can redistribute it and/or modify
it under the terms of th... | true | true | private static void handleSimpleDecl(CommonTreeWithLines node, int level)
{
CommonTreeWithLines typedefNode = (CommonTreeWithLines) node.getChild(0);
CommonTreeWithLines templateNode = (CommonTreeWithLines) node.getChild(1);
CommonTreeWithLines typeNode = (CommonTreeWithLines) node.getChild(2);
CommonTreeWith... | private static void handleSimpleDecl(CommonTreeWithLines node, int level)
{
CommonTreeWithLines typedefNode = (CommonTreeWithLines) node.getChild(0);
CommonTreeWithLines templateNode = (CommonTreeWithLines) node.getChild(1);
CommonTreeWithLines typeNode = (CommonTreeWithLines) node.getChild(2);
CommonTreeWith... |
diff --git a/src/main/java/org/util/WildcardUtil.java b/src/main/java/org/util/WildcardUtil.java
index 2d4d5fd04..3337894d7 100644
--- a/src/main/java/org/util/WildcardUtil.java
+++ b/src/main/java/org/util/WildcardUtil.java
@@ -1,39 +1,43 @@
package org.util;
public class WildcardUtil {
public static boolean m... | true | true | public static boolean matchWildcard(String p0, String p1) {
if (!p0.isEmpty() && !p1.isEmpty()) {
char h0 = p0.charAt(0), h1 = p1.charAt(0);
String t0 = p0.substring(1), t1 = p1.substring(1);
return h0 == '*' && matchWildcard(t0, p1) //
|| h1 == '*' && matchWildcard(p0, t1) //
|| h0 == h1 && matc... | public static boolean matchWildcard(String p0, String p1) {
if (!p0.isEmpty() && !p1.isEmpty()) {
char h0 = p0.charAt(0), h1 = p1.charAt(0);
String t0 = p0.substring(1), t1 = p1.substring(1);
boolean isMatch = false;
isMatch |= h0 == '*'
&& (matchWildcard(t0, p1) || matchWildcard(p0, t1));
isMat... |
diff --git a/src/com/btmura/android/reddit/app/AbstractBrowserActivity.java b/src/com/btmura/android/reddit/app/AbstractBrowserActivity.java
index c701750f..b4b1f427 100644
--- a/src/com/btmura/android/reddit/app/AbstractBrowserActivity.java
+++ b/src/com/btmura/android/reddit/app/AbstractBrowserActivity.java
@@ -1,743... | false | true | private void refreshViews(Bundle thingBundle) {
boolean hasThing = thingBundle != null;
if (navContainer != null) {
int currVisibility = navContainer.getVisibility();
int nextVisibility = !hasThing ? View.VISIBLE : View.GONE;
if (currVisibility != nextVisibility) ... | private void refreshViews(Bundle thingBundle) {
boolean hasThing = thingBundle != null;
if (navContainer != null) {
int currVisibility = navContainer.getVisibility();
int nextVisibility = !hasThing ? View.VISIBLE : View.GONE;
if (currVisibility != nextVisibility) ... |
diff --git a/BerlinCurator/src/com/alvarosantisteban/berlincurator/AboutActivity.java b/BerlinCurator/src/com/alvarosantisteban/berlincurator/AboutActivity.java
index 6e6e7fc..338e791 100644
--- a/BerlinCurator/src/com/alvarosantisteban/berlincurator/AboutActivity.java
+++ b/BerlinCurator/src/com/alvarosantisteban/berl... | true | true | public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
// app icon in action bar clicked; go home
Intent intent = new Intent(this, MainActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
... | public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
// Goes to the settings activity
case R.id.menu_settings:
Intent i = new Intent(this, SettingsActivity.class);
startActivityForResult(i, 1);
break;
case android.R... |
diff --git a/Android/local_store/src/org/onepf/oms/data/Application.java b/Android/local_store/src/org/onepf/oms/data/Application.java
index e695966..d865bdc 100644
--- a/Android/local_store/src/org/onepf/oms/data/Application.java
+++ b/Android/local_store/src/org/onepf/oms/data/Application.java
@@ -1,72 +1,76 @@
pack... | false | true | public Application(String json) throws JSONException {
JSONObject o = new JSONObject(json);
_packageName = o.getString("packageName");
_version = o.optInt("version", 0);
_billingActive = o.optBoolean("installed", true);
_billingActive = o.optBoolean("billingActive", true);
... | public Application(String json) throws JSONException {
JSONObject o = new JSONObject(json);
_packageName = o.getString("packageName");
_version = o.optInt("version", 0);
_installed = o.optBoolean("installed", true);
_billingActive = o.optBoolean("billingActive", true);
... |
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/LocalizationSetterImplTest.java b/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/LocalizationSetterImplTest.java
index 45468bdf2..b8d1e8c6e 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/... | true | true | public void get_locale_model()
{
LocalizationSetter setter = new LocalizationSetterImpl(null, null, null, "en,fr");
SelectModel model = setter.getSupportedLocalesModel();
assertNull(model.getOptionGroups());
List<OptionModel> options = model.getOptions();
assertEquals... | public void get_locale_model()
{
LocalizationSetter setter = new LocalizationSetterImpl(null, null, null, "en,fr");
SelectModel model = setter.getSupportedLocalesModel();
assertNull(model.getOptionGroups());
List<OptionModel> options = model.getOptions();
assertEquals... |
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java
index e663cb03..917ad531 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/JschConfigSessionFactory.java
+++ b/org.eclipse.jgit/src/org/ec... | true | true | public synchronized RemoteSession getSession(URIish uri,
CredentialsProvider credentialsProvider, FS fs, int tms)
throws TransportException {
String user = uri.getUser();
final String pass = uri.getPass();
String host = uri.getHost();
int port = uri.getPort();
try {
if (config == null)
config ... | public synchronized RemoteSession getSession(URIish uri,
CredentialsProvider credentialsProvider, FS fs, int tms)
throws TransportException {
String user = uri.getUser();
final String pass = uri.getPass();
String host = uri.getHost();
int port = uri.getPort();
try {
if (config == null)
config ... |
diff --git a/src/de/unihalle/sim/main/BeeSimulation.java b/src/de/unihalle/sim/main/BeeSimulation.java
index 44ec8a9..6367a5f 100644
--- a/src/de/unihalle/sim/main/BeeSimulation.java
+++ b/src/de/unihalle/sim/main/BeeSimulation.java
@@ -1,137 +1,137 @@
package de.unihalle.sim.main;
import java.util.List;
import ... | true | true | public static void main(String[] args) throws Exception {
BeeSimulation.addEventListener(new ReportEventListener("report.csv"));
BeeSimulation.addEventListener(new VisualisationEventListener());
Options options = new Options();
options.addOption("h", "help", false, "prints information about passing argument... | public static void main(String[] args) throws Exception {
BeeSimulation.addEventListener(new ReportEventListener("report.csv"));
BeeSimulation.addEventListener(new VisualisationEventListener());
Options options = new Options();
options.addOption("h", "help", false, "prints information about passing argument... |
diff --git a/ui/fcp/FCPInterface.java b/ui/fcp/FCPInterface.java
index 5d771f91..c844c043 100644
--- a/ui/fcp/FCPInterface.java
+++ b/ui/fcp/FCPInterface.java
@@ -1,380 +1,380 @@
/* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your option any later version)... | true | true | public void handle(PluginReplySender replysender, SimpleFieldSet params, Bucket data, int accesstype) throws PluginNotFoundException {
try {
String message = params.get("Message");
if(message.equals("CreateIdentity")) {
replysender.send(handleCreateIdentity(params), data);
}
else if(message.equals... | public void handle(PluginReplySender replysender, SimpleFieldSet params, Bucket data, int accesstype) {
try {
String message = params.get("Message");
if(message.equals("CreateIdentity")) {
replysender.send(handleCreateIdentity(params), data);
}
else if(message.equals("SetTrust")) {
replysender... |
diff --git a/src/main/java/com/cloudera/crunch/tool/CrunchTool.java b/src/main/java/com/cloudera/crunch/tool/CrunchTool.java
index 9226788d..738ccfa0 100644
--- a/src/main/java/com/cloudera/crunch/tool/CrunchTool.java
+++ b/src/main/java/com/cloudera/crunch/tool/CrunchTool.java
@@ -1,99 +1,101 @@
/**
* Copyright (c)... | true | true | public void setConf(Configuration conf) {
super.setConf(conf);
pipeline.setConfiguration(conf);
}
| public void setConf(Configuration conf) {
super.setConf(conf);
if (conf != null && pipeline != null) {
pipeline.setConfiguration(conf);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.