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/nu/validator/servlet/VerifierServletTransaction.java b/src/nu/validator/servlet/VerifierServletTransaction.java index 072d813e..cc6a8fca 100755 --- a/src/nu/validator/servlet/VerifierServletTransaction.java +++ b/src/nu/validator/servlet/VerifierServletTransaction.java @@ -1,2002 +1,2002 @@ /* * Cop...
false
true
void service() throws ServletException, IOException { this.methodIsGet = "GET".equals(request.getMethod()) || "HEAD".equals(request.getMethod()); this.out = response.getOutputStream(); try { request.setCharacterEncoding("utf-8"); } catch (NoSuchMethodErr...
void service() throws ServletException, IOException { this.methodIsGet = "GET".equals(request.getMethod()) || "HEAD".equals(request.getMethod()); this.out = response.getOutputStream(); try { request.setCharacterEncoding("utf-8"); } catch (NoSuchMethodErr...
diff --git a/src/com/carlgo11/simpleautomessage/Broadcast.java b/src/com/carlgo11/simpleautomessage/Broadcast.java index d04cf05..efb5aab 100644 --- a/src/com/carlgo11/simpleautomessage/Broadcast.java +++ b/src/com/carlgo11/simpleautomessage/Broadcast.java @@ -1,72 +1,76 @@ package com.carlgo11.simpleautomessage; i...
false
true
public void broadcast() { final long d = (long) (plugin.time); Bukkit.getServer().getScheduler().runTaskTimerAsynchronously(plugin, new Runnable() { public void run() { int minP = plugin.getConfig().getInt("min-players"); int onlineP = Bukkit.getServe...
public void broadcast() { final long d = (long) (plugin.time); Bukkit.getServer().getScheduler().runTaskTimerAsynchronously(plugin, new Runnable() { public void run() { int minP = plugin.getConfig().getInt("min-players"); int onlineP = Bukkit.getServe...
diff --git a/net.sourceforge.vrapper.eclipse/src/net/sourceforge/vrapper/eclipse/platform/EclipseCursorAndSelection.java b/net.sourceforge.vrapper.eclipse/src/net/sourceforge/vrapper/eclipse/platform/EclipseCursorAndSelection.java index 94fdec2a..170653a3 100644 --- a/net.sourceforge.vrapper.eclipse/src/net/sourceforge...
true
true
public void setSelection(final Selection newSelection) { if (newSelection == null) { final Point point = textViewer.getSelectedRange(); textViewer.getTextWidget().setBlockSelection(false); textViewer.setSelectedRange(point.x, 0); selection = null; } el...
public void setSelection(final Selection newSelection) { if (newSelection == null) { final Point point = textViewer.getSelectedRange(); textViewer.getTextWidget().setBlockSelection(false); textViewer.setSelectedRange(point.x, 0); selection = null; } el...
diff --git a/src/main/java/me/eccentric_nz/TARDIS/files/TARDISUpdateChecker.java b/src/main/java/me/eccentric_nz/TARDIS/files/TARDISUpdateChecker.java index 135fd536a..ab97dcaf4 100644 --- a/src/main/java/me/eccentric_nz/TARDIS/files/TARDISUpdateChecker.java +++ b/src/main/java/me/eccentric_nz/TARDIS/files/TARDISUpdate...
false
true
public void checkVersion(Player p) { if (exists(tardisURL)) { FileConfiguration pluginYml = YamlConfiguration.loadConfiguration(plugin.pm.getPlugin("TARDIS").getResource("plugin.yml")); String verStr = pluginYml.getString("version"); if (verStr.contains("-")) { ...
public void checkVersion(Player p) { if (exists(tardisURL)) { FileConfiguration pluginYml = YamlConfiguration.loadConfiguration(plugin.pm.getPlugin("TARDIS").getResource("plugin.yml")); String verStr = pluginYml.getString("version"); boolean notfinal = false; ...
diff --git a/src/com/grantlandchew/view/VerticalPager.java b/src/com/grantlandchew/view/VerticalPager.java index ab6e26c..0909fe9 100644 --- a/src/com/grantlandchew/view/VerticalPager.java +++ b/src/com/grantlandchew/view/VerticalPager.java @@ -1,662 +1,663 @@ package com.grantlandchew.view; /* * Copyright (C) 20...
false
true
public boolean onTouchEvent(MotionEvent ev) { if (mVelocityTracker == null) { mVelocityTracker = VelocityTracker.obtain(); } mVelocityTracker.addMovement(ev); final int action = ev.getAction(); final float x = ev.getX(); final float y = ev.getY(); ...
public boolean onTouchEvent(MotionEvent ev) { if (mVelocityTracker == null) { mVelocityTracker = VelocityTracker.obtain(); } mVelocityTracker.addMovement(ev); final int action = ev.getAction(); final float x = ev.getX(); final float y = ev.getY(); ...
diff --git a/src/com/sk/util/parse/search/GoogleSearcher.java b/src/com/sk/util/parse/search/GoogleSearcher.java index 128d5df..b8dda11 100644 --- a/src/com/sk/util/parse/search/GoogleSearcher.java +++ b/src/com/sk/util/parse/search/GoogleSearcher.java @@ -1,67 +1,67 @@ package com.sk.util.parse.search; import java...
true
true
public boolean parse() throws IllegalStateException { Document doc = this.doc.get(); if (doc == null) throw new IllegalStateException(); Set<String> found = new LinkedHashSet<>(); for (Element e : doc.select("li.g div.rc div.f.kv cite")) { String cur = e.text(); Matcher m = accept.matcher(cur); if ...
public boolean parse() throws IllegalStateException { Document doc = this.doc.get(); if (doc == null) throw new IllegalStateException(); Set<String> found = new LinkedHashSet<>(); for (Element e : doc.select("li.g div.rc h3.r a")) { String cur = e.attr("href"); Matcher m = accept.matcher(cur); if (...
diff --git a/src/test/java/be/noselus/repository/PoliticianRepositoryTest.java b/src/test/java/be/noselus/repository/PoliticianRepositoryTest.java index 73a448e..3b33227 100644 --- a/src/test/java/be/noselus/repository/PoliticianRepositoryTest.java +++ b/src/test/java/be/noselus/repository/PoliticianRepositoryTest.java...
true
true
public void deputyWithNoSite() { final List<Person> deputies = repo.getPoliticians(); final Person person = deputies.get(1); //BASTIN Jean-Paul;cdH;Al'Gofe, 19;4960;G'DOUMONT-MALMEDY;080 79 96 66;087 32 22 69;sec.jpbastin@lecdh.be; assertEquals("BASTIN Jean-Paul", person.full_name); ...
public void deputyWithNoSite() { final List<Person> deputies = repo.getPoliticians(); final Person person = deputies.get(1); //BASTIN Jean-Paul;cdH;Al'Gofe, 19;4960;G'DOUMONT-MALMEDY;080 79 96 66;087 32 22 69;sec.jpbastin@lecdh.be; assertEquals("BASTIN Jean-Paul", person.full_name); ...
diff --git a/src/com/mpower/controller/ReportWizardFormController.java b/src/com/mpower/controller/ReportWizardFormController.java index a8801dd..f244d8e 100644 --- a/src/com/mpower/controller/ReportWizardFormController.java +++ b/src/com/mpower/controller/ReportWizardFormController.java @@ -1,764 +1,767 @@ package co...
true
true
protected Map referenceData(HttpServletRequest request, Object command, Errors errors, int page) throws Exception { ReportWizard wiz = (ReportWizard) command; Map refData = new HashMap(); refData.put("page",page); refData.put("maxpages", getPages().length-6); // 5 pages that are not actual steps // see ...
protected Map referenceData(HttpServletRequest request, Object command, Errors errors, int page) throws Exception { ReportWizard wiz = (ReportWizard) command; Map refData = new HashMap(); refData.put("page",page); refData.put("maxpages", getPages().length-6); // 5 pages that are not actual steps // see ...
diff --git a/src/main/java/me/greatman/plugins/inn/IBlockListener.java b/src/main/java/me/greatman/plugins/inn/IBlockListener.java index 7c124c9..b010d0a 100644 --- a/src/main/java/me/greatman/plugins/inn/IBlockListener.java +++ b/src/main/java/me/greatman/plugins/inn/IBlockListener.java @@ -1,43 +1,43 @@ package me.g...
true
true
public void onBlockBreak(BlockBreakEvent event){ if (event.getBlock().getType() == Material.WOODEN_DOOR){ int x,y,z; Location loc = event.getBlock().getLocation(); x = loc.getBlockX(); y = loc.getBlockY(); z = loc.getBlockZ(); if (Inn.doorAlreadyExists(x,y,...
public void onBlockBreak(BlockBreakEvent event){ if (event.getBlock().getType() == Material.WOODEN_DOOR){ int x,y,z; Location loc = event.getBlock().getLocation(); x = loc.getBlockX(); y = loc.getBlockY(); z = loc.getBlockZ(); if (Inn.doorAlreadyExists(x,y,...
diff --git a/src/core/org/pathvisio/model/GraphLink.java b/src/core/org/pathvisio/model/GraphLink.java index debc57e8..ba7256d6 100644 --- a/src/core/org/pathvisio/model/GraphLink.java +++ b/src/core/org/pathvisio/model/GraphLink.java @@ -1,131 +1,131 @@ // PathVisio, // a tool for data visualization and analysis usi...
true
true
public static Set<GraphRefContainer> getReferences(GraphIdContainer gid, Pathway gd) { Set<GraphRefContainer> result = new HashSet<GraphRefContainer>(); if (gd == null) return result; List<GraphRefContainer> reflist = gd.getReferringObjects(gid.getGraphId()); if (gid.getGraphId() != null && gid.ge...
public static Set<GraphRefContainer> getReferences(GraphIdContainer gid, Pathway gd) { Set<GraphRefContainer> result = new HashSet<GraphRefContainer>(); if (gd == null) return result; List<GraphRefContainer> reflist = gd.getReferringObjects(gid.getGraphId()); if (gid.getGraphId() != null && !gid.g...
diff --git a/Chat/src/States/ConnectedServer.java b/Chat/src/States/ConnectedServer.java index 7cd3b92..8904ae5 100644 --- a/Chat/src/States/ConnectedServer.java +++ b/Chat/src/States/ConnectedServer.java @@ -1,32 +1,32 @@ package States; import Communications.*; import Messages.*; import Utilities.User; publi...
true
true
public State process(String input, TCP tcp, UDPSender us, Message udpMessage, Message tcpMessage, long timeEnteredState,boolean firstCall) { if(firstCall){ System.out.println("You are connected to a server.\nType :update to try to bind your name to your ip.\nType :query <username> to ask the server for the ip of ...
public State process(String input, TCP tcp, UDPSender us, Message udpMessage, Message tcpMessage, long timeEnteredState,boolean firstCall) { if(firstCall){ System.out.println("You are connected to a server.\nType :update to try to bind your name to your ip.\nType :query <username> to ask the server for the ip of ...
diff --git a/src/com/mistphizzle/donationpoints/plugin/SignListener.java b/src/com/mistphizzle/donationpoints/plugin/SignListener.java index 5b8c5fa..e1d0d4f 100644 --- a/src/com/mistphizzle/donationpoints/plugin/SignListener.java +++ b/src/com/mistphizzle/donationpoints/plugin/SignListener.java @@ -1,31 +1,31 @@ pack...
true
true
public void onSignChance(SignChangeEvent e) { if (e.isCancelled()) return; if (e.getPlayer() == null) return; Player p = e.getPlayer(); String line1 = e.getLine(0); // Permissions if (line1.equalsIgnoreCase("[Premium]") && !p.hasPermission("donationpoints.sign.create")) { e.setCancelled(true); p.s...
public void onSignChance(SignChangeEvent e) { if (e.isCancelled()) return; if (e.getPlayer() == null) return; Player p = e.getPlayer(); String line1 = e.getLine(0); // Permissions if (line1.equalsIgnoreCase("[Premium]") && !p.hasPermission("donationpoints.sign.create")) { e.setCancelled(true); p.s...
diff --git a/Elesmyr/src/net/sekien/pepper/IntroState.java b/Elesmyr/src/net/sekien/pepper/IntroState.java index e4bc3b2..f803bcc 100644 --- a/Elesmyr/src/net/sekien/pepper/IntroState.java +++ b/Elesmyr/src/net/sekien/pepper/IntroState.java @@ -1,119 +1,119 @@ /* * This Source Code Form is subject to the terms of th...
true
true
public void render(Renderer renderer, int w, int h, boolean sel) { w = Display.getWidth(); h = Display.getHeight(); int ires = renderer.gc.getHeight(); w = (int) (ires*(1920f/1080f)); h = ires; if (skipintro) { time = 10*(int) stepTime; } float bx, by, bw, bh; bw = sekien.getWidth()*w/1920; bh ...
public void render(Renderer renderer, int w, int h, boolean sel) { w = Display.getWidth(); h = Display.getHeight(); int ires = renderer.gc.getHeight(); w = (int) (ires*(1920f/1080f)); h = ires; if (skipintro) { time = 10*(int) stepTime; } float bx, by, bw, bh; bw = sekien.getWidth()*w/1920; bh ...
diff --git a/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/frameworkadmin/equinox/internal/EquinoxManipulatorImpl.java b/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/frameworkadmin/equinox/internal/EquinoxManipulatorImpl.java index c7d0250ed..33db5287b 100644 -...
true
true
public void save(boolean backup) throws IOException, FrameworkAdminRuntimeException { Log.log(LogService.LOG_DEBUG, this, "save()", "BEGIN"); SimpleBundlesState.checkAvailability(fwAdmin); try { updateAccordingToExpectedState(this.getBundlesState()); } catch (IllegalStateException e) { // ignore. } ...
public void save(boolean backup) throws IOException, FrameworkAdminRuntimeException { Log.log(LogService.LOG_DEBUG, this, "save()", "BEGIN"); SimpleBundlesState.checkAvailability(fwAdmin); try { updateAccordingToExpectedState(this.getBundlesState()); } catch (IllegalStateException e) { // ignore. } ...
diff --git a/src/main/java/ch/entwine/weblounge/common/impl/content/ResourceURIImpl.java b/src/main/java/ch/entwine/weblounge/common/impl/content/ResourceURIImpl.java index fbb1eba38..a65637917 100644 --- a/src/main/java/ch/entwine/weblounge/common/impl/content/ResourceURIImpl.java +++ b/src/main/java/ch/entwine/weblou...
true
true
public boolean equals(Object obj) { if (obj instanceof ResourceURI) { ResourceURI uri = (ResourceURI) obj; if (!site.equals(uri.getSite())) return false; if (path == null && uri.getPath() != null) return false; if (path != null && !path.equals(uri.getPath())) return...
public boolean equals(Object obj) { if (obj instanceof ResourceURI) { ResourceURI uri = (ResourceURI) obj; if (!site.equals(uri.getSite())) return false; if (type == null && uri.getType() != null) return false; if (type != null && !type.equals(uri.getType())) return...
diff --git a/ide/eclipse/registry/org.wso2.developerstudio.eclipse.artifact.registry/src/org/wso2/developerstudio/eclipse/artifact/registry/project/export/RegistryArtifactHandler.java b/ide/eclipse/registry/org.wso2.developerstudio.eclipse.artifact.registry/src/org/wso2/developerstudio/eclipse/artifact/registry/project...
false
true
public List<IResource> exportArtifact(IProject project) throws Exception { if (project.hasNature(GENERAL_PROJECT_NATURE)) { NullProgressMonitor nullProgressMonitor = new NullProgressMonitor(); project.build(IncrementalProjectBuilder.FULL_BUILD, nullProgressMonitor); IFile RegistryResourceFile = project....
public List<IResource> exportArtifact(IProject project) throws Exception { if (project.hasNature(GENERAL_PROJECT_NATURE)) { NullProgressMonitor nullProgressMonitor = new NullProgressMonitor(); project.build(IncrementalProjectBuilder.FULL_BUILD, nullProgressMonitor); IFile RegistryResourceFile = project....
diff --git a/trunk/CruxWidgets/src/br/com/sysmap/crux/widgets/client/maskedtextbox/MaskedTextBoxBaseFormatter.java b/trunk/CruxWidgets/src/br/com/sysmap/crux/widgets/client/maskedtextbox/MaskedTextBoxBaseFormatter.java index e84c47233..305a6ace0 100644 --- a/trunk/CruxWidgets/src/br/com/sysmap/crux/widgets/client/maske...
true
true
public void removeMask(Widget widget) { if (widget instanceof MaskedTextBox) { MaskedTextBox maskedTxt = (MaskedTextBox) widget; if (maskedTxt.maskedInput != null && maskedTxt.maskedInput.getTextBox() != null && maskedTxt.maskedInput.getTextBox().equals(widget)); { maskedTxt.maskedInput.removeMas...
public void removeMask(Widget widget) { if (widget instanceof MaskedTextBox) { MaskedTextBox maskedTxt = (MaskedTextBox) widget; if (maskedTxt.maskedInput != null && maskedTxt.maskedInput.getTextBox() != null && maskedTxt.maskedInput.getTextBox().equals(widget)) { maskedTxt.maskedInput.removeMask...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/InstalledJREsBlock.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/InstalledJREsBlock.java index f87b01f59..786bbbcc7 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/jres/InstalledJREsBlo...
true
true
public void createControl(Composite ancestor) { Font font = ancestor.getFont(); Composite parent= SWTFactory.createComposite(ancestor, font, 2, 1, GridData.FILL_BOTH); fControl = parent; SWTFactory.createLabel(parent, JREMessages.InstalledJREsBlock_15, 2); fTable= new Table(parent, SWT.CHECK | SWT...
public void createControl(Composite ancestor) { Font font = ancestor.getFont(); Composite parent= SWTFactory.createComposite(ancestor, font, 2, 1, GridData.FILL_BOTH); fControl = parent; SWTFactory.createLabel(parent, JREMessages.InstalledJREsBlock_15, 2); fTable= new Table(parent, SWT.CHECK | SWT...
diff --git a/Essentials/src/com/earth2me/essentials/textreader/KeywordReplacer.java b/Essentials/src/com/earth2me/essentials/textreader/KeywordReplacer.java index d8e59030..4c875098 100644 --- a/Essentials/src/com/earth2me/essentials/textreader/KeywordReplacer.java +++ b/Essentials/src/com/earth2me/essentials/textreade...
true
true
private void replaceKeywords(final CommandSender sender) { String displayName, ipAddress, balance, mails, world; String worlds, online, unique, playerlist, date, time; String worldTime12, worldTime24, worldDate, plugins; String userName, address, version; if (sender instanceof Player) { final User user...
private void replaceKeywords(final CommandSender sender) { String displayName, ipAddress, balance, mails, world; String worlds, online, unique, playerlist, date, time; String worldTime12, worldTime24, worldDate, plugins; String userName, address, version; if (sender instanceof Player) { final User user...
diff --git a/src/ultraextreme/view/GameObjectSprite.java b/src/ultraextreme/view/GameObjectSprite.java index 0f2ff37..0ccb4da 100644 --- a/src/ultraextreme/view/GameObjectSprite.java +++ b/src/ultraextreme/view/GameObjectSprite.java @@ -1,138 +1,138 @@ /* ============================================================ ...
true
true
public GameObjectSprite(final IEntity entity, final VertexBufferObjectManager vertexBufferObjectManager, final ITextureRegion texture, Vector2d imageOffset) { // Change the width and height to the entity's width and height to squeeze the picture super((float) (entity.getPosition().getX()-imageOffset.x), (fl...
public GameObjectSprite(final IEntity entity, final VertexBufferObjectManager vertexBufferObjectManager, final ITextureRegion texture, Vector2d imageOffset) { // Change the width and height to the entity's width and height to squeeze the picture super((float) (entity.getPosition().getX()-imageOffset.x), (fl...
diff --git a/plugins/org.eclipse.xtext.xtend2.ui/src/org/eclipse/xtext/xtend2/ui/labeling/Xtend2DescriptionLabelProvider.java b/plugins/org.eclipse.xtext.xtend2.ui/src/org/eclipse/xtext/xtend2/ui/labeling/Xtend2DescriptionLabelProvider.java index 2d79c81ec..26d26d069 100644 --- a/plugins/org.eclipse.xtext.xtend2.ui/src...
true
true
public Object image(IEObjectDescription element) { EClass eClass = element.getEClass(); if (eClass == XTEND_FILE) return images.forFile(); else if (eClass == XTEND_IMPORT) return images.forImport(); else if (eClass == XTEND_CLASS || eClass == TypesPackage.Literals.JVM_GENERIC_TYPE) return images.forCl...
public Object image(IEObjectDescription element) { EClass eClass = element.getEClass(); if (eClass == XTEND_FILE) return images.forFile(); else if (eClass == XTEND_IMPORT) return images.forImport(); else if (eClass == XTEND_CLASS || eClass == TypesPackage.Literals.JVM_GENERIC_TYPE) return images.forCl...
diff --git a/src/vahdin/view/NewBustView.java b/src/vahdin/view/NewBustView.java index d144d0b..e9247ac 100644 --- a/src/vahdin/view/NewBustView.java +++ b/src/vahdin/view/NewBustView.java @@ -1,226 +1,227 @@ package vahdin.view; import java.io.File; import java.sql.SQLException; import java.util.Date; import ja...
true
true
public void enter(ViewChangeEvent event) { String[] s = event.getParameters().split("/"); markId = Integer.parseInt(s[0]); final User user = ui.getCurrentUser(); final String userId = user.getUserId(); lat.setReadOnly(true); lon.setReadOnly(true); date.set...
public void enter(ViewChangeEvent event) { String[] s = event.getParameters().split("/"); markId = Integer.parseInt(s[0]); final User user = ui.getCurrentUser(); final String userId = user.getUserId(); lat.setReadOnly(true); lon.setReadOnly(true); date.set...
diff --git a/org.jtestr/src/org/jtestr/ant/JtestRSuite.java b/org.jtestr/src/org/jtestr/ant/JtestRSuite.java index cc53e4511..d40ce87ae 100644 --- a/org.jtestr/src/org/jtestr/ant/JtestRSuite.java +++ b/org.jtestr/src/org/jtestr/ant/JtestRSuite.java @@ -1,395 +1,397 @@ /* * See the files LICENSE in distribution for l...
false
true
public static String[] separateStackTraceElements(String input) { String[] geh = input.split(":"); String file = null; String other = null; String temp = null; int index = 0; int colons = 0; switch(geh.length) { case 2: // Handle cases lik...
public static String[] separateStackTraceElements(String input) { String[] geh = input.split(":"); String file = null; String other = null; String temp = null; int index = 0; int colons = 0; switch(geh.length) { case 1: return new String[]...
diff --git a/loci/visbio/view/TransformHandler.java b/loci/visbio/view/TransformHandler.java index 3a430a8..7d1cd41 100644 --- a/loci/visbio/view/TransformHandler.java +++ b/loci/visbio/view/TransformHandler.java @@ -1,599 +1,601 @@ // // TransformHandler.java // /* VisBio application for visualization of multid...
false
true
protected void rebuild() { synchronized (animSync) { TransformLink[] lnk = new TransformLink[links.size()]; links.copyInto(lnk); // clear old transforms DisplayImpl display = window.getDisplay(); try { DisplayUtil.setDisplayDisabled(display, true); display.removeAllR...
protected void rebuild() { synchronized (animSync) { TransformLink[] lnk = new TransformLink[links.size()]; links.copyInto(lnk); // clear old transforms DisplayImpl display = window.getDisplay(); try { DisplayUtil.setDisplayDisabled(display, true); display.removeAllR...
diff --git a/tool/src/test/org/sakaiproject/signup/tool/jsf/SignupMeetingsBeanTest.java b/tool/src/test/org/sakaiproject/signup/tool/jsf/SignupMeetingsBeanTest.java index 0400aea..af43eee 100644 --- a/tool/src/test/org/sakaiproject/signup/tool/jsf/SignupMeetingsBeanTest.java +++ b/tool/src/test/org/sakaiproject/signup/...
true
true
public void testShouldBehaveConsistentlyWithCategories() throws Exception { ArrayList<String> locations = new ArrayList<String>(); setMockedLocations(locations); locations.add("Extra location"); Assert.assertFalse(_signupMeetings.getAllLocations().isEmpty()); // make a cheeky call to categories SignupMee...
public void testShouldBehaveConsistentlyWithCategories() throws Exception { ArrayList<String> locations = new ArrayList<String>(); setMockedLocations(locations); locations.add("Extra location"); Assert.assertFalse(_signupMeetings.getAllLocations().isEmpty()); // make a cheeky call to categories SignupMee...
diff --git a/org.openntf.domino/src/org/openntf/domino/impl/Session.java b/org.openntf.domino/src/org/openntf/domino/impl/Session.java index 324524549..1a1fc4280 100644 --- a/org.openntf.domino/src/org/openntf/domino/impl/Session.java +++ b/org.openntf.domino/src/org/openntf/domino/impl/Session.java @@ -1,1561 +1,1563 ...
false
true
public org.openntf.domino.Database getDatabase(final String server, final String db, final boolean createOnFail) { // try { lotus.domino.Database database = null; org.openntf.domino.Database result = null; String key = db; if (server.length() > 1) { key = server + "!!" + db; } result = databases_.get(...
public org.openntf.domino.Database getDatabase(final String server, final String db, final boolean createOnFail) { // try { lotus.domino.Database database = null; org.openntf.domino.Database result = null; String key = db; if (null != server && server.length() > 0) { key = server + "!!" + db; } else { ...
diff --git a/mod/jodd/test/jodd/servlet/ServletUtilTest.java b/mod/jodd/test/jodd/servlet/ServletUtilTest.java index 5f0a006ff..3b98d5409 100644 --- a/mod/jodd/test/jodd/servlet/ServletUtilTest.java +++ b/mod/jodd/test/jodd/servlet/ServletUtilTest.java @@ -1,22 +1,22 @@ // Copyright (c) 2003-2009, Jodd Team (jodd.org)...
false
true
public void testPrepareParameters() { String[] p = new String[] {"one", "", " three ", null, "five"}; p = ServletUtil.prepareParameters(p, true, false, false, false); assertEquals("three", p[2]); assertNotNull(p[1]); assertNull(p[3]); p = ServletUtil.prepareParameters(p, true, true, false, false); assert...
public void testPrepareParameters() { String[] p = new String[] {"one", "", " three ", null, "five"}; p = ServletUtil.prepareParameters(p, true, false, false); assertEquals("three", p[2]); assertNotNull(p[1]); assertNull(p[3]); p = ServletUtil.prepareParameters(p, true, true, false); assertNull(p[1]); ...
diff --git a/src/test/java/com/concursive/connect/web/modules/common/social/geotagging/utils/USAGeocodeAPITest.java b/src/test/java/com/concursive/connect/web/modules/common/social/geotagging/utils/USAGeocodeAPITest.java index eb3aa20..f5444f9 100644 --- a/src/test/java/com/concursive/connect/web/modules/common/social/...
true
true
public void testUSAGeocode() throws Exception { USAddressGeocoder geo = new USAddressGeocoder(); geo.setAddress("223 East City Hall Avenue"); geo.setCity("Norfolk"); geo.setState("VA"); geo.setZip("23510"); boolean result = geo.geocode(); if (result) { // Only allows 5,000 tries per ...
public void testUSAGeocode() throws Exception { USAddressGeocoder geo = new USAddressGeocoder(); geo.setAddress("223 East City Hall Avenue"); geo.setCity("Norfolk"); geo.setState("VA"); geo.setZip("23510"); boolean result = geo.geocode(); if (result) { // Only allows 5,000 tries per ...
diff --git a/dev/core/src/com/google/gwt/core/linker/XSLinker.java b/dev/core/src/com/google/gwt/core/linker/XSLinker.java index 185c29d0c..bdff4f774 100644 --- a/dev/core/src/com/google/gwt/core/linker/XSLinker.java +++ b/dev/core/src/com/google/gwt/core/linker/XSLinker.java @@ -1,118 +1,120 @@ /* * Copyright 2008 ...
true
true
protected String getModulePrefix(TreeLogger logger, LinkerContext context, String strongName) throws UnableToCompleteException { DefaultTextOutput out = new DefaultTextOutput(context.isOutputCompact()); out.print("(function(){"); out.newlineOpt(); // Setup the well-known variables. // ...
protected String getModulePrefix(TreeLogger logger, LinkerContext context, String strongName) throws UnableToCompleteException { DefaultTextOutput out = new DefaultTextOutput(context.isOutputCompact()); out.print("(function(){"); out.newlineOpt(); // Setup the well-known variables. // ...
diff --git a/web/wcs/src/main/java/org/geoserver/wcs/web/WCSAdminPage.java b/web/wcs/src/main/java/org/geoserver/wcs/web/WCSAdminPage.java index e3bf1f7..170f2aa 100644 --- a/web/wcs/src/main/java/org/geoserver/wcs/web/WCSAdminPage.java +++ b/web/wcs/src/main/java/org/geoserver/wcs/web/WCSAdminPage.java @@ -1,55 +1,55 ...
false
true
protected void build(IModel info, Form form) { // overview policy form.add(new DropDownChoice("overviewPolicy", Arrays.asList(OverviewPolicy.values()), new OverviewPolicyRenderer())); form.add(new CheckBox("subsamplingEnabled")); // resource limits TextField maxInput...
protected void build(IModel info, Form form) { // overview policy form.add(new DropDownChoice("overviewPolicy", Arrays.asList(OverviewPolicy.values()), new OverviewPolicyRenderer())); form.add(new CheckBox("subsamplingEnabled")); // resource limits TextField maxInput...
diff --git a/src/main/java/com/mcbouncer/bukkit/MCBouncer.java b/src/main/java/com/mcbouncer/bukkit/MCBouncer.java index b040d49..45b3025 100755 --- a/src/main/java/com/mcbouncer/bukkit/MCBouncer.java +++ b/src/main/java/com/mcbouncer/bukkit/MCBouncer.java @@ -1,82 +1,83 @@ package com.mcbouncer.bukkit; import com....
true
true
public void onEnable() { MCBConfiguration.load(this.getDataFolder()); setupPermissions(); MCBPlayerListener pl = new MCBPlayerListener(this); PluginManager pm = this.getServer().getPluginManager(); pm.registerEvent(Event.Type.PLAYER_JOIN, pl, Event.Priority.High, this); ...
public void onEnable() { MCBConfiguration.load(this.getDataFolder()); setupPermissions(); MCBPlayerListener pl = new MCBPlayerListener(this); PluginManager pm = this.getServer().getPluginManager(); pm.registerEvent(Event.Type.PLAYER_JOIN, pl, Event.Priority.Highest, this); ...
diff --git a/src/org/beequeue/json/BuzzSchemaBuilder.java b/src/org/beequeue/json/BuzzSchemaBuilder.java index 0ab6ff3..7e77bb2 100644 --- a/src/org/beequeue/json/BuzzSchemaBuilder.java +++ b/src/org/beequeue/json/BuzzSchemaBuilder.java @@ -1,113 +1,115 @@ /** ==== BEGIN LICENSE ===== Copyright 2012 - BeeQueue.org...
false
true
private BuzzAttribute recurseSchema(JavaType jt) { BuzzAttribute type = new BuzzAttribute(); type.type = BuiltInType.detect(jt); if(!type.type.isPrimitive()){ if(type.type == BuiltInType.MAP || type.type == BuiltInType.ARRAY ){ JavaType contentType = jt.getContentType(); type.copyTypeIdAsContent(recur...
private BuzzAttribute recurseSchema(JavaType jt) { BuzzAttribute type = new BuzzAttribute(); type.type = BuiltInType.detect(jt); if(type.type.isPrimitive()){ if(type.type == BuiltInType.ENUM ){ Class<?> rawClass = jt.getRawClass(); type.className = rawClass.getName() ; BuzzClass classDef = sche...
diff --git a/software/ncimbrowser/src/java/gov/nih/nci/evs/browser/utils/DataUtils.java b/software/ncimbrowser/src/java/gov/nih/nci/evs/browser/utils/DataUtils.java index 3c08cc1a..900af07b 100644 --- a/software/ncimbrowser/src/java/gov/nih/nci/evs/browser/utils/DataUtils.java +++ b/software/ncimbrowser/src/java/gov/ni...
false
true
public Vector getSubconceptCodes(String scheme, String version, String code) { //throws LBException{ Vector v = new Vector(); try { //EVSApplicationService lbSvc = new RemoteServerUtil().createLexBIGService(); LexBIGService lbSvc = RemoteServerUtil.createLexBIGService(); ...
public Vector getSubconceptCodes(String scheme, String version, String code) { //throws LBException{ Vector v = new Vector(); try { //EVSApplicationService lbSvc = new RemoteServerUtil().createLexBIGService(); LexBIGService lbSvc = RemoteServerUtil.createLexBIGService(); ...
diff --git a/src/main/java/com/github/eirslett/maven/plugins/frontend/NodeAndNPMInstaller.java b/src/main/java/com/github/eirslett/maven/plugins/frontend/NodeAndNPMInstaller.java index 85b88a5..8ad9ab6 100644 --- a/src/main/java/com/github/eirslett/maven/plugins/frontend/NodeAndNPMInstaller.java +++ b/src/main/java/com...
true
true
private void installNodeDefault() throws MojoFailureException { String downloadUrl = ""; try { log.info("Installing node version " + nodeVersion); final String longNodeFilename = DOWNLOAD_ROOT + platform.getLongNodeFilename(nodeVersion); downloadUrl = DOWNLOAD_ROO...
private void installNodeDefault() throws MojoFailureException { String downloadUrl = ""; try { log.info("Installing node version " + nodeVersion); final String longNodeFilename = platform.getLongNodeFilename(nodeVersion); downloadUrl = DOWNLOAD_ROOT + platform.get...
diff --git a/maven-plugin-tools-javadoc/src/test/java/org/apache/maven/tools/plugin/javadoc/JavadocReportTest.java b/maven-plugin-tools-javadoc/src/test/java/org/apache/maven/tools/plugin/javadoc/JavadocReportTest.java index 028536e..86cb02a 100644 --- a/maven-plugin-tools-javadoc/src/test/java/org/apache/maven/tools/p...
true
true
public void testMojoTaglets() throws Exception { File testPom = new File( getBasedir(), "src/test/resources/unit/javadoc/javadoc-plugin-config.xml" ); PlexusConfiguration pluginConfiguration = extractPluginConfiguration( "maven-javadoc-plugin", testPom ); JavadocReport mojo = (J...
public void testMojoTaglets() throws Exception { File testPom = new File( getBasedir(), "target/test-classes/unit/javadoc/javadoc-plugin-config.xml" ); PlexusConfiguration pluginConfiguration = extractPluginConfiguration( "maven-javadoc-plugin", testPom ); JavadocReport mojo = (...
diff --git a/net.solarnetwork.node.io.rxtx/src/net/solarnetwork/node/io/rxtx/SerialPortSupport.java b/net.solarnetwork.node.io.rxtx/src/net/solarnetwork/node/io/rxtx/SerialPortSupport.java index c6233fa8..269a8adc 100644 --- a/net.solarnetwork.node.io.rxtx/src/net/solarnetwork/node/io/rxtx/SerialPortSupport.java +++ b/...
false
true
private boolean handleSerialEventWithoutTimeout(SerialPortEvent event, InputStream in, ByteArrayOutputStream sink, byte[] magicBytes, int readLength) { int sinkSize = sink.size(); boolean append = sinkSize > 0; byte[] buf = new byte[Math.min(readLength, 1024)]; try { int len = -1; final int max = Math...
private boolean handleSerialEventWithoutTimeout(SerialPortEvent event, InputStream in, ByteArrayOutputStream sink, byte[] magicBytes, int readLength) { int sinkSize = sink.size(); boolean append = sinkSize > 0; byte[] buf = new byte[Math.min(readLength, 1024)]; if ( eventLog.isTraceEnabled() ) { eventLog...
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java index 85d47a91..6b4d3f4a 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher2/LauncherModel.java @@ -1,1242 +1,1244 @@ /* * Copyright (C) 2008 The Android Open Source Project ...
true
true
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
diff --git a/src/com/dmdirc/ui/textpane/TextPaneCanvas.java b/src/com/dmdirc/ui/textpane/TextPaneCanvas.java index 83e9f9e09..e2a226d73 100644 --- a/src/com/dmdirc/ui/textpane/TextPaneCanvas.java +++ b/src/com/dmdirc/ui/textpane/TextPaneCanvas.java @@ -1,581 +1,579 @@ /* * Copyright (c) 2006-2007 Chris Smith, Shane ...
false
true
public void paintComponent(final Graphics g) { final Graphics2D graphics2D = (Graphics2D) g; final float formatWidth = getWidth(); final float formatHeight = getHeight(); g.setColor(textPane.getBackground()); g.fillRect(0, 0, (int) formatWidth, (int) formatH...
public void paintComponent(final Graphics g) { final Graphics2D graphics2D = (Graphics2D) g; final float formatWidth = getWidth(); final float formatHeight = getHeight(); g.setColor(textPane.getBackground()); g.fillRect(0, 0, (int) formatWidth, (int) formatH...
diff --git a/hazelcast-client/src/main/java/com/hazelcast/client/connection/SmartClientConnectionManager.java b/hazelcast-client/src/main/java/com/hazelcast/client/connection/SmartClientConnectionManager.java index 3ea83f3ad8..ff0daf3b61 100644 --- a/hazelcast-client/src/main/java/com/hazelcast/client/connection/SmartC...
true
true
public Connection getConnection(Address address) throws IOException { checkLive(); if (address == null) { throw new IllegalArgumentException("Target address is required!"); } final ObjectPool<ConnectionWrapper> pool = getConnectionPool(address); if (pool == null){...
public Connection getConnection(Address address) throws IOException { checkLive(); if (address == null) { throw new IllegalArgumentException("Target address is required!"); } final ObjectPool<ConnectionWrapper> pool = getConnectionPool(address); if (pool == null){...
diff --git a/src/Philosopher.java b/src/Philosopher.java index 20e2f38..8f63447 100644 --- a/src/Philosopher.java +++ b/src/Philosopher.java @@ -1,147 +1,147 @@ /** * @author Greg Chambers * @author Jacob Juby * @author Yin Poon */ import java.util.Random; /** * Philosopher class that extends thread. C...
true
true
public void run(){ int runCount = this.nTimes; long sleepAmount; long eatAmount; Random rndGen = new Random(); // Run while infinite run is set to true or if the counter hasn't // hit zero yet. while(infRun || (!(runCount <= 0))){ // Sleep for a random amount of time. if(this.thinkMillis != 0){ ...
public void run(){ int runCount = this.nTimes; long sleepAmount; long eatAmount; Random rndGen = new Random(); // Run while infinite run is set to true or if the counter hasn't // hit zero yet. while(infRun || (!(runCount <= 0))){ // Sleep for a random amount of time. if(this.thinkMillis != 0){ ...
diff --git a/components/bio-formats/src/loci/formats/in/LIFReader.java b/components/bio-formats/src/loci/formats/in/LIFReader.java index 2d76f2462..84bface99 100644 --- a/components/bio-formats/src/loci/formats/in/LIFReader.java +++ b/components/bio-formats/src/loci/formats/in/LIFReader.java @@ -1,386 +1,394 @@ // //...
false
true
protected void initFile(String id) throws FormatException, IOException { debug("LIFReader.initFile(" + id + ")"); super.initFile(id); in = new RandomAccessInputStream(id); offsets = new Vector<Long>(); in.order(true); // read the header status("Reading header"); byte checkOne = in....
protected void initFile(String id) throws FormatException, IOException { debug("LIFReader.initFile(" + id + ")"); super.initFile(id); in = new RandomAccessInputStream(id); offsets = new Vector<Long>(); in.order(true); // read the header status("Reading header"); byte checkOne = in....
diff --git a/src/main/src/main/java/org/geoserver/config/util/XStreamPersister.java b/src/main/src/main/java/org/geoserver/config/util/XStreamPersister.java index 41170fda98..25037dc1a1 100644 --- a/src/main/src/main/java/org/geoserver/config/util/XStreamPersister.java +++ b/src/main/src/main/java/org/geoserver/config/...
true
true
protected XStreamPersister(HierarchicalStreamDriver streamDriver) { //control the order in which fields are sorted SortableFieldKeySorter sorter = new SortableFieldKeySorter(); sorter.registerFieldOrder( CatalogImpl.class, new String[]{ "workspaces", "namespaces", "stores", "styles", ...
protected XStreamPersister(HierarchicalStreamDriver streamDriver) { //control the order in which fields are sorted SortableFieldKeySorter sorter = new SortableFieldKeySorter(); sorter.registerFieldOrder( CatalogImpl.class, new String[]{ "workspaces", "namespaces", "stores", "styles", ...
diff --git a/ShortPaymentGenerator/src/org/spayd/utilities/SpaydValidator.java b/ShortPaymentGenerator/src/org/spayd/utilities/SpaydValidator.java index 3fd70e6..9538e3f 100644 --- a/ShortPaymentGenerator/src/org/spayd/utilities/SpaydValidator.java +++ b/ShortPaymentGenerator/src/org/spayd/utilities/SpaydValidator.java...
false
true
public static List<SpaydValidationError> validatePaymentString(String paymentString) throws UnsupportedEncodingException { List<SpaydValidationError> errors = new LinkedList<SpaydValidationError>(); if (!Charset.forName("ISO-8859-1").newEncoder().canEncode(paymentString)) { // check encodin...
public static List<SpaydValidationError> validatePaymentString(String paymentString) throws UnsupportedEncodingException { List<SpaydValidationError> errors = new LinkedList<SpaydValidationError>(); if (!Charset.forName("ISO-8859-1").newEncoder().canEncode(paymentString)) { // check encodin...
diff --git a/bitrepository-service/src/main/java/org/bitrepository/service/workflow/JobTimerTask.java b/bitrepository-service/src/main/java/org/bitrepository/service/workflow/JobTimerTask.java index 445c2336..ee5f389e 100644 --- a/bitrepository-service/src/main/java/org/bitrepository/service/workflow/JobTimerTask.java ...
true
true
public String runWorkflow() { try { if (workflow.currentState().equals(Workflow.NOT_RUNNING)) { log.info("Starting the workflow: " + getName()); workflow.start(); if (interval < 0) { nextRun = new Date(System.currentTimeMillis()...
public String runWorkflow() { try { if (workflow.currentState().equals(Workflow.NOT_RUNNING)) { log.info("Starting the workflow: " + getName()); workflow.start(); if (interval > 0) { nextRun = new Date(System.currentTimeMillis()...
diff --git a/src/org/opensolaris/opengrok/analysis/Definitions.java b/src/org/opensolaris/opengrok/analysis/Definitions.java index 910cff9..aee6c47 100644 --- a/src/org/opensolaris/opengrok/analysis/Definitions.java +++ b/src/org/opensolaris/opengrok/analysis/Definitions.java @@ -1,164 +1,171 @@ /* * CDDL HEADER STA...
true
true
void addTag(int line, String symbol, String type, String text) { tags.add(new Tag(line, symbol, type, text)); Set<Integer> lines = symbols.get(symbol); if (lines == null) { lines = new HashSet<Integer>(); symbols.put(symbol, lines); } lines.add(line); ...
void addTag(int line, String symbol, String type, String text) { // The strings are frequently repeated (a symbol can be used in // multiple definitions, multiple definitions can have the same type, // one line can contain multiple definitions). Intern them to minimize // the space c...
diff --git a/src/au/gov/naa/digipres/xena/plugin/email/trim/TrimMessage.java b/src/au/gov/naa/digipres/xena/plugin/email/trim/TrimMessage.java index ec9bc8fc..e915227d 100644 --- a/src/au/gov/naa/digipres/xena/plugin/email/trim/TrimMessage.java +++ b/src/au/gov/naa/digipres/xena/plugin/email/trim/TrimMessage.java @@ -1...
true
true
protected TrimAttachment newAttachment(String s) throws IOException { TrimAttachmentTokenizer tokenizer = new TrimAttachmentTokenizer(s); List<String> nvPairList = tokenizer.nextRecord(); String name = null; String path = null; for (String tok : nvPairList) { String pairName = nameOfAttachment(tok); ...
protected TrimAttachment newAttachment(String s) throws IOException { TrimAttachmentTokenizer tokenizer = new TrimAttachmentTokenizer(s); List<String> nvPairList = tokenizer.nextRecord(); String name = null; String path = null; for (String tok : nvPairList) { String pairName = nameOfAttachment(tok); ...
diff --git a/src/com/mpower/controller/PersonSearchFormController.java b/src/com/mpower/controller/PersonSearchFormController.java index fa40cd84..51041a2b 100644 --- a/src/com/mpower/controller/PersonSearchFormController.java +++ b/src/com/mpower/controller/PersonSearchFormController.java @@ -1,75 +1,75 @@ package co...
true
true
protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception { logger.info("**** in onSubmit()"); Person person = (Person) command; BeanWrapper bw = new BeanWrapperImpl(person); Map<String, Object> pa...
protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception { logger.info("**** in onSubmit()"); Person person = (Person) command; BeanWrapper bw = new BeanWrapperImpl(person); Map<String, Object> pa...
diff --git a/workspace/jPad/src/edu/iastate/se339/text/BinaryRepresentation.java b/workspace/jPad/src/edu/iastate/se339/text/BinaryRepresentation.java index 0721ada..2867032 100644 --- a/workspace/jPad/src/edu/iastate/se339/text/BinaryRepresentation.java +++ b/workspace/jPad/src/edu/iastate/se339/text/BinaryRepresentat...
true
true
public String toString() { StringBuilder sb = new StringBuilder(); for(byte b : rawBytes){ for(int i=7; i>=0; i--){ sb.append(Integer.toString((b >> i - 1) & 1)); } } return sb.toString(); }
public String toString() { StringBuilder sb = new StringBuilder(); for(byte b : rawBytes){ for(int i=7; i>=0; i--){ sb.append(Integer.toString((b >> i) & 1)); } } return sb.toString(); }
diff --git a/src/com/zero/chichi/mem/user/OnlineUserManager.java b/src/com/zero/chichi/mem/user/OnlineUserManager.java index 9ebdfaa..0782bc3 100644 --- a/src/com/zero/chichi/mem/user/OnlineUserManager.java +++ b/src/com/zero/chichi/mem/user/OnlineUserManager.java @@ -1,58 +1,59 @@ /** * */ package com.zero.chic...
true
true
public void disconnect(String userId) { if (null == userId) return; User user = mem.remove(userId); UserDAO.updateUser(user); }
public void disconnect(String userId) { if (null == userId) return; User user = mem.remove(userId); if (null != user) UserDAO.updateUser(user); }
diff --git a/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNReporter.java b/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNReporter.java index 03fae9f5f..b94b22c28 100644 --- a/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNReporter.java +++ b/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNReporter.java @@ ...
true
true
private void reportEntries(ISVNReporter reporter, SVNDirectory directory, String dirPath, boolean reportAll, boolean recursive) throws SVNException { SVNEntries entries = directory.getEntries(); long baseRevision = entries.getEntry("", true).getRevision(); SVNExternalInfo[] externals = myWC...
private void reportEntries(ISVNReporter reporter, SVNDirectory directory, String dirPath, boolean reportAll, boolean recursive) throws SVNException { SVNEntries entries = directory.getEntries(); long baseRevision = entries.getEntry("", true).getRevision(); SVNExternalInfo[] externals = myWC...
diff --git a/ModelDrivenNode/src/com/nodemy/modeldrivennode/parser/ModelDrivenNode.java b/ModelDrivenNode/src/com/nodemy/modeldrivennode/parser/ModelDrivenNode.java index eb5a0ae..99cb0ce 100644 --- a/ModelDrivenNode/src/com/nodemy/modeldrivennode/parser/ModelDrivenNode.java +++ b/ModelDrivenNode/src/com/nodemy/modeldr...
false
true
public static void main(String[] args) { // nb.buildServer("schema/OAGIS/Local/BODs/CancelInvoice/CancelInvoice.xsd"); // nb.buildServer("schema/niem/domains/immigration/2.1/immigration.xsd"); // nb.buildServer("schema/cia/CIALib.xsd"); // nb.buildServer("schema/OTA/OTA_TravelItineraryRS.xsd"); // nb.buildSe...
public static void main(String[] args) { // nb.buildServer("schema/OAGIS/Local/BODs/CancelInvoice/CancelInvoice.xsd"); // nb.buildServer("schema/niem/domains/immigration/2.1/immigration.xsd"); // nb.buildServer("schema/cia/CIALib.xsd"); // nb.buildServer("schema/OTA/OTA_TravelItineraryRS.xsd"); // nb.buildSe...
diff --git a/src/main/java/me/xhawk87/CreateYourOwnMenus/script/TakeChestCommand.java b/src/main/java/me/xhawk87/CreateYourOwnMenus/script/TakeChestCommand.java index 32d3945..700a62c 100644 --- a/src/main/java/me/xhawk87/CreateYourOwnMenus/script/TakeChestCommand.java +++ b/src/main/java/me/xhawk87/CreateYourOwnMenus/...
true
true
public boolean execute(Menu menu, Player player, String[] args, String command, ItemStack menuItem, Iterator<String> commands, Player targetPlayer, Block targetBlock) { if (args.length != 5) { player.sendMessage("Error in menu script line (expected /TakeChest [x] [y] [z] [slot1,fromSlot-toSlot.....
public boolean execute(Menu menu, Player player, String[] args, String command, ItemStack menuItem, Iterator<String> commands, Player targetPlayer, Block targetBlock) { if (args.length != 5) { player.sendMessage("Error in menu script line (expected /TakeChest [x] [y] [z] [slot1,fromSlot-toSlot.....
diff --git a/libraries/javalib/java/lang/String.java b/libraries/javalib/java/lang/String.java index e41af7445..b0503ef07 100644 --- a/libraries/javalib/java/lang/String.java +++ b/libraries/javalib/java/lang/String.java @@ -1,554 +1,554 @@ /* * Java core library component. * * Copyright (c) 1997, 1998 * ...
true
true
public int indexOf( String str, int sIdx) { int it = offset+sIdx; int ic = str.offset; int ma = 0; if ( str.count > count-sIdx ) return -1; if ( str.count == 0 ) return (sIdx < 0) ? -1 : (sIdx < count) ? sIdx : count; for ( ; it<value.length; it++){ if ( value[it] == str.value[ic] ){ if (++ma == st...
public int indexOf( String str, int sIdx) { int it = offset+sIdx; int ic = str.offset; int ma = 0; if ( str.count > count-sIdx ) return -1; if ( str.count == 0 ) return (sIdx < 0) ? 0 : (sIdx < count) ? sIdx : count; for ( ; it<value.length; it++){ if ( value[it] == str.value[ic] ){ if (++ma == str...
diff --git a/stripes/src/net/sourceforge/stripes/util/UrlBuilder.java b/stripes/src/net/sourceforge/stripes/util/UrlBuilder.java index d6067e2a..576233f6 100644 --- a/stripes/src/net/sourceforge/stripes/util/UrlBuilder.java +++ b/stripes/src/net/sourceforge/stripes/util/UrlBuilder.java @@ -1,525 +1,525 @@ /* Copyright...
true
true
protected String getBaseURL(String baseUrl, Collection<Parameter> parameters) { UrlBinding binding = UrlBindingFactory.getInstance().getBindingPrototype(baseUrl); if (binding == null || binding.getParameters().size() == 0) { return baseUrl; } // if any extra path info is...
protected String getBaseURL(String baseUrl, Collection<Parameter> parameters) { UrlBinding binding = UrlBindingFactory.getInstance().getBindingPrototype(baseUrl); if (binding == null || binding.getParameters().size() == 0) { return baseUrl; } // if any extra path info is...
diff --git a/src/main/java/org/osaf/cosmo/dav/impl/CosmoDavRequestImpl.java b/src/main/java/org/osaf/cosmo/dav/impl/CosmoDavRequestImpl.java index 3e7fe9097..7f5c8f978 100644 --- a/src/main/java/org/osaf/cosmo/dav/impl/CosmoDavRequestImpl.java +++ b/src/main/java/org/osaf/cosmo/dav/impl/CosmoDavRequestImpl.java @@ -1,5...
false
true
private Ticket parseTicketRequest() { Document requestDocument = webdavRequest.getRequestDocument(); if (requestDocument == null) { throw new IllegalArgumentException("ticket request missing body"); } Element root = requestDocument.getRootElement(); if (! root.g...
private Ticket parseTicketRequest() { Document requestDocument = webdavRequest.getRequestDocument(); if (requestDocument == null) { throw new IllegalArgumentException("ticket request missing body"); } Element root = requestDocument.getRootElement(); if (! root.g...
diff --git a/src/r/builtins/WriteBin.java b/src/r/builtins/WriteBin.java index 8d93789..a49b480 100644 --- a/src/r/builtins/WriteBin.java +++ b/src/r/builtins/WriteBin.java @@ -1,98 +1,98 @@ package r.builtins; import java.io.*; import r.*; import r.data.*; import r.data.internal.*; import r.data.internal.Con...
true
true
@Override public RNode create(ASTNode call, RSymbol[] names, RNode[] exprs) { ArgumentInfo ia = check(call, names, exprs); if (ia.provided("size") || ia.provided("endian") || ia.provided("use.bytes")) { Utils.nyi("argument of writeBin not yet implemented"); } final Connec...
@Override public RNode create(ASTNode call, RSymbol[] names, RNode[] exprs) { ArgumentInfo ia = check(call, names, exprs); if (ia.provided("size") || ia.provided("endian") || ia.provided("useBytes")) { Utils.nyi("argument of writeBin not yet implemented"); } final Connect...
diff --git a/src/net/java/games/jogl/GLJPanel.java b/src/net/java/games/jogl/GLJPanel.java index 6b9b52ec7..234908b80 100644 --- a/src/net/java/games/jogl/GLJPanel.java +++ b/src/net/java/games/jogl/GLJPanel.java @@ -1,595 +1,595 @@ /* * Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved. * * Redistr...
false
true
public void display(GLDrawable drawable) { drawableHelper.display(GLJPanel.this); // Must now copy pixels from offscreen context into surface if (offscreenImage == null) { if (panelWidth > 0 && panelHeight > 0) { // It looks like NVidia's drivers (at least the ones on my ...
public void display(GLDrawable drawable) { drawableHelper.display(GLJPanel.this); // Must now copy pixels from offscreen context into surface if (offscreenImage == null) { if (panelWidth > 0 && panelHeight > 0) { // It looks like NVidia's drivers (at least the ones on my ...
diff --git a/main/src/com/google/refine/importers/FixedWidthImporter.java b/main/src/com/google/refine/importers/FixedWidthImporter.java index f727086a..3f219cee 100644 --- a/main/src/com/google/refine/importers/FixedWidthImporter.java +++ b/main/src/com/google/refine/importers/FixedWidthImporter.java @@ -1,216 +1,216 ...
false
true
static public int[] guessColumnWidths(File file, String encoding) { try { InputStream is = new FileInputStream(file); try { Reader reader = encoding != null ? new InputStreamReader(is, encoding) : new InputStreamReader(is); LineNumberReader lineNumberR...
static public int[] guessColumnWidths(File file, String encoding) { try { InputStream is = new FileInputStream(file); try { Reader reader = encoding != null ? new InputStreamReader(is, encoding) : new InputStreamReader(is); LineNumberReader lineNumberR...
diff --git a/src/com/davecoss/android/genericserver/GenericServer.java b/src/com/davecoss/android/genericserver/GenericServer.java index ec73d16..5f4c110 100644 --- a/src/com/davecoss/android/genericserver/GenericServer.java +++ b/src/com/davecoss/android/genericserver/GenericServer.java @@ -1,252 +1,257 @@ package co...
false
true
public void do_get(String input, PrintWriter output) { String[] tokens = input.split(" "); if (tokens.length < 2) return; ArrayList<String> request = new ArrayList<String>(Arrays.asList(tokens[1].split("/"))); if(request.size() < 2) { html_write("Welcome", "Welcome to the server.",output); ...
public void do_get(String input, PrintWriter output) { String[] tokens = input.split(" "); if (tokens.length < 2) return; ArrayList<String> request = new ArrayList<String>(Arrays.asList(tokens[1].split("/"))); if(request.size() < 2) { html_write("Welcome", "Welcome to the server.",output); ...
diff --git a/src/java/com/eviware/soapui/impl/wsdl/submit/filters/RestRequestFilter.java b/src/java/com/eviware/soapui/impl/wsdl/submit/filters/RestRequestFilter.java index 4fb5b38ae..c149d8bd0 100644 --- a/src/java/com/eviware/soapui/impl/wsdl/submit/filters/RestRequestFilter.java +++ b/src/java/com/eviware/soapui/imp...
false
true
public void filterRestRequest( SubmitContext context, RestRequest request ) { HttpMethod httpMethod = (HttpMethod) context.getProperty( BaseHttpRequestTransport.HTTP_METHOD ); String path = request.getPath(); StringBuffer query = new StringBuffer(); StringToStringMap responseProperties =...
public void filterRestRequest( SubmitContext context, RestRequest request ) { HttpMethod httpMethod = (HttpMethod) context.getProperty( BaseHttpRequestTransport.HTTP_METHOD ); String path = request.getPath(); StringBuffer query = new StringBuffer(); StringToStringMap responseProperties =...
diff --git a/src/main/java/edu/berkeley/grippus/fs/VirtualDDirectory.java b/src/main/java/edu/berkeley/grippus/fs/VirtualDDirectory.java index 9a2eb7c..65bad39 100644 --- a/src/main/java/edu/berkeley/grippus/fs/VirtualDDirectory.java +++ b/src/main/java/edu/berkeley/grippus/fs/VirtualDDirectory.java @@ -1,81 +1,83 @@ ...
false
true
public Errno mkdir(String name, Permission perm) { if (getChildren().containsKey(name)) return Errno.ERROR_EXISTS; if (!nameValid(name)) return Errno.ERROR_BAD_NAME; getChildren().put(name, new VirtualDDirectory(name, this, perm)); LOG.info("mkdir " + name + " in " + this); return Errno.SUCCESS; }
public Errno mkdir(String name, Permission perm) { if (getChildren().containsKey(name)) return Errno.ERROR_EXISTS; if (!nameValid(name)) { LOG.error("Bad name " + name); return Errno.ERROR_BAD_NAME; } getChildren().put(name, new VirtualDDirectory(name, this, perm)); LOG.info("mkdir " + name + " in "...
diff --git a/tests/frontend/org/voltdb/MockVoltDB.java b/tests/frontend/org/voltdb/MockVoltDB.java index 0cdabd4eb..92dfa0a5f 100644 --- a/tests/frontend/org/voltdb/MockVoltDB.java +++ b/tests/frontend/org/voltdb/MockVoltDB.java @@ -1,425 +1,427 @@ /* This file is part of VoltDB. * Copyright (C) 2008-2011 VoltDB Inc...
true
true
public MockVoltDB() { m_catalog = new Catalog(); m_catalog.execute("add / clusters " + m_clusterName); m_catalog.execute("add " + m_catalog.getClusters().get(m_clusterName).getPath() + " databases " + m_databaseName); Cluster cluster = m_catalog.getClust...
public MockVoltDB() { m_catalog = new Catalog(); m_catalog.execute("add / clusters " + m_clusterName); m_catalog.execute("add " + m_catalog.getClusters().get(m_clusterName).getPath() + " databases " + m_databaseName); Cluster cluster = m_catalog.getClust...
diff --git a/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java b/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java index ce85776ea..89b48907b 100644 --- a/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/P...
false
true
public void testBuildReader() throws Exception { PluginDescriptor pd = build( "/plugin.xml" ); assertEquals( "org.apache.maven.plugins", pd.getGroupId() ); assertEquals( "maven-jar-plugin", pd.getArtifactId() ); assertEquals( "2.3-SNAPSHOT", pd.getVersion() ); as...
public void testBuildReader() throws Exception { PluginDescriptor pd = build( "/plugin.xml" ); assertEquals( "org.apache.maven.plugins", pd.getGroupId() ); assertEquals( "maven-jar-plugin", pd.getArtifactId() ); assertEquals( "2.3-SNAPSHOT", pd.getVersion() ); as...
diff --git a/client/net/minecraftforge/client/ForgeHooksClient.java b/client/net/minecraftforge/client/ForgeHooksClient.java index 8acb7cb84..412e1acdb 100644 --- a/client/net/minecraftforge/client/ForgeHooksClient.java +++ b/client/net/minecraftforge/client/ForgeHooksClient.java @@ -1,308 +1,308 @@ package net.minecr...
true
true
public static boolean renderEntityItem(EntityItem entity, ItemStack item, float bobing, float rotation, Random random, RenderEngine engine, RenderBlocks renderBlocks) { IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(item, ENTITY); if (customRenderer == null) { ...
public static boolean renderEntityItem(EntityItem entity, ItemStack item, float bobing, float rotation, Random random, RenderEngine engine, RenderBlocks renderBlocks) { IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(item, ENTITY); if (customRenderer == null) { ...
diff --git a/src/siminov/orm/utils/ResourceUtils.java b/src/siminov/orm/utils/ResourceUtils.java index 5855fec..4e8fb49 100644 --- a/src/siminov/orm/utils/ResourceUtils.java +++ b/src/siminov/orm/utils/ResourceUtils.java @@ -1,117 +1,118 @@ package siminov.orm.utils; import java.util.Collection; import java.util.L...
false
true
public static String resolve(final String resourceName, final String resourceValue, final IDescriptor...descriptors) throws SiminovException { if(resourceValue == null) { return resourceValue; } if(resourceValue.contains(Constants.RESOURCE_OPEN_CURLY_BRACKET + Constants.RESOURCE_REFER_REFERENCE)) { ...
public static String resolve(final String resourceName, final String resourceValue, final IDescriptor...descriptors) throws SiminovException { if(resourceValue == null) { return resourceValue; } if(resourceValue.contains(Constants.RESOURCE_OPEN_CURLY_BRACKET + Constants.RESOURCE_REFER_REFERENCE)) { ...
diff --git a/src/test/org/apache/ddlutils/RunAllTests.java b/src/test/org/apache/ddlutils/RunAllTests.java index 166f26c..b7e9584 100644 --- a/src/test/org/apache/ddlutils/RunAllTests.java +++ b/src/test/org/apache/ddlutils/RunAllTests.java @@ -1,125 +1,125 @@ package org.apache.ddlutils; /* * Copyright 1999-2006...
true
true
public static Test suite() { TestSuite suite = new TestSuite("Ddlutils tests"); // tests that don't need a live database suite.addTestSuite(TestArrayAccessAtTable.class); suite.addTestSuite(SqlBuilderTest.class); suite.addTestSuite(TestPlatformUtils.class); suite...
public static Test suite() { TestSuite suite = new TestSuite("DdlUtils tests"); // tests that don't need a live database suite.addTestSuite(TestArrayAccessAtTable.class); suite.addTestSuite(SqlBuilderTest.class); suite.addTestSuite(TestPlatformUtils.class); suite...
diff --git a/src/com/parworks/mars/view/search/SearchFragment.java b/src/com/parworks/mars/view/search/SearchFragment.java index 03ef6fe..e22c840 100644 --- a/src/com/parworks/mars/view/search/SearchFragment.java +++ b/src/com/parworks/mars/view/search/SearchFragment.java @@ -1,209 +1,209 @@ package com.parworks.mars....
true
true
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_search, null); // config search text box autoCompleteView = (AutoCompleteTextView) v.findViewById(R.id.searchText); // config width/height @SuppressWarnings("de...
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_search, null); // config search text box autoCompleteView = (AutoCompleteTextView) v.findViewById(R.id.searchText); // config width/height @SuppressWarnings("de...
diff --git a/src/org/mozilla/javascript/NativeJavaObject.java b/src/org/mozilla/javascript/NativeJavaObject.java index 85e41d93..c56b685a 100644 --- a/src/org/mozilla/javascript/NativeJavaObject.java +++ b/src/org/mozilla/javascript/NativeJavaObject.java @@ -1,998 +1,998 @@ /* -*- Mode: java; tab-width: 8; indent-tabs...
false
true
static Object coerceTypeImpl(Class type, Object value) { if (value != null && value.getClass() == type) { return value; } switch (getJSTypeCode(value)) { case JSTYPE_NULL: // raise error if type.isPrimitive() if (type.isPrimitive()) { ...
static Object coerceTypeImpl(Class type, Object value) { if (value != null && value.getClass() == type) { return value; } switch (getJSTypeCode(value)) { case JSTYPE_NULL: // raise error if type.isPrimitive() if (type.isPrimitive()) { ...
diff --git a/apps/routerconsole/java/src/net/i2p/router/web/TunnelRenderer.java b/apps/routerconsole/java/src/net/i2p/router/web/TunnelRenderer.java index 9206340ca..e9d7d1da6 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/TunnelRenderer.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/TunnelRende...
true
true
public void renderStatusHTML(Writer out) throws IOException { out.write("<div class=\"wideload\"><h2><a name=\"exploratory\" ></a>" + _("Exploratory tunnels") + " (<a href=\"/configtunnels.jsp#exploratory\">" + _("configure") + "</a>)</h2>\n"); renderPool(out, _context.tunnelManager().getInboundExpl...
public void renderStatusHTML(Writer out) throws IOException { out.write("<div class=\"wideload\"><h2><a name=\"exploratory\" ></a>" + _("Exploratory tunnels") + " (<a href=\"/configtunnels.jsp#exploratory\">" + _("configure") + "</a>)</h2>\n"); renderPool(out, _context.tunnelManager().getInboundExpl...
diff --git a/Kemecom-web/src/main/java/org/netbeans/rest/application/config/ApplicationConfig.java b/Kemecom-web/src/main/java/org/netbeans/rest/application/config/ApplicationConfig.java index 49509d9..dd548ae 100644 --- a/Kemecom-web/src/main/java/org/netbeans/rest/application/config/ApplicationConfig.java +++ b/Kemec...
true
true
private void addRestResourceClasses(Set<Class<?>> resources) { resources.add(br.rcp.kemecom.exception.mapper.GenericExceptionMapper.class); resources.add(br.rcp.kemecom.helper.FacebookService.class); resources.add(br.rcp.kemecom.service.AuthenticatorService.class); resources.add(br.r...
private void addRestResourceClasses(Set<Class<?>> resources) { resources.add(br.rcp.kemecom.exception.mapper.GenericExceptionMapper.class); resources.add(br.rcp.kemecom.helper.FacebookService.class); resources.add(br.rcp.kemecom.service.AuthenticatorService.class); resources.add(br.r...
diff --git a/src/com/android/settings/SecuritySettings.java b/src/com/android/settings/SecuritySettings.java index 88a2d339d..8196d0b07 100644 --- a/src/com/android/settings/SecuritySettings.java +++ b/src/com/android/settings/SecuritySettings.java @@ -1,475 +1,474 @@ /* * Copyright (C) 2007 The Android Open Source ...
false
true
private PreferenceScreen createPreferenceHierarchy() { PreferenceScreen root = getPreferenceScreen(); if (root != null) { root.removeAll(); } addPreferencesFromResource(R.xml.security_settings); root = getPreferenceScreen(); // Add options for lock/unlock...
private PreferenceScreen createPreferenceHierarchy() { PreferenceScreen root = getPreferenceScreen(); if (root != null) { root.removeAll(); } addPreferencesFromResource(R.xml.security_settings); root = getPreferenceScreen(); // Add options for lock/unlock...
diff --git a/modules/unsupported/swing/src/main/java/org/geotools/swing/JMapPane.java b/modules/unsupported/swing/src/main/java/org/geotools/swing/JMapPane.java index f927f8e19..2b74083c3 100644 --- a/modules/unsupported/swing/src/main/java/org/geotools/swing/JMapPane.java +++ b/modules/unsupported/swing/src/main/java/...
true
true
protected void drawLayers(boolean createNewImage) { if (mapContent != null && !mapContent.getViewport().isEmpty() && acceptRepaintRequests.get()) { Rectangle r = getVisibleRect(); if (baseImage == null || createNewImage) { ...
protected void drawLayers(boolean createNewImage) { if (mapContent != null && !mapContent.getViewport().isEmpty() && acceptRepaintRequests.get()) { Rectangle r = getVisibleRect(); if (baseImage == null || createNewImage) { ...
diff --git a/src/org/joval/scap/oval/adapter/windows/PasswordpolicyAdapter.java b/src/org/joval/scap/oval/adapter/windows/PasswordpolicyAdapter.java index 9f317266..0e84ca4b 100755 --- a/src/org/joval/scap/oval/adapter/windows/PasswordpolicyAdapter.java +++ b/src/org/joval/scap/oval/adapter/windows/PasswordpolicyAdapte...
true
true
private void makeItem() throws CollectException { try { long timeout = session.getTimeout(ISession.Timeout.M); String tempDir = session.getTempDir(); StringBuffer sb = new StringBuffer(tempDir); if (!tempDir.endsWith(session.getFilesystem().getDelimiter())) { sb.append(session.getFilesystem()...
private void makeItem() throws CollectException { try { long timeout = session.getTimeout(ISession.Timeout.M); String tempDir = session.getTempDir(); StringBuffer sb = new StringBuffer(tempDir); if (!tempDir.endsWith(session.getFilesystem().getDelimiter())) { sb.append(session.getFilesystem()...
diff --git a/biz.aQute.bndlib/src/aQute/bnd/build/model/EE.java b/biz.aQute.bndlib/src/aQute/bnd/build/model/EE.java index 5bb8c456b..52b67c556 100644 --- a/biz.aQute.bndlib/src/aQute/bnd/build/model/EE.java +++ b/biz.aQute.bndlib/src/aQute/bnd/build/model/EE.java @@ -1,61 +1,61 @@ package aQute.bnd.build.model; im...
true
true
public static EE parse(String str) { for (EE ee : values()) { if (ee.eeName.equals(str)) return ee; } throw new IllegalArgumentException("Unrecognised execution environment name: " + str); }
public static EE parse(String str) { for (EE ee : values()) { if (ee.eeName.equals(str)) return ee; } return null; }
diff --git a/ini/trakem2/persistence/FSLoader.java b/ini/trakem2/persistence/FSLoader.java index 8b2ae74e..77043def 100644 --- a/ini/trakem2/persistence/FSLoader.java +++ b/ini/trakem2/persistence/FSLoader.java @@ -1,2308 +1,2314 @@ /** TrakEM2 plugin for ImageJ(C). Copyright (C) 2005, 2006 Albert Cardona and Rodn...
false
true
public boolean generateMipMaps(final Patch patch) { //Utils.log2("mipmaps for " + patch); if (null == dir_mipmaps) createMipMapsDir(null); if (null == dir_mipmaps || isURL(dir_mipmaps)) return false; final String path = getAbsolutePath(patch); if (null == path) { Utils.log2("generateMipMaps: cannot find p...
public boolean generateMipMaps(final Patch patch) { //Utils.log2("mipmaps for " + patch); if (null == dir_mipmaps) createMipMapsDir(null); if (null == dir_mipmaps || isURL(dir_mipmaps)) return false; final String path = getAbsolutePath(patch); if (null == path) { Utils.log2("generateMipMaps: cannot find p...
diff --git a/java/gov/nist/javax/sip/message/SIPRequest.java b/java/gov/nist/javax/sip/message/SIPRequest.java index 3136383..25304c2 100644 --- a/java/gov/nist/javax/sip/message/SIPRequest.java +++ b/java/gov/nist/javax/sip/message/SIPRequest.java @@ -1,1207 +1,1211 @@ /* * Conditions Of Use * * This software...
false
true
public void checkHeaders() throws ParseException { String prefix = "Missing a required header : "; /* Check for required headers */ if (getCSeq() == null) { throw new ParseException(prefix + CSeqHeader.NAME, 0); } if (getTo() == null) { throw new Par...
public void checkHeaders() throws ParseException { String prefix = "Missing a required header : "; /* Check for required headers */ if (getCSeq() == null) { throw new ParseException(prefix + CSeqHeader.NAME, 0); } if (getTo() == null) { throw new Par...
diff --git a/src/edu/mit/mitmobile2/libraries/TellUsActivity.java b/src/edu/mit/mitmobile2/libraries/TellUsActivity.java index fdbcfb79..249f26b0 100644 --- a/src/edu/mit/mitmobile2/libraries/TellUsActivity.java +++ b/src/edu/mit/mitmobile2/libraries/TellUsActivity.java @@ -1,182 +1,181 @@ package edu.mit.mitmobile2.l...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.library_tell_us); mContext = this; mScrollView = (LockingScrollView) findViewById(R.id.scrollView); mFeedbackText = (EditText) findViewById(R.id...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.library_tell_us); mContext = this; mScrollView = (LockingScrollView) findViewById(R.id.scrollView); mFeedbackText = (EditText) findViewById(R.id...
diff --git a/src/share/foundation/classes/com/sun/cdc/io/j2me/http/Protocol.java b/src/share/foundation/classes/com/sun/cdc/io/j2me/http/Protocol.java index 51e37a31..e395a55e 100644 --- a/src/share/foundation/classes/com/sun/cdc/io/j2me/http/Protocol.java +++ b/src/share/foundation/classes/com/sun/cdc/io/j2me/http/Pro...
true
true
protected void connect() throws IOException { if (connected) { return; } if (streamConnection==null) { streamConnection=connectSocket(); } streamOutput = streamConnection.openDataOutputStream(); // HTTP 1.1 requests must cont...
protected void connect() throws IOException { if (connected) { return; } if (streamConnection==null) { streamConnection=connectSocket(); } streamOutput = streamConnection.openDataOutputStream(); // HTTP 1.1 requests must cont...
diff --git a/net/sf/mpxj/mpp/MPP14Reader.java b/net/sf/mpxj/mpp/MPP14Reader.java index 11dcda8..204fb12 100644 --- a/net/sf/mpxj/mpp/MPP14Reader.java +++ b/net/sf/mpxj/mpp/MPP14Reader.java @@ -1,4090 +1,4090 @@ /* * file: MPP14Reader.java * author: Jon Iles * copyright: (c) Packwood Software 2002-2010...
false
true
private void processTaskData() throws IOException { DirectoryEntry taskDir = (DirectoryEntry) m_projectDir.getEntry("TBkndTask"); VarMeta taskVarMeta = new VarMeta12(new DocumentInputStream(((DocumentEntry) taskDir.getEntry("VarMeta")))); Var2Data taskVarData = new Var2Data(taskVarMeta, new Docu...
private void processTaskData() throws IOException { DirectoryEntry taskDir = (DirectoryEntry) m_projectDir.getEntry("TBkndTask"); VarMeta taskVarMeta = new VarMeta12(new DocumentInputStream(((DocumentEntry) taskDir.getEntry("VarMeta")))); Var2Data taskVarData = new Var2Data(taskVarMeta, new Docu...
diff --git a/wms/src/main/java/org/geoserver/wms/GetMap.java b/wms/src/main/java/org/geoserver/wms/GetMap.java index 4dca33d3d..f5c3296b7 100644 --- a/wms/src/main/java/org/geoserver/wms/GetMap.java +++ b/wms/src/main/java/org/geoserver/wms/GetMap.java @@ -1,623 +1,623 @@ /* Copyright (c) 2010 TOPP - www.openplans.org...
false
true
public WebMap run(final GetMapRequest request, WMSMapContext mapContext) throws ServiceException, IOException { assertMandatory(request); final String outputFormat = request.getFormat(); GetMapOutputFormat delegate = getDelegate(outputFormat); final Envelope env = requ...
public WebMap run(final GetMapRequest request, WMSMapContext mapContext) throws ServiceException, IOException { assertMandatory(request); final String outputFormat = request.getFormat(); GetMapOutputFormat delegate = getDelegate(outputFormat); final Envelope env = requ...
diff --git a/grails/src/java/org/codehaus/groovy/grails/web/mapping/filter/UrlMappingsFilter.java b/grails/src/java/org/codehaus/groovy/grails/web/mapping/filter/UrlMappingsFilter.java index 50d28a357..067322bec 100644 --- a/grails/src/java/org/codehaus/groovy/grails/web/mapping/filter/UrlMappingsFilter.java +++ b/grai...
true
true
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { UrlMappingsHolder holder = WebUtils.lookupUrlMappings(getServletContext()); GrailsWebRequest webRequest = (GrailsWebRequest)request.getAttribute(...
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { UrlMappingsHolder holder = WebUtils.lookupUrlMappings(getServletContext()); GrailsWebRequest webRequest = (GrailsWebRequest)request.getAttribute(...
diff --git a/TestScript.java b/TestScript.java index f7f114a..22fcc15 100644 --- a/TestScript.java +++ b/TestScript.java @@ -1,85 +1,88 @@ package com.redhat.qe.auto.testng; import java.io.File; import java.io.FileInputStream; import java.util.List; import java.util.Properties; import java.util.Set; import jav...
true
true
public TestScript() { if (initialized) return; //only need to run this stuff once per jvm String propFile =""; //load log properties try{ Thread.currentThread().setContextClassLoader(ClassLoader.getSystemClassLoader()); propFile = System.getProperty("log.propertiesfile", System.getProperty...
public TestScript() { if (initialized) return; //only need to run this stuff once per jvm String propFile =""; //load log properties try{ Thread.currentThread().setContextClassLoader(ClassLoader.getSystemClassLoader()); propFile = System.getProperty("log.propertiesfile", System.getProperty...
diff --git a/farrago/src/net/sf/farrago/query/FarragoRexBuilder.java b/farrago/src/net/sf/farrago/query/FarragoRexBuilder.java index c68dd11c9..24d276271 100644 --- a/farrago/src/net/sf/farrago/query/FarragoRexBuilder.java +++ b/farrago/src/net/sf/farrago/query/FarragoRexBuilder.java @@ -1,246 +1,245 @@ /* // $Id$ /...
false
true
private RexNode makeUdfInvocation( SqlOperator op, RexNode [] exprs) { FarragoUserDefinedRoutine routine = (FarragoUserDefinedRoutine) op; FemRoutine femRoutine = routine.getFemRoutine(); FarragoRoutineInvocation invocation = new FarragoRoutineInvocation( ...
private RexNode makeUdfInvocation( SqlOperator op, RexNode [] exprs) { FarragoUserDefinedRoutine routine = (FarragoUserDefinedRoutine) op; FemRoutine femRoutine = routine.getFemRoutine(); FarragoRoutineInvocation invocation = new FarragoRoutineInvocation( ...
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 2d4d7b98..126fe0c1 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1,2089 +1,2086 @@ /* * Copyright (C) 2008 ...
true
true
public void pickSuggestionManually(int index, CharSequence suggestion) { SuggestedWords suggestions = mCandidateView.getSuggestions(); mVoiceProxy.flushAndLogAllTextModificationCounters(index, suggestion, mSettingsValues.mWordSeparators); final boolean recorrecting = TextEnt...
public void pickSuggestionManually(int index, CharSequence suggestion) { SuggestedWords suggestions = mCandidateView.getSuggestions(); mVoiceProxy.flushAndLogAllTextModificationCounters(index, suggestion, mSettingsValues.mWordSeparators); final boolean recorrecting = TextEnt...
diff --git a/src/main/java/tconstruct/smeltery/TinkerSmeltery.java b/src/main/java/tconstruct/smeltery/TinkerSmeltery.java index 2950732cc..2209c4cbc 100644 --- a/src/main/java/tconstruct/smeltery/TinkerSmeltery.java +++ b/src/main/java/tconstruct/smeltery/TinkerSmeltery.java @@ -1,1062 +1,1062 @@ package tconstruct.s...
true
true
public void preInit (FMLPreInitializationEvent event) { TinkerSmelteryEvents smelteryEvents = new TinkerSmelteryEvents(); MinecraftForge.EVENT_BUS.register(smelteryEvents); FMLCommonHandler.instance().bus().register(smelteryEvents); TinkerSmeltery.buckets = new FilledBucket(Bloc...
public void preInit (FMLPreInitializationEvent event) { TinkerSmelteryEvents smelteryEvents = new TinkerSmelteryEvents(); MinecraftForge.EVENT_BUS.register(smelteryEvents); FMLCommonHandler.instance().bus().register(smelteryEvents); TinkerSmeltery.buckets = new FilledBucket(Bloc...
diff --git a/src/main/java/com/tap5/hotelbooking/services/HotelBookingModule.java b/src/main/java/com/tap5/hotelbooking/services/HotelBookingModule.java index e6fa817..f6bc316 100644 --- a/src/main/java/com/tap5/hotelbooking/services/HotelBookingModule.java +++ b/src/main/java/com/tap5/hotelbooking/services/HotelBookin...
true
true
public static void configureTapestryHotelBooking( MappedConfiguration<String, String> configuration) { configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en"); configuration.add(SymbolConstants.APPLICATION_VERSION, "1.0-SNAPSHOT"); }
public static void configureTapestryHotelBooking( MappedConfiguration<String, String> configuration) { configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en"); configuration.add(SymbolConstants.APPLICATION_VERSION, "1.2-SNAPSHOT"); }
diff --git a/src/edu/isi/pegasus/planner/classes/PlannerOptions.java b/src/edu/isi/pegasus/planner/classes/PlannerOptions.java index ba4902265..798ea01aa 100644 --- a/src/edu/isi/pegasus/planner/classes/PlannerOptions.java +++ b/src/edu/isi/pegasus/planner/classes/PlannerOptions.java @@ -1,1611 +1,1611 @@ /** * Cop...
true
true
public String toOptions(){ StringBuffer sb = new StringBuffer(); //the submit file dir // if( mSubmitFileDir != null){ sb.append(" --dir ").append(mSubmitFileDir);} //confirm how this plays in deferred planning. not clear. Karan Oct 31 2007 sb.append(" --dir ").append( this.g...
public String toOptions(){ StringBuffer sb = new StringBuffer(); //the submit file dir // if( mSubmitFileDir != null){ sb.append(" --dir ").append(mSubmitFileDir);} //confirm how this plays in deferred planning. not clear. Karan Oct 31 2007 sb.append(" --dir ").append( this.g...
diff --git a/test/mnj/lua/BaseLibTest.java b/test/mnj/lua/BaseLibTest.java index 926d3cb..fbfea60 100644 --- a/test/mnj/lua/BaseLibTest.java +++ b/test/mnj/lua/BaseLibTest.java @@ -1,295 +1,296 @@ // $Header$ package mnj.lua; // For j2meunit see http://j2meunit.sourceforge.net/ import j2meunit.framework.Test; im...
true
true
public Test suite() { TestSuite suite = new TestSuite(); suite.addTest(new BaseLibTest("testBaseLib") { public void runTest() { testBaseLib(); } }); suite.addTest(new BaseLibTest("testPrint") { public void runTest() { testPrint(); } }); suite.addTest(new BaseLibTest("tes...
public Test suite() { TestSuite suite = new TestSuite(); suite.addTest(new BaseLibTest("testBaseLib") { public void runTest() { testBaseLib(); } }); suite.addTest(new BaseLibTest("testPrint") { public void runTest() { testPrint(); } }); suite.addTest(new BaseLibTest("tes...
diff --git a/src/resources/odt/src/java/org/wyona/yanel/impl/resources/ODTResource.java b/src/resources/odt/src/java/org/wyona/yanel/impl/resources/ODTResource.java index 942fb8222..b290bd12e 100644 --- a/src/resources/odt/src/java/org/wyona/yanel/impl/resources/ODTResource.java +++ b/src/resources/odt/src/java/org/wyo...
true
true
private String getMimeType(Path path, String viewId) { String mimeType = null; try { // TODO: Get yanel RTI yarep properties file name from framework resp. use MapFactory ...! org.wyona.yarep.util.RepoPath rpRTI = new org.wyona.yarep.util.YarepUtil().getRepositoryPath(new org...
private String getMimeType(Path path, String viewId) { String mimeType = null; try { // TODO: Get yanel RTI yarep properties file name from framework resp. use MapFactory ...! org.wyona.yarep.util.RepoPath rpRTI = new org.wyona.yarep.util.YarepUtil().getRepositoryPath(new org...
diff --git a/src/simple/home/jtbuaa/simpleHome.java b/src/simple/home/jtbuaa/simpleHome.java index a2993a4..00f8cd8 100644 --- a/src/simple/home/jtbuaa/simpleHome.java +++ b/src/simple/home/jtbuaa/simpleHome.java @@ -1,1687 +1,1691 @@ package simple.home.jtbuaa; import java.io.EOFException; import java.io.File; i...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); /*//splash screen Thread splashTimer=new Thread() { public void run(){ try{ long curTime = System.currentTimeMillis(); while (System.currentTimeM...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); /*//splash screen Thread splashTimer=new Thread() { public void run(){ try{ long curTime = System.currentTimeMillis(); while (System.currentTimeM...
diff --git a/do_jdbc/src/main/java/data_objects/Command.java b/do_jdbc/src/main/java/data_objects/Command.java index af6c432d..62a72e6e 100644 --- a/do_jdbc/src/main/java/data_objects/Command.java +++ b/do_jdbc/src/main/java/data_objects/Command.java @@ -1,645 +1,645 @@ package data_objects; import static data_obje...
false
true
public IRubyObject execute_reader(IRubyObject[] args) { Ruby runtime = getRuntime(); Connection connection_instance = (Connection) api.getInstanceVariable(this, "@connection"); java.sql.Connection conn = connection_instance.getInternalConnection(); checkConnectionNotC...
public IRubyObject execute_reader(IRubyObject[] args) { Ruby runtime = getRuntime(); Connection connection_instance = (Connection) api.getInstanceVariable(this, "@connection"); java.sql.Connection conn = connection_instance.getInternalConnection(); checkConnectionNotC...
diff --git a/src/main/java/net/pms/dlna/PlaylistFolder.java b/src/main/java/net/pms/dlna/PlaylistFolder.java index 0bb1beeb..6965a8de 100644 --- a/src/main/java/net/pms/dlna/PlaylistFolder.java +++ b/src/main/java/net/pms/dlna/PlaylistFolder.java @@ -1,177 +1,178 @@ package net.pms.dlna; import java.io.BufferedRead...
true
true
public synchronized void resolve() { if (playlistfile.length() < 10000000) { ArrayList<Entry> entries = new ArrayList<Entry>(); boolean m3u = false; boolean pls = false; try { BufferedReader br = new BufferedReader(new FileReader(playlistfile)); String line; while (!m3u && !pls && (line = br....
public synchronized void resolve() { if (playlistfile.length() < 10000000) { ArrayList<Entry> entries = new ArrayList<Entry>(); boolean m3u = false; boolean pls = false; try { BufferedReader br = new BufferedReader(new FileReader(playlistfile)); String line; while (!m3u && !pls && (line = br....
diff --git a/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiAllTests.java b/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiAllTests.java index 8d3a1d239..c788c8b6a 100644 --- a/common/tests/org.jboss.tools.common.model...
true
true
public static Test suite() { TestSuite suite = new TestSuite(); suite.setName("All tests for " + PLUGIN_ID); suite.addTestSuite(DecoratorPreferencesPage.class); suite.addTestSuite(ModelUiPreferencesPageTest.class); suite.addTestSuite(ObjectDecoratorTest.class); suite.addTestSuite(FavoritesClassControllerTe...
public static Test suite() { TestSuite suite = new TestSuite(); suite.setName("All tests for " + PLUGIN_ID); suite.addTestSuite(ModelUiPreferencesPageTest.class); suite.addTestSuite(ObjectDecoratorTest.class); suite.addTestSuite(FavoritesClassControllerTest.class); suite.addTestSuite(ErrorDialogTest.class)...
diff --git a/org.eclipse.scout.commons/src/org/eclipse/scout/commons/MailUtility.java b/org.eclipse.scout.commons/src/org/eclipse/scout/commons/MailUtility.java index 9e64d605ac..d2fee3efec 100644 --- a/org.eclipse.scout.commons/src/org/eclipse/scout/commons/MailUtility.java +++ b/org.eclipse.scout.commons/src/org/ecli...
true
true
private MimeMessage createMimeMessageFromWordArchiveInternal(File archiveDir, String simpleName, File[] attachments, boolean markAsUnsent) throws ProcessingException { try { File plainTextFile = new File(archiveDir, simpleName + ".txt"); String plainTextMessage = null; boolean hasPlainText = fal...
private MimeMessage createMimeMessageFromWordArchiveInternal(File archiveDir, String simpleName, File[] attachments, boolean markAsUnsent) throws ProcessingException { try { File plainTextFile = new File(archiveDir, simpleName + ".txt"); String plainTextMessage = null; boolean hasPlainText = fal...
diff --git a/testng/container/src/test/java/org/jboss/arquillian/testng/container/TestNGDeploymentAppenderTestCase.java b/testng/container/src/test/java/org/jboss/arquillian/testng/container/TestNGDeploymentAppenderTestCase.java index 717429d3..be8d8516 100644 --- a/testng/container/src/test/java/org/jboss/arquillian/t...
true
true
public void shouldGenerateDependencies() throws Exception { Archive<?> archive = new TestNGDeploymentAppender().createAuxiliaryArchive(); Assert.assertTrue( "Should have added TestRunner SPI", archive.contains(ArchivePaths.create("/META-INF/services/org.jboss.arquillian.core....
public void shouldGenerateDependencies() throws Exception { Archive<?> archive = new TestNGDeploymentAppender().createAuxiliaryArchive(); Assert.assertTrue( "Should have added TestRunner SPI", archive.contains(ArchivePaths.create("/META-INF/services/org.jboss.arquillian.conta...
diff --git a/src/com/csipsimple/ui/account/AccountsLoader.java b/src/com/csipsimple/ui/account/AccountsLoader.java index cc495a41..ad918d49 100644 --- a/src/com/csipsimple/ui/account/AccountsLoader.java +++ b/src/com/csipsimple/ui/account/AccountsLoader.java @@ -1,445 +1,441 @@ /** * Copyright (C) 2010-2012 Regis Mo...
false
true
public Cursor loadInBackground() { // First register for status updates if(loadStatus) { getContext().getContentResolver().registerContentObserver(SipProfile.ACCOUNT_STATUS_URI, true, loaderObserver); } ArrayList<FilteredProfile> prefinalAccounts = new Arr...
public Cursor loadInBackground() { // First register for status updates if(loadStatus) { getContext().getContentResolver().registerContentObserver(SipProfile.ACCOUNT_STATUS_URI, true, loaderObserver); } ArrayList<FilteredProfile> prefinalAccounts = new Arr...
diff --git a/web/src/main/java/org/fao/geonet/services/metadata/XslProcessing.java b/web/src/main/java/org/fao/geonet/services/metadata/XslProcessing.java index 78a9764eae..024f0f2170 100644 --- a/web/src/main/java/org/fao/geonet/services/metadata/XslProcessing.java +++ b/web/src/main/java/org/fao/geonet/services/metad...
true
true
public static Element process(String id, String process, boolean save, String appPath, Element params, ServiceContext context, Set<Integer> metadata, Set<Integer> notFound, Set<Integer> notOwner, Set<Integer> notProcessFound, boolean useIndexGroup, String siteUrl) throws Exception { GeonetConte...
public static Element process(String id, String process, boolean save, String appPath, Element params, ServiceContext context, Set<Integer> metadata, Set<Integer> notFound, Set<Integer> notOwner, Set<Integer> notProcessFound, boolean useIndexGroup, String siteUrl) throws Exception { GeonetConte...
diff --git a/coastal-hazards-portal/src/main/java/gov/usgs/cida/coastalhazards/rest/data/MinifyResource.java b/coastal-hazards-portal/src/main/java/gov/usgs/cida/coastalhazards/rest/data/MinifyResource.java index 10c71e30d..5ef11b0ac 100644 --- a/coastal-hazards-portal/src/main/java/gov/usgs/cida/coastalhazards/rest/da...
false
true
public Response minify(@PathParam("url") String url) { Map<String, String> responseMap = new HashMap<String, String>(); Response response; try { if (StringUtils.isNotBlank(url)) { TinyGov tinygov = urlManager.load(url); if (tinygov == null) { String encodedU...
public Response minify(@PathParam("url") String url) { Map<String, String> responseMap = new HashMap<String, String>(); Response response; try { if (StringUtils.isNotBlank(url)) { TinyGov tinygov = urlManager.load(url); if (tinygov == null) { String encodedU...
diff --git a/printer/HTMLPrinter.java b/printer/HTMLPrinter.java index 15d57737..d4287120 100644 --- a/printer/HTMLPrinter.java +++ b/printer/HTMLPrinter.java @@ -1,434 +1,434 @@ package printer; import votebox.AuditoriumParams; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; im...
true
true
private static void generatorHelperForTwoColumns (BufferedWriter writer, Boolean printFriendly, String pathToBallotVVPATFolder, List<ArrayList<String>> imageNames) { try { // Writes the header of the page(s) to be printed. // <p style="font-family:arial;color:red;font-siz...
private static void generatorHelperForTwoColumns (BufferedWriter writer, Boolean printFriendly, String pathToBallotVVPATFolder, List<ArrayList<String>> imageNames) { try { // Writes the header of the page(s) to be printed. // <p style="font-family:arial;color:red;font-siz...
diff --git a/steamcraft/render/RenderTeaPlant.java b/steamcraft/render/RenderTeaPlant.java index 1dc40b0..3e74c2e 100644 --- a/steamcraft/render/RenderTeaPlant.java +++ b/steamcraft/render/RenderTeaPlant.java @@ -1,41 +1,41 @@ package steamcraft.render; import net.minecraft.block.Block; import net.minecraft.client...
true
true
public boolean renderBlockTeaPlant(Block block, int i, int j, int k, IBlockAccess blockaccess) { Tessellator tessellator = Tessellator.instance; tessellator.setBrightness(block.getMixedBrightnessForBlock(blockaccess, i, j, k)); float f = 1.0F; int l = block.colorMultiplier(blockaccess, i, j, k); float f1 = (...
public boolean renderBlockTeaPlant(Block block, int i, int j, int k, IBlockAccess blockaccess) { Tessellator tessellator = Tessellator.instance; tessellator.setBrightness(block.getMixedBrightnessForBlock(blockaccess, i, j, k)); float f = 1.0F; int l = block.colorMultiplier(blockaccess, i, j, k); float f1 = (...