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/uk/ac/gla/dcs/tp3/w/league/Division.java b/src/uk/ac/gla/dcs/tp3/w/league/Division.java index 9f0f04f..fd607c7 100644 --- a/src/uk/ac/gla/dcs/tp3/w/league/Division.java +++ b/src/uk/ac/gla/dcs/tp3/w/league/Division.java @@ -1,179 +1,179 @@ package uk.ac.gla.dcs.tp3.w.league; import java.util.ArrayL...
true
true
public void printWeb() { Team[] t = teamsToArray(); // Sorts teams into non-descending order by wins and games remaining for (int i = 0; i < t.length; i++) { for (int j = i; j < t.length; j++) { if (t[i].getPoints() - (t[j].getPoints()) < 0) { Team temp = t[i]; t[i] = t[j]; t[j] = temp; ...
public void printWeb() { Team[] t = teamsToArray(); // Sorts teams into non-descending order by wins for (int i = 0; i < t.length; i++) { for (int j = i; j < t.length; j++) { if (t[i].getPoints() - (t[j].getPoints()) < 0) { Team temp = t[i]; t[i] = t[j]; t[j] = temp; } } } for (T...
diff --git a/deus/core/puddle/src/test/java/deus/core/soul/counter/impl/ContributionCounterImplTest.java b/deus/core/puddle/src/test/java/deus/core/soul/counter/impl/ContributionCounterImplTest.java index 630f9ad6..f4d62f7e 100755 --- a/deus/core/puddle/src/test/java/deus/core/soul/counter/impl/ContributionCounterImplT...
true
true
public void testContributeWithBadContributorId() { try { counter.contribute(digitalCard, new UserUrl("bob", "deus.org")); fail("contribution with different contributor id than in the DC is possible"); } catch(RuntimeException e) { assertEquals("ID of the contributor does not match the id in the digital ...
public void testContributeWithBadContributorId() { try { counter.contributeOther(digitalCard, new UserUrl("bob", "deus.org")); fail("contribution with different contributor id than in the DC is possible"); } catch(RuntimeException e) { assertEquals("ID of the contributor does not match the id in the dig...
diff --git a/tests/org/jfree/chart/renderer/xy/junit/RendererXYPackageTests.java b/tests/org/jfree/chart/renderer/xy/junit/RendererXYPackageTests.java index 6c4cd79..54f364d 100644 --- a/tests/org/jfree/chart/renderer/xy/junit/RendererXYPackageTests.java +++ b/tests/org/jfree/chart/renderer/xy/junit/RendererXYPackageTe...
true
true
public static Test suite() { TestSuite suite = new TestSuite("org.jfree.chart.renderer.xy"); suite.addTestSuite(AbstractXYItemRendererTests.class); suite.addTestSuite(CandlestickRendererTests.class); suite.addTestSuite(ClusteredXYBarRendererTests.class); suite.addTestSuite(De...
public static Test suite() { TestSuite suite = new TestSuite("org.jfree.chart.renderer.xy"); suite.addTestSuite(AbstractXYItemRendererTests.class); suite.addTestSuite(CandlestickRendererTests.class); suite.addTestSuite(ClusteredXYBarRendererTests.class); suite.addTestSuite(De...
diff --git a/src/org/bh/gui/swing/BHComboBox.java b/src/org/bh/gui/swing/BHComboBox.java index c4946565..d0897806 100644 --- a/src/org/bh/gui/swing/BHComboBox.java +++ b/src/org/bh/gui/swing/BHComboBox.java @@ -1,147 +1,149 @@ package org.bh.gui.swing; import java.awt.event.ActionEvent; import java.awt.event.Actio...
false
true
public void setValue(IValue value) { if (value == null) return; for (int i = 0; i < this.getItemCount(); i++) { Item item = (Item) this.getItemAt(i); if (value.equals(item.getValue())) { this.setSelectedIndex(i); return; } } }
public void setValue(IValue value) { if (value == null) { this.setSelectedIndex(0); return; } for (int i = 0; i < this.getItemCount(); i++) { Item item = (Item) this.getItemAt(i); if (value.equals(item.getValue())) { this.setSelectedIndex(i); return; } } }
diff --git a/acl/src/test/java/org/springframework/security/acls/AclPermissionEvaluatorTests.java b/acl/src/test/java/org/springframework/security/acls/AclPermissionEvaluatorTests.java index 196779ec5..9969f6140 100644 --- a/acl/src/test/java/org/springframework/security/acls/AclPermissionEvaluatorTests.java +++ b/acl/...
true
true
public void hasPermissionReturnsTrueIfAclGrantsPermission() throws Exception { AclPermissionEvaluator pe = new AclPermissionEvaluator(service); final Acl acl = jmock.mock(Acl.class); pe.setObjectIdentityRetrievalStrategy(oidStrategy); pe.setSidRetrievalStrategy(sidStrategy); ...
public void hasPermissionReturnsTrueIfAclGrantsPermission() throws Exception { AclPermissionEvaluator pe = new AclPermissionEvaluator(service); final Acl acl = jmock.mock(Acl.class); pe.setObjectIdentityRetrievalStrategy(oidStrategy); pe.setSidRetrievalStrategy(sidStrategy); ...
diff --git a/addon-tostring/src/main/java/org/springframework/roo/addon/tostring/ToStringMetadata.java b/addon-tostring/src/main/java/org/springframework/roo/addon/tostring/ToStringMetadata.java index da5c0fae2..5b7dfaf82 100644 --- a/addon-tostring/src/main/java/org/springframework/roo/addon/tostring/ToStringMetadata....
true
true
public MethodMetadata getToStringMethod() { // Compute the relevant toString method name JavaSymbolName methodName = new JavaSymbolName("toString"); if (!this.toStringMethod.equals("")) { methodName = new JavaSymbolName(this.toStringMethod); } // See if the type itself declared the method MethodMetadat...
public MethodMetadata getToStringMethod() { // Compute the relevant toString method name JavaSymbolName methodName = new JavaSymbolName("toString"); if (!this.toStringMethod.equals("")) { methodName = new JavaSymbolName(this.toStringMethod); } // See if the type itself declared the method MethodMetadat...
diff --git a/core/org.eclipse.ptp.ui/src/org/eclipse/ptp/internal/ui/MachineManager.java b/core/org.eclipse.ptp.ui/src/org/eclipse/ptp/internal/ui/MachineManager.java index 9cd09c774..c6505f550 100644 --- a/core/org.eclipse.ptp.ui/src/org/eclipse/ptp/internal/ui/MachineManager.java +++ b/core/org.eclipse.ptp.ui/src/org...
true
true
public int getNodeStatus(IPNode node) { if (node != null) { String nodeState = (String)node.getAttrib(AttributeConstants.ATTRIB_NODE_STATE); if(nodeState == null) { System.out.println("***** NODE STATE NULL! MAJOR ERROR!"); } if (nodeState.equals("up")) { if (node.size() > 0) return (node.i...
public int getNodeStatus(IPNode node) { if (node != null) { String nodeState = (String)node.getAttrib(AttributeConstants.ATTRIB_NODE_STATE); if(nodeState == null) { System.out.println("null node state!"); return IPTPUIConstants.NODE_UNKNOWN; } if (nodeState.equals("up")) { if (node.size() > 0...
diff --git a/src/edu/cmu/cs/diamond/pathfind/main/PathFindSQL.java b/src/edu/cmu/cs/diamond/pathfind/main/PathFindSQL.java index 5a97031..f0fc3e1 100644 --- a/src/edu/cmu/cs/diamond/pathfind/main/PathFindSQL.java +++ b/src/edu/cmu/cs/diamond/pathfind/main/PathFindSQL.java @@ -1,101 +1,101 @@ /* * PathFind -- a Diam...
true
true
public static void main(String[] args) throws ClassNotFoundException, SQLException { if (args.length != 9 && args.length != 10) { System.out .println("usage: " + PathFindDjango.class.getName() + " ij_dir extr...
public static void main(String[] args) throws ClassNotFoundException, SQLException { if (args.length != 9 && args.length != 10) { System.out .println("usage: " + PathFindDjango.class.getName() + " ij_dir extr...
diff --git a/src/haveric/stackableItems/SIPlayerListener.java b/src/haveric/stackableItems/SIPlayerListener.java index e42600e..c46167c 100644 --- a/src/haveric/stackableItems/SIPlayerListener.java +++ b/src/haveric/stackableItems/SIPlayerListener.java @@ -1,1281 +1,1284 @@ package haveric.stackableItems; import ja...
false
true
public void inventoryClick(InventoryClickEvent event) { if (event.isCancelled()) { return; } event.getInventory().setMaxStackSize(SIItems.ITEM_NEW_MAX); ItemStack cursor = event.getCursor(); ItemStack clicked = event.getCurrentItem(); SlotType slotType ...
public void inventoryClick(InventoryClickEvent event) { if (event.isCancelled()) { return; } event.getInventory().setMaxStackSize(SIItems.ITEM_NEW_MAX); ItemStack cursor = event.getCursor(); ItemStack clicked = event.getCurrentItem(); SlotType slotType ...
diff --git a/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISDoorListener.java b/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISDoorListener.java index c424e5b33..aa60b44bf 100644 --- a/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISDoorListener.java +++ b/src/main/java/me/eccentric_nz/TARDIS/listeners...
true
true
public void onDoorInteract(PlayerInteractEvent event) { QueryFactory qf = new QueryFactory(plugin); final Player player = event.getPlayer(); final String playerNameStr = player.getName(); Block block = event.getClickedBlock(); if (block != null) { Material blockTy...
public void onDoorInteract(PlayerInteractEvent event) { QueryFactory qf = new QueryFactory(plugin); final Player player = event.getPlayer(); final String playerNameStr = player.getName(); Block block = event.getClickedBlock(); if (block != null) { Material blockTy...
diff --git a/src/main/java/de/cismet/cids/custom/objecteditors/wunda_blau/NivellementPunktEditor.java b/src/main/java/de/cismet/cids/custom/objecteditors/wunda_blau/NivellementPunktEditor.java index c41b60d0..b1752846 100644 --- a/src/main/java/de/cismet/cids/custom/objecteditors/wunda_blau/NivellementPunktEditor.java ...
true
true
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; bindingGroup = new org.jdesktop.beansbinding.BindingGroup(); pnlTitle = new javax.swing.JPanel(); lblTitle = new javax.swing.JLabel(); bgrControls = new javax.swing.ButtonGroup(); strFoot...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; bindingGroup = new org.jdesktop.beansbinding.BindingGroup(); pnlTitle = new javax.swing.JPanel(); lblTitle = new javax.swing.JLabel(); bgrControls = new javax.swing.ButtonGroup(); strFoot...
diff --git a/WordFinder/src/ch/unibe/scg/team3/localDatabase/SavedGamesHandler.java b/WordFinder/src/ch/unibe/scg/team3/localDatabase/SavedGamesHandler.java index fa0a008..51692b5 100644 --- a/WordFinder/src/ch/unibe/scg/team3/localDatabase/SavedGamesHandler.java +++ b/WordFinder/src/ch/unibe/scg/team3/localDatabase/Sa...
true
true
public ArrayList<SavedGame> getSavedGames() { ArrayList<SavedGame> list = new ArrayList<SavedGame>(); SQLiteDatabase db = helper.getReadableDatabase(); Cursor c = db.rawQuery("SELECT * FROM Games", null); if (c != null && c.getCount() != 0) { while (c.moveToNext()) { SavedGame game = new SavedGame(...
public ArrayList<SavedGame> getSavedGames() { ArrayList<SavedGame> list = new ArrayList<SavedGame>(); SQLiteDatabase db = helper.getReadableDatabase(); Cursor c = db.rawQuery("SELECT * FROM Games", null); if (c != null && c.getCount() != 0) { while (c.moveToNext()) { SavedGame game = new SavedGame(...
diff --git a/rim/src/com/google/zxing/client/rim/ZXingLMMainScreen.java b/rim/src/com/google/zxing/client/rim/ZXingLMMainScreen.java index 1e8a2f57..7c59ac2d 100644 --- a/rim/src/com/google/zxing/client/rim/ZXingLMMainScreen.java +++ b/rim/src/com/google/zxing/client/rim/ZXingLMMainScreen.java @@ -1,331 +1,332 @@ /* ...
false
true
public void run() { FileConnection file = null; InputStream is = null; Image capturedImage = null; try { file = (FileConnection) Connector.open("file://" + imagePath, Connector.READ_WRITE); is = file.openInputStream(); capturedImage = Image.createImage(is); } ca...
public void run() { FileConnection file = null; InputStream is = null; Image capturedImage = null; try { file = (FileConnection) Connector.open("file://" + imagePath, Connector.READ_WRITE); is = file.openInputStream(); capturedImage = Image.createImage(is); } ca...
diff --git a/fr.imag.exschema/src/fr/imag/exschema/model/Attribute.java b/fr.imag.exschema/src/fr/imag/exschema/model/Attribute.java index d30153b..eb914c5 100644 --- a/fr.imag.exschema/src/fr/imag/exschema/model/Attribute.java +++ b/fr.imag.exschema/src/fr/imag/exschema/model/Attribute.java @@ -1,66 +1,66 @@ package ...
true
true
public String getDotNodes(final String parent) { String identifier; StringBuilder returnValue; identifier = Long.toString(System.nanoTime()); returnValue = new StringBuilder(identifier + " [label=\"Attribute\\n" + name + " : " + value + "\"]\n"); if (parent != null) { ...
public String getDotNodes(final String parent) { String identifier; StringBuilder returnValue; identifier = Long.toString(System.nanoTime()); returnValue = new StringBuilder(identifier + " [label=\"Attribute \\n " + name + " : " + value + "\"]\n"); if (parent != null) { ...
diff --git a/src/main/java/org/fitfest/core/BackgroundColorCommandProcessor.java b/src/main/java/org/fitfest/core/BackgroundColorCommandProcessor.java index bfd3257..2688fdb 100644 --- a/src/main/java/org/fitfest/core/BackgroundColorCommandProcessor.java +++ b/src/main/java/org/fitfest/core/BackgroundColorCommandProces...
true
true
public void handleRow( FrameFixture window, RowHandler rowHandler ) { ComponentFinder finder = window.robot.finder(); ComponentFixture<Component> componentFixture = new ComponentFixture<Component>(window.robot, finder.findByName( rowHandler.getText( 1 ) )) { }; ...
public void handleRow( FrameFixture window, RowHandler rowHandler ) { ComponentFinder finder = window.robot.finder(); ComponentFixture<Component> componentFixture = new ComponentFixture<Component>(window.robot, finder.findByName(window.component(), rowHandler.getText( 1 ) )) ...
diff --git a/src/test/java/de/cosmocode/palava/store/FileSystemStoreTest.java b/src/test/java/de/cosmocode/palava/store/FileSystemStoreTest.java index 53fd1e8..862081e 100644 --- a/src/test/java/de/cosmocode/palava/store/FileSystemStoreTest.java +++ b/src/test/java/de/cosmocode/palava/store/FileSystemStoreTest.java @@ ...
true
true
public void keepNonEmptyDirectories() throws IOException { final Store unit = unit(); final InputStream stream = getClass().getClassLoader().getResourceAsStream("willi.png"); final String identifier = unit.create(stream); stream.close(); final File target = new File(directory...
public void keepNonEmptyDirectories() throws IOException { final Store unit = unit(); final InputStream stream = getClass().getClassLoader().getResourceAsStream("willi.png"); final String identifier = unit.create(stream); stream.close(); final File target = new File(directory...
diff --git a/autotools/org.eclipse.linuxtools.cdt.autotools/src/org/eclipse/linuxtools/cdt/autotools/internal/ui/HTMLTextPresenter.java b/autotools/org.eclipse.linuxtools.cdt.autotools/src/org/eclipse/linuxtools/cdt/autotools/internal/ui/HTMLTextPresenter.java index e85ef377b..76711813d 100644 --- a/autotools/org.eclip...
true
true
public String updatePresentation(Display display, String hoverInfo, TextPresentation presentation, int maxWidth, int maxHeight) { if (hoverInfo == null) return null; GC gc= new GC(display); try { StringBuffer buffer= new StringBuffer(); int maxNumberOfLines= Math.round(maxHeight / gc.getFontM...
public String updatePresentation(Display display, String hoverInfo, TextPresentation presentation, int maxWidth, int maxHeight) { if (hoverInfo == null) return null; GC gc= new GC(display); try { StringBuffer buffer= new StringBuffer(); int maxNumberOfLines= Math.round(maxHeight / gc.getFontM...
diff --git a/src/minecraft/assemblyline/common/imprinter/TileEntityImprinter.java b/src/minecraft/assemblyline/common/imprinter/TileEntityImprinter.java index 944b453b..16b58d6e 100644 --- a/src/minecraft/assemblyline/common/imprinter/TileEntityImprinter.java +++ b/src/minecraft/assemblyline/common/imprinter/TileEntity...
false
true
public void onPickUpFromResult(EntityPlayer entityPlayer, ItemStack itemStack) { if (itemStack != null) { //System.out.println("PickResult:" + worldObj.isRemote + " managing item " + itemStack.toString()); if (this.isImprinting) { this.imprinterMatrix[0] = null; } else { /** * Base...
public void onPickUpFromResult(EntityPlayer entityPlayer, ItemStack itemStack) { if (itemStack != null) { //System.out.println("PickResult:" + worldObj.isRemote + " managing item " + itemStack.toString()); if (this.isImprinting) { this.imprinterMatrix[0] = null; } else { /** * Base...
diff --git a/src/edu/cuny/qc/speech/AuToBI/AuToBITrainer.java b/src/edu/cuny/qc/speech/AuToBI/AuToBITrainer.java index 36cb546..ebfe9a8 100644 --- a/src/edu/cuny/qc/speech/AuToBI/AuToBITrainer.java +++ b/src/edu/cuny/qc/speech/AuToBI/AuToBITrainer.java @@ -1,146 +1,146 @@ /* AuToBITrainer.java Copyright (c) 20...
true
true
public static void main(String[] args) { AuToBI autobi = new AuToBI(); autobi.init(args); List<FormattedFile> filenames; try { filenames = AuToBIReaderUtils.globFormattedFiles(autobi.getParameter("training_filenames")); } catch (AuToBIException e) { try { filenames = AuToBIRea...
public static void main(String[] args) { AuToBI autobi = new AuToBI(); autobi.init(args); List<FormattedFile> filenames; try { filenames = AuToBIReaderUtils.globFormattedFiles(autobi.getParameter("training_filenames")); } catch (AuToBIException e) { try { filenames = AuToBIRea...
diff --git a/src/main/java/it/antreem/birretta/service/util/BadgeFinder.java b/src/main/java/it/antreem/birretta/service/util/BadgeFinder.java index db8cd98..cf239be 100644 --- a/src/main/java/it/antreem/birretta/service/util/BadgeFinder.java +++ b/src/main/java/it/antreem/birretta/service/util/BadgeFinder.java @@ -1,3...
false
true
public List<Badge> checkNewBadge(User user) { ArrayList<Badge> list= new ArrayList<Badge>(); List<Integer> oldBadges = user.getBadges(); List<Integer> newBadges = new ArrayList<Integer>(); newBadges.addAll(oldBadges); List<Drink> myDrinks = DaoFactory.getInstance().getDri...
public List<Badge> checkNewBadge(User user) { ArrayList<Badge> list= new ArrayList<Badge>(); List<Integer> oldBadges = user.getBadges(); List<Integer> newBadges = new ArrayList<Integer>(); newBadges.addAll(oldBadges); List<Drink> myDrinks = DaoFactory.getInstance().getDri...
diff --git a/src/com/cole2sworld/dragonlist/AuthManager.java b/src/com/cole2sworld/dragonlist/AuthManager.java index 0b72033..c021509 100644 --- a/src/com/cole2sworld/dragonlist/AuthManager.java +++ b/src/com/cole2sworld/dragonlist/AuthManager.java @@ -1,61 +1,61 @@ package com.cole2sworld.dragonlist; import java.u...
true
true
public static void auth(Player player, String password) throws IncorrectPasswordException, PasswordNotSetException { password = Util.computeHash(password); String correctPass = WhitelistManager.getHashedPassword(player.getName()); if (correctPass == null) { throw new PasswordNotSetException(); } if (corre...
public static void auth(Player player, String password) throws IncorrectPasswordException, PasswordNotSetException { password = Util.computeHash(password); String correctPass = WhitelistManager.getHashedPassword(player.getName()); if (correctPass == null || correctPass == WhitelistManager.UNSET_MESSAGE) { thr...
diff --git a/src/com/redhat/ceylon/compiler/java/codegen/ExpressionTransformer.java b/src/com/redhat/ceylon/compiler/java/codegen/ExpressionTransformer.java index 4636c93db..5d7597977 100755 --- a/src/com/redhat/ceylon/compiler/java/codegen/ExpressionTransformer.java +++ b/src/com/redhat/ceylon/compiler/java/codegen/Ex...
false
true
private JCExpression transformMemberExpression(Tree.StaticMemberOrTypeExpression expr, JCExpression primaryExpr, TermTransformer transformer) { JCExpression result = null; // do not throw, an error will already have been reported Declaration decl = expr.getDeclaration(); if (decl ==...
private JCExpression transformMemberExpression(Tree.StaticMemberOrTypeExpression expr, JCExpression primaryExpr, TermTransformer transformer) { JCExpression result = null; // do not throw, an error will already have been reported Declaration decl = expr.getDeclaration(); if (decl ==...
diff --git a/management/src/main/java/aic12/project3/service/app/App.java b/management/src/main/java/aic12/project3/service/app/App.java index d0c0084..ec57bb4 100644 --- a/management/src/main/java/aic12/project3/service/app/App.java +++ b/management/src/main/java/aic12/project3/service/app/App.java @@ -1,16 +1,16 @@ ...
true
true
public static void main(String[] args) { ApplicationContext ctx = new GenericXmlApplicationContext("aic12/service/app-config.xml"); RequestAnalysis ra = ctx.getBean(RequestAnalysis.class); System.out.println(ra.getRequestQueueReady().some()); }
public static void main(String[] args) { ApplicationContext ctx = new GenericXmlApplicationContext("aic12/service/app-config.xml"); RequestAnalysis ra = (RequestAnalysis) ctx.getBean("requestAnalysis"); System.out.println(ra.getRequestQueueReady().some()); }
diff --git a/contrib/src/main/java/com/datatorrent/contrib/redis/RedisOutputOperator.java b/contrib/src/main/java/com/datatorrent/contrib/redis/RedisOutputOperator.java index ba07a46f4..0a8d89301 100644 --- a/contrib/src/main/java/com/datatorrent/contrib/redis/RedisOutputOperator.java +++ b/contrib/src/main/java/com/da...
true
true
public Collection<Partition<RedisOutputOperator<K,V>>> definePartitions(Collection<Partition<RedisOutputOperator<K,V>>> partitions, int incrementalCapacity) { Collection c = partitions; Collection<Partition<RedisOutputOperator<K, V>>> operatorPartitions = c; Partition<RedisOutputOperator<K, V>> template...
public Collection<Partition<RedisOutputOperator<K,V>>> definePartitions(Collection<Partition<RedisOutputOperator<K,V>>> partitions, int incrementalCapacity) { Collection c = partitions; Collection<Partition<RedisOutputOperator<K, V>>> operatorPartitions = c; Partition<RedisOutputOperator<K, V>> template...
diff --git a/src/plugins/WoT/WoT.java b/src/plugins/WoT/WoT.java index 9787df4d..b3a5223f 100644 --- a/src/plugins/WoT/WoT.java +++ b/src/plugins/WoT/WoT.java @@ -1,2538 +1,2539 @@ /* This code is part of WoT, a plugin for Freenet. It is distributed * under the GNU General Public License, version 2 (or at your opti...
true
true
private synchronized void updateScoresWithoutCommit(final Trust oldTrust, final Trust newTrust) { final boolean trustWasCreated = (oldTrust == null); final boolean trustWasDeleted = (newTrust == null); final boolean trustWasModified = !trustWasCreated && !trustWasDeleted; if(trustWasCreated && trustWasDelet...
private synchronized void updateScoresWithoutCommit(final Trust oldTrust, final Trust newTrust) { final boolean trustWasCreated = (oldTrust == null); final boolean trustWasDeleted = (newTrust == null); final boolean trustWasModified = !trustWasCreated && !trustWasDeleted; if(trustWasCreated && trustWasDelet...
diff --git a/src/main/java/org/creditsms/plugins/paymentview/ui/handler/tabincomingpayments/IncomingPaymentsTabHandler.java b/src/main/java/org/creditsms/plugins/paymentview/ui/handler/tabincomingpayments/IncomingPaymentsTabHandler.java index 6626df56..0497f9ac 100644 --- a/src/main/java/org/creditsms/plugins/paymentvi...
false
true
private String replaceFormats(IncomingPayment incomingPayment, String message) { String formed_message = ""; FormatterMarkerType[] formatEnums = FormatterMarkerType.values(); final Target tgt = targetDao.getActiveTargetByAccount( getAccount(incomingPayment.getPhoneNumber()).getAccountNumber() ); if (tg...
private String replaceFormats(IncomingPayment incomingPayment, String message) { String formed_message = ""; FormatterMarkerType[] formatEnums = FormatterMarkerType.values(); final Target tgt = targetDao.getActiveTargetByAccount( getAccount(incomingPayment.getPhoneNumber()).getAccountNumber() ); if (tg...
diff --git a/src/org/drftpd/plugins/SiteBot.java b/src/org/drftpd/plugins/SiteBot.java index 4c76e432..3a3b326a 100644 --- a/src/org/drftpd/plugins/SiteBot.java +++ b/src/org/drftpd/plugins/SiteBot.java @@ -1,1676 +1,1677 @@ /* * This file is part of DrFTPD, Distributed FTP Daemon. * * DrFTPD is free software; y...
true
true
private void actionPerformedDirectorySTOR(TransferEvent direvent) throws FormatterException { ReplacerEnvironment env = new ReplacerEnvironment(GLOBAL_ENV); LinkedRemoteFile dir; try { dir = direvent.getDirectory().getParentFile(); } catch (FileNotFoundException...
private void actionPerformedDirectorySTOR(TransferEvent direvent) throws FormatterException { ReplacerEnvironment env = new ReplacerEnvironment(GLOBAL_ENV); LinkedRemoteFile dir; try { dir = direvent.getDirectory().getParentFile(); } catch (FileNotFoundException...
diff --git a/src/com/android/contacts/PhoneCallDetailsHelper.java b/src/com/android/contacts/PhoneCallDetailsHelper.java index e970fcc84..e79bdce24 100644 --- a/src/com/android/contacts/PhoneCallDetailsHelper.java +++ b/src/com/android/contacts/PhoneCallDetailsHelper.java @@ -1,193 +1,194 @@ /* * Copyright (C) 2011 ...
true
true
public void setPhoneCallDetails(PhoneCallDetailsViews views, PhoneCallDetails details, boolean isHighlighted) { // Display up to a given number of icons. views.callTypeIcons.clear(); int count = details.callTypes.length; for (int index = 0; index < count && index < MAX_CA...
public void setPhoneCallDetails(PhoneCallDetailsViews views, PhoneCallDetails details, boolean isHighlighted) { // Display up to a given number of icons. views.callTypeIcons.clear(); int count = details.callTypes.length; for (int index = 0; index < count && index < MAX_CA...
diff --git a/src/android/src/pro/trousev/cleer/android/service/PlayerAndroid.java b/src/android/src/pro/trousev/cleer/android/service/PlayerAndroid.java index 924b508..59f5931 100644 --- a/src/android/src/pro/trousev/cleer/android/service/PlayerAndroid.java +++ b/src/android/src/pro/trousev/cleer/android/service/Player...
false
true
public void play() { if ((currentStatus != Status.Stopped) && (currentStatus != Status.Paused)) return; if (prepared) { mediaPlayer.start(); currentStatus = Status.Playing; } else { currentStatus = Status.Processing; //mediaPlayer.prepareAsync(); try { mediaPlayer.prepare(); } catch ...
public void play() { if ((currentStatus != Status.Stopped) && (currentStatus != Status.Paused)) return; if (prepared) { mediaPlayer.start(); currentStatus = Status.Playing; } else { currentStatus = Status.Processing; //mediaPlayer.prepareAsync(); try { mediaPlayer.prepare(); mediaPl...
diff --git a/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmith/geppetto/pp/dsl/formatting/PPStylesheetProvider.java b/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmith/geppetto/pp/dsl/formatting/PPStylesheetProvider.java index bb2533af..fa0f7164 100644 --- a/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmith/geppetto/pp...
false
true
public DomCSS get() { // look up grammar elements and create reusable selectors to make the style sheet more readable // final Selector attributeOperationsComma = Select.grammar(grammarAccess.getAttributeOperationsAccess().getCommaKeyword_1_0_0()); final Selector resourceBodyTitleColon = Select.grammar(gramm...
public DomCSS get() { // look up grammar elements and create reusable selectors to make the style sheet more readable // final Selector attributeOperationsComma = Select.grammar(grammarAccess.getAttributeOperationsAccess().getCommaKeyword_1_0_0()); final Selector resourceBodyTitleColon = Select.grammar(gramm...
diff --git a/core/src/test/java/de/javakaffee/web/msm/integration/TestUtils.java b/core/src/test/java/de/javakaffee/web/msm/integration/TestUtils.java index 30f16d8..8b7d579 100644 --- a/core/src/test/java/de/javakaffee/web/msm/integration/TestUtils.java +++ b/core/src/test/java/de/javakaffee/web/msm/integration/TestUt...
true
true
public static Embedded createCatalina( final int port, final int sessionTimeout, final String memcachedNodes, final String jvmRoute, final LoginType loginType, final String transcoderFactoryClassName ) throws MalformedURLException, UnknownHostException, LifecycleException { ...
public static Embedded createCatalina( final int port, final int sessionTimeout, final String memcachedNodes, final String jvmRoute, final LoginType loginType, final String transcoderFactoryClassName ) throws MalformedURLException, UnknownHostException, LifecycleException { ...
diff --git a/cybermoo/ChatCommands/CommandWho.java b/cybermoo/ChatCommands/CommandWho.java index f58d7bd..f90256d 100644 --- a/cybermoo/ChatCommands/CommandWho.java +++ b/cybermoo/ChatCommands/CommandWho.java @@ -1,18 +1,20 @@ package cybermoo.ChatCommands; import cybermoo.Server; import cybermoo.ThreadedClient; ...
false
true
public void call(String[] arguments, ThreadedClient source) { Server.getInstance().sendToClient(source, "The following " + Server.getInstance().getClients().size() + " user(s) are connected:"); for (ThreadedClient c : Server.getInstance().getClients()) { Server.getInstance().sendToClient...
public void call(String[] arguments, ThreadedClient source) { Server.getInstance().sendToClient(source, Server.getInstance().getClients().size() + " user(s) are connected, the following are logged in:"); for (ThreadedClient c : Server.getInstance().getClients()) { if (c.getPlayer() != nu...
diff --git a/cas-client-core/src/main/java/org/jasig/cas/client/ssl/HttpsURLConnectionFactory.java b/cas-client-core/src/main/java/org/jasig/cas/client/ssl/HttpsURLConnectionFactory.java index 2475e5a..298069a 100644 --- a/cas-client-core/src/main/java/org/jasig/cas/client/ssl/HttpsURLConnectionFactory.java +++ b/cas-c...
false
true
private SSLSocketFactory createSSLSocketFactory() { InputStream keyStoreIS = null; try { final SSLContext sslContext = SSLContext.getInstance(this.sslConfiguration.getProperty("protocol", "SSL")); if (this.sslConfiguration.getProperty("keyStoreType") != null) { ...
private SSLSocketFactory createSSLSocketFactory() { InputStream keyStoreIS = null; try { final SSLContext sslContext = SSLContext.getInstance(this.sslConfiguration.getProperty("protocol", "SSL")); if (this.sslConfiguration.getProperty("keyStoreType") != null) { ...
diff --git a/plugins/org.eclipse.acceleo.model/src/org/eclipse/acceleo/model/mtl/resource/AcceleoResourceFactoryRegistry.java b/plugins/org.eclipse.acceleo.model/src/org/eclipse/acceleo/model/mtl/resource/AcceleoResourceFactoryRegistry.java index 2afcd0cd..e257f87b 100644 --- a/plugins/org.eclipse.acceleo.model/src/org...
true
true
private Factory computeFactory(URI uri, String contentTypeIdentifier) { Factory factory = null; // Not an emtl file ? let EMF handle it if (!IAcceleoConstants.EMTL_FILE_EXTENSION.equals(uri.fileExtension())) { return factory; } // Unknown content and uri of an emtl file. String path = uri.toString(); ...
private Factory computeFactory(URI uri, String contentTypeIdentifier) { Factory factory = null; // Not an emtl file ? let EMF handle it if (!IAcceleoConstants.EMTL_FILE_EXTENSION.equals(uri.fileExtension())) { return factory; } // Unknown content and uri of an emtl file. File file = new File(uri.toFil...
diff --git a/src/main/java/hudson/plugins/ec2/SlaveTemplate.java b/src/main/java/hudson/plugins/ec2/SlaveTemplate.java index 93f98bc..2400c73 100644 --- a/src/main/java/hudson/plugins/ec2/SlaveTemplate.java +++ b/src/main/java/hudson/plugins/ec2/SlaveTemplate.java @@ -1,471 +1,472 @@ /* * The MIT License * * Cop...
true
true
public EC2Slave provision(TaskListener listener) throws AmazonClientException, IOException { PrintStream logger = listener.getLogger(); AmazonEC2 ec2 = getParent().connect(); try { logger.println("Launching " + ami + " for template " + description); KeyPair keyPair =...
public EC2Slave provision(TaskListener listener) throws AmazonClientException, IOException { PrintStream logger = listener.getLogger(); AmazonEC2 ec2 = getParent().connect(); try { logger.println("Launching " + ami + " for template " + description); KeyPair keyPair =...
diff --git a/src/main/ed/util/MemUtil.java b/src/main/ed/util/MemUtil.java index fb2295e46..6cabc3715 100644 --- a/src/main/ed/util/MemUtil.java +++ b/src/main/ed/util/MemUtil.java @@ -1,86 +1,87 @@ // MemUtil.java /** * Copyright (C) 2008 10gen Inc. * * This program is free software: you can redistribut...
true
true
public static final synchronized void checkMemoryAndHalt( String location , OutOfMemoryError oom ){ long before = MemUtil.bytesAvailable(); System.gc(); System.gc(); System.gc(); long after = MemUtil.bytesAvailable(); if ( after < ( 100 * MemUtil.MBYTE ) || ...
public static final synchronized void checkMemoryAndHalt( String location , OutOfMemoryError oom ){ long before = MemUtil.bytesAvailable(); System.gc(); System.gc(); System.gc(); long after = MemUtil.bytesAvailable(); if ( after < ( 100 * MemUtil.MBYTE ) || ...
diff --git a/TaskTracker/src/tasktracker/view/TaskListView.java b/TaskTracker/src/tasktracker/view/TaskListView.java index 71eb36f..027f00c 100644 --- a/TaskTracker/src/tasktracker/view/TaskListView.java +++ b/TaskTracker/src/tasktracker/view/TaskListView.java @@ -1,361 +1,361 @@ package tasktracker.view; /** * T...
true
true
private void setupTaskList() { // Assign ListView and its on item click listener. taskListView = (ListView) findViewById(R.id.taskList); taskListView.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> a, View v, int i, long id) { Intent intent = new Intent(getApplic...
private void setupTaskList() { // Assign ListView and its on item click listener. taskListView = (ListView) findViewById(R.id.taskList); taskListView.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> a, View v, int i, long id) { Intent intent = new Intent(getApplic...
diff --git a/DataPack/data/scripts/system/database/MySQL5Loader.java b/DataPack/data/scripts/system/database/MySQL5Loader.java index 29d8a59..445e0d2 100644 --- a/DataPack/data/scripts/system/database/MySQL5Loader.java +++ b/DataPack/data/scripts/system/database/MySQL5Loader.java @@ -1,74 +1,76 @@ /* * This program ...
false
true
public MySQL5Loader() { DAOManager.getInstance().registerDAO(new MySQL5AbyssRankDAO()); DAOManager.getInstance().registerDAO(new MySQL5AnnouncementsDAO()); DAOManager.getInstance().registerDAO(new MySQL5BlockListDAO()); DAOManager.getInstance().registerDAO(new MySQL5BrokerDAO()); DAOManager.getInstance().re...
public MySQL5Loader() { DAOManager.getInstance().registerDAO(new MySQL5AbyssRankDAO()); DAOManager.getInstance().registerDAO(new MySQL5AnnouncementsDAO()); DAOManager.getInstance().registerDAO(new MySQL5BlockListDAO()); DAOManager.getInstance().registerDAO(new MySQL5BrokerDAO()); DAOManager.getInstance().re...
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/QueryProvider.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/QueryProvider.java index 3bee4d934..9cb6a53a2 100644 --- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/QueryPro...
true
true
public ElementQueryDescriptor getQueryDescriptor(final QueriedElement element) { // Initialize queryable, queryContext, and queryType from the element. // In some cases we override this. Policy policy = ui.getPolicy(); IQueryable<?> queryable = element.getQueryable(); int queryType = element.getQueryType(); ...
public ElementQueryDescriptor getQueryDescriptor(final QueriedElement element) { // Initialize queryable, queryContext, and queryType from the element. // In some cases we override this. Policy policy = ui.getPolicy(); IQueryable<?> queryable = element.getQueryable(); int queryType = element.getQueryType(); ...
diff --git a/src/test/java/org/elasticsearch/river/twitter/test/TwitterRiverAbstractTest.java b/src/test/java/org/elasticsearch/river/twitter/test/TwitterRiverAbstractTest.java index 5a4a279..41af936 100644 --- a/src/test/java/org/elasticsearch/river/twitter/test/TwitterRiverAbstractTest.java +++ b/src/test/java/org/el...
true
true
public void launcher(String[] args) throws InterruptedException, IOException { // Checking args if (args.length < 2) { } try { for (int c = 0; c < args.length; c++) { String command = args[c]; if (command.equals("-u") || command.equals("-...
public void launcher(String[] args) throws InterruptedException, IOException { // Checking args if (args.length < 2) { } try { for (int c = 0; c < args.length; c++) { String command = args[c]; if (command.equals("-u") || command.equals("-...
diff --git a/src/test/java/com/camilolopes/readerweb/services/impl/UserServiceimImplTest.java b/src/test/java/com/camilolopes/readerweb/services/impl/UserServiceimImplTest.java index 4bf56ac..fea27a0 100644 --- a/src/test/java/com/camilolopes/readerweb/services/impl/UserServiceimImplTest.java +++ b/src/test/java/com/ca...
true
true
public void testUpdateDataOfTheUser(){ User user = (User) getSessionFactory().getCurrentSession().get(User.class, 2L); String expectedNameUser = "joão"; assertEquals(expectedNameUser, user.getName()); user.setName("Pedro"); user.setLastname("Leão"); user.setRegisterDate(new Date()); user.setStatus(Stat...
public void testUpdateDataOfTheUser(){ User user = (User) getSessionFactory().getCurrentSession().get(User.class, 2L); String expectedNameUser = "joao"; assertEquals(expectedNameUser, user.getName()); user.setName("Pedro"); user.setLastname("Leão"); user.setRegisterDate(new Date()); user.setStatus(Stat...
diff --git a/src/gov/nih/nci/nautilus/resultset/SampleViewHandler.java b/src/gov/nih/nci/nautilus/resultset/SampleViewHandler.java index d5e06ea4..964e22e7 100755 --- a/src/gov/nih/nci/nautilus/resultset/SampleViewHandler.java +++ b/src/gov/nih/nci/nautilus/resultset/SampleViewHandler.java @@ -1,98 +1,98 @@ /* * @a...
false
true
public SampleViewResultsContainer handleSampleView(SampleViewResultsContainer sampleViewContainer, GeneExpr.GeneExprSingle exprObj, GroupType groupType){ SampleResultset sampleResultset = null; GeneExprSingleViewHandler geneExprSingleViewHandler = geneExprSingleViewHandler = new GeneExprSingleViewHandler(...
public SampleViewResultsContainer handleSampleView(SampleViewResultsContainer sampleViewContainer, GeneExpr.GeneExprSingle exprObj, GroupType groupType){ SampleResultset sampleResultset = null; GeneExprSingleViewHandler geneExprSingleViewHandler = geneExprSingleViewHandler = new GeneExprSingleViewHandler(...
diff --git a/src/com/revised/CallOfDutyMC/Main.java b/src/com/revised/CallOfDutyMC/Main.java index 1129050..0701c4e 100644 --- a/src/com/revised/CallOfDutyMC/Main.java +++ b/src/com/revised/CallOfDutyMC/Main.java @@ -1,272 +1,274 @@ package com.revised.CallOfDutyMC; import org.bukkit.ChatColor; import org.bukkit.L...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String cmdLabel, String[] args){ Player p = (Player)sender; int classa = p.getTotalExperience() - 10; int classb = p.getTotalExperience() - 20; int classc = p.getTotalExperience() - 15; ChatColor g = ChatColor.GREEN; ItemStack i = new ItemStack(M...
public boolean onCommand(CommandSender sender, Command cmd, String cmdLabel, String[] args){ Player p = (Player)sender; int classa = p.getTotalExperience() - 10; int classb = p.getTotalExperience() - 20; int classc = p.getTotalExperience() - 15; ChatColor g = ChatColor.GREEN; ItemStack i = new ItemStack(M...
diff --git a/src/org/eclipse/core/tests/resources/regression/AllTests.java b/src/org/eclipse/core/tests/resources/regression/AllTests.java index cbc8eaf..1db5d5e 100644 --- a/src/org/eclipse/core/tests/resources/regression/AllTests.java +++ b/src/org/eclipse/core/tests/resources/regression/AllTests.java @@ -1,60 +1,61 ...
true
true
public static Test suite() { TestSuite suite = new TestSuite(AllTests.class.getName()); suite.addTest(Bug_126104.suite()); suite.addTest(Bug_127562.suite()); suite.addTest(Bug_132510.suite()); suite.addTest(Bug_25457.suite()); suite.addTest(Bug_26294.suite()); suite.addTest(Bug_27271.suite()); suite.ad...
public static Test suite() { TestSuite suite = new TestSuite(AllTests.class.getName()); suite.addTest(Bug_126104.suite()); suite.addTest(Bug_127562.suite()); suite.addTest(Bug_132510.suite()); suite.addTest(Bug_147232.suite()); suite.addTest(Bug_25457.suite()); suite.addTest(Bug_26294.suite()); suite.a...
diff --git a/org.springframework.beans/src/main/java/org/springframework/beans/BeanWrapperImpl.java b/org.springframework.beans/src/main/java/org/springframework/beans/BeanWrapperImpl.java index e8a9ef385..828ca22ab 100644 --- a/org.springframework.beans/src/main/java/org/springframework/beans/BeanWrapperImpl.java +++ ...
true
true
private void setPropertyValue(PropertyTokenHolder tokens, PropertyValue pv) throws BeansException { String propertyName = tokens.canonicalName; String actualName = tokens.actualName; if (tokens.keys != null) { // Apply indexes and map keys: fetch value for all keys but the last one. PropertyTokenHolder ge...
private void setPropertyValue(PropertyTokenHolder tokens, PropertyValue pv) throws BeansException { String propertyName = tokens.canonicalName; String actualName = tokens.actualName; if (tokens.keys != null) { // Apply indexes and map keys: fetch value for all keys but the last one. PropertyTokenHolder ge...
diff --git a/org.mosaic.dao/src/main/java/org/mosaic/dao/impl/QueryAction.java b/org.mosaic.dao/src/main/java/org/mosaic/dao/impl/QueryAction.java index 3f12c3f4..c1468e69 100644 --- a/org.mosaic.dao/src/main/java/org/mosaic/dao/impl/QueryAction.java +++ b/org.mosaic.dao/src/main/java/org/mosaic/dao/impl/QueryAction.ja...
true
true
QueryAction( @Nonnull MethodHandle methodHandle, @Nonnull String dataSourceName ) { super( methodHandle, dataSourceName, true ); Map<String, MethodParameter> parametersByName = new HashMap<>(); for( MethodParameter methodParameter : methodHandle.getParameters() ) { p...
QueryAction( @Nonnull MethodHandle methodHandle, @Nonnull String dataSourceName ) { super( methodHandle, dataSourceName, true ); Map<String, MethodParameter> parametersByName = new HashMap<>(); for( MethodParameter methodParameter : methodHandle.getParameters() ) { p...
diff --git a/src/edu/mit/mobile/android/livingpostcards/CardListFragment.java b/src/edu/mit/mobile/android/livingpostcards/CardListFragment.java index 422edc3..5a13d4a 100644 --- a/src/edu/mit/mobile/android/livingpostcards/CardListFragment.java +++ b/src/edu/mit/mobile/android/livingpostcards/CardListFragment.java @@ ...
true
true
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { getActivity().getMenuInflater().inflate(R.menu.activity_card_view, menu); final Cursor c = mAdapter.getCursor(); if (c == null) { return; } final String myUserUri = Authenticat...
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { getActivity().getMenuInflater().inflate(R.menu.activity_card_view, menu); final Cursor c = mAdapter.getCursor(); if (c == null) { return; } final String myUserUri = Authenticat...
diff --git a/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNCommitUtil.java b/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNCommitUtil.java index fe2d4cdf7..d902ba995 100644 --- a/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNCommitUtil.java +++ b/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNCommitUtil....
false
true
public static void harvestCommitables(Map commitables, SVNDirectory dir, File path, SVNEntry parentEntry, SVNEntry entry, String url, String copyFromURL, boolean copyMode, boolean addsOnly, boolean justLocked, Map lockTokens, boolean recursive) throws SVNException { ...
public static void harvestCommitables(Map commitables, SVNDirectory dir, File path, SVNEntry parentEntry, SVNEntry entry, String url, String copyFromURL, boolean copyMode, boolean addsOnly, boolean justLocked, Map lockTokens, boolean recursive) throws SVNException { ...
diff --git a/servers/src/org/xtreemfs/utils/xtfs_mrcdbtool.java b/servers/src/org/xtreemfs/utils/xtfs_mrcdbtool.java index 196e8884..43b3abd6 100644 --- a/servers/src/org/xtreemfs/utils/xtfs_mrcdbtool.java +++ b/servers/src/org/xtreemfs/utils/xtfs_mrcdbtool.java @@ -1,170 +1,170 @@ /* Copyright (c) 2008 Konrad-Zuse-Z...
false
true
public static void main(String[] args) { Logging.start(Logging.LEVEL_ERROR); TimeSync.initialize(null, 60000, 50); Map<String, CliOption> options = new HashMap<String, CliOption>(); List<String> arguments = new ArrayList<String>(3); options.put("mrc", new Cl...
public static void main(String[] args) { Logging.start(Logging.LEVEL_ERROR); TimeSync.initialize(null, 60000, 50); Map<String, CliOption> options = new HashMap<String, CliOption>(); List<String> arguments = new ArrayList<String>(3); options.put("mrc", new Cl...
diff --git a/src/main/java/com/threerings/flashbang/anim/rsrc/KeyframeDesc.java b/src/main/java/com/threerings/flashbang/anim/rsrc/KeyframeDesc.java index ecb10c0..9d164bc 100644 --- a/src/main/java/com/threerings/flashbang/anim/rsrc/KeyframeDesc.java +++ b/src/main/java/com/threerings/flashbang/anim/rsrc/KeyframeDesc....
true
true
public void fromJson (Json.Object json) { frameIdx = JsonUtil.requireInt(json, "frameIdx"); interp = JsonUtil.getEnum(json, "interp", InterpolatorType.class).interp; x = JsonUtil.requireFloat(json, "x"); y = JsonUtil.requireFloat(json, "y"); scaleX = JsonUtil.requireFloa...
public void fromJson (Json.Object json) { frameIdx = JsonUtil.requireInt(json, "frameIdx"); interp = JsonUtil.requireEnum(json, "interp", InterpolatorType.class).interp; x = JsonUtil.requireFloat(json, "x"); y = JsonUtil.requireFloat(json, "y"); scaleX = JsonUtil.require...
diff --git a/src/slug/soc/game/GameModeState.java b/src/slug/soc/game/GameModeState.java index fd831e2..654494c 100644 --- a/src/slug/soc/game/GameModeState.java +++ b/src/slug/soc/game/GameModeState.java @@ -1,159 +1,159 @@ package slug.soc.game; import java.awt.Color; import java.awt.Font; import java.awt.Graph...
false
true
public void processKey(KeyEvent e){ if(e.getKeyCode() == KeyEvent.VK_UP){ if(currentYPos > 0){ if(cursorActive){ map[currentYPos][currentXPos].removeGameObject(cursor); currentYPos--; map[currentYPos][currentXPos].addGameObject(cursor); } else{ currentYPos--; } } } else ...
public void processKey(KeyEvent e){ if(e.getKeyCode() == KeyEvent.VK_UP){ if(currentYPos > 0){ if(cursorActive){ map[currentYPos][currentXPos].removeGameObject(cursor); currentYPos--; map[currentYPos][currentXPos].addGameObject(cursor); } else{ currentYPos--; } } } else ...
diff --git a/src/main/java/com/imaginea/mongodb/controllers/LogoutController.java b/src/main/java/com/imaginea/mongodb/controllers/LogoutController.java index cf00ae7..cb2d862 100644 --- a/src/main/java/com/imaginea/mongodb/controllers/LogoutController.java +++ b/src/main/java/com/imaginea/mongodb/controllers/LogoutCon...
true
true
public String doGet(@QueryParam("connectionId") final String connectionId, @Context final HttpServletRequest request) { String response = ErrorTemplate.execute(logger, new ResponseCallback() { public Object execute() throws Exception { authService.disconnectConnection(connectionI...
public String doGet(@QueryParam("connectionId") final String connectionId, @Context final HttpServletRequest request) { String response = new ResponseTemplate().execute(logger, connectionId, request, new ResponseCallback() { public Object execute() throws Exception { authService....
diff --git a/Jama/src/main/java/presentationLayer/lazyModel/ContractTableLazyDataModel.java b/Jama/src/main/java/presentationLayer/lazyModel/ContractTableLazyDataModel.java index bb3b3f2..d580b69 100644 --- a/Jama/src/main/java/presentationLayer/lazyModel/ContractTableLazyDataModel.java +++ b/Jama/src/main/java/present...
true
true
protected List<Contract> getData(Map<String, String> filters) { initPager(filters); getPager().setPageSize(pageRows); // int currentPage = (pageSize != 0) ? first / pageSize : 0; int currentPage = pageFirst / pageRows; getPager().setCurrentPage(currentPage); List<Contract> result = getPager().getCurrentR...
protected List<Contract> getData(Map<String, String> filters) { initPager(filters); getPager().setPageSize(pageRows); // int currentPage = (pageSize != 0) ? first / pageSize : 0; int currentPage = pageFirst / pageRows; getPager().setCurrentPage(currentPage); List<Contract> result = getPager().getCurrentR...
diff --git a/smtp/src/org/subethamail/smtp/command/DataCommand.java b/smtp/src/org/subethamail/smtp/command/DataCommand.java index 8308700..2289e50 100644 --- a/smtp/src/org/subethamail/smtp/command/DataCommand.java +++ b/smtp/src/org/subethamail/smtp/command/DataCommand.java @@ -1,40 +1,40 @@ package org.subethamail....
false
true
public void execute(String commandString, ConnectionContext context) throws IOException { Session session = context.getSession(); if (!session.getHasSender()) { context.sendResponse("503 Error: need MAIL command"); return; } else if (session.getRecipientCount() == 0) { context.sendResponse("503 ...
public void execute(String commandString, ConnectionContext context) throws IOException { Session session = context.getSession(); if (!session.getHasSender()) { context.sendResponse("503 Error: need MAIL command"); return; } else if (session.getRecipientCount() == 0) { context.sendResponse("503 ...
diff --git a/src/main/java/net/sacredlabyrinth/Phaed/PreciousStones/FieldSettings.java b/src/main/java/net/sacredlabyrinth/Phaed/PreciousStones/FieldSettings.java index 6d28b38..6a60cd6 100644 --- a/src/main/java/net/sacredlabyrinth/Phaed/PreciousStones/FieldSettings.java +++ b/src/main/java/net/sacredlabyrinth/Phaed/P...
false
true
private void parseSettings() { //************************** required PreciousStones.debug("**********************"); title = loadString("title"); if (title == null) { validField = false; return; } type = loadTypeEntry("block"); ...
private void parseSettings() { //************************** required PreciousStones.debug("**********************"); title = loadString("title"); if (title == null) { validField = false; return; } type = loadTypeEntry("block"); ...
diff --git a/ide/src/wombat/gui/text/BracketMatcher.java b/ide/src/wombat/gui/text/BracketMatcher.java index de7c9ee..3b5e319 100644 --- a/ide/src/wombat/gui/text/BracketMatcher.java +++ b/ide/src/wombat/gui/text/BracketMatcher.java @@ -1,221 +1,221 @@ /* * License: source-license.txt * If this code is used indep...
false
true
public void caretUpdate(CaretEvent event) { // Update the current row and column of the caret. try { // Find the current row of the caret. int caretPos = textArea.code.getCaretPosition(); int rowNum = (caretPos == 0) ? 1 : 0; for (int offset = caretPos; offset > 0;) { offset = Utilities.getRowStart...
public void caretUpdate(CaretEvent event) { // Update the current row and column of the caret. try { // Find the current row of the caret. int caretPos = textArea.code.getCaretPosition(); int rowNum = (caretPos == 0) ? 1 : 0; for (int offset = caretPos; offset > 0;) { offset = Utilities.getRowStart...
diff --git a/main/src/main/java/com/bloatit/framework/feedbackworker/FeedbackServer.java b/main/src/main/java/com/bloatit/framework/feedbackworker/FeedbackServer.java index e8486e28b..560321a7c 100644 --- a/main/src/main/java/com/bloatit/framework/feedbackworker/FeedbackServer.java +++ b/main/src/main/java/com/bloatit/...
false
true
public void run() { for (;;) { Object element; try { element = messages.take(); ModelAccessor.open(); ModelAccessor.setReadOnly(); if (element instanceof StopMessage) { return; } ...
public void run() { for (;;) { Object element; try { element = messages.take(); ModelAccessor.open(); ModelAccessor.setReadOnly(); if (element instanceof StopMessage) { return; } ...
diff --git a/src/de/uni_koblenz/jgralab/greql2/parser/VertexPosition.java b/src/de/uni_koblenz/jgralab/greql2/parser/VertexPosition.java index c19465a11..e53dbee3f 100644 --- a/src/de/uni_koblenz/jgralab/greql2/parser/VertexPosition.java +++ b/src/de/uni_koblenz/jgralab/greql2/parser/VertexPosition.java @@ -1,43 +1,43 ...
true
true
public VertexPosition(T vertex, int offset, int length) { this.node = vertex; this.offset = offset; this.length = length; }
public VertexPosition(T vertex, int length, int offset) { this.node = vertex; this.offset = offset; this.length = length; }
diff --git a/src/com/android/exchange/adapter/AbstractSyncAdapter.java b/src/com/android/exchange/adapter/AbstractSyncAdapter.java index 472bdd3..41b2281 100644 --- a/src/com/android/exchange/adapter/AbstractSyncAdapter.java +++ b/src/com/android/exchange/adapter/AbstractSyncAdapter.java @@ -1,133 +1,134 @@ /* * Cop...
true
true
protected void setPimSyncOptions(Double protocolVersion, String filter, Serializer s) throws IOException { s.tag(Tags.SYNC_DELETES_AS_MOVES); s.tag(Tags.SYNC_GET_CHANGES); s.start(Tags.SYNC_OPTIONS); // Set the filter (lookback), if provided if (filter != null) { ...
protected void setPimSyncOptions(Double protocolVersion, String filter, Serializer s) throws IOException { s.tag(Tags.SYNC_DELETES_AS_MOVES); s.tag(Tags.SYNC_GET_CHANGES); s.data(Tags.SYNC_WINDOW_SIZE, PIM_WINDOW_SIZE); s.start(Tags.SYNC_OPTIONS); // Set the filte...
diff --git a/src/java/net/sf/picard/analysis/SinglePassSamProgram.java b/src/java/net/sf/picard/analysis/SinglePassSamProgram.java index 2cfafa78..518d68e2 100644 --- a/src/java/net/sf/picard/analysis/SinglePassSamProgram.java +++ b/src/java/net/sf/picard/analysis/SinglePassSamProgram.java @@ -1,163 +1,165 @@ package ...
true
true
protected static void makeItSo(final File input, final File referenceSequence, final boolean assumeSorted, final int stopAfter, Collection<SinglePassSamProgram> programs) { ...
protected static void makeItSo(final File input, final File referenceSequence, final boolean assumeSorted, final int stopAfter, Collection<SinglePassSamProgram> programs) { ...
diff --git a/moskito-core/java/net/java/dev/moskito/core/producers/SnapshotArchiverConfig.java b/moskito-core/java/net/java/dev/moskito/core/producers/SnapshotArchiverConfig.java index 6813a243..e1399ce6 100644 --- a/moskito-core/java/net/java/dev/moskito/core/producers/SnapshotArchiverConfig.java +++ b/moskito-core/ja...
true
true
public static SnapshotArchiverConfig createInstance() { SnapshotArchiverConfig instance = new SnapshotArchiverConfig(); try { ConfigurationManager.INSTANCE.configure(instance); } catch (IllegalArgumentException e) { // config is invalid System.err.println(...
public static SnapshotArchiverConfig createInstance() { SnapshotArchiverConfig instance = new SnapshotArchiverConfig(); try { ConfigurationManager.INSTANCE.configure(instance); } catch (IllegalArgumentException e) { // config is invalid System.err.println(...
diff --git a/jason/asSyntax/directives/Include.java b/jason/asSyntax/directives/Include.java index 2bc3ffe..eaf4d6f 100644 --- a/jason/asSyntax/directives/Include.java +++ b/jason/asSyntax/directives/Include.java @@ -1,131 +1,132 @@ package jason.asSyntax.directives; import jason.asSemantics.Agent; import jason.as...
true
true
public Agent process(Pred directive, Agent outerContent, Agent innerContent) { if (outerContent == null) return null; String file = ((StringTerm)directive.getTerm(0)).getString().replaceAll("\\\\", "/"); try { String outerPrefix = outerContent.getASLSrc(); // the sour...
public Agent process(Pred directive, Agent outerContent, Agent innerContent) { if (outerContent == null) return null; String file = ((StringTerm)directive.getTerm(0)).getString().replaceAll("\\\\", "/"); try { String outerPrefix = outerContent.getASLSrc(); // the sour...
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java index 89587eead..9c49259b4 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java +...
true
true
private TypeBinding makeTypeBinding1(TypeX typeX) { if (typeX.isPrimitive()) { if (typeX == ResolvedTypeX.BOOLEAN) return BaseTypes.BooleanBinding; if (typeX == ResolvedTypeX.BYTE) return BaseTypes.ByteBinding; if (typeX == ResolvedTypeX.CHAR) return BaseTypes.CharBinding; if (typeX == ResolvedTypeX.DOUB...
private TypeBinding makeTypeBinding1(TypeX typeX) { if (typeX.isPrimitive()) { if (typeX == ResolvedTypeX.BOOLEAN) return BaseTypes.BooleanBinding; if (typeX == ResolvedTypeX.BYTE) return BaseTypes.ByteBinding; if (typeX == ResolvedTypeX.CHAR) return BaseTypes.CharBinding; if (typeX == ResolvedTypeX.DOUB...
diff --git a/src/edu/common/dynamicextensions/util/parser/ImportPermissibleValues.java b/src/edu/common/dynamicextensions/util/parser/ImportPermissibleValues.java index 3b6e1618a..84693b605 100644 --- a/src/edu/common/dynamicextensions/util/parser/ImportPermissibleValues.java +++ b/src/edu/common/dynamicextensions/util...
false
true
public void importValues() throws DynamicExtensionsApplicationException, DynamicExtensionsSystemException, ParseException { CategoryHelperInterface categoryHelper = new CategoryHelper(); try { while (categoryCSVFileParser.readNext()) { //first line in the categopry file is Category_Definition if ...
public void importValues() throws DynamicExtensionsApplicationException, DynamicExtensionsSystemException, ParseException { CategoryHelperInterface categoryHelper = new CategoryHelper(); try { while (categoryCSVFileParser.readNext()) { //first line in the categopry file is Category_Definition if ...
diff --git a/odcleanstore/backend/src/test/java/cz/cuni/mff/odcleanstore/conflictresolution/impl/ConflictResolverImplTest.java b/odcleanstore/backend/src/test/java/cz/cuni/mff/odcleanstore/conflictresolution/impl/ConflictResolverImplTest.java index 796069be..a2e47d6e 100644 --- a/odcleanstore/backend/src/test/java/cz/c...
false
true
public void testFilterOldVersionsSameNamedGraphs() throws ODCleanStoreException { // Prepare test data Quad sameNamedGraphQuad = TestUtils.createQuad( newVersionQuad.getSubject().getURI(), newVersionQuad.getPredicate().getURI(), TestUtils.getUniqueURI(...
public void testFilterOldVersionsSameNamedGraphs() throws ODCleanStoreException { // Prepare test data Quad sameNamedGraphQuad = TestUtils.createQuad( newVersionQuad.getSubject().getURI(), newVersionQuad.getPredicate().getURI(), TestUtils.getUniqueURI(...
diff --git a/src/info/micdm/ftr/async/TaskManager.java b/src/info/micdm/ftr/async/TaskManager.java index b24e60a..271ee7e 100644 --- a/src/info/micdm/ftr/async/TaskManager.java +++ b/src/info/micdm/ftr/async/TaskManager.java @@ -1,139 +1,139 @@ package info.micdm.ftr.async; import info.micdm.ftr.utils.Log; import ...
true
true
protected void _setupProgressDialog(Context context) { _dialog = new ProgressDialog(context); _dialog.setMessage("Loading"); _dialog.setCancelable(true); _dialog.setOnCancelListener(new DialogInterface.OnCancelListener() { @Override public void onCancel(DialogInterface dialog) { Log.debug("cancelling...
protected void _setupProgressDialog(Context context) { _dialog = new ProgressDialog(context); _dialog.setMessage("Loading"); _dialog.setCancelable(false); _dialog.setOnCancelListener(new DialogInterface.OnCancelListener() { @Override public void onCancel(DialogInterface dialog) { Log.debug("cancellin...
diff --git a/src/to/joe/j2mc/votifier/J2MC_Votifier.java b/src/to/joe/j2mc/votifier/J2MC_Votifier.java index fd4c133..331906b 100644 --- a/src/to/joe/j2mc/votifier/J2MC_Votifier.java +++ b/src/to/joe/j2mc/votifier/J2MC_Votifier.java @@ -1,73 +1,73 @@ package to.joe.j2mc.votifier; import java.sql.PreparedStatement; ...
true
true
public void onVote(VotifierEvent event) { Vote v = event.getVote(); Logger l = getLogger(); try { PreparedStatement ps = J2MC_Manager.getMySQL().getFreshPreparedStatementHotFromTheOven("INSERT INTO votes (address, service, timestamp, username) VALUES (?,?,?,?)"); ps....
public void onVote(VotifierEvent event) { Vote v = event.getVote(); Logger l = getLogger(); try { PreparedStatement ps = J2MC_Manager.getMySQL().getFreshPreparedStatementHotFromTheOven("INSERT INTO votes (address, service, timestamp, username) VALUES (?,?,?,?)"); ps....
diff --git a/tests/org.bonitasoft.studio.importer.bar.tests/src/org/bonitasoft/studio/importer/bar/tests/TestSimpleMigrationUseCase.java b/tests/org.bonitasoft.studio.importer.bar.tests/src/org/bonitasoft/studio/importer/bar/tests/TestSimpleMigrationUseCase.java index 9d37b3e694..8f1f39373a 100644 --- a/tests/org.bonit...
true
true
public void testValidatorMigration() throws Exception{ final URL url = TestSimpleMigrationUseCase.class.getResource("ValidatorMigrationUseCase--1.0.bar"); final File migratedProc = BarImporterTestUtil.migrateBar(url); assertNotNull("Fail to migrate bar file", migratedProc); assertNotNull("Fail to migrate bar ...
public void testValidatorMigration() throws Exception{ final URL url = TestSimpleMigrationUseCase.class.getResource("ValidatorMigrationUseCase--1.0.bar"); final File migratedProc = BarImporterTestUtil.migrateBar(url); assertNotNull("Fail to migrate bar file", migratedProc); assertNotNull("Fail to migrate bar ...
diff --git a/Server/CustomProtocol.java b/Server/CustomProtocol.java index e47cede..1d1ac68 100644 --- a/Server/CustomProtocol.java +++ b/Server/CustomProtocol.java @@ -1,116 +1,116 @@ import java.io.*; import java.lang.*; import java.util.Scanner; public class CustomProtocol{ String usage = "\n\t\tChatter...
true
true
public String processInput(String input){ if(input==null){ return "Hello, you are chattin with chatter!"; } if(input.equals("hello")){ return "[say]Hello there!"; } if(input.equals("who are you")){ return "[say]I am the chatter server. \n You can send me commands and I will respond."; } if(i...
public String processInput(String input){ if(input==null){ return "Hello, you are chattin with chatter!"; } if(input.equals("hello")){ return "[say]Hello there!"; } if(input.equals("who are you")){ return "[say]I am the chatter server. \n You can send me commands and I will respond."; } if(i...
diff --git a/scm-webapp/src/test/java/sonia/scm/security/DefaultKeyGeneratorTest.java b/scm-webapp/src/test/java/sonia/scm/security/DefaultKeyGeneratorTest.java index f64a4a6c0..edec43098 100644 --- a/scm-webapp/src/test/java/sonia/scm/security/DefaultKeyGeneratorTest.java +++ b/scm-webapp/src/test/java/sonia/scm/secur...
true
true
public void testMultiThreaded() throws InterruptedException, ExecutionException, TimeoutException { final DefaultKeyGenerator generator = new DefaultKeyGenerator(); ExecutorService executor = Executors.newFixedThreadPool(30); Set<Future<Set<String>>> futureSet = Sets.newHashSet(); for (int i ...
public void testMultiThreaded() throws InterruptedException, ExecutionException, TimeoutException { final DefaultKeyGenerator generator = new DefaultKeyGenerator(); ExecutorService executor = Executors.newFixedThreadPool(30); Set<Future<Set<String>>> futureSet = Sets.newHashSet(); for (int i ...
diff --git a/src/test/java/org/elasticsearch/river/jdbc/strategy/table/TableRiverMouthTests.java b/src/test/java/org/elasticsearch/river/jdbc/strategy/table/TableRiverMouthTests.java index 0d3f881e..3a099ded 100644 --- a/src/test/java/org/elasticsearch/river/jdbc/strategy/table/TableRiverMouthTests.java +++ b/src/test/...
true
true
private void createDelete(Connection connection, String sql, final int id) throws SQLException { PreparedStatement stmt = connection.prepareStatement(sql); List<Object> params = new ArrayList() { { add(INDEX); add(TYPE); add(...
private void createDelete(Connection connection, String sql, final int id) throws SQLException { PreparedStatement stmt = connection.prepareStatement(sql); List<Object> params = new ArrayList() { { add(INDEX); add(TYPE); add(...
diff --git a/jboss-as7/extension/src/main/java/org/switchyard/as7/extension/deployment/SwitchYardDeploymentProcessor.java b/jboss-as7/extension/src/main/java/org/switchyard/as7/extension/deployment/SwitchYardDeploymentProcessor.java index 2a4d65b..ad3d397 100644 --- a/jboss-as7/extension/src/main/java/org/switchyard/as...
true
true
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (!SwitchYardDeploymentMarker.isSwitchYardDeployment(deploymentUnit)) { return; } LOG.info("Deployi...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (!SwitchYardDeploymentMarker.isSwitchYardDeployment(deploymentUnit)) { return; } LOG.info("Deployi...
diff --git a/java/src/main/java/tripleplay/platform/JavaTPPlatform.java b/java/src/main/java/tripleplay/platform/JavaTPPlatform.java index 4b0db055..5ff3acd9 100644 --- a/java/src/main/java/tripleplay/platform/JavaTPPlatform.java +++ b/java/src/main/java/tripleplay/platform/JavaTPPlatform.java @@ -1,151 +1,152 @@ // ...
true
true
protected JavaTPPlatform (JavaPlatform platform, JavaPlatform.Config config) { _platform = platform; _frame = new JFrame("Game"); _frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Canvas canvas = new Canvas(); canvas.setName("GLCanvas"); canvas.setPreferredSize...
protected JavaTPPlatform (JavaPlatform platform, JavaPlatform.Config config) { _platform = platform; _frame = new JFrame("Game"); _frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Canvas canvas = new Canvas(); canvas.setName("GLCanvas"); canvas.setPreferredSize...
diff --git a/src/com/android/settings/AutoBrightnessCustomizeDialog.java b/src/com/android/settings/AutoBrightnessCustomizeDialog.java index cb2e6cd3d..a36789c8c 100644 --- a/src/com/android/settings/AutoBrightnessCustomizeDialog.java +++ b/src/com/android/settings/AutoBrightnessCustomizeDialog.java @@ -1,548 +1,548 @@...
false
true
public View getView(int position, View convertView, ViewGroup parent) { final Holder holder; if (convertView == null) { convertView = getLayoutInflater().inflate( R.layout.auto_brightness_list_item, parent, false); holder = new Hol...
public View getView(int position, View convertView, ViewGroup parent) { final Holder holder; if (convertView == null) { convertView = getLayoutInflater().inflate( R.layout.auto_brightness_list_item, parent, false); holder = new Hol...
diff --git a/src/KMeansRunner.java b/src/KMeansRunner.java index d59a109..284c8ff 100644 --- a/src/KMeansRunner.java +++ b/src/KMeansRunner.java @@ -1,60 +1,60 @@ import java.util.ArrayList; import java.util.logging.Logger; public class KMeansRunner { final static Logger logger = Logger.getLogger(KMeansRu...
true
true
public void run() { for (int N = 0; N < Config.N; ++N) { // Log the results. StringBuilder stats = new StringBuilder(); stats.append("Run no. " + N + "\n"); for (int K = Config.infK; K < Config.supK; ++K) { KMeans kMeansInstance = new KMeans(C...
public void run() { for (int N = 0; N < Config.N; ++N) { // Log the results. StringBuilder stats = new StringBuilder(); stats.append("Run no. " + N + "\n"); for (int K = Config.infK; K <= Config.supK; ++K) { KMeans kMeansInstance = new KMeans(...
diff --git a/colors.java b/colors.java index 5d5181f..f5f66b2 100644 --- a/colors.java +++ b/colors.java @@ -1,108 +1,109 @@ import java.awt.Canvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.image.BufferedImage; ...
true
true
public static void doThatThing(String filename) throws Exception { BufferedImage img = ImageIO.read(new File(filename)); TreeMap<Integer, Integer> counts = new TreeMap<Integer, Integer>(); for (int i = 0; i < img.getWidth(); i++) { for (int j = 0; j < img.getHeight(); j++) { int color = img.getRGB(i, j); ...
public static void doThatThing(String filename) throws Exception { BufferedImage img = ImageIO.read(new File(filename)); TreeMap<Integer, Integer> counts = new TreeMap<Integer, Integer>(); for (int i = 0; i < img.getWidth(); i++) { for (int j = 0; j < img.getHeight(); j++) { int color = img.getRGB(i, j); ...
diff --git a/web/src/main/java/org/openmrs/web/controller/observation/ObsFormController.java b/web/src/main/java/org/openmrs/web/controller/observation/ObsFormController.java index c40de23e..d3182f26 100644 --- a/web/src/main/java/org/openmrs/web/controller/observation/ObsFormController.java +++ b/web/src/main/java/org...
false
true
protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object obj, BindException errors) throws Exception { HttpSession httpSession = request.getSession(); if (Context.isAuthenticated()) { Obs obs = (Obs) obj; ObsService os = Context.g...
protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object obj, BindException errors) throws Exception { HttpSession httpSession = request.getSession(); if (Context.isAuthenticated()) { Obs obs = (Obs) obj; Obs newlySavedObs = null;...
diff --git a/flexodesktop/GUI/flexographicalengine/src/main/java/org/openflexo/fge/cp/ShapeResizingControlPoint.java b/flexodesktop/GUI/flexographicalengine/src/main/java/org/openflexo/fge/cp/ShapeResizingControlPoint.java index c02416561..e1e9c9e37 100644 --- a/flexodesktop/GUI/flexographicalengine/src/main/java/org/o...
false
true
public ShapeResizingControlPoint(ShapeGraphicalRepresentation<?> graphicalRepresentation, FGEPoint pt, CardinalDirection aCardinalDirection) { super(graphicalRepresentation, pt); // logger.info("***** new ShapeResizingControlPoint "+Integer.toHexString(hashCode())+" for "+graphicalRepresentation); if (aCard...
public ShapeResizingControlPoint(ShapeGraphicalRepresentation<?> graphicalRepresentation, FGEPoint pt, CardinalDirection aCardinalDirection) { super(graphicalRepresentation, pt); // logger.info("***** new ShapeResizingControlPoint "+Integer.toHexString(hashCode())+" for "+graphicalRepresentation); if (aCard...
diff --git a/src/org/newdawn/slick/svg/inkscape/RectProcessor.java b/src/org/newdawn/slick/svg/inkscape/RectProcessor.java index 3a7de89..011857e 100644 --- a/src/org/newdawn/slick/svg/inkscape/RectProcessor.java +++ b/src/org/newdawn/slick/svg/inkscape/RectProcessor.java @@ -1,54 +1,54 @@ package org.newdawn.slick.sv...
true
true
public void process(Loader loader, Element element, Diagram diagram, Transform t) throws ParsingException { Transform transform = Util.getTransform(element); transform = new Transform(transform, t); float width = Float.parseFloat(element.getAttribute("width")); float height = Float.parseFloat(element.getAtt...
public void process(Loader loader, Element element, Diagram diagram, Transform t) throws ParsingException { Transform transform = Util.getTransform(element); transform = new Transform(transform, t); float width = Float.parseFloat(element.getAttribute("width")); float height = Float.parseFloat(element.getAtt...
diff --git a/web/src/main/java/uy/com/elsubonline/web/user/Auction.java b/web/src/main/java/uy/com/elsubonline/web/user/Auction.java index 5eeabcb..d91b228 100644 --- a/web/src/main/java/uy/com/elsubonline/web/user/Auction.java +++ b/web/src/main/java/uy/com/elsubonline/web/user/Auction.java @@ -1,77 +1,77 @@ package ...
true
true
public String create() { logger.info("Trying to create new aution: " + title); FacesMessage msg; FacesContext facesContext = FacesContext.getCurrentInstance(); ResourceBundle bundle = facesContext.getApplication().getResourceBundle(facesContext, "msg"); try { au...
public String create() { logger.info("Trying to create new aution: " + title); FacesMessage msg; FacesContext facesContext = FacesContext.getCurrentInstance(); ResourceBundle bundle = facesContext.getApplication().getResourceBundle(facesContext, "msg"); try { au...
diff --git a/src/edu/berkeley/cs160/theccertservice/splist/ListActivity.java b/src/edu/berkeley/cs160/theccertservice/splist/ListActivity.java index 6aeba31..a78a128 100644 --- a/src/edu/berkeley/cs160/theccertservice/splist/ListActivity.java +++ b/src/edu/berkeley/cs160/theccertservice/splist/ListActivity.java @@ -1,1...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.list); shareButton = (Button) findViewById(R.id.calculate); shareButton.setOnClickListener(this); if(sharedLists.size() == 0){ showCreateListDialog(null); } currentList = (Spinner...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.list); shareButton = (Button) findViewById(R.id.share_with_others); shareButton.setOnClickListener(this); if(sharedLists.size() == 0){ showCreateListDialog(null); } currentList = ...
diff --git a/src/com/percussion/pso/assembler/ValidatingContentAssemblerMerge.java b/src/com/percussion/pso/assembler/ValidatingContentAssemblerMerge.java index 3f8a5a4..37c0391 100644 --- a/src/com/percussion/pso/assembler/ValidatingContentAssemblerMerge.java +++ b/src/com/percussion/pso/assembler/ValidatingContentAss...
false
true
public static IPSAssemblyResult merge(IPSExtensionDef def, IPSAssemblyResult result) throws Exception { if(result.isDebug()) { log.debug("Debug Assembly enabled"); return result; } String configTidyPropertiesFile=null; Boolean confi...
public static IPSAssemblyResult merge(IPSExtensionDef def, IPSAssemblyResult result) throws Exception { if(result.isDebug()) { log.debug("Debug Assembly enabled"); return result; } String configTidyPropertiesFile=null; Boolean confi...
diff --git a/src/com/onarandombox/MultiverseCore/commands/HelpCommand.java b/src/com/onarandombox/MultiverseCore/commands/HelpCommand.java index 0f90f92..4a609e1 100644 --- a/src/com/onarandombox/MultiverseCore/commands/HelpCommand.java +++ b/src/com/onarandombox/MultiverseCore/commands/HelpCommand.java @@ -1,86 +1,81 ...
true
true
public void runCommand(CommandSender sender, List<String> args) { sender.sendMessage(ChatColor.AQUA + "====[ Multiverse Help ]===="); int page = 1; if (args.size() == 1) { try { page = Integer.parseInt(args.get(0)); } catch (NumberFormatException e) ...
public void runCommand(CommandSender sender, List<String> args) { sender.sendMessage(ChatColor.AQUA + "====[ Multiverse Help ]===="); int page = 1; if (args.size() == 1) { try { page = Integer.parseInt(args.get(0)); } catch (NumberFormatException e) ...
diff --git a/src/main/java/com/caindonaghey/commandbin/commands/NearbyCommand.java b/src/main/java/com/caindonaghey/commandbin/commands/NearbyCommand.java index d5229ef..47d2cf6 100644 --- a/src/main/java/com/caindonaghey/commandbin/commands/NearbyCommand.java +++ b/src/main/java/com/caindonaghey/commandbin/commands/Ne...
true
true
public boolean onCommand(CommandSender s, Command c, String l, String [] args) { if(l.equalsIgnoreCase("nearby")) { if(!(s instanceof Player)) { System.out.println(Phrases.get("no-console")); return true; } Player player = (Player) s; if(!player.hasPermission("CommandBin.nearby")) { p...
public boolean onCommand(CommandSender s, Command c, String l, String [] args) { if(l.equalsIgnoreCase("nearby")) { if(!(s instanceof Player)) { System.out.println(Phrases.get("no-console")); return true; } Player player = (Player) s; if(!player.hasPermission("CommandBin.nearby")) { p...
diff --git a/src/java/no/schibstedsok/front/searchportal/servlet/SearchServlet.java b/src/java/no/schibstedsok/front/searchportal/servlet/SearchServlet.java index dff0a55d8..9576af8df 100644 --- a/src/java/no/schibstedsok/front/searchportal/servlet/SearchServlet.java +++ b/src/java/no/schibstedsok/front/searchportal/se...
true
true
protected void doGet( final HttpServletRequest httpServletRequest, final HttpServletResponse httpServletResponse) throws ServletException, IOException { if (httpServletRequest.getParameter("q") == null) { String redir = httpServletRequest.getContextPath(...
protected void doGet( final HttpServletRequest httpServletRequest, final HttpServletResponse httpServletResponse) throws ServletException, IOException { if (httpServletRequest.getParameter("q") == null) { String redir = httpServletRequest.getContextPath(...
diff --git a/src/main/java/hudson/plugins/jdepend/JDependReporter.java b/src/main/java/hudson/plugins/jdepend/JDependReporter.java index 297caa1..5bf0fd9 100644 --- a/src/main/java/hudson/plugins/jdepend/JDependReporter.java +++ b/src/main/java/hudson/plugins/jdepend/JDependReporter.java @@ -1,121 +1,121 @@ package hu...
false
true
public String getReport(Locale locale) throws MavenReportException { XhtmlSinkFactory sinkFactory = new XhtmlSinkFactory(); Sink sink; JDependReportGenerator report = new JDependReportGenerator(); ByteArrayOutputStream htmlStream = new ByteArrayOutputStream(); try { ...
public String getReport(Locale locale) throws MavenReportException { XhtmlSinkFactory sinkFactory = new XhtmlSinkFactory(); Sink sink; JDependReportGenerator report = new JDependReportGenerator(); ByteArrayOutputStream htmlStream = new ByteArrayOutputStream(); try { ...
diff --git a/Applications/Viewer/src/au/gov/ga/worldwind/panels/layers/LayerLoader.java b/Applications/Viewer/src/au/gov/ga/worldwind/panels/layers/LayerLoader.java index 966fba33..d93bdd6a 100644 --- a/Applications/Viewer/src/au/gov/ga/worldwind/panels/layers/LayerLoader.java +++ b/Applications/Viewer/src/au/gov/ga/wo...
false
true
public static LoadedLayer load(URL sourceURL, Object source) throws Exception { Element element = XMLUtil.getElementFromSource(source); AVList params = new AVListImpl(); if (sourceURL != null) { params.setValue(AVKeyMore.CONTEXT_URL, sourceURL); } URL legend = XMLUtil.getURL(element, "Legend", source...
public static LoadedLayer load(URL sourceURL, Object source) throws Exception { Element element = XMLUtil.getElementFromSource(source); AVList params = new AVListImpl(); if (sourceURL != null) { params.setValue(AVKeyMore.CONTEXT_URL, sourceURL); } URL legend = XMLUtil.getURL(element, "Legend", source...
diff --git a/src/edu/cuny/qc/speech/AuToBI/AlignmentUtils.java b/src/edu/cuny/qc/speech/AuToBI/AlignmentUtils.java index 8230f2e..a840d71 100644 --- a/src/edu/cuny/qc/speech/AuToBI/AlignmentUtils.java +++ b/src/edu/cuny/qc/speech/AuToBI/AlignmentUtils.java @@ -1,225 +1,225 @@ /* AlignmentUtils.java Copyright (...
true
true
public static void copyToBITonesByIndex(List<Word> words, List<Region> tones) throws AuToBIException { List<String> phrase_accents = new ArrayList<String>(); List<String> boundary_tones = new ArrayList<String>(); ListIterator<Region> toneIter = tones.listIterator(); for (Word word : words) { Re...
public static void copyToBITonesByIndex(List<Word> words, List<Region> tones) throws AuToBIException { List<String> phrase_accents = new ArrayList<String>(); List<String> boundary_tones = new ArrayList<String>(); ListIterator<Region> toneIter = tones.listIterator(); for (Word word : words) { Re...
diff --git a/MobilisServer/src/de/tudresden/inf/rn/mobilis/server/agents/MobilisAgent.java b/MobilisServer/src/de/tudresden/inf/rn/mobilis/server/agents/MobilisAgent.java index 547d433..dbe7333 100644 --- a/MobilisServer/src/de/tudresden/inf/rn/mobilis/server/agents/MobilisAgent.java +++ b/MobilisServer/src/de/tudresde...
false
true
public void shutdown() throws XMPPException { //remove Agent from MobilisManager mAgents Map MobilisManager.getInstance().removeAgent(StringUtils.parseResource(fullJid)); ServiceDiscoveryManager sdm = ServiceDiscoveryManager.getInstanceFor(mConnection); // ServiceDiscovery (feature) http://rn.inf.tu-d...
public void shutdown() throws XMPPException { //remove Agent from MobilisManager mAgents Map MobilisManager.getInstance().removeAgent(StringUtils.parseResource(fullJid)); ServiceDiscoveryManager sdm = ServiceDiscoveryManager.getInstanceFor(mConnection); // ServiceDiscovery (feature) http://rn.inf.tu-d...
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/operations/ProvisioningUtil.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/operations/ProvisioningUtil.java index 451d6c283..a6b9ada80 100644 --- a/bundles/org.eclipse.equinox.p...
true
true
public static IStatus performProvisioningPlan(ProvisioningPlan plan, PhaseSet phaseSet, ProvisioningContext context, IProgressMonitor monitor) throws ProvisionException { PhaseSet set; if (phaseSet == null) set = new DefaultPhaseSet(); else set = phaseSet; // 300 ticks for download, 100 to install handl...
public static IStatus performProvisioningPlan(ProvisioningPlan plan, PhaseSet phaseSet, ProvisioningContext context, IProgressMonitor monitor) throws ProvisionException { PhaseSet set; if (phaseSet == null) set = new DefaultPhaseSet(); else set = phaseSet; // 300 ticks for download, 100 to install handl...
diff --git a/src/main/java/eu/dm2e/ws/services/Client.java b/src/main/java/eu/dm2e/ws/services/Client.java index e895e68..9190885 100644 --- a/src/main/java/eu/dm2e/ws/services/Client.java +++ b/src/main/java/eu/dm2e/ws/services/Client.java @@ -1,206 +1,206 @@ package eu.dm2e.ws.services; import java.io.File; impo...
true
true
public String publishPojoToConfigService(SerializablePojo pojo, WebResource configWR) { ClientResponse resp; if (null == pojo.getId()) { resp = this.postPojoToService(pojo, configWR); } else { // resp = null; if (pojo.getId().startsWith(configWR.getURI().toString())) { resp = resource(pojo.getI...
public String publishPojoToConfigService(SerializablePojo pojo, WebResource configWR) { ClientResponse resp; if (null == pojo.getId()) { resp = this.postPojoToService(pojo, configWR); } else { // resp = null; if (pojo.getId().startsWith(configWR.getURI().toString())) { resp = resource(pojo.getI...
diff --git a/edu/mit/wi/haploview/HaploText.java b/edu/mit/wi/haploview/HaploText.java index 4330387..734cf62 100644 --- a/edu/mit/wi/haploview/HaploText.java +++ b/edu/mit/wi/haploview/HaploText.java @@ -1,1539 +1,1545 @@ package edu.mit.wi.haploview; import edu.mit.wi.pedfile.MarkerResult; import edu.mit.wi.pedf...
false
true
private void argHandler(String[] args){ argHandlerMessages = new Vector(); int maxDistance = -1; //this means that user didn't specify any output type if it doesn't get changed below blockOutputType = -1; double hapThresh = -1; double minimumMAF=-1; double sp...
private void argHandler(String[] args){ argHandlerMessages = new Vector(); int maxDistance = -1; //this means that user didn't specify any output type if it doesn't get changed below blockOutputType = -1; double hapThresh = -1; double minimumMAF=-1; double sp...
diff --git a/tool/src/java/org/sakaiproject/evaluation/tool/reporting/ReportViewParamsInterceptor.java b/tool/src/java/org/sakaiproject/evaluation/tool/reporting/ReportViewParamsInterceptor.java index bcd22e3a..c06e03c5 100644 --- a/tool/src/java/org/sakaiproject/evaluation/tool/reporting/ReportViewParamsInterceptor.ja...
true
true
public AnyViewParameters adjustViewParameters(ViewParameters incoming) { AnyViewParameters togo = incoming; if (ReportChooseGroupsProducer.VIEW_ID.equals(incoming.viewID)) { ReportParameters params = (ReportParameters) incoming; curViewableReports.populate(params.evaluationId); ...
public AnyViewParameters adjustViewParameters(ViewParameters incoming) { AnyViewParameters togo = incoming; if (ReportChooseGroupsProducer.VIEW_ID.equals(incoming.viewID)) { ReportParameters params = (ReportParameters) incoming; curViewableReports.populate(params.evaluationId); ...
diff --git a/MPDroid/src/com/namelessdev/mpdroid/views/AlbumDataBinder.java b/MPDroid/src/com/namelessdev/mpdroid/views/AlbumDataBinder.java index 723ed7cc..dbfa185c 100644 --- a/MPDroid/src/com/namelessdev/mpdroid/views/AlbumDataBinder.java +++ b/MPDroid/src/com/namelessdev/mpdroid/views/AlbumDataBinder.java @@ -1,113...
false
true
public void onDataBind(final Context context, final View targetView, final AbstractViewHolder viewHolder, List<? extends Item> items, Object item, int position) { AlbumViewHolder holder = (AlbumViewHolder) viewHolder; final Album album = (Album) item; Artist artis...
public void onDataBind(final Context context, final View targetView, final AbstractViewHolder viewHolder, List<? extends Item> items, Object item, int position) { AlbumViewHolder holder = (AlbumViewHolder) viewHolder; final Album album = (Album) item; Artist artis...
diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/json/QueryStringJsonQueryParser.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/json/QueryStringJsonQueryParser.java index 9f44ba3a5ed..92662fe251a 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/i...
true
true
@Override public Query parse(JsonQueryParseContext parseContext) throws IOException, QueryParsingException { JsonParser jp = parseContext.jp(); // move to the field value String queryString = null; String defaultField = AllFieldMapper.NAME; // default to all MapperQueryPars...
@Override public Query parse(JsonQueryParseContext parseContext) throws IOException, QueryParsingException { JsonParser jp = parseContext.jp(); // move to the field value String queryString = null; String defaultField = AllFieldMapper.NAME; // default to all MapperQueryPars...
diff --git a/src/main/java/de/kumpelblase2/remoteentities/api/thinking/goals/DesireLookAtTrader.java b/src/main/java/de/kumpelblase2/remoteentities/api/thinking/goals/DesireLookAtTrader.java index 012f010..0204cd3 100644 --- a/src/main/java/de/kumpelblase2/remoteentities/api/thinking/goals/DesireLookAtTrader.java +++ b...
true
true
public boolean shouldExecute() { EntityLiving entity = this.getRemoteEntity().getHandle(); if(!(entity instanceof EntityVillager)) return false; else { EntityVillager villager = (EntityVillager)entity; if(villager.n()) //TODO { this.m_target = villager.m_(); return true; } return fal...
public boolean shouldExecute() { EntityLiving entity = this.getRemoteEntity().getHandle(); if(!(entity instanceof EntityVillager)) return false; else { EntityVillager villager = (EntityVillager)entity; if(villager.p()) { this.m_target = villager.m_(); return true; } return false; }...
diff --git a/core/plugins/org.eclipse.dltk.core/search/org/eclipse/dltk/internal/core/mixin/MixinBuilder.java b/core/plugins/org.eclipse.dltk.core/search/org/eclipse/dltk/internal/core/mixin/MixinBuilder.java index aa79a1fbc..91d7806ae 100644 --- a/core/plugins/org.eclipse.dltk.core/search/org/eclipse/dltk/internal/cor...
false
true
public IStatus buildModelElements(IScriptProject project, List elements, final IProgressMonitor monitor, boolean saveIndex) { if (elements.size() == 0) { return null; } IndexManager manager = ModelManager.getModelManager().getIndexManager(); final int elementsSize = elements.size(); IDLTKLanguageToolki...
public IStatus buildModelElements(IScriptProject project, List elements, final IProgressMonitor monitor, boolean saveIndex) { if (elements.size() == 0) { return null; } IndexManager manager = ModelManager.getModelManager().getIndexManager(); final int elementsSize = elements.size(); IDLTKLanguageToolki...
diff --git a/hazelcast/src/main/java/com/hazelcast/nio/ssl/BasicSSLContextFactory.java b/hazelcast/src/main/java/com/hazelcast/nio/ssl/BasicSSLContextFactory.java index f617b17b62..480f0674d8 100644 --- a/hazelcast/src/main/java/com/hazelcast/nio/ssl/BasicSSLContextFactory.java +++ b/hazelcast/src/main/java/com/hazelca...
true
true
public void init(Properties properties) throws Exception { KeyStore ks = KeyStore.getInstance("JKS"); KeyStore ts = KeyStore.getInstance("JKS"); String keyStorePassword = getProperty(properties, "keyStorePassword"); String keyStore = getProperty(properties, "keyStore"); if (k...
public void init(Properties properties) throws Exception { KeyStore ks = KeyStore.getInstance("JKS"); KeyStore ts = KeyStore.getInstance("JKS"); String keyStorePassword = getProperty(properties, "keyStorePassword"); String keyStore = getProperty(properties, "keyStore"); if (k...
diff --git a/src/net/dtl/citizenstrader/CitizensTrader.java b/src/net/dtl/citizenstrader/CitizensTrader.java index 494e8eb..5aed529 100644 --- a/src/net/dtl/citizenstrader/CitizensTrader.java +++ b/src/net/dtl/citizenstrader/CitizensTrader.java @@ -1,81 +1,81 @@ package net.dtl.citizenstrader; import java.util.logg...
true
true
public void onEnable() { PluginDescriptionFile pdfFile = this.getDescription(); if ( getServer().getPluginManager().getPlugin("Vault") != null ) { RegisteredServiceProvider<Economy> rspEcon = getServer().getServicesManager().getRegistration(Economy.class); if ( rspEcon != null ) { ec...
public void onEnable() { PluginDescriptionFile pdfFile = this.getDescription(); if ( getServer().getPluginManager().getPlugin("Vault") != null ) { RegisteredServiceProvider<Economy> rspEcon = getServer().getServicesManager().getRegistration(Economy.class); if ( rspEcon != null ) { ec...
diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardView.java b/java/src/com/android/inputmethod/keyboard/KeyboardView.java index d5bd7fda3..4a9135310 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardView.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardView.java @@ -1,995 +1,995 @@...
false
true
protected void onDrawKeyTopVisuals(Key key, Canvas canvas, Paint paint, KeyDrawParams params) { final int keyWidth = key.mWidth - key.mVisualInsetsLeft - key.mVisualInsetsRight; final int keyHeight = key.mHeight; final float centerX = keyWidth * 0.5f; final float centerY = keyHeight ...
protected void onDrawKeyTopVisuals(Key key, Canvas canvas, Paint paint, KeyDrawParams params) { final int keyWidth = key.mWidth - key.mVisualInsetsLeft - key.mVisualInsetsRight; final int keyHeight = key.mHeight; final float centerX = keyWidth * 0.5f; final float centerY = keyHeight ...