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/activemq-client/src/main/java/org/apache/activemq/broker/scheduler/CronParser.java b/activemq-client/src/main/java/org/apache/activemq/broker/scheduler/CronParser.java index 6ea403681..25aec69b6 100644 --- a/activemq-client/src/main/java/org/apache/activemq/broker/scheduler/CronParser.java +++ b/activemq-c...
true
true
public static long getNextScheduledTime(final String cronEntry, long currentTime) throws MessageFormatException { long result = 0; if (cronEntry == null || cronEntry.length() == 0) { return result; } // Handle the once per minute case "* * * * *" // starting th...
public static long getNextScheduledTime(final String cronEntry, long currentTime) throws MessageFormatException { long result = 0; if (cronEntry == null || cronEntry.length() == 0) { return result; } // Handle the once per minute case "* * * * *" // starting th...
diff --git a/org.eclipse.stem.ui.diseasemodels/src/org/eclipse/stem/ui/adapters/color/IntensityColorsLabelsMappingColorProviderAdapter.java b/org.eclipse.stem.ui.diseasemodels/src/org/eclipse/stem/ui/adapters/color/IntensityColorsLabelsMappingColorProviderAdapter.java index ca31dc86..11b5c6c3 100644 --- a/org.eclipse.s...
true
true
public void updateGC(final GC gcToUpdate, final float gainFactor, final boolean useLogScaling) { final String selectedPropertyName = selectedProperty.getDisplayName(null); // Get the color for the selected property (label) if (colorMap.containsKey(selectedPropertyName)) { foregroundFillColor = colorMap.g...
public void updateGC(final GC gcToUpdate, final float gainFactor, final boolean useLogScaling) { final String selectedPropertyName = selectedProperty.getDisplayName(null); // Get the color for the selected property (label) if (colorMap.containsKey(selectedPropertyName)) { foregroundFillColor = colorMap.g...
diff --git a/src/org/servalproject/servald/Identities.java b/src/org/servalproject/servald/Identities.java index cc4b906f..ef9ce654 100644 --- a/src/org/servalproject/servald/Identities.java +++ b/src/org/servalproject/servald/Identities.java @@ -1,166 +1,166 @@ package org.servalproject.servald; import java.io.IOE...
true
true
private static void populatePeerList() { // XXX - Only re-fetch list if some time interval // has passed? String args[] = { "id", "peers" }; ServalDResult result = ServalD.command(args); if (peers != null) peers.clear(); else peers = new ArrayList<PeerRecord>(); // XXX - actually add the pee...
private static void populatePeerList() { // XXX - Only re-fetch list if some time interval // has passed? String args[] = { "id", "peers" }; ServalDResult result = ServalD.command(args); if (peers != null) peers.clear(); else peers = new ArrayList<PeerRecord>(); // XXX - actually add the pee...
diff --git a/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java b/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java index ab2c3c2e..3091e3fc 100644 --- a/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java +++ b/Essentials/src/com/earth2me/essentials/commands/...
true
true
protected User getPlayer(Server server, String[] args, int pos) throws NoSuchFieldException, NotEnoughArgumentsException { if (args.length <= pos) throw new NotEnoughArgumentsException(); List<Player> matches = server.matchPlayer(args[pos]); if (matches.size() < 1) throw new NoSuchFieldException(Util.i18n("noPl...
protected User getPlayer(Server server, String[] args, int pos) throws NoSuchFieldException, NotEnoughArgumentsException { if (args.length <= pos) throw new NotEnoughArgumentsException(); List<Player> matches = server.matchPlayer(args[pos]); if (matches.size() < 1) throw new NoSuchFieldException(Util.i18n("play...
diff --git a/src/edu/ucla/loni/server/Upload.java b/src/edu/ucla/loni/server/Upload.java index 412f956..6dd95b4 100644 --- a/src/edu/ucla/loni/server/Upload.java +++ b/src/edu/ucla/loni/server/Upload.java @@ -1,211 +1,210 @@ package edu.ucla.loni.server; //import gwtupload.server.UploadAction; //import gwtupload.s...
false
true
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { File uploadedFile; String rootDir = ""; if ( ServletFileUpload.isMultipartContent( req ) ) { // Create a factory for disk-based file items FileItemFactory factory = new DiskFileItemFactory(); //...
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String rootDir = ""; if ( ServletFileUpload.isMultipartContent( req ) ) { // Create a factory for disk-based file items FileItemFactory factory = new DiskFileItemFactory(); // Create a new file up...
diff --git a/src/org/mozilla/javascript/TokenStream.java b/src/org/mozilla/javascript/TokenStream.java index 852c4a4d..7ae7099b 100644 --- a/src/org/mozilla/javascript/TokenStream.java +++ b/src/org/mozilla/javascript/TokenStream.java @@ -1,1365 +1,1362 @@ /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basi...
false
true
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly s...
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly s...
diff --git a/src/com/android/googlesearch/GoogleSearch.java b/src/com/android/googlesearch/GoogleSearch.java index ea0652a..c0db663 100644 --- a/src/com/android/googlesearch/GoogleSearch.java +++ b/src/com/android/googlesearch/GoogleSearch.java @@ -1,155 +1,157 @@ /* * Copyright (C) 2008 The Android Open Source Proj...
false
true
private void handleWebSearchIntent(Intent intent) { String query = intent.getStringExtra(SearchManager.QUERY); if (TextUtils.isEmpty(query)) { Log.w(TAG, "Got search intent with no query."); return; } if (googleSearchUrlBase == null) { Locale l = ...
private void handleWebSearchIntent(Intent intent) { String query = intent.getStringExtra(SearchManager.QUERY); if (TextUtils.isEmpty(query)) { Log.w(TAG, "Got search intent with no query."); return; } if (googleSearchUrlBase == null) { Locale l = ...
diff --git a/webapps/proj1/WEB-INF/classes/OLAP.java b/webapps/proj1/WEB-INF/classes/OLAP.java index 75ce3c7..7e140e6 100644 --- a/webapps/proj1/WEB-INF/classes/OLAP.java +++ b/webapps/proj1/WEB-INF/classes/OLAP.java @@ -1,118 +1,119 @@ import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import j...
false
true
public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { HttpSession session = req.getSession(); PrintWriter out = res.getWriter(); res.setContentType("text/html"); String sessionUser = (String) session.getAttribute("userName"); String sql = "select USER_N...
public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { HttpSession session = req.getSession(); PrintWriter out = res.getWriter(); res.setContentType("text/html"); String sessionUser = (String) session.getAttribute("userName"); String sql = "select USER_N...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/ActivityExternalizationParticipant.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/ActivityExternalizationParticipant.java index 272a676f0..d30ee58e6 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/in...
true
true
public void execute(IExternalizationContext context, IProgressMonitor monitor) throws CoreException { Assert.isNotNull(context); switch (context.getKind()) { case SAVE: if (ContextCorePlugin.getDefault() != null && ContextCorePlugin.getContextManager() != null) { System.err.println(">>> save activity"); ...
public void execute(IExternalizationContext context, IProgressMonitor monitor) throws CoreException { Assert.isNotNull(context); switch (context.getKind()) { case SAVE: if (ContextCorePlugin.getDefault() != null && ContextCorePlugin.getContextManager() != null) { ContextCorePlugin.getContextManager().save...
diff --git a/dropwizard/src/test/java/com/yammer/dropwizard/jersey/params/tests/BooleanParamTest.java b/dropwizard/src/test/java/com/yammer/dropwizard/jersey/params/tests/BooleanParamTest.java index 5b11cd0e5..6e84a8212 100644 --- a/dropwizard/src/test/java/com/yammer/dropwizard/jersey/params/tests/BooleanParamTest.jav...
true
true
public void nullThrowsAnException() throws Exception { try { new BooleanParam(null); fail("expected a WebApplicationException, but none was thrown"); } catch (WebApplicationException e) { final Response response = e.getResponse(); assertTh...
public void nullThrowsAnException() throws Exception { try { new BooleanParam(null); fail("expected a WebApplicationException, but none was thrown"); } catch (WebApplicationException e) { final Response response = e.getResponse(); assertTh...
diff --git a/src/Handler/CharacterHandler.java b/src/Handler/CharacterHandler.java index f2d7fe8..bb054a1 100644 --- a/src/Handler/CharacterHandler.java +++ b/src/Handler/CharacterHandler.java @@ -1,210 +1,210 @@ package Handler; import java.util.ArrayList; import java.util.HashMap; import java.io.BufferedReader;...
true
true
private void readShopNpc(BufferedReader reader) throws IOException { String totLine = null; while((totLine = reader.readLine()) != null) { if(totLine.equals("[CIVILIAN]")) { break; } String[] lines = totLine.split(" "); int id = Integer.parseInt(lines[0]); int x = 0; int y = ...
private void readShopNpc(BufferedReader reader) throws IOException { String totLine = null; while((totLine = reader.readLine()) != null) { if(totLine.equals("[CIVILIAN]")) { break; } String[] lines = totLine.split(" "); int id = Integer.parseInt(lines[0]); int x = 0; int y = ...
diff --git a/src/java/fedora/server/utilities/SQLUtility.java b/src/java/fedora/server/utilities/SQLUtility.java index cf4530285..b29ec30e5 100755 --- a/src/java/fedora/server/utilities/SQLUtility.java +++ b/src/java/fedora/server/utilities/SQLUtility.java @@ -1,438 +1,439 @@ package fedora.server.utilities; import...
true
true
public static boolean updateRow(Connection conn, String table, String[] columns, String[] values, String uniqueColumn, boolean[] numeric) throws SQLException { // prepare update statement StringBuffer sql = new StringBuffer(); sql.append("UPDATE " + table...
public static boolean updateRow(Connection conn, String table, String[] columns, String[] values, String uniqueColumn, boolean[] numeric) throws SQLException { // prepare update statement StringBuffer sql = new StringBuffer(); sql.append("UPDATE " + table...
diff --git a/src/main/java/com/gitblit/wicket/pages/EmptyRepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/EmptyRepositoryPage.java index 331626de..00bac634 100644 --- a/src/main/java/com/gitblit/wicket/pages/EmptyRepositoryPage.java +++ b/src/main/java/com/gitblit/wicket/pages/EmptyRepositoryPage.java @@ -1...
true
true
public EmptyRepositoryPage(PageParameters params) { super(params); setVersioned(false); String repositoryName = WicketUtils.getRepositoryName(params); RepositoryModel repository = app().repositories().getRepositoryModel(repositoryName); if (repository == null) { error(getString("gb.canNotLoadRepository"...
public EmptyRepositoryPage(PageParameters params) { super(params); setVersioned(false); String repositoryName = WicketUtils.getRepositoryName(params); RepositoryModel repository = app().repositories().getRepositoryModel(repositoryName); if (repository == null) { error(getString("gb.canNotLoadRepository"...
diff --git a/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ReleasePerformAction.java b/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ReleasePerformAction.java index 4f74a23c9..aa0f0e388 100644 --- a/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/Releas...
true
true
public String executeFromScm() throws Exception { ContinuumReleaseManager releaseManager = getContinuum().getReleaseManager(); ReleaseDescriptor descriptor = new ReleaseDescriptor(); descriptor.setScmSourceUrl( scmUrl ); descriptor.setScmUsername( scmUsername ); ...
public String executeFromScm() throws Exception { ContinuumReleaseManager releaseManager = getContinuum().getReleaseManager(); ReleaseDescriptor descriptor = new ReleaseDescriptor(); descriptor.setScmSourceUrl( scmUrl ); descriptor.setScmUsername( scmUsername ); ...
diff --git a/src/main/java/org/monstercraft/irc/plugin/managers/listeners/MonsterIRCListener.java b/src/main/java/org/monstercraft/irc/plugin/managers/listeners/MonsterIRCListener.java index 9637fa3..2ce63eb 100644 --- a/src/main/java/org/monstercraft/irc/plugin/managers/listeners/MonsterIRCListener.java +++ b/src/main...
false
true
private void handleMessage(final Player player, final IRCChannel c, final String message) { if (c.getChatType() == ChatType.NONE) { return; } if (player == null) { StringBuffer result2 = new StringBuffer(); result2.append(Variables.ircformat .replace("{prefix}", StringUtils.getPrefix("Console"))...
private void handleMessage(final Player player, final IRCChannel c, final String message) { if (c.getChatType() == ChatType.NONE) { return; } if (player == null) { StringBuffer result2 = new StringBuffer(); result2.append(Variables.ircformat .replace("{prefix}", StringUtils.getPrefix("Console"))...
diff --git a/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java b/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java index d270247d..eca85c84 100644 --- a/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java +++ b/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java @@ -1...
true
true
public void uncaughtException(Thread t, Throwable e) { e.printStackTrace(); if (Main.parent != null) { if (e instanceof OutOfMemoryError) { // do not translate the string, as translation may raise an exception JOptionPane.showMessageDialog(Main.parent, "You are out of memory. Strange things may happen.\...
public void uncaughtException(Thread t, Throwable e) { e.printStackTrace(); if (Main.parent != null) { if (e instanceof OutOfMemoryError) { // do not translate the string, as translation may raise an exception JOptionPane.showMessageDialog(Main.parent, "JOSM is out of memory. " + "Strange things m...
diff --git a/hudson-remoting/src/main/java/hudson/remoting/jnlp/MainDialog.java b/hudson-remoting/src/main/java/hudson/remoting/jnlp/MainDialog.java index f352f6d5..cc85025c 100644 --- a/hudson-remoting/src/main/java/hudson/remoting/jnlp/MainDialog.java +++ b/hudson-remoting/src/main/java/hudson/remoting/jnlp/MainDialo...
true
true
public MainDialog() throws HeadlessException { super("Hudson slave agent"); ImageIcon background = new ImageIcon(getClass().getResource("title.png")); JPanel foregroundPanel = new JPanel(new BorderLayout(10, 10)); foregroundPanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,1...
public MainDialog() throws HeadlessException { super("Hudson slave agent"); ImageIcon background = new ImageIcon(getClass().getResource("Hudson-bust.png")); JPanel foregroundPanel = new JPanel(new BorderLayout(10, 10)); foregroundPanel.setBorder(BorderFactory.createEmptyBorder(10,1...
diff --git a/src/main/java/com/eucsoft/beeper/Beeper.java b/src/main/java/com/eucsoft/beeper/Beeper.java index 5f15edc..7852157 100644 --- a/src/main/java/com/eucsoft/beeper/Beeper.java +++ b/src/main/java/com/eucsoft/beeper/Beeper.java @@ -1,70 +1,70 @@ package com.eucsoft.beeper; import java.util.Collection; imp...
true
true
public static Beeper getInstance() { if (beeper == null) { beeper = new Beeper(); } return beeper; }
public static synchronized Beeper getInstance() { if (beeper == null) { beeper = new Beeper(); } return beeper; }
diff --git a/pentaho-gwt-widgets/src/org/pentaho/mantle/client/dialogs/scheduling/NewScheduleDialogEntryPoint.java b/pentaho-gwt-widgets/src/org/pentaho/mantle/client/dialogs/scheduling/NewScheduleDialogEntryPoint.java index 905e6401..3ca0a849 100644 --- a/pentaho-gwt-widgets/src/org/pentaho/mantle/client/dialogs/sched...
true
true
public void openScheduleDialog( String reportFile ) { IScheduleCallback callback = new IScheduleCallback() { @Override public void okPressed() { } @Override public void cancelPressed() { } @Override public void scheduleJob() { } }; NewScheduleDialog...
public void openScheduleDialog( String reportFile ) { IScheduleCallback callback = new IScheduleCallback() { @Override public void okPressed() { } @Override public void cancelPressed() { } @Override public void scheduleJob() { } }; NewScheduleDialog...
diff --git a/main/src/com/google/refine/templating/Parser.java b/main/src/com/google/refine/templating/Parser.java index c47996be..7aa0fcb4 100644 --- a/main/src/com/google/refine/templating/Parser.java +++ b/main/src/com/google/refine/templating/Parser.java @@ -1,104 +1,110 @@ /* Copyright 2010, Google Inc. All r...
false
true
static public Template parse(String s) throws ParsingException { List<Fragment> fragments = new ArrayList<Fragment>(); int start = 0, current = 0; while (current < s.length() - 1) { char c = s.charAt(current); if (c == '\\') { current += 2; ...
static public Template parse(String s) throws ParsingException { List<Fragment> fragments = new ArrayList<Fragment>(); int start = 0, current = 0; while (current < s.length() - 1) { char c = s.charAt(current); char c2 = s.charAt(current + 1); if (c == '\\...
diff --git a/src/com/massivecraft/factions/cmd/CmdJoin.java b/src/com/massivecraft/factions/cmd/CmdJoin.java index 4527430e..ca4a36f6 100644 --- a/src/com/massivecraft/factions/cmd/CmdJoin.java +++ b/src/com/massivecraft/factions/cmd/CmdJoin.java @@ -1,95 +1,95 @@ package com.massivecraft.factions.cmd; import com.m...
true
true
public void perform() { Faction faction = this.argAsFaction(0); if (faction == null) return; FPlayer fplayer = this.argAsBestFPlayerMatch(1, fme, false); boolean samePlayer = fplayer == fme; if (!samePlayer && ! Permission.JOIN_OTHERS.has(sender, false)) { msg("<b>You do not have permission to move ...
public void perform() { Faction faction = this.argAsFaction(0); if (faction == null) return; FPlayer fplayer = this.argAsBestFPlayerMatch(1, fme, false); boolean samePlayer = fplayer == fme; if (!samePlayer && ! Permission.JOIN_OTHERS.has(sender, false)) { msg("<b>You do not have permission to move ...
diff --git a/src/com/redhat/qe/sm/cli/tests/ListTests.java b/src/com/redhat/qe/sm/cli/tests/ListTests.java index 87127128..1c4f1abf 100644 --- a/src/com/redhat/qe/sm/cli/tests/ListTests.java +++ b/src/com/redhat/qe/sm/cli/tests/ListTests.java @@ -1,276 +1,276 @@ package com.redhat.qe.sm.cli.tests; import java.util....
true
true
public void EnsureListConsumedMatchesProductsListedInTheEntitlementCerts_Test(EntitlementCert entitlementCert) { // assert: The list of consumed products matches the products listed in the entitlement cert List<ProductSubscription> productSubscriptions = clienttasks.getCurrentlyConsumedProductSubscriptions(); L...
public void EnsureListConsumedMatchesProductsListedInTheEntitlementCerts_Test(EntitlementCert entitlementCert) { // assert: The list of consumed products matches the products listed in the entitlement cert List<ProductSubscription> productSubscriptions = clienttasks.getCurrentlyConsumedProductSubscriptions(); L...
diff --git a/Evoting/src/com/rau/evoting/beans/Receipt.java b/Evoting/src/com/rau/evoting/beans/Receipt.java index bb93f87..2eff1a2 100644 --- a/Evoting/src/com/rau/evoting/beans/Receipt.java +++ b/Evoting/src/com/rau/evoting/beans/Receipt.java @@ -1,92 +1,94 @@ package com.rau.evoting.beans; import javax.faces.eve...
true
true
public void setBallot(AjaxBehaviorEvent event) { try { int recId = Integer.parseInt(id); vote = ElectionVoteDP.getVote(recId); if (vote != null) { hash1 = StringHelper.getSHA256hash(vote.getEncoded1()); hash2 = StringHelper.getSHA256hash(vote.getEncoded2()); showReceipt = true; receiptFound...
public void setBallot(AjaxBehaviorEvent event) { try { int recId = Integer.parseInt(id); vote = ElectionVoteDP.getVote(recId); if (vote != null) { hash1 = StringHelper.getSHA256hash(vote.getEncoded1()); hash2 = StringHelper.getSHA256hash(vote.getEncoded2()); showReceipt = true; receiptFound...
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/text/folding/AbstractASTFoldingStructureProvider.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/text/folding/AbstractASTFoldingStructureProvider.java index 5d481d039..fc4de0c82 100644 --- a/core/plugins/org.eclipse.dltk.ui/src/org/ec...
true
true
protected final IRegion[] computeCommentsRanges(String contents) { try { if (contents == null) return new IRegion[0]; List regions = new ArrayList(); Document d = new Document(contents); installDocumentStuff(d); List docRegionList = new ArrayList(); ITypedRegion region = null; int offset = 0...
protected IRegion[] computeCommentsRanges(String contents) { try { if (contents == null) return new IRegion[0]; List regions = new ArrayList(); Document d = new Document(contents); installDocumentStuff(d); List docRegionList = new ArrayList(); ITypedRegion region = null; int offset = 0; w...
diff --git a/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPHeaderImpl.java b/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPHeaderImpl.java index 51c8301b7..299599e9d 100644 --- a/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPHeaderImpl.java +++ b/modu...
true
true
public ArrayList getHeaderBlocksWithNSURI(String nsURI) { ArrayList headers = null; OMNode node = null; OMElement header = this.getFirstElement(); if (header != null) { headers = new ArrayList(); } node = header; while (node != null) { ...
public ArrayList getHeaderBlocksWithNSURI(String nsURI) { ArrayList headers = null; OMNode node = null; OMElement header = this.getFirstElement(); if (header != null) { headers = new ArrayList(); } node = header; while (node != null) { ...
diff --git a/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/WikiConnector.java b/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/WikiConnector.java index 9feb605f9..3beebc333 100644 --- a/connectors/wiki/connector/src/main/java/org/apache/mani...
true
true
public void outputSpecificationBody(IHTTPOutput out, DocumentSpecification ds, String tabName) throws ManifoldCFException, IOException { if (tabName.equals("Namespace and Titles")) { boolean seenAny = false; // Output table column headers out.print( "<table class=\"displaytable\">\n"+ ...
public void outputSpecificationBody(IHTTPOutput out, DocumentSpecification ds, String tabName) throws ManifoldCFException, IOException { if (tabName.equals("Namespace and Titles")) { boolean seenAny = false; // Output table column headers out.print( "<table class=\"displaytable\">\n"+ ...
diff --git a/src/edu/isi/pegasus/planner/client/TCClient.java b/src/edu/isi/pegasus/planner/client/TCClient.java index 6df78208f..1497bb951 100644 --- a/src/edu/isi/pegasus/planner/client/TCClient.java +++ b/src/edu/isi/pegasus/planner/client/TCClient.java @@ -1,435 +1,436 @@ /** * Copyright 2007-2008 University Of...
true
true
public void executeCommand() { String[] opts = getCommandLineOptions(); if(opts.length == 0){ mLogger.log("Please provide the required options.",LogManager.ERROR_MESSAGE_LEVEL); this.printShortVersion(); System.exit(1); } LongOpt[] longOptions = generateValidOpti...
public void executeCommand() { String[] opts = getCommandLineOptions(); if(opts.length == 0){ mLogger.log("Please provide the required options.",LogManager.ERROR_MESSAGE_LEVEL); this.printShortVersion(); System.exit(1); } LongOpt[] longOptions = generateValidOpti...
diff --git a/solr/test-framework/src/java/org/apache/solr/cloud/AbstractDistribZkTestBase.java b/solr/test-framework/src/java/org/apache/solr/cloud/AbstractDistribZkTestBase.java index 63e83df931..67c9ee0a0a 100644 --- a/solr/test-framework/src/java/org/apache/solr/cloud/AbstractDistribZkTestBase.java +++ b/solr/test-f...
false
true
protected void waitForRecoveriesToFinish(String collection, ZkStateReader zkStateReader, boolean verbose, boolean failOnTimeout, int timeoutSeconds) throws Exception { log.info("Wait for recoveries to finish - collection: " + collection + " failOnTimeout:" + failOnTimeout + " timeout (sec):" + timeout...
protected void waitForRecoveriesToFinish(String collection, ZkStateReader zkStateReader, boolean verbose, boolean failOnTimeout, int timeoutSeconds) throws Exception { log.info("Wait for recoveries to finish - collection: " + collection + " failOnTimeout:" + failOnTimeout + " timeout (sec):" + timeout...
diff --git a/src/de/thm/ateam/memory/network/NetworkMemory.java b/src/de/thm/ateam/memory/network/NetworkMemory.java index aae47e7..6ec1c02 100644 --- a/src/de/thm/ateam/memory/network/NetworkMemory.java +++ b/src/de/thm/ateam/memory/network/NetworkMemory.java @@ -1,341 +1,343 @@ package de.thm.ateam.memory.network; ...
true
true
public void onItemClick(AdapterView<?> parent, View v, int position, long id) { /* player is not allowed to make a move if he hasn't got the token */ if(!currentPlayer.hasToken){ return; } //fixing problems with ThreadSafety of ImageView here if(deleted.contains(position)){ Log.i(TAG,"allready ...
public void onItemClick(AdapterView<?> parent, View v, int position, long id) { /* player is not allowed to make a move if he hasn't got the token */ if(!currentPlayer.hasToken){ return; } //fixing problems with ThreadSafety of ImageView here if(deleted.contains(position)){ Log.i(TAG,"allready ...
diff --git a/jbpm-flow/src/main/java/org/jbpm/marshalling/impl/AbstractProtobufProcessInstanceMarshaller.java b/jbpm-flow/src/main/java/org/jbpm/marshalling/impl/AbstractProtobufProcessInstanceMarshaller.java index 356111715..c7ec218fd 100644 --- a/jbpm-flow/src/main/java/org/jbpm/marshalling/impl/AbstractProtobufProce...
true
true
protected JBPMMessages.ProcessInstance.NodeInstanceContent writeNodeInstanceContent(JBPMMessages.ProcessInstance.NodeInstance.Builder _node, NodeInstance nodeInstance, ...
protected JBPMMessages.ProcessInstance.NodeInstanceContent writeNodeInstanceContent(JBPMMessages.ProcessInstance.NodeInstance.Builder _node, NodeInstance nodeInstance, ...
diff --git a/src/test/java/com/ning/http/client/async/DigestAuthTest.java b/src/test/java/com/ning/http/client/async/DigestAuthTest.java index f185ceff5..eaa9fc2db 100644 --- a/src/test/java/com/ning/http/client/async/DigestAuthTest.java +++ b/src/test/java/com/ning/http/client/async/DigestAuthTest.java @@ -1,148 +1,14...
true
true
public void setUpGlobal() throws Exception { server = new Server(); Logger root = Logger.getRootLogger(); root.setLevel(Level.DEBUG); root.addAppender(new ConsoleAppender( new PatternLayout(PatternLayout.TTCC_CONVERSION_PATTERN))); port1 = 8080; Conne...
public void setUpGlobal() throws Exception { server = new Server(); Logger root = Logger.getRootLogger(); root.setLevel(Level.DEBUG); root.addAppender(new ConsoleAppender( new PatternLayout(PatternLayout.TTCC_CONVERSION_PATTERN))); port1 = findFreePort(); ...
diff --git a/plugins/org.eclipse.emf.compare.ui/src/org/eclipse/emf/compare/ui/ModelCompareInput.java b/plugins/org.eclipse.emf.compare.ui/src/org/eclipse/emf/compare/ui/ModelCompareInput.java index c82cac198..64d765175 100644 --- a/plugins/org.eclipse.emf.compare.ui/src/org/eclipse/emf/compare/ui/ModelCompareInput.jav...
true
true
public List<DiffElement> getDiffAsList() { final List<DiffElement> diffList = new ArrayList<DiffElement>(); // TODO Is ordering still needed? check for perfs // We'll order the diffs by class (modelElementChange, attributechange then referenceChange) final List<ModelElementChange> modelElementDiffs = new Array...
public List<DiffElement> getDiffAsList() { final List<DiffElement> diffList = new ArrayList<DiffElement>(); // ordering is needed in order to merge modelElement diffs before references change // We'll order the diffs by class (modelElementChange, attributechange then referenceChange) final List<ModelElementCha...
diff --git a/src/java/com/eviware/soapui/support/HermesJMSClasspathHacker.java b/src/java/com/eviware/soapui/support/HermesJMSClasspathHacker.java index d8137d5a0..83f6bde03 100644 --- a/src/java/com/eviware/soapui/support/HermesJMSClasspathHacker.java +++ b/src/java/com/eviware/soapui/support/HermesJMSClasspathHacker....
true
true
public static void addURL( URL u ) throws IOException { try { ClassLoader classLoader = JAXBHermesLoader.class.getClassLoader(); if( !( classLoader instanceof URLClassLoader ) ) { SoapUI.log.error( "SoapUI classloader is not an URLClassLoader, failed to add external library" ); return; } ...
public static void addURL( URL u ) throws IOException { try { ClassLoader classLoader = null; if( UISupport.isWindows() ) { classLoader = JAXBHermesLoader.class.getClassLoader(); } else { classLoader = SoapUI.class.getClassLoader(); } if( !( classLoader instanceof URLClassLoader )...
diff --git a/htroot/ViewProfile.java b/htroot/ViewProfile.java index 14b3b5eb2..4c6bfd079 100644 --- a/htroot/ViewProfile.java +++ b/htroot/ViewProfile.java @@ -1,193 +1,193 @@ // ViewProfile_p.java // ----------------------- // part of YaCy // (C) by Michael Peter Christen; mc@anomic.de // first published on htt...
false
true
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { // listManager.switchboard = (plasmaSwitchboard) env; serverObjects prop = new serverObjects(); plasmaSwitchboard switchboard = (plasmaSwitchboard) env; wikiCode wikiTransformer = new wikiCode(sw...
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { // listManager.switchboard = (plasmaSwitchboard) env; serverObjects prop = new serverObjects(); plasmaSwitchboard switchboard = (plasmaSwitchboard) env; wikiCode wikiTransformer = new wikiCode(sw...
diff --git a/src/main/java/com/skype/connector/osx/SkypeFramework.java b/src/main/java/com/skype/connector/osx/SkypeFramework.java index a5e1e2d..71f4357 100644 --- a/src/main/java/com/skype/connector/osx/SkypeFramework.java +++ b/src/main/java/com/skype/connector/osx/SkypeFramework.java @@ -1,141 +1,141 @@ /*********...
true
true
static void init(String applicationName) throws LoadLibraryException { ConnectorUtils.checkNotNull("applicationName", applicationName); synchronized(initializedFieldMutex) { if (!initialized) { ConnectorUtils.loadLibrary("skype"); setup0(applicationName)...
static void init(String applicationName) throws LoadLibraryException { ConnectorUtils.checkNotNull("applicationName", applicationName); synchronized(initializedFieldMutex) { if (!initialized) { ConnectorUtils.loadLibrary("libskype.jnilib"); setup0(applic...
diff --git a/seminer/src/bicho/BichoReader.java b/seminer/src/bicho/BichoReader.java index 7be9360..4002a3c 100644 --- a/seminer/src/bicho/BichoReader.java +++ b/seminer/src/bicho/BichoReader.java @@ -1,50 +1,50 @@ package bicho; import java.util.ArrayList; import java.util.List; import org.hibernate.Session; ...
false
true
public List<Issues> parseFile(String projectName) { List<Object[]> resultList = s.createSQLQuery("SELECT * FROM issues LEFT OUTER JOIN changes ON issues.tracker_id = changes.id LEFT OUTER JOIN trackers ON trackers.id = issues.tracker_id WHERE trackers.url LIKE '%" + projectName + "%'").addEntity("issues", bicho.Iss...
public List<Issues> parseFile(String projectName) { List<Object[]> resultList = s.createSQLQuery("SELECT {issues.*}, {changes.*} FROM issues LEFT OUTER JOIN changes ON changes.issue_id = issues.id LEFT OUTER JOIN trackers ON trackers.id = issues.tracker_id WHERE trackers.url LIKE '%" + projectName + "%'").addEntity...
diff --git a/loci/formats/in/ICSReader.java b/loci/formats/in/ICSReader.java index 2dc82884f..53a787dee 100644 --- a/loci/formats/in/ICSReader.java +++ b/loci/formats/in/ICSReader.java @@ -1,435 +1,435 @@ // // ICSReader.java // /* LOCI Bio-Formats package for reading and converting biological file formats. Cop...
true
true
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); String icsId = id, idsId = id; int dot = id.lastIndexOf("."); String ext = dot < 0 ? "" : id.substring(dot + 1).toLowerCase(); if(ext.equals("ics")) { // convert C to D regardless of case char...
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); String icsId = id, idsId = id; int dot = id.lastIndexOf("."); String ext = dot < 0 ? "" : id.substring(dot + 1).toLowerCase(); if(ext.equals("ics")) { // convert C to D regardless of case char...
diff --git a/Product/Controller/src/org/openremote/controller/servlet/LoginServlet.java b/Product/Controller/src/org/openremote/controller/servlet/LoginServlet.java index 5d8650b..27c765c 100644 --- a/Product/Controller/src/org/openremote/controller/servlet/LoginServlet.java +++ b/Product/Controller/src/org/openremote/...
true
true
public int checkOnline(String username, String password) { String databaseuser = configurationService.getItem("composer_username"); String databasepassword = configurationService.getItem("composer_password"); if(!databaseuser.equals("") && !username.equals(databaseuser)) { return -3; }...
public int checkOnline(String username, String password) { String databaseuser = configurationService.getItem("composer_username"); String databasepassword = configurationService.getItem("composer_password"); if(!databaseuser.equals("") && !username.equals(databaseuser)) { return -3; }...
diff --git a/src/org/linphone/ContactPickerActivityOld.java b/src/org/linphone/ContactPickerActivityOld.java index 046cde5..b136aea 100644 --- a/src/org/linphone/ContactPickerActivityOld.java +++ b/src/org/linphone/ContactPickerActivityOld.java @@ -1,80 +1,79 @@ /* ContactPickerActivity.java Copyright (C) 2010 Bell...
false
true
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == PICK_CONTACT_REQUEST) { if (resultCode == RESULT_OK) { String lColumns[] = new String[] { People._ID, People.NAME, People.NUMBER }; Cursor lCur = managedQuer...
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == PICK_CONTACT_REQUEST) { if (resultCode == RESULT_OK) { String lColumns[] = new String[] { People._ID, People.NAME, People.NUMBER }; Cursor lCur = managedQuer...
diff --git a/CB/src/com/android/cb/source/CBOrderParser.java b/CB/src/com/android/cb/source/CBOrderParser.java index 0e6dbda..6f8fb9e 100644 --- a/CB/src/com/android/cb/source/CBOrderParser.java +++ b/CB/src/com/android/cb/source/CBOrderParser.java @@ -1,127 +1,127 @@ /** * @Title: CBOrderParser.java * @Package: c...
true
true
public void onTagWithValueDetected(String tag, String value, final HashMap<String, String> attrs) { if (mOrder == null) return; if (tag.equalsIgnoreCase(CBOrderXmlWriter.TAG_ID)) { CBId id = new CBId(value); mOrder.setId(id); } else if (tag.equalsIgnoreCase(CBOrderXmlWriter.TAG_LOCATION)) { mOrder.s...
public void onTagWithValueDetected(String tag, String value, final HashMap<String, String> attrs) { if (mOrder == null) return; if (tag.equalsIgnoreCase(CBOrderXmlWriter.TAG_ID)) { CBId id = new CBId(value); mOrder.setId(id); } else if (tag.equalsIgnoreCase(CBOrderXmlWriter.TAG_LOCATION)) { mOrder.s...
diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/variantutils/VariantsToTable.java b/java/src/org/broadinstitute/sting/gatk/walkers/variantutils/VariantsToTable.java index f39ca00d2..e75766e12 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/variantutils/VariantsToTable.java +++ b/java/src/org/bro...
true
true
public Integer map(RefMetaDataTracker tracker, ReferenceContext ref, AlignmentContext context) { if ( tracker == null ) // RodWalkers can make funky map calls return 0; if ( ++nRecords < MAX_RECORDS || MAX_RECORDS == -1 ) { Collection<VariantContext> vcs = tracker.getAllVari...
public Integer map(RefMetaDataTracker tracker, ReferenceContext ref, AlignmentContext context) { if ( tracker == null ) // RodWalkers can make funky map calls return 0; if ( ++nRecords < MAX_RECORDS || MAX_RECORDS == -1 ) { Collection<VariantContext> vcs = tracker.getAllVari...
diff --git a/src/main/java/org/bukkit/command/defaults/ScoreboardCommand.java b/src/main/java/org/bukkit/command/defaults/ScoreboardCommand.java index 687af3d1..a805f7c2 100644 --- a/src/main/java/org/bukkit/command/defaults/ScoreboardCommand.java +++ b/src/main/java/org/bukkit/command/defaults/ScoreboardCommand.java @...
true
true
public boolean execute(CommandSender sender, String currentAlias, String[] args) { if (!testPermission(sender)) return true; if (args.length < 1 || args[0].length() == 0) { sender.sendMessage(ChatColor.RED + "Usage: /scoreboard <objectives|players|teams>"); return...
public boolean execute(CommandSender sender, String currentAlias, String[] args) { if (!testPermission(sender)) return true; if (args.length < 1 || args[0].length() == 0) { sender.sendMessage(ChatColor.RED + "Usage: /scoreboard <objectives|players|teams>"); return...
diff --git a/alfresco-api-util/src/main/java/nl/runnable/alfresco/repository/dictionary/ModelRegistrar.java b/alfresco-api-util/src/main/java/nl/runnable/alfresco/repository/dictionary/ModelRegistrar.java index e0e471ea..f20a0918 100644 --- a/alfresco-api-util/src/main/java/nl/runnable/alfresco/repository/dictionary/Mo...
true
true
public void registerModels() { for (final M2Model model : getModels()) { try { if (logger.isDebugEnabled()) { logger.debug("Registering model '{}'", model.getName()); } final QName modelName = getDictionaryDao().putModel(model); registeredModelNames.add(modelName); registerModelMetadata(m...
public void registerModels() { for (final M2Model model : getModels()) { try { if (logger.isDebugEnabled()) { logger.debug("Registering model '{}'", model.getName()); } final QName modelName = getDictionaryDao().putModel(model); registeredModelNames.add(modelName); registerModelMetadata(m...
diff --git a/engine/src/test/java/org/camunda/bpm/engine/test/jobexecutor/JobExecutorCmdExceptionTest.java b/engine/src/test/java/org/camunda/bpm/engine/test/jobexecutor/JobExecutorCmdExceptionTest.java index 479b99920..a1b5c096c 100644 --- a/engine/src/test/java/org/camunda/bpm/engine/test/jobexecutor/JobExecutorCmdEx...
false
true
public void testMixedFailingAndSucceedingJobs() { tweetExceptionHandler.setExceptionsRemaining(62); List<String> createdJobs = new ArrayList<String>(); // create 40 jobs: 20 of these fail and 20 pass. for(int i = 0; i < 40; i++) { createdJobs.add(commandExecutor.execute(new Command<String>...
public void testMultipleFailingJobs() { tweetExceptionHandler.setExceptionsRemaining(600); List<String> createdJobs = new ArrayList<String>(); // create 40 jobs for(int i = 0; i < 40; i++) { createdJobs.add(commandExecutor.execute(new Command<String>() { public String execute(Co...
diff --git a/src/main/java/com/philihp/weblabora/model/building/CloisterCourtyard.java b/src/main/java/com/philihp/weblabora/model/building/CloisterCourtyard.java index ea5792d..5ea644e 100644 --- a/src/main/java/com/philihp/weblabora/model/building/CloisterCourtyard.java +++ b/src/main/java/com/philihp/weblabora/model...
true
true
public void use(Board board, UsageParamDouble input) throws WeblaboraException { Player player = board.getPlayer(board.getActivePlayer()); UsageParamSingle output = input.getSecondary(); if((input.differentSingularGoods() == 3) == false) { throw new WeblaboraException(getName()+" requires three single, dif...
public void use(Board board, UsageParamDouble input) throws WeblaboraException { Player player = board.getPlayer(board.getActivePlayer()); UsageParamSingle output = input.getSecondary(); if((input.differentSingularGoods() == 3) == false) { throw new WeblaboraException(getName()+" requires three single, dif...
diff --git a/extensions/gdx-tools/src/com/badlogic/gdx/tools/skins/SkinPacker.java b/extensions/gdx-tools/src/com/badlogic/gdx/tools/skins/SkinPacker.java index 53d799084..825e93077 100644 --- a/extensions/gdx-tools/src/com/badlogic/gdx/tools/skins/SkinPacker.java +++ b/extensions/gdx-tools/src/com/badlogic/gdx/tools/s...
true
true
static public void process (Settings settings, final File inputDir, final File skinFile, final File imageFile) throws Exception { Texture.setEnforcePotImages(false); final File packedDir = new File("temp-packed"); new FileHandle(packedDir).deleteDirectory(); imageFile.delete(); final ObjectMap<String, S...
static public void process (Settings settings, final File inputDir, final File skinFile, final File imageFile) throws Exception { Texture.setEnforcePotImages(false); final File packedDir = new File("temp-packed"); new FileHandle(packedDir).deleteDirectory(); imageFile.delete(); final ObjectMap<String, S...
diff --git a/grisu-core/src/main/java/grisu/control/serviceInterfaces/LocalServiceInterface.java b/grisu-core/src/main/java/grisu/control/serviceInterfaces/LocalServiceInterface.java index 215a1476..09611b2b 100644 --- a/grisu-core/src/main/java/grisu/control/serviceInterfaces/LocalServiceInterface.java +++ b/grisu-cor...
true
true
protected final Credential getCredential() { long oldLifetime = -1; try { if (credential != null) { oldLifetime = credential.getCredential() .getRemainingLifetime(); } } catch (final GSSException e2) { myLogger.debug("Problem getting lifetime of old certificate: " + e2); credential = null;...
protected final Credential getCredential() { long oldLifetime = -1; try { if (credential != null) { oldLifetime = credential.getCredential() .getRemainingLifetime(); } } catch (final GSSException e2) { myLogger.debug("Problem getting lifetime of old certificate: " + e2); credential = null;...
diff --git a/src/com/albaniliu/chuangxindemo/util/Downloader.java b/src/com/albaniliu/chuangxindemo/util/Downloader.java index 2dba380..771a033 100644 --- a/src/com/albaniliu/chuangxindemo/util/Downloader.java +++ b/src/com/albaniliu/chuangxindemo/util/Downloader.java @@ -1,174 +1,174 @@ package com.albaniliu.chuangxi...
true
true
void download(FInode parent, JSONArray json) throws Exception { int index = 0; for (int i = 0; i < json.length() && !Thread.currentThread().isInterrupted(); i++) { JSONObject obj = (JSONObject) json.get(i); if (obj.has("url")) { FInode inode = n...
void download(FInode parent, JSONArray json) throws Exception { int index = 0; for (int i = 0; i < json.length() && !Thread.currentThread().isInterrupted(); i++) { JSONObject obj = (JSONObject) json.get(i); if (obj.has("url")) { FInode inode = n...
diff --git a/sikuli-ide/src/main/java/edu/mit/csail/uid/SikuliViewFactory.java b/sikuli-ide/src/main/java/edu/mit/csail/uid/SikuliViewFactory.java index 517cabe3..1bfadf7f 100644 --- a/sikuli-ide/src/main/java/edu/mit/csail/uid/SikuliViewFactory.java +++ b/sikuli-ide/src/main/java/edu/mit/csail/uid/SikuliViewFactory.ja...
true
true
public void paint(Graphics g, Shape shape){ Graphics2D g2d = (Graphics2D)g; //g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, // RenderingHints.VALUE_ANTIALIAS_ON); //super.paint(g, shape); // for drawing selection String text = getText(getStartOffset(), getEndOffset()).toS...
public void paint(Graphics g, Shape shape){ Graphics2D g2d = (Graphics2D)g; g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); //super.paint(g, shape); // for drawing selection String text = getText(getStartOffset(), getEndOffset()).toStrin...
diff --git a/src/com/jme/bounding/CollisionTreeManager.java b/src/com/jme/bounding/CollisionTreeManager.java index cacbb3cc2..34698798d 100755 --- a/src/com/jme/bounding/CollisionTreeManager.java +++ b/src/com/jme/bounding/CollisionTreeManager.java @@ -1,417 +1,418 @@ /* * Copyright (c) 2003-2007 jMonkeyEngine * A...
true
true
public CollisionTree generateCollisionTree(CollisionTree tree, TriangleBatch batch, boolean protect) { if (tree != null) { if (batch instanceof SharedBatch) { // we might already have the appropriate tree if (!cache.containsKey(((SharedBatch) batch).getTarget())) { tree.construct(((SharedBatch) ba...
public CollisionTree generateCollisionTree(CollisionTree tree, TriangleBatch batch, boolean protect) { if (tree != null) { if (batch instanceof SharedBatch) { // we might already have the appropriate tree if (!cache.containsKey(((SharedBatch) batch).getTarget())) { tree.construct(((SharedBatch) ba...
diff --git a/src/org/hackystat/sensorbase/server/ServerProperties.java b/src/org/hackystat/sensorbase/server/ServerProperties.java index 12b7cfc..56c48fe 100644 --- a/src/org/hackystat/sensorbase/server/ServerProperties.java +++ b/src/org/hackystat/sensorbase/server/ServerProperties.java @@ -1,264 +1,264 @@ package or...
false
true
private void initializeProperties () throws Exception { String userHome = System.getProperty("user.home"); String userDir = System.getProperty("user.dir"); String hackyHome = userHome + "/.hackystat"; String sensorBaseHome = hackyHome + "/sensorbase"; String propFile = userHome + "/.hackystat/sen...
private void initializeProperties () throws Exception { String userHome = System.getProperty("user.home"); String userDir = System.getProperty("user.dir"); String hackyHome = userHome + "/.hackystat"; String sensorBaseHome = hackyHome + "/sensorbase"; String propFile = userHome + "/.hackystat/sen...
diff --git a/pipe-gui/src/main/java/pipe/gui/widgets/TransitionFunctionEditor.java b/pipe-gui/src/main/java/pipe/gui/widgets/TransitionFunctionEditor.java index df027dba..a91f4eb9 100644 --- a/pipe-gui/src/main/java/pipe/gui/widgets/TransitionFunctionEditor.java +++ b/pipe-gui/src/main/java/pipe/gui/widgets/TransitionF...
false
true
private void init(PetriNet petriNet) { final JTextArea function = new JTextArea(); function.setText(transitionController.getRateExpr()); JScrollPane scrollPane = new JScrollPane(function); scrollPane.setBorder(javax.swing.BorderFactory .createTitledBorder("Rate expr...
private void init(final PetriNet petriNet) { final JTextArea function = new JTextArea(); function.setText(transitionController.getRateExpr()); JScrollPane scrollPane = new JScrollPane(function); scrollPane.setBorder(javax.swing.BorderFactory .createTitledBorder("Rat...
diff --git a/src/share/org/dianexus/triceps/Evidence.java b/src/share/org/dianexus/triceps/Evidence.java index d14b5e5..9642080 100644 --- a/src/share/org/dianexus/triceps/Evidence.java +++ b/src/share/org/dianexus/triceps/Evidence.java @@ -1,440 +1,440 @@ import java.lang.*; import java.util.*; import java.io.*; i...
true
true
public Datum function(String name, Vector params, int line, int column) { /* passed a vector of Datum values */ try { Integer func = (Integer) FUNCTIONS.get(name); if (func == null) { /* then not found - could consider calling JavaBean! */ setError("unsupported function " + name, line, column); ...
public Datum function(String name, Vector params, int line, int column) { /* passed a vector of Datum values */ try { Integer func = (Integer) FUNCTIONS.get(name); if (func == null) { /* then not found - could consider calling JavaBean! */ setError("unsupported function " + name, line, column); ...
diff --git a/src/org/biojava/bio/seq/SimpleAssembly.java b/src/org/biojava/bio/seq/SimpleAssembly.java index d5ad85494..271bc6313 100755 --- a/src/org/biojava/bio/seq/SimpleAssembly.java +++ b/src/org/biojava/bio/seq/SimpleAssembly.java @@ -1,275 +1,275 @@ /* * BioJava development code * * Thi...
true
true
public Feature createFeature(Feature.Template temp) throws BioException, ChangeVetoException { if (temp.location.getMin() < 1) throw new BioException("Coordinates out of range"); if (temp instanceof ComponentFeature.Template) { for (Iterator i = assembly.getComponentLocationSet().iterator(...
public Feature createFeature(Feature.Template temp) throws BioException, ChangeVetoException { if (temp.location.getMin() < 1) throw new BioException("Coordinates out of range"); if (temp instanceof ComponentFeature.Template) { for (Iterator i = assembly.getComponentLocationSet().iterator(...
diff --git a/fabric/fabric-core-agent-jclouds/src/main/java/org/fusesource/fabric/service/jclouds/commands/CloudProviderRemove.java b/fabric/fabric-core-agent-jclouds/src/main/java/org/fusesource/fabric/service/jclouds/commands/CloudProviderRemove.java index 150dc9436..042d73b10 100644 --- a/fabric/fabric-core-agent-jc...
true
true
protected Object doExecute() throws Exception { boolean connected = getZooKeeper().isConnected(); Container current = null; if (connected) { getZooKeeper().deleteWithChildren(ZkPath.CLOUD_PROVIDER.getPath(provider)); current = fabricService.getCurrentContainer(); ...
protected Object doExecute() throws Exception { boolean connected = getZooKeeper().isConnected(); Container current = null; if (connected) { getZooKeeper().deleteWithChildren(ZkPath.CLOUD_PROVIDER.getPath(provider)); current = fabricService.getCurrentContainer(); ...
diff --git a/tools/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/ProjectResources.java b/tools/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/ProjectResources.java index 9052672d..dce26228 100644 --- a/tools...
true
true
private Resource findMatchingConfiguredResource(List<? extends Resource> resources, FolderConfiguration referenceConfig) { // // 1: eliminate resources that contradict the reference configuration // 2: pick next qualifier type // 3: check if any resources use this qualifi...
private Resource findMatchingConfiguredResource(List<? extends Resource> resources, FolderConfiguration referenceConfig) { // // 1: eliminate resources that contradict the reference configuration // 2: pick next qualifier type // 3: check if any resources use this qualifi...
diff --git a/toolsrc/org/mozilla/javascript/tools/shell/JSConsole.java b/toolsrc/org/mozilla/javascript/tools/shell/JSConsole.java index e1e5720b..74e4daa6 100644 --- a/toolsrc/org/mozilla/javascript/tools/shell/JSConsole.java +++ b/toolsrc/org/mozilla/javascript/tools/shell/JSConsole.java @@ -1,211 +1,211 @@ /* -*- M...
true
true
public JSConsole(String[] args) { super("Rhino JavaScript Console"); JMenuBar menubar = new JMenuBar(); createFileChooser(); String[] fileItems = {"Load...", "Exit"}; String[] fileCmds = {"Load", "Exit"}; char[] fileShortCuts = {'L', 'X'}; String[] editItems...
public JSConsole(String[] args) { super("Rhino JavaScript Console"); JMenuBar menubar = new JMenuBar(); createFileChooser(); String[] fileItems = {"Load...", "Exit"}; String[] fileCmds = {"Load", "Exit"}; char[] fileShortCuts = {'L', 'X'}; String[] editItems...
diff --git a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/typeinference/NativeStringReference.java b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/typeinference/NativeStringReference.java index 20e9f23b..03af703a 100644 --- a/plugins/org.eclipse.d...
false
true
public void setChild(String key, IReference ref) { if (ref instanceof UnknownReference) { UnknownReference ur = (UnknownReference) ref; String name = ref.getName(); if (name.equals("toString")) { ur.setProposalInfo("Returns a String value for this object."); } else if (name.equals("toSource")) { ...
public void setChild(String key, IReference ref) { if (ref instanceof UnknownReference) { UnknownReference ur = (UnknownReference) ref; String name = ref.getName(); if (name.equals("toString")) { ur.setProposalInfo("Returns a String value for this object."); } else if (name.equals("toSource")) { ...
diff --git a/modules/src/main/java/org/archive/modules/deciderules/TransclusionDecideRule.java b/modules/src/main/java/org/archive/modules/deciderules/TransclusionDecideRule.java index 338c488..e5cd49c 100644 --- a/modules/src/main/java/org/archive/modules/deciderules/TransclusionDecideRule.java +++ b/modules/src/main/...
false
true
protected boolean evaluate(CrawlURI curi) { String hopsPath = curi.getPathFromSeed(); if (hopsPath == null || hopsPath.length() == 0) { return false; } int count = 0; int specCount = 0; for (int i = hopsPath.length() - 1; i >= 0; i--) { char ...
protected boolean evaluate(CrawlURI curi) { String hopsPath = curi.getPathFromSeed(); if (hopsPath == null || hopsPath.length() == 0) { return false; } int count = 0; int specCount = 0; for (int i = hopsPath.length() - 1; i >= 0; i--) { char ...
diff --git a/gadget-web/src/main/java/org/overlord/gadgets/web/client/view/Footer.java b/gadget-web/src/main/java/org/overlord/gadgets/web/client/view/Footer.java index 0d326ec..b2dd31a 100644 --- a/gadget-web/src/main/java/org/overlord/gadgets/web/client/view/Footer.java +++ b/gadget-web/src/main/java/org/overlord/gad...
true
true
public Widget asWidget() { LayoutPanel layout = new LayoutPanel(); layout.setStyleName("footer-panel"); HTML settings = new HTML("Messages"); settings.addStyleName("footer-link"); settings.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event...
public Widget asWidget() { LayoutPanel layout = new LayoutPanel(); layout.setStyleName("footer-panel"); HTML settings = new HTML("Messages"); settings.addStyleName("footer-link"); settings.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event...
diff --git a/src/simpleserver/stream/StreamTunnel.java b/src/simpleserver/stream/StreamTunnel.java index bc382f0..8af3f44 100644 --- a/src/simpleserver/stream/StreamTunnel.java +++ b/src/simpleserver/stream/StreamTunnel.java @@ -1,809 +1,811 @@ /* * Copyright (c) 2010 SimpleServer authors (see CONTRIBUTORS) * * ...
false
true
private void handlePacket() throws IOException { Byte packetId = in.readByte(); switch (packetId) { case 0x00: // Keep Alive write(packetId); break; case 0x01: // Login Request/Response write(packetId); if (isServerTunnel) { player.setEntityId(in.readInt()...
private void handlePacket() throws IOException { Byte packetId = in.readByte(); switch (packetId) { case 0x00: // Keep Alive write(packetId); break; case 0x01: // Login Request/Response write(packetId); if (isServerTunnel) { player.setEntityId(in.readInt()...
diff --git a/src/main/java/com/bergerkiller/bukkit/common/controller/EntityController.java b/src/main/java/com/bergerkiller/bukkit/common/controller/EntityController.java index 9eca361..6932d85 100644 --- a/src/main/java/com/bergerkiller/bukkit/common/controller/EntityController.java +++ b/src/main/java/com/bergerkille...
true
true
public void onMove(double dx, double dy, double dz) { final Entity handle = entity.getHandle(Entity.class); if (handle.Z) { handle.boundingBox.d(dx, dy, dz); handle.locX = (handle.boundingBox.a + handle.boundingBox.d) / 2.0D; handle.locY = (handle.boundingBox.b + (double) handle.height) - (double) handle....
public void onMove(double dx, double dy, double dz) { final Entity handle = entity.getHandle(Entity.class); if (handle.Z) { handle.boundingBox.d(dx, dy, dz); handle.locX = (handle.boundingBox.a + handle.boundingBox.d) / 2.0D; handle.locY = (handle.boundingBox.b + (double) handle.height) - (double) handle....
diff --git a/src/DirreqStatsFileHandler.java b/src/DirreqStatsFileHandler.java index 59264f9..0b9f0c0 100644 --- a/src/DirreqStatsFileHandler.java +++ b/src/DirreqStatsFileHandler.java @@ -1,244 +1,244 @@ import java.io.*; import java.text.*; import java.util.*; import java.util.logging.*; /** * Extracts stati...
true
true
public void writeFile() { /* Only write file if we learned something new. */ if (this.dirreqsModified) { try { this.logger.fine("Writing file " + this.dirreqStatsFile.getAbsolutePath() + "..."); this.dirreqStatsFile.getParentFile().mkdirs(); BufferedWriter bw = new B...
public void writeFile() { /* Only write file if we learned something new. */ if (this.dirreqsModified) { try { this.logger.fine("Writing file " + this.dirreqStatsFile.getAbsolutePath() + "..."); this.dirreqStatsFile.getParentFile().mkdirs(); BufferedWriter bw = new B...
diff --git a/loci/plugins/browser/CacheIndicator.java b/loci/plugins/browser/CacheIndicator.java index 05d28c592..442f87e5a 100644 --- a/loci/plugins/browser/CacheIndicator.java +++ b/loci/plugins/browser/CacheIndicator.java @@ -1,185 +1,185 @@ // // CacheIndicator.java // /* LOCI 4D Data Browser plugin for quic...
false
true
public void paint(Graphics g) { g.setColor(Color.white); g.fillRect(0,0,getWidth()-1,COMPONENT_HEIGHT - 1); g.setColor(Color.black); g.drawRect(0,0,getWidth()-1,COMPONENT_HEIGHT - 1); if(ratio < 1) { int [] loadColor = new int[getWidth()]; int [] cacheColor = new int[getWidth()]; ...
public void paint(Graphics g) { g.setColor(Color.white); g.fillRect(0,0,getWidth()-1,COMPONENT_HEIGHT - 1); g.setColor(Color.black); g.drawRect(0,0,getWidth()-1,COMPONENT_HEIGHT - 1); if(ratio < 1 && ratio != 0) { int [] loadColor = new int[getWidth()]; int [] cacheColor = new int[get...
diff --git a/sensorwebclient-sos-rest/src/main/java/org/n52/server/service/rest/control/RestfulServiceInstancesController.java b/sensorwebclient-sos-rest/src/main/java/org/n52/server/service/rest/control/RestfulServiceInstancesController.java index 239d659b..c67228af 100644 --- a/sensorwebclient-sos-rest/src/main/java/...
true
true
public ModelAndView getInstancesByGET(@RequestParam(value = KVP_SHOW, required = false) String details, @RequestParam(value = KVP_OFFSET, defaultValue = KVP_DEFAULT_SIZE) int offset, @RequestParam(value = KVP_SIZE, defaultValue = KV...
public ModelAndView getInstancesByGET(@RequestParam(value = KVP_SHOW, required = false) String details, @RequestParam(value = KVP_OFFSET, defaultValue = KVP_DEFAULT_OFFSET) int offset, @RequestParam(value = KVP_SIZE, defaultValue = ...
diff --git a/trunk/appia/src/core/net/sf/appia/protocols/tcpcomplete/TcpReader.java b/trunk/appia/src/core/net/sf/appia/protocols/tcpcomplete/TcpReader.java index 9073df2..45c9476 100644 --- a/trunk/appia/src/core/net/sf/appia/protocols/tcpcomplete/TcpReader.java +++ b/trunk/appia/src/core/net/sf/appia/protocols/tcpcom...
false
true
public void run(){ SendableEvent event=null; try { is = s.getInputStream(); } catch (IOException ex) { InetSocketAddress iwp = new InetSocketAddress(s.getInetAddress(),remotePort); if(log.isDebugEnabled()){ log.debug("message reception from "+iwp+" failed. Sending Undelivered event back. Excepti...
public void run(){ SendableEvent event=null; try { is = s.getInputStream(); } catch (IOException ex) { InetSocketAddress iwp = new InetSocketAddress(s.getInetAddress(),remotePort); if(log.isDebugEnabled()){ log.debug("message reception from "+iwp+" failed. Sending Undelivered event back. Excepti...
diff --git a/test/src/com/sun/tools/javafx/api/JFXC3525Test.java b/test/src/com/sun/tools/javafx/api/JFXC3525Test.java index d07aa4f92..dda578c5c 100644 --- a/test/src/com/sun/tools/javafx/api/JFXC3525Test.java +++ b/test/src/com/sun/tools/javafx/api/JFXC3525Test.java @@ -1,91 +1,91 @@ /* * Copyright 2003-2009 Sun M...
true
true
public void testJFXTreesGetElement() throws Exception { ClassLoader orig = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader(JavafxcTool.class.getClassLoader()); JavafxcTool tool = JavafxcTool.create(); MockDiagnost...
public void testJFXTreesGetElement() throws Exception { ClassLoader orig = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader(JavafxcTool.class.getClassLoader()); JavafxcTool tool = JavafxcTool.create(); MockDiagnost...
diff --git a/components/component/src/org/icefaces/component/stylesheet/DeviceStyleSheetRenderer.java b/components/component/src/org/icefaces/component/stylesheet/DeviceStyleSheetRenderer.java index 3f32d5b4b..51174bab9 100644 --- a/components/component/src/org/icefaces/component/stylesheet/DeviceStyleSheetRenderer.jav...
true
true
public void encodeEnd(FacesContext context, UIComponent uiComponent) throws IOException { ResponseWriter writer = context.getResponseWriter(); Map contextMap = context.getAttributes(); Map attributes = uiComponent.getAttributes(); DeviceStyleSheet stylesheet = (DeviceStyleSheet) uiC...
public void encodeEnd(FacesContext context, UIComponent uiComponent) throws IOException { ResponseWriter writer = context.getResponseWriter(); Map contextMap = context.getAttributes(); Map attributes = uiComponent.getAttributes(); DeviceStyleSheet stylesheet = (DeviceStyleSheet) uiC...
diff --git a/src/edu/kit/asa/alloy2key/key/TermUnary.java b/src/edu/kit/asa/alloy2key/key/TermUnary.java index 184a9bf..9bca586 100644 --- a/src/edu/kit/asa/alloy2key/key/TermUnary.java +++ b/src/edu/kit/asa/alloy2key/key/TermUnary.java @@ -1,86 +1,86 @@ /** * Created on 13.02.2011 */ package edu.kit.asa.alloy2ke...
true
true
public String toString() { switch (operator) { case NOT: return "; " + this.comment + "\n" + "(not "+sub.toString()+")"; // smt ok default: return ""; } }
public String toString() { switch (operator) { case NOT: return comment == null ? "" : "; " + this.comment + "\n" + "(not "+sub.toString()+")"; // smt ok default: return ""; } }
diff --git a/Server/Sources/src/main/java/com/digt/web/CertificateController.java b/Server/Sources/src/main/java/com/digt/web/CertificateController.java index 8a942d9..79f8006 100644 --- a/Server/Sources/src/main/java/com/digt/web/CertificateController.java +++ b/Server/Sources/src/main/java/com/digt/web/CertificateCon...
true
true
public ResponseEntity<String> importCertRequest( HttpServletRequest request, @RequestParam("file") MultipartFile file) { Message ret = null; SecurityToken token = new AuthInfo(request).getSecurityToken(); UserId userId = new UserId(UserId.Type.me, null); try { if (file.getSize() > 0 && file.getSize...
public ResponseEntity<String> importCertRequest( HttpServletRequest request, @RequestParam("file") MultipartFile file) { Message ret = null; SecurityToken token = new AuthInfo(request).getSecurityToken(); UserId userId = new UserId(UserId.Type.me, null); try { if (file.getSize() > 0 && file.getSize...
diff --git a/sip-creator/src/main/java/eu/delving/sip/desktop/DesktopLauncher.java b/sip-creator/src/main/java/eu/delving/sip/desktop/DesktopLauncher.java index bb2268c7..a71e3adb 100644 --- a/sip-creator/src/main/java/eu/delving/sip/desktop/DesktopLauncher.java +++ b/sip-creator/src/main/java/eu/delving/sip/desktop/De...
false
true
private void buildLayout() { authenticationWindow = new AuthenticationWindow( new AuthenticationWindow.Listener() { @Override public void success(User user) { DesktopLauncher.this.user = user; actions.se...
private void buildLayout() { authenticationWindow = new AuthenticationWindow( new AuthenticationWindow.Listener() { @Override public void success(User user) { DesktopLauncher.this.user = user; actions.se...
diff --git a/src/com/yahoo/ycsb/workloads/ConstantOccupancyWorkload.java b/src/com/yahoo/ycsb/workloads/ConstantOccupancyWorkload.java index d9f2615..6a5e7d0 100644 --- a/src/com/yahoo/ycsb/workloads/ConstantOccupancyWorkload.java +++ b/src/com/yahoo/ycsb/workloads/ConstantOccupancyWorkload.java @@ -1,90 +1,91 @@ /** ...
false
true
public void init(Properties p) throws WorkloadException { disksize = Long.parseLong( p.getProperty(DISK_SIZE_PROPERTY, DISK_SIZE_PROPERTY_DEFAULT+"")); storageages = Long.parseLong( p.getProperty(STORAGE_AGE_PROPERTY, STORAGE_AGE_PROPERTY_DEFAULT+"")); occupancy = Double.parseDouble(p.getProperty(OCC...
public void init(Properties p) throws WorkloadException { disksize = Long.parseLong( p.getProperty(DISK_SIZE_PROPERTY, DISK_SIZE_PROPERTY_DEFAULT+"")); storageages = Long.parseLong( p.getProperty(STORAGE_AGE_PROPERTY, STORAGE_AGE_PROPERTY_DEFAULT+"")); occupancy = Double.parseDouble(p.getProperty(OCC...
diff --git a/core/src/test/java/org/infinispan/invalidation/BaseInvalidationTest.java b/core/src/test/java/org/infinispan/invalidation/BaseInvalidationTest.java index 64c7250f79..f35d064be6 100644 --- a/core/src/test/java/org/infinispan/invalidation/BaseInvalidationTest.java +++ b/core/src/test/java/org/infinispan/inva...
true
true
public void testTxSyncUnableToInvalidate() throws Exception { AdvancedCache cache1 = cache(0,"invalidationTx").getAdvancedCache(); AdvancedCache cache2 = cache(1,"invalidationTx").getAdvancedCache(); replListener(cache2).expect(InvalidateCommand.class); cache1.put("key", "value"); replL...
public void testTxSyncUnableToInvalidate() throws Exception { AdvancedCache cache1 = cache(0,"invalidationTx").getAdvancedCache(); AdvancedCache cache2 = cache(1,"invalidationTx").getAdvancedCache(); replListener(cache2).expect(InvalidateCommand.class); cache1.put("key", "value"); replL...
diff --git a/src/com/android/launcher3/CropView.java b/src/com/android/launcher3/CropView.java index f68f739d7..c8b974d01 100644 --- a/src/com/android/launcher3/CropView.java +++ b/src/com/android/launcher3/CropView.java @@ -1,247 +1,248 @@ /* * Copyright (C) 2013 The Android Open Source Project * * Licensed und...
false
true
public boolean onTouchEvent(MotionEvent event) { int action = event.getActionMasked(); final boolean pointerUp = action == MotionEvent.ACTION_POINTER_UP; final int skipIndex = pointerUp ? event.getActionIndex() : -1; // Determine focal point float sumX = 0, sumY = 0; ...
public boolean onTouchEvent(MotionEvent event) { int action = event.getActionMasked(); final boolean pointerUp = action == MotionEvent.ACTION_POINTER_UP; final int skipIndex = pointerUp ? event.getActionIndex() : -1; // Determine focal point float sumX = 0, sumY = 0; ...
diff --git a/src/lapd/databases/neo4j/TypeDeducer.java b/src/lapd/databases/neo4j/TypeDeducer.java index c4cd9b2..7080d84 100644 --- a/src/lapd/databases/neo4j/TypeDeducer.java +++ b/src/lapd/databases/neo4j/TypeDeducer.java @@ -1,151 +1,153 @@ package lapd.databases.neo4j; import java.util.ArrayList; import java....
true
true
private Type getConstructorType() { String name = currentNode.getProperty(PropertyNames.NODE).toString(); String adtName = currentNode.getProperty(PropertyNames.ADT).toString(); Type adt = typeStore.lookupAbstractDataType(adtName); if (adt == null) return typeFactory.nodeType(); Set<Type> potentialTypes...
private Type getConstructorType() { String name = currentNode.getProperty(PropertyNames.NODE).toString(); String adtName = currentNode.getProperty(PropertyNames.ADT).toString(); Type adt = typeStore.lookupAbstractDataType(adtName); if (adt == null) return typeFactory.nodeType(); Set<Type> potentialTypes...
diff --git a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/restapi/RestApiServlet.java b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/restapi/RestApiServlet.java index fac950b4f..2a489b6b8 100644 --- a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/restapi/RestApiServlet.java +++ b/gerrit-httpd/src/main/...
true
true
protected final void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { long auditStartTs = System.currentTimeMillis(); res.setHeader("Content-Disposition", "attachment"); res.setHeader("X-Content-Type-Options", "nosniff"); int status = SC_OK; Obj...
protected final void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { long auditStartTs = System.currentTimeMillis(); res.setHeader("Content-Disposition", "attachment"); res.setHeader("X-Content-Type-Options", "nosniff"); int status = SC_OK; Obj...
diff --git a/src/com/nolanlawson/catlog/data/LogLineAdapterUtil.java b/src/com/nolanlawson/catlog/data/LogLineAdapterUtil.java index 5dfd2a9..0c06210 100644 --- a/src/com/nolanlawson/catlog/data/LogLineAdapterUtil.java +++ b/src/com/nolanlawson/catlog/data/LogLineAdapterUtil.java @@ -1,169 +1,171 @@ package com.nolanl...
true
true
public static synchronized int getTagColor(Context context, String tag, String mustBeDifferentFromTag) { if (TextUtils.isEmpty(tag)) { return context.getResources().getColor(android.R.color.black); // color doesn't matter in this case } int hashedTag = hashStringToInt(tag); Integer result = tagsToC...
public static synchronized int getTagColor(Context context, String tag, String mustBeDifferentFromTag) { if (TextUtils.isEmpty(tag)) { return context.getResources().getColor(android.R.color.black); // color doesn't matter in this case } int hashedTag = hashStringToInt(tag); Integer result = tagsToC...
diff --git a/src/net/sf/freecol/common/model/Tile.java b/src/net/sf/freecol/common/model/Tile.java index a693a3c30..c6846b5d3 100644 --- a/src/net/sf/freecol/common/model/Tile.java +++ b/src/net/sf/freecol/common/model/Tile.java @@ -1,2151 +1,2159 @@ /** * Copyright (C) 2002-2007 The FreeCol Team * * This fil...
false
true
protected void readFromXMLImpl(XMLStreamReader in) throws XMLStreamException { setId(in.getAttributeValue(null, ID_ATTRIBUTE)); x = Integer.parseInt(in.getAttributeValue(null, "x")); y = Integer.parseInt(in.getAttributeValue(null, "y")); style = getAttribute(in, "style", 0); ...
protected void readFromXMLImpl(XMLStreamReader in) throws XMLStreamException { setId(in.getAttributeValue(null, ID_ATTRIBUTE)); x = Integer.parseInt(in.getAttributeValue(null, "x")); y = Integer.parseInt(in.getAttributeValue(null, "y")); style = getAttribute(in, "style", 0); ...
diff --git a/selenium/test/java/org/openqa/selenium/SingleTestSuite.java b/selenium/test/java/org/openqa/selenium/SingleTestSuite.java index 5e9f048e4..03cd15f87 100644 --- a/selenium/test/java/org/openqa/selenium/SingleTestSuite.java +++ b/selenium/test/java/org/openqa/selenium/SingleTestSuite.java @@ -1,76 +1,77 @@ ...
false
true
public static Test suite() throws Exception { String driver = IE; System.setProperty("webdriver.development", "true"); System.setProperty("jna.library.path", "..\\build;build"); System.setProperty("webdriver.selenium.server.port", String.valueOf(findFreePort())); // System.setProperty("webdriver.f...
public static Test suite() throws Exception { String driver = REMOTE; System.setProperty("webdriver.development", "true"); System.setProperty("jna.library.path", "..\\build;build"); System.setProperty("webdriver.selenium.server.port", String.valueOf(findFreePort())); // System.setProperty("webdriv...
diff --git a/src/com/itmill/toolkit/demo/sampler/features/table/TableMainFeaturesExample.java b/src/com/itmill/toolkit/demo/sampler/features/table/TableMainFeaturesExample.java index a7cbad0dc..860467fbb 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/table/TableMainFeaturesExample.java +++ b/src/com/itmill/t...
true
true
public TableMainFeaturesExample() { addComponent(table); // Label to indicate current selection final Label selected = new Label("No selection"); addComponent(selected); // set a style name, so we can style rows and cells table.setStyleName("iso3166"); // s...
public TableMainFeaturesExample() { addComponent(table); // Label to indicate current selection final Label selected = new Label("No selection"); addComponent(selected); // set a style name, so we can style rows and cells table.setStyleName("iso3166"); // s...
diff --git a/test/core/se/jbee/build/TestExampleBuild.java b/test/core/se/jbee/build/TestExampleBuild.java index 4984140..ef414b1 100644 --- a/test/core/se/jbee/build/TestExampleBuild.java +++ b/test/core/se/jbee/build/TestExampleBuild.java @@ -1,61 +1,64 @@ package se.jbee.build; import static org.junit.Assert.ass...
true
true
public void assertGoalSequence( String goal, String[] modules, String... expected ) { Step[] steps = schedule.execution( named( goal ), named( modules ) ); assertTrue( steps.length >= modules.length ); LinkedList<String> expectedSequence = new LinkedList<String>( Arrays.asList( expected ) ); int i = 0; while...
public void assertGoalSequence( String goal, String[] modules, String... expected ) { Step[] steps = schedule.execution( named( goal ), named( modules ) ); assertTrue( steps.length >= modules.length ); LinkedList<String> expectedSequence = new LinkedList<String>( Arrays.asList( expected ) ); int i = 0; while...
diff --git a/src/main/java/de/uni_potsdam/hpi/fgnaumann/lsdd/MultiBlocking.java b/src/main/java/de/uni_potsdam/hpi/fgnaumann/lsdd/MultiBlocking.java index a033cf4..712c557 100644 --- a/src/main/java/de/uni_potsdam/hpi/fgnaumann/lsdd/MultiBlocking.java +++ b/src/main/java/de/uni_potsdam/hpi/fgnaumann/lsdd/MultiBlocking....
false
true
public Plan getPlan(final String... args) { // parse program parameters /* * 4 file:///home/fabian/lsdd/data/mini.csv * file:///home/fabian/lsdd/data/freedb_tracks.csv * file:///home/fabian/lsdd/out */ final int noSubtasks = (args.length > 0 ? Integer.parseInt(args[0]) : 1); final String inputFileD...
public Plan getPlan(final String... args) { // parse program parameters /* * 4 file:///home/fabian/lsdd/data/mini.csv * file:///home/fabian/lsdd/data/freedb_tracks.csv * file:///home/fabian/lsdd/out */ final int noSubtasks = (args.length > 0 ? Integer.parseInt(args[0]) : 1); final String inputFileD...
diff --git a/weaver/src/org/aspectj/weaver/TypeFactory.java b/weaver/src/org/aspectj/weaver/TypeFactory.java index d750d10ee..93bf26f8e 100644 --- a/weaver/src/org/aspectj/weaver/TypeFactory.java +++ b/weaver/src/org/aspectj/weaver/TypeFactory.java @@ -1,173 +1,188 @@ /* ***********************************************...
true
true
public static UnresolvedType createTypeFromSignature(String signature) { if (signature.equals(ResolvedType.MISSING_NAME)) return ResolvedType.MISSING; char firstChar = signature.charAt(0); if (firstChar=='P') { // parameterized type, calculate signature erasure and type parameters // (see pr122458) It ...
public static UnresolvedType createTypeFromSignature(String signature) { if (signature.equals(ResolvedType.MISSING_NAME)) return ResolvedType.MISSING; char firstChar = signature.charAt(0); if (firstChar=='P') { // parameterized type, calculate signature erasure and type parameters // (see pr122458) It ...
diff --git a/src/java/org/infoglue/cms/applications/publishingtool/actions/ViewPublishingToolStartPageAction.java b/src/java/org/infoglue/cms/applications/publishingtool/actions/ViewPublishingToolStartPageAction.java index f0276e71..c516dfe4 100644 --- a/src/java/org/infoglue/cms/applications/publishingtool/actions/Vie...
true
true
public String doPushSystemNotificationMessages() throws Exception { NotificationMessage notificationMessage = null; List messages = RemoteCacheUpdater.getSystemNotificationMessages(); synchronized(messages) { if(messages.size() > 0) notificationMessage...
public String doPushSystemNotificationMessages() throws Exception { NotificationMessage notificationMessage = null; List messages = RemoteCacheUpdater.getSystemNotificationMessages(); synchronized(messages) { if(messages.size() > 0) notificationMessage...
diff --git a/src/minecraft/net/minecraft/src/RenderItem.java b/src/minecraft/net/minecraft/src/RenderItem.java index 83147ff3..2a2c0df3 100644 --- a/src/minecraft/net/minecraft/src/RenderItem.java +++ b/src/minecraft/net/minecraft/src/RenderItem.java @@ -1,321 +1,316 @@ package net.minecraft.src; import java.util.R...
true
true
public void doRenderItem(EntityItem var1, double var2, double var4, double var6, float var8, float var9) { //Spout Start //Sanity Checks if (var1 == null || var1.item == null) { return; } //Spout End this.random.setSeed(187L); ItemStack var10 = var1.item; GL11.glPushMatrix(); float var11 = MathHel...
public void doRenderItem(EntityItem var1, double var2, double var4, double var6, float var8, float var9) { //Spout Start //Sanity Checks if (var1 == null || var1.item == null) { return; } //Spout End this.random.setSeed(187L); ItemStack var10 = var1.item; GL11.glPushMatrix(); float var11 = MathHel...
diff --git a/src/nanofuntas/fbl/HexView.java b/src/nanofuntas/fbl/HexView.java index 9507874..465d818 100644 --- a/src/nanofuntas/fbl/HexView.java +++ b/src/nanofuntas/fbl/HexView.java @@ -1,201 +1,203 @@ package nanofuntas.fbl; import android.content.Context; import android.graphics.Canvas; import android.graphi...
false
true
protected void onDraw(Canvas canvas) { if (DEBUG) Log.d(TAG, "onDraw()"); // draw HEX on rectangle of (0,0,2X,2Y) p.setColor(Color.GRAY); canvas.drawRect(0, 0, 2*X, 2*Y, p); // points of HEX frame POINT_ATK.set( X, Y-R ); POINT_TEC.set( X-R*F, Y-R/2 ); POINT_TWK.set( X-R*F, Y+R/2 ); POINT_DFS...
protected void onDraw(Canvas canvas) { if (DEBUG) Log.d(TAG, "onDraw()"); // draw HEX on rectangle of (0,0,2X,2Y) p.setColor(Color.GRAY); canvas.drawRect(0, 0, 2*X, 2*Y, p); // points of HEX frame POINT_ATK.set( X, Y-R ); POINT_TEC.set( X-R*F, Y-R/2 ); POINT_TWK.set( X-R*F, Y+R/2 ); POINT_DFS...
diff --git a/AE-go_GameServer/src/com/aionemu/gameserver/model/gameobjects/Npc.java b/AE-go_GameServer/src/com/aionemu/gameserver/model/gameobjects/Npc.java index 566c9eaf..30add25f 100644 --- a/AE-go_GameServer/src/com/aionemu/gameserver/model/gameobjects/Npc.java +++ b/AE-go_GameServer/src/com/aionemu/gameserver/mode...
true
true
public boolean isAggressiveTo(Race race) { String currentTribe = getTemplate().getTribe(); switch(race) { case ELYOS: return DataManager.TRIBE_RELATIONS_DATA.isAggressiveRelation(currentTribe, "PC"); case ASMODIANS: return DataManager.TRIBE_RELATIONS_DATA.isAggressiveRelation(currentTribe, "PC"); ...
public boolean isAggressiveTo(Race race) { String currentTribe = getTemplate().getTribe(); switch(race) { case ELYOS: return DataManager.TRIBE_RELATIONS_DATA.isAggressiveRelation(currentTribe, "PC"); case ASMODIANS: return DataManager.TRIBE_RELATIONS_DATA.isAggressiveRelation(currentTribe, "PC_DAR...
diff --git a/src/main/java/me/prettyprint/cassandra/service/ExampleClient.java b/src/main/java/me/prettyprint/cassandra/service/ExampleClient.java index 60e9dce5..be1c2438 100644 --- a/src/main/java/me/prettyprint/cassandra/service/ExampleClient.java +++ b/src/main/java/me/prettyprint/cassandra/service/ExampleClient.ja...
true
true
public static void main(String[] args) throws IllegalStateException, PoolExhaustedException, Exception { CassandraClientPool pool = CassandraClientPoolFactory.INSTANCE.get(); CassandraClient client = pool.borrowClient("tush", 9160); // A load balanced version would look like this: // CassandraCl...
public static void main(String[] args) throws IllegalStateException, PoolExhaustedException, Exception { CassandraClientPool pool = CassandraClientPoolFactory.INSTANCE.get(); CassandraClient client = pool.borrowClient("tush", 9160); // A load balanced version would look like this: // CassandraCl...
diff --git a/src/main/java/org/encog/workbench/dialogs/training/methods/InputSVM.java b/src/main/java/org/encog/workbench/dialogs/training/methods/InputSVM.java index 6b29d479..1f1ea5bb 100644 --- a/src/main/java/org/encog/workbench/dialogs/training/methods/InputSVM.java +++ b/src/main/java/org/encog/workbench/dialogs/...
true
true
public InputSVM(SVM svm) { super(EncogWorkBench.getInstance().getMainWindow()); setSize(320,200); setTitle("Support Vector Machine (SVM)"); addProperty(this.gamma = new DoubleField("gamma","Gamma (0 for 1/#input)",true,-1,-1)); addProperty(this.c = new DoubleField("c","C",true,-1,-1)); render(); this.c....
public InputSVM(SVM svm) { super(EncogWorkBench.getInstance().getMainWindow()); setSize(320,200); setTitle("Support Vector Machine (SVM)"); addProperty(this.gamma = new DoubleField("gamma","Gamma (0 for 1/#input)",true,0,Integer.MAX_VALUE)); addProperty(this.c = new DoubleField("c","C",true,0,Integer.MAX_VAL...
diff --git a/src/tesseract/World.java b/src/tesseract/World.java index 67527ca..648f537 100644 --- a/src/tesseract/World.java +++ b/src/tesseract/World.java @@ -1,373 +1,373 @@ package tesseract; import java.io.IOException; import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedList; impo...
true
true
public void tick() { // Iterate over objects in the world. Iterator<PhysicalObject> itr = myObjects.iterator(); List<PhysicalObject> children = new LinkedList<PhysicalObject>(); while (itr.hasNext()) { CollidableObject obj = itr.next(); // Apply forces for (Force force : myForces) { force.ap...
public void tick() { // Iterate over objects in the world. Iterator<PhysicalObject> itr = myObjects.iterator(); List<PhysicalObject> children = new LinkedList<PhysicalObject>(); while (itr.hasNext()) { CollidableObject obj = itr.next(); // Apply forces for (Force force : myForces) { force.ap...
diff --git a/src/de/schildbach/pte/BvgProvider.java b/src/de/schildbach/pte/BvgProvider.java index c13b2411..22a922ae 100644 --- a/src/de/schildbach/pte/BvgProvider.java +++ b/src/de/schildbach/pte/BvgProvider.java @@ -1,1055 +1,1056 @@ /* * Copyright 2010, 2011 the original author or authors. * * This program ...
false
true
private QueryConnectionsResult queryConnections(final String firstUri, CharSequence firstPage) throws IOException { final Matcher mError = P_CHECK_CONNECTIONS_ERROR.matcher(firstPage); if (mError.find()) { if (mError.group(1) != null) return QueryConnectionsResult.TOO_CLOSE; if (mError.group(2) != nul...
private QueryConnectionsResult queryConnections(final String firstUri, CharSequence firstPage) throws IOException { final Matcher mError = P_CHECK_CONNECTIONS_ERROR.matcher(firstPage); if (mError.find()) { if (mError.group(1) != null) return QueryConnectionsResult.TOO_CLOSE; if (mError.group(2) != nul...
diff --git a/hw7/src/wci/backend/compiler/CodeGenerator.java b/hw7/src/wci/backend/compiler/CodeGenerator.java index 605ba5c..32cd830 100644 --- a/hw7/src/wci/backend/compiler/CodeGenerator.java +++ b/hw7/src/wci/backend/compiler/CodeGenerator.java @@ -1,415 +1,415 @@ package wci.backend.compiler; import java.util....
true
true
public void process(ICode iCode, SymTabStack symTabStack, String objectFilePath) throws Exception { CodeGenerator.iCode = iCode; CodeGenerator.symTabStack = symTabStack; CodeGenerator.objectFile = new PrintWriter(objectFilePath); // Make the pr...
public void process(ICode iCode, SymTabStack symTabStack, String objectFilePath) throws Exception { CodeGenerator.iCode = iCode; CodeGenerator.symTabStack = symTabStack; CodeGenerator.objectFile = new PrintWriter(objectFilePath); // Make the pr...
diff --git a/src/Extensions/org/objectweb/proactive/extensions/pamr/router/Main.java b/src/Extensions/org/objectweb/proactive/extensions/pamr/router/Main.java index a315270a4..326e385be 100644 --- a/src/Extensions/org/objectweb/proactive/extensions/pamr/router/Main.java +++ b/src/Extensions/org/objectweb/proactive/exte...
false
true
private Main(String[] args) throws IOException { CommandLineParser parser = new PosixParser(); this.options = new Options(); this.options.addOption("p", "port", true, "Specifies the port on which the server listens for connections (default 33647)."); this.options.add...
private Main(String[] args) throws IOException { CommandLineParser parser = new PosixParser(); this.options = new Options(); this.options.addOption("p", "port", true, "Specifies the port on which the server listens for connections (default 33647)."); this.options.add...
diff --git a/src/jp/coffee_club/tco/UrlCheckActivity.java b/src/jp/coffee_club/tco/UrlCheckActivity.java index 5af4d5c..98dcd78 100644 --- a/src/jp/coffee_club/tco/UrlCheckActivity.java +++ b/src/jp/coffee_club/tco/UrlCheckActivity.java @@ -1,177 +1,178 @@ package jp.coffee_club.tco; import android.app.Activity; ...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Uri data = getIntent().getData(); if (data == null) { // no Uri data showAlert(R.string.app_name); finish(); return; } String url = data.t...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Uri data = getIntent().getData(); if (data == null) { // no Uri data showAlert(R.string.app_name); finish(); return; } String url = data.t...
diff --git a/src/org/nines/RDFIndexer.java b/src/org/nines/RDFIndexer.java index e7b5e00..1440a56 100644 --- a/src/org/nines/RDFIndexer.java +++ b/src/org/nines/RDFIndexer.java @@ -1,536 +1,536 @@ /** * Copyright 2007 Applied Research in Patacriticism and the University of Virginia * * Licensed under the Apa...
true
true
public RDFIndexer( File rdfSource, RDFIndexerConfig config ) { initSystem(); log.info(config.retrieveFullText ? "Online: Indexing Full Text" : "Offline: Not Indexing Full Text"); this.config = config; this.solrURL = config.solrBaseURL + "/update"; File reportFile = new File(rd...
public RDFIndexer( File rdfSource, RDFIndexerConfig config ) { initSystem(); log.info(config.retrieveFullText ? "Online: Indexing Full Text" : "Offline: Not Indexing Full Text"); this.config = config; this.solrURL = config.solrBaseURL + "/update"; File reportFile = new File(rd...
diff --git a/core/src/main/java/com/page5of4/codon/impl/HandlerDispatcher.java b/core/src/main/java/com/page5of4/codon/impl/HandlerDispatcher.java index ead2c2e..a30765f 100644 --- a/core/src/main/java/com/page5of4/codon/impl/HandlerDispatcher.java +++ b/core/src/main/java/com/page5of4/codon/impl/HandlerDispatcher.java...
true
true
public void dispatch(Object message, Exchange exchange) { Method method = binding.getMethod(); try { List<Object> parameters = new ArrayList<Object>(); for(Class<?> parameterType : method.getParameterTypes()) { if(parameterType.equals(BusContext.class)) { para...
public void dispatch(Object message, Exchange exchange) { Method method = binding.getMethod(); try { List<Object> parameters = new ArrayList<Object>(); for(Class<?> parameterType : method.getParameterTypes()) { if(parameterType.equals(BusContext.class)) { para...
diff --git a/org.projectusus.core/src/org/projectusus/core/internal/proportions/model/CodeProportion.java b/org.projectusus.core/src/org/projectusus/core/internal/proportions/model/CodeProportion.java index 71ca5588..ed018bee 100644 --- a/org.projectusus.core/src/org/projectusus/core/internal/proportions/model/CodeProp...
true
true
public List<IHotspot> getHotspots() { Map<IFile, Integer> violations = new HashMap<IFile, Integer>(); collectViolations( metric, violations ); List<IHotspot> result = new ArrayList<IHotspot>(); for( IFile file : violations.keySet() ) { new Hotspot( file, violations.get( f...
public List<IHotspot> getHotspots() { Map<IFile, Integer> violations = new HashMap<IFile, Integer>(); collectViolations( metric, violations ); List<IHotspot> result = new ArrayList<IHotspot>(); for( IFile file : violations.keySet() ) { result.add( new Hotspot( file, viola...
diff --git a/src/edu/ucsc/barrel/cdf_gen/LevelOne.java b/src/edu/ucsc/barrel/cdf_gen/LevelOne.java index 112d604..6c9a5dd 100644 --- a/src/edu/ucsc/barrel/cdf_gen/LevelOne.java +++ b/src/edu/ucsc/barrel/cdf_gen/LevelOne.java @@ -1,755 +1,755 @@ package edu.ucsc.barrel.cdf_gen; import gsfc.nssdc.cdf.CDF; import gsf...
false
true
private void writeData() throws CDFException{ //create a holder for the current CDF and Variable CDF cur_cdf; Variable cur_var; System.out.println( "Creating Level One... (" + data.getSize("1Hz") + " frames)" ); //GPS// System.out.println("\nSaving GPS CD...
private void writeData() throws CDFException{ //create a holder for the current CDF and Variable CDF cur_cdf; Variable cur_var; System.out.println( "Creating Level One... (" + data.getSize("1Hz") + " frames)" ); //GPS// System.out.println("\nSaving GPS CD...
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java b/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java index 998abc157..5b834f9f4 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java @@ -1,1130 +1,1136 @@ /* @ITM...
true
true
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { paintableId = uidl.getId(); this.client = client; boolean readonly = uidl.hasAttribute("readonly"); boolean disabled = uidl.hasAttribute("disabled"); if (disabled || readonly) { tb.setEnabled(...
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { paintableId = uidl.getId(); this.client = client; boolean readonly = uidl.hasAttribute("readonly"); boolean disabled = uidl.hasAttribute("disabled"); if (disabled || readonly) { tb.setEnabled(...
diff --git a/illaclient/src/illarion/client/gui/controller/game/GUIChatHandler.java b/illaclient/src/illarion/client/gui/controller/game/GUIChatHandler.java index cbac83a2..284225e8 100644 --- a/illaclient/src/illarion/client/gui/controller/game/GUIChatHandler.java +++ b/illaclient/src/illarion/client/gui/controller/ga...
true
true
private void addMessageBubble(@Nullable final Char character, @Nonnull final String message, final Color color) { if (character == null) { return; } final Avatar charAvatar = character.getAvatar(); if (charAvatar == null) { return; } final Rect...
private void addMessageBubble(@Nullable final Char character, @Nonnull final String message, final Color color) { if (character == null) { return; } final Avatar charAvatar = character.getAvatar(); if (charAvatar == null) { return; } final Rect...