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/ini/trakem2/persistence/TMLHandler.java b/ini/trakem2/persistence/TMLHandler.java index 86f59ce0..356187a3 100644 --- a/ini/trakem2/persistence/TMLHandler.java +++ b/ini/trakem2/persistence/TMLHandler.java @@ -1,984 +1,984 @@ /** TrakEM2 plugin for ImageJ(C). Copyright (C) 2005-2009 Albert Cardona and...
true
true
private LayerThing makeLayerThing(String type, HashMap ht_attributes) { try { type = type.toLowerCase(); if (0 == type.indexOf("t2_")) { type = type.substring(3); } long id = -1; Object sid = ht_attributes.get("id"); if (null != sid) id = Long.parseLong((String)sid); long oid = -1; Object...
private LayerThing makeLayerThing(String type, HashMap ht_attributes) { try { type = type.toLowerCase(); if (0 == type.indexOf("t2_")) { type = type.substring(3); } long id = -1; Object sid = ht_attributes.get("id"); if (null != sid) id = Long.parseLong((String)sid); long oid = -1; Object...
diff --git a/platform/com.netifera.platform.ui/com.netifera.platform.ui.probe/src/com/netifera/platform/ui/probe/wizard/TCPListenChannelConfigPage.java b/platform/com.netifera.platform.ui/com.netifera.platform.ui.probe/src/com/netifera/platform/ui/probe/wizard/TCPListenChannelConfigPage.java index b2d79e0f..d3cff2bc 10...
false
true
private void verifyFields() { if (addressText.getText().isEmpty()) { setErrorMessage("Enter an IP address."); setPageComplete(false); return; } if (!addressValid(addressText.getText())) { setErrorMessage("Invalid IP address."); setPageComplete(false); return; } if (portText.getText().isEmpt...
private void verifyFields() { if (addressText.getText().length() == 0) { setErrorMessage("Enter an IP address."); setPageComplete(false); return; } if (!addressValid(addressText.getText())) { setErrorMessage("Invalid IP address."); setPageComplete(false); return; } if (portText.getText().le...
diff --git a/Homework1/src/de/uniluebeck/itm/kma/xuggler/FileAnalyzer.java b/Homework1/src/de/uniluebeck/itm/kma/xuggler/FileAnalyzer.java index ee5b987..9f6c401 100644 --- a/Homework1/src/de/uniluebeck/itm/kma/xuggler/FileAnalyzer.java +++ b/Homework1/src/de/uniluebeck/itm/kma/xuggler/FileAnalyzer.java @@ -1,237 +1,23...
true
true
public void analyzeMediafile(String fileName) { this.log("============================================================"); this.log(""); this.log("Analyzing metadata from file: \t'" + fileName + "'"); this.log(""); // Create local variables for Xuggler int numStreams = 0; IContainer cont...
public void analyzeMediafile(String fileName) { this.log("============================================================"); this.log(""); this.log("Analyzing metadata from file: \t'" + fileName + "'"); this.log(""); // Create local variables for Xuggler int numStreams = 0; IContainer cont...
diff --git a/src/main/groovy/groovyx/gpars/actor/Actor.java b/src/main/groovy/groovyx/gpars/actor/Actor.java index ca7a4b07..cbfbbe67 100644 --- a/src/main/groovy/groovyx/gpars/actor/Actor.java +++ b/src/main/groovy/groovyx/gpars/actor/Actor.java @@ -1,492 +1,492 @@ // GPars - Groovy Parallel Systems // // Copyright...
false
true
final List<ActorMessage> sweepQueue() { final List<ActorMessage> messages = new ArrayList<ActorMessage>(); ActorMessage message = sweepNextMessage(); while (message != null && message != STOP_MESSAGE) { final Object payloadList = InvokerHelper.invokeMethod(message.getPayLoad(), ...
final List<ActorMessage> sweepQueue() { final List<ActorMessage> messages = new ArrayList<ActorMessage>(); ActorMessage message = sweepNextMessage(); while (message != null && message != STOP_MESSAGE) { final Object senderMethodList = InvokerHelper.invokeMethod(message.getSender...
diff --git a/src/edu/sc/seis/sod/subsetter/waveformArm/PhaseRequest.java b/src/edu/sc/seis/sod/subsetter/waveformArm/PhaseRequest.java index 230cdf375..b7f8e077e 100644 --- a/src/edu/sc/seis/sod/subsetter/waveformArm/PhaseRequest.java +++ b/src/edu/sc/seis/sod/subsetter/waveformArm/PhaseRequest.java @@ -1,236 +1,242 @@...
true
true
public RequestFilter[] generateRequest(EventAccessOperations event, NetworkAccess network, Channel channel, CookieJar cookies) throws Exception{ Origin origin = null; doub...
public RequestFilter[] generateRequest(EventAccessOperations event, NetworkAccess network, Channel channel, CookieJar cookies) throws Exception{ Origin origin = null; doub...
diff --git a/src/main/java/cz/mallat/uasparser/OnlineUpdateUASparser.java b/src/main/java/cz/mallat/uasparser/OnlineUpdateUASparser.java index f4e168c..d6acb8f 100644 --- a/src/main/java/cz/mallat/uasparser/OnlineUpdateUASparser.java +++ b/src/main/java/cz/mallat/uasparser/OnlineUpdateUASparser.java @@ -1,79 +1,80 @@ ...
false
true
protected String getVersionFromServer() throws IOException { URL url = new URL(VERSION_CHECK_URL); try{ InputStream is = url.openStream(); } catch (ConnectException e) { return '0'; } try { byte[] buff = new byte[4048]; int len = is.read(buff); return new String(buff, 0, len);...
protected String getVersionFromServer() throws IOException { URL url = new URL(VERSION_CHECK_URL); InputStream is = null; try{ is = url.openStream(); } catch (ConnectException e) { return "0"; //not sure about this } try { byte[] buff = new byte[4048]; int len = is.read(buff); ...
diff --git a/core/src/test/java/org/zenoss/zep/dao/impl/ConfigDaoImplIT.java b/core/src/test/java/org/zenoss/zep/dao/impl/ConfigDaoImplIT.java index 5d14fe9..05de1f5 100644 --- a/core/src/test/java/org/zenoss/zep/dao/impl/ConfigDaoImplIT.java +++ b/core/src/test/java/org/zenoss/zep/dao/impl/ConfigDaoImplIT.java @@ -1,6...
true
true
public void testConfig() throws ZepException { ZepConfig.Builder builder = ZepConfig.newBuilder(); builder.setEventAgeDisableSeverity(EventSeverity.SEVERITY_CRITICAL); builder.setEventAgeSeverityInclusive(true); builder.setEventAgeIntervalMinutes(60); builder.setEventArchiveI...
public void testConfig() throws ZepException { ZepConfig.Builder builder = ZepConfig.newBuilder(); builder.setEventAgeDisableSeverity(EventSeverity.SEVERITY_CRITICAL); builder.setEventAgeSeverityInclusive(true); builder.setEventAgeIntervalMinutes(60); builder.setEventArchiveI...
diff --git a/de.walware.statet.r.ui/srcDebug/de/walware/statet/r/internal/debug/ui/launcher/RScriptDirectLaunchShortcut.java b/de.walware.statet.r.ui/srcDebug/de/walware/statet/r/internal/debug/ui/launcher/RScriptDirectLaunchShortcut.java index 6489701d..74d41983 100644 --- a/de.walware.statet.r.ui/srcDebug/de/walware/...
true
true
public void launch(final ISelection selection, final String mode) { assert mode.equals("run"); //$NON-NLS-1$ try { final IFile[] files = LTKSelectionUtil.getSelectedFiles(selection); if (files != null) { final int last = files.length-1; for (int i = 0; i <= last; i++) { final String[] lines =...
public void launch(final ISelection selection, final String mode) { assert mode.equals("run"); //$NON-NLS-1$ try { final IFile[] files = LTKSelectionUtil.getSelectedFiles(selection); if (files != null) { final int last = files.length-1; for (int i = 0; i <= last; i++) { final String[] lines =...
diff --git a/modules/world/palette/src/classes/org/jdesktop/wonderland/modules/palette/client/HUDCellPalette.java b/modules/world/palette/src/classes/org/jdesktop/wonderland/modules/palette/client/HUDCellPalette.java index c2cabe8ad..c249b40db 100644 --- a/modules/world/palette/src/classes/org/jdesktop/wonderland/modul...
true
true
private Image labelImage(BufferedImage image, String label) { if (label != null) { Graphics2D g2 = image.createGraphics(); String[] words = label.split(" "); // find the longest word String longest = ""; for (int i = 0; i < words.length; i++) { ...
private Image labelImage(BufferedImage image, String label) { if (label != null) { Graphics2D g2 = image.createGraphics(); String[] words = label.split(" "); // find the longest word String longest = ""; for (int i = 0; i < words.length; i++) { ...
diff --git a/kundera-rest/src/test/java/com/impetus/kundera/rest/resources/CRUDResourceTest.java b/kundera-rest/src/test/java/com/impetus/kundera/rest/resources/CRUDResourceTest.java index c0bf2481f..518d81e5e 100644 --- a/kundera-rest/src/test/java/com/impetus/kundera/rest/resources/CRUDResourceTest.java +++ b/kundera...
true
true
public void testCRUD() { WebResource webResource = resource(); if (MediaType.APPLICATION_XML.equals(mediaType)) { bookStr1 = "<book><isbn>1111111111111</isbn><author>Amresh</author><publication>Willey</publication></book>"; bookStr2 = "<book><isbn>2222222222222<...
public void testCRUD() { WebResource webResource = resource(); if (MediaType.APPLICATION_XML.equals(mediaType)) { bookStr1 = "<book><isbn>1111111111111</isbn><author>Amresh</author><publication>Willey</publication></book>"; bookStr2 = "<book><isbn>2222222222222<...
diff --git a/src/org/meta_environment/rascal/interpreter/Evaluator.java b/src/org/meta_environment/rascal/interpreter/Evaluator.java index 39c30a9914..a544474584 100644 --- a/src/org/meta_environment/rascal/interpreter/Evaluator.java +++ b/src/org/meta_environment/rascal/interpreter/Evaluator.java @@ -1,3561 +1,3561 @@...
true
true
private TraverseResult traverseOnce(Result<IValue> subject, CasesOrRules casesOrRules, DIRECTION direction, PROGRESS progress){ Type subjectType = subject.getType(); boolean matched = false; boolean changed = false; Result<IValue> result = subject; //System.err.println("traverseOnce: " + subject + "...
private TraverseResult traverseOnce(Result<IValue> subject, CasesOrRules casesOrRules, DIRECTION direction, PROGRESS progress){ Type subjectType = subject.getType(); boolean matched = false; boolean changed = false; Result<IValue> result = subject; //System.err.println("traverseOnce: " + subject + "...
diff --git a/src/main/java/org/apache/commons/codec/digest/Sha2Crypt.java b/src/main/java/org/apache/commons/codec/digest/Sha2Crypt.java index def37892..9c973992 100644 --- a/src/main/java/org/apache/commons/codec/digest/Sha2Crypt.java +++ b/src/main/java/org/apache/commons/codec/digest/Sha2Crypt.java @@ -1,515 +1,515 ...
true
true
private static String sha2Crypt(byte[] keyBytes, String salt, String saltPrefix, int blocksize, String algorithm) throws Exception { int keyLen = keyBytes.length; // Extracts effective salt and the number of rounds from the given salt. int rounds = ROUNDS_DEFAULT; boolea...
private static String sha2Crypt(byte[] keyBytes, String salt, String saltPrefix, int blocksize, String algorithm) throws Exception { int keyLen = keyBytes.length; // Extracts effective salt and the number of rounds from the given salt. int rounds = ROUNDS_DEFAULT; boolea...
diff --git a/src/com/NSBCoding/Nicolas.java b/src/com/NSBCoding/Nicolas.java index 8fd4e3f..1624527 100644 --- a/src/com/NSBCoding/Nicolas.java +++ b/src/com/NSBCoding/Nicolas.java @@ -1,1192 +1,1192 @@ package com.NSBCoding; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Ni...
true
true
public void paintComponent(Graphics g){ //if(Main.f.i.imagesLoaded) { super.paintComponent(g); this.setBackground(Color.WHITE); if(Reset){ character.x -= 10; } if(Restart){ maxHealth -= 1; } //Invisible lines...
public void paintComponent(Graphics g){ //if(Main.f.i.imagesLoaded) { super.paintComponent(g); this.setBackground(Color.WHITE); if(Reset){ character.x -= 10; } if(Restart){ maxHealth -= 1; } //Invisible lines...
diff --git a/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/FeedServlet.java b/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/FeedServlet.java index dc22d6211..c8e0b6c95 100644 --- a/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/FeedServlet.java +++ b/dspace-jspui/src/main/java/org/dspace/ap...
true
true
private Channel generateFeed(Context context, DSpaceObject dso) throws IOException, SQLException { try { // container-level elements String dspaceUrl = ConfigurationManager.getProperty("dspace.url"); String type = null; String description = null; String title = n...
private Channel generateFeed(Context context, DSpaceObject dso) throws IOException, SQLException { try { // container-level elements String dspaceUrl = ConfigurationManager.getProperty("dspace.url"); String type = null; String description = null; String title = n...
diff --git a/src/org/pentaho/agilebi/platform/JettyServer.java b/src/org/pentaho/agilebi/platform/JettyServer.java index a99afb8..35f589c 100755 --- a/src/org/pentaho/agilebi/platform/JettyServer.java +++ b/src/org/pentaho/agilebi/platform/JettyServer.java @@ -1,93 +1,93 @@ package org.pentaho.agilebi.platform; imp...
true
true
public void startServer() throws Exception { server = new Server(); WebAppContext pentahoContext = new WebAppContext(); pentahoContext.setContextPath("/pentaho"); //$NON-NLS-1$ pentahoContext.setWar("agile-bi/platform/webapps/pentaho"); //$NON-NLS-1$ pentahoContext.setParentLoaderPriority(tr...
public void startServer() throws Exception { server = new Server(); WebAppContext pentahoContext = new WebAppContext(); pentahoContext.setContextPath("/pentaho"); //$NON-NLS-1$ pentahoContext.setWar("plugins/spoon/agile-bi/platform/webapps/pentaho"); //$NON-NLS-1$ pentahoContext.setParentLoa...
diff --git a/org.eclipse.bpmn2.modeler.runtime.jboss.jbpm5/src/org/eclipse/bpmn2/modeler/runtime/jboss/jbpm5/property/JbpmDataItemsPropertiesComposite.java b/org.eclipse.bpmn2.modeler.runtime.jboss.jbpm5/src/org/eclipse/bpmn2/modeler/runtime/jboss/jbpm5/property/JbpmDataItemsPropertiesComposite.java index ba6a2df2..583...
true
true
public void createBindings(EObject be) { if (be instanceof Definitions) { Definitions definitions = (Definitions)be; for (RootElement re : definitions.getRootElements()) { if (re instanceof Process) { Process process = (Process)re; ExtensionValueTableComposite globalsTable = new ExtensionValueTab...
public void createBindings(EObject be) { if (be instanceof Definitions) { Definitions definitions = (Definitions)be; for (RootElement re : definitions.getRootElements()) { if (re instanceof Process) { Process process = (Process)re; ExtensionValueTableComposite globalsTable = new ExtensionValueTab...
diff --git a/src/com/homework/hw3/hsql/DbAccess.java b/src/com/homework/hw3/hsql/DbAccess.java index 7b072d2..5811016 100644 --- a/src/com/homework/hw3/hsql/DbAccess.java +++ b/src/com/homework/hw3/hsql/DbAccess.java @@ -1,237 +1,237 @@ package com.homework.hw3.hsql; import java.sql.*; import java.util.ArrayList; ...
true
true
public ArrayList<DbItem> getByLike(String str) throws SQLException { ArrayList list = new ArrayList(); Connection conn = DriverManager.getConnection(DB_URL); PreparedStatement ps = null; Statement stmt = null; ResultSet rset = null; try { ps = conn.prepareSta...
public ArrayList<DbItem> getByLike(String str) throws SQLException { ArrayList list = new ArrayList(); Connection conn = DriverManager.getConnection(DB_URL); PreparedStatement ps = null; Statement stmt = null; ResultSet rset = null; try { ps = conn.prepareSta...
diff --git a/core/src/main/java/com/metsci/glimpse/painter/info/SimpleTextPainter.java b/core/src/main/java/com/metsci/glimpse/painter/info/SimpleTextPainter.java index 707ab505..3d53fe60 100644 --- a/core/src/main/java/com/metsci/glimpse/painter/info/SimpleTextPainter.java +++ b/core/src/main/java/com/metsci/glimpse/p...
true
true
protected void paintToVertical( GL gl, int width, int height, Rectangle2D textBounds ) { int xText = padding; int yText = padding; double textWidth = textBounds.getWidth( ); double textHeight = textBounds.getHeight( ); double halfTextWidth = textWidth / ...
protected void paintToVertical( GL gl, int width, int height, Rectangle2D textBounds ) { int xText = padding; int yText = padding; double textWidth = textBounds.getWidth( ); double textHeight = textBounds.getHeight( ); int halfTextWidth = (int) ( textWid...
diff --git a/bundles/extensions/bundleresource/src/main/java/org/apache/sling/bundleresource/impl/BundleResourceProvider.java b/bundles/extensions/bundleresource/src/main/java/org/apache/sling/bundleresource/impl/BundleResourceProvider.java index 72870b6d53..c40222e8be 100644 --- a/bundles/extensions/bundleresource/src...
true
true
public Iterator<Resource> listChildren(final Resource parent) throws SlingException { if (((BundleResource)parent).getBundle() == this.bundle) { // bundle resources can handle this request directly when the parent // resource is in the same bundle as this provider. ...
public Iterator<Resource> listChildren(final Resource parent) throws SlingException { if (parent instanceof BundleResource && ((BundleResource)parent).getBundle() == this.bundle) { // bundle resources can handle this request directly when the parent // resource is in the same ...
diff --git a/source/RMG/jing/rxn/FastMasterEqn.java b/source/RMG/jing/rxn/FastMasterEqn.java index 0f9deba4..b4f10b49 100644 --- a/source/RMG/jing/rxn/FastMasterEqn.java +++ b/source/RMG/jing/rxn/FastMasterEqn.java @@ -1,1194 +1,1194 @@ //////////////////////////////////////////////////////////////////////////////// ...
true
true
public boolean parseOutputString(String output, PDepNetwork pdn, ReactionSystem rxnSystem, CoreEdgeReactionModel cerm, LinkedList<PDepIsomer> isomerList) throws PDepException { String dir = System.getProperty("RMG.workingDirectory"); double Tmin = 0, Tmax = 0, Pmin = 0, Pmax = 0; // JWA...
public boolean parseOutputString(String output, PDepNetwork pdn, ReactionSystem rxnSystem, CoreEdgeReactionModel cerm, LinkedList<PDepIsomer> isomerList) throws PDepException { String dir = System.getProperty("RMG.workingDirectory"); double Tmin = 0, Tmax = 0, Pmin = 0, Pmax = 0; // JWA...
diff --git a/src/main/java/vazkii/tinkerer/common/item/kami/tool/ToolHandler.java b/src/main/java/vazkii/tinkerer/common/item/kami/tool/ToolHandler.java index b77ab74d..c633c285 100644 --- a/src/main/java/vazkii/tinkerer/common/item/kami/tool/ToolHandler.java +++ b/src/main/java/vazkii/tinkerer/common/item/kami/tool/To...
true
true
public static void removeBlockWithDrops(EntityPlayer player, World world, int x, int y, int z, int bx, int by, int bz, int lockID, Material[] materialsListing, boolean silk, int fortune) { if(!world.blockExists(x, y, z)) return; int id = world.getBlockId(x, y, z); if(lockID != -1 && id != lockID) return;...
public static void removeBlockWithDrops(EntityPlayer player, World world, int x, int y, int z, int bx, int by, int bz, int lockID, Material[] materialsListing, boolean silk, int fortune) { if(!world.blockExists(x, y, z)) return; int id = world.getBlockId(x, y, z); if(lockID != -1 && id != lockID) return;...
diff --git a/orbisgis-core/src/test/java/org/orbisgis/core/plugin/PluginHostTest.java b/orbisgis-core/src/test/java/org/orbisgis/core/plugin/PluginHostTest.java index d1ab63d7f..471f91585 100644 --- a/orbisgis-core/src/test/java/org/orbisgis/core/plugin/PluginHostTest.java +++ b/orbisgis-core/src/test/java/org/orbisgis...
true
true
public void installGDMSFunctionBundle() throws Exception { DataManager dataManager = getDataManager(); assertNotNull(dataManager); FunctionManager manager = dataManager.getDataSourceFactory().getFunctionManager(); PluginHost host = startHost(); File bundlePath = new F...
public void installGDMSFunctionBundle() throws Exception { DataManager dataManager = getDataManager(); assertNotNull(dataManager); FunctionManager manager = dataManager.getDataSourceFactory().getFunctionManager(); PluginHost host = startHost(); File bundlePath = new F...
diff --git a/src/com/zynick/comparison/sites/Rakuten.java b/src/com/zynick/comparison/sites/Rakuten.java index 22f3adb..ca58622 100644 --- a/src/com/zynick/comparison/sites/Rakuten.java +++ b/src/com/zynick/comparison/sites/Rakuten.java @@ -1,54 +1,54 @@ package com.zynick.comparison.sites; import java.io.IOExcepti...
true
true
public List<Item> parse(String query, int size) throws IOException { // request for a page Document doc = Jsoup.connect("http://www.rakuten.com.my/search/" + query) .userAgent(Constant.HTTP_USER_AGENT) .timeout(Constant.HTTP_TIMEOUT).get();...
public List<Item> parse(String query, int size) throws IOException { // request for a page Document doc = Jsoup.connect("http://www.rakuten.com.my/search/" + query) .userAgent(Constant.HTTP_USER_AGENT) .timeout(Constant.HTTP_TIMEOUT).get();...
diff --git a/RankingAPI/src/org/gephi/ranking/impl/AbstractSizeTransformer.java b/RankingAPI/src/org/gephi/ranking/impl/AbstractSizeTransformer.java index ada849305..4ab926801 100644 --- a/RankingAPI/src/org/gephi/ranking/impl/AbstractSizeTransformer.java +++ b/RankingAPI/src/org/gephi/ranking/impl/AbstractSizeTransfor...
true
true
public float getSize(float normalizedValue) { if (interpolator != null) { normalizedValue = interpolator.interpolate(normalizedValue); } return normalizedValue * maxSize + minSize; }
public float getSize(float normalizedValue) { if (interpolator != null) { normalizedValue = interpolator.interpolate(normalizedValue); } return normalizedValue * (maxSize - minSize) + minSize; }
diff --git a/src/net/k3rnel/arena/client/network/TCPManager.java b/src/net/k3rnel/arena/client/network/TCPManager.java index 29afc83..59eb0a7 100644 --- a/src/net/k3rnel/arena/client/network/TCPManager.java +++ b/src/net/k3rnel/arena/client/network/TCPManager.java @@ -1,128 +1,128 @@ /** * This file is part of Distr...
true
true
public TCPManager(String server,GameClient game) throws IOException { this.m_game = game; this.client = new Client(); this.host = server; client.start(); NetworkProtocols.register(client); //This allows us to get incoming classes and all. client.addListener(new Listener(){ public void con...
public TCPManager(String server,GameClient game) throws IOException { this.m_game = game; this.client = new Client(); this.host = server; client.start(); NetworkProtocols.register(client); //This allows us to get incoming classes and all. client.addListener(new Listener(){ public void con...
diff --git a/src/main/java/com/scheffield/ria/loading/SlowServingServlet.java b/src/main/java/com/scheffield/ria/loading/SlowServingServlet.java index bb91273..f31468f 100644 --- a/src/main/java/com/scheffield/ria/loading/SlowServingServlet.java +++ b/src/main/java/com/scheffield/ria/loading/SlowServingServlet.java @@ ...
true
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { final Integer timeToWait = Integer.valueOf(req.getParameter(TIME_TO_WAIT_PARAM)); final String resource = req.getParameter(RESOURCE_TO_LOAD); try { Thread.currentThread().wait(timeToWait * 10...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { final Integer timeToWait = Integer.valueOf(req.getParameter(TIME_TO_WAIT_PARAM)); final String resource = req.getParameter(RESOURCE_TO_LOAD); try { Thread.sleep(timeToWait * 1000); } catch ...
diff --git a/src/java/org/wings/plaf/css/msie/ScrollPaneLayoutCG.java b/src/java/org/wings/plaf/css/msie/ScrollPaneLayoutCG.java index bb6e90e6..1755eeee 100644 --- a/src/java/org/wings/plaf/css/msie/ScrollPaneLayoutCG.java +++ b/src/java/org/wings/plaf/css/msie/ScrollPaneLayoutCG.java @@ -1,96 +1,92 @@ package org.wi...
true
true
protected void writePaging(Device d, SScrollPaneLayout layout) throws IOException { SDimension preferredSize = layout.getContainer().getPreferredSize(); if (preferredSize == null) { super.write(d, layout); return; } String height = preferredSize.getHeight(); ...
protected void writePaging(Device d, SScrollPaneLayout layout) throws IOException { SDimension preferredSize = layout.getContainer().getPreferredSize(); if (preferredSize == null || preferredSize.getHeight() == null || SDimension.AUTO.equals(preferredSize.getHeight())) { ...
diff --git a/src/Tests/functionalTests/ComponentTest.java b/src/Tests/functionalTests/ComponentTest.java index 8577265ae..c2c1b168c 100644 --- a/src/Tests/functionalTests/ComponentTest.java +++ b/src/Tests/functionalTests/ComponentTest.java @@ -1,77 +1,77 @@ /* * #####################################################...
true
true
public static void preConditions() throws Exception { if (!"enable".equals(ProActiveConfiguration.getInstance() .getProperty("proactive.future.ac"))) { throw new Exception( "The components framework needs the automatic contin...
public static void componentPreConditions() throws Exception { if (!"enable".equals(ProActiveConfiguration.getInstance() .getProperty("proactive.future.ac"))) { throw new Exception( "The components framework needs the automat...
diff --git a/src/com/nolanlawson/keepscore/HistoryActivity.java b/src/com/nolanlawson/keepscore/HistoryActivity.java index d4c674b..df915cd 100644 --- a/src/com/nolanlawson/keepscore/HistoryActivity.java +++ b/src/com/nolanlawson/keepscore/HistoryActivity.java @@ -1,76 +1,77 @@ package com.nolanlawson.keepscore; im...
false
true
private void createAdapter() { adapter = new SeparatedListAdapter(this); List<String> sectionHeaders = new ArrayList<String>(); List<List<HistoryItem>> sections = new ArrayList<List<HistoryItem>>(); for (PlayerScore playerScore : game.getPlayerScores()) { String header = playerScore.toDisplayName(t...
private void createAdapter() { adapter = new SeparatedListAdapter(this); List<String> sectionHeaders = new ArrayList<String>(); List<List<HistoryItem>> sections = new ArrayList<List<HistoryItem>>(); for (PlayerScore playerScore : game.getPlayerScores()) { String header = playerScore.toDisplayName(t...
diff --git a/org/python/core/PyString.java b/org/python/core/PyString.java index 8d916996..0dec8549 100644 --- a/org/python/core/PyString.java +++ b/org/python/core/PyString.java @@ -1,499 +1,501 @@ package org.python.core; public class PyString extends PySequence { private String string; private transient int ...
true
true
public String format(PyObject args) { PyObject dict = null; this.args = args; if (args instanceof PyTuple) { argIndex = 0; } else { // special index indicating a single item rather than a tuple argIndex = -1; if (args instanceof PyDicti...
public String format(PyObject args) { PyObject dict = null; this.args = args; if (args instanceof PyTuple) { argIndex = 0; } else { // special index indicating a single item rather than a tuple argIndex = -1; if (args instanceof PyDicti...
diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/partition/MinMaxPartitioner.java b/spring-batch-core/src/test/java/org/springframework/batch/core/partition/MinMaxPartitioner.java index c8c12aaa5..d52f20508 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/partition/...
true
true
public Map<String, ExecutionContext> partition(int gridSize) { Map<String, ExecutionContext> partition = super.partition(gridSize); int total = 8; // The number of items in the ExampleItemReader int range = total/gridSize; int i = 0; for (ExecutionContext context : partition.values()) { int min = (i++)*ra...
public Map<String, ExecutionContext> partition(int gridSize) { Map<String, ExecutionContext> partition = super.partition(gridSize); int total = 8; // The number of items in the ExampleItemReader int range = total/gridSize; int i = 0; for (ExecutionContext context : partition.values()) { int min = (i++)*ra...
diff --git a/src/ProjectControl/src/org/cvut/wa2/projectcontrol/CreateTaskServlet.java b/src/ProjectControl/src/org/cvut/wa2/projectcontrol/CreateTaskServlet.java index 9e20e02..f01c236 100644 --- a/src/ProjectControl/src/org/cvut/wa2/projectcontrol/CreateTaskServlet.java +++ b/src/ProjectControl/src/org/cvut/wa2/proje...
true
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { UserService userService = UserServiceFactory.getUserService(); RequestDispatcher disp = null; if (userService.isUserLoggedIn()) { String owner = userService.getCurrentUser().getEmail(); disp = r...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { UserService userService = UserServiceFactory.getUserService(); RequestDispatcher disp = null; if (userService.isUserLoggedIn()) { String owner = userService.getCurrentUser().getEmail(); disp = r...
diff --git a/src/com/untamedears/ItemExchange/command/commands/CreateCommand.java b/src/com/untamedears/ItemExchange/command/commands/CreateCommand.java index e27c1ac..2e3742e 100644 --- a/src/com/untamedears/ItemExchange/command/commands/CreateCommand.java +++ b/src/com/untamedears/ItemExchange/command/commands/Create...
true
true
public boolean execute(CommandSender sender, String[] args) { Player player = (Player) sender; Block block = player.getLastTwoTargetBlocks(null, 20).get(1).getLocation().getBlock(); //If no input or ouptut is specified player attempt to set up ItemExchange at the block the player is looking at //The player mus...
public boolean execute(CommandSender sender, String[] args) { Player player = (Player) sender; Block block = player.getLastTwoTargetBlocks(null, 20).get(1).getLocation().getBlock(); //If no input or ouptut is specified player attempt to set up ItemExchange at the block the player is looking at //The player mus...
diff --git a/src/com/android/bluetooth/map/BluetoothMapAppParams.java b/src/com/android/bluetooth/map/BluetoothMapAppParams.java index ffdd2f1..554f422 100644 --- a/src/com/android/bluetooth/map/BluetoothMapAppParams.java +++ b/src/com/android/bluetooth/map/BluetoothMapAppParams.java @@ -1,798 +1,798 @@ /* * Copyrigh...
false
true
private void ParseParams(final byte[] appParams) throws ParseException, IllegalArgumentException { int i = 0; int tagId, tagLength; ByteBuffer appParamBuf = ByteBuffer.wrap(appParams); appParamBuf.order(ByteOrder.BIG_ENDIAN); while (i < appParams.length) { ...
private void ParseParams(final byte[] appParams) throws ParseException, IllegalArgumentException { int i = 0; int tagId, tagLength; ByteBuffer appParamBuf = ByteBuffer.wrap(appParams); appParamBuf.order(ByteOrder.BIG_ENDIAN); while (i < appParams.length) { ...
diff --git a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/actions/PartialNewSessionAction.java b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/actions/PartialNewSessionAction.java index aa2c9bd87..29992ceaf 100644 --- a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/actions/PartialNewSessionAction.java +++ b/d...
true
true
public void run(IAction action) { final PartialProjectSelectionDialog dialog = new PartialProjectSelectionDialog( null, this.selectedProject); if (dialog.open() == Window.OK) { Util.runSafeSync(log, new Runnable() { public void run() { run...
public void run(IAction action) { final PartialProjectSelectionDialog dialog = new PartialProjectSelectionDialog( null, this.selectedProject); if (dialog.open() == Window.OK) { Util.runSafeSync(log, new Runnable() { public void run() { run...
diff --git a/org.openscada.ae/src/org/openscada/ae/MonitorStatusInformation.java b/org.openscada.ae/src/org/openscada/ae/MonitorStatusInformation.java index 049637ef4..4f111466b 100644 --- a/org.openscada.ae/src/org/openscada/ae/MonitorStatusInformation.java +++ b/org.openscada.ae/src/org/openscada/ae/MonitorStatusInfo...
true
true
public MonitorStatusInformation ( final String id, final MonitorStatus status, final Date statusTimestamp, final Variant value, final Date lastAknTimestamp, final String lastAknUser, final Map<String, Variant> attributes ) { super (); this.id = id; this.status = status; this.sta...
public MonitorStatusInformation ( final String id, final MonitorStatus status, final Date statusTimestamp, final Variant value, final Date lastAknTimestamp, final String lastAknUser, final Map<String, Variant> attributes ) { super (); this.id = id; this.status = status; this.sta...
diff --git a/bundles/org.eclipse.rap.ui/src/org/eclipse/ui/internal/UIPreferenceInitializer.java b/bundles/org.eclipse.rap.ui/src/org/eclipse/ui/internal/UIPreferenceInitializer.java index a10f9f23d..9ac4022be 100755 --- a/bundles/org.eclipse.rap.ui/src/org/eclipse/ui/internal/UIPreferenceInitializer.java +++ b/bundles...
false
true
public void initializeDefaultPreferences() { IScopeContext context = new DefaultScope(); IEclipsePreferences node = context.getNode(UIPlugin.getDefault() .getBundle().getSymbolicName()); node.put(IWorkbenchPreferenceConstants.OPEN_NEW_PERSPECTIVE, IWorkbenchPreferenceConstants.OPEN_PERSPECTIVE_REPLAC...
public void initializeDefaultPreferences() { IScopeContext context = new DefaultScope(); IEclipsePreferences node = context.getNode(UIPlugin.getDefault() .getBundle().getSymbolicName()); node.put(IWorkbenchPreferenceConstants.OPEN_NEW_PERSPECTIVE, IWorkbenchPreferenceConstants.OPEN_PERSPECTIVE_REPLAC...
diff --git a/NCWITMOBILEAPP-Android/src/com/ncwitmobileapp/Login_Screen.java b/NCWITMOBILEAPP-Android/src/com/ncwitmobileapp/Login_Screen.java index 2cece7c..1edb004 100644 --- a/NCWITMOBILEAPP-Android/src/com/ncwitmobileapp/Login_Screen.java +++ b/NCWITMOBILEAPP-Android/src/com/ncwitmobileapp/Login_Screen.java @@ -1,1...
false
true
public void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceState); setContentView(R.layout.logins); final Button login = (Button)findViewById(R.id.login); login.setOnClickListener(new View.OnClickListener() { ...
public void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceState); setContentView(R.layout.logins); final Button login = (Button)findViewById(R.id.login); login.setOnClickListener(new View.OnClickListener...
diff --git a/src/gui/GUI_Nest.java b/src/gui/GUI_Nest.java index 48433c8..6d6f3a1 100644 --- a/src/gui/GUI_Nest.java +++ b/src/gui/GUI_Nest.java @@ -1,201 +1,202 @@ package gui; import java.util.List; import java.util.ArrayList; import java.util.Random; import state.*; import agents.NestAgent; import agent...
true
true
public void updateGraphics() { //TODO: Add animation for flushing parts, call DoneFlushedParts when done. for (int i = 0; i < partList.size(); i++) { GUI_Part part = partList.get(i); // Set the x and y coordinates to have fish fill from the left side, // column by column. int x = (i / 2) * (clumped...
public void updateGraphics() { //TODO: Add animation for flushing parts, call DoneFlushedParts when done. for (int i = 0; i < partList.size(); i++) { GUI_Part part = partList.get(i); // Set the x and y coordinates to have fish fill from the left side, // column by column. int x = (i / 2) * (clumped...
diff --git a/src/main/java/org/iplantc/core/uidiskresource/client/sharing/views/DataSharingPermissionsPanel.java b/src/main/java/org/iplantc/core/uidiskresource/client/sharing/views/DataSharingPermissionsPanel.java index d537965..c92368d 100644 --- a/src/main/java/org/iplantc/core/uidiskresource/client/sharing/views/Da...
false
true
private ColumnModel<DataSharing> buildColumnModel() { List<ColumnConfig<DataSharing, ?>> configs = new ArrayList<ColumnConfig<DataSharing, ?>>(); DataSharingProperties props = GWT.create(DataSharingProperties.class); ColumnConfig<DataSharing, String> name = new ColumnConfig<DataSharing, Stri...
private ColumnModel<DataSharing> buildColumnModel() { List<ColumnConfig<DataSharing, ?>> configs = new ArrayList<ColumnConfig<DataSharing, ?>>(); DataSharingProperties props = GWT.create(DataSharingProperties.class); ColumnConfig<DataSharing, String> name = new ColumnConfig<DataSharing, Stri...
diff --git a/JsTestDriver/src/com/google/jstestdriver/ConfigurationParser.java b/JsTestDriver/src/com/google/jstestdriver/ConfigurationParser.java index 7eabea2..0ac03ce 100644 --- a/JsTestDriver/src/com/google/jstestdriver/ConfigurationParser.java +++ b/JsTestDriver/src/com/google/jstestdriver/ConfigurationParser.java...
true
true
private Set<FileInfo> resolveFiles(List<String> files, boolean serveOnly) { if (files != null) { Set<FileInfo> resolvedFiles = new LinkedHashSet<FileInfo>(); for (String f : files) { f = pathRewriter.rewrite(f); boolean isPatch = f.startsWith("patch"); if (isPatch) { ...
private Set<FileInfo> resolveFiles(List<String> files, boolean serveOnly) { if (files != null) { Set<FileInfo> resolvedFiles = new LinkedHashSet<FileInfo>(); for (String f : files) { f = pathRewriter.rewrite(f); boolean isPatch = f.startsWith("patch"); if (isPatch) { ...
diff --git a/CookieSlap/src/rageteam/cookieslap/main/CS.java b/CookieSlap/src/rageteam/cookieslap/main/CS.java index df110f8..337649e 100644 --- a/CookieSlap/src/rageteam/cookieslap/main/CS.java +++ b/CookieSlap/src/rageteam/cookieslap/main/CS.java @@ -1,136 +1,137 @@ package rageteam.cookieslap.main; import org.bu...
true
true
public void onEnable(){ loadDependicies(); loadHandlers(); registerCommands(); logger.log(false, "Loading CS Dependicies"); //ScoreBoard manager = Bukkit.getScoreboardManager(); board = manager.getNewScoreboard(); obj = board.registerNewObjective("CookieSlap", "dummy"); obj.setDisplayName(Ch...
public void onEnable(){ loadDependicies(); loadHandlers(); registerCommands(); logger.log(false, "Loading CS Dependicies"); //ScoreBoard manager = Bukkit.getScoreboardManager(); board = manager.getNewScoreboard(); obj = board.registerNewObjective("CookieSlap", "dummy"); obj.setDisplayName(Ch...
diff --git a/src/vue/terminal/secondaryFramed/SecondaryFrame.java b/src/vue/terminal/secondaryFramed/SecondaryFrame.java index c1d9d06..0e4959f 100644 --- a/src/vue/terminal/secondaryFramed/SecondaryFrame.java +++ b/src/vue/terminal/secondaryFramed/SecondaryFrame.java @@ -1,79 +1,73 @@ /* * To change this template, ...
false
true
private void initialize() { this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); this.addWindowListener(new WindowListener() { @Override public void windowOpened(WindowEvent we) { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templ...
private void initialize() { this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); this.addWindowListener(new WindowListener() { @Override public void windowOpened(WindowEvent we) { } @Override public void windowClosing(WindowEvent we) { TerminalController.doCancel(); } @Override pub...
diff --git a/de.hswt.hrm.plant.ui/src/de/hswt/hrm/plant/ui/wizard/PlantWizard.java b/de.hswt.hrm.plant.ui/src/de/hswt/hrm/plant/ui/wizard/PlantWizard.java index fa528194..2d66dc1b 100644 --- a/de.hswt.hrm.plant.ui/src/de/hswt/hrm/plant/ui/wizard/PlantWizard.java +++ b/de.hswt.hrm.plant.ui/src/de/hswt/hrm/plant/ui/wizar...
true
true
private Plant setValues(Optional<Plant> p) { HashMap<String, Text> mandatoryWidgets = first.getMandatoryWidgets(); String description = mandatoryWidgets.get("description").getText(); //TODO place - mandatory? //TODO nextInspection / inspectionIntervall? String inspectionInter...
private Plant setValues(Optional<Plant> p) { HashMap<String, Text> mandatoryWidgets = first.getMandatoryWidgets(); String description = mandatoryWidgets.get("description").getText(); //TODO place - mandatory? //TODO nextInspection / inspectionIntervall? String inspectionInter...
diff --git a/app/FindReplace.java b/app/FindReplace.java index 6cdfdff35..51fedc5d1 100644 --- a/app/FindReplace.java +++ b/app/FindReplace.java @@ -1,339 +1,336 @@ /* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* Part of the Processing project - http://processing.org Copyright (c) 2004-...
false
true
public FindReplace(Editor editor) { super("Find"); setResizable(false); this.editor = editor; Container pain = getContentPane(); pain.setLayout(null); JLabel findLabel = new JLabel("Find:"); Dimension d0 = findLabel.getPreferredSize(); JLabel replaceLabel = new JLabel("Replace with:"...
public FindReplace(Editor editor) { super("Find"); setResizable(false); this.editor = editor; Container pain = getContentPane(); pain.setLayout(null); JLabel findLabel = new JLabel("Find:"); Dimension d0 = findLabel.getPreferredSize(); JLabel replaceLabel = new JLabel("Replace with:"...
diff --git a/servers/media/core/server-impl/src/main/java/org/mobicents/media/server/impl/events/announcement/AudioPlayer.java b/servers/media/core/server-impl/src/main/java/org/mobicents/media/server/impl/events/announcement/AudioPlayer.java index 26ae985e4..78d210947 100755 --- a/servers/media/core/server-impl/src/ma...
true
true
public void start(String file) { URL url = null; try { url = new URL(file); } catch (IOException e) { this.failed(e); return; } //speex support try { synchronized (this) { stream = AudioSystem.getAudioIn...
public void start(String file) { URL url = null; try { url = new URL(file); } catch (IOException e) { logger.error("IOException in file "+ file, e); this.failed(e); return; } //speex support try { synchronized ...
diff --git a/Sources/net/rujel/reusables/SessionedEditingContext.java b/Sources/net/rujel/reusables/SessionedEditingContext.java index c763f8b..4c1ee01 100644 --- a/Sources/net/rujel/reusables/SessionedEditingContext.java +++ b/Sources/net/rujel/reusables/SessionedEditingContext.java @@ -1,165 +1,165 @@ // SessionedE...
true
true
public void lock() { String nameOfCurrentThread = Thread.currentThread().getName(); Exception e = new Exception(df.format(new Date())); String trace = WOLogFormatter.formatTrowable(e); if (_stackTraces.count() == 0) { _stackTraces.addObject(trace); _nameOfLock...
public void lock() { String nameOfCurrentThread = Thread.currentThread().getName(); Exception e = new Exception(df.format(new Date())); String trace = WOLogFormatter.formatTrowable(e); if (_stackTraces.count() == 0) { _stackTraces.addObject(trace); _nameOfLock...
diff --git a/closure/closure-templates/java/src/com/google/template/soy/data/SoyData.java b/closure/closure-templates/java/src/com/google/template/soy/data/SoyData.java index 35198e5fd..f90219485 100644 --- a/closure/closure-templates/java/src/com/google/template/soy/data/SoyData.java +++ b/closure/closure-templates/ja...
false
true
public static SoyData createFromExistingData(Object obj) { if (obj == null) { return NullData.INSTANCE; } else if (obj instanceof SoyData) { return (SoyData) obj; } else if (obj instanceof String) { return new StringData((String) obj); } else if (obj instanceof Boolean) { retu...
public static SoyData createFromExistingData(Object obj) { if (obj == null) { return NullData.INSTANCE; } else if (obj instanceof SoyData) { return (SoyData) obj; } else if (obj instanceof String) { return new StringData((String) obj); } else if (obj instanceof Boolean) { retu...
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java index b46d0203..03bb9df1 100644 --- a/src/com/android/browser/BrowserActivity.java +++ b/src/com/android/browser/BrowserActivity.java @@ -1,4114 +1,4112 @@ /* * Copyright (C) 2006 The Android Open Source Project ...
true
true
public void onCreate(Bundle icicle) { if (LOGV_ENABLED) { Log.v(LOGTAG, this + " onStart"); } super.onCreate(icicle); // test the browser in OpenGL // requestWindowFeature(Window.FEATURE_OPENGL); // enable this to test the browser in 32bit if (fal...
public void onCreate(Bundle icicle) { if (LOGV_ENABLED) { Log.v(LOGTAG, this + " onStart"); } super.onCreate(icicle); // test the browser in OpenGL // requestWindowFeature(Window.FEATURE_OPENGL); // enable this to test the browser in 32bit if (fal...
diff --git a/web/src/main/java/org/fao/geonet/kernel/csw/services/GetRecords.java b/web/src/main/java/org/fao/geonet/kernel/csw/services/GetRecords.java index 945890af5c..fe1f516cee 100644 --- a/web/src/main/java/org/fao/geonet/kernel/csw/services/GetRecords.java +++ b/web/src/main/java/org/fao/geonet/kernel/csw/servic...
false
true
public Element execute(Element request, ServiceContext context) throws CatalogException { String timeStamp = new ISODate().toString(); // // some validation checks (note: this is not an XSD validation) // // must be "CSW" checkService(request); // must be "...
public Element execute(Element request, ServiceContext context) throws CatalogException { String timeStamp = new ISODate().toString(); // // some validation checks (note: this is not an XSD validation) // // must be "CSW" checkService(request); // must be "...
diff --git a/org.knime.knip.imagej1/src/org/knime/knip/imagej1/IJMacroNodeFactory.java b/org.knime.knip.imagej1/src/org/knime/knip/imagej1/IJMacroNodeFactory.java index 62bb8c1..7be8af0 100644 --- a/org.knime.knip.imagej1/src/org/knime/knip/imagej1/IJMacroNodeFactory.java +++ b/org.knime.knip.imagej1/src/org/knime/knip...
false
true
public ValueToCellNodeModel<ImgPlusValue, ImgPlusCell> createNodeModel() { return new ValueToCellNodeModel<ImgPlusValue, ImgPlusCell>(new PortType[]{}, new PortType[]{BufferedDataTable.TYPE}) { private final SettingsModelSerializableObjects<SerializableSetting<String>> m_macroSe...
public ValueToCellNodeModel<ImgPlusValue, ImgPlusCell> createNodeModel() { return new ValueToCellNodeModel<ImgPlusValue, ImgPlusCell>(new PortType[]{}, new PortType[]{BufferedDataTable.TYPE}) { private final SettingsModelSerializableObjects<SerializableSetting<String>> m_macroSe...
diff --git a/src/main/java/me/desht/dhutils/ExperienceManager.java b/src/main/java/me/desht/dhutils/ExperienceManager.java index 6f28b9f..3303bfe 100644 --- a/src/main/java/me/desht/dhutils/ExperienceManager.java +++ b/src/main/java/me/desht/dhutils/ExperienceManager.java @@ -1,207 +1,212 @@ package me.desht.dhutils; ...
false
true
private static void initLookupTables(int maxLevel) { xpRequiredForNextLevel = new int[maxLevel]; xpTotalToReachLevel = new int[maxLevel]; xpTotalToReachLevel[0] = 0; // Code valid for MC 1.2 and earlier // int incr = 7; // for (int i = 1; i < xpTotalToReachLevel.length; i++) { // xpRequiredForNextLevel[i ...
private static void initLookupTables(int maxLevel) { xpRequiredForNextLevel = new int[maxLevel]; xpTotalToReachLevel = new int[maxLevel]; xpTotalToReachLevel[0] = 0; // Code valid for MC 1.2 and earlier // int incr = 7; // for (int i = 1; i < xpTotalToReachLevel.length; i++) { // xpRequiredForNextLevel[i ...
diff --git a/src/org/newdawn/slick/GameContainer.java b/src/org/newdawn/slick/GameContainer.java index cd4e799..63ddaf9 100644 --- a/src/org/newdawn/slick/GameContainer.java +++ b/src/org/newdawn/slick/GameContainer.java @@ -1,511 +1,511 @@ package org.newdawn.slick; import java.util.Properties; import org.lwjgl...
true
true
protected void updateAndRender(int delta) throws SlickException { storedDelta += delta; input.poll(width, height); SoundStore.get().poll(delta); if (storedDelta >= minimumLogicInterval) { try { if (maximumLogicInterval != 0) { long cycles = storedDelta / maximumLogicInterval; for (int i=0;i...
protected void updateAndRender(int delta) throws SlickException { storedDelta += delta; input.poll(width, height); SoundStore.get().poll(delta); if (storedDelta >= minimumLogicInterval) { try { if (maximumLogicInterval != 0) { long cycles = storedDelta / maximumLogicInterval; for (int i=0;i...
diff --git a/extensions/applib/src/org/eigenbase/applib/util/CreateTbFromSelectStmtUdp.java b/extensions/applib/src/org/eigenbase/applib/util/CreateTbFromSelectStmtUdp.java index c77b12e62..598f575d4 100644 --- a/extensions/applib/src/org/eigenbase/applib/util/CreateTbFromSelectStmtUdp.java +++ b/extensions/applib/src/...
true
true
public static void execute( String targetSchemaName, String targetTableName, String selectStmt, boolean shouldLoad) throws Exception { FarragoRepos repos = FarragoUdrRuntime.getSession().getRepos(); String schema = targetSchemaName; String table = ...
public static void execute( String targetSchemaName, String targetTableName, String selectStmt, boolean shouldLoad) throws Exception { FarragoRepos repos = FarragoUdrRuntime.getSession().getRepos(); String schema = targetSchemaName; String table = ...
diff --git a/src/com/cs371m/austinrecycle/SplashScreenActivity.java b/src/com/cs371m/austinrecycle/SplashScreenActivity.java index ec8a307..67c1de8 100644 --- a/src/com/cs371m/austinrecycle/SplashScreenActivity.java +++ b/src/com/cs371m/austinrecycle/SplashScreenActivity.java @@ -1,74 +1,74 @@ package com.cs371m.austi...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash_screen); new Handler().postDelayed(new Runnable() { @Override public void run() { // Check if it is connecting to Internet ConnectivityManager conMan = (ConnectivityMa...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash_screen); new Handler().postDelayed(new Runnable() { @Override public void run() { // Check if it is connecting to Internet ConnectivityManager conMan = (ConnectivityMa...
diff --git a/core/test/src/com/google/zxing/oned/CodaBarWriterTestCase.java b/core/test/src/com/google/zxing/oned/CodaBarWriterTestCase.java index edc3e458..d621fb88 100644 --- a/core/test/src/com/google/zxing/oned/CodaBarWriterTestCase.java +++ b/core/test/src/com/google/zxing/oned/CodaBarWriterTestCase.java @@ -1,43 ...
true
true
public void testEncode() throws WriterException { // 1001001011 0 110101001 0 101011001 0 110101001 0 101001101 0 110010101 0 1101101011 0 // 1001001011 String resultStr = "0000000000" + "1001001011011010100101010110010110101001010100110101100101010110110101101001001011" + "0000000000"; ...
public void testEncode() throws WriterException { // 1001001011 0 110101001 0 101011001 0 110101001 0 101001101 0 110010101 0 1101101011 0 // 1001001011 String resultStr = "0000000000" + "1001001011011010100101010110010110101001010100110101100101010110110101101001001011" + "0000000000"; ...
diff --git a/src/somebody/is/madbro/handlers/chat/ChatSpamHandler.java b/src/somebody/is/madbro/handlers/chat/ChatSpamHandler.java index dcb3730..885b950 100644 --- a/src/somebody/is/madbro/handlers/chat/ChatSpamHandler.java +++ b/src/somebody/is/madbro/handlers/chat/ChatSpamHandler.java @@ -1,95 +1,95 @@ package some...
true
true
public void handle(Player player, PlayerChatEvent event) { try { if (!Settings.enabled) { return; } String pN = player.getName(); if (Permissions.SPAM.getPermission(event.getPlayer()) || !Settings.enableAntiSpam) { return; } if (antibot.getDataTrack().getBotTracker().autokick.con...
public void handle(Player player, PlayerChatEvent event) { try { if (!Settings.enabled) { return; } String pN = player.getName(); if (Permissions.CHATSPAM.getPermission(event.getPlayer()) || !Settings.enableAntiSpam) { return; } if (antibot.getDataTrack().getBotTracker().autokick...
diff --git a/MonacaFramework/src/mobi/monaca/framework/MonacaApplication.java b/MonacaFramework/src/mobi/monaca/framework/MonacaApplication.java index 252d52d..d747337 100644 --- a/MonacaFramework/src/mobi/monaca/framework/MonacaApplication.java +++ b/MonacaFramework/src/mobi/monaca/framework/MonacaApplication.java @@ ...
true
true
public void loadAppJsonSetting() { JSONObject appJson = null; try { InputStream stream = getResources().getAssets().open("app.json"); byte[] buffer = new byte[stream.available()]; stream.read(buffer); appJson = new JSONObject(new String(buffer, "UTF-8")); } catch (IOException e) { MyLog.e(TAG, e.g...
public void loadAppJsonSetting() { JSONObject appJson = null; try { InputStream stream = getResources().getAssets().open("app.json"); byte[] buffer = new byte[stream.available()]; stream.read(buffer); appJson = new JSONObject(new String(buffer, "UTF-8")); } catch (IOException e) { MyLog.e(TAG, e.g...
diff --git a/src/main/java/net/aufdemrand/denizen/objects/dList.java b/src/main/java/net/aufdemrand/denizen/objects/dList.java index 8cc040847..92552623d 100644 --- a/src/main/java/net/aufdemrand/denizen/objects/dList.java +++ b/src/main/java/net/aufdemrand/denizen/objects/dList.java @@ -1,398 +1,403 @@ package net.au...
false
true
public String getAttribute(Attribute attribute) { if (attribute == null) return null; // <-- // <li@list.as_cslist> -> Element // returns 'comma-separated' list of the contents of this dList. // --> if (attribute.startsWith("ascslist") || attribute.s...
public String getAttribute(Attribute attribute) { if (attribute == null) return null; // <-- // <li@list.as_cslist> -> Element // returns 'comma-separated' list of the contents of this dList. // --> if (attribute.startsWith("ascslist") || attribute.s...
diff --git a/modules/activiti-engine/src/main/java/org/activiti/engine/delegate/event/BaseEntityEventListener.java b/modules/activiti-engine/src/main/java/org/activiti/engine/delegate/event/BaseEntityEventListener.java index 4fd682d46..38167b69b 100644 --- a/modules/activiti-engine/src/main/java/org/activiti/engine/del...
true
true
public final void onEvent(ActivitiEvent event) { if(isValidEvent(event)) { // Check if this event if (event.getType() == ActivitiEventType.ENTITY_CREATED) { onCreate(event); }if (event.getType() == ActivitiEventType.ENTITY_CREATED) { onInitialized(event); } else if (event.getType() == ActivitiEve...
public final void onEvent(ActivitiEvent event) { if(isValidEvent(event)) { // Check if this event if (event.getType() == ActivitiEventType.ENTITY_CREATED) { onCreate(event); }if (event.getType() == ActivitiEventType.ENTITY_INITIALIZED) { onInitialized(event); } else if (event.getType() == Activit...
diff --git a/src/main/java/net/oneandone/sushi/cli/Console.java b/src/main/java/net/oneandone/sushi/cli/Console.java index c28b7356..fc49fda3 100644 --- a/src/main/java/net/oneandone/sushi/cli/Console.java +++ b/src/main/java/net/oneandone/sushi/cli/Console.java @@ -1,91 +1,92 @@ /** * Copyright 1&1 Internet AG, htt...
true
true
public String readline(String message, String dflt) { String str; info.print(message); str = input.nextLine(); if (str.length() == 0) { return dflt; } else { return str; } }
public String readline(String message, String dflt) { String str; info.print(message); info.flush(); str = input.nextLine(); if (str.length() == 0) { return dflt; } else { return str; } }
diff --git a/src/com.gluster.storage.management.gateway/src/com/gluster/storage/management/gateway/services/GlusterServerService.java b/src/com.gluster.storage.management.gateway/src/com/gluster/storage/management/gateway/services/GlusterServerService.java index cbb8043f..48634c4d 100644 --- a/src/com.gluster.storage.m...
true
true
private List<GlusterServer> getGlusterServers(String clusterName, GlusterServer onlineServer, boolean fetchDetails, Integer maxCount, String previousServerName) { List<GlusterServer> glusterServers; try { glusterServers = glusterUtil.getGlusterServers(onlineServer); return GlusterCoreUtil.skipEntities(glu...
private List<GlusterServer> getGlusterServers(String clusterName, GlusterServer onlineServer, boolean fetchDetails, Integer maxCount, String previousServerName) { List<GlusterServer> glusterServers; try { glusterServers = glusterUtil.getGlusterServers(onlineServer); glusterServers = GlusterCoreUtil.skipEn...
diff --git a/ui/plugins/eu.esdihumboldt.hale.ui.common/src/eu/esdihumboldt/hale/ui/common/definition/selector/PropertyDefinitionDialog.java b/ui/plugins/eu.esdihumboldt.hale.ui.common/src/eu/esdihumboldt/hale/ui/common/definition/selector/PropertyDefinitionDialog.java index 32d395d26..3f22334be 100644 --- a/ui/plugins/...
true
true
protected EntityDefinition getObjectFromSelection(ISelection selection) { if (!selection.isEmpty() && selection instanceof IStructuredSelection) { Object element = ((IStructuredSelection) selection).getFirstElement(); if (element instanceof EntityDefinition) { return (EntityDefinition) element; } } ...
protected EntityDefinition getObjectFromSelection(ISelection selection) { if (!selection.isEmpty() && selection instanceof IStructuredSelection) { Object element = ((IStructuredSelection) selection).getFirstElement(); if (element instanceof EntityDefinition) { return (EntityDefinition) element; } } ...
diff --git a/src/dloader/PageProcessor.java b/src/dloader/PageProcessor.java index 9a23358..981bc9f 100644 --- a/src/dloader/PageProcessor.java +++ b/src/dloader/PageProcessor.java @@ -1,396 +1,396 @@ package dloader; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import ...
true
true
void processOnePage(PageJob job) throws ProblemsReadingDocumentException, IOException { AbstractPage page = job.page; switch (job.status) { case RECON_PAGE: if ((isReadingCache && job.isReadFromCache) || job.isReadFromWeb) // this page (and its children is already processed - stop refresh here) ...
void processOnePage(PageJob job) throws ProblemsReadingDocumentException, IOException { AbstractPage page = job.page; switch (job.status) { case RECON_PAGE: if ((isReadingCache && job.isReadFromCache) || job.isReadFromWeb) // this page (and its children is already processed - stop refresh here) ...
diff --git a/test/src/com/redhat/ceylon/compiler/java/test/misc/MiscTest.java b/test/src/com/redhat/ceylon/compiler/java/test/misc/MiscTest.java index 4f3fa1268..ee8864ddc 100755 --- a/test/src/com/redhat/ceylon/compiler/java/test/misc/MiscTest.java +++ b/test/src/com/redhat/ceylon/compiler/java/test/misc/MiscTest.java...
false
true
public void compileRuntime(){ cleanCars("build/classes-runtime"); java.util.List<File> sourceFiles = new ArrayList<File>(); String ceylonSourcePath = "../ceylon.language/src"; String javaSourcePath = "../ceylon.language/runtime"; String[] ceylonPack...
public void compileRuntime(){ cleanCars("build/classes-runtime"); java.util.List<File> sourceFiles = new ArrayList<File>(); String ceylonSourcePath = "../ceylon.language/src"; String javaSourcePath = "../ceylon.language/runtime"; String[] ceylonPack...
diff --git a/disambiguation-author/src/main/java/pl/edu/icm/coansys/disambiguation/author/pig/extractor/EXTRACT_SNAME_DOCUMENT_METADATA.java b/disambiguation-author/src/main/java/pl/edu/icm/coansys/disambiguation/author/pig/extractor/EXTRACT_SNAME_DOCUMENT_METADATA.java index 60885149..10addd8c 100644 --- a/disambiguat...
false
true
public DataBag exec(Tuple input) throws IOException { if (input == null || input.size() == 0) return null; try{ DataByteArray dba = null; try{ dba = (DataByteArray) input.get(1); }catch(Exception e){ System.out.println("Trying to cast Object ("+input.getType(1) +") to DataByteA...
public DataBag exec(Tuple input) throws IOException { if (input == null || input.size() == 0) return null; try{ DataByteArray dba = null; try{ dba = (DataByteArray) input.get(0); }catch(Exception e){ System.out.println("Trying to cast Object ("+input.getType(0) +") to DataByteA...
diff --git a/h2/src/main/org/h2/store/PageStore.java b/h2/src/main/org/h2/store/PageStore.java index 0d93b16d4..b4431bc2f 100644 --- a/h2/src/main/org/h2/store/PageStore.java +++ b/h2/src/main/org/h2/store/PageStore.java @@ -1,1590 +1,1590 @@ /* * Copyright 2004-2010 H2 Group. Multiple-Licensed under the H2 License,...
true
true
private void addMeta(Row row, Session session, boolean redo) { int id = row.getValue(0).getInt(); int type = row.getValue(1).getInt(); int parent = row.getValue(2).getInt(); int rootPageId = row.getValue(3).getInt(); String options = row.getValue(4).getString(); Strin...
private void addMeta(Row row, Session session, boolean redo) { int id = row.getValue(0).getInt(); int type = row.getValue(1).getInt(); int parent = row.getValue(2).getInt(); int rootPageId = row.getValue(3).getInt(); String options = row.getValue(4).getString(); Strin...
diff --git a/app/models/domain/Statistiques.java b/app/models/domain/Statistiques.java index a03cd5c..bb58f99 100644 --- a/app/models/domain/Statistiques.java +++ b/app/models/domain/Statistiques.java @@ -1,175 +1,164 @@ package models.domain; import com.google.code.morphia.annotations.Entity; import com.google.co...
false
true
public boolean equals(Object o) { if (this == o){ return true;} if (o == null || getClass() != o.getClass()){ return false; } Statistiques that = (Statistiques) o; return ComparisonChain.start().compare(this.getBestGoogleID(), that.getBestGoogleID()) .compare(best...
public boolean equals(Object o) { if (this == o){ return true;} if (o == null || getClass() != o.getClass()){ return false; } Statistiques that = (Statistiques) o; return ComparisonChain.start() .compare(bestNamePost, that.bestNamePost) .compare(be...
diff --git a/plugins/org.eclipse.dltk.ruby.basicdebugger/src/org/eclipse/dltk/ruby/basicdebugger/RubyBasicDebuggerRunner.java b/plugins/org.eclipse.dltk.ruby.basicdebugger/src/org/eclipse/dltk/ruby/basicdebugger/RubyBasicDebuggerRunner.java index a325dbd0..c4fb3a2d 100644 --- a/plugins/org.eclipse.dltk.ruby.basicdebugg...
true
true
protected InterpreterConfig addEngineConfig(InterpreterConfig config, PreferencesLookupDelegate delegate) throws CoreException { IEnvironment env = getInstall().getEnvironment(); IExecutionEnvironment exeEnv = (IExecutionEnvironment) env .getAdapter(IExecutionEnvironment.class); IDeployment deployment = e...
protected InterpreterConfig addEngineConfig(InterpreterConfig config, PreferencesLookupDelegate delegate) throws CoreException { IEnvironment env = getInstall().getEnvironment(); IExecutionEnvironment exeEnv = (IExecutionEnvironment) env .getAdapter(IExecutionEnvironment.class); IDeployment deployment = e...
diff --git a/src/org/SdkYoungHeads/DoIKnowYou/AddNewGroupActivity.java b/src/org/SdkYoungHeads/DoIKnowYou/AddNewGroupActivity.java index a5e8bd5..f0dbc06 100644 --- a/src/org/SdkYoungHeads/DoIKnowYou/AddNewGroupActivity.java +++ b/src/org/SdkYoungHeads/DoIKnowYou/AddNewGroupActivity.java @@ -1,162 +1,161 @@ package or...
true
true
public void onCreate(Bundle savedInstanceState) { group = new Group(); super.onCreate(savedInstanceState); setContentView(R.layout.addnewgroup); adapter.notifyDataSetInvalidated(); // Person[] p = ((Application)getApplication()).selectedPersons; // // if(p == null) { // p = new Person[1]; // p[0] = ...
public void onCreate(Bundle savedInstanceState) { group = new Group(); super.onCreate(savedInstanceState); setContentView(R.layout.addnewgroup); // Person[] p = ((Application)getApplication()).selectedPersons; // // if(p == null) { // p = new Person[1]; // p[0] = new Person(); // p[0].setName("No re...
diff --git a/src/org/processmining/plugins/xpdl/exporting/XpdlExportNet.java b/src/org/processmining/plugins/xpdl/exporting/XpdlExportNet.java index 8b3162a..c86bddf 100644 --- a/src/org/processmining/plugins/xpdl/exporting/XpdlExportNet.java +++ b/src/org/processmining/plugins/xpdl/exporting/XpdlExportNet.java @@ -1,7...
true
true
public void exportXPDLtoFile(CLIPluginContext context, BPMNDiagramExt brnet, File file) throws IOException { /*Xpdl net = brnet.getXpdltraslate(); String text = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n" + net.exportElement(); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new File...
public void exportXPDLtoFile(CLIPluginContext context, BPMNDiagramExt brnet, File file) throws IOException { /*Xpdl net = brnet.getXpdltraslate(); String text = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n" + net.exportElement(); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new File...
diff --git a/src/com/partyrock/music/MP3.java b/src/com/partyrock/music/MP3.java index 127e21a..078fcea 100644 --- a/src/com/partyrock/music/MP3.java +++ b/src/com/partyrock/music/MP3.java @@ -1,188 +1,187 @@ package com.partyrock.music; import java.io.File; import java.io.IOException; import javax.sound.sample...
true
true
public void run() { din = null; try { AudioInputStream in = AudioSystem.getAudioInputStream(file); AudioFormat baseFormat = in.getFormat(); AudioFormat decodedFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, baseFormat.getSampleRate(), 16, baseFormat.getChannels(), baseFormat.getChannels() ...
public void run() { din = null; try { AudioInputStream in = AudioSystem.getAudioInputStream(file); AudioFormat baseFormat = in.getFormat(); AudioFormat decodedFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, baseFormat.getSampleRate(), 16, baseFormat.getChannels(), baseFormat.getChannels() ...
diff --git a/nuxeo-runtime-test/src/test/java/org/nuxeo/runtime/ResourceServiceTest.java b/nuxeo-runtime-test/src/test/java/org/nuxeo/runtime/ResourceServiceTest.java index 38927acb..2c66baa8 100644 --- a/nuxeo-runtime-test/src/test/java/org/nuxeo/runtime/ResourceServiceTest.java +++ b/nuxeo-runtime-test/src/test/java/...
true
true
public void testContributions() throws Exception { ResourceService rs = Framework.getLocalService(ResourceService.class); URL url = rs.getResource("myres"); InputStream in = url.openStream(); try { assertEquals("test resource", FileUtils.read(in)); } finally { ...
public void testContributions() throws Exception { ResourceService rs = Framework.getLocalService(ResourceService.class); URL url = rs.getResource("myres"); InputStream in = url.openStream(); try { assertEquals("test resource", FileUtils.read(in).trim()); } finall...
diff --git a/SolarPanelApp/src/com/example/calendar/BasicCalendar.java b/SolarPanelApp/src/com/example/calendar/BasicCalendar.java index 2056798..ec1e7d9 100644 --- a/SolarPanelApp/src/com/example/calendar/BasicCalendar.java +++ b/SolarPanelApp/src/com/example/calendar/BasicCalendar.java @@ -1,56 +1,56 @@ package com....
false
true
private static boolean isOverlap(Event e1, Event e2) { Calendar newDay = Calendar.getInstance(); newDay.setTimeInMillis(e1.getFirstTime()); long newStart = (newDay.get(Calendar.HOUR) * 60 * 60 * 1000 + newDay.get(Calendar.MINUTE) * 60 * 1000) % DAY_MILLIS; long newEnd = (newStart + e1.getDuration()) % DAY_MILL...
private static boolean isOverlap(Event e1, Event e2) { Calendar newDay = Calendar.getInstance(); newDay.setTimeInMillis(e1.getFirstTime()); long newStart = newDay.getTimeInMillis() % DAY_MILLIS; long newEnd = (newStart + e1.getDuration()) % DAY_MILLIS; Calendar oldDay = Calendar.getInstance(); oldDay.se...
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/PackageHtmlCheck.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/PackageHtmlCheck.java index c6a3428ea..11b97d8dc 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/PackageHtmlCheck.java +++ b/src/checkstyle/com/puppycrawl/t...
true
true
public void process(File[] aFiles) { Set directories = getParentDirs(aFiles); for (Iterator it = directories.iterator(); it.hasNext();) { File dir = (File) it.next(); File packageHtml = new File(dir, "package.html"); MessageDispatcher dispatcher = getMessageDi...
public void process(File[] aFiles) { Set directories = getParentDirs(aFiles); for (Iterator it = directories.iterator(); it.hasNext();) { File dir = (File) it.next(); File packageHtml = new File(dir, "package.html"); MessageDispatcher dispatcher = getMessageDi...
diff --git a/src/za/jamie/androidffmpegcmdline/ffmpeg/FfmpegJob.java b/src/za/jamie/androidffmpegcmdline/ffmpeg/FfmpegJob.java index 2d289f7..8b8f811 100644 --- a/src/za/jamie/androidffmpegcmdline/ffmpeg/FfmpegJob.java +++ b/src/za/jamie/androidffmpegcmdline/ffmpeg/FfmpegJob.java @@ -1,173 +1,173 @@ package za.jamie.a...
false
true
public ProcessRunnable create() { if (inputPath == null || outputPath == null) { throw new IllegalStateException("Need an input and output filepath!"); } final List<String> cmd = new LinkedList<String>(); cmd.add(mFfmpegPath); cmd.add("-y"); if (TextUtils.isEmpty(inputFormat)) { cmd.add(FFM...
public ProcessRunnable create() { if (inputPath == null || outputPath == null) { throw new IllegalStateException("Need an input and output filepath!"); } final List<String> cmd = new LinkedList<String>(); cmd.add(mFfmpegPath); cmd.add("-y"); if (!TextUtils.isEmpty(inputFormat)) { cmd.add(FF...
diff --git a/openejb/examples/webapps/rest-example/src/test/java/org/superbiz/rest/dao/UserServiceTest.java b/openejb/examples/webapps/rest-example/src/test/java/org/superbiz/rest/dao/UserServiceTest.java index ed7fbf4b4..3fdb376b5 100644 --- a/openejb/examples/webapps/rest-example/src/test/java/org/superbiz/rest/dao/U...
true
true
@Test public void create() throws NamingException { UserDAO dao = (UserDAO) container.getContext().lookup("java:global/" + webApp.getName() + "/UserDAO"); User user = dao.create("foo", "dummy", "foo@dummy.org"); assertNotNull(dao.find(user.getId())); String uri = "http://127.0.0.1:"...
@Test public void create() throws NamingException { UserDAO dao = (UserDAO) container.getContext().lookup("java:global/rest-example/UserDAO"); User user = dao.create("foo", "dummy", "foo@dummy.org"); assertNotNull(dao.find(user.getId())); String uri = "http://127.0.0.1:" + System.ge...
diff --git a/src/main/java/org/cytoscape/fluxviz/internal/logic/Context.java b/src/main/java/org/cytoscape/fluxviz/internal/logic/Context.java index 37c2ded..68f36e9 100644 --- a/src/main/java/org/cytoscape/fluxviz/internal/logic/Context.java +++ b/src/main/java/org/cytoscape/fluxviz/internal/logic/Context.java @@ -1,4...
true
true
public Context() { activeNetworks = new ArrayList<CyNetwork>(); }
public Context() { activeNetworks = new ArrayList<CyNetwork>(); sleepTime = 1; }
diff --git a/src/java/com/stackframe/sarariman/WeeknightTask.java b/src/java/com/stackframe/sarariman/WeeknightTask.java index cad16b2..3f96a9c 100644 --- a/src/java/com/stackframe/sarariman/WeeknightTask.java +++ b/src/java/com/stackframe/sarariman/WeeknightTask.java @@ -1,61 +1,61 @@ /* * Copyright (C) 2009-2010 S...
true
true
public void run() { Calendar today = Calendar.getInstance(); int dayOfWeek = today.get(Calendar.DAY_OF_WEEK); if (dayOfWeek == Calendar.SATURDAY && dayOfWeek == Calendar.SUNDAY) { return; } java.util.Date todayDate = today.getTime(); Date week = new Date(...
public void run() { Calendar today = Calendar.getInstance(); int dayOfWeek = today.get(Calendar.DAY_OF_WEEK); if (dayOfWeek == Calendar.SATURDAY || dayOfWeek == Calendar.SUNDAY) { return; } java.util.Date todayDate = today.getTime(); Date week = new Date(...
diff --git a/src/com/redhat/contentspec/client/commands/CreateCommand.java b/src/com/redhat/contentspec/client/commands/CreateCommand.java index 3d26a79..a5813ed 100644 --- a/src/com/redhat/contentspec/client/commands/CreateCommand.java +++ b/src/com/redhat/contentspec/client/commands/CreateCommand.java @@ -1,247 +1,24...
false
true
public void process(ContentSpecConfiguration cspConfig, RESTManager restManager, ErrorLoggerManager elm, UserV1 user) { if (!isValid()) { printError(Constants.ERROR_NO_FILE_MSG, true); shutdown(Constants.EXIT_FAILURE); } long startTime = System.currentTimeMillis(); boolean success = false; // Read in...
public void process(ContentSpecConfiguration cspConfig, RESTManager restManager, ErrorLoggerManager elm, UserV1 user) { if (!isValid()) { printError(Constants.ERROR_NO_FILE_MSG, true); shutdown(Constants.EXIT_FAILURE); } long startTime = System.currentTimeMillis(); boolean success = false; // Read in...
diff --git a/core/org.eclipse.ptp.remote.remotetools.core/src/org/eclipse/ptp/remote/remotetools/RemoteToolsConnection.java b/core/org.eclipse.ptp.remote.remotetools.core/src/org/eclipse/ptp/remote/remotetools/RemoteToolsConnection.java index 34899e9da..cece3c7df 100644 --- a/core/org.eclipse.ptp.remote.remotetools.cor...
true
true
public void open(IProgressMonitor monitor) throws RemoteConnectionException { if (monitor == null) { monitor = new NullProgressMonitor(); } monitor.beginTask("Opening connection...", 2); if (control.query() == ITargetStatus.STOPPED) { Job job = new Job("Start the Environment") { protected IStatus ru...
public void open(IProgressMonitor monitor) throws RemoteConnectionException { if (monitor == null) { monitor = new NullProgressMonitor(); } monitor.beginTask("Opening connection...", 2); if (control.query() == ITargetStatus.STOPPED) { Job job = new Job("Start the Environment") { protected IStatus ru...
diff --git a/src/ru/study/core/GeneticAlgCore.java b/src/ru/study/core/GeneticAlgCore.java index 4122d48..1b10c46 100644 --- a/src/ru/study/core/GeneticAlgCore.java +++ b/src/ru/study/core/GeneticAlgCore.java @@ -1,104 +1,108 @@ package ru.study.core; import ru.study.utils.MathExpressionParser; import ru.study.uti...
true
true
public ArrayList<Person> initialPersons(int from, int to) { int bitSize = Integer.toBinaryString(to).length() - 1; int generationSize = 4; //размер одного поколения //Берем рандомные generationSize особи ArrayList<Person> randomp = new ArrayList<Person>(); int rouletteSize ...
public ArrayList<Person> initialPersons(int from, int to) { int bitSize = Integer.toBinaryString(to).length() - 1; int generationSize = (int) Math.sqrt(to - from); //размер одного поколения if (generationSize < 2) { generationSize = 2; } System.out.println("gene...
diff --git a/src/com/android/phone/Use2GOnlyCheckBoxPreference.java b/src/com/android/phone/Use2GOnlyCheckBoxPreference.java index 1fa83a76..f3a3a956 100644 --- a/src/com/android/phone/Use2GOnlyCheckBoxPreference.java +++ b/src/com/android/phone/Use2GOnlyCheckBoxPreference.java @@ -1,112 +1,116 @@ /* * Copyright (C)...
true
true
private void handleGetPreferredNetworkTypeResponse(Message msg) { AsyncResult ar = (AsyncResult) msg.obj; if (ar.exception == null) { int type = ((int[])ar.result)[0]; Log.i(LOG_TAG, "get preferred network type="+type); setChecked(type == ...
private void handleGetPreferredNetworkTypeResponse(Message msg) { AsyncResult ar = (AsyncResult) msg.obj; if (ar.exception == null) { int type = ((int[])ar.result)[0]; if (type != Phone.NT_MODE_GSM_ONLY) { // Allow only NT_MODE_GSM_ONL...
diff --git a/boundbox-library/src/test/java/org/boundbox/writer/BoundBoxWriterTest.java b/boundbox-library/src/test/java/org/boundbox/writer/BoundBoxWriterTest.java index b38ed4b..278fa06 100644 --- a/boundbox-library/src/test/java/org/boundbox/writer/BoundBoxWriterTest.java +++ b/boundbox-library/src/test/java/org/bou...
false
true
public void testProcess_class_with_many_methods() throws Exception { // given String classUnderTestName = "TestClassWithManyMethods"; List<String> neededClasses = new ArrayList<String>(); ClassInfo classInfo = new ClassInfo(classUnderTestName); List<MethodInfo> listConstruct...
public void testProcess_class_with_many_methods() throws Exception { // given String classUnderTestName = "TestClassWithManyMethods"; List<String> neededClasses = new ArrayList<String>(); ClassInfo classInfo = new ClassInfo(classUnderTestName); List<MethodInfo> listConstruct...
diff --git a/grails-app/services/org/chai/kevin/value/ExpressionService.java b/grails-app/services/org/chai/kevin/value/ExpressionService.java index 7527f2ed..1e68b1ae 100644 --- a/grails-app/services/org/chai/kevin/value/ExpressionService.java +++ b/grails-app/services/org/chai/kevin/value/ExpressionService.java @@ -1...
true
true
private <T extends DataElement<S>, S extends DataValue> StatusValuePair getExpressionStatusValuePair(String expression, Type type, Period period, DataLocationEntity facility, Class<T> clazz) { StatusValuePair statusValuePair = new StatusValuePair(); if (expression == null) { statusValuePair.status = Status.DOES...
private <T extends DataElement<S>, S extends DataValue> StatusValuePair getExpressionStatusValuePair(String expression, Type type, Period period, DataLocationEntity facility, Class<T> clazz) { StatusValuePair statusValuePair = new StatusValuePair(); if (expression == null) { statusValuePair.status = Status.DOES...
diff --git a/core/cc.warlock.rcp/src/cc/warlock/rcp/ui/WarlockProgressBar.java b/core/cc.warlock.rcp/src/cc/warlock/rcp/ui/WarlockProgressBar.java index c09925d5..164b61b1 100644 --- a/core/cc.warlock.rcp/src/cc/warlock/rcp/ui/WarlockProgressBar.java +++ b/core/cc.warlock.rcp/src/cc/warlock/rcp/ui/WarlockProgressBar.ja...
true
true
public WarlockProgressBar (Composite composite, int style) { super(composite, style); // defaults width = 100; height = 15; showText = true; Font textFont = JFaceResources.getDefaultFont(); FontData textData = textFont.getFontData()[0]; int minHeight = 8; progressFont = new Font(getShell().ge...
public WarlockProgressBar (Composite composite, int style) { super(composite, style); // defaults width = 100; height = 15; showText = true; Font textFont = JFaceResources.getDefaultFont(); FontData textData = textFont.getFontData()[0]; int minHeight = 8; progressFont = new Font(getShell().ge...
diff --git a/grails/src/web/org/codehaus/groovy/grails/web/pages/GroovyPageWritable.java b/grails/src/web/org/codehaus/groovy/grails/web/pages/GroovyPageWritable.java index ce31a4d95..97f023241 100644 --- a/grails/src/web/org/codehaus/groovy/grails/web/pages/GroovyPageWritable.java +++ b/grails/src/web/org/codehaus/gro...
true
true
protected void writeGroovySourceToResponse(GroovyPageMetaInfo info, Writer out) throws IOException { InputStream in = info.getGroovySource(); try { in.reset(); BufferedReader reader = new BufferedReader(new InputStreamReader(in, "UTF-8")); int lineNum = 1; ...
protected void writeGroovySourceToResponse(GroovyPageMetaInfo info, Writer out) throws IOException { InputStream in = info.getGroovySource(); try { try { in.reset(); } catch (IOException e) { // ignore } Buff...
diff --git a/wicketstuff-minis/src/main/java/org/wicketstuff/minis/prototipbehaviour/PrototipSettings.java b/wicketstuff-minis/src/main/java/org/wicketstuff/minis/prototipbehaviour/PrototipSettings.java index dd0442f6d..1446791e0 100644 --- a/wicketstuff-minis/src/main/java/org/wicketstuff/minis/prototipbehaviour/Proto...
true
true
public String getOptionsString(String title) { StringBuilder options = new StringBuilder(); if(className != null) { options.append("className").append(": ").append(className); } if(closeButton != null) { if(options.length() > 0) options.append(", "); options.append("closeButton").append(":").appe...
public String getOptionsString(String title) { StringBuilder options = new StringBuilder(); if(className != null) { options.append("className").append(": ").append(className); } if(closeButton != null) { if(options.length() > 0) options.append(", "); options.append("closeButton").append(":").appe...
diff --git a/src/main/java/com/impetus/kundera/ycsb/benchmark/MongoDbClient.java b/src/main/java/com/impetus/kundera/ycsb/benchmark/MongoDbClient.java index 41b460c..93fb59e 100755 --- a/src/main/java/com/impetus/kundera/ycsb/benchmark/MongoDbClient.java +++ b/src/main/java/com/impetus/kundera/ycsb/benchmark/MongoDbCli...
true
true
public void init() throws DBException { // initialize MongoDb driver Properties props = getProperties(); String host = props.getProperty("hosts"); ; String port = props.getProperty("port"); String url = "mongodb://" + host + ":" + port; // String url = pro...
public void init() throws DBException { // initialize MongoDb driver Properties props = getProperties(); String host = props.getProperty("hosts"); ; String port = props.getProperty("port"); String url = "mongodb://" + host + ":" + port; // String url = pro...
diff --git a/src/main/java/Sirius/server/search/builtin/GeoSearch.java b/src/main/java/Sirius/server/search/builtin/GeoSearch.java index f05886c5..f2c347a0 100644 --- a/src/main/java/Sirius/server/search/builtin/GeoSearch.java +++ b/src/main/java/Sirius/server/search/builtin/GeoSearch.java @@ -1,139 +1,139 @@ /*******...
true
true
public Collection performServerSearch() { final ArrayList<Node> aln = new ArrayList<Node>(); try { getLog().info("geosearch started"); final String sql = "WITH recursive derived_index(ocid,oid,acid,aid,depth) AS " + "( " + "SEL...
public Collection performServerSearch() { final ArrayList<Node> aln = new ArrayList<Node>(); try { getLog().info("geosearch started"); final String sql = "WITH recursive derived_index(ocid,oid,acid,aid,depth) AS " + "( " + "SEL...
diff --git a/components/bio-formats/src/loci/formats/in/MIASReader.java b/components/bio-formats/src/loci/formats/in/MIASReader.java index 1c60d20a1..50eafb6f1 100644 --- a/components/bio-formats/src/loci/formats/in/MIASReader.java +++ b/components/bio-formats/src/loci/formats/in/MIASReader.java @@ -1,608 +1,610 @@ //...
false
true
protected void initFile(String id) throws FormatException, IOException { debug("MIASReader.initFile(" + id + ")"); super.initFile(id); // TODO : initFile currently accepts a constituent TIFF file. // Consider allowing the top level experiment directory to be passed in reader = new MinimalTiffRea...
protected void initFile(String id) throws FormatException, IOException { debug("MIASReader.initFile(" + id + ")"); super.initFile(id); // TODO : initFile currently accepts a constituent TIFF file. // Consider allowing the top level experiment directory to be passed in reader = new MinimalTiffRea...
diff --git a/src/com/abhirama/gameengine/tests/stresstest/CustomGameServerHandler.java b/src/com/abhirama/gameengine/tests/stresstest/CustomGameServerHandler.java index 87ab3fb..c2f06fc 100644 --- a/src/com/abhirama/gameengine/tests/stresstest/CustomGameServerHandler.java +++ b/src/com/abhirama/gameengine/tests/stresst...
true
true
public Map gameLogic(Map data) { //Simulate a memcache fetch try { TimeUnit.MILLISECONDS.sleep(2); } catch (InterruptedException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } Room room = Room.getRoom(Util.getRandomInt(1, 1000)); ...
public Map gameLogic(Map data) { //Simulate a memcache fetch try { TimeUnit.MILLISECONDS.sleep(2); } catch (InterruptedException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } Room room = Room.getRoom(Util.getRandomInt(1, 1000)); ...
diff --git a/debug/org.eclipse.ptp.debug.sdm.core/src/org/eclipse/ptp/debug/sdm/core/SDMRunner.java b/debug/org.eclipse.ptp.debug.sdm.core/src/org/eclipse/ptp/debug/sdm/core/SDMRunner.java index bb5eb6d5f..e3910780c 100644 --- a/debug/org.eclipse.ptp.debug.sdm.core/src/org/eclipse/ptp/debug/sdm/core/SDMRunner.java +++ ...
false
true
protected IStatus run(IProgressMonitor monitor) { assert command != null; assert sdmProcess == null; DebugUtil.trace(DebugUtil.SDM_MASTER_TRACING, Messages.SDMRunner_9); /* * Catch all try...catch */ try { if (monitor.isCanceled()) { throw new InterruptedException(); } /* * Prepare re...
protected IStatus run(IProgressMonitor monitor) { assert command != null; assert sdmProcess == null; DebugUtil.trace(DebugUtil.SDM_MASTER_TRACING, Messages.SDMRunner_9); /* * Catch all try...catch */ try { if (monitor.isCanceled()) { throw new InterruptedException(); } /* * Prepare re...
diff --git a/src/main/java/org/amplafi/flow/flowproperty/ReflectionFlowPropertyValueProvider.java b/src/main/java/org/amplafi/flow/flowproperty/ReflectionFlowPropertyValueProvider.java index 66e53df..21c46f6 100644 --- a/src/main/java/org/amplafi/flow/flowproperty/ReflectionFlowPropertyValueProvider.java +++ b/src/main...
true
true
public boolean isHandling(FlowPropertyDefinition flowPropertyDefinition) { for(String propertyName:this.getPropertyNames()) { if ( flowPropertyDefinition.isNamed(propertyName)) { return true; } } return false; }
public boolean isHandling(FlowPropertyDefinition flowPropertyDefinition) { for(String complexPropertyName:this.getPropertyNames()) { int beginIndex = complexPropertyName.lastIndexOf('.'); String simplePropertyName = beginIndex < 0?complexPropertyName:complexPropertyName.substring(beg...
diff --git a/grid-incubation/incubator/projects/iso21090/projects/iso21090SdkQueryProcessor/test/src/org/cagrid/iso21090/tests/integration/story/SDK43DataServiceSystemTests.java b/grid-incubation/incubator/projects/iso21090/projects/iso21090SdkQueryProcessor/test/src/org/cagrid/iso21090/tests/integration/story/SDK43Dat...
true
true
public void sdk42DataServiceSystemTests() throws Throwable { // create a temporary directory for the SDK application to package things in tempApplicationDir = File.createTempFile("SdkWithIsoExample", "temp"); tempApplicationDir.delete(); tempApplicationDir.mkdirs(); LOG.debug...
public void sdk43DataServiceSystemTests() throws Throwable { // create a temporary directory for the SDK application to package things in tempApplicationDir = File.createTempFile("SdkWithIsoExample", "temp"); tempApplicationDir.delete(); tempApplicationDir.mkdirs(); LOG.debug...
diff --git a/src/com/herocraftonline/dev/heroes/skill/skills/SkillGills.java b/src/com/herocraftonline/dev/heroes/skill/skills/SkillGills.java index 1ee6c697..9ce49757 100644 --- a/src/com/herocraftonline/dev/heroes/skill/skills/SkillGills.java +++ b/src/com/herocraftonline/dev/heroes/skill/skills/SkillGills.java @@ -1...
true
true
public void onEntityDamage(EntityDamageEvent event) { if (event.isCancelled() || !(event.getCause() == DamageCause.DROWNING)) { return; } if (event.getEntity() instanceof Player) { Player player = (Player) event.getEntity(); Her...
public void onEntityDamage(EntityDamageEvent event) { if (event.isCancelled() || !(event.getCause() == DamageCause.DROWNING)) { return; } if (event.getEntity() instanceof Player) { Player player = (Player) event.getEntity(); Her...
diff --git a/src/main/java/lcmc/robotest/PcmkTestH.java b/src/main/java/lcmc/robotest/PcmkTestH.java index f8da24fb..11b6ab87 100644 --- a/src/main/java/lcmc/robotest/PcmkTestH.java +++ b/src/main/java/lcmc/robotest/PcmkTestH.java @@ -1,119 +1,121 @@ /* * This file is part of LCMC written by Rasto Levrinc. * * C...
true
true
private static void chooseIpmi(final int x, final int y, final boolean apply) { moveTo(x, y); rightClick(); /* popup */ sleep(1000); moveTo(Tools.getString("ClusterBrowser.Hb.AddService")); sleep(1000); ...
private static void chooseIpmi(final int x, final int y, final boolean apply) { moveTo(x, y); rightClick(); /* popup */ sleep(1000); moveTo(Tools.getString("ClusterBrowser.Hb.AddService")); sleep(1000); ...
diff --git a/src/main/java/de/cismet/cismap/commons/gui/piccolo/FixedWidthStroke.java b/src/main/java/de/cismet/cismap/commons/gui/piccolo/FixedWidthStroke.java index 71970602..c2030091 100755 --- a/src/main/java/de/cismet/cismap/commons/gui/piccolo/FixedWidthStroke.java +++ b/src/main/java/de/cismet/cismap/commons/gui...
true
true
public float getLineWidth() { return 0.001f; // if (PPaintContext.CURRENT_PAINT_CONTEXT != null) { // //log.fatal("LineWidth:"+super.getLineWidth() / (float) PPaintContext.CURRENT_PAINT_CONTEXT.getScale()); // return super.getLineWidth()*multiplyer / (float) PPaintContext.CURREN...
public float getLineWidth() { return 0.0000000001f; //wegen wgs84 // if (PPaintContext.CURRENT_PAINT_CONTEXT != null) { // //log.fatal("LineWidth:"+super.getLineWidth() / (float) PPaintContext.CURRENT_PAINT_CONTEXT.getScale()); // return super.getLineWidth()*multiplyer / (float)...
diff --git a/src/com/java/gwt/libertycinema/client/BaseLayout.java b/src/com/java/gwt/libertycinema/client/BaseLayout.java index 9c5da82..8b4c916 100644 --- a/src/com/java/gwt/libertycinema/client/BaseLayout.java +++ b/src/com/java/gwt/libertycinema/client/BaseLayout.java @@ -1,58 +1,58 @@ package com.java.gwt.liberty...
true
true
public BaseLayout() { headerBar = new HeaderBar(this); footerBar = new FooterBar(); mainPanel = new MainPanel(this); layout.addNorth(headerBar, 5); layout.addSouth(footerBar, 2); layout.add(mainPanel); initWidget(layout); }
public BaseLayout() { headerBar = new HeaderBar(this); footerBar = new FooterBar(this); mainPanel = new MainPanel(this); layout.addNorth(headerBar, 5); layout.addSouth(footerBar, 2); layout.add(mainPanel); initWidget(layout); }
diff --git a/metamer/ftest/src/test/java/org/richfaces/tests/metamer/ftest/richPickList/TestPickListFragment.java b/metamer/ftest/src/test/java/org/richfaces/tests/metamer/ftest/richPickList/TestPickListFragment.java index 9f1f1249f..c1b8fc5dd 100644 --- a/metamer/ftest/src/test/java/org/richfaces/tests/metamer/ftest/r...
true
true
public void testRemove() { testAdd(); int sizeS = pickList.advanced().getSourceList().size(); int sizeT = pickList.advanced().getTargetList().size(); assertEquals(sizeT, 1); String itemText = pickList.advanced().getTargetList().getItem(0).getText(); pickList.remove(C...
public void testRemove() { testAdd(); int sizeS = pickList.advanced().getSourceList().size(); int sizeT = pickList.advanced().getTargetList().size(); assertEquals(sizeT, 1); String itemText = pickList.advanced().getTargetList().getItem(0).getText(); pickList.remove(C...