Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/com/modcrafting/ultrabans/commands/Kick.java b/src/com/modcrafting/ultrabans/commands/Kick.java index 0507f8f..19e751b 100644 --- a/src/com/modcrafting/ultrabans/commands/Kick.java +++ b/src/com/modcrafting/ultrabans/commands/Kick.java @@ -1,146 +1,149 @@ package com.modcrafting.ultrabans.commands; ...
false
true
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { YamlConfiguration config = (YamlConfiguration) plugin.getConfig(); boolean auth = false; Player player = null; String admin = "server"; if (sender instanceof Player){ player = (Player)sender; if (plugi...
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { YamlConfiguration config = (YamlConfiguration) plugin.getConfig(); boolean auth = false; Player player = null; String admin = "server"; if (sender instanceof Player){ player = (Player)sender; if (plugi...
diff --git a/branches/4.0.0/Crux/src/ui/widgets/org/cruxframework/crux/widgets/client/maskedtextbox/MaskedTextBoxBaseFormatter.java b/branches/4.0.0/Crux/src/ui/widgets/org/cruxframework/crux/widgets/client/maskedtextbox/MaskedTextBoxBaseFormatter.java index 04ca7604c..12d7ce7b6 100644 --- a/branches/4.0.0/Crux/src/ui/...
true
true
public void removeMask(Widget widget) { if (widget instanceof MaskedTextBox) { MaskedTextBox maskedTxt = (MaskedTextBox) widget; MaskedInput maskedInput = maskedTxt.getMaskedInput(); if (maskedInput != null && maskedInput.getTextBox() != null && maskedInput.getTextBox().equals(widget)) { maske...
public void removeMask(Widget widget) { if (widget instanceof MaskedTextBox) { MaskedTextBox maskedTxt = (MaskedTextBox) widget; MaskedInput maskedInput = maskedTxt.getMaskedInput(); if (maskedInput != null && maskedInput.getTextBox() != null) { maskedInput.removeMask(); } } }
diff --git a/src/de/geotweeter/Conversation.java b/src/de/geotweeter/Conversation.java index ceab6be..21b7e3b 100644 --- a/src/de/geotweeter/Conversation.java +++ b/src/de/geotweeter/Conversation.java @@ -1,141 +1,145 @@ package de.geotweeter; import java.security.AccessControlException; import java.util.List; ...
true
true
protected Void doInBackground(TimelineElement... params) { if (params == null) { throw new NullPointerException("Conversation Task parameters are null"); } if (params[0] == null) { throw new NullPointerException("Conversation Task parameter is null"); } TimelineElement current_element = params[...
protected Void doInBackground(TimelineElement... params) { if (params == null) { throw new NullPointerException("Conversation Task parameters are null"); } if (params[0] == null) { throw new NullPointerException("Conversation Task parameter is null"); } TimelineElement current_element = params[...
diff --git a/src/main/java/com/crumbdev/chris/Danroth/Danroth.java b/src/main/java/com/crumbdev/chris/Danroth/Danroth.java index 7c52ca8..723743c 100644 --- a/src/main/java/com/crumbdev/chris/Danroth/Danroth.java +++ b/src/main/java/com/crumbdev/chris/Danroth/Danroth.java @@ -1,81 +1,81 @@ package com.crumbdev.chris.D...
true
true
public static void main(String[] args) { Boolean usenickserv = false; String nickserv = ""; String server = "irc.esper.net"; int port = 6667; List channels = new ArrayList(); String nick = "Danroth"; String ident = "Danroth"; for(int i = 0; i < arg...
public static void main(String[] args) { Boolean usenickserv = false; String nickserv = ""; String server = "irc.esper.net"; int port = 6667; List channels = new ArrayList(); String nick = "Danroth"; String ident = "Danroth"; for(int i = 0; i < arg...
diff --git a/src/net/ciderpunk/tanktris/graphics/Frame.java b/src/net/ciderpunk/tanktris/graphics/Frame.java index a8abc12..4e39b2f 100644 --- a/src/net/ciderpunk/tanktris/graphics/Frame.java +++ b/src/net/ciderpunk/tanktris/graphics/Frame.java @@ -1,78 +1,78 @@ package net.ciderpunk.tanktris.graphics; import java....
true
true
public Frame(Frame oBaseFrame, int iX, int iY, int iW, int iH, int iXOffset, int iYOffset){ oImage = Screen.getInstance().createImage(iW, iH); Graphics oG = oBaseFrame.getImage().getGraphics(); oG.drawImage(oBaseFrame.getImage(), iX,iY,iX+iW,iY+iH,0,0,iW,iH, null); iXOffs = iXOffset; iYOffs = iYOffset; }
public Frame(Frame oBaseFrame, int iX, int iY, int iW, int iH, int iXOffset, int iYOffset){ oImage = Screen.getInstance().createImage(iW, iH); Graphics oG = oImage.getGraphics(); oG.drawImage(oBaseFrame.getImage(), iX,iY,iX+iW,iY+iH,0,0,iW,iH, null); iXOffs = iXOffset; iYOffs = iYOffset; }
diff --git a/viewer-config-persistence/src/main/java/nl/b3p/viewer/config/services/FeatureSource.java b/viewer-config-persistence/src/main/java/nl/b3p/viewer/config/services/FeatureSource.java index 9982992b3..d988bd9b4 100644 --- a/viewer-config-persistence/src/main/java/nl/b3p/viewer/config/services/FeatureSource.jav...
true
true
List<String> calculateUniqueValues(SimpleFeatureType sft, String attributeName, int maxFeatures) throws Exception{ org.geotools.data.FeatureSource fs = null; try { FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(null); Function unique = ff.function("Collection_Uniqu...
List<String> calculateUniqueValues(SimpleFeatureType sft, String attributeName, int maxFeatures) throws Exception{ org.geotools.data.FeatureSource fs = null; try { FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(null); Function unique = ff.function("Collection_Uniqu...
diff --git a/src/test/org/apache/hadoop/hbase/HBaseTestCase.java b/src/test/org/apache/hadoop/hbase/HBaseTestCase.java index 16b828157..5baf70130 100644 --- a/src/test/org/apache/hadoop/hbase/HBaseTestCase.java +++ b/src/test/org/apache/hadoop/hbase/HBaseTestCase.java @@ -1,631 +1,632 @@ /** * Copyright 2007 The Apa...
true
true
protected static long addContent(final Incommon updater, final String column, final byte [] startKeyBytes, final byte [] endKey, final long ts) throws IOException { long count = 0; // Add rows of three characters. The first character starts with the // 'a' character and runs up to 'z'. Per first...
protected static long addContent(final Incommon updater, final String column, final byte [] startKeyBytes, final byte [] endKey, final long ts) throws IOException { long count = 0; // Add rows of three characters. The first character starts with the // 'a' character and runs up to 'z'. Per first...
diff --git a/src/enterpriseapp/mail/MailSender.java b/src/enterpriseapp/mail/MailSender.java index 5a67c77..bfba1e3 100644 --- a/src/enterpriseapp/mail/MailSender.java +++ b/src/enterpriseapp/mail/MailSender.java @@ -1,107 +1,109 @@ package enterpriseapp.mail; import java.util.ArrayList; import java.util.Collectio...
true
true
public static void send(Collection<String> recipients, String subject, String message, DataHandler dataHandler, String fileName) throws javax.mail.MessagingException { Properties props = new Properties(); props.put("mail.smtp.host", Constants.mailSmtpHost); props.put("mail.smtp.auth", "true"); ...
public static void send(Collection<String> recipients, String subject, String message, DataHandler dataHandler, String fileName) throws javax.mail.MessagingException { Properties props = new Properties(); props.put("mail.smtp.host", Constants.mailSmtpHost); props.put("mail.smtp.auth", "true"); ...
diff --git a/src/SerialPort/Port.java b/src/SerialPort/Port.java index fee9fed..19be41f 100644 --- a/src/SerialPort/Port.java +++ b/src/SerialPort/Port.java @@ -1,291 +1,291 @@ package SerialPort; import gnu.io.*; import java.util.*; import Log.Logger; import Game.Score; import java.io.InputStream; import java...
false
true
protected synchronized void handleReceivedScores(byte[] packet) { byte sender; byte destination; byte messagetype; byte command; byte length; byte crc; destination = packet[2]; sender = packet[3]; mess...
protected synchronized void handleReceivedScores(byte[] packet) { byte sender; byte destination; byte messagetype; byte command; byte length; byte crc; destination = packet[2]; sender = packet[3]; mess...
diff --git a/seminer/src/cvsanaly/CvsAnalyReleaseOverviewReader.java b/seminer/src/cvsanaly/CvsAnalyReleaseOverviewReader.java index c8fa0e6..cd6a0de 100644 --- a/seminer/src/cvsanaly/CvsAnalyReleaseOverviewReader.java +++ b/seminer/src/cvsanaly/CvsAnalyReleaseOverviewReader.java @@ -1,52 +1,54 @@ package cvsanaly; ...
true
true
public List<ReleaseOverview> read(String project) { List<ReleaseOverview> releases = new ArrayList<ReleaseOverview>(); List<Object[]> results = s.createSQLQuery("SELECT {tags.*}, {scmlog.*} FROM tags LEFT OUTER JOIN tag_revisions ON tags.id = tag_revisions.tag_id LEFT OUTER JOIN scmlog ON scmlog.id = tag_revisi...
public List<ReleaseOverview> read(String project) { List<ReleaseOverview> releases = new ArrayList<ReleaseOverview>(); List<Object[]> results = s.createSQLQuery("SELECT {tags.*}, {scmlog.*} FROM tags LEFT OUTER JOIN tag_revisions ON tags.id = tag_revisions.tag_id LEFT OUTER JOIN scmlog ON scmlog.id = tag_revisi...
diff --git a/unix-maven-plugin/src/main/java/org/codehaus/mojo/unix/maven/MojoHelper.java b/unix-maven-plugin/src/main/java/org/codehaus/mojo/unix/maven/MojoHelper.java index 8883e4a..ad85dcf 100644 --- a/unix-maven-plugin/src/main/java/org/codehaus/mojo/unix/maven/MojoHelper.java +++ b/unix-maven-plugin/src/main/java/...
true
true
public static Execution create( Map platforms, String platformType, Map formats, String formatType, MavenProjectWrapper project, boolean...
public static Execution create( Map platforms, String platformType, Map formats, String formatType, MavenProjectWrapper project, boolean...
diff --git a/src/org/openjump/core/ui/plugin/layer/ChangeLayerableNamePlugIn.java b/src/org/openjump/core/ui/plugin/layer/ChangeLayerableNamePlugIn.java index 9a74795e..20ab3f59 100644 --- a/src/org/openjump/core/ui/plugin/layer/ChangeLayerableNamePlugIn.java +++ b/src/org/openjump/core/ui/plugin/layer/ChangeLayerableN...
false
true
public boolean execute(PlugInContext context) throws Exception { reportNothingToUndoYet(context); final Layerable layer = (Layerable) context.getLayerNamePanel() .selectedNodes(Layerable.class).iterator().next(); final String oldName = layer.getName(); final String newName = (String) JOptionPane .showInputD...
public boolean execute(PlugInContext context) throws Exception { reportNothingToUndoYet(context); final Layerable layer = (Layerable) context.getLayerNamePanel() .selectedNodes(Layerable.class).iterator().next(); final String oldName = layer.getName(); final String newName = (String) JOptionPane .showInputD...
diff --git a/SRGameBoard.java b/SRGameBoard.java index d663324..62be1c3 100644 --- a/SRGameBoard.java +++ b/SRGameBoard.java @@ -1,863 +1,864 @@ /* GameBoard.java * This class will handle all logic involving the actions, and movements involved with the * game Sorry! as well as storing all other associated obje...
true
true
public int[] findMoves(SRPawn pawn, SRRule rule){ printDebug("\nEntered fineMoves(rule)."); int numMoves = rule.numMoves;//change when card truly has "rules" int [] moveIndices; boolean canSplit = rule.canSplit; printDebug("Entered findMoves with rule. NumMoves is "+numMoves); //figure out the directio...
public int[] findMoves(SRPawn pawn, SRRule rule){ printDebug("\nEntered fineMoves(rule)."); int numMoves = rule.numMoves;//change when card truly has "rules" int [] moveIndices; boolean canSplit = rule.canSplit; printDebug("Entered findMoves with rule. NumMoves is "+numMoves); //figure out the directio...
diff --git a/messageforums-app/src/java/org/sakaiproject/tool/messageforums/jsf/HideDivisionRenderer.java b/messageforums-app/src/java/org/sakaiproject/tool/messageforums/jsf/HideDivisionRenderer.java index 1030f102..30362860 100644 --- a/messageforums-app/src/java/org/sakaiproject/tool/messageforums/jsf/HideDivisionRe...
false
true
public void encodeBegin(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } ResponseWriter writer = context.getResponseWriter(); String jsfId = (String) RendererUtil.getAttribute(context, component, "id"); String id = jsfId; ...
public void encodeBegin(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } ResponseWriter writer = context.getResponseWriter(); String jsfId = (String) RendererUtil.getAttribute(context, component, "id"); String id = jsfId; ...
diff --git a/jOOQ-test/src/org/jooq/test/_/testcases/MetaDataTests.java b/jOOQ-test/src/org/jooq/test/_/testcases/MetaDataTests.java index 1c29ace7e..4173848fc 100644 --- a/jOOQ-test/src/org/jooq/test/_/testcases/MetaDataTests.java +++ b/jOOQ-test/src/org/jooq/test/_/testcases/MetaDataTests.java @@ -1,482 +1,482 @@ /*...
true
true
public void testMetaModel() throws Exception { // Test correct source code generation for the meta model Schema schema = TAuthor().getSchema(); if (schema != null) { int sequences = 0; if (cSequences() != null) { sequences++; // DB2 ...
public void testMetaModel() throws Exception { // Test correct source code generation for the meta model Schema schema = TAuthor().getSchema(); if (schema != null) { int sequences = 0; if (cSequences() != null) { sequences++; // DB2 ...
diff --git a/src/client/Client.java b/src/client/Client.java index a3dbc6e..f1c693d 100644 --- a/src/client/Client.java +++ b/src/client/Client.java @@ -1,263 +1,264 @@ package client; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.SocketException; import java.net.UnknownHostExce...
true
true
private void handle(ServerPacket packet) { switch (packet.getPacketType()) { case ACK: return; case CURRENT_GAME_STATE: handleCurrentGameState((CurrentGameStatePacket) packet); return; case CURRENT_USERS_LIST: ...
private void handle(ServerPacket packet) { switch (packet.getPacketType()) { case ACK: return; case CURRENT_GAME_STATE: handleCurrentGameState((CurrentGameStatePacket) packet); return; case CURRENT_USERS_LIST: ...
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/subscriber/SyncInfoSource.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/subscriber/SyncInfoSource.java index d851688fc..3a50f8a36 100644 --- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse...
true
true
protected void assertDiffKindEquals(String message, Subscriber subscriber, IResource resource, int expectedFlags) throws CoreException { int actualFlags = getActualDiffFlags(subscriber, resource); boolean result = compareFlags(resource, actualFlags, expectedFlags); int count = 0; while (!result && count < 40) ...
protected void assertDiffKindEquals(String message, Subscriber subscriber, IResource resource, int expectedFlags) throws CoreException { int actualFlags = getActualDiffFlags(subscriber, resource); boolean result = compareFlags(resource, actualFlags, expectedFlags); int count = 0; while (!result && count < 40) ...
diff --git a/src/test/java/com/cjra/battleship_project/FleetDeploymentActivityTests.java b/src/test/java/com/cjra/battleship_project/FleetDeploymentActivityTests.java index 4d7f131..e82e45d 100644 --- a/src/test/java/com/cjra/battleship_project/FleetDeploymentActivityTests.java +++ b/src/test/java/com/cjra/battleship_p...
true
true
public void RendersBattleshipGameWhenResumed(){ FleetDeploymentActivity activity = new FleetDeploymentActivity(); activity.onCreate(null); activity.setNumberOfAvailableShips(12); TextView text = (TextView)activity.findViewById(R.id.ship_count); assertEquals("You have 12 sh...
public void DisplaysCorrectNumberOfShipsTextForDeployment(){ FleetDeploymentActivity activity = new FleetDeploymentActivity(); activity.onCreate(null); activity.setNumberOfAvailableShips(12); TextView text = (TextView)activity.findViewById(R.id.ship_count); assertEquals("Y...
diff --git a/gltest/src/java/gltest/GLViewWindow.java b/gltest/src/java/gltest/GLViewWindow.java index 7fa4730..beb8e92 100644 --- a/gltest/src/java/gltest/GLViewWindow.java +++ b/gltest/src/java/gltest/GLViewWindow.java @@ -1,172 +1,173 @@ package gltest; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets...
true
true
protected Shell constructShell() { Shell shell = new Shell(SWT.CLOSE | SWT.MIN | SWT.TITLE | SWT.MAX | SWT.RESIZE); Point size = shell.getSize(); Point clientSize = new Point(shell.getClientArea().width, shell.getClientArea().height); shell.setSize(size.x - clientSize.x + 800, size.y - clientSize.y + 60...
protected Shell constructShell() { Shell shell = new Shell(SWT.CLOSE | SWT.MIN | SWT.TITLE | SWT.MAX | SWT.RESIZE); Point size = shell.getSize(); Point clientSize = new Point(shell.getClientArea().width, shell.getClientArea().height); shell.setSize(size.x - clientSize.x + 800, size.y - clientSize.y + 60...
diff --git a/src/jpcsp/MainGUI.java b/src/jpcsp/MainGUI.java index 3903ae99..076780b4 100644 --- a/src/jpcsp/MainGUI.java +++ b/src/jpcsp/MainGUI.java @@ -1,1573 +1,1583 @@ /* This file is part of jpcsp. Jpcsp is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Lic...
false
true
private void initComponents() { jToolBar1 = new javax.swing.JToolBar(); RunButton = new javax.swing.JToggleButton(); PauseButton = new javax.swing.JToggleButton(); ResetButton = new javax.swing.JButton(); MenuBar = new javax.swing.JMenuBar(); FileMenu = new javax.swi...
private void initComponents() { jToolBar1 = new javax.swing.JToolBar(); RunButton = new javax.swing.JToggleButton(); PauseButton = new javax.swing.JToggleButton(); ResetButton = new javax.swing.JButton(); MenuBar = new javax.swing.JMenuBar(); FileMenu = new javax.swi...
diff --git a/src/net/sf/cpsolver/coursett/heuristics/NeighbourSelectionWithSuggestions.java b/src/net/sf/cpsolver/coursett/heuristics/NeighbourSelectionWithSuggestions.java index 7cebec8..153fe2e 100644 --- a/src/net/sf/cpsolver/coursett/heuristics/NeighbourSelectionWithSuggestions.java +++ b/src/net/sf/cpsolver/course...
true
true
private void backtrack(long startTime, List<Lecture> initialLectures, List<Lecture> resolvedLectures, HashMap<Lecture, Placement> conflictsToResolve, int depth) { int nrUnassigned = conflictsToResolve.size(); if ((initialLectures == null || initialLectures.isEmpty()) && nrUnassigned == 0...
private void backtrack(long startTime, List<Lecture> initialLectures, List<Lecture> resolvedLectures, HashMap<Lecture, Placement> conflictsToResolve, int depth) { int nrUnassigned = conflictsToResolve.size(); if ((initialLectures == null || initialLectures.isEmpty()) && nrUnassigned == 0...
diff --git a/EmailClient/src/Email/FilterRule.java b/EmailClient/src/Email/FilterRule.java index aa06d0b..5a4c454 100644 --- a/EmailClient/src/Email/FilterRule.java +++ b/EmailClient/src/Email/FilterRule.java @@ -1,76 +1,76 @@ /* * To change this template, choose Tools | Templates * and open the template in the ed...
true
true
public boolean matches(String messageid) { MessageController controller = MessageController.getInstance(); if (controller.getEmailHeader(messageid, "X-MeetingId") == "") { return false; } String from = controller.getEmailHeader(messageid, "From"); String subject ...
public boolean matches(String messageid) { MessageController controller = MessageController.getInstance(); if (controller.getEmailHeader(messageid, "X-MeetingId") != "") { return false; } String from = controller.getEmailHeader(messageid, "From"); String subject ...
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/viewers/RepositoryDetailsLabelProvider.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/viewers/RepositoryDetailsLabelProvider.java index d2f74095e..6537fabe6 100644 --- a/bundles/org.eclipse.equinox.p2....
true
true
public String getColumnText(Object element, int columnIndex) { switch (columnIndex) { case COL_NAME : String name = ((IRepositoryElement) element).getName(); if (name != null) { return name; } return ""; //$NON-NLS-1$ case COL_LOCATION : if (element instanceof IRepository) { retu...
public String getColumnText(Object element, int columnIndex) { switch (columnIndex) { case COL_NAME : if (element instanceof IRepositoryElement) { String name = ((IRepositoryElement) element).getName(); if (name != null) { return name; } } if (element instanceof IRepository) { ...
diff --git a/src/org/apache/xalan/xsltc/trax/DOM2SAX.java b/src/org/apache/xalan/xsltc/trax/DOM2SAX.java index 8da79949..e25361ff 100644 --- a/src/org/apache/xalan/xsltc/trax/DOM2SAX.java +++ b/src/org/apache/xalan/xsltc/trax/DOM2SAX.java @@ -1,478 +1,485 @@ /* * @(#)$Id$ * * The Apache Software License, Version...
false
true
private void parse(Node node) throws IOException, SAXException { Node first = null; if (node == null) return; switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // handled by ELEMENT_NODE case Node.CDATA_SECTION_NODE: case Node.DOCUMENT_FRAGMENT_NODE: case Node.DOCUMENT_TYPE_NODE...
private void parse(Node node) throws IOException, SAXException { Node first = null; if (node == null) return; switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // handled by ELEMENT_NODE case Node.DOCUMENT_FRAGMENT_NODE: case Node.DOCUMENT_TYPE_NODE : case Node.ENTITY_NODE : ca...
diff --git a/source/ch/cyberduck/core/AbstractLoginController.java b/source/ch/cyberduck/core/AbstractLoginController.java index a842d36b0..e5e90cb76 100644 --- a/source/ch/cyberduck/core/AbstractLoginController.java +++ b/source/ch/cyberduck/core/AbstractLoginController.java @@ -1,157 +1,157 @@ package ch.cyberduck.c...
false
true
public void check(final Host host, String title, String message, boolean enableKeychain, boolean enablePublicKey, boolean enableAnonymous) throws LoginCanceledException { final Credentials credentials = host.getCredentials(); StringBuilder reason = new StringBuilder(); if(Strin...
public void check(final Host host, String title, String message, boolean enableKeychain, boolean enablePublicKey, boolean enableAnonymous) throws LoginCanceledException { final Credentials credentials = host.getCredentials(); StringBuilder reason = new StringBuilder(); if(Strin...
diff --git a/src/com/mel/wallpaper/starWars/entity/commands/BubbleCommand.java b/src/com/mel/wallpaper/starWars/entity/commands/BubbleCommand.java index 5083731..2485e40 100644 --- a/src/com/mel/wallpaper/starWars/entity/commands/BubbleCommand.java +++ b/src/com/mel/wallpaper/starWars/entity/commands/BubbleCommand.java...
false
true
public BubbleCommand(Walker walker, Game game) { super(walker, 1.4f, EaseLinear.getInstance()); this.walker = walker; this.game = game; switch(walker.rol) { case JEDI: switch((int)Math.random()*10) { case 0: bubble = new Bubble(BubbleType.BUBBLE_OLA_K_ASE, walker.position); break; ...
public BubbleCommand(Walker walker, Game game) { super(walker, 1.4f, EaseLinear.getInstance()); this.walker = walker; this.game = game; switch(walker.rol) { case JEDI: switch((int)(Math.random()*10)) { case 0: bubble = new Bubble(BubbleType.BUBBLE_OLA_K_ASE, walker.position); break; ...
diff --git a/patientview-parent/radar/src/test/java/org/patientview/radar/test/service/PatientLinkManagerTest.java b/patientview-parent/radar/src/test/java/org/patientview/radar/test/service/PatientLinkManagerTest.java index 1ff3f482..68b2f0a2 100644 --- a/patientview-parent/radar/src/test/java/org/patientview/radar/te...
true
true
public void testLinkingPatientRecord() { Patient patient = new Patient(); patient.setUnitcode(testRenalUnit); patient.setSurname("Test"); patient.setForename("Test"); patient.setDob(new Date()); patient.setNhsno("234235242"); DiseaseGroup diseaseGroup = new...
public void testLinkingPatientRecord() throws Exception { Patient patient = new Patient(); patient.setUnitcode(testRenalUnit); patient.setSurname("Test"); patient.setForename("Test"); patient.setDob(new Date()); patient.setNhsno("234235242"); DiseaseGroup d...
diff --git a/src/main/java/org/spoutcraft/launcher/skin/MetroLoginFrame.java b/src/main/java/org/spoutcraft/launcher/skin/MetroLoginFrame.java index 47cbc0f..e0fee28 100644 --- a/src/main/java/org/spoutcraft/launcher/skin/MetroLoginFrame.java +++ b/src/main/java/org/spoutcraft/launcher/skin/MetroLoginFrame.java @@ -1,6...
false
true
private void initComponents() { Font minecraft = getMinecraftFont(12); // Login background box RoundedBox loginArea = new RoundedBox(TRANSPARENT); loginArea.setBounds(605, 377, 265, 83); // Setup username box name = new LiteTextBox(this, "Username..."); name.setBounds(loginArea.getX() + 15, loginArea.g...
private void initComponents() { Font minecraft = getMinecraftFont(12); // Login background box RoundedBox loginArea = new RoundedBox(TRANSPARENT); loginArea.setBounds(605, 377, 265, 83); // Setup username box name = new LiteTextBox(this, "Username..."); name.setBounds(loginArea.getX() + 15, loginArea.g...
diff --git a/src/com/bbcnewsreader/ArticleActivity.java b/src/com/bbcnewsreader/ArticleActivity.java index 6d17abd..384c446 100644 --- a/src/com/bbcnewsreader/ArticleActivity.java +++ b/src/com/bbcnewsreader/ArticleActivity.java @@ -1,14 +1,15 @@ package com.bbcnewsreader; import android.app.Activity; import andro...
true
true
public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.article); WebView webView = (WebView)findViewById(R.id.articleWebView); //webView.loadUrl("http://www.google.com"); }
public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.article); WebView webView = (WebView)findViewById(R.id.articleWebView); webView.getUrl(); //webView.loadUrl("http://www.google.com"); }
diff --git a/javasrc/src/org/ccnx/ccn/test/repo/RFSTest.java b/javasrc/src/org/ccnx/ccn/test/repo/RFSTest.java index 323d829f3..d9b691d43 100644 --- a/javasrc/src/org/ccnx/ccn/test/repo/RFSTest.java +++ b/javasrc/src/org/ccnx/ccn/test/repo/RFSTest.java @@ -1,395 +1,397 @@ /** * A CCNx library test. * * Copyright...
false
true
public void test(RepositoryStore repo) throws Exception{ System.out.println("Repotest - Testing basic data"); ContentName name = ContentName.fromNative("/repoTest/data1"); ContentObject content = ContentObject.buildContentObject(name, "Here's my data!".getBytes()); repo.saveContent(content); checkData(repo...
public void test(RepositoryStore repo) throws Exception{ System.out.println("Repotest - Testing basic data"); ContentName name = ContentName.fromNative("/repoTest/data1"); ContentObject content = ContentObject.buildContentObject(name, "Here's my data!".getBytes()); repo.saveContent(content); checkData(repo...
diff --git a/swing-application-impl/src/main/java/org/cytoscape/internal/view/CytoscapeMenus.java b/swing-application-impl/src/main/java/org/cytoscape/internal/view/CytoscapeMenus.java index 6c12c939c..46a93912d 100644 --- a/swing-application-impl/src/main/java/org/cytoscape/internal/view/CytoscapeMenus.java +++ b/swin...
true
true
public CytoscapeMenus(CytoscapeMenuBar menuBar, CytoscapeToolBar toolBar) { this.menuBar = menuBar; this.toolBar = toolBar; menuBar.addMenu("File", 0.0); menuBar.addMenu("File.New", 0.0); menuBar.addMenu("File.New.Network", 0.0); menuBar.addMenu("File.Import", 5.0); menuBar.addMenu("File.Export", 5.1); men...
public CytoscapeMenus(CytoscapeMenuBar menuBar, CytoscapeToolBar toolBar) { this.menuBar = menuBar; this.toolBar = toolBar; menuBar.addMenu("File", 0.0); menuBar.addMenu("File.Recent Session", 0.0); menuBar.addMenu("File.New", 0.5); menuBar.addMenu("File.New.Network", 0.0); menuBar.addMenu("File.Import", 5....
diff --git a/operator/kernelstats/src/main/java/org/jaitools/media/jai/kernelstats/KernelStatsOpImage.java b/operator/kernelstats/src/main/java/org/jaitools/media/jai/kernelstats/KernelStatsOpImage.java index 239a9b43..80fb0298 100644 --- a/operator/kernelstats/src/main/java/org/jaitools/media/jai/kernelstats/KernelSta...
true
true
public KernelStatsOpImage(RenderedImage source, BorderExtender extender, Map config, ImageLayout layout, Statistic[] stats, KernelJAI kernel, int band, ROI roi, boolean maskSrc, boolean maskDest, ...
public KernelStatsOpImage(RenderedImage source, BorderExtender extender, Map config, ImageLayout layout, Statistic[] stats, KernelJAI kernel, int band, ROI roi, boolean maskSrc, boolean maskDest, ...
diff --git a/src/test/java/mikera/vectorz/util/TestMatrixBuilder.java b/src/test/java/mikera/vectorz/util/TestMatrixBuilder.java index 33428e4d..9cc64e3e 100644 --- a/src/test/java/mikera/vectorz/util/TestMatrixBuilder.java +++ b/src/test/java/mikera/vectorz/util/TestMatrixBuilder.java @@ -1,26 +1,25 @@ package mikera...
false
true
@Test public void testBuild() { MatrixBuilder vb=new MatrixBuilder(); assertEquals(0,vb.toMatrix().toVector().length()); vb.append(Vector3.of(1,0,0)); vb.append(new double[] {0,1,0}); vb.append(Vector.of(0,0).join(Vector.of(1))); AMatrix m= vb.toMatrix(); assertEquals(3,m.outputDimensions()); ...
@Test public void testBuild() { MatrixBuilder mb=new MatrixBuilder(); mb.append(Vector3.of(1,0,0)); mb.append(new double[] {0,1,0}); mb.append(Vector.of(0,0).join(Vector.of(1))); AMatrix m= mb.toMatrix(); assertEquals(3,m.outputDimensions()); assertTrue(m.isIdentity()); }
diff --git a/src/main/java/org/jenkinsci/plugins/envinject/service/PropertiesLoader.java b/src/main/java/org/jenkinsci/plugins/envinject/service/PropertiesLoader.java index 7b8e2d9..036a1d4 100644 --- a/src/main/java/org/jenkinsci/plugins/envinject/service/PropertiesLoader.java +++ b/src/main/java/org/jenkinsci/plugins...
false
true
public Map<String, String> getVarsFromPropertiesContent(String content, Map<String, String> currentEnvVars) throws EnvInjectException { if (content == null) { throw new NullPointerException("A properties content must be set."); } if (content.trim().length() == 0) { t...
public Map<String, String> getVarsFromPropertiesContent(String content, Map<String, String> currentEnvVars) throws EnvInjectException { if (content == null) { throw new NullPointerException("A properties content must be set."); } if (content.trim().length() == 0) { t...
diff --git a/BetterBatteryStats/src/com/asksven/betterbatterystats/HelpActivity.java b/BetterBatteryStats/src/com/asksven/betterbatterystats/HelpActivity.java index 32350cc2..dc195940 100644 --- a/BetterBatteryStats/src/com/asksven/betterbatterystats/HelpActivity.java +++ b/BetterBatteryStats/src/com/asksven/betterbatt...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.helpwebview); WebView browser = (WebView)findViewById(R.id.webview); WebSettings settings = browser.getSettings(); settings.setJavaScriptEnabled(true); // retrieve any pas...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.helpwebview); WebView browser = (WebView)findViewById(R.id.webview); WebSettings settings = browser.getSettings(); settings.setJavaScriptEnabled(true); // retrieve any pas...
diff --git a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/dispatchers/SubsequentRequestDispatcher.java b/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/dispatchers/SubsequentRequestDispatcher.java index 03c12ddeb..e8723177f 100644 --- a/sip-servlets-impl/src/main/java/org/mobicents/ser...
false
true
public void dispatchMessage(final SipProvider sipProvider, SipServletMessageImpl sipServletMessage) throws DispatcherException { final SipFactoryImpl sipFactoryImpl = sipApplicationDispatcher.getSipFactory(); final SipServletRequestImpl sipServletRequest = (SipServletRequestImpl) sipServletMessage; if(logger.isD...
public void dispatchMessage(final SipProvider sipProvider, SipServletMessageImpl sipServletMessage) throws DispatcherException { final SipFactoryImpl sipFactoryImpl = sipApplicationDispatcher.getSipFactory(); final SipServletRequestImpl sipServletRequest = (SipServletRequestImpl) sipServletMessage; if(logger.isD...
diff --git a/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionStart.java b/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionStart.java index fe69eb7..f6afe25 100644 --- a/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionStart.java +++ b/src/net/invisioncraft/plugins/sales...
false
true
public boolean execute(CommandSender sender, Command command, String label, String[] args) { Locale locale = plugin.getLocaleHandler().getLocale(sender); // Console check if(!(sender instanceof Player)) { sender.sendMessage(locale.getMessage("Console.cantStartAuction")); ...
public boolean execute(CommandSender sender, Command command, String label, String[] args) { Locale locale = plugin.getLocaleHandler().getLocale(sender); // Console check if(!(sender instanceof Player)) { sender.sendMessage(locale.getMessage("Console.cantStartAuction")); ...
diff --git a/src/me/libraryaddict/Hungergames/Commands/BuyKit.java b/src/me/libraryaddict/Hungergames/Commands/BuyKit.java index 9f93fcd..8edab5c 100644 --- a/src/me/libraryaddict/Hungergames/Commands/BuyKit.java +++ b/src/me/libraryaddict/Hungergames/Commands/BuyKit.java @@ -1,55 +1,55 @@ package me.libraryaddict.Hun...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { Gamer gamer = pm.getGamer(sender.getName()); if (args.length > 0) { me.libraryaddict.Hungergames.Types.Kit kit = kits.getKitByName(StringUtils.join(args, " ")); if (kit != null) ...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { Gamer gamer = pm.getGamer(sender.getName()); if (args.length > 0) { me.libraryaddict.Hungergames.Types.Kit kit = kits.getKitByName(StringUtils.join(args, " ")); if (kit != null) ...
diff --git a/RedditInPictures-Free/src/com/antew/redditinpictures/ui/ImageGridFragmentFree.java b/RedditInPictures-Free/src/com/antew/redditinpictures/ui/ImageGridFragmentFree.java index bbb5433..076df64 100644 --- a/RedditInPictures-Free/src/com/antew/redditinpictures/ui/ImageGridFragmentFree.java +++ b/RedditInPictur...
true
true
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { RelativeLayout v = (RelativeLayout) super.onCreateView(inflater, container, savedInstanceState); mGridView = (GridView) v.findViewById(R.id.gridView); LocalBroadcastManager.getInstanc...
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { RelativeLayout v = (RelativeLayout) super.onCreateView(inflater, container, savedInstanceState); mGridView = (GridView) v.findViewById(R.id.gridView); LocalBroadcastManager.getInstanc...
diff --git a/util/src/main/java/com/psddev/dari/util/CodeDebugServlet.java b/util/src/main/java/com/psddev/dari/util/CodeDebugServlet.java index ae1b5150..c71a6c54 100644 --- a/util/src/main/java/com/psddev/dari/util/CodeDebugServlet.java +++ b/util/src/main/java/com/psddev/dari/util/CodeDebugServlet.java @@ -1,630 +1,...
true
true
private void doEdit(WebPageContext page) throws IOException, ServletException { final Type type = page.paramOrDefault(Type.class, "type", Type.JAVA); final File file = getFile(page); final StringBuilder codeBuilder = new StringBuilder(); if (file != null) { if (file.exis...
private void doEdit(WebPageContext page) throws IOException, ServletException { final Type type = page.paramOrDefault(Type.class, "type", Type.JAVA); final File file = getFile(page); final StringBuilder codeBuilder = new StringBuilder(); if (file != null) { if (file.exis...
diff --git a/plugins/SPIMAcquisition/spim/progacq/OMETIFFHandler.java b/plugins/SPIMAcquisition/spim/progacq/OMETIFFHandler.java index a1d104726..cd421c38d 100644 --- a/plugins/SPIMAcquisition/spim/progacq/OMETIFFHandler.java +++ b/plugins/SPIMAcquisition/spim/progacq/OMETIFFHandler.java @@ -1,198 +1,198 @@ package sp...
true
true
public OMETIFFHandler(CMMCore iCore, File outDir, String xyDev, String cDev, String zDev, String tDev, AcqRow[] acqRows, int iTimeSteps, double iDeltaT) { if(outDir == null || !outDir.exists() || !outDir.isDirectory()) throw new IllegalArgumentException("Null path specified: " + outDir.toString()); imag...
public OMETIFFHandler(CMMCore iCore, File outDir, String xyDev, String cDev, String zDev, String tDev, AcqRow[] acqRows, int iTimeSteps, double iDeltaT) { if(outDir == null || !outDir.exists() || !outDir.isDirectory()) throw new IllegalArgumentException("Null path specified: " + outDir.toString()); imag...
diff --git a/trunk/GeoBeagle/src/com/google/code/geobeagle/bcaching/progress/ProgressMessage.java b/trunk/GeoBeagle/src/com/google/code/geobeagle/bcaching/progress/ProgressMessage.java index 5358d82e..e59f4a08 100644 --- a/trunk/GeoBeagle/src/com/google/code/geobeagle/bcaching/progress/ProgressMessage.java +++ b/trunk/...
true
true
void act(ProgressDialog progressDialog, int arg1, Object object) { progressDialog.incrementProgressBy(1); }
void act(ProgressDialog progressDialog, int arg1, Object object) { progressDialog.setTitle("Bcaching.com: " + (String)object); progressDialog.incrementProgressBy(1); }
diff --git a/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java b/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java index 5f5e4391..d1f0e7aa 100644 --- a/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java +++ b/src/java/org/jives...
true
true
private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); } public vo...
private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); } public vo...
diff --git a/src/com/cooliris/media/Gallery.java b/src/com/cooliris/media/Gallery.java index 361d16b..62d47e2 100644 --- a/src/com/cooliris/media/Gallery.java +++ b/src/com/cooliris/media/Gallery.java @@ -1,396 +1,403 @@ package com.cooliris.media; import java.io.IOException; import java.net.URISyntaxException; i...
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final boolean imageManagerHasStorage = ImageManager.quickHasStorage(); if (isViewIntent() && getIntent().getData().equals(Images.Media.EXTERNAL_CONTENT_URI) && getIntent().getExtras().getBoo...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final boolean imageManagerHasStorage = ImageManager.quickHasStorage(); boolean slideshowIntent = false; if (isViewIntent()) { Bundle extras = getIntent().getExtras(); if (ext...
diff --git a/source/de/anomic/kelondro/util/FileUtils.java b/source/de/anomic/kelondro/util/FileUtils.java index 13e21ea49..bfdd15f2a 100644 --- a/source/de/anomic/kelondro/util/FileUtils.java +++ b/source/de/anomic/kelondro/util/FileUtils.java @@ -1,771 +1,771 @@ // serverFileUtils.java // -------------------------...
true
true
public static void deletedelete(final File path) { if (!path.exists()) return; // empty the directory first if (path.isDirectory()) { final String[] list = path.list(); if (list != null) { for (String s: list) deletedelete(new File(path, s)); ...
public static void deletedelete(final File path) { if (!path.exists()) return; // empty the directory first if (path.isDirectory()) { final String[] list = path.list(); if (list != null) { for (String s: list) deletedelete(new File(path, s)); ...
diff --git a/src/edu/cuny/qc/speech/AuToBI/AuToBI.java b/src/edu/cuny/qc/speech/AuToBI/AuToBI.java index 0a20bcf..8a74300 100644 --- a/src/edu/cuny/qc/speech/AuToBI/AuToBI.java +++ b/src/edu/cuny/qc/speech/AuToBI/AuToBI.java @@ -1,1236 +1,1236 @@ /* AuToBI.java Copyright (c) 2009-2012 Andrew Rosenberg T...
true
true
public void registerAllFeatureExtractors() throws FeatureExtractorException { /** TODO: This approach needs to be rethought. As AuToBI's capabilities are increased, this function grows, and the * size of the "default" feature registry increases. * * There are two approaches that seem possib...
public void registerAllFeatureExtractors() throws FeatureExtractorException { /** TODO: This approach needs to be rethought. As AuToBI's capabilities are increased, this function grows, and the * size of the "default" feature registry increases. * * There are two approaches that seem possib...
diff --git a/src/test/java/com/ritchey/chapelManage/domain/LcuchapelPunchTest.java b/src/test/java/com/ritchey/chapelManage/domain/LcuchapelPunchTest.java index 52e9afe..3a678ca 100644 --- a/src/test/java/com/ritchey/chapelManage/domain/LcuchapelPunchTest.java +++ b/src/test/java/com/ritchey/chapelManage/domain/Lcuchap...
false
true
public void testMasterDetailCountAttendance() throws ParseException { PunchMapper punchMapper = (PunchMapper) bf.getBean("punchMapper"); SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); //(ChapelPunchServiceImpl.java:255) - select punched Events date = null id = null scheduleOnly = f...
public void testMasterDetailCountAttendance() throws ParseException { PunchMapper punchMapper = (PunchMapper) bf.getBean("punchMapper"); SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); //(ChapelPunchServiceImpl.java:255) - select punched Events date = null id = null scheduleOnly = f...
diff --git a/src/java/com/idega/block/image/presentation/ImageGallery.java b/src/java/com/idega/block/image/presentation/ImageGallery.java index 1f3a9e7..518a3cf 100644 --- a/src/java/com/idega/block/image/presentation/ImageGallery.java +++ b/src/java/com/idega/block/image/presentation/ImageGallery.java @@ -1,489 +1,48...
true
true
protected void addImages(IWContext iwc, Layer imageGalleryLayer) throws Exception { ArrayList<AdvancedImage> images = getImages(iwc); String idOfGallery = this.getId(); Paragraph name = new Paragraph(); name.setStyleClass("thumbnail-caption " + STYLE_CLASS_GALLERY_IMAGE_TITLE); Layer imageAndText = new ...
protected void addImages(IWContext iwc, Layer imageGalleryLayer) throws Exception { ArrayList<AdvancedImage> images = getImages(iwc); String idOfGallery = this.getId(); Paragraph name = new Paragraph(); name.setStyleClass("thumbnail-caption " + STYLE_CLASS_GALLERY_IMAGE_TITLE); Layer imageAndText = new ...
diff --git a/src/lib/com/izforge/izpack/panels/TargetPanel.java b/src/lib/com/izforge/izpack/panels/TargetPanel.java index c3e7ab94..d559f503 100644 --- a/src/lib/com/izforge/izpack/panels/TargetPanel.java +++ b/src/lib/com/izforge/izpack/panels/TargetPanel.java @@ -1,302 +1,302 @@ /* * $Id$ * IzPack * Copyri...
true
true
public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parent.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "macos...
public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parent.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "mac o...
diff --git a/adapters/migration/src/main/java/org/atomhopper/migration/adapter/MigrationFeedPublisher.java b/adapters/migration/src/main/java/org/atomhopper/migration/adapter/MigrationFeedPublisher.java index 17261787..43ccbd27 100644 --- a/adapters/migration/src/main/java/org/atomhopper/migration/adapter/MigrationFeed...
false
true
public AdapterResponse<Entry> postEntry(PostEntryRequest postEntryRequest) { PersistedEntry entry = new PersistedEntry(); // If allowOverrideId is false then set the Id // Also set the id if allowOverrideId is true, but no Id was sent in the entry if (!allowOverrideId || postEntryR...
public AdapterResponse<Entry> postEntry(PostEntryRequest postEntryRequest) { PersistedEntry entry = new PersistedEntry(); // If allowOverrideId is false then set the Id // Also set the id if allowOverrideId is true, but no Id was sent in the entry if (!allowOverrideId || postEntryR...
diff --git a/src/org/dancres/paxos/impl/mina/io/TransportImpl.java b/src/org/dancres/paxos/impl/mina/io/TransportImpl.java index fd10a76..baa95d1 100644 --- a/src/org/dancres/paxos/impl/mina/io/TransportImpl.java +++ b/src/org/dancres/paxos/impl/mina/io/TransportImpl.java @@ -1,83 +1,83 @@ package org.dancres.paxos.im...
true
true
public void send(PaxosMessage aMessage, NodeId anAddress) { PaxosMessage myMessage; switch (aMessage.getType()) { case Operations.COLLECT : case Operations.BEGIN : case Operations.SUCCESS : { myMessage = new ProposerHeader(aMessage, _addr.getPort(...
public void send(PaxosMessage aMessage, NodeId anAddress) { PaxosMessage myMessage; switch (aMessage.getType()) { case Operations.COLLECT : case Operations.BEGIN : case Operations.SUCCESS : { myMessage = new ProposerHeader(aMessage, _addr.getPort(...
diff --git a/src/main/java/be/hehehe/supersonic/SupersonicTray.java b/src/main/java/be/hehehe/supersonic/SupersonicTray.java index 7623ca9..a2ef3d0 100644 --- a/src/main/java/be/hehehe/supersonic/SupersonicTray.java +++ b/src/main/java/be/hehehe/supersonic/SupersonicTray.java @@ -1,126 +1,123 @@ package be.hehehe.supe...
true
true
public boolean addTray(final Supersonic supersonic) { if (!SystemTray.isSupported()) { return false; } final JPopupMenu popup = new JPopupMenu(); trayIcon = new TrayIcon(iconService.getIcon("supersonic").getImage()); final SystemTray tray = SystemTray.getSystemTray(); JMenuItem restoreItem = new JMenuI...
public boolean addTray(final Supersonic supersonic) { if (!SystemTray.isSupported()) { return false; } final JPopupMenu popup = new JPopupMenu(); trayIcon = new TrayIcon(iconService.getIcon("supersonic").getImage()); final SystemTray tray = SystemTray.getSystemTray(); JMenuItem restoreItem = new JMenuI...
diff --git a/src/com/subspace/network/NetworkSubspace.java b/src/com/subspace/network/NetworkSubspace.java index 6262d82..729e094 100644 --- a/src/com/subspace/network/NetworkSubspace.java +++ b/src/com/subspace/network/NetworkSubspace.java @@ -1,507 +1,507 @@ /* SubspaceMobile - A subspace/continuum client for mobil...
false
true
public ByteBuffer Recv(ByteBuffer data, boolean decryptPacket) { if (data == null) { return null; } try { //if not connected pass to encryption handler if (!this.connected && (data.get(0) == NetworkPacket.CORE)) { //log packets ...
public ByteBuffer Recv(ByteBuffer data, boolean decryptPacket) { if (data == null) { return null; } try { //if not connected pass to encryption handler if (!this.connected && (data.get(0) == NetworkPacket.CORE)) { //log packets ...
diff --git a/components/loci-plugins/src/loci/plugins/Checker.java b/components/loci-plugins/src/loci/plugins/Checker.java index 635ca04ad..88602a5d9 100644 --- a/components/loci-plugins/src/loci/plugins/Checker.java +++ b/components/loci-plugins/src/loci/plugins/Checker.java @@ -1,171 +1,171 @@ // // Checker.java /...
true
true
public static void checkLibrary(int library, HashSet missing) { switch (library) { case BIO_FORMATS: checkLibrary("loci.formats.FormatHandler", "bio-formats.jar", missing); checkLibrary("org.apache.poi.poifs.filesystem.POIFSFileSystem", "poi-loci.jar", missing); break; ...
public static void checkLibrary(int library, HashSet missing) { switch (library) { case BIO_FORMATS: checkLibrary("loci.formats.FormatHandler", "bio-formats.jar", missing); checkLibrary("org.apache.poi.poifs.filesystem.POIFSFileSystem", "poi-loci.jar", missing); break; ...
diff --git a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/simplified/activities/CreateAcquisitionPurchaseOrderDocument.java b/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/simplified/activities/CreateAcquisitionPurchaseOrderDocument.java index 4f529e8e..0...
true
true
protected byte[] createPurchaseOrderDocument(final AcquisitionRequest acquisitionRequest, final String requestID, final SupplierContact supplierContact) { final Map<String, Object> paramMap = new HashMap<String, Object>(); paramMap.put("acquisitionRequest", acquisitionRequest); paramMap.put("supplierContact", su...
protected byte[] createPurchaseOrderDocument(final AcquisitionRequest acquisitionRequest, final String requestID, final SupplierContact supplierContact) { final Map<String, Object> paramMap = new HashMap<String, Object>(); paramMap.put("acquisitionRequest", acquisitionRequest); paramMap.put("supplierContact", su...
diff --git a/java/sodium/src/sodium/Event.java b/java/sodium/src/sodium/Event.java index 0e73a41..b298f7b 100644 --- a/java/sodium/src/sodium/Event.java +++ b/java/sodium/src/sodium/Event.java @@ -1,499 +1,502 @@ package sodium; import java.util.ArrayList; import java.util.List; public class Event<A> { privat...
true
true
public final Event<A> filter(final Lambda1<A,Boolean> f) { final Event<A> ev = this; final EventSink<A> out = new EventSink<A>() { @SuppressWarnings("unchecked") @Override protected Object[] sampleNow() { Object[] oi = ev.sampleNow(); ...
public final Event<A> filter(final Lambda1<A,Boolean> f) { final Event<A> ev = this; final EventSink<A> out = new EventSink<A>() { @SuppressWarnings("unchecked") @Override protected Object[] sampleNow() { Object[] oi = ev.sampleNow(); ...
diff --git a/src/main/java/org/swordapp/server/DepositReceipt.java b/src/main/java/org/swordapp/server/DepositReceipt.java index c5deff4..7161eb2 100644 --- a/src/main/java/org/swordapp/server/DepositReceipt.java +++ b/src/main/java/org/swordapp/server/DepositReceipt.java @@ -1,290 +1,290 @@ package org.swordapp.serve...
true
true
public Entry getAbderaEntry() { Entry abderaEntry = (Entry) this.entry.clone(); // use the edit iri as the id abderaEntry.setId(this.editIRI.toString()); // add the Edit IRI Link if (this.editIRI != null) { abderaEntry.addLink(this.editIRI.toString(), "edit"); ...
public Entry getAbderaEntry() { Entry abderaEntry = (Entry) this.entry.clone(); // use the edit iri as the id abderaEntry.setId(this.editIRI.toString()); // add the Edit IRI Link if (this.editIRI != null) { abderaEntry.addLink(this.editIRI.toString(), "edit"); ...
diff --git a/src/com/podevs/android/pokemononline/NetworkService.java b/src/com/podevs/android/pokemononline/NetworkService.java index 90c09b53..d2bc2e4c 100644 --- a/src/com/podevs/android/pokemononline/NetworkService.java +++ b/src/com/podevs/android/pokemononline/NetworkService.java @@ -1,1300 +1,1304 @@ package co...
true
true
public void handleMsg(Bais msg) { byte i = msg.readByte(); if (i < 0 || i >= Command.values().length) { Log.w(TAG, "Command out of bounds: " +i); } Command c = Command.values()[i]; //Log.d(TAG, "Received: " + c); switch (c) { case ChannelPlayers: case JoinChannel: case LeaveChannel:{ Ch...
public void handleMsg(Bais msg) { byte i = msg.readByte(); if (i < 0 || i >= Command.values().length) { Log.w(TAG, "Command out of bounds: " +i); } Command c = Command.values()[i]; //Log.d(TAG, "Received: " + c); switch (c) { case ChannelPlayers: case JoinChannel: case LeaveChannel:{ Ch...
diff --git a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/modes/commandline/KeyMapper.java b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/modes/commandline/KeyMapper.java index c7c9657e..dd811046 100644 --- a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/modes/commandline/...
false
true
public Object evaluate(EditorAdaptor vim, Queue<String> command) { String lhs = command.poll(); String rhs = ""; while( ! command.isEmpty()) { //restore spaces between extra parameters rhs += command.poll() + " "; } if (...
public Object evaluate(EditorAdaptor vim, Queue<String> command) { String lhs = command.poll(); String rhs = ""; while( ! command.isEmpty()) { //restore spaces between extra parameters rhs += command.poll() + " "; } if (...
diff --git a/webcam-capture/src/main/java/com/github/sarxos/webcam/log/WebcamLogConfigurator.java b/webcam-capture/src/main/java/com/github/sarxos/webcam/log/WebcamLogConfigurator.java index 0a8c93c..4978d26 100644 --- a/webcam-capture/src/main/java/com/github/sarxos/webcam/log/WebcamLogConfigurator.java +++ b/webcam-c...
false
true
public static void configure(InputStream is) { ClassLoader cl = Thread.currentThread().getContextClassLoader(); try { String[] names = { "ch.qos.logback.classic.LoggerContext", "ch.qos.logback.classic.joran.JoranConfigurator", "ch.qos.logback.core.Context" }; for (String name : names) { C...
public static void configure(InputStream is) { ClassLoader cl = Thread.currentThread().getContextClassLoader(); try { String[] names = { "ch.qos.logback.classic.LoggerContext", "ch.qos.logback.classic.joran.JoranConfigurator", }; for (String name : names) { Class.forName(name, false, cl); ...
diff --git a/src/main/java/com/bananity/models/IndexModelBean.java b/src/main/java/com/bananity/models/IndexModelBean.java index 7b43cd8..ef3b935 100644 --- a/src/main/java/com/bananity/models/IndexModelBean.java +++ b/src/main/java/com/bananity/models/IndexModelBean.java @@ -1,218 +1,222 @@ package com.bananity.model...
true
true
public void insert (String collName, String item, Collection<String> subTokens) throws Exception { Cache<String, ArrayList<String>> cache = cB.getTokensCache(collName); if (cache == null) { throw new Exception("¡Cache not foud for collection \""+collName+"\"!"); } boolean addedItem, mustTrim, recove...
public void insert (String collName, String item, Collection<String> subTokens) throws Exception { Cache<String, ArrayList<String>> cache = cB.getTokensCache(collName); if (cache == null) { throw new Exception("¡Cache not foud for collection \""+collName+"\"!"); } boolean addedItem, mustTrim, recove...
diff --git a/modules/library/render/src/test/java/org/geotools/renderer/lite/StreamingRendererTest.java b/modules/library/render/src/test/java/org/geotools/renderer/lite/StreamingRendererTest.java index c4e3217f7..4a7d0d3ff 100644 --- a/modules/library/render/src/test/java/org/geotools/renderer/lite/StreamingRendererTe...
false
true
public void testInfiniteLoopAvoidance() throws Exception { final Exception sentinel = new RuntimeException("This is the one that should be thrown in hasNext()"); // setup the mock necessary to have the renderer hit into the exception in hasNext() FeatureIterator it2 = createNiceMock...
public void testInfiniteLoopAvoidance() throws Exception { final Exception sentinel = new RuntimeException("This is the one that should be thrown in hasNext()"); // setup the mock necessary to have the renderer hit into the exception in hasNext() Iterator it2 = createNiceMock(Iterat...
diff --git a/src/com/android/contacts/model/ExchangeSource.java b/src/com/android/contacts/model/ExchangeSource.java index 11ccd448c..3f2ab6c34 100644 --- a/src/com/android/contacts/model/ExchangeSource.java +++ b/src/com/android/contacts/model/ExchangeSource.java @@ -1,316 +1,316 @@ /* * Copyright (C) 2009 The Andr...
false
true
protected DataKind inflateStructuredName(Context context, int inflateLevel) { final DataKind kind = super.inflateStructuredName(context, ContactsSource.LEVEL_MIMETYPES); if (inflateLevel >= ContactsSource.LEVEL_CONSTRAINTS) { final boolean useJapaneseOrder = Locale.JAPAN...
protected DataKind inflateStructuredName(Context context, int inflateLevel) { final DataKind kind = super.inflateStructuredName(context, ContactsSource.LEVEL_MIMETYPES); if (inflateLevel >= ContactsSource.LEVEL_CONSTRAINTS) { boolean displayOrderPrimary = context.get...
diff --git a/Chart.java b/Chart.java index 19dc0f5..6d66d88 100644 --- a/Chart.java +++ b/Chart.java @@ -1,85 +1,85 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Set; import java.util.Map; import java.util.LinkedHashMap; public class Chart { private Map<String, String> data; ...
true
true
public String toString() { String rt = ""; int labelWidth = 0, dataWidth = 0; // calculate padding for label and data columns for (Map.Entry<String, String> i : data.entrySet()){ labelWidth = Math.max(i.getKey().length(), labelWidth); dataWidth = Math.max(i...
public String toString() { String rt = ""; int labelWidth = 1, dataWidth = 1; // calculate padding for label and data columns for (Map.Entry<String, String> i : data.entrySet()){ labelWidth = Math.max(i.getKey().length(), labelWidth); dataWidth = Math.max(i...
diff --git a/src/Export/Schema.java b/src/Export/Schema.java index 51fd230..fab91d5 100644 --- a/src/Export/Schema.java +++ b/src/Export/Schema.java @@ -1,118 +1,118 @@ /** * This file is part of libRibbonIO library (check README). * Copyright (C) 2012-2013 Stanislav Nepochatov * * This program is free softwa...
true
true
public Schema(java.util.Properties givenConfig, Class<Exporter> givenModule) { currConfig = givenConfig; exporterModule = givenModule; type = currConfig.getProperty("export_type"); name = currConfig.getProperty("export_name"); if (currConfig.containsKey("export_template")) { ...
public Schema(java.util.Properties givenConfig, Class<Exporter> givenModule) { currConfig = givenConfig; exporterModule = givenModule; type = currConfig.getProperty("export_type"); name = currConfig.getProperty("export_name"); if (currConfig.containsKey("export_template")) { ...
diff --git a/applications/manufacturing/src/org/ofbiz/manufacturing/routing/RoutingServices.java b/applications/manufacturing/src/org/ofbiz/manufacturing/routing/RoutingServices.java index b84a8e7d6..602a4bba7 100644 --- a/applications/manufacturing/src/org/ofbiz/manufacturing/routing/RoutingServices.java +++ b/applica...
false
true
public static Map getEstimatedTaskTime(DispatchContext ctx, Map context) { Map result = new HashMap(); GenericDelegator delegator = ctx.getDelegator(); LocalDispatcher dispatcher = ctx.getDispatcher(); // The mandatory IN parameters String taskId = (String) context.get("task...
public static Map getEstimatedTaskTime(DispatchContext ctx, Map context) { Map result = new HashMap(); GenericDelegator delegator = ctx.getDelegator(); LocalDispatcher dispatcher = ctx.getDispatcher(); // The mandatory IN parameters String taskId = (String) context.get("task...
diff --git a/module-blog/src/test/java/org/devproof/portal/module/blog/page/BlogEditPageTest.java b/module-blog/src/test/java/org/devproof/portal/module/blog/page/BlogEditPageTest.java index 51423055..cf14d288 100644 --- a/module-blog/src/test/java/org/devproof/portal/module/blog/page/BlogEditPageTest.java +++ b/module...
true
true
private void navigateToBlogEditPage() { tester.startPage(BlogPage.class); tester.assertRenderedPage(BlogPage.class); tester.assertContains("This is a sample blog entry."); tester.debugComponentTrees(); tester.clickLink("repeatingBlogEntries:1:blogView:authorButtons:editLink")...
private void navigateToBlogEditPage() { tester.startPage(BlogPage.class); tester.assertRenderedPage(BlogPage.class); tester.assertContains("This is a sample blog entry."); tester.debugComponentTrees(); tester.clickLink("repeatingBlogEntries:2:blogView:authorButtons:editLink")...
diff --git a/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/bizlogic/SPPXMLParser.java b/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/bizlogic/SPPXMLParser.java index f64103e30..1ef1c1c5c 100644 --- a/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/bizlogi...
false
true
private void populateActionList(Set<Action> actionList, EventType event) throws DynamicExtensionsSystemException { String name = event.getName(); String barcode = event.getBarcode(); Long order = event.getOrder(); String entityGrp = event.getEntityGroupName(); String activity = event.getActivity(); ...
private void populateActionList(Set<Action> actionList, EventType event) throws DynamicExtensionsSystemException { String name = event.getName(); String barcode = event.getBarcode(); Long order = event.getOrder(); String entityGrp = event.getEntityGroupName(); String activity = event.getActivity(); ...
diff --git a/luni/src/test/java/libcore/java/util/FormatterTest.java b/luni/src/test/java/libcore/java/util/FormatterTest.java index ce33c271a..00d0ab74c 100644 --- a/luni/src/test/java/libcore/java/util/FormatterTest.java +++ b/luni/src/test/java/libcore/java/util/FormatterTest.java @@ -1,129 +1,129 @@ /* * Copyrig...
true
true
public void test_numberLocalization() throws Exception { Locale arabic = new Locale("ar"); // Check the fast path for %d: assertEquals("12 \u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660 34", String.format(arabic, "12 %d 34", 1234567890)); // And the slow...
public void test_numberLocalization() throws Exception { Locale arabic = new Locale("ar"); // Check the fast path for %d: assertEquals("12 \u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660 34", String.format(arabic, "12 %d 34", 1234567890)); // And the slow...
diff --git a/src/vm/Start.java b/src/vm/Start.java index c6318e4..9282e95 100644 --- a/src/vm/Start.java +++ b/src/vm/Start.java @@ -1,45 +1,45 @@ package vm; public class Start { public static void main(String[] args) { // byte[] instructions = // {0x00, 0x00, 0x00, 0x00, //0-3: 4-bytes header // ...
false
true
public static void main(String[] args) { // byte[] instructions = // {0x00, 0x00, 0x00, 0x00, //0-3: 4-bytes header // 0x02, 0x01, //4-5: load 1 // //:add_loop // 0x02, 0x01, //6-7: load 1 // 0x01, //8: add // // 0x02, 0x00, //9-10: load 0 // 0x22,...
public static void main(String[] args) { // byte[] instructions = // {0x00, 0x00, 0x00, 0x00, //0-3: 4-bytes header // 0x02, 0x01, //4-5: load 1 // //:add_loop // 0x02, 0x01, //6-7: load 1 // 0x01, //8: add // // 0x02, 0x00, //9-10: load 0 // 0x22,...
diff --git a/src/test/java/org/weymouth/demo/model/DataTest.java b/src/test/java/org/weymouth/demo/model/DataTest.java index d2b869f..96eb3db 100755 --- a/src/test/java/org/weymouth/demo/model/DataTest.java +++ b/src/test/java/org/weymouth/demo/model/DataTest.java @@ -1,18 +1,18 @@ package org.weymouth.demo.model; ...
true
true
public void test(){ String probe = "probe"; Data d = new Data(probe); String data = d.getData(); // data = null; // this will cause the test to fail; without being a compile error Assert.assertNotNull(data); Assert.assertEquals(probe, data); }
public void test(){ String probe = "probe"; Data d = new Data(probe); String data = d.getData(); data = null; // this will cause the test to fail; without being a compile error Assert.assertNotNull(data); Assert.assertEquals(probe, data); }
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoAdapter.java b/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoAdapter.java index e2bb7073..6b24fc98 100644 --- a/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoAdapter.java +++ b/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoAdapter.java @...
false
true
public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder; View v = convertView; if (v == null) { LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = inflater.inflate(R.layout.a...
public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder; View v = convertView; if (v == null) { LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = inflater.inflate(R.layout.a...
diff --git a/diagnostic/command/src/main/java/org/apache/karaf/diagnostic/command/DumpCommand.java b/diagnostic/command/src/main/java/org/apache/karaf/diagnostic/command/DumpCommand.java index eba3812e..cc1951ed 100644 --- a/diagnostic/command/src/main/java/org/apache/karaf/diagnostic/command/DumpCommand.java +++ b/dia...
true
true
protected Object doExecute() throws Exception { DumpDestination destination; if (providers.isEmpty()) { session.getConsole().println("Unable to create dump. No providers were found"); return null; } // create default file name if none provided if (fi...
protected Object doExecute() throws Exception { DumpDestination destination; if (providers.isEmpty()) { session.getConsole().println("Unable to create dump. No providers were found"); return null; } // create default file name if none provided if (fi...
diff --git a/serenity-app/src/main/java/us/nineworlds/serenity/ui/browser/tv/seasons/TVShowSeasonImageGalleryAdapter.java b/serenity-app/src/main/java/us/nineworlds/serenity/ui/browser/tv/seasons/TVShowSeasonImageGalleryAdapter.java index e8003e09..e97b98e3 100644 --- a/serenity-app/src/main/java/us/nineworlds/serenity...
true
true
public View getView(int position, View convertView, ViewGroup parent) { View galleryCellView = context.getLayoutInflater().inflate(R.layout.poster_tvshow_indicator_view, null); AbstractSeriesContentInfo pi = seasonList.get(position); TVShowImageView mpiv = (TVShowImageView) galleryCellView.findViewById(R.id....
public View getView(int position, View convertView, ViewGroup parent) { View galleryCellView = context.getLayoutInflater().inflate(R.layout.poster_tvshow_indicator_view, null); AbstractSeriesContentInfo pi = seasonList.get(position); TVShowImageView mpiv = (TVShowImageView) galleryCellView.findViewById(R.id....
diff --git a/src/jogl/classes/jogamp/opengl/x11/glx/X11ExternalGLXContext.java b/src/jogl/classes/jogamp/opengl/x11/glx/X11ExternalGLXContext.java index c488fe5cf..39032117c 100644 --- a/src/jogl/classes/jogamp/opengl/x11/glx/X11ExternalGLXContext.java +++ b/src/jogl/classes/jogamp/opengl/x11/glx/X11ExternalGLXContext....
true
true
protected static X11ExternalGLXContext create(GLDrawableFactory factory, GLProfile glp) { long ctx = GLX.glXGetCurrentContext(); if (ctx == 0) { throw new GLException("Error: current context null"); } long display = GLX.glXGetCurrentDisplay(); if (display == 0) { throw new GLException(...
protected static X11ExternalGLXContext create(GLDrawableFactory factory, GLProfile glp) { long ctx = GLX.glXGetCurrentContext(); if (ctx == 0) { throw new GLException("Error: current context null"); } long display = GLX.glXGetCurrentDisplay(); if (display == 0) { throw new GLException(...
diff --git a/tests/src/org/jboss/test/messaging/core/plugin/postoffice/cluster/DefaultRouterTest.java b/tests/src/org/jboss/test/messaging/core/plugin/postoffice/cluster/DefaultRouterTest.java index f28b38b6c..640ffaea3 100644 --- a/tests/src/org/jboss/test/messaging/core/plugin/postoffice/cluster/DefaultRouterTest.jav...
false
true
protected void notLocal(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ...
protected void notLocal(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ...
diff --git a/src/TestDriver.java b/src/TestDriver.java index d32b337..fbd92c8 100644 --- a/src/TestDriver.java +++ b/src/TestDriver.java @@ -1,149 +1,150 @@ /*---------------------------------------------------------------------------*\ This software is released under a BSD license, adapted from http://opensourc...
true
true
void run() throws IOException { EditLine e = EditLine.init("test", new File("editrc")); e.setHistorySize(100); e.setHistoryUnique(true); e.setCompletionHandler(this); e.setMaxShownCompletions(POSSIBLE_COMPLETIONS.length / 4); File historyFile = new File("test.his...
void run() throws IOException { EditLine e = EditLine.init("test", new File("editrc")); e.setHistorySize(10); System.out.println("Max history=" + e.getHistorySize()); e.setHistoryUnique(true); e.setCompletionHandler(this); e.setMaxShownCompletions(POSSIBLE_COMPLET...
diff --git a/test/Reflection.java b/test/Reflection.java index 3afe5316..53e2bd1b 100644 --- a/test/Reflection.java +++ b/test/Reflection.java @@ -1,252 +1,252 @@ import java.lang.reflect.Field; import java.lang.reflect.Method; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java....
false
true
public static void main(String[] args) throws Exception { innerClasses(); annotations(); genericType(); Class system = Class.forName("java.lang.System"); Field out = system.getDeclaredField("out"); Class output = Class.forName("java.io.PrintStream"); Method println = output.getDeclaredMet...
public static void main(String[] args) throws Exception { innerClasses(); annotations(); genericType(); Class system = Class.forName("java.lang.System"); Field out = system.getDeclaredField("out"); Class output = Class.forName("java.io.PrintStream"); Method println = output.getDeclaredMet...
diff --git a/net/sourceforge/pinemup/logic/NoteIO.java b/net/sourceforge/pinemup/logic/NoteIO.java index 9f42370..927cbce 100755 --- a/net/sourceforge/pinemup/logic/NoteIO.java +++ b/net/sourceforge/pinemup/logic/NoteIO.java @@ -1,291 +1,291 @@ /* * pin 'em up * * Copyright (C) 2007 by Mario Koedding * * ...
false
true
public static CategoryList readCategoriesFromFile(UserSettings s) { CategoryList c = new CategoryList(); Category currentCategory = null; Note currentNote = null; boolean defaultNotAdded = true; try { InputStream in = new FileInputStream(s.getNotesFile()); XMLInputFact...
public static CategoryList readCategoriesFromFile(UserSettings s) { CategoryList c = new CategoryList(); Category currentCategory = null; Note currentNote = null; boolean defaultNotAdded = true; try { InputStream in = new FileInputStream(s.getNotesFile()); XMLInputFact...
diff --git a/src/main/java/ru/altruix/commons/impl/translationtester/DefaultTranslationTesterFactory.java b/src/main/java/ru/altruix/commons/impl/translationtester/DefaultTranslationTesterFactory.java index 5979b2f..9f95123 100644 --- a/src/main/java/ru/altruix/commons/impl/translationtester/DefaultTranslationTesterFac...
true
true
public TranslationTester create() { return new DefaultTranslationTester(); }
public final TranslationTester create() { return new DefaultTranslationTester(); }
diff --git a/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/AbstractBackend.java b/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/AbstractBackend.java index 999f67bf9..42bcc7f43 100644 --- a/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/AbstractBackend.java +++ b/eclipse/pl...
true
true
public Object start(IApplicationContext context) throws Exception { Options options = new Options(); Option opt; // Required command line arguments opt = new Option("p", "project", true, "Project name"); opt.setRequired(true); options.addOption(opt); opt = new Option("o", "output", true, "Output folde...
public Object start(IApplicationContext context) throws Exception { Options options = new Options(); Option opt; // Required command line arguments opt = new Option("p", "project", true, "Project name"); opt.setRequired(true); options.addOption(opt); opt = new Option("o", "output", true, "Output folde...
diff --git a/src/main/java/org/basex/test/w3c/W3CTS.java b/src/main/java/org/basex/test/w3c/W3CTS.java index 528be4eb8..5c5fd8107 100644 --- a/src/main/java/org/basex/test/w3c/W3CTS.java +++ b/src/main/java/org/basex/test/w3c/W3CTS.java @@ -1,878 +1,878 @@ package org.basex.test.w3c; import static org.basex.core.Te...
true
true
private boolean parse(final Nodes root) throws Exception { final String pth = text("@FilePath", root); final String outname = text("@name", root); if(single != null && !outname.startsWith(single)) return true; Performance perf = new Performance(); if(verbose) Main.out("- " + outname); boolea...
private boolean parse(final Nodes root) throws Exception { final String pth = text("@FilePath", root); final String outname = text("@name", root); if(single != null && !outname.startsWith(single)) return true; Performance perf = new Performance(); if(verbose) Main.out("- " + outname); boolea...
diff --git a/src/org/gs/campusparty/Ghost.java b/src/org/gs/campusparty/Ghost.java index e1b9d30..bd552c0 100644 --- a/src/org/gs/campusparty/Ghost.java +++ b/src/org/gs/campusparty/Ghost.java @@ -1,35 +1,35 @@ package org.gs.campusparty; import android.graphics.Color; import android.graphics.drawable.ColorDrawabl...
false
true
public void step() { label.setText(Integer.toString(time)); String chiptext = ""; for(int i = 0; i < Field.C_COUNT; i++) { for(int j = 0; j < chips[i]; j++) { chiptext += Field.names[i]; } } if(chiptext.length() == 0) { time...
public void step() { String chiptext = ""; for(int i = 0; i < Field.C_COUNT; i++) { for(int j = 0; j < chips[i]; j++) { chiptext += Field.names[i]; } } if(chiptext.length() == 0) { time = -1; Field.getSingleton().kills +...
diff --git a/mcu/src/org/smbarbour/mcu/Main.java b/mcu/src/org/smbarbour/mcu/Main.java index 190be8a..acb3e43 100644 --- a/mcu/src/org/smbarbour/mcu/Main.java +++ b/mcu/src/org/smbarbour/mcu/Main.java @@ -1,33 +1,34 @@ package org.smbarbour.mcu; import java.awt.EventQueue; import javax.swing.UIManager; import j...
true
true
public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { UIManager.setLookAndFeel(info.getClassName()); ...
public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { System.setProperty("java.util.Arrays.useLegacyMergeSort", "true"); for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { ...
diff --git a/sky/org.kevoree.library.sky.lxc/src/main/java/org/kevoree/library/sky/lxc/WatchBackupsContainers.java b/sky/org.kevoree.library.sky.lxc/src/main/java/org/kevoree/library/sky/lxc/WatchBackupsContainers.java index ae88fea..fcfa2d8 100644 --- a/sky/org.kevoree.library.sky.lxc/src/main/java/org/kevoree/library...
true
true
public void run() { List<String> lxNodes = lxcManager.getBackupContainers(); Date today = new Date(); Log.debug("WatchBackupsContainers is starting"); for(String node : lxNodes){ File lxcnode = new File(backuppath+File.separatorChar+node); // days old ...
public void run() { List<String> lxNodes = lxcManager.getBackupContainers(); Date today = new Date(); Log.debug("WatchBackupsContainers is starting"); for(String node : lxNodes){ File lxcnode = new File(backuppath+File.separatorChar+node); lxcnode.mkdirs(); ...
diff --git a/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java b/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java index 144fe69a..ed3f88fb 100644 --- a/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java +++ b/...
true
true
public static void main(String[] args) throws Exception { DistanceMeasure measure = new ManhattanDistanceMeasure(); Path samples = new Path("samples"); Path output = new Path("output"); HadoopUtil.overwriteOutput(samples); HadoopUtil.overwriteOutput(output); RandomUtils.useTestSeed(); Dis...
public static void main(String[] args) throws Exception { DistanceMeasure measure = new ManhattanDistanceMeasure(); Path samples = new Path("samples"); Path output = new Path("output"); HadoopUtil.overwriteOutput(samples); HadoopUtil.overwriteOutput(output); RandomUtils.useTestSeed(); Dis...
diff --git a/public/java/src/org/broadinstitute/sting/gatk/walkers/indels/SomaticIndelDetectorWalker.java b/public/java/src/org/broadinstitute/sting/gatk/walkers/indels/SomaticIndelDetectorWalker.java index 7e8985e03..b2d30235a 100644 --- a/public/java/src/org/broadinstitute/sting/gatk/walkers/indels/SomaticIndelDetect...
true
true
public Integer map(ReferenceContext ref, SAMRecord read, ReadMetaDataTracker metaDataTracker) { // if ( read.getReadName().equals("428EFAAXX090610:2:36:1384:639#0") ) System.out.println("GOT READ"); if ( DEBUG ) { // System.out.println("DEBUG>> read at "+ read.getAli...
public Integer map(ReferenceContext ref, SAMRecord read, ReadMetaDataTracker metaDataTracker) { // if ( read.getReadName().equals("428EFAAXX090610:2:36:1384:639#0") ) System.out.println("GOT READ"); if ( DEBUG ) { // System.out.println("DEBUG>> read at "+ read.getAli...
diff --git a/src/com/android/phone/CallForwardEditPreference.java b/src/com/android/phone/CallForwardEditPreference.java index bd8dcb54..1301708d 100644 --- a/src/com/android/phone/CallForwardEditPreference.java +++ b/src/com/android/phone/CallForwardEditPreference.java @@ -1,199 +1,200 @@ package com.android.phone; ...
true
true
protected void onDialogClosed(boolean positiveResult) { super.onDialogClosed(positiveResult); if (DBG) Log.d(LOG_TAG, "mButtonClicked=" + mButtonClicked + ", positiveResult=" + positiveResult); if (this.mButtonClicked != DialogInterface.BUTTON_NEGATIVE) { int act...
protected void onDialogClosed(boolean positiveResult) { super.onDialogClosed(positiveResult); if (DBG) Log.d(LOG_TAG, "mButtonClicked=" + mButtonClicked + ", positiveResult=" + positiveResult); if (this.mButtonClicked != DialogInterface.BUTTON_NEGATIVE) { int act...
diff --git a/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/impl/components/StandardPropertiesEditionComponent.java b/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/impl/components/StandardPropertiesEditionComponent.java index 380a77521..973e72812 100644 --- a/plugins/org.eclip...
true
true
public void firePropertiesChanged(final IPropertiesEditionEvent event) { if (!isInitializing() && shouldProcess(event)) { Diagnostic valueDiagnostic = validateValue(event); if (valueDiagnostic.getSeverity() != Diagnostic.OK && valueDiagnostic instanceof BasicDiagnostic) propagateEvent(new PropertiesValidat...
public void firePropertiesChanged(final IPropertiesEditionEvent event) { if (!isInitializing() && shouldProcess(event)) { Diagnostic valueDiagnostic = validateValue(event); if (valueDiagnostic.getSeverity() != Diagnostic.OK && valueDiagnostic instanceof BasicDiagnostic) propagateEvent(new PropertiesValidat...
diff --git a/src/net/rptools/maptool/model/Token.java b/src/net/rptools/maptool/model/Token.java index 498eb6c1..4cf4eb12 100644 --- a/src/net/rptools/maptool/model/Token.java +++ b/src/net/rptools/maptool/model/Token.java @@ -1,864 +1,865 @@ /* The MIT License * * Copyright (c) 2005 David Rice, Trevor Croft * ...
true
true
public Token(Token token) { id = new GUID(); assetID = token.assetID; x = token.x; y = token.y; // These properties shouldn't be transferred, they are more transient and relate to token history, not to new tokens // lastX = token.lastX; // lastY = token.lastY; // lastPath = token.lastPath; sn...
public Token(Token token) { id = new GUID(); assetID = token.assetID; x = token.x; y = token.y; // These properties shouldn't be transferred, they are more transient and relate to token history, not to new tokens // lastX = token.lastX; // lastY = token.lastY; // lastPath = token.lastPath; sn...
diff --git a/test/web/org/openmrs/web/controller/user/UserFormControllerTest.java b/test/web/org/openmrs/web/controller/user/UserFormControllerTest.java index 52f4f54c..bef5287b 100644 --- a/test/web/org/openmrs/web/controller/user/UserFormControllerTest.java +++ b/test/web/org/openmrs/web/controller/user/UserFormContr...
true
true
public void handleSubmission_shouldWorkForAnExample() throws Exception { UserFormController controller = new UserFormController(); WebRequest request = new ServletWebRequest(new MockHttpServletRequest()); User user = controller.formBackingObject(request, null); user.addName(new PersonName("This"...
public void handleSubmission_shouldWorkForAnExample() throws Exception { UserFormController controller = new UserFormController(); WebRequest request = new ServletWebRequest(new MockHttpServletRequest()); User user = controller.formBackingObject(request, null); user.addName(new PersonName("This"...
diff --git a/jkit/java/stages/TypeChecking.java b/jkit/java/stages/TypeChecking.java index b9f329c..59f1c44 100644 --- a/jkit/java/stages/TypeChecking.java +++ b/jkit/java/stages/TypeChecking.java @@ -1,797 +1,799 @@ package jkit.java.stages; import java.util.*; import static jkit.compiler.SyntaxError.*; import...
true
true
protected void checkBinOp(Expr.BinOp e) { checkExpression(e.lhs()); checkExpression(e.rhs()); Type lhs_t = (Type) e.lhs().attribute(Type.class); Type rhs_t = (Type) e.rhs().attribute(Type.class); Type e_t = (Type) e.attribute(Type.class); SourceLocation loc = (SourceLocation) e.attribute(SourceLocat...
protected void checkBinOp(Expr.BinOp e) { checkExpression(e.lhs()); checkExpression(e.rhs()); Type lhs_t = (Type) e.lhs().attribute(Type.class); Type rhs_t = (Type) e.rhs().attribute(Type.class); Type e_t = (Type) e.attribute(Type.class); SourceLocation loc = (SourceLocation) e.attribute(SourceLocat...
diff --git a/src/main/java/com/stationmillenium/coverart/web/gwt/player/client/activities/PlayerActivity.java b/src/main/java/com/stationmillenium/coverart/web/gwt/player/client/activities/PlayerActivity.java index 0193bd3..8d91feb 100644 --- a/src/main/java/com/stationmillenium/coverart/web/gwt/player/client/activitie...
true
true
public void updatePlayer() { //load current song clientFactory.getService().getLastSong(new AsyncCallback<SongGWTDTO>() { @Override public void onSuccess(SongGWTDTO newSong) { if ((newSong != null) && (newSong.getArtist() != null) && (newSong.getTitle() != null)) { //if some song provided if (!newS...
public void updatePlayer() { //load current song clientFactory.getService().getLastSong(new AsyncCallback<SongGWTDTO>() { @Override public void onSuccess(SongGWTDTO newSong) { if ((newSong != null) && (newSong.getArtist() != null) && (newSong.getTitle() != null)) { //if some song provided if (!newS...
diff --git a/engine/src/test/jme3test/bullet/BombControl.java b/engine/src/test/jme3test/bullet/BombControl.java index 4438382b4..29d49c481 100644 --- a/engine/src/test/jme3test/bullet/BombControl.java +++ b/engine/src/test/jme3test/bullet/BombControl.java @@ -1,190 +1,189 @@ /* * To change this template, choose Too...
true
true
private void prepareEffect(AssetManager assetManager) { int COUNT_FACTOR = 1; float COUNT_FACTOR_F = 1f; effect = new ParticleEmitter("Flame", Type.Triangle, 32 * COUNT_FACTOR); effect.setSelectRandomImage(true); effect.setStartColor(new ColorRGBA(1f, 0.4f, 0.05f, (float) (1f...
private void prepareEffect(AssetManager assetManager) { int COUNT_FACTOR = 1; float COUNT_FACTOR_F = 1f; effect = new ParticleEmitter("Flame", Type.Triangle, 32 * COUNT_FACTOR); effect.setSelectRandomImage(true); effect.setStartColor(new ColorRGBA(1f, 0.4f, 0.05f, (float) (1f...
diff --git a/StevenDimDoors/mod_pocketDim/ticking/RiftRegenerator.java b/StevenDimDoors/mod_pocketDim/ticking/RiftRegenerator.java index 386c73b..aeaaf32 100644 --- a/StevenDimDoors/mod_pocketDim/ticking/RiftRegenerator.java +++ b/StevenDimDoors/mod_pocketDim/ticking/RiftRegenerator.java @@ -1,72 +1,75 @@ package Stev...
true
true
private void regenerate() { try { //Regenerate rifts that have been replaced (not permanently removed) by players int i = 0; while (i < 15 && FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER) { i++; LinkData link; //actually gets the random rift based on the size of the lis...
private void regenerate() { try { //Regenerate rifts that have been replaced (not permanently removed) by players int i = 0; while (i < 15 && FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER) { i++; LinkData link; //actually gets the random rift based on the size of the lis...
diff --git a/src/kpsmart/KPSmart.java b/src/kpsmart/KPSmart.java index 91990fe..d0310d9 100644 --- a/src/kpsmart/KPSmart.java +++ b/src/kpsmart/KPSmart.java @@ -1,254 +1,256 @@ package kpsmart; import java.awt.BorderLayout; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.event.ActionEvent; ...
false
true
public void actionPerformed(ActionEvent e) { System.out.println(e.getActionCommand()); //FILE OPTIONS if ("Save".equals(e.getActionCommand())) { kBackend.createXMLRecord(); return; } if ("Exit".equals(e.getActionCommand())) { System.exit(0); } //ACTION OPTIONS if ("Send Mail".equals...
public void actionPerformed(ActionEvent e) { System.out.println(e.getActionCommand()); //FILE OPTIONS if ("Save".equals(e.getActionCommand())) { kBackend.createXMLRecord(); return; } if ("Exit".equals(e.getActionCommand())) { System.exit(0); } //ACTION OPTIONS if ("Send Mail".equals...
diff --git a/it.unibg.robotics.resolutionmodel.ros.commands.resolution/src/it/unibg/robotics/resolutionmodel/ros/commands/resolution/expressions/ROSResolutionModelTypeTester.java b/it.unibg.robotics.resolutionmodel.ros.commands.resolution/src/it/unibg/robotics/resolutionmodel/ros/commands/resolution/expressions/ROSReso...
true
true
public boolean test(Object receiver, String property, Object[] args, Object expectedValue) { if (property.equals("is_a_ROS_resolution_model")) { ResolutionModel model = (ResolutionModel)receiver; for(RMResolutionElement resElem : model.getResolutionElements()){ if(resElem.getRequiredComp...
public boolean test(Object receiver, String property, Object[] args, Object expectedValue) { if (property.equals("is_a_ROS_resolution_model")) { ResolutionModel model = (ResolutionModel)receiver; System.out.println(model); for(RMResolutionElement resElem : model.getResolutionElements()){ ...
diff --git a/ui/web/IdentityPage.java b/ui/web/IdentityPage.java index 3cd4e14f..163bd918 100644 --- a/ui/web/IdentityPage.java +++ b/ui/web/IdentityPage.java @@ -1,132 +1,132 @@ /* * freenet - IdentityPage.java * Copyright © 2008 David Roden * * This program is free software; you can redistribute it and/or mo...
false
true
public void make() { makeURIBox(); makeServicesBox(); HTMLNode trusteeTrustsNode = getContentBox("Identities that “" + identity.getNickName() + "” trusts"); HTMLNode trustersTable = trusteeTrustsNode.addChild("table"); HTMLNode trustersTableHeader = trustersTable.addChild("tr"); trustersTableHeader.add...
public void make() { makeURIBox(); makeServicesBox(); HTMLNode trusteeTrustsNode = getContentBox("Identities that '" + identity.getNickName() + "' trusts"); HTMLNode trustersTable = trusteeTrustsNode.addChild("table"); HTMLNode trustersTableHeader = trustersTable.addChild("tr"); trustersTableHeader.add...
diff --git a/services/src/main/java/org/keycloak/services/resources/TokenService.java b/services/src/main/java/org/keycloak/services/resources/TokenService.java index d3a262e5db..580473b7b6 100755 --- a/services/src/main/java/org/keycloak/services/resources/TokenService.java +++ b/services/src/main/java/org/keycloak/se...
true
true
public Response accessCodeToToken(final MultivaluedMap<String, String> formData) { logger.debug("accessRequest <---"); if (!realm.isEnabled()) { throw new NotAuthorizedException("Realm not enabled"); } String code = formData.getFirst("code"); if (code == null) { ...
public Response accessCodeToToken(final MultivaluedMap<String, String> formData) { logger.debug("accessRequest <---"); if (!realm.isEnabled()) { throw new NotAuthorizedException("Realm not enabled"); } String code = formData.getFirst("code"); if (code == null) { ...
diff --git a/src/commons/org/codehaus/groovy/grails/commons/spring/SpringConfig.java b/src/commons/org/codehaus/groovy/grails/commons/spring/SpringConfig.java index e6e5fdcb2..8c8f6b945 100644 --- a/src/commons/org/codehaus/groovy/grails/commons/spring/SpringConfig.java +++ b/src/commons/org/codehaus/groovy/grails/comm...
true
true
private void populateControllerReferences(Collection beanReferences, Map urlMappings) { Bean simpleGrailsController = SpringConfigUtils.createSingletonBean(SimpleGrailsController.class); simpleGrailsController.setAutowire("byType"); beanReferences.add(SpringConfigUtils.createBeanReference(SimpleGrailsController...
private void populateControllerReferences(Collection beanReferences, Map urlMappings) { Bean simpleGrailsController = SpringConfigUtils.createSingletonBean(SimpleGrailsController.class); simpleGrailsController.setAutowire("byType"); beanReferences.add(SpringConfigUtils.createBeanReference(SimpleGrailsController...