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/qa/tasklist-gui-tests/src/test/java/com/camunda/fox/tasklist/TestTasklistGui.java b/qa/tasklist-gui-tests/src/test/java/com/camunda/fox/tasklist/TestTasklistGui.java
index 85c62d902..4600d6a8a 100644
--- a/qa/tasklist-gui-tests/src/test/java/com/camunda/fox/tasklist/TestTasklistGui.java
+++ b/qa/tasklist-g... | true | true | public void testApplication(@Drone WebDriver driver, @ArquillianResource URL contextPath) {
driver.get(contextPath + "../tasklist");
Assert.assertTrue(driver.getCurrentUrl().endsWith("tasklist/signin.jsf"));
// sign in
driver.findElement(By.id("signin:username")).sendKeys("kermit");
driv... | public void testApplication(@Drone WebDriver driver, @ArquillianResource URL contextPath) {
driver.get(contextPath + "../tasklist");
Assert.assertTrue(driver.getCurrentUrl().contains("tasklist/signin.jsf"));
// sign in
driver.findElement(By.id("signin:username")).sendKeys("kermit");
driv... |
diff --git a/src/com/dmdirc/config/prefs/PreferencesManager.java b/src/com/dmdirc/config/prefs/PreferencesManager.java
index 91464d19b..2cc13b437 100644
--- a/src/com/dmdirc/config/prefs/PreferencesManager.java
+++ b/src/com/dmdirc/config/prefs/PreferencesManager.java
@@ -1,501 +1,501 @@
/*
* Copyright (c) 2006-2010... | false | true | private void addNotificationsCategory(final PreferencesCategory parent) {
final PreferencesCategory category = new PreferencesCategory("Notifications",
"", "input-error");
final Map<String, String> options = new HashMap<String, String>();
final Map<String, String> commonOpti... | private void addNotificationsCategory(final PreferencesCategory parent) {
final PreferencesCategory category = new PreferencesCategory("Notifications",
"", "input-error");
final Map<String, String> options = new HashMap<String, String>();
final Map<String, String> commonOpti... |
diff --git a/src/com/cdm/view/LevelDisplays.java b/src/com/cdm/view/LevelDisplays.java
index ee74216..0ee2007 100644
--- a/src/com/cdm/view/LevelDisplays.java
+++ b/src/com/cdm/view/LevelDisplays.java
@@ -1,59 +1,59 @@
package com.cdm.view;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
impo... | true | true | void draw(IRenderer renderer) {
Gdx.graphics.setIcon(null);
renderer.drawText(0, Gdx.graphics.getHeight(),
"$" + Integer.toString(level.getMoney()), moneyColor);
renderer.drawText(Gdx.graphics.getWidth() - 120,
Gdx.graphics.getHeight(),
"Level " + Integer.toString(level.getPlayer().getLevelNo()),
... | void draw(IRenderer renderer) {
Gdx.graphics.setIcon(null);
renderer.drawText(0, Gdx.graphics.getHeight(),
"$" + Integer.toString(level.getMoney()), moneyColor);
renderer.drawText(Gdx.graphics.getWidth() - 120,
Gdx.graphics.getHeight(),
"Level " + Integer.toString(level.getPlayer().getLevelNo()),
... |
diff --git a/src/MyBot.java b/src/MyBot.java
index 1c2d0d9..1009397 100644
--- a/src/MyBot.java
+++ b/src/MyBot.java
@@ -1,57 +1,60 @@
import org.jibble.pircbot.*;
import org.jsoup.*;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.IOException;
... | false | true | public void onMessage(String channel, String sender,
String login, String hostname, String message) {
if (message.matches("^Java_Bot\\sdate")){
String time = new java.util.Date().toString();
sendMessage(channel, sender + ": The date and time is: " + time);
}
else if (message.match... | public void onMessage(String channel, String sender,
String login, String hostname, String message) {
if (message.matches("^Java_Bot\\sdate")){
String time = new java.util.Date().toString();
sendMessage(channel, sender + ": The date and time is: " + time);
}
else if (message.match... |
diff --git a/drools-core/src/main/java/org/drools/reteoo/Rete.java b/drools-core/src/main/java/org/drools/reteoo/Rete.java
index ec76a6200..c081f33ad 100644
--- a/drools-core/src/main/java/org/drools/reteoo/Rete.java
+++ b/drools-core/src/main/java/org/drools/reteoo/Rete.java
@@ -1,508 +1,510 @@
package org.drools.ret... | false | true | public void assertObject(final InternalFactHandle handle,
final PropagationContext context,
final InternalWorkingMemory workingMemory) {
final ObjectHashMap memory = (ObjectHashMap) workingMemory.getNodeMemory( this );
final Object object = ... | public void assertObject(final InternalFactHandle handle,
final PropagationContext context,
final InternalWorkingMemory workingMemory) {
final ObjectHashMap memory = (ObjectHashMap) workingMemory.getNodeMemory( this );
final Object object = ... |
diff --git a/tools/sos-boot/src/main/java/sorcer/boot/util/JarClassPathHelper.java b/tools/sos-boot/src/main/java/sorcer/boot/util/JarClassPathHelper.java
index fceeb7ab..a88d4ec2 100644
--- a/tools/sos-boot/src/main/java/sorcer/boot/util/JarClassPathHelper.java
+++ b/tools/sos-boot/src/main/java/sorcer/boot/util/JarCl... | true | true | public void getClassPathFromJar(List<String> buff, File f) {
try {
log.debug("Creating jar file path from [{}]", f.getCanonicalPath());
JarFile jar = new JarFile(f);
Manifest man = jar.getManifest();
if (man == null) {
return;
}
Attributes attributes = man.getMainAttributes();
if (... | public void getClassPathFromJar(List<String> buff, File f) {
try {
log.debug("Creating jar file path from [{}]", f.getCanonicalPath());
if (f.getAbsolutePath().contains(" "))
f = new File(f.getCanonicalPath());
log.info("File to read manifest: " + f.toString());
... |
diff --git a/owb-osgi-impl/src/main/java/org/apache/openwebbeans/environment/osgi/integration/OWB.java b/owb-osgi-impl/src/main/java/org/apache/openwebbeans/environment/osgi/integration/OWB.java
index b069818..6264c09 100644
--- a/owb-osgi-impl/src/main/java/org/apache/openwebbeans/environment/osgi/integration/OWB.java... | true | true | public boolean initialize(CDIContainer container, CDIContainers containers) {
started = false;
// ugly hack to make jboss interceptors works.
// thank you Thread.currentThread().getContextClassLoader().loadClass()
ClassLoader old = Thread.currentThread().getContextClassLoader();
... | public boolean initialize(CDIContainer container, CDIContainers containers) {
started = false;
// ugly hack to make jboss interceptors works.
// thank you Thread.currentThread().getContextClassLoader().loadClass()
ClassLoader old = Thread.currentThread().getContextClassLoader();
... |
diff --git a/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/RoutingTable.java b/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/RoutingTable.java
index 9aaed2d2..596b7264 100644
--- a/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/RoutingTable.java
+++ b/fog.routing.hrm/src/d... | false | true | public synchronized RoutingEntry getBestEntry(HRMID pDestination, int pDesiredMaxDelay, int pDesiredMinDataRate)
{
RoutingEntry tResult = null;
RoutingEntry tBestResultHopCount = null;
RoutingEntry tBestResultQoS = null;
boolean DEBUG = HRMConfig.DebugOutput.GUI_SHOW_ROUTING;
Logging.log(this, "### Searc... | public synchronized RoutingEntry getBestEntry(HRMID pDestination, int pDesiredMaxDelay, int pDesiredMinDataRate)
{
RoutingEntry tResult = null;
RoutingEntry tBestResultHopCount = null;
RoutingEntry tBestResultQoS = null;
boolean DEBUG = HRMConfig.DebugOutput.GUI_SHOW_ROUTING;
if (DEBUG){
Logging.log(t... |
diff --git a/tests/org.eclipse.wst.xml.validation.tests/src/org/eclipse/wst/xml/validation/tests/internal/BaseTestCase.java b/tests/org.eclipse.wst.xml.validation.tests/src/org/eclipse/wst/xml/validation/tests/internal/BaseTestCase.java
index a8a149683..ed7f2a682 100644
--- a/tests/org.eclipse.wst.xml.validation.tests/... | false | true | private String createLog(String filename, ValidationReport valreport)
{
ValidationMessage[] valmessages = valreport.getValidationMessages();
int nummessages = valmessages.length;//validator.getErrors().size() + validator.getWarnings().size();
StringBuffer errorsString = new StringBuffer();
Strin... | private String createLog(String filename, ValidationReport valreport)
{
ValidationMessage[] valmessages = valreport.getValidationMessages();
int nummessages = valmessages.length;//validator.getErrors().size() + validator.getWarnings().size();
StringBuffer errorsString = new StringBuffer();
Strin... |
diff --git a/SWADroid/src/es/ugr/swad/swadroid/SWADMain.java b/SWADroid/src/es/ugr/swad/swadroid/SWADMain.java
index 0fbeed2e..a38ef08f 100644
--- a/SWADroid/src/es/ugr/swad/swadroid/SWADMain.java
+++ b/SWADroid/src/es/ugr/swad/swadroid/SWADMain.java
@@ -1,824 +1,825 @@
/*
* This file is part of SWADroid.
*
* ... | true | true | private void createBaseMenu() {
mExpandableListview.setVisibility(View.VISIBLE);
if (mExpandableListview.getAdapter() == null || currentRole == -1) {
//the menu base is equal to students menu.
currentRole = Constants.STUDENT_TYPE_CODE;
//Construct Expandable List
... | private void createBaseMenu() {
mExpandableListview.setVisibility(View.VISIBLE);
if (mExpandableListview.getAdapter() == null || currentRole == -1) {
//the menu base is equal to students menu.
currentRole = Constants.STUDENT_TYPE_CODE;
//Construct Expandable List
... |
diff --git a/src/main/java/fr/xebia/management/statistics/ProfileAspect.java b/src/main/java/fr/xebia/management/statistics/ProfileAspect.java
index 7eedf75..13d1faa 100644
--- a/src/main/java/fr/xebia/management/statistics/ProfileAspect.java
+++ b/src/main/java/fr/xebia/management/statistics/ProfileAspect.java
@@ -1,3... | true | true | public Object profileInvocation(ProceedingJoinPoint pjp, Profiled profiled) throws Throwable {
logger.trace("> profileInvocation({},{}", pjp, profiled);
MethodSignature jointPointSignature = (MethodSignature) pjp.getStaticPart().getSignature();
// COMPUTE SERVICE STATISTICS NAME
E... | public Object profileInvocation(ProceedingJoinPoint pjp, Profiled profiled) throws Throwable {
logger.trace("> profileInvocation({},{}", pjp, profiled);
MethodSignature jointPointSignature = (MethodSignature) pjp.getStaticPart().getSignature();
// COMPUTE SERVICE STATISTICS NAME
E... |
diff --git a/wagon-providers/wagon-ftp/src/main/java/org/apache/maven/wagon/providers/ftp/FtpWagon.java b/wagon-providers/wagon-ftp/src/main/java/org/apache/maven/wagon/providers/ftp/FtpWagon.java
index 607c4575..0de2b7bd 100644
--- a/wagon-providers/wagon-ftp/src/main/java/org/apache/maven/wagon/providers/ftp/FtpWagon... | true | true | private void ftpRecursivePut( File sourceFile, String fileName )
throws TransferFailedException
{
final RepositoryPermissions permissions = repository.getPermissions();
fireTransferDebug( "processing = " + sourceFile.getAbsolutePath() + " as " + fileName );
if ( sourceFile.isDi... | private void ftpRecursivePut( File sourceFile, String fileName )
throws TransferFailedException
{
final RepositoryPermissions permissions = repository.getPermissions();
fireTransferDebug( "processing = " + sourceFile.getAbsolutePath() + " as " + fileName );
if ( sourceFile.isDi... |
diff --git a/hibernate/src/main/java/woko/facets/builtin/hibernate/HibernateValidateFacet.java b/hibernate/src/main/java/woko/facets/builtin/hibernate/HibernateValidateFacet.java
index 1cae11fb..d9903c1c 100644
--- a/hibernate/src/main/java/woko/facets/builtin/hibernate/HibernateValidateFacet.java
+++ b/hibernate/src/m... | true | true | public boolean validate(ActionBeanContext abc) {
// call hibernate validator and translate errors
boolean hasErrors = false;
ValidationErrors errs = abc.getValidationErrors();
WokoFacetContext facetContext = getFacetContext();
Object targetObject = facetContext.getTargetObjec... | public boolean validate(ActionBeanContext abc) {
// call hibernate validator and translate errors
boolean hasErrors = false;
ValidationErrors errs = abc.getValidationErrors();
WokoFacetContext facetContext = getFacetContext();
Object targetObject = facetContext.getTargetObjec... |
diff --git a/java/src/org/jruby/jubilee/impl/DefaultRackEnvironment.java b/java/src/org/jruby/jubilee/impl/DefaultRackEnvironment.java
index d8f20be..810e9ce 100644
--- a/java/src/org/jruby/jubilee/impl/DefaultRackEnvironment.java
+++ b/java/src/org/jruby/jubilee/impl/DefaultRackEnvironment.java
@@ -1,105 +1,105 @@
pa... | true | true | public DefaultRackEnvironment(final Ruby runtime, final HttpServerRequest request, RackInput input, boolean isSSL, RubyArray rackVersion) {
this.runtime = runtime;
this.env = RubyHash.newHash(runtime);
// DEFAULT
env.put(Const.RACK_VERSION, rackVersion);
env.put(Const.RACK_M... | public DefaultRackEnvironment(final Ruby runtime, final HttpServerRequest request, RackInput input, boolean isSSL, RubyArray rackVersion) {
this.runtime = runtime;
this.env = RubyHash.newHash(runtime);
// DEFAULT
env.put(Const.RACK_VERSION, rackVersion);
env.put(Const.RACK_M... |
diff --git a/src/main/java/com/drtshock/willie/Willie.java b/src/main/java/com/drtshock/willie/Willie.java
index c994967..2bbdd0d 100755
--- a/src/main/java/com/drtshock/willie/Willie.java
+++ b/src/main/java/com/drtshock/willie/Willie.java
@@ -1,310 +1,310 @@
/*
* Willie - the best bot ever.
Copyright (C) 2013 d... | true | true | private Willie(WillieConfig config) {
super();
try {
// Get Root Logger
final Logger rootLogger = Logger.getLogger("");
// File handler
final FileHandler handler1 = new FileHandler("Willie.log");
handler1.setLevel(Level.ALL);
... | private Willie(WillieConfig config) {
super();
try {
// Get Root Logger
final Logger rootLogger = Logger.getLogger("");
// File handler
final FileHandler handler1 = new FileHandler("Willie.log");
handler1.setLevel(Level.ALL);
... |
diff --git a/src/main/java/org/biojava3/structure/quaternary/jmolScript/JmolSymmetryScriptGenerator.java b/src/main/java/org/biojava3/structure/quaternary/jmolScript/JmolSymmetryScriptGenerator.java
index 1a15e039..541c7768 100644
--- a/src/main/java/org/biojava3/structure/quaternary/jmolScript/JmolSymmetryScriptGenera... | true | true | public String colorBySymmetry() {
// TODO prototype
StringBuilder s = new StringBuilder();
String pointGroup = rotationGroup.getPointGroup();
Subunits subunits = axisTransformation.getSubunits();
List<Integer> modelNumbers = subunits.getModelNumbers();
List<String> chainIds = subunits.getChainIds();
List... | public String colorBySymmetry() {
// TODO prototype
StringBuilder s = new StringBuilder();
String pointGroup = rotationGroup.getPointGroup();
Subunits subunits = axisTransformation.getSubunits();
List<Integer> modelNumbers = subunits.getModelNumbers();
List<String> chainIds = subunits.getChainIds();
List... |
diff --git a/javafx.project/src/org/netbeans/modules/javafx/project/queries/FXFileBuiltQueryImpl.java b/javafx.project/src/org/netbeans/modules/javafx/project/queries/FXFileBuiltQueryImpl.java
index 61163b86..6eccf7f3 100644
--- a/javafx.project/src/org/netbeans/modules/javafx/project/queries/FXFileBuiltQueryImpl.java
... | false | true | private FileBuiltQueryImplementation createDelegate() {
String[] srcRoots = sourceRoots.getRootProperties();
String[] tstRoots = testRoots.getRootProperties();
String[] from = new String [2*srcRoots.length + 2*tstRoots.length];
String[] to = new String [2*srcRoots.length + 2*tstRoots... | private FileBuiltQueryImplementation createDelegate() {
String[] srcRoots = sourceRoots.getRootProperties();
String[] tstRoots = testRoots.getRootProperties();
String[] from = new String [2*srcRoots.length + 2*tstRoots.length];
String[] to = new String [2*srcRoots.length + 2*tstRoots... |
diff --git a/src/processing/mode/tweak/TweakEditor.java b/src/processing/mode/tweak/TweakEditor.java
index 3e8094d..f51613f 100644
--- a/src/processing/mode/tweak/TweakEditor.java
+++ b/src/processing/mode/tweak/TweakEditor.java
@@ -1,270 +1,271 @@
/*
Part of TweakMode project (https://github.com/galsasson/TweakMod... | true | true | public void stopInteractiveMode(ArrayList<Handle> handles)
{
tweakTextArea.stopInteractiveMode();
// remove space from the code (before and after)
removeSpacesFromCode();
// check which tabs were modified
boolean modified = false;
boolean[] modifiedTabs = getModifiedTabs(handles);
for (boolean mod... | public void stopInteractiveMode(ArrayList<Handle> handles)
{
tweakTextArea.stopInteractiveMode();
// remove space from the code (before and after)
removeSpacesFromCode();
// check which tabs were modified
boolean modified = false;
boolean[] modifiedTabs = getModifiedTabs(handles);
for (boolean mod... |
diff --git a/WEB-INF/src/edu/wustl/catissuecore/applet/ui/MultipleSpecimenApplet.java b/WEB-INF/src/edu/wustl/catissuecore/applet/ui/MultipleSpecimenApplet.java
index 8ef5a6486..effd9f66f 100644
--- a/WEB-INF/src/edu/wustl/catissuecore/applet/ui/MultipleSpecimenApplet.java
+++ b/WEB-INF/src/edu/wustl/catissuecore/apple... | false | true | public void doInit()
{
int columnNumber = Integer.parseInt(this.getParameter("noOfSpecimen"));
columnNumber++;
// int columnNumber = 4;
MultipleSpecimenTableModel model = new MultipleSpecimenTableModel(columnNumber,getInitDataMap());
table = new BaseTable(model)
{
public Class getCo... | public void doInit()
{
int columnNumber = Integer.parseInt(this.getParameter("noOfSpecimen"));
// columnNumber++;
// int columnNumber = 4;
MultipleSpecimenTableModel model = new MultipleSpecimenTableModel(columnNumber,getInitDataMap());
table = new BaseTable(model)
{
public Class get... |
diff --git a/src/com/github/mailerific/client/DialogFactory.java b/src/com/github/mailerific/client/DialogFactory.java
index 16d7ac8..aa9a87b 100644
--- a/src/com/github/mailerific/client/DialogFactory.java
+++ b/src/com/github/mailerific/client/DialogFactory.java
@@ -1,222 +1,222 @@
package com.github.mailerific.clie... | true | true | private static DialogBox createSignOutDialogInternal(final Long id,
final String logoutUrl) {
final DialogBox dialogBox = new DialogBox(true);
dialogBox.setText("Signing out");
VerticalPanel dialogContents = new VerticalPanel();
dialogContents.setSpacing(10);
dial... | private static DialogBox createSignOutDialogInternal(final Long id,
final String logoutUrl) {
final DialogBox dialogBox = new DialogBox(true);
dialogBox.setText("Signing out");
VerticalPanel dialogContents = new VerticalPanel();
dialogContents.setSpacing(10);
dial... |
diff --git a/BlockGlobalFurniturePlacementHandler.java b/BlockGlobalFurniturePlacementHandler.java
index 0d1a007..4f86513 100644
--- a/BlockGlobalFurniturePlacementHandler.java
+++ b/BlockGlobalFurniturePlacementHandler.java
@@ -1,101 +1,101 @@
package modJam;
import java.util.Random;
import net.minecraft.block.... | true | true | public int getLightValue(IBlockAccess world, int x, int y, int z)
{
if(ClientProxyModJam.awesomeOreRenderStage == 0){
Block block = blocksList[world.getBlockId(x, y, z)];
if (block != null && block != this)
{
return block.getLightValue(world, x, y, z);... | public int getLightValue(IBlockAccess world, int x, int y, int z)
{
if(ClientProxyModJam.furnitureRenderStage == 0){
Block block = blocksList[world.getBlockId(x, y, z)];
if (block != null && block != this)
{
return block.getLightValue(world, x, y, z);
... |
diff --git a/src/project/rpc/server/RpcServer.java b/src/project/rpc/server/RpcServer.java
index 4fc16af..a4cd154 100644
--- a/src/project/rpc/server/RpcServer.java
+++ b/src/project/rpc/server/RpcServer.java
@@ -1,31 +1,31 @@
package rpc.server;
import org.apache.xmlrpc.server.*;
import org.apache.xmlrpc.webserve... | true | true | public static void main(String []args){
try{
// start the webserver
WebServer webServer = new WebServer(4444);
// get the xmlrpc server stream
XmlRpcServer xmlServer = webServer.getXmlRpcServer();
// define our class definitions. for us, just the one class for finding the average
PropertyHa... | public static void main(String []args){
try{
// start the webserver
WebServer webServer = new WebServer(4444);
// get the xmlrpc server stream
XmlRpcServer xmlServer = webServer.getXmlRpcServer();
// define our class definitions. for us, just the one class for finding the average
PropertyHa... |
diff --git a/src/joshua/decoder/DecoderThread.java b/src/joshua/decoder/DecoderThread.java
index b8524f43..21aac4dd 100644
--- a/src/joshua/decoder/DecoderThread.java
+++ b/src/joshua/decoder/DecoderThread.java
@@ -1,301 +1,301 @@
/*
* This file is part of the Joshua Machine Translation System.
*
* Joshua is fr... | true | true | public HyperGraph translate(Sentence sentence, String oracleSentence) throws IOException {
logger.info("Translating sentence #" + sentence.id() + " [thread " + getId() + "]\n"
+ sentence.sentence());
if (sentence.isEmpty()) return null;
long startTime = System.currentTimeMillis();
// skip ... | public HyperGraph translate(Sentence sentence, String oracleSentence) throws IOException {
logger.info("Translating sentence #" + sentence.id() + " [thread " + getId() + "]\n"
+ sentence.sentence());
if (sentence.isEmpty()) return null;
long startTime = System.currentTimeMillis();
// skip ... |
diff --git a/src/com/itmill/toolkit/ui/Button.java b/src/com/itmill/toolkit/ui/Button.java
index 538c8953d..0ece73eb7 100644
--- a/src/com/itmill/toolkit/ui/Button.java
+++ b/src/com/itmill/toolkit/ui/Button.java
@@ -1,325 +1,329 @@
/*
@ITMillApache2LicenseForJavaFiles@
*/
package com.itmill.toolkit.ui;
impo... | true | true | public void changeVariables(Object source, Map variables) {
if (variables.containsKey("state")) {
// Gets the new and old button states
final Boolean newValue = (Boolean) variables.get("state");
final Boolean oldValue = (Boolean) getValue();
if (isSwitchMode(... | public void changeVariables(Object source, Map variables) {
if (isReadOnly()) {
System.err
.println("Button: ignoring change variable for read-only component, caption="
+ getCaption());
} else if (variables.containsKey("state")) {
... |
diff --git a/howl/logger/src/java/org/objectweb/howl/log/LogBufferManager.java b/howl/logger/src/java/org/objectweb/howl/log/LogBufferManager.java
index 30ba02d..1da5750 100644
--- a/howl/logger/src/java/org/objectweb/howl/log/LogBufferManager.java
+++ b/howl/logger/src/java/org/objectweb/howl/log/LogBufferManager.java... | true | true | private void force(boolean timeout)
throws IOException, InterruptedException
{
LogBuffer logBuffer = null;
long startWait = System.currentTimeMillis();
synchronized(forceManagerLock) // write buffers in ascending BSN sequence
{
totalWaitForWriteLockTime += elapsedTime(startWait);
... | private void force(boolean timeout)
throws IOException, InterruptedException
{
LogBuffer logBuffer = null;
long startWait = System.currentTimeMillis();
synchronized(forceManagerLock) // write buffers in ascending BSN sequence
{
totalWaitForWriteLockTime += elapsedTime(startWait);
... |
diff --git a/solr/src/java/org/apache/solr/search/SolrCacheBase.java b/solr/src/java/org/apache/solr/search/SolrCacheBase.java
index 7b639b7dd..bc0c2e86c 100644
--- a/solr/src/java/org/apache/solr/search/SolrCacheBase.java
+++ b/solr/src/java/org/apache/solr/search/SolrCacheBase.java
@@ -1,72 +1,72 @@
/**
* Licensed... | true | true | public AutoWarmCountRef(final String configValue) {
try {
String input = (null == configValue) ? "0" : configValue.trim();
// odd undocumented legacy behavior, -1 ment "all" (now "100%")
strVal = ("-1".equals(input)) ? "100%" : input;
if (strVal.indexOf("%") == (strVal.length... | public AutoWarmCountRef(final String configValue) {
try {
String input = (null == configValue) ? "0" : configValue.trim();
// odd undocumented legacy behavior, -1 meant "all" (now "100%")
strVal = ("-1".equals(input)) ? "100%" : input;
if (strVal.indexOf("%") == (strVal.lengt... |
diff --git a/services/java/com/android/server/KeyInputQueue.java b/services/java/com/android/server/KeyInputQueue.java
index 77aeb00ad6..5dcded9c86 100644
--- a/services/java/com/android/server/KeyInputQueue.java
+++ b/services/java/com/android/server/KeyInputQueue.java
@@ -1,687 +1,693 @@
/*
* Copyright (C) 2007 Th... | true | true | public void run() {
android.os.Process.setThreadPriority(
android.os.Process.THREAD_PRIORITY_URGENT_DISPLAY);
try {
RawInputEvent ev = new RawInputEvent();
while (true) {
InputDevice di;
... | public void run() {
android.os.Process.setThreadPriority(
android.os.Process.THREAD_PRIORITY_URGENT_DISPLAY);
try {
RawInputEvent ev = new RawInputEvent();
while (true) {
InputDevice di;
... |
diff --git a/src/gui/panels/subcontrolpanels/TracePanel.java b/src/gui/panels/subcontrolpanels/TracePanel.java
index 520d369..e39d9e6 100755
--- a/src/gui/panels/subcontrolpanels/TracePanel.java
+++ b/src/gui/panels/subcontrolpanels/TracePanel.java
@@ -1,155 +1,155 @@
package gui.panels.subcontrolpanels;
import e... | true | true | public TracePanel(String initialText)
{
this.setBackground(Color.black);
this.setForeground(Color.black);
this.setMaximumSize(new Dimension(370, 80));
this.setMinimumSize(new Dimension(370, 80));
this.setPreferredSize(new Dimension(370, 80));
// set up message area
this.messageArea = new JTextArea("Out... | public TracePanel(String initialText)
{
this.setBackground(Color.black);
this.setForeground(Color.black);
this.setMaximumSize(new Dimension(370, 80));
this.setMinimumSize(new Dimension(370, 80));
this.setPreferredSize(new Dimension(370, 80));
// set up message area
this.messageArea = new JTextArea("Out... |
diff --git a/src/sprites/GeneralSprite.java b/src/sprites/GeneralSprite.java
index f253f7d..6e99cf8 100644
--- a/src/sprites/GeneralSprite.java
+++ b/src/sprites/GeneralSprite.java
@@ -1,54 +1,54 @@
package sprites;
import java.awt.image.BufferedImage;
import java.util.List;
import java.util.Map;
import StateM... | true | true | public GeneralSprite(BufferedImage i) {
super();
BufferedImage[] image = new BufferedImage[1];
image[0] = i;
setImage(i);
}
| public GeneralSprite(BufferedImage i) {
super();
BufferedImage[] image = new BufferedImage[1];
image[0] = i;
setImages(image);
}
|
diff --git a/plugins/org.eclipse.dltk.javascript.launching/src/org/eclipse/dltk/javascript/internal/launching/JavaLocalApplicationLaunchConfigurationDelegate.java b/plugins/org.eclipse.dltk.javascript.launching/src/org/eclipse/dltk/javascript/internal/launching/JavaLocalApplicationLaunchConfigurationDelegate.java
index... | true | true | public void launch(ILaunchConfiguration configuration, String mode,
ILaunch launch, IProgressMonitor monitor) throws CoreException {
System.out.println("launching");
IDbgpService dbgpService = null;
try {
int port = 2300;
dbgpService = DLTKDebugPlugin.getDefault().createDbgpService(port,
port + 1);... | public void launch(ILaunchConfiguration configuration, String mode,
ILaunch launch, IProgressMonitor monitor) throws CoreException {
System.out.println("launching");
IDbgpService dbgpService = null;
try {
dbgpService = DLTKDebugPlugin.getDefault().getDbgpService();
IScriptDebugTarget target = new Sc... |
diff --git a/kernel/src/main/java/com/qspin/qtaste/testsuite/TestSuite.java b/kernel/src/main/java/com/qspin/qtaste/testsuite/TestSuite.java
index 87ea534c..bc639d1e 100644
--- a/kernel/src/main/java/com/qspin/qtaste/testsuite/TestSuite.java
+++ b/kernel/src/main/java/com/qspin/qtaste/testsuite/TestSuite.java
@@ -1,242... | false | true | public boolean execute(boolean debug, boolean initializeTestEngine) {
boolean executionSuccess = true;
nbTestsToExecute = computeNumberTestsToExecute();
startExecutionDate = new Date();
reportTestSuiteStarted();
if (nbTestsToExecute != 0) {
if (!initializeTestEngi... | public boolean execute(boolean debug, boolean initializeTestEngine) {
boolean executionSuccess = true;
nbTestsToExecute = computeNumberTestsToExecute();
startExecutionDate = new Date();
reportTestSuiteStarted();
if (nbTestsToExecute != 0) {
if (!initializeTestEngi... |
diff --git a/core/plugins/org.eclipse.dltk.debug.ui/src/org/eclipse/dltk/internal/debug/ui/interpreters/AddScriptInterpreterDialog.java b/core/plugins/org.eclipse.dltk.debug.ui/src/org/eclipse/dltk/internal/debug/ui/interpreters/AddScriptInterpreterDialog.java
index 4f0f52902..23bc073a1 100644
--- a/core/plugins/org.ec... | false | true | IStatus validateInterpreterLocation() {
IEnvironment selectedEnv = getEnvironment();
String locationName = fInterpreterPath.getText();
IStatus s = null;
IFileHandle file = null;
if (locationName.length() == 0) {
s = new StatusInfo(IStatus.INFO,
InterpretersMessages.addInterpreterDialog_enterLocation)... | IStatus validateInterpreterLocation() {
IEnvironment selectedEnv = getEnvironment();
String locationName = fInterpreterPath.getText();
IStatus s = null;
IFileHandle file = null;
if (locationName.length() == 0) {
s = new StatusInfo(IStatus.INFO,
InterpretersMessages.addInterpreterDialog_enterLocation)... |
diff --git a/jsf-ri/systest/src/com/sun/faces/facelets/FaceletsTestCase.java b/jsf-ri/systest/src/com/sun/faces/facelets/FaceletsTestCase.java
index 5c6cf5ff5..8e6b65345 100644
--- a/jsf-ri/systest/src/com/sun/faces/facelets/FaceletsTestCase.java
+++ b/jsf-ri/systest/src/com/sun/faces/facelets/FaceletsTestCase.java
@@ ... | false | true | public void testValidatorWrappingNestingDisableHandling() throws Exception {
HtmlPage page = getPage("/faces/facelets/validatorDisabled.xhtml");
HtmlTextInput input = (HtmlTextInput) getInputContainingGivenId(page, "form1:input");
assertNotNull(input);
input.setValueAttribute("aaaa"... | public void testValidatorWrappingNestingDisableHandling() throws Exception {
HtmlPage page = getPage("/faces/facelets/validatorDisabled.xhtml");
HtmlTextInput input = (HtmlTextInput) getInputContainingGivenId(page, "form1:input");
assertNotNull(input);
input.setValueAttribute("aaaa"... |
diff --git a/lucene/src/java/org/apache/lucene/index/LogMergePolicy.java b/lucene/src/java/org/apache/lucene/index/LogMergePolicy.java
index 00573b305..2224369b5 100644
--- a/lucene/src/java/org/apache/lucene/index/LogMergePolicy.java
+++ b/lucene/src/java/org/apache/lucene/index/LogMergePolicy.java
@@ -1,563 +1,563 @@... | true | true | public MergeSpecification findMerges(SegmentInfos infos) throws IOException {
final int numSegments = infos.size();
if (verbose())
message("findMerges: " + numSegments + " segments");
// Compute levels, which is just log (base mergeFactor)
// of the size of each segment
float[] levels = ne... | public MergeSpecification findMerges(SegmentInfos infos) throws IOException {
final int numSegments = infos.size();
if (verbose())
message("findMerges: " + numSegments + " segments");
// Compute levels, which is just log (base mergeFactor)
// of the size of each segment
float[] levels = ne... |
diff --git a/recoverBST/Solution.java b/recoverBST/Solution.java
index d685d9f..e667a33 100644
--- a/recoverBST/Solution.java
+++ b/recoverBST/Solution.java
@@ -1,53 +1,54 @@
/**
* Definition for binary tree
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(... | true | true | public void findSwappedPair( TreeNode root, TreeNode [] prev, Pair pair ){
if(root == null)
return;
//has left, go left
if(root.left != null)
findSwappedPair(root.left, prev, pair);
//no left anymore, root is smallest
if(prev[0] != null && prev[0].val ... | public void findSwappedPair( TreeNode root, TreeNode [] prev, Pair pair ){
if(root == null)
return;
//has left, go left
if(root.left != null)
findSwappedPair(root.left, prev, pair);
//no left anymore, root is smallest
if(prev[0] != null && prev[0].val ... |
diff --git a/web/src/main/java/de/betterform/agent/web/filter/XFormsFilter.java b/web/src/main/java/de/betterform/agent/web/filter/XFormsFilter.java
index 02736135..80a63112 100644
--- a/web/src/main/java/de/betterform/agent/web/filter/XFormsFilter.java
+++ b/web/src/main/java/de/betterform/agent/web/filter/XFormsFilte... | true | true | public void doFilter(ServletRequest srvRequest, ServletResponse srvResponse, FilterChain filterChain) throws IOException, ServletException {
//ensure correct Request encoding
if (srvRequest.getCharacterEncoding() == null) {
srvRequest.setCharacterEncoding(defaultRequestEncoding);
... | public void doFilter(ServletRequest srvRequest, ServletResponse srvResponse, FilterChain filterChain) throws IOException, ServletException {
//ensure correct Request encoding
if (srvRequest.getCharacterEncoding() == null) {
srvRequest.setCharacterEncoding(defaultRequestEncoding);
... |
diff --git a/src/main/java/jewas/util/file/Files.java b/src/main/java/jewas/util/file/Files.java
index 58e6f28..46d1b1b 100644
--- a/src/main/java/jewas/util/file/Files.java
+++ b/src/main/java/jewas/util/file/Files.java
@@ -1,131 +1,135 @@
package jewas.util.file;
import java.io.ByteArrayOutputStream;
import java... | false | true | public static InputStream getInputStreamFromPath(Class clazz, String path) throws IOException {
if (path == null) {
throw new FileNotFoundException("The given path is null.");
}
Enumeration<URL> resources = clazz.getClassLoader().getResources(path);
if(!resources.hasMore... | public static InputStream getInputStreamFromPath(Class clazz, String path) throws IOException {
if (path == null) {
throw new FileNotFoundException("The given path is null.");
}
Enumeration<URL> resources = clazz.getClassLoader().getResources(path);
if(!resources.hasMore... |
diff --git a/org.eclipse.b3.aggregator.engine/src/org/eclipse/b3/aggregator/engine/RepositoryVerifier.java b/org.eclipse.b3.aggregator.engine/src/org/eclipse/b3/aggregator/engine/RepositoryVerifier.java
index 9cc22bb9..982ffa13 100644
--- a/org.eclipse.b3.aggregator.engine/src/org/eclipse/b3/aggregator/engine/Repositor... | true | true | public void run(IProgressMonitor monitor) throws CoreException {
Builder builder = getBuilder();
Aggregator aggregator = builder.getAggregator();
List<Configuration> configs = aggregator.getConfigurations();
int configCount = configs.size();
SubMonitor subMon = SubMonitor.convert(monitor, configCount * 100);... | public void run(IProgressMonitor monitor) throws CoreException {
Builder builder = getBuilder();
Aggregator aggregator = builder.getAggregator();
List<Configuration> configs = aggregator.getConfigurations();
int configCount = configs.size();
SubMonitor subMon = SubMonitor.convert(monitor, configCount * 100);... |
diff --git a/drools-ide/src/main/java/org/drools/ide/editors/completion/RuleCompletionProcessor.java b/drools-ide/src/main/java/org/drools/ide/editors/completion/RuleCompletionProcessor.java
index b3302b37..3dcb77d7 100644
--- a/drools-ide/src/main/java/org/drools/ide/editors/completion/RuleCompletionProcessor.java
+++... | false | true | protected List getCompletionProposals(ITextViewer viewer, final int documentOffset) {
try {
final List list = new ArrayList();
DSLAdapter adapter = getDSLAdapter(viewer);
IDocument doc = viewer.getDocument();
String backText = readBackwards(documentOffset, doc); ... | protected List getCompletionProposals(ITextViewer viewer, final int documentOffset) {
try {
final List list = new ArrayList();
DSLAdapter adapter = getDSLAdapter(viewer);
IDocument doc = viewer.getDocument();
String backText = readBackwards(documentOffset, doc); ... |
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java
index 92ed7e5d..9f7d1cdb 100644
--- a/editor/tools/plugins/com.google.dart.engi... | true | true | private boolean performSingleAnalysisTask() {
//
// Look for a source that needs to be parsed.
//
for (Map.Entry<Source, SourceEntry> entry : sourceMap.entrySet()) {
SourceEntry sourceEntry = entry.getValue();
if (sourceEntry instanceof DartEntry) {
DartEntry dartEntry = (DartEntry... | private boolean performSingleAnalysisTask() {
//
// Look for a source that needs to be parsed.
//
for (Map.Entry<Source, SourceEntry> entry : sourceMap.entrySet()) {
SourceEntry sourceEntry = entry.getValue();
if (sourceEntry instanceof DartEntry) {
DartEntry dartEntry = (DartEntry... |
diff --git a/nio-impl/src/main/java/org/xnio/nio/NioXnio.java b/nio-impl/src/main/java/org/xnio/nio/NioXnio.java
index 2608e682..8990fd5a 100644
--- a/nio-impl/src/main/java/org/xnio/nio/NioXnio.java
+++ b/nio-impl/src/main/java/org/xnio/nio/NioXnio.java
@@ -1,229 +1,245 @@
/*
* JBoss, Home of Professional Open Sour... | false | true | NioXnio() {
super("nio");
final Object[] objects = AccessController.doPrivileged(
new PrivilegedAction<Object[]>() {
public Object[] run() {
final SelectorProvider defaultProvider = SelectorProvider.provider();
final String chosenPr... | NioXnio() {
super("nio");
final Object[] objects = AccessController.doPrivileged(
new PrivilegedAction<Object[]>() {
public Object[] run() {
final SelectorProvider defaultProvider = SelectorProvider.provider();
final String chosenPr... |
diff --git a/bpm/bonita-core/bonita-process-document/bonita-process-document-impl/src/test/java/org/bonitasoft/engine/core/process/document/api/impl/ProcessDocumentServiceImplTest.java b/bpm/bonita-core/bonita-process-document/bonita-process-document-impl/src/test/java/org/bonitasoft/engine/core/process/document/api/im... | false | true | public void setUp() throws Exception {
processDocumentService = new ProcessDocumentServiceImpl(documentService, documentServiceMapping, urlProvider);
doReturn(documentMapping).when(documentServiceMapping).get(1L);
doReturn(documentMapping).when(documentServiceMapping).get(1L, "document");
... | public void setUp() throws Exception {
processDocumentService = new ProcessDocumentServiceImpl(documentService, documentServiceMapping, urlProvider);
doReturn(documentMapping).when(documentServiceMapping).get(1L);
doReturn(documentMapping).when(documentServiceMapping).get(1L, "document");
... |
diff --git a/src/com/edinarobotics/utils/gamepad/ToggleHelper.java b/src/com/edinarobotics/utils/gamepad/ToggleHelper.java
index bd8e17c..0cd8c38 100644
--- a/src/com/edinarobotics/utils/gamepad/ToggleHelper.java
+++ b/src/com/edinarobotics/utils/gamepad/ToggleHelper.java
@@ -1,35 +1,35 @@
package com.edinarobotics.ut... | false | true | public boolean isToggled(boolean latestState){
if(latestState == false){
toggleReady = true;
}
else if(latestState == true && toggleReady){
toggleReady = false;
return true;
}
else{
toggleReady = false;
}
return ... | public boolean isToggled(boolean latestState){
if(!latestState){
toggleReady = true;
}
else if(latestState && toggleReady){
toggleReady = false;
return true;
}
else{
toggleReady = false;
}
return false;
}
|
diff --git a/ui-fw/src/main/java/org/intalio/tempo/uiframework/service/JsonUpdate.java b/ui-fw/src/main/java/org/intalio/tempo/uiframework/service/JsonUpdate.java
index f4d8ca34..a92ebc8c 100644
--- a/ui-fw/src/main/java/org/intalio/tempo/uiframework/service/JsonUpdate.java
+++ b/ui-fw/src/main/java/org/intalio/tempo/u... | true | true | public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
response.setContentType("application/x-json");
String token = request.getParameter("token");
String userName = request.getParameter("user");
String taskType = request.ge... | public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
response.setContentType("application/x-json");
response.setCharacterEncoding("UTF-8");
String token = request.getParameter("token");
String userName = request.getParameter("us... |
diff --git a/src/main/java/com/github/rnewson/couchdb/lucene/util/ServletUtils.java b/src/main/java/com/github/rnewson/couchdb/lucene/util/ServletUtils.java
index 422119c..b7ec315 100644
--- a/src/main/java/com/github/rnewson/couchdb/lucene/util/ServletUtils.java
+++ b/src/main/java/com/github/rnewson/couchdb/lucene/ut... | true | true | public static void sendJSONError(final HttpServletRequest request, final HttpServletResponse response, final int code,
final String reason) throws IOException {
final JSONObject obj = new JSONObject();
obj.put("code", code);
obj.put("reason", reason);
setResponseContentT... | public static void sendJSONError(final HttpServletRequest request, final HttpServletResponse response, final int code,
final String reason) throws IOException {
final JSONObject obj = new JSONObject();
obj.put("code", code);
obj.put("reason", reason);
setResponseContentT... |
diff --git a/entitlement/src/main/java/com/ning/billing/entitlement/api/user/DefaultEntitlementUserApi.java b/entitlement/src/main/java/com/ning/billing/entitlement/api/user/DefaultEntitlementUserApi.java
index b8aba53bf..f63cf6e68 100644
--- a/entitlement/src/main/java/com/ning/billing/entitlement/api/user/DefaultEnti... | false | true | public Subscription createSubscription(final UUID bundleId, final PlanPhaseSpecifier spec, final DateTime requestedDateWithMs,
final CallContext context) throws EntitlementUserApiException {
try {
final String realPriceList = (spec.getPriceListName() ==... | public Subscription createSubscription(final UUID bundleId, final PlanPhaseSpecifier spec, final DateTime requestedDateWithMs,
final CallContext context) throws EntitlementUserApiException {
try {
final String realPriceList = (spec.getPriceListName() ==... |
diff --git a/engine/src/main/java/org/archive/crawler/restlet/JobResource.java b/engine/src/main/java/org/archive/crawler/restlet/JobResource.java
index 6660c5a1..f8d1d209 100644
--- a/engine/src/main/java/org/archive/crawler/restlet/JobResource.java
+++ b/engine/src/main/java/org/archive/crawler/restlet/JobResource.ja... | true | true | protected void writeHtml(Writer writer) {
PrintWriter pw = new PrintWriter(writer);
String jobTitle = cj.getShortName() + " - "
+ getJobStatusDescription()
+ " - Job main page";
String baseRef = getRequest().getResourceRef().getBaseRef()... | protected void writeHtml(Writer writer) {
PrintWriter pw = new PrintWriter(writer);
String jobTitle = cj.getShortName() + " - "
+ getJobStatusDescription()
+ " - Job main page";
String baseRef = getRequest().getResourceRef().getBaseRef()... |
diff --git a/assets/src/org/ruboto/JRubyAdapter.java b/assets/src/org/ruboto/JRubyAdapter.java
index 25bd107..eeae18a 100644
--- a/assets/src/org/ruboto/JRubyAdapter.java
+++ b/assets/src/org/ruboto/JRubyAdapter.java
@@ -1,431 +1,432 @@
package org.ruboto;
import java.io.File;
import java.io.FilenameFilter;
impor... | true | true | public static synchronized boolean setUpJRuby(Context appContext, PrintStream out) {
if (!initialized) {
// BEGIN Ruboto HeapAlloc
// @SuppressWarnings("unused")
// byte[] arrayForHeapAllocation = new byte[13 * 1024 * 1024];
// arrayForHeapAllocation = null;
... | public static synchronized boolean setUpJRuby(Context appContext, PrintStream out) {
if (!initialized) {
// BEGIN Ruboto HeapAlloc
// @SuppressWarnings("unused")
// byte[] arrayForHeapAllocation = new byte[13 * 1024 * 1024];
// arrayForHeapAllocation = null;
... |
diff --git a/orbisgis-core/src/main/java/org/orbisgis/core/plugin/BundleTools.java b/orbisgis-core/src/main/java/org/orbisgis/core/plugin/BundleTools.java
index 33e0ce3a3..9b7e7d343 100644
--- a/orbisgis-core/src/main/java/org/orbisgis/core/plugin/BundleTools.java
+++ b/orbisgis-core/src/main/java/org/orbisgis/core/plu... | false | true | public static void installBundles(BundleContext hostBundle,BundleReference[] nonDefaultBundleDeploying) {
//Create a Map of nonDefaultBundleDeploying by their artifactId
Map<String,BundleReference> customDeployBundles = new HashMap<String, BundleReference>(nonDefaultBundleDeploying.length);
... | public static void installBundles(BundleContext hostBundle,BundleReference[] nonDefaultBundleDeploying) {
//Create a Map of nonDefaultBundleDeploying by their artifactId
Map<String,BundleReference> customDeployBundles = new HashMap<String, BundleReference>(nonDefaultBundleDeploying.length);
... |
diff --git a/src/java/perspective/org/flexdock/perspective/PerspectiveManager.java b/src/java/perspective/org/flexdock/perspective/PerspectiveManager.java
index 7bead95..e56c0b8 100644
--- a/src/java/perspective/org/flexdock/perspective/PerspectiveManager.java
+++ b/src/java/perspective/org/flexdock/perspective/Perspec... | false | true | private void loadPerspectiveImpl(String perspectiveId, final DockingPort rootPort, boolean reset) {
if(perspectiveId==null)
return;
Perspective current = getCurrentPerspective();
final Perspective perspective = getPerspective(perspectiveId);
// remember the current layout state so we'll be able to
// re... | private void loadPerspectiveImpl(String perspectiveId, final DockingPort rootPort, boolean reset) {
if(perspectiveId==null)
return;
Perspective current = getCurrentPerspective();
final Perspective perspective = getPerspective(perspectiveId);
// remember the current layout state so we'll be able to
// re... |
diff --git a/bindings/java/src/org/sleuthkit/datamodel/AbstractContent.java b/bindings/java/src/org/sleuthkit/datamodel/AbstractContent.java
index cead32fa..f1e5641d 100755
--- a/bindings/java/src/org/sleuthkit/datamodel/AbstractContent.java
+++ b/bindings/java/src/org/sleuthkit/datamodel/AbstractContent.java
@@ -1,280... | false | true | public String toString(boolean preserveState){
if (preserveState) {
return "AbstractContent [\t" + "objId " + String.format("%010d", objId) + "\t"
+ "name " + name + "\t" + "parentId " + parentId + "\t"
+ "\t" + "checkedHasChildren" + checkedHasChildren
+ "\t" + "hasChildren" + hasChildren
... | public String toString(boolean preserveState){
if (preserveState) {
return "AbstractContent [\t" + "objId " + String.format("%010d", objId) + "\t"
+ "name " + name + "\t" + "parentId " + parentId + "\t"
+ "\t" + "checkedHasChildren " + checkedHasChildren
+ "\t" + "hasChildren " + hasChildren
... |
diff --git a/src/togos/minecraft/mapgen/ui/LayerSideCanvas.java b/src/togos/minecraft/mapgen/ui/LayerSideCanvas.java
index 3a9edc2..f6e8231 100644
--- a/src/togos/minecraft/mapgen/ui/LayerSideCanvas.java
+++ b/src/togos/minecraft/mapgen/ui/LayerSideCanvas.java
@@ -1,329 +1,332 @@
package togos.minecraft.mapgen.ui;
... | true | true | public void run() {
if( width == 0 || height == 0 ) return;
buffer = createBuffer();
Graphics g = buffer.getGraphics();
int[] px = new int[width];
double[] wx = new double[width];
double[] wz = new double[width];
int[] color = new int[width];
synchronized( buffer ) {
g.setC... | public void run() {
if( width == 0 || height == 0 ) return;
buffer = createBuffer();
Graphics g = buffer.getGraphics();
int[] px = new int[width];
double[] wx = new double[width];
double[] wz = new double[width];
int[] color = new int[width];
synchronized( buffer ) {
g.setC... |
diff --git a/src/de/ueller/gps/nmea/NmeaMessage.java b/src/de/ueller/gps/nmea/NmeaMessage.java
index c6c38c1..a2e2f50 100644
--- a/src/de/ueller/gps/nmea/NmeaMessage.java
+++ b/src/de/ueller/gps/nmea/NmeaMessage.java
@@ -1,300 +1,299 @@
package de.ueller.gps.nmea;
/*
* GpsMid - Copyright (c) 2007 Harald Mueller jam... | true | true | public void decodeMessage(String nmea_sentence) {
Vector param = StringTokenizer.getVector(nmea_sentence, spChar);
String sentence=(String)param.elementAt(0);
try {
// receiver.receiveMessage("got "+buffer.toString() );
if (lastMsgGSV && ! "GSV".equals(sentence)){
receiver.receiveState... | public void decodeMessage(String nmea_sentence) {
Vector param = StringTokenizer.getVector(nmea_sentence, spChar);
String sentence=(String)param.elementAt(0);
try {
// receiver.receiveMessage("got "+buffer.toString() );
if (lastMsgGSV && ! "GSV".equals(sentence)){
receiver.receiveState... |
diff --git a/src/com/itmill/toolkit/demo/features/FeatureWindow.java b/src/com/itmill/toolkit/demo/features/FeatureWindow.java
index be9283316..1e185300e 100644
--- a/src/com/itmill/toolkit/demo/features/FeatureWindow.java
+++ b/src/com/itmill/toolkit/demo/features/FeatureWindow.java
@@ -1,158 +1,159 @@
/* ***********... | true | true | protected Component getDemoComponent() {
OrderedLayout layoutRoot = new OrderedLayout();
OrderedLayout layoutUpper = new OrderedLayout();
OrderedLayout layoutLower = new OrderedLayout();
demoWindow = new Window("Feature Test Window");
demoWindow.addListener(this);
demoWindow.setWidth(400);
demoWindow.s... | protected Component getDemoComponent() {
OrderedLayout layoutRoot = new OrderedLayout();
OrderedLayout layoutUpper = new OrderedLayout();
OrderedLayout layoutLower = new OrderedLayout();
demoWindow = new Window("Feature Test Window");
demoWindow.addListener(this);
demoWindow.setWidth(400);
demoWindow.s... |
diff --git a/grails/src/java/org/codehaus/groovy/grails/support/MockFileResource.java b/grails/src/java/org/codehaus/groovy/grails/support/MockFileResource.java
index 8da64151f..ad4ea8408 100644
--- a/grails/src/java/org/codehaus/groovy/grails/support/MockFileResource.java
+++ b/grails/src/java/org/codehaus/groovy/grai... | true | true | public MockFileResource(String fileName, String contents) {
super(contents.getBytes("UTF-8"));
this.fileName = fileName;
}
| public MockFileResource(String fileName, String contents) throws UnsupportedEncodingException {
super(contents.getBytes("UTF-8"));
this.fileName = fileName;
}
|
diff --git a/aQute.libg/src/aQute/lib/io/IO.java b/aQute.libg/src/aQute/lib/io/IO.java
index cfe950abe..0cb7e1bef 100644
--- a/aQute.libg/src/aQute/lib/io/IO.java
+++ b/aQute.libg/src/aQute/lib/io/IO.java
@@ -1,513 +1,512 @@
package aQute.lib.io;
import java.io.*;
import java.net.*;
import java.nio.*;
import jav... | true | true | public static File getFile(File base, String file) {
if (file.startsWith("~/")) {
file = file.substring(2);
if (!file.startsWith("~/")) {
System.out.println("home " + file + " " + home);
return getFile(home, file);
}
}
if (file.startsWith("~")) {
file = file.substring(1);
return getFile(h... | public static File getFile(File base, String file) {
if (file.startsWith("~/")) {
file = file.substring(2);
if (!file.startsWith("~/")) {
return getFile(home, file);
}
}
if (file.startsWith("~")) {
file = file.substring(1);
return getFile(home.getParentFile(), file);
}
File f = new File(... |
diff --git a/src/main/java/archimulator/service/ExperimentService.java b/src/main/java/archimulator/service/ExperimentService.java
index 1762dadc..d2f43af2 100644
--- a/src/main/java/archimulator/service/ExperimentService.java
+++ b/src/main/java/archimulator/service/ExperimentService.java
@@ -1,401 +1,400 @@
/*******... | true | true | static Experiment getSpeedupBaselineExperiment(ExperimentPack experimentPack, Experiment experiment) {
if(experimentPack == null) {
return null;
}
String experimentPackTitle = experimentPack.getTitle();
List<ExperimentPack> baselineExperimentPacks = new ArrayList<>();
... | static Experiment getSpeedupBaselineExperiment(ExperimentPack experimentPack, Experiment experiment) {
if(experimentPack == null) {
return null;
}
String experimentPackTitle = experimentPack.getTitle();
List<ExperimentPack> baselineExperimentPacks = new ArrayList<>();
... |
diff --git a/se/sics/mspsim/core/IOPort.java b/se/sics/mspsim/core/IOPort.java
index 0bcbb8f..cf7c23c 100644
--- a/se/sics/mspsim/core/IOPort.java
+++ b/se/sics/mspsim/core/IOPort.java
@@ -1,448 +1,448 @@
/**
* Copyright (c) 2007-2012, Swedish Institute of Computer Science.
* All rights reserved.
*
* Redistrib... | false | true | private void writePort(PortReg function, int data, long cycles) {
switch(function) {
case OUT: {
out = data;
PortListener listener = portListener;
if (listener != null) {
listener.portWrite(this, out | (~dir) & 0xff);
}
break;
... | private void writePort(PortReg function, int data, long cycles) {
switch(function) {
case OUT: {
out = data;
PortListener listener = portListener;
if (listener != null) {
listener.portWrite(this, out | (~dir) & 0xff);
}
break;
... |
diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ManagedClassSubclasser.java b/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ManagedClassSubclasser.java
index e9aebb1be..53cc3c137 100644
--- a/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ManagedClassSubclasser.java
+++ b/openjpa... | true | true | public static List<Class> prepareUnenhancedClasses(
final OpenJPAConfiguration conf,
final Collection<? extends Class> classes,
final ClassLoader envLoader) {
if (classes == null)
return null;
if (classes.size() == 0)
return Collections.EMPTY_LIST;
... | public static List<Class> prepareUnenhancedClasses(
final OpenJPAConfiguration conf,
final Collection<? extends Class> classes,
final ClassLoader envLoader) {
if (classes == null)
return null;
if (classes.size() == 0)
return Collections.EMPTY_LIST;
... |
diff --git a/Grapevine/src/com/alphadog/grapevine/services/TweetWithImageUpload.java b/Grapevine/src/com/alphadog/grapevine/services/TweetWithImageUpload.java
index 1b0a899..04cb908 100644
--- a/Grapevine/src/com/alphadog/grapevine/services/TweetWithImageUpload.java
+++ b/Grapevine/src/com/alphadog/grapevine/services/T... | true | true | public String uploadImageFor(String filePath, String tweetMessage)
throws TwitterCredentialsBlankException {
if(filePath != null && filePath.length() > 0) {
File image = new File(filePath);
if(username == null || username.length() < 1 || password == null || password.length() < 1) {
throw new Twi... | public String uploadImageFor(String filePath, String tweetMessage)
throws TwitterCredentialsBlankException {
if(filePath != null && filePath.length() > 0) {
File image = new File(filePath);
if(username == null || username.length() < 1 || password == null || password.length() < 1) {
throw new Twi... |
diff --git a/src/main/java/dk/nsi/sdm4/core/parser/ParserExecutor.java b/src/main/java/dk/nsi/sdm4/core/parser/ParserExecutor.java
index 3aff07c..7b2be74 100644
--- a/src/main/java/dk/nsi/sdm4/core/parser/ParserExecutor.java
+++ b/src/main/java/dk/nsi/sdm4/core/parser/ParserExecutor.java
@@ -1,91 +1,91 @@
package dk.n... | true | true | public void run() {
String parserIdentifier = parser.getHome();
SLALogItem slaLogItem = slaLogger.createLogItem("ParserExecutor", "Executing parser " + parserIdentifier);
try {
if (!inbox.isLocked()) {
if (logger.isDebugEnabled()) {
logger.debug("Running parser " + parser.getHome());
}
inbo... | public void run() {
String parserIdentifier = parser.getHome();
SLALogItem slaLogItem = slaLogger.createLogItem("ParserExecutor", "Executing parser " + parserIdentifier);
try {
if (!inbox.isLocked()) {
if (logger.isDebugEnabled()) {
logger.debug("Running parser " + parser.getHome());
}
inbo... |
diff --git a/grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/query/Query.java b/grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/query/Query.java
index 2ffb7274..0bf445fa 100644
--- a/grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/query/Query.java
+++ b/grails-da... | true | true | private void addToJunction(Junction currentJunction, Criterion criterion) {
if (criterion instanceof Equals) {
final Equals eq = (Equals) criterion;
Object value = resolveIdIfEntity(eq.getValue());
}
if(criterion instanceof AssociationCriteria) {
Associati... | private void addToJunction(Junction currentJunction, Criterion criterion) {
if (criterion instanceof PropertyCriterion) {
final PropertyCriterion pc = (PropertyCriterion) criterion;
Object value = resolveIdIfEntity(pc.getValue());
pc.setValue(value);
}
if(... |
diff --git a/src/test/java/tddfinance/contract/CashflowSetTest.java b/src/test/java/tddfinance/contract/CashflowSetTest.java
index 9387474..b25e6a7 100644
--- a/src/test/java/tddfinance/contract/CashflowSetTest.java
+++ b/src/test/java/tddfinance/contract/CashflowSetTest.java
@@ -1,114 +1,114 @@
package tddfinance.con... | true | true | public void CashFlowListTest() throws Exception {
double quantity = 1000000;
Months couponPeriod = Months.months(6);//semi-annualy
double couponRate = 0.08;
double couponAmount = quantity * couponRate / 2; //semi-annualy: devided by 2
CashflowSet cashflowSet = new CashflowSet( Currency.USD, quantity,... | public void CashFlowListTest() throws Exception {
double quantity = 1000000;
Months couponPeriod = Months.months(6);//semi-annualy
double couponRate = 0.08;
double couponAmount = quantity * couponRate / 2; //semi-annualy: devided by 2
CashflowSet cashflowSet = new CashflowSet( Currency.USD, quantity,... |
diff --git a/src/main/java/com/twitter/finagle/javaapi/InterfaceTest.java b/src/main/java/com/twitter/finagle/javaapi/InterfaceTest.java
index aa609273..070617c1 100644
--- a/src/main/java/com/twitter/finagle/javaapi/InterfaceTest.java
+++ b/src/main/java/com/twitter/finagle/javaapi/InterfaceTest.java
@@ -1,34 +1,34 @@... | true | true | public static void main(String args[]) {
Client<HttpRequest, HttpResponse> client =
Builder.get()
.hosts("localhost:10000,localhost:10001")
.codec(Codec.http())
.build();
Future<HttpResponse> response =
client.call(new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GE... | public static void main(String args[]) {
Client<HttpRequest, HttpResponse> client =
Builder.get()
.hosts("localhost:10000,localhost:10001")
.codec(Codec.http())
.buildClient();
Future<HttpResponse> response =
client.call(new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMet... |
diff --git a/src/org/adaptlab/chpir/android/survey/SurveyFragment.java b/src/org/adaptlab/chpir/android/survey/SurveyFragment.java
index 4b75bff..370922c 100644
--- a/src/org/adaptlab/chpir/android/survey/SurveyFragment.java
+++ b/src/org/adaptlab/chpir/android/survey/SurveyFragment.java
@@ -1,294 +1,294 @@
package or... | true | true | private Question getNextQuestion(int questionIndex) {
Question nextQuestion = null;
if (mQuestion.hasSkipPattern()) {
try {
int responseIndex = Integer.parseInt(mSurvey.
getResponseByQuestion(mQuestion).getText());
... | private Question getNextQuestion(int questionIndex) {
Question nextQuestion = null;
if (mQuestion.hasSkipPattern() && mSurvey.getResponseByQuestion(mQuestion) != null) {
try {
int responseIndex = Integer.parseInt(mSurvey.
getResponseByQues... |
diff --git a/5_1/PigLatin.java b/5_1/PigLatin.java
index 13fea98..b6510e2 100644
--- a/5_1/PigLatin.java
+++ b/5_1/PigLatin.java
@@ -1,32 +1,31 @@
//********************************************************************
// PigLatin.java Author: Lewis/Loftus/Cocking
//
// Driver to exercise the PigLatinTransla... | false | true | public static void main (String[] args)
{
String sentence, result, another = "y";
Scanner scan = new Scanner (System.in);
PigLatinTranslator translator = new PigLatinTranslator();
while (another.equalsIgnoreCase("y"))
{
System.out.println ();
System.out.println ("En... | public static void main (String[] args)
{
String sentence, result, another = "y";
Scanner scan = new Scanner (System.in);
while (another.equalsIgnoreCase("y"))
{
System.out.println ();
System.out.println ("Enter a sentence (no punctuation):");
sentence = scan.nex... |
diff --git a/src/com/redhat/ceylon/compiler/codegen/ExpressionTransformer.java b/src/com/redhat/ceylon/compiler/codegen/ExpressionTransformer.java
index 2da7f7f13..3feb288b0 100755
--- a/src/com/redhat/ceylon/compiler/codegen/ExpressionTransformer.java
+++ b/src/com/redhat/ceylon/compiler/codegen/ExpressionTransformer.... | false | true | JCExpression transform(Tree.InvocationExpression ce) {
final ListBuffer<JCExpression> args = new ListBuffer<JCExpression>();
boolean isVarargs = false;
Declaration primaryDecl = ce.getPrimary().getDeclaration();
PositionalArgumentList positional = ce.getPositionalArgumentList();
... | JCExpression transform(Tree.InvocationExpression ce) {
final ListBuffer<JCExpression> args = new ListBuffer<JCExpression>();
boolean isVarargs = false;
Declaration primaryDecl = ce.getPrimary().getDeclaration();
PositionalArgumentList positional = ce.getPositionalArgumentList();
... |
diff --git a/util/src/main/java/com/psddev/dari/util/DimsImageEditor.java b/util/src/main/java/com/psddev/dari/util/DimsImageEditor.java
index 2a568b10..d021ef77 100644
--- a/util/src/main/java/com/psddev/dari/util/DimsImageEditor.java
+++ b/util/src/main/java/com/psddev/dari/util/DimsImageEditor.java
@@ -1,1250 +1,125... | false | true | public StorageItem edit(
StorageItem image,
String command,
Map<String, Object> options,
Object... arguments) {
StorageItem newImage = null;
DimsUrl dimsUrl = null;
try {
dimsUrl = this.new DimsUrl(image);
} catch (Excepti... | public StorageItem edit(
StorageItem image,
String command,
Map<String, Object> options,
Object... arguments) {
StorageItem newImage = null;
DimsUrl dimsUrl = null;
try {
dimsUrl = this.new DimsUrl(image);
} catch (Excepti... |
diff --git a/4dnest/src/org/fourdnest/androidclient/ui/ReadFragment.java b/4dnest/src/org/fourdnest/androidclient/ui/ReadFragment.java
index 5f322bd..748929c 100644
--- a/4dnest/src/org/fourdnest/androidclient/ui/ReadFragment.java
+++ b/4dnest/src/org/fourdnest/androidclient/ui/ReadFragment.java
@@ -1,39 +1,39 @@
pack... | false | true | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
if (container == null) {
// We have different layouts, and in one of them this
// fragment's containing frame doesn't exist. The fragment
// may still be created from its saved sta... | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
if (container == null) {
// We have different layouts, and in one of them this
// fragment's containing frame doesn't exist. The fragment
// may still be created from its saved sta... |
diff --git a/src/main/java/com/ruyicai/actioncenter/service/TactionService.java b/src/main/java/com/ruyicai/actioncenter/service/TactionService.java
index cc81eb7..7dd280e 100644
--- a/src/main/java/com/ruyicai/actioncenter/service/TactionService.java
+++ b/src/main/java/com/ruyicai/actioncenter/service/TactionService.... | true | true | public Boolean firshChongzhiZengSong(String ttransactionid, Tuserinfo tuserinfo, BigDecimal amt) {
logger.info("第一次充值开始");
Boolean flag = false;
if (tuserinfo.getSubChannel().equals("984") || tuserinfo.getSubChannel().equals("985")) {
logger.info("U付如意彩用户不参与活动,user:" + tuserinfo.getUserno());
return flag;
... | public Boolean firshChongzhiZengSong(String ttransactionid, Tuserinfo tuserinfo, BigDecimal amt) {
logger.info("第一次充值开始");
Boolean flag = false;
if (tuserinfo.getSubChannel().equals("984") || tuserinfo.getSubChannel().equals("985")) {
logger.info("U付如意彩用户不参与活动,user:" + tuserinfo.getUserno());
return flag;
... |
diff --git a/src/com/redhat/qe/sm/cli/tests/ListTests.java b/src/com/redhat/qe/sm/cli/tests/ListTests.java
index 48fba287..ca860aed 100644
--- a/src/com/redhat/qe/sm/cli/tests/ListTests.java
+++ b/src/com/redhat/qe/sm/cli/tests/ListTests.java
@@ -1,757 +1,756 @@
package com.redhat.qe.sm.cli.tests;
import java.text.... | true | true | public void createSubscriptionsWithVariationsOnProductAttributeSockets() throws JSONException, Exception {
String name,productId;
List<String> providedProductIds = new ArrayList<String>();
Map<String,String> attributes = new HashMap<String,String>();
JSONObject jsonEngProduct, jsonMktProduct, jsonSubscription;... | public void createSubscriptionsWithVariationsOnProductAttributeSockets() throws JSONException, Exception {
String name,productId;
List<String> providedProductIds = new ArrayList<String>();
Map<String,String> attributes = new HashMap<String,String>();
JSONObject jsonEngProduct, jsonMktProduct, jsonSubscription;... |
diff --git a/src/biz/bokhorst/xprivacy/ActivityShare.java b/src/biz/bokhorst/xprivacy/ActivityShare.java
index 2abb3213..5dc8a84a 100644
--- a/src/biz/bokhorst/xprivacy/ActivityShare.java
+++ b/src/biz/bokhorst/xprivacy/ActivityShare.java
@@ -1,660 +1,660 @@
package biz.bokhorst.xprivacy;
import java.io.ByteArrayOu... | true | true | protected String doInBackground(Integer... params) {
try {
// Get data
List<ApplicationInfoEx> lstApp;
if (params[0] == 0)
lstApp = ApplicationInfoEx.getXApplicationList(ActivityShare.this, null);
else {
lstApp = new ArrayList<ApplicationInfoEx>();
lstApp.add(new ApplicationInfoEx(Ac... | protected String doInBackground(Integer... params) {
try {
// Get data
List<ApplicationInfoEx> lstApp;
if (params[0] == 0)
lstApp = ApplicationInfoEx.getXApplicationList(ActivityShare.this, null);
else {
lstApp = new ArrayList<ApplicationInfoEx>();
lstApp.add(new ApplicationInfoEx(Ac... |
diff --git a/src/share/classes/com/sun/tools/javafx/comp/JavafxAttr.java b/src/share/classes/com/sun/tools/javafx/comp/JavafxAttr.java
index 702036b7f..680dd06ae 100644
--- a/src/share/classes/com/sun/tools/javafx/comp/JavafxAttr.java
+++ b/src/share/classes/com/sun/tools/javafx/comp/JavafxAttr.java
@@ -1,3129 +1,3129 ... | false | true | public void visitInstanciate(JFXInstanciate tree) {
Type owntype = syms.errType;
// The local environment of a class creation is
// a new environment nested in the current one.
JavafxEnv<JavafxAttrContext> localEnv = env.dup(tree, env.info.dup());
// The anonymous inner cla... | public void visitInstanciate(JFXInstanciate tree) {
Type owntype = syms.errType;
// The local environment of a class creation is
// a new environment nested in the current one.
JavafxEnv<JavafxAttrContext> localEnv = env.dup(tree, env.info.dup());
// The anonymous inner cla... |
diff --git a/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/tools/classifier/smt/SmtSolver.java b/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/tools/classifier/smt/SmtSolver.java
index 7eded80a5..7dd7a522c 100644
--- a/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/tools/classifier/smt/SmtSolver.java
+++ b/ecli... | false | true | public void run() {
StringBuilder builder = new StringBuilder();
try {
char[] cbuf = new char[8192];
int n = reader.read(cbuf);
while (n > 0) {
builder.append(cbuf, 0, n);
n = reader.read(cbuf);
}
} catch (IOException ioe) {
ioe.printStackTrace();
} finally {
try {
r... | public void run() {
StringBuilder builder = new StringBuilder();
try {
char[] cbuf = new char[8192];
int n = reader.read(cbuf);
while (n > 0) {
builder.append(cbuf, 0, n);
n = reader.read(cbuf);
}
} catch (IOException ioe) {
ioe.printStackTrace();
} finally {
try {
r... |
diff --git a/converter/src/de/uni_leipzig/informatik/swp13_sc/converter/PGNToRDFConverterAllAtOnce.java b/converter/src/de/uni_leipzig/informatik/swp13_sc/converter/PGNToRDFConverterAllAtOnce.java
index b23f1b1..3a1fb8e 100644
--- a/converter/src/de/uni_leipzig/informatik/swp13_sc/converter/PGNToRDFConverterAllAtOnce.j... | true | true | public static void main(String[] args)
{
if (args.length < 1)
{
System.out.println("Usage:");
System.out.println("\tprogram <pgnfile>");
return;
}
for (int i = 0; i < args.length; i ++)
{
long startTime = System.currentTimeM... | public static void main(String[] args)
{
if (args.length < 1)
{
System.out.println("Usage:");
System.out.println("\tjava -jar PGNConverter.jar <pgnfile> [<pgnfile> ...]");
return;
}
for (int i = 0; i < args.length; i ++)
{
l... |
diff --git a/src/org/rascalmpl/library/experiments/m3/internal/JavaToRascalConverter.java b/src/org/rascalmpl/library/experiments/m3/internal/JavaToRascalConverter.java
index 1e4e7292e7..6560bc0ca4 100644
--- a/src/org/rascalmpl/library/experiments/m3/internal/JavaToRascalConverter.java
+++ b/src/org/rascalmpl/library/... | true | true | protected ISourceLocation getSourceLocation(ASTNode node) {
int nodeLength = compilUnit.getExtendedLength(node);
if (nodeLength == 0) {
int start = compilUnit.getExtendedStartPosition(node);
int end = start + nodeLength -1;
return values.sourceLocation(loc.getURI(),
start, nodeLength,
comp... | protected ISourceLocation getSourceLocation(ASTNode node) {
int nodeLength = compilUnit.getExtendedLength(node);
if (nodeLength > 0) {
int start = compilUnit.getExtendedStartPosition(node);
int end = start + nodeLength -1;
return values.sourceLocation(loc.getURI(),
start, nodeLength,
compi... |
diff --git a/src/main/java/uk/frequency/glance/server/data_access/UserDAL.java b/src/main/java/uk/frequency/glance/server/data_access/UserDAL.java
index 573ce79..adaff57 100644
--- a/src/main/java/uk/frequency/glance/server/data_access/UserDAL.java
+++ b/src/main/java/uk/frequency/glance/server/data_access/UserDAL.java... | true | true | public Friendship makePersistent(Friendship entity) {
{//TODO use @PrePersist in the GenericEntity instead
if(entity.getCreationTime() == null){
entity.setCreationTime(new Date());
}
entity.setUpdateTime(new Date());
}
getSession().saveOrUpdate(entity);
return entity;... | public Friendship makePersistent(Friendship entity) {
{//TODO use @PrePersist in the GenericEntity instead
if(entity.getCreationTime() == null){
entity.setCreationTime(new Date());
}
entity.setUpdateTime(new Date());
entity.setDeleted(false);
}
getSession().saveOrUpdate... |
diff --git a/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTProblem.java b/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTProblem.java
index 4d9e0adac..edfd9e7d5 100644
--- a/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTProblem.java
+++ b/parser/org/eclipse/cdt/internal/core/dom/parse... | false | true | public String getMessage() {
if (message != null)
return message;
String msg = (String) errorMessages.get(new Integer(id));
if (msg == null)
msg = ""; //$NON-NLS-1$
if (arg != null) {
msg = MessageFormat.format(msg, new Object[] { new String(arg)... | public String getMessage() {
if (message != null)
return message;
String msg = (String) errorMessages.get(new Integer(id));
if (msg == null)
msg = ""; //$NON-NLS-1$
if (arg != null) {
msg = MessageFormat.format(msg, new Object[] { new String(arg)... |
diff --git a/de.gebit.integrity.dsl/src/de/gebit/integrity/parameter/conversion/conversions/java/other/MapToString.java b/de.gebit.integrity.dsl/src/de/gebit/integrity/parameter/conversion/conversions/java/other/MapToString.java
index e84a4747..64a33448 100644
--- a/de.gebit.integrity.dsl/src/de/gebit/integrity/paramet... | true | true | public FormattedString convert(Map aSource, Class<? extends FormattedString> aTargetType,
UnresolvableVariableHandling anUnresolvableVariableHandlingPolicy) throws ConversionFailedException {
FormattedString tempBuffer = new FormattedString("{");
tempBuffer.add(new FormatTokenElement(FormatTokenType.NEWLINE));
... | public FormattedString convert(Map aSource, Class<? extends FormattedString> aTargetType,
UnresolvableVariableHandling anUnresolvableVariableHandlingPolicy) throws ConversionFailedException {
FormattedString tempBuffer = new FormattedString("{");
tempBuffer.add(new FormatTokenElement(FormatTokenType.NEWLINE));
... |
diff --git a/src/me/heldplayer/util/HeldCore/Updater.java b/src/me/heldplayer/util/HeldCore/Updater.java
index 681092a..50effd1 100644
--- a/src/me/heldplayer/util/HeldCore/Updater.java
+++ b/src/me/heldplayer/util/HeldCore/Updater.java
@@ -1,104 +1,104 @@
package me.heldplayer.util.HeldCore;
import java.io.Input... | true | true | public void run() {
HttpURLConnection request = null;
InputStream stream = null;
try {
request = (HttpURLConnection) new URL("http://dsiwars.x10.mx/files/version.php?mod=" + this.modId).openConnection();
request.setRequestMethod("GET");
request.connect();... | public void run() {
HttpURLConnection request = null;
InputStream stream = null;
try {
request = (HttpURLConnection) new URL("http://dsiwars.x10.mx/files/version.php?mod=" + this.modId).openConnection();
request.setRequestMethod("GET");
request.connect();... |
diff --git a/chrome/src/java/org/openqa/selenium/chrome/ChromeCommandExecutor.java b/chrome/src/java/org/openqa/selenium/chrome/ChromeCommandExecutor.java
index d705d92f6..36ec870ac 100644
--- a/chrome/src/java/org/openqa/selenium/chrome/ChromeCommandExecutor.java
+++ b/chrome/src/java/org/openqa/selenium/chrome/Chrome... | true | true | public void stopListening() {
listen = false;
listeningThread.stopListening();
while (!serverSocket.isClosed()) {// || serverSocket.isBound()) {
Thread.yield();
}
}
/**
* Thread which, when spawned, accepts all sockets on its ServerSocket and
* queues them up
*/
private class Lis... | public void stopListening() {
listen = false;
listeningThread.stopListening();
while (!serverSocket.isClosed()) {// || serverSocket.isBound()) {
Thread.yield();
}
}
/**
* Thread which, when spawned, accepts all sockets on its ServerSocket and
* queues them up
*/
private class Lis... |
diff --git a/recs/src/edu/ntnu/ttk4145/recs/driver/RecsDriver.java b/recs/src/edu/ntnu/ttk4145/recs/driver/RecsDriver.java
index cca8f05..ad4f8e7 100644
--- a/recs/src/edu/ntnu/ttk4145/recs/driver/RecsDriver.java
+++ b/recs/src/edu/ntnu/ttk4145/recs/driver/RecsDriver.java
@@ -1,46 +1,47 @@
package edu.ntnu.ttk4145.rec... | true | true | protected void buttonPressed(Call call, int floor) {
System.out.printf("RecsDriver.buttonPressed(%s,%d)%n",call,floor);
Manager manager = Manager.getInstance();
switch(call){
case UP:
manager.registerCall(call,floor);
case DOWN:
manager.registerCall(call,floor);
break;
case COMMAND:
Elevator el... | protected void buttonPressed(Call call, int floor) {
System.out.printf("RecsDriver.buttonPressed(%s,%d)%n",call,floor);
Manager manager = Manager.getInstance();
switch(call){
case UP:
manager.registerCall(call,floor);
break;
case DOWN:
manager.registerCall(call,floor);
break;
case COMMAND:
E... |
diff --git a/src/com/rj/processing/mt/MTManager.java b/src/com/rj/processing/mt/MTManager.java
index 35b784f..2f5a59e 100644
--- a/src/com/rj/processing/mt/MTManager.java
+++ b/src/com/rj/processing/mt/MTManager.java
@@ -1,81 +1,81 @@
package com.rj.processing.mt;
import java.util.ArrayList;
import android.vie... | true | true | public void touchEvent(MotionEvent me, int i) {
int pointerId = me.getPointerId(i);
float x = me.getX(i);
float y = me.getY(i);
float vx = 0;
float vy = 0;
int index = me.findPointerIndex(pointerId);
if (points.size() < index+1) {
//points.ensureCapacity(index+4);
points.add(null);
... | public void touchEvent(MotionEvent me, int i) {
int pointerId = me.getPointerId(i);
float x = me.getX(i);
float y = me.getY(i);
float vx = 0;
float vy = 0;
int index = me.findPointerIndex(pointerId);
if (points.size() < index+1) {
//points.ensureCapacity(index+4);
points.add(null);
... |
diff --git a/UserPage.java b/UserPage.java
index 896d540..fad50e3 100644
--- a/UserPage.java
+++ b/UserPage.java
@@ -1,44 +1,46 @@
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
public class UserPage {
/**
* @param args
*/
static String user;
static Stri... | true | true | public UserPage(String email){
createString = "select name from users where email = '"+createString+"';";
try
{
Main.m_con = DriverManager.getConnection(Main.m_url, Main.m_userName, Main.m_password);
Main.stmt = Main.m_con.createStatement();
ResultSet rs = Main.stmt.executeQuery(createString);
use... | public UserPage(String email){
// TODO:
// createString shoudl probably be email.
createString = "select name from users where email = '"+createString+"';";
try
{
Main.m_con = DriverManager.getConnection(Main.m_url, Main.m_userName, Main.m_password);
Main.stmt = Main.m_con.createStatement();
ResultSe... |
diff --git a/src/main/java/cyberwaste/kuzoff/driver/SimpleClient.java b/src/main/java/cyberwaste/kuzoff/driver/SimpleClient.java
index de68bd4..9e256f9 100644
--- a/src/main/java/cyberwaste/kuzoff/driver/SimpleClient.java
+++ b/src/main/java/cyberwaste/kuzoff/driver/SimpleClient.java
@@ -1,71 +1,71 @@
package cyberwas... | true | true | public static void main(String[] args) {
try {
JSAP jsap = new SimpleJSAP(
"kuzoff",
"",
new Parameter[] {
new FlaggedOption(DATABASE_FOLDER_OPTION)
.setShortFlag('d').setLongFlag("database").setUsageName("d... | public static void main(String[] args) {
try {
JSAP jsap = new SimpleJSAP(
"kuzoff",
"",
new Parameter[] {
new FlaggedOption(DATABASE_FOLDER_OPTION)
.setShortFlag('d').setLongFlag("database").setUsageName("d... |
diff --git a/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java b/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java
index 1514f668..add8f1d2 100644
--- a/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java
+++ b/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommand... | true | true | public void createCluster(
@CliOption(key = { "name" }, mandatory = true, help = "The cluster name") final String name,
@CliOption(key = { "type" }, mandatory = false, help = "The cluster type is Hadoop or HBase") final String type,
@CliOption(key = { "distro" }, mandatory = false, help = ... | public void createCluster(
@CliOption(key = { "name" }, mandatory = true, help = "The cluster name") final String name,
@CliOption(key = { "type" }, mandatory = false, help = "The cluster type is Hadoop or HBase") final String type,
@CliOption(key = { "distro" }, mandatory = false, help = ... |
diff --git a/Request.java b/Request.java
index d355184..eb20b4a 100644
--- a/Request.java
+++ b/Request.java
@@ -1,180 +1,180 @@
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.concurrent.TimeUnit;
/**
* @author Alexandru G... | true | true | public Request(Date startDate, Date endDate, Driver driver) throws Exception
{
if(startDate.after(endDate))
throw new Exception("End date is before start date");
this.startDate = startDate;
this.endDate = endDate;
this.driver = driver;
if(driver.getHolidaysLeft() < getLength())
throw new Exception("Ho... | public Request(Date startDate, Date endDate, Driver driver) throws Exception
{
if(startDate.after(endDate))
throw new Exception("End date is before start date");
this.startDate = startDate;
this.endDate = endDate;
this.driver = driver;
if(driver.getHolidaysLeft() < getLength())
throw new Exception("Ho... |
diff --git a/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java b/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java
index 0cb7d2a5..baeff692 100644
--- a/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java
+++ b/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java
@... | true | true | public Collection<Command> execute(Way way) throws UserCancelException {
Map<OsmPrimitive, List<TagCorrection>> tagCorrectionsMap =
new HashMap<OsmPrimitive, List<TagCorrection>>();
ArrayList<OsmPrimitive> primitives = new ArrayList<OsmPrimitive>();
primitives.add(way);
primitives.addAll(way.nodes)... | public Collection<Command> execute(Way way) throws UserCancelException {
Map<OsmPrimitive, List<TagCorrection>> tagCorrectionsMap =
new HashMap<OsmPrimitive, List<TagCorrection>>();
ArrayList<OsmPrimitive> primitives = new ArrayList<OsmPrimitive>();
primitives.add(way);
primitives.addAll(way.nodes)... |
diff --git a/src/org/apophysis/XForm.java b/src/org/apophysis/XForm.java
index 5cabc97..fe1ea06 100644
--- a/src/org/apophysis/XForm.java
+++ b/src/org/apophysis/XForm.java
@@ -1,1030 +1,1030 @@
/*
Apophysis-j Copyright (C) 2008 Jean-Francois Bouzereau
based on Apophysis ( http://www.apophysis.org )
Apophysi... | true | true | public static void registerPluginVariations(Main main) {
if (Global.apopath == null) {
return;
}
final File dplugin = new File(Global.apopath, PLUGNAME);
if (!dplugin.exists()) {
return;
}
String pname = (new SPoint()).getClass().getPackage().getName();
File dapo = new File(dplugin, pname);
if ... | public static void registerPluginVariations(Main main) {
if (Global.apopath == null) {
return;
}
final File dplugin = new File(Global.apopath, PLUGNAME);
if (!dplugin.exists()) {
return;
}
String pname = (new SPoint()).getClass().getPackage().getName().replace('.', '/');
File dapo = new File(dplu... |
diff --git a/atlassian-jira-rest-java-client/src/test/java/it/JerseySearchRestClientTest.java b/atlassian-jira-rest-java-client/src/test/java/it/JerseySearchRestClientTest.java
index 790a245..aba3b34 100644
--- a/atlassian-jira-rest-java-client/src/test/java/it/JerseySearchRestClientTest.java
+++ b/atlassian-jira-rest-... | true | true | public void testJqlSearchWithPaging() {
if (!isJqlSupportedByRest()) {
return;
}
final SearchResult searchResultForNull = client.getSearchClient().searchJql(null, 3, 3, pm);
assertEquals(9, searchResultForNull.getTotal());
assertEquals(3, Iterables.size(searchResultForNull.getIssues()));
assertEquals(3,... | public void testJqlSearchWithPaging() {
if (!isJqlSupportedByRest()) {
return;
}
final SearchResult searchResultForNull = client.getSearchClient().searchJql(null, 3, 3, pm);
assertEquals(9, searchResultForNull.getTotal());
assertEquals(3, Iterables.size(searchResultForNull.getIssues()));
assertEquals(3,... |
diff --git a/src/main/java/es/ficonlan/web/backend/model/activity/ActivityDaoHibernate.java b/src/main/java/es/ficonlan/web/backend/model/activity/ActivityDaoHibernate.java
index 8e2fb54..06b420a 100644
--- a/src/main/java/es/ficonlan/web/backend/model/activity/ActivityDaoHibernate.java
+++ b/src/main/java/es/ficonlan/... | true | true | public List<Activity> findActivitiesByEventByType(long eventId, int type) {
// TODO Not Tested
String hql = "SELECT u FROM Activity u";
if ((eventId != 0) || (type != 0)) hql = hql + " WHERE ";
String aux = "";
if (eventId != 0) { hql = hql + aux + "(u.category.eventId = :eventId)"; }
if (type != 0) ... | public List<Activity> findActivitiesByEventByType(long eventId, int type) {
// TODO Not Tested
String hql = "SELECT u FROM Activity u";
if ((eventId != 0) || (type != 0)) hql = hql + " WHERE ";
String aux = "";
if (eventId != 0) { hql = hql + aux + "(u.category.eventId = :eventId)"; }
if ((eventId != 0)... |
diff --git a/tests/src/com/vaadin/tests/TestForUpload.java b/tests/src/com/vaadin/tests/TestForUpload.java
index 0774a1a20..b50251313 100644
--- a/tests/src/com/vaadin/tests/TestForUpload.java
+++ b/tests/src/com/vaadin/tests/TestForUpload.java
@@ -1,434 +1,434 @@
/*
@ITMillApache2LicenseForJavaFiles@
*/
packag... | false | true | public TestForUpload() {
setCompositionRoot(main);
main.addComponent(new Label(
"This is a simple test for upload application. "
+ "Upload should work with big files and concurrent "
+ "requests should not be blocked. Button 'b' reads "... | public TestForUpload() {
setCompositionRoot(main);
main.addComponent(new Label(
"This is a simple test for upload application. "
+ "Upload should work with big files and concurrent "
+ "requests should not be blocked. Button 'b' reads "... |
diff --git a/components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/TransformationOperationLoaderImpl.java b/components/ekb/transformation-wonderland/src/main/java/org/openengsb/core/ekb/transformation/wonderland/internal/TransformationOperationLoaderImpl.java
i... | true | true | public TransformationOperation loadTransformationOperationByName(String operationName)
throws TransformationOperationException {
return (TransformationOperation) service.getService(FilterUtils.makeFilter(TransformationOperation.class,
String.format("transformation.operation=%s", operatio... | public TransformationOperation loadTransformationOperationByName(String operationName)
throws TransformationOperationException {
return (TransformationOperation) service.getService(FilterUtils.makeFilter(TransformationOperation.class,
String.format("(transformation.operation=%s)", operat... |
diff --git a/GoFish/src/swing/components/settings/manual/JPanelManualSub.java b/GoFish/src/swing/components/settings/manual/JPanelManualSub.java
index c2e421c..84179e2 100644
--- a/GoFish/src/swing/components/settings/manual/JPanelManualSub.java
+++ b/GoFish/src/swing/components/settings/manual/JPanelManualSub.java
@@ ... | false | true | private void initComponents() {
jCheckBoxAllowMutipleRequests = new javax.swing.JCheckBox();
jCheckBoxForceShowOfSeries = new javax.swing.JCheckBox();
jScrollPane1 = new javax.swing.JScrollPane();
jListPlayers = new javax.swing.JList();
jButtonStart = new javax.swing.JButton... | private void initComponents() {
jCheckBoxAllowMutipleRequests = new javax.swing.JCheckBox();
jCheckBoxForceShowOfSeries = new javax.swing.JCheckBox();
jScrollPane1 = new javax.swing.JScrollPane();
jListPlayers = new javax.swing.JList();
jButtonStart = new javax.swing.JButton... |
diff --git a/RepTeam4.07/GraderTeam407/src/edu/gatech/arktos/GradesTool.java b/RepTeam4.07/GraderTeam407/src/edu/gatech/arktos/GradesTool.java
index 8726aaa..2894974 100644
--- a/RepTeam4.07/GraderTeam407/src/edu/gatech/arktos/GradesTool.java
+++ b/RepTeam4.07/GraderTeam407/src/edu/gatech/arktos/GradesTool.java
@@ -1,6... | true | true | public static void main(String [] args) throws IOException, ServiceException {
final JFrame frame = new JFrame("GradesTool");
frame.setContentPane(new Container() {
public void paint(Graphics g) {
super.paint(g);
g.setColor(Color.getHSBColor(0, 0, 0.75f));
g.drawLine(325, 25, 325, 465);
... | public static void main(String [] args) throws IOException, ServiceException {
final JFrame frame = new JFrame("GradesTool");
frame.setContentPane(new Container() {
public void paint(Graphics g) {
super.paint(g);
g.setColor(Color.getHSBColor(0, 0, 0.75f));
g.drawLine(325, 25, 325, 465);
... |
diff --git a/core-api/src/main/java/no/schibstedsok/searchportal/result/Linkpulse.java b/core-api/src/main/java/no/schibstedsok/searchportal/result/Linkpulse.java
index 57a6a493b..e3ba42522 100644
--- a/core-api/src/main/java/no/schibstedsok/searchportal/result/Linkpulse.java
+++ b/core-api/src/main/java/no/schibstedso... | false | true | public String getUrl(
final String orgUrl,
final String paramString,
final String script,
final String indexpage) {
final StringBuilder toUrl = new StringBuilder();
//linkpulse property is set to true only in the production build
if (Bool... | public String getUrl(
final String orgUrl,
final String paramString,
final String script,
final String indexpage) {
final StringBuilder toUrl = new StringBuilder();
//linkpulse property is set to true only in the production build
if (Bool... |
diff --git a/src/main/java/net/codjo/test/release/task/gui/StepPlayer.java b/src/main/java/net/codjo/test/release/task/gui/StepPlayer.java
index b441cd6..db0720e 100644
--- a/src/main/java/net/codjo/test/release/task/gui/StepPlayer.java
+++ b/src/main/java/net/codjo/test/release/task/gui/StepPlayer.java
@@ -1,120 +1,12... | false | true | public void cleanUp() {
try {
runCode(new Runnable() {
public void run() {
try {
resumeAWT();
for (Window window : WindowMonitor.getWindows()) {
window.setVisible(false);
... | public void cleanUp() {
try {
runCode(new Runnable() {
public void run() {
try {
resumeAWT();
TestHelper.cleanUp(StepPlayer.this);
for (Window window : WindowMonitor.getWindows()) {
... |
diff --git a/framework/java/src/com/thegaragelab/quickui/controls/ControlHelper.java b/framework/java/src/com/thegaragelab/quickui/controls/ControlHelper.java
index ca9829f..f3dfd17 100644
--- a/framework/java/src/com/thegaragelab/quickui/controls/ControlHelper.java
+++ b/framework/java/src/com/thegaragelab/quickui/con... | false | true | public static final Point getPosition(IRectangle container, IDimension content, Padding padding, int halign, int valign) {
Point p = new Point(0, 0);
// Calculate the horizontal position
switch(halign) {
case IControl.LEFT:
p.x = padding.getPaddingLeft();
break;
case IControl.C... | public static final Point getPosition(IRectangle container, IDimension content, Padding padding, int halign, int valign) {
Point p = new Point(0, 0);
// Calculate the horizontal position
switch(halign) {
case IControl.LEFT:
p.x = padding.getPaddingLeft();
break;
case IControl.C... |
diff --git a/org.caltoopia.frontend/src/org/caltoopia/codegen/printer/CBuildActorActionScheduler.java b/org.caltoopia.frontend/src/org/caltoopia/codegen/printer/CBuildActorActionScheduler.java
index 5310b9f..9c75da4 100644
--- a/org.caltoopia.frontend/src/org/caltoopia/codegen/printer/CBuildActorActionScheduler.java
++... | false | true | private void printFiringTests(List<Action> actions, Map<Action, String> action2TargetMap) {
for(Iterator<Action> a = actions.iterator();a.hasNext();) {
Action action = a.next();
// First check for availability of tokens
if (!action.getInputs().isEmpty()) {
... | private void printFiringTests(List<Action> actions, Map<Action, String> action2TargetMap) {
for(Iterator<Action> a = actions.iterator();a.hasNext();) {
Action action = a.next();
// First check for availability of tokens
if (!action.getInputs().isEmpty()) {
... |
diff --git a/apps/routerconsole/java/src/net/i2p/router/web/ConfigLoggingHelper.java b/apps/routerconsole/java/src/net/i2p/router/web/ConfigLoggingHelper.java
index d526f5b0d..4dcfe4908 100644
--- a/apps/routerconsole/java/src/net/i2p/router/web/ConfigLoggingHelper.java
+++ b/apps/routerconsole/java/src/net/i2p/router/... | false | true | public String getDefaultLogLevelBox() {
String cur = _context.logManager().getDefaultLimit();
StringBuffer buf = new StringBuffer(128);
buf.append("<select name=\"defaultloglevel\">\n");
buf.append("<option value=\"DEBUG\" ");
if ("DEFAULT".equals(cur)) buf.append(" ... | public String getDefaultLogLevelBox() {
String cur = _context.logManager().getDefaultLimit();
StringBuffer buf = new StringBuffer(128);
buf.append("<select name=\"defaultloglevel\">\n");
buf.append("<option value=\"DEBUG\" ");
if ("DEBUG".equals(cur)) buf.append(" se... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.