Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/com/cyanogenmod/cmparts/activities/UIActivity.java b/src/com/cyanogenmod/cmparts/activities/UIActivity.java index 5cfc6d0..1be6063 100644 --- a/src/com/cyanogenmod/cmparts/activities/UIActivity.java +++ b/src/com/cyanogenmod/cmparts/activities/UIActivity.java @@ -1,391 +1,392 @@ /* * Copyright (C) 2...
true
true
protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); Context context = getApplicationContext(); switch (requestCode) { case REQUEST_CODE_PICK_FILESHUT: if (resultCode == RESULT_OK &&...
protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); Context context = getApplicationContext(); switch (requestCode) { case REQUEST_CODE_PICK_FILESHUT: if (resultCode == RESULT_OK &&...
diff --git a/crypto/src/org/bouncycastle/cms/CMSEnvelopedDataStreamGenerator.java b/crypto/src/org/bouncycastle/cms/CMSEnvelopedDataStreamGenerator.java index 21fc5c38..4aadc7f3 100644 --- a/crypto/src/org/bouncycastle/cms/CMSEnvelopedDataStreamGenerator.java +++ b/crypto/src/org/bouncycastle/cms/CMSEnvelopedDataStream...
true
true
protected OutputStream open( OutputStream out, String encryptionOID, SecretKey encKey, AlgorithmParameters params, ASN1EncodableVector recipientInfos, String provider) throws NoSuchAlgorithmException, NoSuchProviderEx...
protected OutputStream open( OutputStream out, String encryptionOID, SecretKey encKey, AlgorithmParameters params, ASN1EncodableVector recipientInfos, String provider) throws NoSuchAlgorithmException, NoSuchProviderEx...
diff --git a/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsHibernateUtil.java b/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsHibernateUtil.java index 30997a4eb..daef30107 100644 --- a/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsHiber...
true
true
public static void populateArgumentsForCriteria(Criteria c, Map argMap) { Integer maxParam = null; Integer offsetParam = null; if(argMap.containsKey(ARGUMENT_MAX)) { maxParam = (Integer)converter.convertIfNecessary(argMap.get(ARGUMENT_MAX),Integer.class); } if(ar...
public static void populateArgumentsForCriteria(Criteria c, Map argMap) { Integer maxParam = null; Integer offsetParam = null; if(argMap.containsKey(ARGUMENT_MAX)) { maxParam = (Integer)converter.convertIfNecessary(argMap.get(ARGUMENT_MAX),Integer.class); } if(ar...
diff --git a/code/src/gui.java b/code/src/gui.java index b203020..f96f083 100644 --- a/code/src/gui.java +++ b/code/src/gui.java @@ -1,148 +1,148 @@ import java.awt.Color; import java.awt.Container; import java.awt.FlowLayout; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.util....
false
true
public void mouseClicked(MouseEvent e){ if(e.getSource()==login){ inlog.setVisible(false); login.setVisible(false); container.remove(inlog); container.remove(login); naam = getNaamInvoer(); liedjeInvoerScreen(); } if(e.getSource()==zoek){ invoer.setVisible(false); zoek.setVisi...
public void mouseClicked(MouseEvent e){ if(e.getSource()==login){ inlog.setVisible(false); login.setVisible(false); container.remove(inlog); container.remove(login); naam = getNaamInvoer(); liedjeInvoerScreen(); } if(e.getSource()==zoek){ invoer.setVisible(false); zoek.setVisi...
diff --git a/src/com/android/contacts/ImportVCardActivity.java b/src/com/android/contacts/ImportVCardActivity.java index 9b2ca2ceb..30b6cbf5a 100644 --- a/src/com/android/contacts/ImportVCardActivity.java +++ b/src/com/android/contacts/ImportVCardActivity.java @@ -1,877 +1,875 @@ /* * Copyright (C) 2009 The Android ...
false
true
public void run() { boolean shouldCallFinish = true; mWakeLock.acquire(); Uri createdUri = null; // Some malicious vCard data may make this thread broken // (e.g. OutOfMemoryError). // Even in such cases, some should be done. tr...
public void run() { boolean shouldCallFinish = true; mWakeLock.acquire(); Uri createdUri = null; // Some malicious vCard data may make this thread broken // (e.g. OutOfMemoryError). // Even in such cases, some should be done. tr...
diff --git a/source/de/anomic/server/serverSystem.java b/source/de/anomic/server/serverSystem.java index 7c70b882b..afac6c399 100644 --- a/source/de/anomic/server/serverSystem.java +++ b/source/de/anomic/server/serverSystem.java @@ -1,430 +1,431 @@ // serverSystem.java // ------------------------------------------- ...
true
true
public static void openBrowser(String url, String app) { try { String cmd; Process p; if (systemOS != systemUnknown) { if (systemOS == systemMacOSC) { if ((isMacArchitecture) && (macMRJFileUtils != null)) { macOpenURL.invoke(null, new Object[] {url}); ...
public static void openBrowser(String url, String app) { try { String cmd; Process p; if (systemOS != systemUnknown) { if (systemOS == systemMacOSC) { if ((isMacArchitecture) && (macMRJFileUtils != null)) { macOpenURL.invoke(null, new Object[] {url}); ...
diff --git a/projects/base/src/main/java/org/muis/base/style/ButtonTexture.java b/projects/base/src/main/java/org/muis/base/style/ButtonTexture.java index 962b2d17..a9a20b4b 100644 --- a/projects/base/src/main/java/org/muis/base/style/ButtonTexture.java +++ b/projects/base/src/main/java/org/muis/base/style/ButtonTextur...
false
true
public void render(java.awt.Graphics2D graphics, MuisElement element, java.awt.Rectangle area) { int w = element.getWidth(); int h = element.getHeight(); int startX = area == null ? 0 : area.x; int startY = area == null ? 0 : area.y; int endX = area == null ? w : startX + area.width; int endY = area == nu...
public void render(java.awt.Graphics2D graphics, MuisElement element, java.awt.Rectangle area) { int w = element.getWidth(); int h = element.getHeight(); int startX = area == null ? 0 : area.x; int startY = area == null ? 0 : area.y; int endX = area == null ? w : startX + area.width; int endY = area == nu...
diff --git a/src/jumpignon/Player.java b/src/jumpignon/Player.java index baa6a5e..f51f355 100644 --- a/src/jumpignon/Player.java +++ b/src/jumpignon/Player.java @@ -1,227 +1,227 @@ package jumpignon; import org.newdawn.slick.*; public class Player extends RenderItem{ private int health; private i...
false
true
public void update(GameContainer container, int delta) { if(isInAir == true) {x_velocity = 0.35f;} else {x_velocity = 0.5f;} switch(player_id) { case(1): // [<-] Links bewegung if(container.getInput()...
public void update(GameContainer container, int delta) { if(isInAir == true) {x_velocity = 0.35f;} else {x_velocity = 0.5f;} switch(player_id) { case(1): // [<-] Links bewegung if(container.getInput()...
diff --git a/commons/web/ontology/src/main/java/org/apache/stanbol/ontologymanager/store/rest/resources/Ontologies.java b/commons/web/ontology/src/main/java/org/apache/stanbol/ontologymanager/store/rest/resources/Ontologies.java index 1939984b3..64b264759 100755 --- a/commons/web/ontology/src/main/java/org/apache/stanb...
false
true
public Response saveOntology(@FormParam("ontologyURI") String ontologyURI, @FormParam("ontologyContent") String ontologyContent, @FormParam("ontologyURL") String ontologyURL) { Response response = null; LockManager lockManager = LockM...
public Response saveOntology(@FormParam("ontologyURI") String ontologyURI, @FormParam("ontologyContent") String ontologyContent, @FormParam("ontologyURL") String ontologyURL) { Response response = null; LockManager lockManager = LockM...
diff --git a/core/java/android/widget/AbsListView.java b/core/java/android/widget/AbsListView.java index b408f27a..767c7e79 100644 --- a/core/java/android/widget/AbsListView.java +++ b/core/java/android/widget/AbsListView.java @@ -1,3518 +1,3519 @@ /* * Copyright (C) 2006 The Android Open Source Project * * Lice...
true
true
public boolean onTouchEvent(MotionEvent ev) { if (mFastScroller != null) { boolean intercepted = mFastScroller.onTouchEvent(ev); if (intercepted) { return true; } } final int action = ev.getAction(); final int x...
public boolean onTouchEvent(MotionEvent ev) { if (mFastScroller != null) { boolean intercepted = mFastScroller.onTouchEvent(ev); if (intercepted) { return true; } } final int action = ev.getAction(); final int x...
diff --git a/org.orbisgis.geoview/src/main/java/org/orbisgis/geoview/MapControl.java b/org.orbisgis.geoview/src/main/java/org/orbisgis/geoview/MapControl.java index 3d916a565..818065ec4 100644 --- a/org.orbisgis.geoview/src/main/java/org/orbisgis/geoview/MapControl.java +++ b/org.orbisgis.geoview/src/main/java/org/orbi...
true
true
protected void paintComponent(Graphics g) { if (null != mapControlModel) { if (status == UPDATED) { // If not waiting for an image if ((mapTransform.getImage() == inProcessImage) || (inProcessImage == null)) { g.drawImage(mapTransform.getImage(), 0, 0, null); toolManager.paintEdition(g); ...
protected void paintComponent(Graphics g) { if (null != mapControlModel) { if (status == UPDATED) { // If not waiting for an image if ((mapTransform.getImage() == inProcessImage) || (inProcessImage == null)) { g.drawImage(mapTransform.getImage(), 0, 0, null); toolManager.paintEdition(g); ...
diff --git a/src/org/gridlab/gridsphere/portlet/PortletAdapter.java b/src/org/gridlab/gridsphere/portlet/PortletAdapter.java index 9a2beeb65..456c8fdd7 100644 --- a/src/org/gridlab/gridsphere/portlet/PortletAdapter.java +++ b/src/org/gridlab/gridsphere/portlet/PortletAdapter.java @@ -1,368 +1,368 @@ /* * @author <a ...
true
true
public void service(PortletRequest request, PortletResponse response) throws PortletException, IOException { // There must be a portlet ID to know which portlet to service String portletID = (String) request.getAttribute(SportletProperties.PORTLETID); if (portletID == null) { // ...
public void service(PortletRequest request, PortletResponse response) throws PortletException, IOException { // There must be a portlet ID to know which portlet to service String portletID = (String) request.getAttribute(SportletProperties.PORTLETID); if (portletID == null) { // ...
diff --git a/core-task-impl/src/main/java/org/cytoscape/task/internal/proxysettings/ProxySettingsTask2.java b/core-task-impl/src/main/java/org/cytoscape/task/internal/proxysettings/ProxySettingsTask2.java index 1ac4439a8..c8ed9dcea 100644 --- a/core-task-impl/src/main/java/org/cytoscape/task/internal/proxysettings/Prox...
false
true
public ValidationState getValidationState(final Appendable errMsg) { storeProxySettings(); FutureTask<Exception> executor = new FutureTask<Exception>(new TestProxySettings(streamUtil)); Exception result = null; try { result = executor.get(10, TimeUnit.SECONDS); } catch (final InterruptedException e) { ...
public ValidationState getValidationState(final Appendable errMsg) { storeProxySettings(); FutureTask<Exception> task = new FutureTask<Exception>(new TestProxySettings(streamUtil)); Exception result = null; try { new Thread(task).start(); result = task.get(10, TimeUnit.SECONDS); } catch (final Inter...
diff --git a/attributelib/src/main/java/com/github/thebiologist13/attributelib/Attribute.java b/attributelib/src/main/java/com/github/thebiologist13/attributelib/Attribute.java index 543923f..66f9215 100644 --- a/attributelib/src/main/java/com/github/thebiologist13/attributelib/Attribute.java +++ b/attributelib/src/mai...
true
true
public void setBase(double base) { double min = attribute.getMinimum(); double max = attribute.getMaximum(); if(base < min) base = min; else if(base > max) base = max; this.base = base; }
public void setBase(double base) { double min = attribute.getMinimum(); double max = attribute.getMaximum(); if(base < min) base = min; else if(base > max && max != -1) base = max; this.base = base; }
diff --git a/src/org/objectweb/proactive/core/body/BodyImpl.java b/src/org/objectweb/proactive/core/body/BodyImpl.java index 6cda3ea75..abebcb85c 100644 --- a/src/org/objectweb/proactive/core/body/BodyImpl.java +++ b/src/org/objectweb/proactive/core/body/BodyImpl.java @@ -1,363 +1,364 @@ /* * ########################...
true
true
public void serve(Request request) { if (request == null) return; try { messageEventProducer.notifyListeners(request, MessageEvent.SERVING_STARTED, bodyID, getRequestQueue().size()); Reply reply = request.serve(BodyImpl.this); if (reply == null) { messageEventProducer.n...
public void serve(Request request) { if (request == null) return; try { messageEventProducer.notifyListeners(request, MessageEvent.SERVING_STARTED, bodyID, getRequestQueue().size()); Reply reply = request.serve(BodyImpl.this); if (reply == null) { if(!isActive()) return...
diff --git a/src/net/sf/freecol/client/control/PreGameController.java b/src/net/sf/freecol/client/control/PreGameController.java index 694cf200e..db668f343 100644 --- a/src/net/sf/freecol/client/control/PreGameController.java +++ b/src/net/sf/freecol/client/control/PreGameController.java @@ -1,221 +1,223 @@ package ...
true
true
public void startGame() { Canvas canvas = freeColClient.getCanvas(); GUI gui = freeColClient.getGUI(); canvas.closeMainPanel(); canvas.closeMenus(); InGameController inGameController = freeColClient.getInGameController(); InGameInputHandler inGameInputHandler = free...
public void startGame() { Canvas canvas = freeColClient.getCanvas(); GUI gui = freeColClient.getGUI(); canvas.closeMainPanel(); canvas.closeMenus(); InGameController inGameController = freeColClient.getInGameController(); InGameInputHandler inGameInputHandler = free...
diff --git a/src/ribbonserver/AccessHandler.java b/src/ribbonserver/AccessHandler.java index 93b6d90..7357f98 100644 --- a/src/ribbonserver/AccessHandler.java +++ b/src/ribbonserver/AccessHandler.java @@ -1,285 +1,285 @@ /** * This file is part of RibbonServer application (check README). * Copyright (C) 2012-2013 ...
false
true
public static Boolean checkAccess(String givenName, String givenDir, Integer givenMode) { java.util.ListIterator<UserClasses.UserEntry> userIter = AccessHandler.userStore.listIterator(); UserClasses.UserEntry findedUser = null; while (userIter.hasNext()) { UserClasses.UserEntry c...
public static Boolean checkAccess(String givenName, String givenDir, Integer givenMode) { java.util.ListIterator<UserClasses.UserEntry> userIter = AccessHandler.userStore.listIterator(); UserClasses.UserEntry findedUser = null; while (userIter.hasNext()) { UserClasses.UserEntry c...
diff --git a/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/filter/ScopeArtifactFilter.java b/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/filter/ScopeArtifactFilter.java index eb9a7b47d..3214f0ef5 100644 --- a/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/filter/Sc...
true
true
public ScopeArtifactFilter( String scope ) { if ( DefaultArtifact.SCOPE_COMPILE.equals( scope ) ) { providedScope = true; compileScope = true; runtimeScope = false; testScope = false; } else if ( DefaultArtifact.SCOPE_RUNTIME.equals...
public ScopeArtifactFilter( String scope ) { if ( DefaultArtifact.SCOPE_COMPILE.equals( scope ) ) { providedScope = true; compileScope = true; runtimeScope = false; testScope = false; } else if ( DefaultArtifact.SCOPE_RUNTIME.equals...
diff --git a/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/ELProjectSet.java b/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/ELProjectSet.java index 2034385ad..b88689fcf 100644 --- a/seam/plugins/org.jboss.tools.seam.core/src/org/jb...
true
true
public IContainer getViewFolder(IProject project){ if(project.equals(projectsSet.getWarProject())) return projectsSet.getDefaultViewsFolder(); else if(project.equals(projectsSet.getEarProject())) return projectsSet.getDefaultEarViewsFolder(); IPath path = ProjectHome.getFirstWebContentPath(project); ...
public IContainer getViewFolder(IProject project){ if(project.equals(projectsSet.getWarProject())) return projectsSet.getDefaultViewsFolder(); else if(project.equals(projectsSet.getEarProject())) return projectsSet.getDefaultEarViewsFolder(); IPath path = ProjectHome.getFirstWebContentPath(project); ...
diff --git a/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ContentAssistHelper.java b/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ContentAssistHelper.java index 40e82e327..c7de6f9aa 100644 --- a/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/Co...
true
true
public static SWTBotEditor checkContentAssistAutoProposal(SWTBotExt bot, String editorTitle, String textToSelect, int selectionOffset, int selectionLength, int textToSelectIndex, String expectedInsertedText) { SWTJBTExt.selectTextInSourcePane(bot, editorTitle, textToSelect, selectionOffset, s...
public static SWTBotEditor checkContentAssistAutoProposal(SWTBotExt bot, String editorTitle, String textToSelect, int selectionOffset, int selectionLength, int textToSelectIndex, String expectedInsertedText) { SWTJBTExt.selectTextInSourcePane(bot, editorTitle, textToSelect, selectionOffset, s...
diff --git a/enunciate/modules/spring-app/src/java/org/codehaus/enunciate/modules/spring_app/SpringAppDeploymentModule.java b/enunciate/modules/spring-app/src/java/org/codehaus/enunciate/modules/spring_app/SpringAppDeploymentModule.java index f3a1479a..2b355c31 100644 --- a/enunciate/modules/spring-app/src/java/org/cod...
false
true
protected void doBuild() throws IOException, EnunciateException { Enunciate enunciate = getEnunciate(); File buildDir = getBuildDir(); if ((this.warConfig != null) && (this.warConfig.getPreBase() != null)) { File preBase = enunciate.resolvePath(this.warConfig.getPreBase()); if (preBase.isDirec...
protected void doBuild() throws IOException, EnunciateException { Enunciate enunciate = getEnunciate(); File buildDir = getBuildDir(); if ((this.warConfig != null) && (this.warConfig.getPreBase() != null)) { File preBase = enunciate.resolvePath(this.warConfig.getPreBase()); if (preBase.isDirec...
diff --git a/source/ch/cyberduck/core/gdocs/GDPath.java b/source/ch/cyberduck/core/gdocs/GDPath.java index 6771aee64..0bc270db0 100644 --- a/source/ch/cyberduck/core/gdocs/GDPath.java +++ b/source/ch/cyberduck/core/gdocs/GDPath.java @@ -1,969 +1,970 @@ package ch.cyberduck.core.gdocs; /* * Copyright (c) 2002-2010...
true
true
protected void upload(BandwidthThrottle throttle, StreamListener listener, boolean check) { try { if(attributes().isFile()) { if(check) { this.getSession().check(); } this.getSession().message(MessageFormat.format(Locale.localiz...
protected void upload(BandwidthThrottle throttle, StreamListener listener, boolean check) { try { if(attributes().isFile()) { if(check) { this.getSession().check(); } this.getSession().message(MessageFormat.format(Locale.localiz...
diff --git a/src/main/java/com/miraclem4n/mchat/api/Parser.java b/src/main/java/com/miraclem4n/mchat/api/Parser.java index ff868bb..4c9a482 100644 --- a/src/main/java/com/miraclem4n/mchat/api/Parser.java +++ b/src/main/java/com/miraclem4n/mchat/api/Parser.java @@ -1,522 +1,522 @@ package com.miraclem4n.mchat.api; i...
false
true
public static String parseMessage(String pName, String world, String msg, String format) { Object prefix = Reader.getRawPrefix(pName, InfoType.USER, world); Object suffix = Reader.getRawSuffix(pName, InfoType.USER, world); Object group = Reader.getRawGroup(pName, InfoType.USER, world); ...
public static String parseMessage(String pName, String world, String msg, String format) { Object prefix = Reader.getRawPrefix(pName, InfoType.USER, world); Object suffix = Reader.getRawSuffix(pName, InfoType.USER, world); Object group = Reader.getRawGroup(pName, InfoType.USER, world); ...
diff --git a/src/garin/artemiy/sqlitesimple/example/MainApplication.java b/src/garin/artemiy/sqlitesimple/example/MainApplication.java index 63d127a..2165cba 100644 --- a/src/garin/artemiy/sqlitesimple/example/MainApplication.java +++ b/src/garin/artemiy/sqlitesimple/example/MainApplication.java @@ -1,31 +1,31 @@ pack...
true
true
public void onCreate() { super.onCreate(); SQLiteSimple databaseSimple = new SQLiteSimple(this, 2); databaseSimple.create(Record.class); SQLiteSimple localSimple = new SQLiteSimple(this, "test.sqlite"); localSimple.create(Test.class); TestDAO testDAO = new TestDAO(...
public void onCreate() { super.onCreate(); SQLiteSimple databaseSimple = new SQLiteSimple(this); databaseSimple.create(Record.class); SQLiteSimple localSimple = new SQLiteSimple(this, "test.sqlite"); localSimple.create(Test.class); TestDAO testDAO = new TestDAO(thi...
diff --git a/SoarSuite/Environments/JavaTankSoar/source/tanksoar/Tank.java b/SoarSuite/Environments/JavaTankSoar/source/tanksoar/Tank.java index 4f8e7fd3b..af776b3da 100644 --- a/SoarSuite/Environments/JavaTankSoar/source/tanksoar/Tank.java +++ b/SoarSuite/Environments/JavaTankSoar/source/tanksoar/Tank.java @@ -1,622 +...
false
true
public void readOutputLink() { m_LastMove.reset(); m_RWaves = 0; assert m_Agent != null; int numberOfCommands = m_Agent.GetNumberCommands(); if (numberOfCommands == 0) { m_Logger.log(getName() + " issued no command."); return; } for (int i = 0; i < numberOfCommands; ++i) { Identifier comma...
public void readOutputLink() { m_LastMove.reset(); m_RWaves = 0; assert m_Agent != null; int numberOfCommands = m_Agent.GetNumberCommands(); if (numberOfCommands == 0) { m_Logger.log(getName() + " issued no command."); return; } Identifier moveId = null; for (int i = 0; i < numberOfCommands...
diff --git a/src/minecraft/ml/boxes/inventory/ContainerBox.java b/src/minecraft/ml/boxes/inventory/ContainerBox.java index dd43b48..7727a55 100644 --- a/src/minecraft/ml/boxes/inventory/ContainerBox.java +++ b/src/minecraft/ml/boxes/inventory/ContainerBox.java @@ -1,103 +1,103 @@ package ml.boxes.inventory; import ...
false
true
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2) { ItemStack var3 = null; Slot var4 = (Slot)this.inventorySlots.get(par2); int bxSize = box.getBox().getSizeInventory(); if (var4 != null && var4.getHasStack()) { ItemStack var5 = var4.getStack(); var3 = var5.copy(); if (...
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2) //TODO Fix so no Shift+Clicking Boxes { ItemStack var3 = null; Slot var4 = (Slot)this.inventorySlots.get(par2); int bxSize = box.getBox().getSizeInventory(); if (var4 != null && var4.getHasStack()) { ItemStack var5 = var4.getS...
diff --git a/htroot/Wiki.java b/htroot/Wiki.java index 106d3472a..4a8cacda6 100644 --- a/htroot/Wiki.java +++ b/htroot/Wiki.java @@ -1,267 +1,274 @@ // Wiki.java // ----------------------- // part of the AnomicHTTPD caching proxy // (C) by Michael Peter Christen; mc@anomic.de // first published on http://www.anom...
false
true
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) throws IOException { plasmaSwitchboard switchboard = (plasmaSwitchboard) env; serverObjects prop = new serverObjects(); if (post == null) { post = new serverObjects(); post.pu...
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) throws IOException { plasmaSwitchboard switchboard = (plasmaSwitchboard) env; serverObjects prop = new serverObjects(); if (post == null) { post = new serverObjects(); post.pu...
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSRollback.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSRollback.java index b07bad252e..282ad68a37 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSRollbac...
true
true
public void testRollback() throws Exception { File[] baseDirs; UpgradeUtilities.initialize(); StorageInfo storageInfo = null; for (int numDirs = 1; numDirs <= 2; numDirs++) { conf = new HdfsConfiguration(); conf.setInt(DFSConfigKeys.DFS_DATANODE_SCAN_PERIOD_HOURS_KEY, -1); ...
public void testRollback() throws Exception { File[] baseDirs; UpgradeUtilities.initialize(); StorageInfo storageInfo = null; for (int numDirs = 1; numDirs <= 2; numDirs++) { conf = new HdfsConfiguration(); conf.setInt(DFSConfigKeys.DFS_DATANODE_SCAN_PERIOD_HOURS_KEY, -1); ...
diff --git a/UselessUtility/src/pw/svn/util/MessageManipulator.java b/UselessUtility/src/pw/svn/util/MessageManipulator.java index 98882cd..7de7d52 100644 --- a/UselessUtility/src/pw/svn/util/MessageManipulator.java +++ b/UselessUtility/src/pw/svn/util/MessageManipulator.java @@ -1,76 +1,76 @@ package pw.svn.util; ...
true
true
public static String manipulate(String message) { boolean done = false; String tmp = message; StringBuilder sb = new StringBuilder(); int i = 0; while (!done) { tmp = tmp.replaceFirst(" ?:-?[a-zA-Z\\(\\)\\[\\]]{1,1} ", (char) 0x4 + " " + emoticons[rand.nextInt(emoticons.length)] + " " + (char)...
public static String manipulate(String message) { boolean done = false; String tmp = message; StringBuilder sb = new StringBuilder(); int i = 0; while (!done) { tmp = tmp.replaceFirst(" ?:-?[a-zA-Z\\(\\)\\[\\]]{1,1} ", (char) 0x4 + " " + emoticons[rand.nextInt(emoticons.length)] + " " + (char)...
diff --git a/public/java/src/org/broadinstitute/sting/gatk/walkers/annotator/MVLikelihoodRatio.java b/public/java/src/org/broadinstitute/sting/gatk/walkers/annotator/MVLikelihoodRatio.java index 8da64608f..bd0d4e3fb 100755 --- a/public/java/src/org/broadinstitute/sting/gatk/walkers/annotator/MVLikelihoodRatio.java +++ ...
true
true
public Map<String, Object> annotate(RefMetaDataTracker tracker, AnnotatorCompatibleWalker walker, ReferenceContext ref, Map<String, AlignmentContext> stratifiedContexts, VariantContext vc) { if ( mendelianViolation == null ) { if ( walker instanceof VariantAnnotator && ((VariantAnnotator) walker...
public Map<String, Object> annotate(RefMetaDataTracker tracker, AnnotatorCompatibleWalker walker, ReferenceContext ref, Map<String, AlignmentContext> stratifiedContexts, VariantContext vc) { if ( mendelianViolation == null ) { if ( walker instanceof VariantAnnotator && ((VariantAnnotator) walker...
diff --git a/rultor-spi/src/test/java/com/rultor/tools/ExceptionsTest.java b/rultor-spi/src/test/java/com/rultor/tools/ExceptionsTest.java index 5ed5ad265..685f009ac 100644 --- a/rultor-spi/src/test/java/com/rultor/tools/ExceptionsTest.java +++ b/rultor-spi/src/test/java/com/rultor/tools/ExceptionsTest.java @@ -1,83 +1...
false
true
public void twoExceptionMessage() { MatcherAssert.assertThat( Exceptions.message( new IllegalArgumentException( "hey", new IOException("file not found") ) ), Matchers.equalTo( "Illegal...
public void twoExceptionMessage() { MatcherAssert.assertThat( Exceptions.message( new IllegalArgumentException( "hey", new IOException("not found") ) ), Matchers.equalTo( String.format...
diff --git a/DJBDD/src/djbdd/BDDApply.java b/DJBDD/src/djbdd/BDDApply.java index 4c90747..0248ef4 100644 --- a/DJBDD/src/djbdd/BDDApply.java +++ b/DJBDD/src/djbdd/BDDApply.java @@ -1,263 +1,263 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package djbdd; ...
false
true
private Vertex app(Vertex v1, Vertex v2){ // Hash key of the computation of the subtree of these two vertices String key = "1-"+v1.index+"+2-"+v2.index; if( G.containsKey(key) ){ return G.get(key); } if(v1.isLeaf() && v2.isLeaf()) { ...
private Vertex app(Vertex v1, Vertex v2){ // Hash key of the computation of the subtree of these two vertices String key = "1-"+v1.index+"+2-"+v2.index; if( G.containsKey(key) ){ return G.get(key); } if(v1.isLeaf() && v2.isLeaf()) { ...
diff --git a/src/com/android/mms/transaction/MessagingNotification.java b/src/com/android/mms/transaction/MessagingNotification.java index 3042b7fd..64cddc29 100644 --- a/src/com/android/mms/transaction/MessagingNotification.java +++ b/src/com/android/mms/transaction/MessagingNotification.java @@ -1,1554 +1,1554 @@ /*...
true
true
private static void updateNotification( Context context, boolean isNew, int uniqueThreadCount, SortedSet<NotificationInfo> notificationSet) { // If the user has turned off notifications in settings, don't do any notifying. if (!MessagingPreferenceActiv...
private static void updateNotification( Context context, boolean isNew, int uniqueThreadCount, SortedSet<NotificationInfo> notificationSet) { // If the user has turned off notifications in settings, don't do any notifying. if (!MessagingPreferenceActiv...
diff --git a/src/Board.java b/src/Board.java index dbd4187..4348ed3 100644 --- a/src/Board.java +++ b/src/Board.java @@ -1,284 +1,282 @@ import javax.imageio.ImageIO; import javax.swing.JPanel; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt....
false
true
public void paint(Graphics g) { super.paint(g); g2d = (Graphics2D) g; g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); if (!ingame){ //paint MenuMain mainMenu.paintComponents(g2d); } if(ingame && menu){ ingameMenu.paintComponents(g2d); } ...
public void paint(Graphics g) { super.paint(g); g2d = (Graphics2D) g; g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); if (!ingame){ //paint MenuMain mainMenu.paintComponents(g2d); } if(ingame && menu){ ingameMenu.paintComponents(g2d); } ...
diff --git a/src/benchmark/BenchmarkDecisions.java b/src/benchmark/BenchmarkDecisions.java index 0dd53c4..903f2b2 100644 --- a/src/benchmark/BenchmarkDecisions.java +++ b/src/benchmark/BenchmarkDecisions.java @@ -1,169 +1,169 @@ package benchmark; import aeminium.gpu.collections.lazyness.Range; import aeminium.gpu.c...
true
true
private static void runForN(int N) { PList<Float> output; PList<Float> input = new FloatList(); for (int i = 0; i < N; i++) { input.add((float) i); } /* UNIT */ System.out.println("> GPU op: unit"); output = input.map(new LambdaMapper<Float, Float>() { @Override public Float map(Float input)...
private static void runForN(int N) { PList<Float> output; PList<Float> input = new FloatList(); for (int i = 0; i < N; i++) { input.add((float) i); } /* UNIT */ System.out.println("> GPU op: unit"); output = input.map(new LambdaMapper<Float, Float>() { @Override public Float map(Float input)...
diff --git a/patientview-parent/patientview/src/main/java/org/patientview/patientview/feedback/FeedbackInputAction.java b/patientview-parent/patientview/src/main/java/org/patientview/patientview/feedback/FeedbackInputAction.java index 39494e2f..ca354c8a 100644 --- a/patientview-parent/patientview/src/main/java/org/pati...
true
true
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { UserManager userManager = LegacySpringUtils.getUserManager(); UnitManager unitManager = LegacySpringUtils.getUnitManager(); ...
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { UserManager userManager = LegacySpringUtils.getUserManager(); UnitManager unitManager = LegacySpringUtils.getUnitManager(); ...
diff --git a/src/main/java/org/jbei/ice/client/common/EntryDataViewDataProvider.java b/src/main/java/org/jbei/ice/client/common/EntryDataViewDataProvider.java index 70699ece3..5a8a70871 100755 --- a/src/main/java/org/jbei/ice/client/common/EntryDataViewDataProvider.java +++ b/src/main/java/org/jbei/ice/client/common/En...
false
true
protected void onRangeChanged(HasData<PartData> display) { if (resultSize == 0) // display changed its range of interest but no data return; // values of range to display from view final Range range = display.getVisibleRange(); final int rangeStart = range.getStart(); ...
protected void onRangeChanged(HasData<PartData> display) { if (resultSize == 0) // display changed its range of interest but no data return; // values of range to display from view final Range range = display.getVisibleRange(); final int rangeStart = range.getStart(); ...
diff --git a/src/compress/BitPacker.java b/src/compress/BitPacker.java index 40f8300..558f29a 100644 --- a/src/compress/BitPacker.java +++ b/src/compress/BitPacker.java @@ -1,227 +1,227 @@ package compress; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * @author Jake Bellamy 1130587 jrb4...
false
true
public void pack() { int indexLength = 6; String message = io.readString(); Pattern p = Pattern.compile("[^0-9]"); Matcher m = p.matcher(message); int startindex = 0, mindex = 0, byteIndex = 0, bitIndex = 8; int bufLength = 50; byte[] buf = new byte[bufLength + 1]; /** * Loop through each tupl...
public void pack() { int indexLength = 5; String message = io.readString(); Pattern p = Pattern.compile("[^0-9]"); Matcher m = p.matcher(message); int startindex = 0, mindex = 0, byteIndex = 0, bitIndex = 8; int bufLength = 50; byte[] buf = new byte[bufLength + 1]; /** * Loop through each tupl...
diff --git a/src/test/java/no/arktekk/talkjdk8/Stream1MapSinkTest.java b/src/test/java/no/arktekk/talkjdk8/Stream1MapSinkTest.java index 4f866e7..2459c5e 100644 --- a/src/test/java/no/arktekk/talkjdk8/Stream1MapSinkTest.java +++ b/src/test/java/no/arktekk/talkjdk8/Stream1MapSinkTest.java @@ -1,20 +1,20 @@ package no.a...
true
true
public void test() { List<String> names = asList("Tom Waits", "Johnny Cash", "Stefan Sundström"); List<String> surNames = names.stream().map((String s) -> s.substring(0, s.indexOf(' '))).collect(Collectors.<String>toList()); assertEquals(asList("Tom", "Johnny", "Stefan"), surNames); }
public void test() { List<String> names = asList("Tom Waits", "Johnny Cash", "Stefan Sundström"); List<String> foreNames = names.stream().map((String s) -> s.substring(0, s.indexOf(' '))).collect(Collectors.<String>toList()); assertEquals(asList("Tom", "Johnny", "Stefan"), foreNames); }
diff --git a/srcj/com/sun/electric/tool/io/output/Verilog.java b/srcj/com/sun/electric/tool/io/output/Verilog.java index 0508d422b..a863469f7 100755 --- a/srcj/com/sun/electric/tool/io/output/Verilog.java +++ b/srcj/com/sun/electric/tool/io/output/Verilog.java @@ -1,1895 +1,1895 @@ /* -*- tab-width: 4 -*- * * Elec...
true
true
protected void writeCellTopology(Cell cell, CellNetInfo cni, VarContext context, Topology.MyCellInfo info) { if (cell == topCell) { // gather all global signal names Netlist netList = cni.getNetList(); Global.Set globals = netList.getGlobals(); int globalSize = globals.size(); // see if any globals ...
protected void writeCellTopology(Cell cell, CellNetInfo cni, VarContext context, Topology.MyCellInfo info) { if (cell == topCell) { // gather all global signal names Netlist netList = cni.getNetList(); Global.Set globals = netList.getGlobals(); int globalSize = globals.size(); // see if any globals ...
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/name/NameValidatorProvider.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/name/NameValidatorProvider.java index b958d1d32b..423b652608 100644 --- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/name/NameValidatorProvider.j...
true
true
public Validator getRootValidator(NodeState before, NodeState after) { return new NameValidator(newHashSet(after .getChildNode(JCR_SYSTEM) .getChildNode(REP_NAMESPACES) .getChildNode(NSDATA) .getString(NSDATA_PREFIXES))); }
public Validator getRootValidator(NodeState before, NodeState after) { return new NameValidator(newHashSet(after .getChildNode(JCR_SYSTEM) .getChildNode(REP_NAMESPACES) .getChildNode(NSDATA) .getStrings(NSDATA_PREFIXES))); }
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTaskDataHandler.java index 9da8a0e91..d97d52092 100644 --- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTask...
true
true
public static void updateTaskData(TaskRepository repository, AbstractAttributeFactory factory, RepositoryTaskData data, TracTicket ticket) { if (ticket.getCreated() != null) { data.setAttributeValue(Attribute.TIME.getTracKey(), TracUtils.toTracTime(ticket.getCreated()) + ""); } Date lastChanged = ticket...
public static void updateTaskData(TaskRepository repository, AbstractAttributeFactory factory, RepositoryTaskData data, TracTicket ticket) { if (ticket.getCreated() != null) { data.setAttributeValue(Attribute.TIME.getTracKey(), TracUtils.toTracTime(ticket.getCreated()) + ""); } Date lastChanged = ticket...
diff --git a/common/cpw/mods/fml/common/network/NetworkModHandler.java b/common/cpw/mods/fml/common/network/NetworkModHandler.java index 1b94fb41..09c16ffb 100644 --- a/common/cpw/mods/fml/common/network/NetworkModHandler.java +++ b/common/cpw/mods/fml/common/network/NetworkModHandler.java @@ -1,350 +1,350 @@ package ...
true
true
public NetworkModHandler(ModContainer container, Class<?> networkModClass, ASMDataTable table) { this(container, networkModClass.getAnnotation(NetworkMod.class)); if (this.mod == null) { return; } Set<ASMData> versionCheckHandlers = table.getAnnotationsFor(co...
public NetworkModHandler(ModContainer container, Class<?> networkModClass, ASMDataTable table) { this(container, networkModClass.getAnnotation(NetworkMod.class)); if (this.mod == null) { return; } Set<ASMData> versionCheckHandlers = table.getAnnotationsFor(co...
diff --git a/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/ApplePlugin.java b/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/ApplePlugin.java index cfc91ac6..94aa00ed 100644 --- a/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/ApplePlugin.java +++ b/src/plugins/apple/src/com/jivesoftwa...
false
true
public void initialize() { if (Spark.isMac()) { roomListener = new DockRoomListener(); SparkManager.getChatManager().addChatRoomListener(roomListener); // Remove the About Menu Item from the help menu MainWindow mainWindow = SparkManager.getMainWindow(); ...
public void initialize() { if (Spark.isMac()) { roomListener = new DockRoomListener(); SparkManager.getChatManager().addChatRoomListener(roomListener); // Remove the About Menu Item from the help menu MainWindow mainWindow = SparkManager.getMainWindow(); ...
diff --git a/src/main/java/com/bergerkiller/bukkit/tc/rails/logic/RailLogicSloped.java b/src/main/java/com/bergerkiller/bukkit/tc/rails/logic/RailLogicSloped.java index 0f22089..7a45268 100644 --- a/src/main/java/com/bergerkiller/bukkit/tc/rails/logic/RailLogicSloped.java +++ b/src/main/java/com/bergerkiller/bukkit/tc/...
false
true
public void onPreMove(MinecartMember<?> member) { final CommonMinecart<?> entity = member.getEntity(); MinecartGroup group = member.getGroup(); // Velocity modifier for sloped tracks if (group.getProperties().isSlowingDown() && !member.isMovementControlled()) { entity.vel.xz.subtract(this.getDirection(), M...
public void onPreMove(MinecartMember<?> member) { final CommonMinecart<?> entity = member.getEntity(); MinecartGroup group = member.getGroup(); // Velocity modifier for sloped tracks if (group.getProperties().isSlowingDown() && !member.isMovementControlled()) { entity.vel.xz.subtract(this.getDirection(), M...
diff --git a/src/main/java/net/oneandone/lavender/cli/War.java b/src/main/java/net/oneandone/lavender/cli/War.java index cf96a32..3731a67 100644 --- a/src/main/java/net/oneandone/lavender/cli/War.java +++ b/src/main/java/net/oneandone/lavender/cli/War.java @@ -1,122 +1,122 @@ /** * Copyright 1&1 Internet AG, https:/...
true
true
public void target(String keyvalue) { int idx; String type; String clusterName; String aliasName; Cluster cluster; Docroot docroot; Alias alias; idx = keyvalue.indexOf('='); if (idx == -1) { throw new ArgumentException("<type>=<clu...
public void target(String keyvalue) { int idx; String type; String clusterName; String aliasName; Cluster cluster; Docroot docroot; Alias alias; idx = keyvalue.indexOf('='); if (idx == -1) { throw new ArgumentException("<type>=<clu...
diff --git a/src/org/jruby/parser/DefaultRubyParser.java b/src/org/jruby/parser/DefaultRubyParser.java index 86627aa88..13a851473 100644 --- a/src/org/jruby/parser/DefaultRubyParser.java +++ b/src/org/jruby/parser/DefaultRubyParser.java @@ -1,3445 +1,3445 @@ // line 2 "DefaultRubyParser.y" /* * DefaultRubyPars...
true
true
public Object yyparse (RubyYaccLexer yyLex) throws java.io.IOException, yyException { if (yyMax <= 0) yyMax = 256; // initial size int yyState = 0, yyStates[] = new int[yyMax]; // state stack Object yyVal = null, yyVals[] = new Object[yyMax]; // value stack int yyToken = -1; // current input...
public Object yyparse (RubyYaccLexer yyLex) throws java.io.IOException, yyException { if (yyMax <= 0) yyMax = 256; // initial size int yyState = 0, yyStates[] = new int[yyMax]; // state stack Object yyVal = null, yyVals[] = new Object[yyMax]; // value stack int yyToken = -1; // current input...
diff --git a/beam-core/src/test/java/org/esa/beam/framework/datamodel/PlacemarkTest.java b/beam-core/src/test/java/org/esa/beam/framework/datamodel/PlacemarkTest.java index dcb1bb1a7..9bfeedbfd 100644 --- a/beam-core/src/test/java/org/esa/beam/framework/datamodel/PlacemarkTest.java +++ b/beam-core/src/test/java/org/esa...
true
true
public void testCreatePin_FromJDOMElement() { final String pinName = "pin14"; final String pinDesc = "descr"; final float pinLat = 5.7f; final float pinLon = 23.4f; try { PlacemarkIO.createPlacemark(null, null, null); fail("NullPointerException expect...
public void testCreatePin_FromJDOMElement() { final String pinName = "pin14"; final String pinDesc = "descr"; final float pinLat = 5.7f; final float pinLon = 23.4f; try { PlacemarkIO.createPlacemark(null, null, null); fail("NullPointerException expect...
diff --git a/missionSINF1121/m3/RevueParser.java b/missionSINF1121/m3/RevueParser.java index c0056f5..fc2a11d 100644 --- a/missionSINF1121/m3/RevueParser.java +++ b/missionSINF1121/m3/RevueParser.java @@ -1,80 +1,80 @@ import java.util.HashMap; import java.util.Scanner; import java.util.logging.Level; import java.u...
true
true
public void start(){ try { // TODO code application logic here handler.initReader(); String line = handler.readLine(); if (line.equals("Rank,Title,FoR1,FoR1 Name,FoR2,FoR2 Name,FoR3,FoR3 Name")) { System.out.println("Wait for the application init....")...
public void start(){ try { // TODO code application logic here handler.initReader(); String line = handler.readLine(); if (line.equals("Rank,Title,FoR1,FoR1 Name,FoR2,FoR2 Name,FoR3,FoR3 Name")) { System.out.println("Wait for the application init....")...
diff --git a/src/main/java/com/cwoodson/pigaddons/rpig/RFunction.java b/src/main/java/com/cwoodson/pigaddons/rpig/RFunction.java index 5e1e351..5331162 100644 --- a/src/main/java/com/cwoodson/pigaddons/rpig/RFunction.java +++ b/src/main/java/com/cwoodson/pigaddons/rpig/RFunction.java @@ -1,132 +1,132 @@ /* * To chan...
true
true
public Object exec(Tuple tuple) throws IOException { getInputSchema(); RList result_list; try { List<RType> params = RUtils.pigTupleToR(tuple, inputSchema, 0).expand(); String paramStr = params.isEmpty() ? "" : params.get(0).toRString(); for(int i...
public Object exec(Tuple tuple) throws IOException { getInputSchema(); RList result_list; try { List<RType> params = RUtils.pigTupleToR(tuple, inputSchema, 0).expand(); String paramStr = params.isEmpty() ? "" : params.get(0).toRString(); for(int i...
diff --git a/containers/tomcat-7/src/main/java/org/mobicents/servlet/sip/startup/SipStandardContext.java b/containers/tomcat-7/src/main/java/org/mobicents/servlet/sip/startup/SipStandardContext.java index 75b5be552..b81033018 100644 --- a/containers/tomcat-7/src/main/java/org/mobicents/servlet/sip/startup/SipStandardCo...
true
true
public synchronized void startInternal() throws LifecycleException { if(logger.isInfoEnabled()) { logger.info("Starting the sip context"); } // if( this.getState().equals(LifecycleState.INITIALIZED)) { prepareServletContext(); // } // Add missing components as necessary boolean ok = true; if...
public synchronized void startInternal() throws LifecycleException { if(logger.isInfoEnabled()) { logger.info("Starting the sip context"); } // if( this.getState().equals(LifecycleState.INITIALIZED)) { prepareServletContext(); // } // Add missing components as necessary boolean ok = true; if...
diff --git a/components/bio-formats/src/loci/formats/tiff/TiffSaver.java b/components/bio-formats/src/loci/formats/tiff/TiffSaver.java index fbca5c28f..1af72f4ee 100644 --- a/components/bio-formats/src/loci/formats/tiff/TiffSaver.java +++ b/components/bio-formats/src/loci/formats/tiff/TiffSaver.java @@ -1,825 +1,826 @@...
true
true
public void writeImage(byte[] buf, IFD ifd, int no, int pixelType, int x, int y, int w, int h, boolean last) throws FormatException, IOException { LOGGER.debug("Attempting to write image."); //b/c method is public should check parameters again if (buf == null) { throw new FormatException("...
public void writeImage(byte[] buf, IFD ifd, int no, int pixelType, int x, int y, int w, int h, boolean last) throws FormatException, IOException { LOGGER.debug("Attempting to write image."); //b/c method is public should check parameters again if (buf == null) { throw new FormatException("...
diff --git a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllTests.java b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllTests.java index ba19daf..a7bfa3c 100644 --- a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllTests.java +++ b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllTests.java...
true
true
public static Test suite() { TestSuite suite = new TestSuite("Test for org.eclipse.mylar.tests"); //$JUnit-BEGIN$ // NOTE: the order of these tests matters // TODO: make tests clear workbench state on completion suite.addTest(AllMonitorTests.suite()); suite.a...
public static Test suite() { TestSuite suite = new TestSuite("Test for org.eclipse.mylar.tests"); //$JUnit-BEGIN$ // NOTE: the order of these tests matters // TODO: make tests clear workbench state on completion suite.addTest(AllMonitorTests.suite()); suite....
diff --git a/modules/dCache/diskCacheV111/util/ActiveAdapter.java b/modules/dCache/diskCacheV111/util/ActiveAdapter.java index 101d136784..fbd4fe3e52 100644 --- a/modules/dCache/diskCacheV111/util/ActiveAdapter.java +++ b/modules/dCache/diskCacheV111/util/ActiveAdapter.java @@ -1,831 +1,833 @@ //$Id: ActiveAdapter.jav...
false
true
public void run() { // try { // Create a new Selector for selecting // _selector = Selector.open(); // Register the ServerSocketChannel, so we can listen for incoming // connections _ssc.register(_selector, SelectionKey.OP_ACCEPT); ...
public void run() { // try { // Create a new Selector for selecting // _selector = Selector.open(); // Register the ServerSocketChannel, so we can listen for incoming // connections _ssc.register(_selector, SelectionKey.OP_ACCEPT); ...
diff --git a/src/com/rootbox/rootboxota/fragments/InstallFragment.java b/src/com/rootbox/rootboxota/fragments/InstallFragment.java index e03d0bd..c52f268 100644 --- a/src/com/rootbox/rootboxota/fragments/InstallFragment.java +++ b/src/com/rootbox/rootboxota/fragments/InstallFragment.java @@ -1,179 +1,179 @@ /* * Cop...
true
true
public static void update() { mLocalRoot.removeAll(); mExtrasRoot.removeAll(); for (File file : sFiles) { Preference pref = new Preference(mContext); pref.setTitle(file.getName()); pref.setSummary(getSummary(file, true)); pref.setIcon(R.drawabl...
public static void update() { mLocalRoot.removeAll(); mExtrasRoot.removeAll(); for (File file : sFiles) { Preference pref = new Preference(mContext); pref.setTitle(file.getName()); pref.setSummary(getSummary(file, true)); pref.setIcon(R.drawabl...
diff --git a/src/tests/java/de/ismll/table/impl/VectorsTest.java b/src/tests/java/de/ismll/table/impl/VectorsTest.java index 38441b6..6b0baee 100644 --- a/src/tests/java/de/ismll/table/impl/VectorsTest.java +++ b/src/tests/java/de/ismll/table/impl/VectorsTest.java @@ -1,39 +1,39 @@ package de.ismll.table.impl; impo...
false
true
public void testRemoveAll() { IntVector base = new DefaultIntVector(100); IntVector removeIndizes = new DefaultIntVector(10); IntVector assumedResult = new DefaultIntVector(90); for (int i = 0; i < base.size(); i++) base.set(i, i); for (int i = 0; i < removeIndizes.size(); i++) removeIndizes.set(i, i*i...
public void testRemoveAll() { IntVector base = new DefaultIntVector(100); IntVector removeIndizes = new DefaultIntVector(10); // IntVector assumedResult = new DefaultIntVector(90); for (int i = 0; i < base.size(); i++) base.set(i, i); for (int i = 0; i < removeIndizes.size(); i++) removeIndizes.set(i, i...
diff --git a/cool-tree.java b/cool-tree.java index d15292a..4b0be33 100755 --- a/cool-tree.java +++ b/cool-tree.java @@ -1,2014 +1,2014 @@ // -*- mode: java -*- // // file: cool-tree.m4 // // This file defines the AST // ////////////////////////////////////////////////////////// import java.util.Enumeration;...
true
true
private void traverseExpression(class_c currentClass, Expression expression, MySymbolTable objectSymTab, MySymbolTable methodSymTab) { if (expression instanceof object) { if ( ((object)expression).getName() == TreeConstants.self ) { expression.set_type(TreeConstants.SELF_TYPE); ...
private void traverseExpression(class_c currentClass, Expression expression, MySymbolTable objectSymTab, MySymbolTable methodSymTab) { if (expression instanceof object) { if ( ((object)expression).getName() == TreeConstants.self ) { expression.set_type(TreeConstants.SELF_TYPE); ...
diff --git a/modules/extension/app-schema/sample-data-access/src/main/java/org/geotools/data/SampleDataAccessFeatureSource.java b/modules/extension/app-schema/sample-data-access/src/main/java/org/geotools/data/SampleDataAccessFeatureSource.java index 50d92279c7..dd767592b4 100644 --- a/modules/extension/app-schema/samp...
true
true
public FeatureCollection<FeatureType, Feature> getFeatures() throws IOException { FeatureCollection<FeatureType, Feature> fc = new SampleDataAccessFeatureCollection(); fc.addAll(SampleDataAccessData.createMappedFeatures()); return fc; }
public FeatureCollection<FeatureType, Feature> getFeatures() throws IOException { SampleDataAccessFeatureCollection fc = new SampleDataAccessFeatureCollection(); fc.addAll(SampleDataAccessData.createMappedFeatures()); return fc; }
diff --git a/src/org/biojava/bio/program/ssbind/HSPSummaryStAXHandler.java b/src/org/biojava/bio/program/ssbind/HSPSummaryStAXHandler.java index 520a8a26e..20ccbbb29 100644 --- a/src/org/biojava/bio/program/ssbind/HSPSummaryStAXHandler.java +++ b/src/org/biojava/bio/program/ssbind/HSPSummaryStAXHandler.java @@ -1,113 +...
false
true
protected void handleStartElement(String nsURI, String localName, String qName, Attributes attrs) throws SAXException { SearchContentHandler sch = ssContext.getSearchCont...
protected void handleStartElement(String nsURI, String localName, String qName, Attributes attrs) throws SAXException { SearchContentHandler sch = ssContext.getSearchCont...
diff --git a/htroot/yacy/transferRWI.java b/htroot/yacy/transferRWI.java index 72c8cd151..cc3f5f642 100644 --- a/htroot/yacy/transferRWI.java +++ b/htroot/yacy/transferRWI.java @@ -1,214 +1,221 @@ // transferRWI.java // ----------------------- // part of the AnomicHTTPD caching proxy // (C) by Michael Peter Christ...
false
true
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch ss) throws InterruptedException { if (post == null || ss == null) { return null; } // return variable that accumulates replacements final plasmaSwitchboard sb = (plasmaSwitchboard) ss; final serv...
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch ss) throws InterruptedException { if (post == null || ss == null) { return null; } // return variable that accumulates replacements final plasmaSwitchboard sb = (plasmaSwitchboard) ss; final serv...
diff --git a/us9098/client/src/main/java/com/funambol/client/test/media/MediaRobot.java b/us9098/client/src/main/java/com/funambol/client/test/media/MediaRobot.java index 0f4f44c3..7f512768 100755 --- a/us9098/client/src/main/java/com/funambol/client/test/media/MediaRobot.java +++ b/us9098/client/src/main/java/com/funa...
false
true
protected void addMediaOnServerFromStream(String type, String itemName, InputStream contentStream, long contentSize, String contentType, String guid) throws IOException, JSONException { String fullName = itemName; itemName = getFileNameFromFullName(...
protected void addMediaOnServerFromStream(String type, String itemName, InputStream contentStream, long contentSize, String contentType, String guid) throws IOException, JSONException { String fullName = itemName; itemName = getFileNameFromFullName(...
diff --git a/servlet/src/main/java/com/redshape/servlet/dispatchers/http/HttpDispatcher.java b/servlet/src/main/java/com/redshape/servlet/dispatchers/http/HttpDispatcher.java index 615b1779..e24f9d25 100644 --- a/servlet/src/main/java/com/redshape/servlet/dispatchers/http/HttpDispatcher.java +++ b/servlet/src/main/java...
true
true
public void dispatch( IHttpRequest request, IHttpResponse response ) throws DispatchException { try { ViewHelper.setLocalHttpRequest(request); if ( request.getRequestURI().endsWith("jsp") ) { return; } IView view = this.getView(request); v...
public void dispatch( IHttpRequest request, IHttpResponse response ) throws DispatchException { try { ViewHelper.setLocalHttpRequest(request); if ( request.getRequestURI().endsWith("jsp") ) { return; } IView view = this.getView(request); v...
diff --git a/src/com/herocraftonline/dev/heroes/health/EntityDamageReplacementListener.java b/src/com/herocraftonline/dev/heroes/health/EntityDamageReplacementListener.java index 45e57582..5e8e5c9f 100644 --- a/src/com/herocraftonline/dev/heroes/health/EntityDamageReplacementListener.java +++ b/src/com/herocraftonline/...
true
true
public void onEntityDamage(EntityDamageEvent event) { Properties prop = plugin.getConfigManager().getProperties(); if (event.getEntity() instanceof Player) { Player player = (Player) event.getEntity(); Hero hero = plugin.getHeroManager().getHero(player); if (eve...
public void onEntityDamage(EntityDamageEvent event) { Properties prop = plugin.getConfigManager().getProperties(); if (event.getEntity() instanceof Player) { Player player = (Player) event.getEntity(); Hero hero = plugin.getHeroManager().getHero(player); if (eve...
diff --git a/packages/java/rinfo-store/src/main/java/se/lagrummet/rinfo/store/depot/DepotUtil.java b/packages/java/rinfo-store/src/main/java/se/lagrummet/rinfo/store/depot/DepotUtil.java index 045370f8..6e82471e 100644 --- a/packages/java/rinfo-store/src/main/java/se/lagrummet/rinfo/store/depot/DepotUtil.java +++ b/pac...
false
true
public static Depot depotFromConfig(String propertiesPath, String subsetPrefix) throws ConfigurationException { Depot depot = new FileDepot(); Configuration config = new PropertiesConfiguration(propertiesPath); if (subsetPrefix != null) { config = config.subset(subset...
public static Depot depotFromConfig(String propertiesPath, String subsetPrefix) throws ConfigurationException { FileDepot depot = new FileDepot(); Configuration config = new PropertiesConfiguration(propertiesPath); if (subsetPrefix != null) { config = config.subset(su...
diff --git a/src/com/shade/crash/Ray.java b/src/com/shade/crash/Ray.java index d22a15c..698bf20 100644 --- a/src/com/shade/crash/Ray.java +++ b/src/com/shade/crash/Ray.java @@ -1,65 +1,65 @@ package com.shade.crash; import org.newdawn.slick.Graphics; import org.newdawn.slick.geom.Rectangle; import org.newdawn.sli...
true
true
public Ray(Body one, Body two) { float w = one.getWidth(); shape = new Rectangle(one.getCenterX() - w / 2, one.getCenterY(), 2, CrashGeom.distance(one, two)); heading = CrashGeom.calculateAngle(one, two); Transform t = Transform.createRotateTransform(heading, ...
public Ray(Body one, Body two) { float w = one.getWidth(); shape = new Rectangle(one.getCenterX() - w / 2, one.getCenterY(), w, CrashGeom.distance(one, two)); heading = CrashGeom.calculateAngle(one, two); Transform t = Transform.createRotateTransform(heading, ...
diff --git a/src/com/iver/cit/gvsig/ExportTo.java b/src/com/iver/cit/gvsig/ExportTo.java index 73df525..a0d2847 100644 --- a/src/com/iver/cit/gvsig/ExportTo.java +++ b/src/com/iver/cit/gvsig/ExportTo.java @@ -1,757 +1,757 @@ package com.iver.cit.gvsig; import java.awt.Component; import java.awt.geom.Point2D; impo...
true
true
public void saveToPostGIS(MapContext mapContext, FLyrVect layer){ try { String tableName = JOptionPane.showInputDialog(PluginServices .getText(this, "intro_tablename")); if (tableName == null) return; tableName = tableName.toLowerCase(); DlgConnection dlg = new DlgConnection(new String[]{"PostG...
public void saveToPostGIS(MapContext mapContext, FLyrVect layer){ try { String tableName = JOptionPane.showInputDialog(PluginServices .getText(this, "intro_tablename")); if (tableName == null) return; tableName = tableName.toLowerCase(); DlgConnection dlg = new DlgConnection(new String[]{"PostG...
diff --git a/src/uk/ac/gla/dcs/tp3/w/algorithm/Main.java b/src/uk/ac/gla/dcs/tp3/w/algorithm/Main.java index ea5155a..0920c32 100644 --- a/src/uk/ac/gla/dcs/tp3/w/algorithm/Main.java +++ b/src/uk/ac/gla/dcs/tp3/w/algorithm/Main.java @@ -1,107 +1,107 @@ package uk.ac.gla.dcs.tp3.w.algorithm; import uk.ac.gla.dcs.t...
true
true
public static void main(String[] args) { Team atlanta = new Team(); atlanta.setName("Atlanta"); atlanta.setGamesPlayed(170-8); atlanta.setPoints(83); Team philadelphia = new Team(); philadelphia.setName("Philadelphia"); philadelphia.setGamesPlayed(170-4); philadelphia.setPoints(79); Team newYor...
public static void main(String[] args) { Team atlanta = new Team(); atlanta.setName("Atlanta"); atlanta.setGamesPlayed(170-8); atlanta.setPoints(83); Team philadelphia = new Team(); philadelphia.setName("Philadelphia"); philadelphia.setGamesPlayed(170-4); philadelphia.setPoints(79); Team newYor...
diff --git a/src/java/net/sf/picard/sam/AbstractAlignmentMerger.java b/src/java/net/sf/picard/sam/AbstractAlignmentMerger.java index 41c9e963..d85ce90b 100644 --- a/src/java/net/sf/picard/sam/AbstractAlignmentMerger.java +++ b/src/java/net/sf/picard/sam/AbstractAlignmentMerger.java @@ -1,408 +1,408 @@ /* * The MIT L...
true
true
public void mergeAlignment() { final SAMRecordQueryNameComparator comparator = new SAMRecordQueryNameComparator(); // Open the file of unmapped records and write the read groups to the the header for the merged file final SAMFileReader unmappedSam = new SAMFileReader(this.unmappedBamFile);...
public void mergeAlignment() { final SAMRecordQueryNameComparator comparator = new SAMRecordQueryNameComparator(); // Open the file of unmapped records and write the read groups to the the header for the merged file final SAMFileReader unmappedSam = new SAMFileReader(this.unmappedBamFile);...
diff --git a/src/at/ac/prog/calculator/engine/CalcParser.java b/src/at/ac/prog/calculator/engine/CalcParser.java index 8353c29..c55656b 100644 --- a/src/at/ac/prog/calculator/engine/CalcParser.java +++ b/src/at/ac/prog/calculator/engine/CalcParser.java @@ -1,197 +1,197 @@ package at.ac.prog.calculator.engine; impor...
true
true
public void parse(String command) throws CalcParsingException { command = command.replaceAll("\\s+", " "); String newElem = null; int numOpenBrackets = 0; boolean readSpecialCharacter = false; for (int i = 0; i < command.length(); i++) { // DEBUG: System.out.println("TESTING: " + command.charAt(i)); i...
public void parse(String command) throws CalcParsingException { command = command.replaceAll("\\s+", " "); String newElem = null; int numOpenBrackets = 0; boolean readSpecialCharacter = false; for (int i = 0; i < command.length(); i++) { // DEBUG: System.out.println("TESTING: " + command.charAt(i)); i...
diff --git a/eapli.ExpenseManager/src/Persistence/PersistenceFactory.java b/eapli.ExpenseManager/src/Persistence/PersistenceFactory.java index 519e991..e07aec3 100644 --- a/eapli.ExpenseManager/src/Persistence/PersistenceFactory.java +++ b/eapli.ExpenseManager/src/Persistence/PersistenceFactory.java @@ -1,53 +1,53 @@ ...
true
true
private PersistenceFactory() { //vai ao ficheiro propriedades - expensemanager.properties- obter a //a factory associada ao tipo de persistencia a usar. //Por omissão JpaRepositoryFactory try{ FileInputStream propFile = new FileInputStream("expensemanager.propert...
private PersistenceFactory() { //vai ao ficheiro propriedades - expensemanager.properties- obter a //a factory associada ao tipo de persistencia a usar. //Por omissão JpaRepositoryFactory try{ FileInputStream propFile = new FileInputStream("expensemanager.propert...
diff --git a/src/java/com/threerings/editor/PathProperty.java b/src/java/com/threerings/editor/PathProperty.java index 8246f92f..b68a95ac 100644 --- a/src/java/com/threerings/editor/PathProperty.java +++ b/src/java/com/threerings/editor/PathProperty.java @@ -1,519 +1,519 @@ // // $Id$ // // Clyde library - tools fo...
true
true
protected static Property getProperty ( final ConfigManager cfgmgr, Object object, final Property base, StreamTokenizer tok) throws IOException { if (tok.nextToken() != '[') { return base; } Object value = base.get(object); if (value == null) { ...
protected static Property getProperty ( final ConfigManager cfgmgr, Object object, final Property base, StreamTokenizer tok) throws IOException { if (tok.nextToken() != '[') { return base; } Object value = base.get(object); if (value == null) { ...
diff --git a/addon-jpa/src/main/java/org/springframework/roo/addon/jpa/JpaOperationsImpl.java b/addon-jpa/src/main/java/org/springframework/roo/addon/jpa/JpaOperationsImpl.java index 09ce2588a..1a01d3b24 100644 --- a/addon-jpa/src/main/java/org/springframework/roo/addon/jpa/JpaOperationsImpl.java +++ b/addon-jpa/src/ma...
true
true
private void updatePersistenceXml(OrmProvider ormProvider, JdbcDatabase database, String databaseName, String userName, String password, String persistenceUnit) { String persistencePath = pathResolver.getIdentifier(Path.SRC_MAIN_RESOURCES, "META-INF/persistence.xml"); MutableFile persistenceMutableFile = null; ...
private void updatePersistenceXml(OrmProvider ormProvider, JdbcDatabase database, String databaseName, String userName, String password, String persistenceUnit) { String persistencePath = pathResolver.getIdentifier(Path.SRC_MAIN_RESOURCES, "META-INF/persistence.xml"); MutableFile persistenceMutableFile = null; ...
diff --git a/content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesAction.java b/content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesAction.java index 0486f88a..6555d10a 100644 --- a/content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesAction.java +++ b/content-tool/tool/src/java/...
true
true
public void doHandlepaste ( RunData data) { ParameterParser params = data.getParameters (); SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); // get the cut items to be pasted Vector pasteCutItems = (Vector) state.getAttribute (STATE_CUT_IDS); //...
public void doHandlepaste ( RunData data) { ParameterParser params = data.getParameters (); SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); // get the cut items to be pasted Vector pasteCutItems = (Vector) state.getAttribute (STATE_CUT_IDS); //...
diff --git a/srcj/com/sun/electric/tool/user/ui/WindowFrame.java b/srcj/com/sun/electric/tool/user/ui/WindowFrame.java index 1f845576b..2effec4da 100755 --- a/srcj/com/sun/electric/tool/user/ui/WindowFrame.java +++ b/srcj/com/sun/electric/tool/user/ui/WindowFrame.java @@ -1,789 +1,793 @@ /* -*- tab-width: 4 -*- * ...
true
true
public static WindowFrame create3DViewtWindow(Cell cell) { WindowFrame frame = new WindowFrame(); /* WindowContent vWnd = new View3DWindow(cell, frame); frame.buildWindowStructure((WindowContent)vWnd, cell, null); setCurrentWindowFrame(frame); frame.populateJFrame(); */ Class view3DClass; ...
public static WindowFrame create3DViewtWindow(Cell cell) { WindowFrame frame = new WindowFrame(); /* WindowContent vWnd = new View3DWindow(cell, frame); frame.buildWindowStructure((WindowContent)vWnd, cell, null); setCurrentWindowFrame(frame); frame.populateJFrame(); */ Class view3DClass; ...
diff --git a/GeeksNearby-mobile/android/src/me/outof/geeksnearby/GeeksNearbyActivity.java b/GeeksNearby-mobile/android/src/me/outof/geeksnearby/GeeksNearbyActivity.java index afc34d5..32407dc 100644 --- a/GeeksNearby-mobile/android/src/me/outof/geeksnearby/GeeksNearbyActivity.java +++ b/GeeksNearby-mobile/android/src/m...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.setIntegerProperty("splashscreen", R.drawable.splash); super.loadUrl("file:///android_asset/www/index-android.html", 2000); }
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.setIntegerProperty("splashscreen", R.drawable.splash); super.loadUrl("file:///android_asset/www/index-android.html", 5000); }
diff --git a/jdbc/src/test/java/org/javaz/test/jdbc/JdbcCachedTest.java b/jdbc/src/test/java/org/javaz/test/jdbc/JdbcCachedTest.java index 54029c4..bad6d31 100644 --- a/jdbc/src/test/java/org/javaz/test/jdbc/JdbcCachedTest.java +++ b/jdbc/src/test/java/org/javaz/test/jdbc/JdbcCachedTest.java @@ -1,319 +1,323 @@ packag...
true
true
public void testReplicator() throws Exception { test.runUpdate("drop table test5", null); test2.runUpdate("drop table test6", null); test.runUpdate("create table test5 (id integer, name varchar(250), dt timestamp)", null); test2.runUpdate("create table test6 (id integer, name va...
public void testReplicator() throws Exception { test.runUpdate("drop table test5", null); test2.runUpdate("drop table test6", null); test.runUpdate("create table test5 (id integer, name varchar(250), dt timestamp)", null); test2.runUpdate("create table test6 (id integer, name va...
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java b/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java index 65a006bce..415d91992 100644 --- a/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java +++ ...
true
true
protected boolean visitFile(IResourceProxy proxy) throws CoreException { if (! fScope.encloses(proxy)) return false; // Exclude to derived resources if (proxy.isDerived()) return false; if (fLocator.isEmtpy()) { fCollector.accept(proxy, "", -1, 0, -1); //$NON-NLS-1$ updateProgressMonitor(); re...
protected boolean visitFile(IResourceProxy proxy) throws CoreException { if (! fScope.encloses(proxy)) return false; // Exclude to derived resources if (proxy.isDerived()) return false; if (fLocator.isEmtpy()) { fCollector.accept(proxy, "", -1, 0, -1); //$NON-NLS-1$ updateProgressMonitor(); re...
diff --git a/src/net/vincentpetry/nodereviver/view/ViewContext.java b/src/net/vincentpetry/nodereviver/view/ViewContext.java index eeed11f..3dbf2c8 100644 --- a/src/net/vincentpetry/nodereviver/view/ViewContext.java +++ b/src/net/vincentpetry/nodereviver/view/ViewContext.java @@ -1,81 +1,81 @@ package net.vincentpetry...
true
true
public ViewContext(Resources resources, GameContext gameContext){ this.gameContext = gameContext; this.typeface = Typeface.createFromAsset(resources.getAssets(), "fonts/DejaVuSansMono.ttf"); this.spriteManager = new SpriteManager(resources); switch (resources.getDisplayMetrics().den...
public ViewContext(Resources resources, GameContext gameContext){ this.gameContext = gameContext; this.typeface = Typeface.createFromAsset(resources.getAssets(), "fonts/DejaVuSansMono.ttf"); this.spriteManager = new SpriteManager(resources); switch (resources.getDisplayMetrics().den...
diff --git a/src/main/java/microDSN/MicroBenchHandler.java b/src/main/java/microDSN/MicroBenchHandler.java index a78a065..26fa6e5 100644 --- a/src/main/java/microDSN/MicroBenchHandler.java +++ b/src/main/java/microDSN/MicroBenchHandler.java @@ -1,327 +1,327 @@ /* * Copyright (c) 2010 Ecole des Mines de Nantes. * ...
true
true
private static void benchInstance(String propsF, String configsPath, String vPath, String output) throws Exception { if (propsF == null || !new File(propsF).isFile()) { fatal("the properties file must be an existing file. Currently: '" + propsF + "'"); } PropertiesHelper props =...
private static void benchInstance(String propsF, String configsPath, String vPath, String output) throws Exception { if (propsF == null || !new File(propsF).isFile()) { fatal("the properties file must be an existing file. Currently: '" + propsF + "'"); } PropertiesHelper props =...
diff --git a/tests/src/org/ohmage/activity/test/ResponseListTest.java b/tests/src/org/ohmage/activity/test/ResponseListTest.java index 665d9cd..4697312 100644 --- a/tests/src/org/ohmage/activity/test/ResponseListTest.java +++ b/tests/src/org/ohmage/activity/test/ResponseListTest.java @@ -1,257 +1,259 @@ /*************...
true
true
protected void setUp() throws Exception { super.setUp(); getInstrumentation().waitForIdleSync(); MockContentResolver fake = new MockContentResolver(); provider = new DelegatingMockContentProvider(OhmageApplication.getContext(), DbContract.CONTENT_AUTHORITY) { @Override public Cursor query(Uri uri, St...
protected void setUp() throws Exception { super.setUp(); getInstrumentation().waitForIdleSync(); MockContentResolver fake = new MockContentResolver(); provider = new DelegatingMockContentProvider(OhmageApplication.getContext(), DbContract.CONTENT_AUTHORITY) { @Override public Cursor query(Uri uri, St...
diff --git a/nuts-and-bolts/src/main/java/ru/hh/nab/health/limits/SimpleLimit.java b/nuts-and-bolts/src/main/java/ru/hh/nab/health/limits/SimpleLimit.java index 07ae184..72ec401 100644 --- a/nuts-and-bolts/src/main/java/ru/hh/nab/health/limits/SimpleLimit.java +++ b/nuts-and-bolts/src/main/java/ru/hh/nab/health/limits/...
true
true
public LeaseToken acquire() { final LoggingContext lc = LoggingContext.fromCurrentContext(); if (current.incrementAndGet() > max) { current.decrementAndGet(); LOGGER.warn("acquired,limit:{},token:-,max,current:{}", name, current); return null; } final boolean needWarn = current.get(...
public LeaseToken acquire() { final LoggingContext lc = LoggingContext.fromCurrentContext(); if (current.incrementAndGet() > max) { current.decrementAndGet(); LOGGER.warn("acquired,limit:{},token:-,max,current:{}", name, current); return null; } final boolean needWarn = current.get(...
diff --git a/src/gwt/src/org/rstudio/studio/client/workbench/views/source/editors/text/AceCompletionAdapter.java b/src/gwt/src/org/rstudio/studio/client/workbench/views/source/editors/text/AceCompletionAdapter.java index c5abb80918..184bf18ed9 100644 --- a/src/gwt/src/org/rstudio/studio/client/workbench/views/source/ed...
true
true
public native final KeyboardHandler getKeyboardHandler() /*-{ var event = $wnd.require("ace/lib/event"); var self = this; var noop = {command: "null"}; return { handleKeyboard: $entry(function(data, hashId, keyOrText, keyCode, e) { if (hashId != 0 || keyCode != 0) { ...
public native final KeyboardHandler getKeyboardHandler() /*-{ var event = $wnd.require("ace/lib/event"); var self = this; var noop = {command: "null"}; return { handleKeyboard: $entry(function(data, hashId, keyOrText, keyCode, e) { if (hashId || keyCode) { ...
diff --git a/galileo_openbook_cleaner/src/de/scrum_master/galileo/OpenbookCleaner.java b/galileo_openbook_cleaner/src/de/scrum_master/galileo/OpenbookCleaner.java index b0293a5..10413e7 100644 --- a/galileo_openbook_cleaner/src/de/scrum_master/galileo/OpenbookCleaner.java +++ b/galileo_openbook_cleaner/src/de/scrum_mas...
true
true
private static void processArgs(String[] args) { if (args.length == 0) displayUsageAndExit(0); // TODO: GetOpt is poorly documented, hard to use and buggy (getCmdArgs falsely returns options // if no non-option command-line agrument is given). There are plenty of better free command line // parsing tools...
private static void processArgs(String[] args) { if (args.length == 0) displayUsageAndExit(0); // TODO: GetOpt is poorly documented, hard to use and buggy (getCmdArgs falsely returns options // if no non-option command-line agrument is given). There are plenty of better free command line // parsing tools...
diff --git a/src/com/dzebsu/acctrip/settings/dialogs/BackupViaEmailDialogPreference.java b/src/com/dzebsu/acctrip/settings/dialogs/BackupViaEmailDialogPreference.java index df88b0c..eed5462 100644 --- a/src/com/dzebsu/acctrip/settings/dialogs/BackupViaEmailDialogPreference.java +++ b/src/com/dzebsu/acctrip/settings/dia...
true
true
protected Integer performConfirmedAction() { Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.setType("plain/text"); sendIntent.putExtra(Intent.EXTRA_SUBJECT, cxt.getString(R.string.backup_subject)); String s = makeBackupDBToDeviceExternalMemory(); Editor ed = findPreferenceInHierarchy(KEY_DEVI...
protected Integer performConfirmedAction() { Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.setType("plain/text"); sendIntent.putExtra(Intent.EXTRA_SUBJECT, cxt.getString(R.string.backup_subject)); String s = makeBackupDBToDeviceExternalMemory(); Editor ed = findPreferenceInHierarchy(KEY_DEVI...
diff --git a/src/client/Client.java b/src/client/Client.java index e2dfb5a..36e3f13 100644 --- a/src/client/Client.java +++ b/src/client/Client.java @@ -1,53 +1,53 @@ package client; import gui.GUI; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; import model.Picture; pu...
false
true
public Client(String host, int port, boolean sendMode) { Socket s = null; try { if (!sendMode) { System.out.println("Listening for connection"); ServerSocket ss = new ServerSocket(port); s = ss.accept(); System.out.println("Connection accepted"); } else { s = new Socket(host, port); } ...
public Client(String host, int port, boolean sendMode) { Socket s = null; try { // if (sendMode) { // System.out.println("Listening for connection"); // ServerSocket ss = new ServerSocket(port); // s = ss.accept(); // System.out.println("Connection accepted"); // } else { s = new Socket(host, p...
diff --git a/src/no/ntnu/tdt4215/group7/indexer/ICDIndexer.java b/src/no/ntnu/tdt4215/group7/indexer/ICDIndexer.java index cce3056..91f544b 100755 --- a/src/no/ntnu/tdt4215/group7/indexer/ICDIndexer.java +++ b/src/no/ntnu/tdt4215/group7/indexer/ICDIndexer.java @@ -1,94 +1,94 @@ package no.ntnu.tdt4215.group7.indexer; ...
true
true
private void addICDDoc(IndexWriter w, ICD icd) throws IOException { String codecompacted = icd.getCode_compacted(); String label = icd.getLabel(); // at the momemnt the extra information is given by the underterm and by // the synonyms String extraInformation = icd.getUnderte...
private void addICDDoc(IndexWriter w, ICD icd) throws IOException { String codecompacted = icd.getCode_compacted(); String label = icd.getLabel(); // at the momemnt the extra information is given by the underterm and by // the synonyms String extraInformation = icd.getUnderte...
diff --git a/kovu/teamstats/api/TeamStatsAPI.java b/kovu/teamstats/api/TeamStatsAPI.java index ced3aa9..0e822d2 100644 --- a/kovu/teamstats/api/TeamStatsAPI.java +++ b/kovu/teamstats/api/TeamStatsAPI.java @@ -1,611 +1,611 @@ package kovu.teamstats.api; import java.io.IOException; import java.io.ObjectInputStream; ...
true
true
public void run() { if (online) { try { Packet packet = new Packet(ClientRequest.GETFRIENDS); packetSender.sendPacket(packet); String[] friends; Packet reply = packetListener.getNextPacket(ClientRequest.S...
public void run() { if (online) { try { Packet packet = new Packet(ClientRequest.GETFRIENDS); packetSender.sendPacket(packet); String[] friends; Packet reply = packetListener.getNextPacket(ClientRequest.S...
diff --git a/org.eclipse.mylyn.wikitext.tests/src/org/eclipse/mylyn/wikitext/tests/ClassTraversal.java b/org.eclipse.mylyn.wikitext.tests/src/org/eclipse/mylyn/wikitext/tests/ClassTraversal.java index 1cad0275..e39fefd0 100644 --- a/org.eclipse.mylyn.wikitext.tests/src/org/eclipse/mylyn/wikitext/tests/ClassTraversal.ja...
true
true
private void visitClasses(Class<ClassTraversal> classOnClasspath, Visitor visitor) { ClassLoader loader = classOnClasspath.getClassLoader(); String resourceOfClass = classOnClasspath.getCanonicalName().replace('.', '/') + ".class"; Enumeration<URL> resources; try { resources = loader.getResources(resourceOf...
private void visitClasses(Class<ClassTraversal> classOnClasspath, Visitor visitor) { ClassLoader loader = classOnClasspath.getClassLoader(); String resourceOfClass = classOnClasspath.getCanonicalName().replace('.', '/') + ".class"; Enumeration<URL> resources; try { resources = loader.getResources(resourceOf...
diff --git a/source/de/tuclausthal/submissioninterface/servlets/view/ShowLectureStudentView.java b/source/de/tuclausthal/submissioninterface/servlets/view/ShowLectureStudentView.java index 852795b..75c9d54 100644 --- a/source/de/tuclausthal/submissioninterface/servlets/view/ShowLectureStudentView.java +++ b/source/de/t...
true
true
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { Template template = TemplateFactory.getTemplate(request, response); PrintWriter out = response.getWriter(); Participation participation = (Participation) request.getAttribute("participation"); L...
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { Template template = TemplateFactory.getTemplate(request, response); PrintWriter out = response.getWriter(); Participation participation = (Participation) request.getAttribute("participation"); L...
diff --git a/rse/plugins/org.eclipse.dltk.ssh.core/src/org/eclipse/dltk/ssh/internal/core/ChannelPool.java b/rse/plugins/org.eclipse.dltk.ssh.core/src/org/eclipse/dltk/ssh/internal/core/ChannelPool.java index 73317ada0..932c232f9 100644 --- a/rse/plugins/org.eclipse.dltk.ssh.core/src/org/eclipse/dltk/ssh/internal/core/...
true
true
protected ChannelSftp acquireChannel(Object context) throws JSchException { connectSession(); if (DEBUG) { log("<acquireChannel> " + context); //$NON-NLS-1$ } synchronized (lock) { while (!freeChannels.isEmpty()) { final ChannelSftp channel = freeChannels.remove(freeChannels .size() - 1); i...
protected ChannelSftp acquireChannel(Object context) throws JSchException { connectSession(); if (DEBUG) { log("<acquireChannel> " + context); //$NON-NLS-1$ } synchronized (lock) { while (!freeChannels.isEmpty()) { final ChannelSftp channel = freeChannels.remove(freeChannels .size() - 1); i...
diff --git a/ui/webui/src/eu/sqooss/webui/view/TimelineView.java b/ui/webui/src/eu/sqooss/webui/view/TimelineView.java index 6d0e3842..7e70d45c 100644 --- a/ui/webui/src/eu/sqooss/webui/view/TimelineView.java +++ b/ui/webui/src/eu/sqooss/webui/view/TimelineView.java @@ -1,648 +1,653 @@ /* * This file is part of the ...
false
true
private String tableChart (long in, Calendar calLow, Calendar calHigh) { // Hold the accumulated HTML content StringBuilder b = new StringBuilder(""); b.append(sp(in++) + "<table>\n"); // Table header b.append(sp(in++) + "<thead>\n"); b.append(sp(in) + "<tr>" ...
private String tableChart (long in, Calendar calLow, Calendar calHigh) { // Hold the accumulated HTML content StringBuilder b = new StringBuilder(""); b.append(sp(in++) + "<table>\n"); // Table header b.append(sp(in++) + "<thead>\n"); b.append(sp(in) + "<tr>" ...
diff --git a/test/src/com/redhat/ceylon/compiler/java/test/issues/IssuesTest_1000_1499.java b/test/src/com/redhat/ceylon/compiler/java/test/issues/IssuesTest_1000_1499.java index 4125157c1..9544b9ef1 100644 --- a/test/src/com/redhat/ceylon/compiler/java/test/issues/IssuesTest_1000_1499.java +++ b/test/src/com/redhat/ce...
true
true
public void testBug1180() { compile("bug11xx/Bug1180_1.ceylon"); assertErrors("bug11xx/Bug1180_2", new CompilerError(25, "member containsAll is inherited ambiguously by Bug1180People from AbstractCollection and another subtype of List and so must be refined by Bug1180People"), ...
public void testBug1180() { compile("bug11xx/Bug1180_1.ceylon"); assertErrors("bug11xx/Bug1180_2", new CompilerError(25, "ambiguous reference to overloaded method or class: ArrayList") ); }
diff --git a/tests/src/com/vaadin/tests/components/combobox/ComboBoxLargeIcons.java b/tests/src/com/vaadin/tests/components/combobox/ComboBoxLargeIcons.java index 1992c1294..0f8124ca2 100644 --- a/tests/src/com/vaadin/tests/components/combobox/ComboBoxLargeIcons.java +++ b/tests/src/com/vaadin/tests/components/combobox...
false
true
protected void setup() { ComboBox cb = new ComboBox(); cb.addContainerProperty("icon", Resource.class, null); cb.setItemIconPropertyId("icon"); getLayout().addComponent(cb); cb.setNullSelectionAllowed(false); String[] icons = new String[] { "folder-add", "folder-delet...
protected void setup() { ComboBox cb = new ComboBox(); cb.addContainerProperty("icon", Resource.class, null); cb.setItemIconPropertyId("icon"); getLayout().addComponent(cb); cb.setNullSelectionAllowed(false); String[] icons = new String[] { "folder-add", "folder-delet...
diff --git a/ps3mediaserver/net/pms/newgui/TranscodingTab.java b/ps3mediaserver/net/pms/newgui/TranscodingTab.java index db42c7f9..55fccdc5 100644 --- a/ps3mediaserver/net/pms/newgui/TranscodingTab.java +++ b/ps3mediaserver/net/pms/newgui/TranscodingTab.java @@ -1,691 +1,691 @@ /* * PS3 Media Server, for streaming a...
true
true
public JComponent buildCommon() { FormLayout layout = new FormLayout( "left:pref, 2dlu, pref:grow", "p, 2dlu, p, 2dlu, p, 2dlu, p, 2dlu, p, 2dlu, p, 9dlu, p, 2dlu, p, 2dlu, p, 2dlu, p, 2dlu, p,2dlu, p, 9dlu, p, 2dlu, p, 2dlu, p, 2dlu, p, 9dlu, p, 2dlu, p, 2dlu, p, 2dlu, p, 2dlu, p, 2dlu, p, 2dlu, p"); Panel...
public JComponent buildCommon() { FormLayout layout = new FormLayout( "left:pref, 2dlu, pref:grow", "p, 2dlu, p, 2dlu, p, 2dlu, p, 2dlu, p, 9dlu, p, 2dlu, p, 2dlu, p, 2dlu, p, 2dlu, p, 2dlu, p, 2dlu, p, 2dlu, p, 9dlu, p, 2dlu, p, 2dlu, p, 2dlu, p, 9dlu, p, 2dlu, p, 2dlu, p, 2dlu, p, 2dlu, p, 2dlu, p, 2dlu, p"...
diff --git a/52n-wps-webapp/src/test/java/org/n52/wps/test/WPS4RTester.java b/52n-wps-webapp/src/test/java/org/n52/wps/test/WPS4RTester.java index 121def48..b9716cc0 100644 --- a/52n-wps-webapp/src/test/java/org/n52/wps/test/WPS4RTester.java +++ b/52n-wps-webapp/src/test/java/org/n52/wps/test/WPS4RTester.java @@ -1,306...
false
true
public void calculatorWorksCorrectly() throws IOException, ParserConfigurationException, SAXException, XmlException { URL resource = WPS4RTester.class.getResource("/R/ExecuteTestCalculator.xml"); XmlObject xmlPayload = XmlObject.Factory.parse(resource); String payload = xmlPayload.toString()...
public void calculatorWorksCorrectly() throws IOException, ParserConfigurationException, SAXException, XmlException { URL resource = WPS4RTester.class.getResource("/R/ExecuteTestCalculator.xml"); XmlObject xmlPayload = XmlObject.Factory.parse(resource); String payload = xmlPayload.toString()...
diff --git a/src/org/accesointeligente/client/presenters/ResponseUserSatisfactionPresenter.java b/src/org/accesointeligente/client/presenters/ResponseUserSatisfactionPresenter.java index 51cd0a6..9c0952d 100644 --- a/src/org/accesointeligente/client/presenters/ResponseUserSatisfactionPresenter.java +++ b/src/org/acceso...
true
true
private void loadResponse() { if (responseId == null || responseKey == null) { showNotification("Falta más información para cargar esta ventana", NotificationEventType.ERROR); placeManager.revealDefaultPlace(); } requestService.getResponse(responseId, responseKey, new AsyncCallback<Response>() { @Over...
private void loadResponse() { if (responseId == null || responseKey == null) { showNotification("Falta más información para cargar esta ventana", NotificationEventType.ERROR); placeManager.revealDefaultPlace(); } requestService.getResponse(responseId, responseKey, new AsyncCallback<Response>() { @Over...
diff --git a/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/EntitiesVerifier.java b/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/EntitiesVerifier.java index 0255fd4..17a77d9 100644 --- a/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/EntitiesVerifie...
false
true
public void verify( String file ) throws Exception { HtmlPage page = htmlPage( file ); assertNotNull( page ); HtmlElement element = page.getHtmlElementById( "contentBox" ); assertNotNull( element ); HtmlDivision division = (HtmlDivision) element; asse...
public void verify( String file ) throws Exception { HtmlPage page = htmlPage( file ); assertNotNull( page ); HtmlElement element = page.getHtmlElementById( "contentBox" ); assertNotNull( element ); HtmlDivision division = (HtmlDivision) element; asse...
diff --git a/util/src/test/java/com/ning/billing/util/dao/TestStringTemplateInheritance.java b/util/src/test/java/com/ning/billing/util/dao/TestStringTemplateInheritance.java index 1306cfeb6..df148e12e 100644 --- a/util/src/test/java/com/ning/billing/util/dao/TestStringTemplateInheritance.java +++ b/util/src/test/java/...
true
true
public void testCheckQueries() throws Exception { // From http://www.antlr.org/wiki/display/ST/ST+condensed+--+Templates+and+groups#STcondensed--Templatesandgroups-Withsupergroupfile: // there is no mechanism for automatically loading a mentioned super-group file new StringTemplateGroup(...
public void testCheckQueries() throws Exception { // From http://www.antlr.org/wiki/display/ST/ST+condensed+--+Templates+and+groups#STcondensed--Templatesandgroups-Withsupergroupfile: // there is no mechanism for automatically loading a mentioned super-group file new StringTemplateGroup(...
diff --git a/components/bio-formats/src/loci/formats/in/CellSensReader.java b/components/bio-formats/src/loci/formats/in/CellSensReader.java index 18b6524e9..74818a1cd 100644 --- a/components/bio-formats/src/loci/formats/in/CellSensReader.java +++ b/components/bio-formats/src/loci/formats/in/CellSensReader.java @@ -1,1...
true
true
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); parser = new TiffParser(id); ifds = parser.getIFDs(); ArrayList<String> files = new ArrayList<String>(); Location file = new Location(id).getAbsoluteFile(); files.add(file.getAbsolutePath()); Lo...
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); parser = new TiffParser(id); ifds = parser.getIFDs(); ArrayList<String> files = new ArrayList<String>(); Location file = new Location(id).getAbsoluteFile(); files.add(file.getAbsolutePath()); Lo...
diff --git a/src/VASSAL/counters/PlaceMarker.java b/src/VASSAL/counters/PlaceMarker.java index 1bc990eb..422c4976 100644 --- a/src/VASSAL/counters/PlaceMarker.java +++ b/src/VASSAL/counters/PlaceMarker.java @@ -1,485 +1,485 @@ /* * $Id$ * * Copyright (c) 2000-2003 by Rodney Kinney * * This library is free so...
true
true
protected Command placeMarker() { final GamePiece marker = createMarker(); Command c = null; if (marker != null) { GamePiece outer = getOutermost(this); Point p = getPosition(); p.translate(xOffset, -yOffset); if (matchRotation) { FreeRotator myRotation = (FreeRotator) Deco...
protected Command placeMarker() { final GamePiece marker = createMarker(); Command c = null; if (marker != null) { GamePiece outer = getOutermost(this); Point p = getPosition(); p.translate(xOffset, -yOffset); if (matchRotation) { FreeRotator myRotation = (FreeRotator) Deco...