Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/main/java/com/amee/domain/data/NuItemValueMap.java b/src/main/java/com/amee/domain/data/NuItemValueMap.java index e97613f..dbc16bb 100644 --- a/src/main/java/com/amee/domain/data/NuItemValueMap.java +++ b/src/main/java/com/amee/domain/data/NuItemValueMap.java @@ -1,150 +1,150 @@ package com.amee.domai...
false
true
public void put(String path, BaseItemValue itemValue) { // Create TreeSet if it does not exist for this path. if (!containsKey(path)) { super.put(path, new TreeSet<BaseItemValue>(new Comparator<BaseItemValue>() { public int compare(BaseItemValue iv1, BaseItemValue iv2) { ...
public void put(String path, BaseItemValue itemValue) { // Create TreeSet if it does not exist for this path. if (!containsKey(path)) { super.put(path, new TreeSet<BaseItemValue>(new Comparator<BaseItemValue>() { public int compare(BaseItemValue iv1, BaseItemValue iv2) { ...
diff --git a/src/test/java/com/ning/http/client/async/PostWithQSTest.java b/src/test/java/com/ning/http/client/async/PostWithQSTest.java index 9e16598df..b40b132bd 100644 --- a/src/test/java/com/ning/http/client/async/PostWithQSTest.java +++ b/src/test/java/com/ning/http/client/async/PostWithQSTest.java @@ -1,85 +1,85 ...
true
true
public void handle(String s, HttpServletRequest request, HttpServletResponse response, int i) throws IOException, ServletException { if ("POST".equalsIgnoreCase(request.getMethod())) { String qs = reques...
public void handle(String s, HttpServletRequest request, HttpServletResponse response, int i) throws IOException, ServletException { if ("POST".equalsIgnoreCase(request.getMethod())) { String qs = reques...
diff --git a/src/org/hackystat/sensor/ant/issue/IssueEvent.java b/src/org/hackystat/sensor/ant/issue/IssueEvent.java index 7319840..65b4d57 100644 --- a/src/org/hackystat/sensor/ant/issue/IssueEvent.java +++ b/src/org/hackystat/sensor/ant/issue/IssueEvent.java @@ -1,151 +1,151 @@ package org.hackystat.sensor.ant.issue...
false
true
public IssueEvent(SyndEntryImpl entry) throws Exception { this.author = entry.getAuthor(); this.id = entry.getUri(); this.link = entry.getLink(); this.updatedDate = entry.getUpdatedDate(); if (entry.getContents().size() != 1) { throw new Exception("Unsupport: There are more than one contents...
public IssueEvent(SyndEntryImpl entry) throws Exception { this.author = entry.getAuthor(); this.id = entry.getUri(); this.link = entry.getLink(); this.updatedDate = entry.getUpdatedDate(); if (entry.getContents().size() != 1) { throw new Exception("Unsupport: There are more than one contents...
diff --git a/src/main/java/uk/org/rbc1b/roms/controller/common/model/PersonModel.java b/src/main/java/uk/org/rbc1b/roms/controller/common/model/PersonModel.java index 660d9d82..4e1a03a5 100644 --- a/src/main/java/uk/org/rbc1b/roms/controller/common/model/PersonModel.java +++ b/src/main/java/uk/org/rbc1b/roms/controller...
false
true
public String getInitials() { StringBuilder builder = new StringBuilder(); if (forename != null) { builder.append(forename.charAt(0)); } if (middleName != null) { builder.append(middleName.charAt(0)); } if (surname != null) { builde...
public String getInitials() { StringBuilder builder = new StringBuilder(); if (forename != null && !forename.isEmpty()) { builder.append(forename.charAt(0)); } if (middleName != null && !middleName.isEmpty()) { builder.append(middleName.charAt(0)); } ...
diff --git a/gerrithudsontrigger/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/GerritManagement.java b/gerrithudsontrigger/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/GerritManagement.java index 0a17e2cf..ea458969 100644 --- a/gerrithudsontrigger/src/main/java/com/sonyericsson/hudson/plu...
false
true
public JSONObject getServerStatuses() { JSONObject root = new JSONObject(); JSONArray array = new JSONArray(); JSONObject obj; for (GerritServer server : PluginImpl.getInstance().getServers()) { String status; if (server.isPseudoMode()) { stat...
public JSONObject getServerStatuses() { JSONObject root = new JSONObject(); JSONArray array = new JSONArray(); JSONObject obj; for (GerritServer server : PluginImpl.getInstance().getServers()) { String status; if (server.isPseudoMode()) { stat...
diff --git a/BetterBatteryStats/src/com/asksven/betterbatterystats/data/StatsProvider.java b/BetterBatteryStats/src/com/asksven/betterbatterystats/data/StatsProvider.java index 784113e2..f6f40c94 100644 --- a/BetterBatteryStats/src/com/asksven/betterbatterystats/data/StatsProvider.java +++ b/BetterBatteryStats/src/com/...
true
true
public ArrayList<StatElement> getOtherUsageStatList(boolean bFilter, int iStatType) throws Exception { BatteryStatsProxy mStats = BatteryStatsProxy.getInstance(m_context); ArrayList<StatElement> myStats = new ArrayList<StatElement>(); // List to store the other usages to ArrayList<Misc> myUsages = new Arr...
public ArrayList<StatElement> getOtherUsageStatList(boolean bFilter, int iStatType) throws Exception { BatteryStatsProxy mStats = BatteryStatsProxy.getInstance(m_context); ArrayList<StatElement> myStats = new ArrayList<StatElement>(); // List to store the other usages to ArrayList<Misc> myUsages = new Arr...
diff --git a/gfa-core/src/main/java/com/lemoulinstudio/gfa/core/time/RenderTimer.java b/gfa-core/src/main/java/com/lemoulinstudio/gfa/core/time/RenderTimer.java index 7c3c4a3..0a6d769 100755 --- a/gfa-core/src/main/java/com/lemoulinstudio/gfa/core/time/RenderTimer.java +++ b/gfa-core/src/main/java/com/lemoulinstudio/gf...
true
true
public void addTime(int nbCycles) { // Update hValue and vValue. xDisplay += nbCycles; if (xDisplay >= 308 * 4) { xDisplay -= 308 * 4; yDisplay++; if (yDisplay >= 228) yDisplay = 0; ioMem.setYScanline(yDisplay); } // Update the bits of the display status. ...
public void addTime(int nbCycles) { // Update hValue and vValue. xDisplay += nbCycles; if (xDisplay >= 308 * 4) { xDisplay -= 308 * 4; yDisplay++; if (yDisplay >= 228) yDisplay = 0; ioMem.setYScanline(yDisplay); } // Update the bits of the display status. ...
diff --git a/modules/DesktopImport/src/main/java/org/gephi/desktop/importer/ReportPanel.java b/modules/DesktopImport/src/main/java/org/gephi/desktop/importer/ReportPanel.java index 325e7d346..5b15effea 100644 --- a/modules/DesktopImport/src/main/java/org/gephi/desktop/importer/ReportPanel.java +++ b/modules/DesktopImpo...
false
true
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; processorStrategyRadio = new javax.swing.ButtonGroup(); labelSrc = new javax.swing.JLabel(); sourceLabel = new javax.swing.JLabel(); tabbedPane = new javax.swing.JTabbedPane(); tab1Scroll...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; processorStrategyRadio = new javax.swing.ButtonGroup(); labelSrc = new javax.swing.JLabel(); sourceLabel = new javax.swing.JLabel(); tabbedPane = new javax.swing.JTabbedPane(); tab1Scroll...
diff --git a/src/DownloadTask.java b/src/DownloadTask.java index a7cdd94..d23c1c5 100644 --- a/src/DownloadTask.java +++ b/src/DownloadTask.java @@ -1,162 +1,162 @@ import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.RandomAccessFile; import...
false
true
public boolean download() { URL url = null; try { url = new URL(path); } catch (MalformedURLException e2) { e2.printStackTrace(); } URLConnection openConnection = null; int totalLength = 0; int partLength = 0; try { openConnection = url.openConnection(); openConnection.connect(); totalLe...
public boolean download() { URL url = null; try { url = new URL(path); } catch (MalformedURLException e2) { e2.printStackTrace(); } URLConnection openConnection = null; int totalLength = 0; int partLength = 0; try { openConnection = url.openConnection(); openConnection.connect(); totalLe...
diff --git a/src/tests/org/xins/tests/server/IPFilterTests.java b/src/tests/org/xins/tests/server/IPFilterTests.java index b69547bda..fb2b78d24 100644 --- a/src/tests/org/xins/tests/server/IPFilterTests.java +++ b/src/tests/org/xins/tests/server/IPFilterTests.java @@ -1,189 +1,188 @@ /* * $Id$ */ package org.xins...
true
true
public void testIsAuthorized() throws Throwable { IPFilter filter = IPFilter.parseFilter("194.134.168.213/32"); assertNotNull(filter); try { filter.isAuthorized(null); fail("IPFilter.isAuthorized(null) should throw an IllegalArgumentException."); return; } catch (...
public void testIsAuthorized() throws Throwable { IPFilter filter = IPFilter.parseFilter("194.134.168.213/32"); assertNotNull(filter); try { filter.isAuthorized(null); fail("IPFilter.isAuthorized(null) should throw an IllegalArgumentException."); return; } catch (...
diff --git a/src/main/java/com/norcode/bukkit/buildinabox/listeners/PlayerListener.java b/src/main/java/com/norcode/bukkit/buildinabox/listeners/PlayerListener.java index ea55b26..86e2bc9 100644 --- a/src/main/java/com/norcode/bukkit/buildinabox/listeners/PlayerListener.java +++ b/src/main/java/com/norcode/bukkit/build...
true
true
public void onPlayerInteract(PlayerInteractEvent event) { Player player = event.getPlayer(); Block block = event.getClickedBlock(); if (block.getTypeId() == plugin.cfg.getChestBlockId()) { if (block.hasMetadata("buildInABox")) { BuildChest bc = (BuildChest) block....
public void onPlayerInteract(PlayerInteractEvent event) { Player player = event.getPlayer(); Block block = event.getClickedBlock(); if (block == null) { return; } if (block.getTypeId() == plugin.cfg.getChestBlockId()) { if (block.hasMetadata("buildInAB...
diff --git a/src/net/java/sip/communicator/impl/gui/main/login/LoginManager.java b/src/net/java/sip/communicator/impl/gui/main/login/LoginManager.java index e9225cd0e..35bce41d8 100644 --- a/src/net/java/sip/communicator/impl/gui/main/login/LoginManager.java +++ b/src/net/java/sip/communicator/impl/gui/main/login/Login...
false
true
public void registrationStateChanged(RegistrationStateChangeEvent evt) { ProtocolProviderService protocolProvider = evt.getProvider(); AccountID accountID = protocolProvider.getAccountID(); logger.trace("Protocol provider: " + protocolProvider + " changed its state to: " + ...
public void registrationStateChanged(RegistrationStateChangeEvent evt) { ProtocolProviderService protocolProvider = evt.getProvider(); AccountID accountID = protocolProvider.getAccountID(); logger.trace("Protocol provider: " + protocolProvider + " changed its state to: " + ...
diff --git a/src/com/cg/trashman/object/Car.java b/src/com/cg/trashman/object/Car.java index 4bc8b38..ed02085 100644 --- a/src/com/cg/trashman/object/Car.java +++ b/src/com/cg/trashman/object/Car.java @@ -1,249 +1,249 @@ package com.cg.trashman.object; import static javax.media.opengl.GL2.GL_QUADS; import java.a...
false
true
private void render(GL2 gl) { // ----- Render the Color Cube ----- gl.glLoadIdentity(); // reset the current model-view matrix // gl.glTranslatef(pX, 0, 0); // translate right and into the // screen gl.glTranslatef(0, 0, -pZ); gl.glTranslatef(pX, 0, 0); if (direction == Direction.Up) gl.glRotatef(90f,...
private void render(GL2 gl) { // ----- Render the Color Cube ----- gl.glLoadIdentity(); // reset the current model-view matrix // gl.glTranslatef(pX, 0, 0); // translate right and into the // screen gl.glTranslatef(0, 0, -pZ); gl.glTranslatef(pX, 0, 0); if (direction == Direction.Up) gl.glRotatef(90f,...
diff --git a/Arena/src/game/Actor.java b/Arena/src/game/Actor.java index 82f497e..363057b 100644 --- a/Arena/src/game/Actor.java +++ b/Arena/src/game/Actor.java @@ -1,331 +1,331 @@ package game; /** * Class for the player's characters * * @author Jacob Charles * */ public class Actor extends GameObject ...
false
true
public void setPowerup(int powerup) { //grab a 1up (doesn't replace other powerups) if (powerup == Item.LIFE) { powerup = 0; gainLife(); return; } //exit big mode (reset size) if (this.p == Item.BIG && powerup != Item.BIG) { float cx = getHCenter(), cy = getVCenter(); setW(Warehouse.getCharact...
public void setPowerup(int powerup) { //grab a 1up (doesn't replace other powerups) if (powerup == Item.LIFE) { powerup = 0; gainLife(); return; } //exit big mode (reset size) if (this.p == Item.BIG && powerup != Item.BIG) { float cx = getHCenter(), cy = getVCenter(); setW(Warehouse.getCharact...
diff --git a/src/main/java/org/elasticsearch/index/query/FilteredQueryParser.java b/src/main/java/org/elasticsearch/index/query/FilteredQueryParser.java index ff42a0e708c..dbfe928b591 100644 --- a/src/main/java/org/elasticsearch/index/query/FilteredQueryParser.java +++ b/src/main/java/org/elasticsearch/index/query/Filt...
false
true
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = Queries.newMatchAllQuery(); Filter filter = null; boolean filterFound = false; float boost = 1.0f; boolean cach...
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = Queries.newMatchAllQuery(); Filter filter = null; boolean filterFound = false; float boost = 1.0f; boolean cach...
diff --git a/src/main/java/fi/csc/microarray/MicroarrayMain.java b/src/main/java/fi/csc/microarray/MicroarrayMain.java index af51f0192..19e61dc5c 100644 --- a/src/main/java/fi/csc/microarray/MicroarrayMain.java +++ b/src/main/java/fi/csc/microarray/MicroarrayMain.java @@ -1,178 +1,178 @@ package fi.csc.microarray; ...
true
true
public static void main(String[] args) { try { // create args descriptions CommandLineParser cmdParser = new CommandLineParser(); cmdParser.addParameter("client", false, false, null, "start client (default)"); cmdParser.addParameter("standalone", false, false, null, "start standalone client"); cmdPa...
public static void main(String[] args) { try { // create args descriptions CommandLineParser cmdParser = new CommandLineParser(); cmdParser.addParameter("client", false, false, null, "start client (default)"); cmdParser.addParameter("standalone", false, false, null, "start standalone client"); cmdPa...
diff --git a/src/com/android/email/activity/MailboxListItem.java b/src/com/android/email/activity/MailboxListItem.java index df656507..83c41db7 100644 --- a/src/com/android/email/activity/MailboxListItem.java +++ b/src/com/android/email/activity/MailboxListItem.java @@ -1,93 +1,95 @@ /* * Copyright (C) 2010 The Andr...
false
true
public void setDropTargetBackground(boolean dragInProgress, long itemMailbox) { if (dragInProgress) { if (isDropTarget(itemMailbox)) { setBackgroundColor(sDropAvailableBgColor); } else { mLabelName.setTextColor(sDropUnavailableFgColor); ...
public void setDropTargetBackground(boolean dragInProgress, long itemMailbox) { int labelNameColor = sTextPrimaryColor; int labelCountColor = sTextSecondaryColor; if (dragInProgress) { if (isDropTarget(itemMailbox)) { setBackgroundColor(sDropAvailableBgColor); ...
diff --git a/app/src/processing/app/syntax/PdeKeywords.java b/app/src/processing/app/syntax/PdeKeywords.java index 9b5ea6838..e9b29f1ff 100644 --- a/app/src/processing/app/syntax/PdeKeywords.java +++ b/app/src/processing/app/syntax/PdeKeywords.java @@ -1,257 +1,258 @@ /* -*- mode: java; c-basic-offset: 2; indent-tabs-...
true
true
public byte markTokensImpl(byte token, Segment line, int lineIndex) { char[] array = line.array; int offset = line.offset; lastOffset = offset; lastKeyword = offset; int mlength = offset + line.count; boolean backslash = false; loop: for (int i = offset; i < mlength; i++) { int i1 =...
public byte markTokensImpl(byte token, Segment line, int lineIndex) { char[] array = line.array; int offset = line.offset; lastOffset = offset; lastKeyword = offset; int mlength = offset + line.count; boolean backslash = false; loop: for (int i = offset; i < mlength; i++) { int i1 =...
diff --git a/src/main/java/org/noisemap/core/PropagationProcess.java b/src/main/java/org/noisemap/core/PropagationProcess.java index c1d6882..4ca5c89 100644 --- a/src/main/java/org/noisemap/core/PropagationProcess.java +++ b/src/main/java/org/noisemap/core/PropagationProcess.java @@ -1,947 +1,947 @@ /** * NoiseMap i...
true
true
private void receiverSourcePropa(Coordinate srcCoord, Coordinate receiverCoord, double energeticSum[], double[] alpha_atmo, List<Double> wj, List<MirrorReceiverResult> mirroredReceiver, List<LineSegment> nearBuildingsWalls, List<Coordinate> regionCorners, List<Integer> regionCornersFreeToReceiver, do...
private void receiverSourcePropa(Coordinate srcCoord, Coordinate receiverCoord, double energeticSum[], double[] alpha_atmo, List<Double> wj, List<MirrorReceiverResult> mirroredReceiver, List<LineSegment> nearBuildingsWalls, List<Coordinate> regionCorners, List<Integer> regionCornersFreeToReceiver, do...
diff --git a/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/validator/XpathValidator.java b/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/validator/XpathValidator.java index e98...
false
true
public static boolean isValidConfiguration(Shell activeShell, String xpath, Map<String, String> namespaceMap) { if (!isValidXpathSyntax(xpath)) { showMessage(activeShell, "Invalid Xpath Expression.\n\n" + xpath); return false; } boolean result = true; if (xpath.contains(":")) { String[] splitedPart...
public static boolean isValidConfiguration(Shell activeShell, String xpath, Map<String, String> namespaceMap) { if (!isValidXpathSyntax(xpath)) { showMessage(activeShell, "Invalid Xpath Expression.\n\n" + xpath); return false; } /* boolean result = true; if (xpath.contains(":")) { String[] splitedPa...
diff --git a/src/java/org/codehaus/groovy/grails/support/MockFileResource.java b/src/java/org/codehaus/groovy/grails/support/MockFileResource.java index 1c06bd380..8da64151f 100644 --- a/src/java/org/codehaus/groovy/grails/support/MockFileResource.java +++ b/src/java/org/codehaus/groovy/grails/support/MockFileResource....
true
true
public MockFileResource(String fileName, String contents) { super(contents.getBytes()); this.fileName = fileName; }
public MockFileResource(String fileName, String contents) { super(contents.getBytes("UTF-8")); this.fileName = fileName; }
diff --git a/search/src/java/cz/incad/Kramerius/views/item/ItemViewObject.java b/search/src/java/cz/incad/Kramerius/views/item/ItemViewObject.java index 46e1edc5a..3f19ca64a 100644 --- a/search/src/java/cz/incad/Kramerius/views/item/ItemViewObject.java +++ b/search/src/java/cz/incad/Kramerius/views/item/ItemViewObject....
true
true
public void init() { try { final String[]pathFromRequests = getUUIDPathFromRequest(); final String[] modelsFromRequest = getModelsFromRequest(); String lastUuid = pathFromRequests[pathFromRequests.length -1]; if (isPageUUID(lastUuid)) { pdfPage...
public void init() { try { final String[]pathFromRequests = getUUIDPathFromRequest(); final String[] modelsFromRequest = getModelsFromRequest(); String lastUuid = pathFromRequests[pathFromRequests.length -1]; if (isPageUUID(lastUuid)) { pdfPage...
diff --git a/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/action/DynamicEventAction.java b/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/action/DynamicEventAction.java index 77517a9dd..5397557b0 100644 --- a/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore...
false
true
protected ActionForward executeAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { if (request.getParameter(Constants.REFRESH_EVENT_GRID) != null) { request.setAttribute(Constants.REFRESH_EVENT_GRID, request .getParameter(Constan...
protected ActionForward executeAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { if (request.getParameter(Constants.REFRESH_EVENT_GRID) != null) { request.setAttribute(Constants.REFRESH_EVENT_GRID, request .getParameter(Constan...
diff --git a/jsonrpc4j/src/main/java/com/googlecode/jsonrpc4j/JsonRpcClient.java b/jsonrpc4j/src/main/java/com/googlecode/jsonrpc4j/JsonRpcClient.java index 7178cd6..7719ba6 100644 --- a/jsonrpc4j/src/main/java/com/googlecode/jsonrpc4j/JsonRpcClient.java +++ b/jsonrpc4j/src/main/java/com/googlecode/jsonrpc4j/JsonRpcCli...
true
true
public Object readResponse(Type returnType, InputStream ips) throws IOException, JsonProcessingException, Exception, JsonParseException, JsonMappingException { // read the response JsonNode response = mapper.readTree(ips); // bail on invalid response...
public Object readResponse(Type returnType, InputStream ips) throws IOException, JsonProcessingException, Exception, JsonParseException, JsonMappingException { // read the response JsonNode response = mapper.readTree(ips); // bail on invalid response...
diff --git a/org/jruby/KernelModule.java b/org/jruby/KernelModule.java index decaaf21a..986813f4b 100644 --- a/org/jruby/KernelModule.java +++ b/org/jruby/KernelModule.java @@ -1,490 +1,490 @@ /* * RubyKernel.java * Created on May 2, 2002 * * Copyright (C) 2001, 2002 Jan Arne Petersen, Alan Moore, Benoit Cerr...
true
true
public static IRubyObject eval(IRubyObject recv, IRubyObject[] args) { RubyString src = (RubyString)args[0]; IRubyObject scope = args.length > 0 ? args[1] : recv.getRuntime().getNil(); String file = "(eval)"; int line = 1; if (args.length > 2) { // +++ ...
public static IRubyObject eval(IRubyObject recv, IRubyObject[] args) { RubyString src = (RubyString)args[0]; IRubyObject scope = args.length > 1 ? args[1] : recv.getRuntime().getNil(); String file = "(eval)"; int line = 1; if (args.length > 2) { // +++ ...
diff --git a/LambTracker_V2/src/com/weyr_associates/lambtracker/TestInterfaceDesigns.java b/LambTracker_V2/src/com/weyr_associates/lambtracker/TestInterfaceDesigns.java index 903cff3f..35e28936 100644 --- a/LambTracker_V2/src/com/weyr_associates/lambtracker/TestInterfaceDesigns.java +++ b/LambTracker_V2/src/com/weyr_as...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.test_interface_designs); String dbname = getString(R.string.real_database_file); dbh = new DatabaseHandler( this, dbname ); scored_evaluation_traits = new ArrayList<String>(); sco...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.test_interface_designs); String dbname = getString(R.string.real_database_file); dbh = new DatabaseHandler( this, dbname ); scored_evaluation_traits = new ArrayList<String>(); sco...
diff --git a/java/src/test/java/de/weltraumschaf/ebnf/gfx/shapes/RuleTest.java b/java/src/test/java/de/weltraumschaf/ebnf/gfx/shapes/RuleTest.java index 60fc9eaa..dd47abb8 100644 --- a/java/src/test/java/de/weltraumschaf/ebnf/gfx/shapes/RuleTest.java +++ b/java/src/test/java/de/weltraumschaf/ebnf/gfx/shapes/RuleTest.ja...
false
true
@Test public void paint() { final String name = "foobar"; final FontMetrics metrics = mock(FontMetrics.class); when(metrics.stringWidth(name)).thenReturn(80); when(metrics.getAscent()).thenReturn(12); when(metrics.getDescent()).thenReturn(4); final Graphics2D graphic...
@Test public void paint() { final String name = "foobar"; final FontMetrics metrics = mock(FontMetrics.class); when(metrics.stringWidth(name)).thenReturn(80); when(metrics.getAscent()).thenReturn(12); when(metrics.getDescent()).thenReturn(4); final Graphics2D graphic...
diff --git a/src/main/java/hudson/plugins/scm_sync_configuration/ScmSyncConfigurationBusiness.java b/src/main/java/hudson/plugins/scm_sync_configuration/ScmSyncConfigurationBusiness.java index 0fff6af..00244e1 100644 --- a/src/main/java/hudson/plugins/scm_sync_configuration/ScmSyncConfigurationBusiness.java +++ b/src/m...
false
true
private void processCommitsQueue() { File scmRoot = new File(getCheckoutScmDirectoryAbsolutePath()); // Copying shared commitQueue in order to allow conccurrent modification List<Commit> currentCommitQueue = new ArrayList<Commit>(commitsQueue); List<Commit> checkedInCommits = new Ar...
private void processCommitsQueue() { File scmRoot = new File(getCheckoutScmDirectoryAbsolutePath()); // Copying shared commitQueue in order to allow conccurrent modification List<Commit> currentCommitQueue = new ArrayList<Commit>(commitsQueue); List<Commit> checkedInCommits = new Ar...
diff --git a/src/main/java/com/sparsity/dex/etl/config/bean/DatabaseConfiguration.java b/src/main/java/com/sparsity/dex/etl/config/bean/DatabaseConfiguration.java index 1684433..aa5afbf 100644 --- a/src/main/java/com/sparsity/dex/etl/config/bean/DatabaseConfiguration.java +++ b/src/main/java/com/sparsity/dex/etl/config...
true
true
public void openDatabase() { if (isClosed()) { File f = new File(getPath()); if (dexConf != null) { DexProperties.load(dexConf); } dexCfg = new DexConfig(); dex = new Dex(dexCfg); db = null; try { ...
public void openDatabase() { if (isClosed()) { File f = new File(getPath()); if (dexConf != null) { DexProperties.load(dexConf); } dexCfg = new DexConfig(); dex = new Dex(dexCfg); db = null; try { ...
diff --git a/core/src/main/java/org/acegisecurity/intercept/web/FilterInvocationDefinitionSourceEditor.java b/core/src/main/java/org/acegisecurity/intercept/web/FilterInvocationDefinitionSourceEditor.java index 7b8450bbc..133e586d6 100644 --- a/core/src/main/java/org/acegisecurity/intercept/web/FilterInvocationDefiniti...
true
true
public void setAsText(String s) throws IllegalArgumentException { FilterInvocationDefinitionDecorator source = new FilterInvocationDefinitionDecorator(); source.setDecorated(new RegExpBasedFilterInvocationDefinitionMap()); if ((s == null) || "".equals(s)) { // Leave target objec...
public void setAsText(String s) throws IllegalArgumentException { FilterInvocationDefinitionDecorator source = new FilterInvocationDefinitionDecorator(); source.setDecorated(new RegExpBasedFilterInvocationDefinitionMap()); if ((s == null) || "".equals(s)) { // Leave target objec...
diff --git a/src-tools/org/seasr/meandre/components/tools/basic/PushText.java b/src-tools/org/seasr/meandre/components/tools/basic/PushText.java index 9536b529..72a2c922 100644 --- a/src-tools/org/seasr/meandre/components/tools/basic/PushText.java +++ b/src-tools/org/seasr/meandre/components/tools/basic/PushText.java @...
true
true
public void initializeCallBack(ComponentContextProperties ccp) throws Exception { _text = getPropertyOrDieTrying(PROP_MESSAGE, false, false, ccp); if (bParseNewlines) _text = _text.replaceAll("\\\\n", "\n"); if (_text.length() == 0) console.warning("Pushing the empty string"); }
public void initializeCallBack(ComponentContextProperties ccp) throws Exception { _text = getPropertyOrDieTrying(PROP_MESSAGE, false, false, ccp); bParseNewlines = Boolean.parseBoolean(ccp.getProperty(PROP_PARSE_NEWLINES)); if (bParseNewlines) _text = _text.replaceAll("\\\\n", "\n"); if (_text.len...
diff --git a/blobstore/src/main/java/org/jboss/capedwarf/blobstore/CapedwarfBlobstoreService.java b/blobstore/src/main/java/org/jboss/capedwarf/blobstore/CapedwarfBlobstoreService.java index 2b2a3194..977b279d 100644 --- a/blobstore/src/main/java/org/jboss/capedwarf/blobstore/CapedwarfBlobstoreService.java +++ b/blobst...
false
true
public void serveBlob(BlobKey blobKey, String byteRangeStr, HttpServletResponse response) throws IOException { assertNotCommited(response); BlobInfo blobInfo = getBlobInfo(blobKey); response.setContentType(blobInfo.getContentType()); ByteRange byteRange = null; if (byteRan...
public void serveBlob(BlobKey blobKey, String byteRangeStr, HttpServletResponse response) throws IOException { assertNotCommited(response); BlobInfo blobInfo = getBlobInfo(blobKey); if (blobInfo == null) { throw new IOException(String.format("No such blob for key: %s", blobKey))...
diff --git a/src/com/android/calendar/DismissAllAlarmsService.java b/src/com/android/calendar/DismissAllAlarmsService.java index 8541c6e1..fee76e0b 100644 --- a/src/com/android/calendar/DismissAllAlarmsService.java +++ b/src/com/android/calendar/DismissAllAlarmsService.java @@ -1,60 +1,60 @@ /* * Copyright (C) 2009 ...
true
true
public void onHandleIntent(Intent intent) { // Mark all fired alarms as dismissed Uri uri = CalendarAlerts.CONTENT_URI_BY_INSTANCE; String selection = CalendarAlerts.STATE + "=" + CalendarAlerts.FIRED; ContentResolver resolver = getContentResolver(); ContentValues values = n...
public void onHandleIntent(Intent intent) { // Mark all fired alarms as dismissed Uri uri = CalendarAlerts.CONTENT_URI; String selection = CalendarAlerts.STATE + "=" + CalendarAlerts.FIRED; ContentResolver resolver = getContentResolver(); ContentValues values = new ContentVa...
diff --git a/trunk/src/edu/umich/lsa/cscs/gridsweeper/GridSweeperRunner.java b/trunk/src/edu/umich/lsa/cscs/gridsweeper/GridSweeperRunner.java index ef5a1b5..5835107 100644 --- a/trunk/src/edu/umich/lsa/cscs/gridsweeper/GridSweeperRunner.java +++ b/trunk/src/edu/umich/lsa/cscs/gridsweeper/GridSweeperRunner.java @@ -1,1...
true
true
public static void main(String[] args) { RunResults results; try { // Load RunSetup object ObjectInputStream stdinStream = new ObjectInputStream(System.in); RunSetup setup = (RunSetup)stdinStream.readObject(); // Get GridSweeper settings Settings settings = setup.getSettings(); // Down...
public static void main(String[] args) { RunResults results; try { // Load RunSetup object RunSetup setup; try { ObjectInputStream stdinStream = new ObjectInputStream(System.in); setup = (RunSetup)stdinStream.readObject(); } catch(Exception e) { ObjectInputStream stdinFileStream...
diff --git a/common/logisticspipes/routing/PathFinder.java b/common/logisticspipes/routing/PathFinder.java index 97e8bc65..608e2084 100644 --- a/common/logisticspipes/routing/PathFinder.java +++ b/common/logisticspipes/routing/PathFinder.java @@ -1,271 +1,271 @@ /** * Copyright (c) Krapht, 2011 * * "LogisticsP...
true
true
private HashMap<CoreRoutedPipe, ExitRoute> getConnectedRoutingPipes(TileGenericPipe startPipe, EnumSet<PipeRoutingConnectionType> connectionFlags, ForgeDirection side) { HashMap<CoreRoutedPipe, ExitRoute> foundPipes = new HashMap<CoreRoutedPipe, ExitRoute>(); boolean root = setVisited.size() == 0; //Reset ...
private HashMap<CoreRoutedPipe, ExitRoute> getConnectedRoutingPipes(TileGenericPipe startPipe, EnumSet<PipeRoutingConnectionType> connectionFlags, ForgeDirection side) { HashMap<CoreRoutedPipe, ExitRoute> foundPipes = new HashMap<CoreRoutedPipe, ExitRoute>(); boolean root = setVisited.size() == 0; //Reset ...
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 ab4d3f522..fae6637c6 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...
true
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/plug-ins/svn/src/main/java/eu/sqooss/plugins/tds/svn/SVNAccessorImpl.java b/plug-ins/svn/src/main/java/eu/sqooss/plugins/tds/svn/SVNAccessorImpl.java index 8e06154e..a8411e36 100644 --- a/plug-ins/svn/src/main/java/eu/sqooss/plugins/tds/svn/SVNAccessorImpl.java +++ b/plug-ins/svn/src/main/java/eu/sqooss/pl...
true
true
private SVNProjectRevision resolveRevision(Revision r) { if ((r == null)) { logger.error(projectname + ": Revision to be resolved is null"); return null; } if (!(r instanceof SVNProjectRevision)) { logger.error(projectname + ": " + ...
private SVNProjectRevision resolveRevision(Revision r) { if ((r == null)) { logger.error(projectname + ": Revision to be resolved is null"); return null; } if (!(r instanceof SVNProjectRevision)) { logger.error(projectname + ": " + ...
diff --git a/src/main/java/com/github/kpacha/jkata/tennis/Tennis.java b/src/main/java/com/github/kpacha/jkata/tennis/Tennis.java index 0f7adbf..8162593 100644 --- a/src/main/java/com/github/kpacha/jkata/tennis/Tennis.java +++ b/src/main/java/com/github/kpacha/jkata/tennis/Tennis.java @@ -1,23 +1,27 @@ package com.gith...
true
true
public String getScore() { if (playerOneScored == 3 && playerTwoScored == 3) return "Deuce"; if (playerOneScored == 4) return "Player 1 wins"; return (15 * playerOneScored) + " - " + (15 * playerTwoScored); }
public String getScore() { if (playerOneScored == 3 && playerTwoScored == 3) return "Deuce"; if (playerOneScored == 4) { if (playerTwoScored == 3) return "Advantage Player 1"; else return "Player 1 wins"; } return (15 * playerOneScored) + " - " + (15 * playerTwoScored); }
diff --git a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/servlet/AjaxServlet.java b/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/servlet/AjaxServlet.java index 6ea9b99c..8796c958 100644 --- a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/servlet/AjaxServlet.java +++ b/software/ncitbrowser/src...
true
true
public static void create_vs_tree(HttpServletRequest request, HttpServletResponse response, int view, String dictionary, String version) { request.getSession().removeAttribute("b"); request.getSession().removeAttribute("m"); response.setContentType("text/html"); PrintWriter out = null; Strin...
public static void create_vs_tree(HttpServletRequest request, HttpServletResponse response, int view, String dictionary, String version) { request.getSession().removeAttribute("b"); request.getSession().removeAttribute("m"); response.setContentType("text/html"); PrintWriter out = null; Strin...
diff --git a/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java b/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java index 5d0e881..cadd4f2 100644 --- a/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java +++ b/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java @@ -1,535 +1,53...
true
true
protected FilterResults performFiltering(CharSequence prefix) { Log.e(TAG, "performFiltering >>>> [" + prefix + "]"); FilterResults results = new FilterResults(); String prefixString = null; if (prefix != null) { prefixString = prefix.toString().t...
protected FilterResults performFiltering(CharSequence prefix) { Log.e(TAG, "performFiltering >>>> [" + prefix + "]"); FilterResults results = new FilterResults(); String prefixString = null; if (prefix != null) { prefixString = prefix.toString().t...
diff --git a/src/de/raptor2101/GalDroid/Activities/Listeners/ImageViewImageLoaderTaskListener.java b/src/de/raptor2101/GalDroid/Activities/Listeners/ImageViewImageLoaderTaskListener.java index 0865958..75ea12c 100644 --- a/src/de/raptor2101/GalDroid/Activities/Listeners/ImageViewImageLoaderTaskListener.java +++ b/src/d...
true
true
public void onLoadingCompleted(String uniqueId, Bitmap bitmap) { // if a Download is completed it could be the current diplayed image. // so start decoding of its embeded informations GalleryImageView imageView = (GalleryImageView) mGallery.getSelectedView(); if(imageView.getGalleryObject().getImage().getUn...
public void onLoadingCompleted(String uniqueId, Bitmap bitmap) { // if a Download is completed it could be the current diplayed image. // so start decoding of its embeded informations GalleryImageView imageView = (GalleryImageView) mGallery.getSelectedView(); if(imageView != null && imageView.getGalleryObje...
diff --git a/server/cluster-mgmt/src/main/java/com/vmware/bdd/service/sp/ScaleVMSP.java b/server/cluster-mgmt/src/main/java/com/vmware/bdd/service/sp/ScaleVMSP.java index 6d5250d1..c9c0abc9 100644 --- a/server/cluster-mgmt/src/main/java/com/vmware/bdd/service/sp/ScaleVMSP.java +++ b/server/cluster-mgmt/src/main/java/co...
true
true
public Void call() throws Exception { final VcVirtualMachine vcVm = VcCache.getIgnoreMissing(vmId); if (vcVm == null) { logger.info("vm: " + vmId + " is not found."); return null; } if (vcVm.isPoweredOn()) { logger.info("vm " + vcVm.getName() + " must...
public Void call() throws Exception { final VcVirtualMachine vcVm = VcCache.getIgnoreMissing(vmId); if (vcVm == null) { logger.info("vm: " + vmId + " is not found."); return null; } if (vcVm.isPoweredOn()) { logger.info("vm " + vcVm.getName() + " must...
diff --git a/btm/src/main/java/bitronix/tm/resource/common/XAPool.java b/btm/src/main/java/bitronix/tm/resource/common/XAPool.java index 5cb2d7c..c5eba30 100644 --- a/btm/src/main/java/bitronix/tm/resource/common/XAPool.java +++ b/btm/src/main/java/bitronix/tm/resource/common/XAPool.java @@ -1,668 +1,668 @@ /* * Bit...
false
true
public Object getConnectionHandle(boolean recycle) throws Exception { if (isFailed()) { synchronized (this) { try { if (isFailed()) { if (log.isDebugEnabled()) { log.debug("resource '" + bean.getUniqueName() + "' is marked as failed, re...
public Object getConnectionHandle(boolean recycle) throws Exception { if (isFailed()) { synchronized (this) { try { if (isFailed()) { if (log.isDebugEnabled()) { log.debug("resource '" + bean.getUniqueName() + "' is marked as failed, re...
diff --git a/jasper-reports/008-06-script-filling-parameters/src/JasperApp.java b/jasper-reports/008-06-script-filling-parameters/src/JasperApp.java index 1d91da0..8a19aaa 100644 --- a/jasper-reports/008-06-script-filling-parameters/src/JasperApp.java +++ b/jasper-reports/008-06-script-filling-parameters/src/JasperApp....
false
true
private static File fill() throws JRException, IOException { long start = System.currentTimeMillis(); String sourceFileLocation = "reports/"+compiledReportName(); System.err.println(" sourceFileLocation : " + sourceFileLocation); JasperReport jasperReport = (JasperRep...
private static File fill() throws JRException, IOException { long start = System.currentTimeMillis(); String sourceFileLocation = "reports/"+compiledReportName(); System.err.println(" sourceFileLocation : " + sourceFileLocation); JasperReport jasperReport = (JasperRep...
diff --git a/stripes/src/net/sourceforge/stripes/controller/DispatcherServlet.java b/stripes/src/net/sourceforge/stripes/controller/DispatcherServlet.java index 496f464c..77180cd3 100644 --- a/stripes/src/net/sourceforge/stripes/controller/DispatcherServlet.java +++ b/stripes/src/net/sourceforge/stripes/controller/Disp...
true
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException { try { // Lookup the bean, handler method and hook everything together ActionBeanContext context = StripesFilter.getConfiguration() .getActionBeanCon...
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException { try { // Lookup the bean, handler method and hook everything together ActionBeanContext context = StripesFilter.getConfiguration() .getActionBeanCon...
diff --git a/src/com/undeadscythes/udsplugin/eventhandlers/EntityDamage.java b/src/com/undeadscythes/udsplugin/eventhandlers/EntityDamage.java index 6537342..4710730 100644 --- a/src/com/undeadscythes/udsplugin/eventhandlers/EntityDamage.java +++ b/src/com/undeadscythes/udsplugin/eventhandlers/EntityDamage.java @@ -1,4...
true
true
public final void onEvent(final EntityDamageEvent event) { if((event.getEntity() instanceof Player)) { final SaveablePlayer player = UDSPlugin.getOnlinePlayers().get(((Player)event.getEntity()).getName()); if(player.hasGodMode() || player.isAfk() || (event.getCause().equals(DamageCau...
public final void onEvent(final EntityDamageEvent event) { if((event.getEntity() instanceof Player)) { final SaveablePlayer player = UDSPlugin.getOnlinePlayers().get(((Player)event.getEntity()).getName()); if(player.hasGodMode() || player.isAfk() || (event.getCause().equals(DamageCau...
diff --git a/server/src/org/bedework/caldav/server/CaldavCalNode.java b/server/src/org/bedework/caldav/server/CaldavCalNode.java index f215459..d7a42be 100644 --- a/server/src/org/bedework/caldav/server/CaldavCalNode.java +++ b/server/src/org/bedework/caldav/server/CaldavCalNode.java @@ -1,1558 +1,1558 @@ /* *********...
true
true
public boolean generatePropertyValue(final QName tag, final WebdavNsIntf intf, final boolean allProp) throws WebdavException { XmlEmit xml = intf.getXmlEmit(); try { int calType; CalDAVCollection c = (CalDAVCollection)g...
public boolean generatePropertyValue(final QName tag, final WebdavNsIntf intf, final boolean allProp) throws WebdavException { XmlEmit xml = intf.getXmlEmit(); try { int calType; CalDAVCollection c = (CalDAVCollection)g...
diff --git a/src/cz/cuni/mff/peckam/java/origamist/utils/RedBlackTree.java b/src/cz/cuni/mff/peckam/java/origamist/utils/RedBlackTree.java index 0f890df..7dd8bfe 100644 --- a/src/cz/cuni/mff/peckam/java/origamist/utils/RedBlackTree.java +++ b/src/cz/cuni/mff/peckam/java/origamist/utils/RedBlackTree.java @@ -1,1956 +1,1...
true
true
protected void repairTreeAfterDeletion(RedBlackTree<K, V>.TreePath path) { boolean setColor = false; Entry toDelete = path.getLast(); while (path.size() > 1 && colorOf(path.getLast()) == Color.BLACK) { if (path.getLast() == leftOf(path.getLast(1))) { Entry s...
protected void repairTreeAfterDeletion(RedBlackTree<K, V>.TreePath path) { boolean setColor = false; Entry toDelete = path.getLast(); while (path.size() > 1 && colorOf(path.getLast()) == Color.BLACK) { if (path.getLast() == leftOf(path.getLast(1))) { Entry s...
diff --git a/src/com/github/groupENIGMA/journalEgocentrique/MainActivity.java b/src/com/github/groupENIGMA/journalEgocentrique/MainActivity.java index f007d5b..c0b7479 100644 --- a/src/com/github/groupENIGMA/journalEgocentrique/MainActivity.java +++ b/src/com/github/groupENIGMA/journalEgocentrique/MainActivity.java @@ ...
true
true
private void displayDetailLayout() { // The Detail section will be displayed only when there's a Day selected if (selectedDay != null) { // Get the list of Entry for the selectedDay List<Entry> entries = selectedDay.getEntries(); // Prepare the custom ArrayAdapte...
private void displayDetailLayout() { // The Detail section will be displayed only when there's a Day selected if (selectedDay != null) { // Get the list of Entry for the selectedDay List<Entry> entries = selectedDay.getEntries(); // Prepare the custom ArrayAdapte...
diff --git a/ebms-as4/src/main/java/org/jentrata/ebms/as4/internal/routes/EbmsOutboundRouteBuilder.java b/ebms-as4/src/main/java/org/jentrata/ebms/as4/internal/routes/EbmsOutboundRouteBuilder.java index 34a1e0b..e417af8 100644 --- a/ebms-as4/src/main/java/org/jentrata/ebms/as4/internal/routes/EbmsOutboundRouteBuilder.j...
false
true
public void configure() throws Exception { from(outboundEbmsQueue) .removeHeaders("Camel*") .removeHeaders("JMS*") .setHeader(EbmsConstants.MESSAGE_STATUS, constant(MessageStatusType.DELIVER)) .setHeader(EbmsConstants.MESSAGE_STATUS_DESCRIPTION, constant(null)...
public void configure() throws Exception { from(outboundEbmsQueue) .removeHeaders("Camel*") .removeHeaders("JMS*") .setHeader(EbmsConstants.MESSAGE_STATUS, constant(MessageStatusType.DELIVER)) .setHeader(EbmsConstants.MESSAGE_STATUS_DESCRIPTION, constant(null)...
diff --git a/stage/src/main/java/org/jboss/test/faces/staging/StaticServlet.java b/stage/src/main/java/org/jboss/test/faces/staging/StaticServlet.java index 95775d3..d464cfc 100644 --- a/stage/src/main/java/org/jboss/test/faces/staging/StaticServlet.java +++ b/stage/src/main/java/org/jboss/test/faces/staging/StaticServ...
true
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { InputStream inputStream = getServletContext().getResourceAsStream(req.getServletPath()); if(null != inputStream){ String fileName = req.getServletPath(); String mimeType = getServletContext().getM...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { InputStream inputStream = getServletContext().getResourceAsStream(req.getPathInfo()); if(null != inputStream){ String fileName = req.getServletPath(); String mimeType = getServletContext().getMime...
diff --git a/vramel-core/src/main/java/com/nxttxn/vramel/components/vertx/VertxConsumer.java b/vramel-core/src/main/java/com/nxttxn/vramel/components/vertx/VertxConsumer.java index 2fa3291..e995b75 100644 --- a/vramel-core/src/main/java/com/nxttxn/vramel/components/vertx/VertxConsumer.java +++ b/vramel-core/src/main/ja...
false
true
public VertxConsumer(final Endpoint endpoint, final Processor processor) throws Exception { super(endpoint, processor); this.endpoint = (VertxChannelAdapter) endpoint; getEventBus().registerHandler(this.endpoint.getAddress(), new Handler<Message<byte[]>>() { @Override ...
public VertxConsumer(final Endpoint endpoint, final Processor processor) throws Exception { super(endpoint, processor); this.endpoint = (VertxChannelAdapter) endpoint; getEventBus().registerHandler(this.endpoint.getAddress(), new Handler<Message<byte[]>>() { @Override ...
diff --git a/src/com/redhat/qe/sm/cli/tests/PofilterTranslationTests.java b/src/com/redhat/qe/sm/cli/tests/PofilterTranslationTests.java index 180cd771..77cd0b32 100644 --- a/src/com/redhat/qe/sm/cli/tests/PofilterTranslationTests.java +++ b/src/com/redhat/qe/sm/cli/tests/PofilterTranslationTests.java @@ -1,591 +1,591 ...
true
true
protected List<List<Object>> getSubscriptionManagerTranslationFilePofilterTestDataAsListOfLists() { List<List<Object>> ll = new ArrayList<List<Object>>(); // Client side Map<File,List<Translation>> translationFileMapForSubscriptionManager = buildTranslationFileMapForSubscriptionManager(); for (File translat...
protected List<List<Object>> getSubscriptionManagerTranslationFilePofilterTestDataAsListOfLists() { List<List<Object>> ll = new ArrayList<List<Object>>(); // Client side Map<File,List<Translation>> translationFileMapForSubscriptionManager = buildTranslationFileMapForSubscriptionManager(); for (File translat...
diff --git a/com.sap.core.odata.processor.core/src/main/java/com/sap/core/odata/processor/core/jpa/ODataExpressionParser.java b/com.sap.core.odata.processor.core/src/main/java/com/sap/core/odata/processor/core/jpa/ODataExpressionParser.java index dca3ca8b9..ee8605b54 100644 --- a/com.sap.core.odata.processor.core/src/m...
false
true
public static String parseToJPAWhereExpression(final CommonExpression whereExpression, final String tableAlias) throws ODataException { switch (whereExpression.getKind()) { case UNARY: final UnaryExpression unaryExpression = (UnaryExpression) whereExpression; final String operand = parseToJPAWhere...
public static String parseToJPAWhereExpression(final CommonExpression whereExpression, final String tableAlias) throws ODataException { switch (whereExpression.getKind()) { case UNARY: final UnaryExpression unaryExpression = (UnaryExpression) whereExpression; final String operand = parseToJPAWhere...
diff --git a/source/net/yacy/cora/services/federated/solr/SolrScheme.java b/source/net/yacy/cora/services/federated/solr/SolrScheme.java index a94d0759d..074c0f2eb 100644 --- a/source/net/yacy/cora/services/federated/solr/SolrScheme.java +++ b/source/net/yacy/cora/services/federated/solr/SolrScheme.java @@ -1,256 +1,25...
true
true
public static SolrInputDocument yacy2solrSolrCell(String id, ResponseHeader header, Document yacydoc) { // we user the SolrCell design as index scheme SolrInputDocument solrdoc = new SolrInputDocument(); DigestURI digestURI = new DigestURI(yacydoc.dc_source()); solrdoc.addField("id",...
public static SolrInputDocument yacy2solrSolrCell(String id, ResponseHeader header, Document yacydoc) { // we user the SolrCell design as index scheme SolrInputDocument solrdoc = new SolrInputDocument(); DigestURI digestURI = new DigestURI(yacydoc.dc_source()); solrdoc.addField("id",...
diff --git a/vo/src/main/uk/ac/starlink/vo/ResourceTableModel.java b/vo/src/main/uk/ac/starlink/vo/ResourceTableModel.java index 4124b53f4..0847e9ee1 100644 --- a/vo/src/main/uk/ac/starlink/vo/ResourceTableModel.java +++ b/vo/src/main/uk/ac/starlink/vo/ResourceTableModel.java @@ -1,113 +1,114 @@ package uk.ac.starlink...
true
true
public ResourceTableModel( boolean includeAcref ) { super(); List colList = new ArrayList( Arrays.asList( new ArrayTableColumn[] { new ArrayTableColumn( "shortName", String.class ) { public Object getValue( Object item ) { return getResource( item ).ge...
public ResourceTableModel( boolean includeAcref ) { super(); List colList = new ArrayList( Arrays.asList( new ArrayTableColumn[] { new ArrayTableColumn( "shortName", String.class ) { public Object getValue( Object item ) { return getResource( item ).ge...
diff --git a/src/smarthouse/simulation/SimulationFrame.java b/src/smarthouse/simulation/SimulationFrame.java index e82de36..1b6e60f 100644 --- a/src/smarthouse/simulation/SimulationFrame.java +++ b/src/smarthouse/simulation/SimulationFrame.java @@ -1,377 +1,377 @@ package smarthouse.simulation; import jade.gui.GuiE...
false
true
public SimulationFrame(SimulationAgent agent) { super(); setSize(1024, 600); setTitle("Smarthouse"); myAgent = agent; setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); getContentPane().setLayout(null); String startTemp = null; try { startTemp = new String(String.format("%.1f°C", Constants.INITIAL_TEMP...
public SimulationFrame(SimulationAgent agent) { super(); setSize(1024, 600); setTitle("Smarthouse"); myAgent = agent; setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); getContentPane().setLayout(null); String startTemp = null; try { startTemp = new String(String.format("%.1f°C", Constants.INITIAL_TEMP...
diff --git a/src/game/Map.java b/src/game/Map.java index c7c15d7..f92ddbd 100644 --- a/src/game/Map.java +++ b/src/game/Map.java @@ -1,117 +1,117 @@ package game; import java.awt.Component; import java.awt.Graphics; import java.awt.Image; import java.awt.image.BufferedImage; import java.io.IOException; import ...
true
true
public void init(Base red, Base blue) { // TODO paint a nicer map! for (int img_x = 0; img_x < map_img.getWidth(); img_x++) { List<Ground> row = new ArrayList<Ground>(width); for (int img_y = 0; img_y < map_img.getWidth(); img_y++) { int pixel = map_img.getRGB(img_y, img_x); Ground ground = Ground.V...
public void init(Base red, Base blue) { // TODO paint a nicer map! for (int img_x = 0; img_x < map_img.getWidth(); img_x++) { List<Ground> row = new ArrayList<Ground>(width); for (int img_y = 0; img_y < map_img.getWidth(); img_y++) { int pixel = map_img.getRGB(img_x, img_y); Ground ground = Ground.V...
diff --git a/src/main/java/org/jboss/as/plugin/deployment/AbstractDeployment.java b/src/main/java/org/jboss/as/plugin/deployment/AbstractDeployment.java index 786d168..6c6150b 100644 --- a/src/main/java/org/jboss/as/plugin/deployment/AbstractDeployment.java +++ b/src/main/java/org/jboss/as/plugin/deployment/AbstractDep...
true
true
public final void execute() throws MojoExecutionException, MojoFailureException { if (skip) { getLog().debug(String.format("Skipping deployment of %s:%s", project.getGroupId(), project.getArtifactId())); return; } try { // Check the packaging type ...
public final void execute() throws MojoExecutionException, MojoFailureException { if (skip) { getLog().debug(String.format("Skipping deployment of %s:%s", project.getGroupId(), project.getArtifactId())); return; } try { // Check the packaging type ...
diff --git a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/LocationManager.java b/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/LocationManager.java index 385a7861..86fbf646 100644 --- a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/ad...
true
true
public static void initializeLocations() { // do install location initialization first since others may depend on it // assumes that the property is already set installLocation = buildLocation(PROP_INSTALL_AREA, null, null, true); Location temp = buildLocation(PROP_USER_AREA_DEFAULT, null, "", false); //$...
public static void initializeLocations() { // do install location initialization first since others may depend on it // assumes that the property is already set installLocation = buildLocation(PROP_INSTALL_AREA, null, "", true); //$NON-NLS-1$ Location temp = buildLocation(PROP_USER_AREA_DEFAULT, null, "", f...
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITextualDate.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITextualDate.java index 445d7305b..fc67d36e2 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITextualDate.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITextualDate.java @@ ...
true
true
public void onChange(Widget sender) { if (sender == text) { if (!text.getText().equals("")) { try { date = DateTimeFormat.getFormat(getFormatString()).parse( text.getText()); // remove possibly added invalid valu...
public void onChange(Widget sender) { if (sender == text) { if (!text.getText().equals("")) { try { date = DateTimeFormat.getFormat(getFormatString()).parse( text.getText()); // remove possibly added invalid valu...
diff --git a/src/edu/berkeley/cs162/KVClient.java b/src/edu/berkeley/cs162/KVClient.java index c72fd93..a2b4fb9 100644 --- a/src/edu/berkeley/cs162/KVClient.java +++ b/src/edu/berkeley/cs162/KVClient.java @@ -1,214 +1,214 @@ /** * Client component for generating load for the KeyValue store. * This is also used by ...
true
true
public String get(String key) throws KVException { Socket socket = connectHost(); KVMessage kvReq = new KVMessage("getreq"); kvReq.setKey(key); kvReq.sendMessage(socket); System.out.println("Request: " + kvReq.toXML()); String result = ""; shutdownOut(socket)...
public String get(String key) throws KVException { Socket socket = connectHost(); KVMessage kvReq = new KVMessage("getreq"); kvReq.setKey(key); kvReq.sendMessage(socket); System.out.println("Request: " + kvReq.toXML()); String result = ""; shutdownOut(socket)...
diff --git a/jsf2-integration/src/main/java/com/steeplesoft/jsf/facestester/context/mojarra/FacesTesterAnnotationScanner.java b/jsf2-integration/src/main/java/com/steeplesoft/jsf/facestester/context/mojarra/FacesTesterAnnotationScanner.java index 57770d2..928ad64 100644 --- a/jsf2-integration/src/main/java/com/steeples...
true
true
protected void processBuildDirectories(File startingDir, Map<Class<? extends Annotation>, Set<Class<?>>> classList) { assert (startingDir.exists()); assert (startingDir.isDirectory()); for (File file : startingDir.listFiles()) { if (file.isDirectory()) { processB...
protected void processBuildDirectories(File startingDir, Map<Class<? extends Annotation>, Set<Class<?>>> classList) { assert (startingDir.exists()); assert (startingDir.isDirectory()); for (File file : startingDir.listFiles()) { if (file.isDirectory()) { processB...
diff --git a/SimpleAgent/src/test/device/GripperTest.java b/SimpleAgent/src/test/device/GripperTest.java index 714d8d8..63e99a3 100644 --- a/SimpleAgent/src/test/device/GripperTest.java +++ b/SimpleAgent/src/test/device/GripperTest.java @@ -1,238 +1,238 @@ /** * */ package test.device; import java.util.concur...
true
true
@BeforeClass public static void setUpBeforeClass() throws Exception { int port = 6671; String host = "localhost"; /** Device list */ CopyOnWriteArrayList<Device> devList = new CopyOnWriteArrayList<Device>(); devList.add( new Device(IDevice.DEVICE_GRIPPER_CODE,hos...
@BeforeClass public static void setUpBeforeClass() throws Exception { int port = 6665; String host = "localhost"; /** Device list */ CopyOnWriteArrayList<Device> devList = new CopyOnWriteArrayList<Device>(); devList.add( new Device(IDevice.DEVICE_GRIPPER_CODE,hos...
diff --git a/compute/src/main/java/org/jclouds/compute/RunScriptOnNodesException.java b/compute/src/main/java/org/jclouds/compute/RunScriptOnNodesException.java index f16005b32..318bd3c32 100644 --- a/compute/src/main/java/org/jclouds/compute/RunScriptOnNodesException.java +++ b/compute/src/main/java/org/jclouds/comput...
true
true
public RunScriptOnNodesException(String tag, final byte[] runScript, @Nullable final RunScriptOptions options, Map<NodeMetadata, ExecResponse> successfulNodes, Map<?, Exception> executionExceptions, Map<? extends NodeMetadata, ? extends Throwable> failedNodes) { super(String...
public RunScriptOnNodesException(String tag, final byte[] runScript, @Nullable final RunScriptOptions options, Map<NodeMetadata, ExecResponse> successfulNodes, Map<?, Exception> executionExceptions, Map<? extends NodeMetadata, ? extends Throwable> failedNodes) { super(String...
diff --git a/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagsConsoleParser.java b/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagsConsoleParser.java index 301d337c5..6d2f94869 100644 --- a/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagsConsoleParser.java +++ b/index/org/eclipse/cdt/...
true
true
private void encodeTag(CTagEntry tempTag) { EntryType entryType = null; String kind = (String)tempTag.tagExtensionField.get(KIND); if (kind == null) return; char[][] fullName = getQualifiedName(tempTag); ICSearchConstants.LimitTo type = ICSearchConstants.DECLARATIONS; ...
private void encodeTag(CTagEntry tempTag) { EntryType entryType = null; String kind = (String)tempTag.tagExtensionField.get(KIND); if (kind == null) return; char[][] fullName = getQualifiedName(tempTag); ICSearchConstants.LimitTo type = ICSearchConstants.DECLARATIONS; ...
diff --git a/src/com/globalmesh/action/user/UserGetAction.java b/src/com/globalmesh/action/user/UserGetAction.java index 5cff3f6..01db027 100644 --- a/src/com/globalmesh/action/user/UserGetAction.java +++ b/src/com/globalmesh/action/user/UserGetAction.java @@ -1,78 +1,78 @@ /** * */ package com.globalmesh.action...
true
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String email = (String) req.getSession().getAttribute("email"); if(email == null){ req.setAttribute("msgClass", Constants.MSG_CSS_ERROR); req.setAttribute("message", Utility.getCONFG().getPrope...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String email = (String) req.getSession().getAttribute("email"); if(email == null){ req.setAttribute("msgClass", Constants.MSG_CSS_ERROR); req.setAttribute("message", Utility.getCONFG().getPrope...
diff --git a/sonar-server/src/main/java/org/sonar/server/permission/InternalPermissionTemplateService.java b/sonar-server/src/main/java/org/sonar/server/permission/InternalPermissionTemplateService.java index 6afe026c32..db518e31d6 100644 --- a/sonar-server/src/main/java/org/sonar/server/permission/InternalPermissionTe...
true
true
private void validateTemplateName(Long templateId, String templateName) { if(templateName == null) { String errorMsg = "The name field is mandatory"; LOG.error(errorMsg); throw new BadRequestException(errorMsg); } List<PermissionTemplateDto> existingTemplates = permissionDao.selectAllPer...
private void validateTemplateName(Long templateId, String templateName) { if(templateName == null) { String errorMsg = "The name field is mandatory"; LOG.error(errorMsg); throw new BadRequestException(errorMsg); } List<PermissionTemplateDto> existingTemplates = permissionDao.selectAllPer...
diff --git a/src/main/java/org/mule/tooling/jubula/JubulaMojo.java b/src/main/java/org/mule/tooling/jubula/JubulaMojo.java index 51f4055..ddc0490 100644 --- a/src/main/java/org/mule/tooling/jubula/JubulaMojo.java +++ b/src/main/java/org/mule/tooling/jubula/JubulaMojo.java @@ -1,190 +1,190 @@ /** * Copyright (c) Mule...
true
true
public void execute() throws MojoExecutionException { JubulaMavenPluginContext.initializeContext(buildDirectory); String jubulaInstallationPath = JubulaMavenPluginContext .pathToJubulaInstallationDirectory(); JubulaCliExecutor jubulaCliExecutor = new JubulaCliExecutorFactory() .getNewInstance(jubulaInst...
public void execute() throws MojoExecutionException { JubulaMavenPluginContext.initializeContext(buildDirectory); String jubulaInstallationPath = JubulaMavenPluginContext .pathToJubulaInstallationDirectory(); JubulaCliExecutor jubulaCliExecutor = new JubulaCliExecutorFactory() .getNewInstance(jubulaInst...
diff --git a/src/com/dmdirc/plugins/PluginInfo.java b/src/com/dmdirc/plugins/PluginInfo.java index f61eaf697..e94968409 100644 --- a/src/com/dmdirc/plugins/PluginInfo.java +++ b/src/com/dmdirc/plugins/PluginInfo.java @@ -1,965 +1,965 @@ /* * Copyright (c) 2006-2008 Chris Smith, Shane Mc Cormack, Gregory Holmes * ...
true
true
public boolean checkRequirements() { if (metaData == null) { // No meta-data, so no requirements. return true; } final String uiPackage; if (Main.getUI().getClass().getPackage() != null) { uiPackage = Main.getUI().getClass().getPackage().getName(); } else { final String uiController = Main.get...
public boolean checkRequirements() { if (metaData == null) { // No meta-data, so no requirements. return true; } final String uiPackage; if (Main.getUI().getClass().getPackage() != null) { uiPackage = Main.getUI().getClass().getPackage().getName(); } else { final String uiController = Main.get...
diff --git a/src/com/monitoring/munin_node/plugins/fw_packets.java b/src/com/monitoring/munin_node/plugins/fw_packets.java index bd63986..d55b6bd 100644 --- a/src/com/monitoring/munin_node/plugins/fw_packets.java +++ b/src/com/monitoring/munin_node/plugins/fw_packets.java @@ -1,95 +1,96 @@ package com.monitoring.munin...
true
true
public Void run(Handler handler) { StringBuffer output = new StringBuffer(); output.append("graph_title Firewall Throughput\n"); output.append("graph_args --base 1000 -l 0\n"); output.append("graph_vlabel Packets/${graph_period}\n"); output.append("graph_category network\n"); output.append("received.label ...
public Void run(Handler handler) { StringBuffer output = new StringBuffer(); output.append("graph_title Firewall Throughput\n"); output.append("graph_args --base 1000 -l 0\n"); output.append("graph_vlabel Packets/${graph_period}\n"); output.append("graph_category network\n"); output.append("received.label ...
diff --git a/dspace/src/org/dspace/app/webui/servlet/admin/EditCommunitiesServlet.java b/dspace/src/org/dspace/app/webui/servlet/admin/EditCommunitiesServlet.java index 0cd5e0082..65cc70ae7 100644 --- a/dspace/src/org/dspace/app/webui/servlet/admin/EditCommunitiesServlet.java +++ b/dspace/src/org/dspace/app/webui/servl...
false
true
private void processConfirmEditCollection(Context context, HttpServletRequest request, HttpServletResponse response, Community community, Collection collection) throws ServletException, IOException, SQLException, AuthorizeException { if (request.getParameter("crea...
private void processConfirmEditCollection(Context context, HttpServletRequest request, HttpServletResponse response, Community community, Collection collection) throws ServletException, IOException, SQLException, AuthorizeException { if (request.getParameter("crea...
diff --git a/Asgn2/src/solution/ContainerLabel.java b/Asgn2/src/solution/ContainerLabel.java index d562992..c50932b 100644 --- a/Asgn2/src/solution/ContainerLabel.java +++ b/Asgn2/src/solution/ContainerLabel.java @@ -1,69 +1,70 @@ package solution; /** * @author Jacob Evans, Bodaniel Jeanes */ public class C...
true
true
public ContainerLabel(Integer a_kind, Integer a_kindLength, Integer a_identifier, Integer a_identifierLength) throws LabelException, IllegalArgumentException { // No null parameters supported if ((a_kind == null) || (a_identifier == null) || (a_kindLength == ...
public ContainerLabel(Integer a_kind, Integer a_kindLength, Integer a_identifier, Integer a_identifierLength) throws LabelException, IllegalArgumentException { // No null parameters supported if ((a_kind == null) || (a_identifier == null) || (a_kindLength == ...
diff --git a/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/TestLinuxContainerExecutorWithMocks.java b/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/ya...
true
true
public void testContainerLaunch() throws IOException { String appSubmitter = "nobody"; String cmd = String.valueOf( LinuxContainerExecutor.Commands.LAUNCH_CONTAINER.getValue()); String appId = "APP_ID"; String containerId = "CONTAINER_ID"; Container container = mock(Container.class); C...
public void testContainerLaunch() throws IOException { String appSubmitter = "nobody"; String cmd = String.valueOf( LinuxContainerExecutor.Commands.LAUNCH_CONTAINER.getValue()); String appId = "APP_ID"; String containerId = "CONTAINER_ID"; Container container = mock(Container.class); C...
diff --git a/src/ibis/satin/impl/Stats.java b/src/ibis/satin/impl/Stats.java index 18dbbc29..400391ab 100644 --- a/src/ibis/satin/impl/Stats.java +++ b/src/ibis/satin/impl/Stats.java @@ -1,749 +1,749 @@ /* $Id$ */ package ibis.satin.impl; import ibis.util.Timer; public abstract class Stats extends SharedObjec...
false
true
protected void printStats() { int size; synchronized (this) { // size = victims.size(); // No, this is one too few. (Ceriel) size = victims.size() + 1; } // add my own stats StatsMessage me = createStats(); totalStats.add(me); ...
protected void printStats() { int size; synchronized (this) { // size = victims.size(); // No, this is one too few. (Ceriel) size = victims.size() + 1; } // add my own stats StatsMessage me = createStats(); totalStats.add(me); ...
diff --git a/src/highlevelui/lcdui/reference/classes/javax/microedition/lcdui/DateField.java b/src/highlevelui/lcdui/reference/classes/javax/microedition/lcdui/DateField.java index 22180ed7..dc5e89af 100644 --- a/src/highlevelui/lcdui/reference/classes/javax/microedition/lcdui/DateField.java +++ b/src/highlevelui/lcdui...
false
true
void setDateImpl(java.util.Date date) { if (date == null) { initialized = false; } else { currentDate.setTime(date); if (mode == TIME) { if (currentDate.getTime().getTime() >= 24*60*60*1000) { initialized = false;...
void setDateImpl(java.util.Date date) { if (date == null) { initialized = false; } else { currentDate.setTime(date); if (mode == TIME) { if (currentDate.get(Calendar.YEAR) != 1970 || currentDate.get(Calendar.MON...
diff --git a/samples/jaxp/SourceValidator.java b/samples/jaxp/SourceValidator.java index ede7fd02..8f72857f 100644 --- a/samples/jaxp/SourceValidator.java +++ b/samples/jaxp/SourceValidator.java @@ -1,548 +1,549 @@ /* * Copyright 2005 The Apache Software Foundation. * * Licensed under the Apache License, Versio...
true
true
public static void main (String [] argv) { // is there anything to do? if (argv.length == 0) { printUsage(); System.exit(1); } // variables Vector schemas = null; Vector instances = null; int repetition = DEFAULT_REPET...
public static void main (String [] argv) { // is there anything to do? if (argv.length == 0) { printUsage(); System.exit(1); } // variables Vector schemas = null; Vector instances = null; int repetition = DEFAULT_REPET...
diff --git a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/core/data/EntityIdentifier.java b/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/core/data/EntityIdentifier.java index 0c30c396b..2635bee75 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/infrastructure/core/data...
true
true
public Map<String, Object> getChanges() { Map<String, Object> checkIfEmpty = null; if (!this.changes.isEmpty()) { checkIfEmpty = this.changes; } return checkIfEmpty; }
public Map<String, Object> getChanges() { Map<String, Object> checkIfEmpty = null; if (this.changes != null && !this.changes.isEmpty()) { checkIfEmpty = this.changes; } return checkIfEmpty; }
diff --git a/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/AbstractArtifactResolutionException.java b/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/AbstractArtifactResolutionException.java index fce822669..6cbeda22a 100644 --- a/maven-artifact/src/main/java/org/apache/maven/artifact/...
true
true
private static String constructMessageBase( String message, String groupId, String artifactId, String version, String type, List remoteRepositories, List path ) { StringBuffer sb = new StringBuffer(); sb.append( message ); sb.append( LS );...
private static String constructMessageBase( String message, String groupId, String artifactId, String version, String type, List remoteRepositories, List path ) { StringBuffer sb = new StringBuffer(); sb.append( message ); sb.append( LS );...
diff --git a/platform/src/main/java/org/rhq/plugins/platform/CpuComponent.java b/platform/src/main/java/org/rhq/plugins/platform/CpuComponent.java index d5bc264748..f045126717 100644 --- a/platform/src/main/java/org/rhq/plugins/platform/CpuComponent.java +++ b/platform/src/main/java/org/rhq/plugins/platform/CpuComponen...
false
true
public void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> metrics) { if (cpuInformation != null) { cpuInformation.refresh(); Cpu cpu = null; CpuEntry currentCpu = null; CpuInfo cpuInfo = null; // this is probably gonna be used for traits...
public void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> metrics) { if (cpuInformation != null) { cpuInformation.refresh(); Cpu cpu = null; CpuEntry currentCpu = null; CpuInfo cpuInfo = null; // this is probably gonna be used for traits...
diff --git a/classes/com/sapienter/jbilling/server/order/OrderBL.java b/classes/com/sapienter/jbilling/server/order/OrderBL.java index 3132dc88..248e6632 100644 --- a/classes/com/sapienter/jbilling/server/order/OrderBL.java +++ b/classes/com/sapienter/jbilling/server/order/OrderBL.java @@ -1,1052 +1,1052 @@ /* The co...
false
true
public void reviewNotifications(Date today) throws NamingException, FinderException, SQLException, Exception { NotificationSessionLocalHome notificationHome = (NotificationSessionLocalHome) EJBFactory.lookUpLocalHome( NotificationSessionLocalHome.class, Notificati...
public void reviewNotifications(Date today) throws NamingException, FinderException, SQLException, Exception { NotificationSessionLocalHome notificationHome = (NotificationSessionLocalHome) EJBFactory.lookUpLocalHome( NotificationSessionLocalHome.class, Notificati...
diff --git a/src/TheoremChecker.java b/src/TheoremChecker.java index e9115a7..59a9ed6 100644 --- a/src/TheoremChecker.java +++ b/src/TheoremChecker.java @@ -1,94 +1,98 @@ import java.util.*; public class TheoremChecker extends Expression{ //used to check whether Theorem matches expression private HashMap<Strin...
true
true
private void constructorHelper(subExpression thm, subExpression tbe) throws IllegalInferenceException{ if (tbe == null) { throw new IllegalInferenceException("Bad theorem application "+errorPrinting()); } else if (thm.isVariable()) { try { subValues.put(thm.getName(),tbe); } catch (NullPointerExcepti...
private void constructorHelper(subExpression thm, subExpression tbe) throws IllegalInferenceException{ if (tbe == null) { throw new IllegalInferenceException("Bad theorem application "+errorPrinting()); } else if (thm.isVariable()) { try { if ((subValues.containsKey(thm.getName())) && (!(subValues...
diff --git a/grisu-commons/src/main/java/grisu/model/status/StatusObject.java b/grisu-commons/src/main/java/grisu/model/status/StatusObject.java index 98613928..3b832d75 100644 --- a/grisu-commons/src/main/java/grisu/model/status/StatusObject.java +++ b/grisu-commons/src/main/java/grisu/model/status/StatusObject.java @...
true
true
private synchronized void createWaitThread(final int waitTime, final int thresholdInSeconds) { if (t == null) { t = new Thread() { @Override public void run() { while (!getStatus().isFinished()) { try { if (((new Date().getTime() - startMonitoringTime) * 1000) < thresholdInSeconds) {...
private synchronized void createWaitThread(final int waitTime, final int thresholdInSeconds) { if (t == null) { t = new Thread() { @Override public void run() { while (!getStatus().isFinished()) { try { if ((new Date().getTime() - startMonitoringTime) < (thresholdInSeconds * 1000)) {...
diff --git a/OpenPGP-Keychain-API/libraries/keychain-api-library/src/org/openintents/openpgp/util/OpenPgpListPreference.java b/OpenPGP-Keychain-API/libraries/keychain-api-library/src/org/openintents/openpgp/util/OpenPgpListPreference.java index 7aea8f9fa..456bc96a9 100644 --- a/OpenPGP-Keychain-API/libraries/keychain-a...
true
true
protected void onPrepareDialogBuilder(Builder builder) { // get providers mProviderList.clear(); Intent intent = new Intent(OpenPgpConstants.SERVICE_INTENT); List<ResolveInfo> resInfo = getContext().getPackageManager().queryIntentServices(intent, 0); if (!resInfo.isEmpty()) ...
protected void onPrepareDialogBuilder(Builder builder) { // get providers mProviderList.clear(); Intent intent = new Intent(OpenPgpConstants.SERVICE_INTENT); List<ResolveInfo> resInfo = getContext().getPackageManager().queryIntentServices(intent, 0); if (!resInfo.isEmpty()) ...
diff --git a/src/main/java/net/pleiades/ResultsListener.java b/src/main/java/net/pleiades/ResultsListener.java index 7b47da8..18a5aae 100644 --- a/src/main/java/net/pleiades/ResultsListener.java +++ b/src/main/java/net/pleiades/ResultsListener.java @@ -1,204 +1,205 @@ /** * Pleiades * Copyright (C) 2011 - 2012 *...
true
true
public synchronized void onMessage(Message<Task> message) { if (message.getMessageObject().getId().equals("")) { //this attempts to gather jobs from the completed map after the gatherer crashed unexpectedly System.out.println("Checking all results"); //see line 45 in net.pleiades.Gatherer.j...
public synchronized void onMessage(Message<Task> message) { if (message.getMessageObject().getId().equals("")) { //this attempts to gather jobs from the completed map after the gatherer crashed unexpectedly System.out.println("Checking all results"); //see line 45 in net.pleiades.Gatherer.j...
diff --git a/extension/richfaces/src/main/java/org/jboss/portletbridge/richfaces/context/FileUploadFacesContextFactory.java b/extension/richfaces/src/main/java/org/jboss/portletbridge/richfaces/context/FileUploadFacesContextFactory.java index fe97ec4..6c19cb6 100644 --- a/extension/richfaces/src/main/java/org/jboss/por...
true
true
public FacesContext getFacesContext(Object context, Object request, Object response, Lifecycle lifecycle) throws FacesException { if (request instanceof ClientDataRequest) { ClientDataRequest clientRequest = (ClientDataRequest) request; if (null != clientRequest.getConte...
public FacesContext getFacesContext(Object context, Object request, Object response, Lifecycle lifecycle) throws FacesException { if (request instanceof ClientDataRequest) { ClientDataRequest clientRequest = (ClientDataRequest) request; if (null != clientRequest.getConte...
diff --git a/src/com/matejdro/bukkit/portalstick/commands/RegionToolCommand.java b/src/com/matejdro/bukkit/portalstick/commands/RegionToolCommand.java index 304ca2a..64bcc56 100644 --- a/src/com/matejdro/bukkit/portalstick/commands/RegionToolCommand.java +++ b/src/com/matejdro/bukkit/portalstick/commands/RegionToolComm...
true
true
public boolean execute() { User user = UserManager.getUser(player); if (user.getUsingTool()) { user.setUsingTool(false); Util.sendMessage(sender, "&aPortal region tool disabled"); } else { user.setUsingTool(true); Util.sendMessage(sender, "&aPortal region tool enabled.`n- Left click to set position...
public boolean execute() { User user = UserManager.getUser(player); if (user.getUsingTool()) { user.setUsingTool(false); Util.sendMessage(sender, "&aPortal region tool disabled"); } else { user.setUsingTool(true); Util.sendMessage(sender, "&aPortal region tool enabled.`n- Left click to set position...
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/NycFareServiceImpl.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/NycFareServiceImpl.java index f50f89bcb..03ec3ad5a 100644 --- a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/NycF...
false
true
public Fare getCost(GraphPath path) { final List<AgencyAndId> SIR_PAID_STOPS = makeMtaStopList("S31", "S30"); final List<AgencyAndId> SUBWAY_FREE_TRANSFER_STOPS = makeMtaStopList( "R11", "B08", "629"); final List<AgencyAndId> SIR_BONUS_STOPS = makeMtaStopList("140", "420", "419", "418", "M22", "M23", ...
public Fare getCost(GraphPath path) { final List<AgencyAndId> SIR_PAID_STOPS = makeMtaStopList("S31", "S30"); final List<AgencyAndId> SUBWAY_FREE_TRANSFER_STOPS = makeMtaStopList( "R11", "B08", "629"); final List<AgencyAndId> SIR_BONUS_STOPS = makeMtaStopList("140", "420", "419", "418", "M22", "M23", ...
diff --git a/kdcloud-webservice/src/main/java/com/kdcloud/server/rest/resource/ModalitiesServerResource.java b/kdcloud-webservice/src/main/java/com/kdcloud/server/rest/resource/ModalitiesServerResource.java index 52eb88d..5da440c 100644 --- a/kdcloud-webservice/src/main/java/com/kdcloud/server/rest/resource/ModalitiesS...
true
true
public ArrayList<Modality> listModalities() { ArrayList<Modality> list = new ArrayList<Modality>(); list.addAll(modalityDao.getAll()); return list; }
public ArrayList<Modality> listModalities() { ArrayList<Modality> list = new ArrayList<Modality>(); list.addAll(modalityDao.getAll()); getLogger().info("fetched " + list.size() + " modalities"); return list; }
diff --git a/cyklotron-core/src/main/java/net/cyklotron/cms/documents/calendar/CalendarAllRangeQuery.java b/cyklotron-core/src/main/java/net/cyklotron/cms/documents/calendar/CalendarAllRangeQuery.java index 79d9ad7b4..e5870ae74 100644 --- a/cyklotron-core/src/main/java/net/cyklotron/cms/documents/calendar/CalendarAllRa...
false
true
public Query rewrite(IndexReader indexReader) throws IOException { // total number of calendar documents in index // it is equal or more than number of date terms per field int numCalendarDocs = indexReader.maxDoc() - indexReader.docFreq(new Term("titleCalendar", DocumentNodeRes...
public Query rewrite(IndexReader indexReader) throws IOException { // total number of calendar documents in index // it is equal or more than number of date terms per field int numCalendarDocs = indexReader.maxDoc() - indexReader.docFreq(new Term("titleCalendar", DocumentNodeRes...
diff --git a/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java b/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java index c50c2f41b..456919eab 100644 --- a/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java +++ b/axis2/src/main/java/org/apache/ode/axis2/se...
true
true
public boolean doFilter(final HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { final String requestURI = request.getRequestURI(); final int deplUri = requestURI.indexOf("/deployment"); if (deplUri > 0) { final String root = request....
public boolean doFilter(final HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { final String requestURI = request.getRequestURI(); final int deplUri = requestURI.indexOf("/deployment"); if (deplUri > 0) { final String root = request....
diff --git a/de.peeeq.wurstscript/src/de/peeeq/wurstscript/types/CallSignature.java b/de.peeeq.wurstscript/src/de/peeeq/wurstscript/types/CallSignature.java index 73f506c0..02ac8071 100644 --- a/de.peeeq.wurstscript/src/de/peeeq/wurstscript/types/CallSignature.java +++ b/de.peeeq.wurstscript/src/de/peeeq/wurstscript/ty...
true
true
public void checkSignatureCompatibility(FunctionSignature sig, String funcName, AstElement pos) { if (receiver != null) { if (sig.getReceiverType() == null) { receiver.addError("No receiver expected for function " + funcName + "."); } else if (!receiver.attrTyp().isSubtypeOf(sig.getReceiverType(), receiver...
public void checkSignatureCompatibility(FunctionSignature sig, String funcName, AstElement pos) { if (sig == FunctionSignature.empty) { return; } if (receiver != null) { if (sig.getReceiverType() == null) { receiver.addError("No receiver expected for function " + funcName + "."); } else if (!receive...
diff --git a/web/src/main/java/org/fao/geonet/UpdateHarvesterIdsTask.java b/web/src/main/java/org/fao/geonet/UpdateHarvesterIdsTask.java index 91adfc2076..2f5a2c40a2 100644 --- a/web/src/main/java/org/fao/geonet/UpdateHarvesterIdsTask.java +++ b/web/src/main/java/org/fao/geonet/UpdateHarvesterIdsTask.java @@ -1,71 +1,7...
true
true
public void update(SettingManager settings, Dbms dbms) throws SQLException { final int MIN_HARVEST_ID = 100000; Element result = dbms .select("select * from Settings where parentid = 2 and id < " + MIN_HARVEST_ID); if (result.getChildren().size() > 0) { dbms.execute("SELECT * INTO Harvester FROM S...
public void update(SettingManager settings, Dbms dbms) throws SQLException { final int MIN_HARVEST_ID = 100000; Element result = dbms .select("select * from Settings where parentid = 2 and id < " + MIN_HARVEST_ID); if (result.getChildren().size() > 0) { dbms.execute("SELECT * INTO Harvester FROM S...
diff --git a/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/transport/TcpTransport.java b/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/transport/TcpTransport.java index efbfb1402e..1829aeeea9 100644 --- a/protocol-shared/src/main/java/org/apache/directory/server/p...
true
true
private IoAcceptor createAcceptor( String address, int port, int nbThreads, int backLog ) { NioSocketAcceptor acceptor = new NioSocketAcceptor( nbThreads ); acceptor.setBacklog( backLog ); InetSocketAddress socketAddress = null; // The address can be null here, ...
private IoAcceptor createAcceptor( String address, int port, int nbThreads, int backLog ) { NioSocketAcceptor acceptor = new NioSocketAcceptor( nbThreads ); acceptor.setReuseAddress( true ); acceptor.setBacklog( backLog ); InetSocketAddress socketAddress = null; ...
diff --git a/ui/ReportDialog.java b/ui/ReportDialog.java index 516978b..151017e 100755 --- a/ui/ReportDialog.java +++ b/ui/ReportDialog.java @@ -1,127 +1,126 @@ /** * ReportDialog.java * * This class provides a window for report no-catched exception in EduMips64 code. * (c) 2006 EduMIPS64 project - Rizzo Vanni...
true
true
public ReportDialog(final JFrame owner,Exception exception,String title){ super(owner, title, true); JPanel buttonPanel = new JPanel(); JButton okButton = new JButton(CurrentLocale.getString("ReportDialog.BUTTON")); buttonPanel.add(okButton); okButton.addActionListener(new ActionListener() { ...
public ReportDialog(final JFrame owner,Exception exception,String title){ super(owner, title, true); JPanel buttonPanel = new JPanel(); JButton okButton = new JButton(CurrentLocale.getString("ReportDialog.BUTTON")); buttonPanel.add(okButton); okButton.addActionListener(new ActionListener() { ...
diff --git a/rdfbean-rdb/src/test/java/com/mysema/rdfbean/rdb/SchemaExport.java b/rdfbean-rdb/src/test/java/com/mysema/rdfbean/rdb/SchemaExport.java index 21b5a179..4d71b77a 100644 --- a/rdfbean-rdb/src/test/java/com/mysema/rdfbean/rdb/SchemaExport.java +++ b/rdfbean-rdb/src/test/java/com/mysema/rdfbean/rdb/SchemaExpor...
true
true
public static void main(String[] args) throws SQLException{ JdbcDataSource ds = new JdbcDataSource(); ds.setURL("jdbc:h2:target/h2"); ds.setUser("sa"); ds.setPassword(""); Connection conn = ds.getConnection(); // export try{ Configuration ...
public static void main(String[] args) throws SQLException{ JdbcDataSource ds = new JdbcDataSource(); ds.setURL("jdbc:h2:target/h2"); ds.setUser("sa"); ds.setPassword(""); Connection conn = ds.getConnection(); // export try{ Configuration ...
diff --git a/src/main/java/thesmith/eventhorizon/controller/IndexController.java b/src/main/java/thesmith/eventhorizon/controller/IndexController.java index cbdc442..ce4fe90 100644 --- a/src/main/java/thesmith/eventhorizon/controller/IndexController.java +++ b/src/main/java/thesmith/eventhorizon/controller/IndexControl...
true
true
private void setModel(String personId, Date from, ModelMap model) { List<String> domains = accountService.domains(personId); List<Status> statuses = Lists.newArrayList(); if (null != from) { for (String domain : domains) { Status status = statusService.find(personId, domain, from); i...
private void setModel(String personId, Date from, ModelMap model) { List<String> domains = accountService.domains(personId); List<Status> statuses = Lists.newArrayList(); if (null != from) { for (String domain : domains) { Status status = statusService.find(personId, domain, from); i...
diff --git a/src/no/runsafe/framework/hook/HookEngine.java b/src/no/runsafe/framework/hook/HookEngine.java index ebc145c4..73945a26 100644 --- a/src/no/runsafe/framework/hook/HookEngine.java +++ b/src/no/runsafe/framework/hook/HookEngine.java @@ -1,30 +1,34 @@ package no.runsafe.framework.hook; import org.picoconta...
false
true
public HookEngine(FrameworkHook[] hooks) { for (FrameworkHook hook : hooks) hookContainer.addComponent(hook); }
public HookEngine(FrameworkHook[] hooks) { for (FrameworkHook hook : hooks) { // Do this to avoid exceptions.. hookContainer.removeComponent(hook); hookContainer.addComponent(hook); } }
diff --git a/grids/src/sage/web/page/StreamPageController.java b/grids/src/sage/web/page/StreamPageController.java index 80f0f6d..025035b 100644 --- a/grids/src/sage/web/page/StreamPageController.java +++ b/grids/src/sage/web/page/StreamPageController.java @@ -1,78 +1,78 @@ package sage.web.page; import java.util.A...
true
true
public String publicPage(@PathVariable("id") long id, ModelMap model) { FrontMap fm = FrontMap.from(model); fm.put("id", id); List<TagLabel> coreTags = new ArrayList<>(); List<TagLabel> nonCoreTags = new ArrayList<>(); TagCard tagCard = tagService.getTagCard(id); for (TagLabel child : tag...
public String publicPage(@PathVariable("id") long id, ModelMap model) { FrontMap fm = FrontMap.from(model); fm.put("id", id); List<TagLabel> coreTags = new ArrayList<>(); List<TagLabel> nonCoreTags = new ArrayList<>(); TagCard tagCard = tagService.getTagCard(id); for (TagLabel child : tag...
diff --git a/src/gnu/io/RXTXCommDriver.java b/src/gnu/io/RXTXCommDriver.java index 95e4c45..1ab6977 100644 --- a/src/gnu/io/RXTXCommDriver.java +++ b/src/gnu/io/RXTXCommDriver.java @@ -1,411 +1,411 @@ /*------------------------------------------------------------------------- | A wrapper to convert RXTX into Linux ...
true
true
private void registerScannedPorts() { File dev = new File( "/dev" ); String[] devs = dev.list(); String[] AllKnownSerialPorts; if(osName.equals("Linux")) { String[] Temp = { "comx", // linux COMMX synchronous serial card "holter", // custom card for heart monitoring "modem", // linux...
private void registerScannedPorts() { File dev = new File( "/dev" ); String[] devs = dev.list(); String[] AllKnownSerialPorts; if(osName.equals("Linux")) { String[] Temp = { "comx", // linux COMMX synchronous serial card "holter", // custom card for heart monitoring "modem", // linux...