Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/com/omgren/apps/smsgcm/client/ServerUtilities.java b/src/com/omgren/apps/smsgcm/client/ServerUtilities.java index b8d6ef4..f4fa23c 100644 --- a/src/com/omgren/apps/smsgcm/client/ServerUtilities.java +++ b/src/com/omgren/apps/smsgcm/client/ServerUtilities.java @@ -1,155 +1,156 @@ package com.omgren.app...
true
true
public static boolean register(final Context context, final String regId) { Log.i(TAG, "registering device (regId = " + regId + ")"); String serverUrl = SERVER_URL + "/register"; Map<String, String> params = new HashMap<String, String>(); params.put("regId", regId); long backoff = BACKOFF_MILLI_SE...
public static boolean register(final Context context, final String regId) { Log.i(TAG, "registering device (regId = " + regId + ")"); String serverUrl = SERVER_URL + "/register"; Map<String, String> params = new HashMap<String, String>(); params.put("regId", regId); long backoff = BACKOFF_MILLI_SE...
diff --git a/src/main/java/org/dasein/cloud/cloudstack/compute/Volumes.java b/src/main/java/org/dasein/cloud/cloudstack/compute/Volumes.java index a54a5d6..08153dc 100644 --- a/src/main/java/org/dasein/cloud/cloudstack/compute/Volumes.java +++ b/src/main/java/org/dasein/cloud/cloudstack/compute/Volumes.java @@ -1,909 +...
true
true
public @Nonnull String createVolume(@Nonnull VolumeCreateOptions options) throws InternalException, CloudException { APITrace.begin(getProvider(), "Volume.createVolume"); try { ProviderContext ctx = provider.getContext(); if( ctx == null ) { throw new CloudEx...
public @Nonnull String createVolume(@Nonnull VolumeCreateOptions options) throws InternalException, CloudException { APITrace.begin(getProvider(), "Volume.createVolume"); try { ProviderContext ctx = provider.getContext(); if( ctx == null ) { throw new CloudEx...
diff --git a/agile-framework/src/main/java/org/headsupdev/agile/framework/HeadsUpActivator.java b/agile-framework/src/main/java/org/headsupdev/agile/framework/HeadsUpActivator.java index 6f053f97..547903f3 100644 --- a/agile-framework/src/main/java/org/headsupdev/agile/framework/HeadsUpActivator.java +++ b/agile-framew...
false
true
public void start( BundleContext bc ) throws Exception { Manager.getStorageInstance().getGlobalConfiguration().setDefaultTimeZone( TimeZone.getDefault() ); Manager.getLogger( getClass().getName() ).info( "Default timezone set to " + TimeZone.getDefault().getID() ); ...
public void start( BundleContext bc ) throws Exception { // UTC has been set by our boot script as the system timezone, set up a sensible user default String defaultTimeZoneId = System.getProperty( "agile.runtime.timezone" ); if ( defaultTimeZoneId != null ) { ...
diff --git a/javafx/money-javafx-binding/src/main/java/net/java/javamoney/examples/javafx/Main.java b/javafx/money-javafx-binding/src/main/java/net/java/javamoney/examples/javafx/Main.java index c1ae39e..cb9aeb3 100644 --- a/javafx/money-javafx-binding/src/main/java/net/java/javamoney/examples/javafx/Main.java +++ b/ja...
true
true
public static void main(String[] args) { Bill bill1 = new Bill(); Bill bill2 = new Bill(); Bill bill3 = new Bill(); NumberBinding total = Bindings.add(bill1.amountDueProperty().add(bill2.amountDueProperty()), bill3.amountDueProperty()); total.a...
public static void main(String[] args) { Bill bill1 = new Bill(); Bill bill2 = new Bill(); Bill bill3 = new Bill(); NumberBinding total = Bindings.add(bill1.amountDueProperty().add(bill2.amountDueProperty()), bill3.amountDueProperty()); total.a...
diff --git a/src/main/org/jvyamlb/SerializerImpl.java b/src/main/org/jvyamlb/SerializerImpl.java index 424d415..c1ffebb 100644 --- a/src/main/org/jvyamlb/SerializerImpl.java +++ b/src/main/org/jvyamlb/SerializerImpl.java @@ -1,203 +1,203 @@ /* * See LICENSE file in distribution for copyright and licensing informatio...
true
true
private void serializeNode(Node node, final Node parent, final Object index) throws IOException { while(node instanceof LinkNode) { node = ((LinkNode)node).getAnchor(); } String tAlias = (String)this.anchors.get(node); if(this.serializedNodes.containsKey(node) && tAlias !...
private void serializeNode(Node node, final Node parent, final Object index) throws IOException { while(node instanceof LinkNode) { node = ((LinkNode)node).getAnchor(); } String tAlias = (String)this.anchors.get(node); if(this.serializedNodes.containsKey(node) && tAlias !...
diff --git a/src/internal/parser/resolve/ResolutionEngine.java b/src/internal/parser/resolve/ResolutionEngine.java index 42c2ad4..3d06586 100644 --- a/src/internal/parser/resolve/ResolutionEngine.java +++ b/src/internal/parser/resolve/ResolutionEngine.java @@ -1,367 +1,367 @@ package internal.parser.resolve; import...
true
true
public static Result direction(IPattern pattern, Result result, Column objectList) { Relation relation = pattern.relation(); Result subResult = Result.newCopy(result); // Copy over any missing columns for(Reference r : pattern.references()) { if(!subResult.contains(r.toString())) subResult.a...
public static Result direction(IPattern pattern, Result result, Column objectList) { Relation relation = pattern.relation(); Result subResult = Result.newCopy(result); // Copy over any missing columns for(Reference r : pattern.references()) { if(!subResult.contains(r.toString())) subResult.a...
diff --git a/src/de/ueller/midlet/gps/data/CompassProvider.java b/src/de/ueller/midlet/gps/data/CompassProvider.java index 9f29219d..3a7ed0ba 100644 --- a/src/de/ueller/midlet/gps/data/CompassProvider.java +++ b/src/de/ueller/midlet/gps/data/CompassProvider.java @@ -1,352 +1,351 @@ /* * GpsMid - Copyright (c) 2009 K...
false
true
private Compass obtainSocketCompass() { if (clientSock == null) { try { logger.info("Connecting to socket://127.0.0.1:59721"); clientSock = (SocketConnection) Connector.open("socket://127.0.0.1:59721"); clientSock.setSocketOption(SocketConnection.KEEPALIVE, 0); clientOS = new DataOutputStream(clie...
private Compass obtainSocketCompass() { if (clientSock == null) { try { logger.info("Connecting to socket://127.0.0.1:59721"); clientSock = (SocketConnection) Connector.open("socket://127.0.0.1:59721"); clientSock.setSocketOption(SocketConnection.KEEPALIVE, 0); clientOS = new DataOutputStream(clie...
diff --git a/src/ibis/impl/messagePassing/ReceivePort.java b/src/ibis/impl/messagePassing/ReceivePort.java index ade4b27d..3677c4dc 100644 --- a/src/ibis/impl/messagePassing/ReceivePort.java +++ b/src/ibis/impl/messagePassing/ReceivePort.java @@ -1,821 +1,818 @@ package ibis.ipl.impl.messagePassing; import java.uti...
false
true
public void run() { if (upcall == null) { System.err.println(Thread.currentThread() + "ReceivePort " + name + ", daemon = " + this + " runs but upcall == null"); } else System.err.println(Thread.currentThread() + " ReceivePort " + name + ", daemon = " + this + " runs"); if (DEBUG) { System.err.println...
public void run() { if (upcall == null) { System.err.println(Thread.currentThread() + "ReceivePort " + name + ", daemon = " + this + " runs but upcall == null"); } else System.err.println(Thread.currentThread() + " ReceivePort " + name + ", daemon = " + this + " runs"); if (DEBUG) { System.err.println...
diff --git a/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionStart.java b/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionStart.java index d20c066..b42fc69 100644 --- a/src/net/invisioncraft/plugins/salesmania/commands/auction/AuctionStart.java +++ b/src/net/invisioncraft/plugins/sales...
false
true
public boolean execute(CommandSender sender, Command command, String label, String[] args) { Locale locale = plugin.getLocaleHandler().getLocale(sender); // Console check if(!(sender instanceof Player)) { sender.sendMessage(locale.getMessage("Console.cantStartAuction")); ...
public boolean execute(CommandSender sender, Command command, String label, String[] args) { Locale locale = plugin.getLocaleHandler().getLocale(sender); // Console check if(!(sender instanceof Player)) { sender.sendMessage(locale.getMessage("Console.cantStartAuction")); ...
diff --git a/source/de/tuclausthal/submissioninterface/servlets/controller/SubmitSolution.java b/source/de/tuclausthal/submissioninterface/servlets/controller/SubmitSolution.java index e9834a0..7b204d3 100644 --- a/source/de/tuclausthal/submissioninterface/servlets/controller/SubmitSolution.java +++ b/source/de/tuclaus...
true
true
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { Session session = RequestAdapter.getSession(request); Template template = TemplateFactory.getTemplate(request, response); PrintWriter out = response.getWriter(); TaskDAOIf taskDAO = DAOFactory....
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { Session session = RequestAdapter.getSession(request); Template template = TemplateFactory.getTemplate(request, response); PrintWriter out = response.getWriter(); TaskDAOIf taskDAO = DAOFactory....
diff --git a/src/main/java/com/lazerycode/jmeter/JMeterAbstractMojo.java b/src/main/java/com/lazerycode/jmeter/JMeterAbstractMojo.java index 8a37e6a..222f34f 100644 --- a/src/main/java/com/lazerycode/jmeter/JMeterAbstractMojo.java +++ b/src/main/java/com/lazerycode/jmeter/JMeterAbstractMojo.java @@ -1,398 +1,398 @@ pa...
true
true
protected void populateJMeterDirectoryTree() throws MojoExecutionException { for (Artifact artifact : pluginArtifacts) { try { // All artifacts, that come from the dependencies section of the pom.xml of the jmeter-maven-plugin, have scope COMPILE. // These artifacts fall in 3 categories: // * Artifact...
protected void populateJMeterDirectoryTree() throws MojoExecutionException { for (Artifact artifact : pluginArtifacts) { try { // All artifacts, that come from the dependencies section of the pom.xml of the jmeter-maven-plugin, have scope COMPILE. // These artifacts fall in 3 categories: // * Artifact...
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/PropertyTester.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/PropertyTester.java index e6bbca19..f6115ea1 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/PropertyTester.java ...
true
true
public boolean test(Object receiver, String property, Object[] args, Object expectedValue) { if (!(receiver instanceof RepositoryTreeNode)) return false; RepositoryTreeNode node = (RepositoryTreeNode) receiver; if (property.equals("isBare")) { //$NON-NLS-1$ Repository rep = node.getRepository(); re...
public boolean test(Object receiver, String property, Object[] args, Object expectedValue) { if (!(receiver instanceof RepositoryTreeNode)) return false; RepositoryTreeNode node = (RepositoryTreeNode) receiver; if (property.equals("isBare")) { //$NON-NLS-1$ Repository rep = node.getRepository(); re...
diff --git a/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/AllFileSearchTests.java b/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/AllFileSearchTests.java index 96b517a6c..d9ca5e723 100644 --- a/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/AllFileSearchTests.jav...
true
true
public AllFileSearchTests() { addTest(AnnotationManagerTest.allTests()); addTest(SearchResultPageTest.allTests()); addTest(ResultUpdaterTest.allTests()); }
public AllFileSearchTests() { addTest(AnnotationManagerTest.allTests()); addTest(SearchResultPageTest.allTests()); addTest(ResultUpdaterTest.allTests()); addTest(SortingTest.allTests()); }
diff --git a/modules/foundation/swingwhiteboard/src/classes/org/jdesktop/wonderland/modules/swingwhiteboard/client/SwingWhiteboardPanel.java b/modules/foundation/swingwhiteboard/src/classes/org/jdesktop/wonderland/modules/swingwhiteboard/client/SwingWhiteboardPanel.java index 784e43c74..2c409dab4 100644 --- a/modules/f...
false
true
private void initComponents() { buttonPanel = new javax.swing.JPanel(); blackButton = new javax.swing.JButton(); redButton = new javax.swing.JButton(); blueButton = new javax.swing.JButton(); greenButton = new javax.swing.JButton(); strokeButton = new javax.swing.JBu...
private void initComponents() { buttonPanel = new javax.swing.JPanel(); blackButton = new javax.swing.JButton(); redButton = new javax.swing.JButton(); blueButton = new javax.swing.JButton(); greenButton = new javax.swing.JButton(); strokeButton = new javax.swing.JBu...
diff --git a/examples/simple_authentication/src/org/apache/cassandra/auth/SimpleAuthorizer.java b/examples/simple_authentication/src/org/apache/cassandra/auth/SimpleAuthorizer.java index 2d7b6442d..df626547a 100644 --- a/examples/simple_authentication/src/org/apache/cassandra/auth/SimpleAuthorizer.java +++ b/examples/s...
false
true
public EnumSet<Permission> authorize(AuthenticatedUser user, List<Object> resource) { if (resource.size() < 2 || !Resources.ROOT.equals(resource.get(0)) || !Resources.KEYSPACES.equals(resource.get(1))) return EnumSet.copyOf(Permission.NONE); String keyspace, columnFamily = n...
public EnumSet<Permission> authorize(AuthenticatedUser user, List<Object> resource) { if (resource.size() < 2 || !Resources.ROOT.equals(resource.get(0)) || !Resources.KEYSPACES.equals(resource.get(1))) return EnumSet.noneOf(Permission.class); String keyspace, columnFamily = ...
diff --git a/tests/src/cgeo/test/Compare.java b/tests/src/cgeo/test/Compare.java index 3fdb868dd..93eef99ac 100644 --- a/tests/src/cgeo/test/Compare.java +++ b/tests/src/cgeo/test/Compare.java @@ -1,57 +1,57 @@ package cgeo.test; import static junit.framework.Assert.assertEquals; import static junit.framework.Asse...
false
true
public static void assertCompareCaches(ICache expected, cgCache actual, boolean all) { assertEquals(expected.getGeocode(), actual.getGeocode()); assertTrue(expected.getType() == actual.getType()); assertEquals(expected.getOwner(), actual.getOwner()); assertEquals(expected.getDifficul...
public static void assertCompareCaches(ICache expected, cgCache actual, boolean all) { assertEquals(expected.getGeocode(), actual.getGeocode()); assertTrue(expected.getType() == actual.getType()); assertEquals(expected.getOwner(), actual.getOwner()); assertEquals(expected.getDifficul...
diff --git a/src/de/ueller/gps/tools/StringTokenizer.java b/src/de/ueller/gps/tools/StringTokenizer.java index bb4d9fa6..ad44b7e7 100644 --- a/src/de/ueller/gps/tools/StringTokenizer.java +++ b/src/de/ueller/gps/tools/StringTokenizer.java @@ -1,36 +1,33 @@ /* * GpsMid - Copyright (c) 2010 Olivier Cornu djinnn at use...
false
true
public static Vector getVector(String text, String separator) { Vector tokens = new Vector(); int seplen = separator.length(); int start = 0; int end; while ((end = text.indexOf(separator, start)) != -1) { tokens.addElement(text.substring(start, end)); start = end + seplen; } if (start < text.lengt...
public static Vector getVector(String text, String separator) { Vector tokens = new Vector(); int seplen = separator.length(); int start = 0; int end; while ((end = text.indexOf(separator, start)) != -1) { tokens.addElement(text.substring(start, end)); start = end + seplen; } if (start <= text.leng...
diff --git a/de.walware.statet.r.ui/src/de/walware/statet/r/internal/ui/rhelp/RHelpHover.java b/de.walware.statet.r.ui/src/de/walware/statet/r/internal/ui/rhelp/RHelpHover.java index e3c3d435..2f21718e 100644 --- a/de.walware.statet.r.ui/src/de/walware/statet/r/internal/ui/rhelp/RHelpHover.java +++ b/de.walware.statet....
false
true
public Object getHoverInfo(final AssistInvocationContext context) { final AstSelection selection = context.getAstSelection(); if (!(selection.getCovering() instanceof RAstNode)) { return null; } final RAstNode rNode = (RAstNode) selection.getCovering(); RElementName name = searchName(rNode, context, true)...
public Object getHoverInfo(final AssistInvocationContext context) { final AstSelection selection = context.getAstSelection(); if (!(selection.getCovering() instanceof RAstNode)) { return null; } final RAstNode rNode = (RAstNode) selection.getCovering(); RElementName name = searchName(rNode, context, true)...
diff --git a/src/main/java/uk/org/rbc1b/roms/controller/congregation/CongregationsController.java b/src/main/java/uk/org/rbc1b/roms/controller/congregation/CongregationsController.java index 96385ab6..3d7ce423 100644 --- a/src/main/java/uk/org/rbc1b/roms/controller/congregation/CongregationsController.java +++ b/src/ma...
true
true
public String showEditCongregationForm(@PathVariable Integer congregationId, ModelMap model) throws NoSuchRequestHandlingMethodException { Congregation congregation = congregationDao.findCongregation(congregationId); if (congregation == null) { throw new NoSuchRequestHandling...
public String showEditCongregationForm(@PathVariable Integer congregationId, ModelMap model) throws NoSuchRequestHandlingMethodException { Congregation congregation = congregationDao.findCongregation(congregationId); if (congregation == null) { throw new NoSuchRequestHandling...
diff --git a/pmd/src/net/sourceforge/pmd/rules/design/SingularField.java b/pmd/src/net/sourceforge/pmd/rules/design/SingularField.java index 459f4428c..91ef8306d 100644 --- a/pmd/src/net/sourceforge/pmd/rules/design/SingularField.java +++ b/pmd/src/net/sourceforge/pmd/rules/design/SingularField.java @@ -1,147 +1,148 @@...
true
true
public Object visit(ASTFieldDeclaration node, Object data) { boolean checkInnerClasses = getBooleanProperty(CHECK_INNER_CLASSES); boolean disallowNotAssignment = getBooleanProperty(DISALLOW_NOT_ASSIGNMENT); if (node.isPrivate() && !node.isStatic()) { List<ASTVariableDeclaratorId>...
public Object visit(ASTFieldDeclaration node, Object data) { boolean checkInnerClasses = getBooleanProperty(CHECK_INNER_CLASSES); boolean disallowNotAssignment = getBooleanProperty(DISALLOW_NOT_ASSIGNMENT); if (node.isPrivate() && !node.isStatic()) { List<ASTVariableDeclaratorId>...
diff --git a/gvlabs-image-utils/src/org/gvlabs/image/utils/filter/MergeFilter.java b/gvlabs-image-utils/src/org/gvlabs/image/utils/filter/MergeFilter.java index 8c90f46..b4ece34 100755 --- a/gvlabs-image-utils/src/org/gvlabs/image/utils/filter/MergeFilter.java +++ b/gvlabs-image-utils/src/org/gvlabs/image/utils/filter/...
true
true
public Image merge(Image toMerge) { int widOriginal = original.getWidth(null); int widToMerge = toMerge.getWidth(null); int hgtOriginal = original.getHeight(null); int hgtToMerge = toMerge.getHeight(null); int resultWid = Math.max(widOriginal, widToMerge); int resultHgt = Math.max(hgtOriginal, hgtToMerge...
public Image merge(Image toMerge) { int widOriginal = original.getWidth(null); int widToMerge = toMerge.getWidth(null); int hgtOriginal = original.getHeight(null); int hgtToMerge = toMerge.getHeight(null); int resultWid = Math.max(widOriginal, widToMerge); int resultHgt = Math.max(hgtOriginal, hgtToMerge...
diff --git a/src/com/dmdirc/addons/dcc/DCCPlugin.java b/src/com/dmdirc/addons/dcc/DCCPlugin.java index 65e4530c2..b65fdbbf3 100644 --- a/src/com/dmdirc/addons/dcc/DCCPlugin.java +++ b/src/com/dmdirc/addons/dcc/DCCPlugin.java @@ -1,616 +1,621 @@ /* * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holm...
true
true
public void handleProcessEvent(final ActionType type, final StringBuffer format, final boolean dontAsk, final Object... arguments) { if (IdentityManager.getGlobalConfig().getOptionBool(MY_DOMAIN, "receive.autoaccept", false) && !dontAsk) { handleProcessEvent(type, format, true, arguments); return; } if (t...
public void handleProcessEvent(final ActionType type, final StringBuffer format, final boolean dontAsk, final Object... arguments) { if (IdentityManager.getGlobalConfig().getOptionBool(MY_DOMAIN, "receive.autoaccept", false) && !dontAsk) { handleProcessEvent(type, format, true, arguments); return; } if (t...
diff --git a/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityAutoSpawner.java b/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityAutoSpawner.java index b759a72c..df7d17bb 100644 --- a/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityAutoSpawner.java +++ b/src/powercrystals/minefacto...
true
true
protected boolean activateMachine() { if(_inventory[0] == null || !(_inventory[0].getItem() instanceof ItemSafariNet) || _inventory[0].getTagCompound() == null || ItemSafariNet.isSingleUse(_inventory[0])) { setWorkDone(0); return false; } if(getWorkDone() < getWorkMax()) { if(_tank.getLiquid() != ...
protected boolean activateMachine() { if(_inventory[0] == null || !(_inventory[0].getItem() instanceof ItemSafariNet) || _inventory[0].getTagCompound() == null || ItemSafariNet.isSingleUse(_inventory[0])) { setWorkDone(0); return false; } if(getWorkDone() < getWorkMax()) { if(_tank.getLiquid() != ...
diff --git a/src/main/java/com/gmail/ikeike443/PlayAutoTestBuilder.java b/src/main/java/com/gmail/ikeike443/PlayAutoTestBuilder.java index 19e2b2a..23ba22d 100644 --- a/src/main/java/com/gmail/ikeike443/PlayAutoTestBuilder.java +++ b/src/main/java/com/gmail/ikeike443/PlayAutoTestBuilder.java @@ -1,261 +1,262 @@ packag...
true
true
public boolean perform(@SuppressWarnings("rawtypes") AbstractBuild build, Launcher launcher, BuildListener listener) { //clean up try { FilePath[] files = build.getProject().getWorkspace().list("test-result/*"); for (FilePath filePath : files) { filePath.delete(); } } catch (Exception e) { e.pri...
public boolean perform(@SuppressWarnings("rawtypes") AbstractBuild build, Launcher launcher, BuildListener listener) { //clean up try { FilePath[] files = build.getProject().getWorkspace().list("test-result/*"); for (FilePath filePath : files) { filePath.delete(); } } catch (Exception e) { e.pri...
diff --git a/main/src/com/google/refine/exporters/XlsExporter.java b/main/src/com/google/refine/exporters/XlsExporter.java index 8fb50af1..f8a40780 100644 --- a/main/src/com/google/refine/exporters/XlsExporter.java +++ b/main/src/com/google/refine/exporters/XlsExporter.java @@ -1,126 +1,131 @@ package com.google.refin...
true
true
public void export(Project project, Properties options, Engine engine, OutputStream outputStream) throws IOException { Workbook wb = new HSSFWorkbook(); Sheet s = wb.createSheet(); wb.setSheetName(0, ProjectManager.singleton.getProjectMetadata(project.id).getName()); ...
public void export(Project project, Properties options, Engine engine, OutputStream outputStream) throws IOException { Workbook wb = new HSSFWorkbook(); Sheet s = wb.createSheet(); wb.setSheetName(0, ProjectManager.singleton.getProjectMetadata(project.id).getName()); ...
diff --git a/nuget-server/src/jetbrains/buildServer/nuget/server/feed/server/process/NuGetServerPingCommandImpl.java b/nuget-server/src/jetbrains/buildServer/nuget/server/feed/server/process/NuGetServerPingCommandImpl.java index 43f5ebed..d10198e3 100644 --- a/nuget-server/src/jetbrains/buildServer/nuget/server/feed/se...
true
true
public boolean pingNuGetServer() { final HttpGet get = new HttpGet(myUri.getNuGetPingUri()); try { final HttpResponse execute = myHttp.execute(get); final StatusLine line = execute.getStatusLine(); if (LOG.isDebugEnabled()) { final HttpEntity entity = execute.getEntity(); if...
public boolean pingNuGetServer() { final String uri = myUri.getNuGetPingUri(); if (uri == null) return true; final HttpGet get = new HttpGet(uri); try { final HttpResponse execute = myHttp.execute(get); final StatusLine line = execute.getStatusLine(); if (LOG.isDebugEnabled()) { ...
diff --git a/src/main/java/com/walmartlabs/mupd8/application/statistics/NodeStatisticsCollector.java b/src/main/java/com/walmartlabs/mupd8/application/statistics/NodeStatisticsCollector.java index 98499db..8867adf 100644 --- a/src/main/java/com/walmartlabs/mupd8/application/statistics/NodeStatisticsCollector.java +++ b...
false
true
private static String getHostIPAddress() { String hostname; try { InetAddress addr = InetAddress.getLocalHost(); byte[] ipAddr = addr.getAddress(); hostname = addr.getHostName(); return hostname + "_" + new String(ipAddr); } catch (UnknownHostException e) { System.out.println(" Exception in obtain...
private static String getHostIPAddress() { try { InetAddress addr = InetAddress.getLocalHost(); return addr.getHostName() + "_" + addr.getHostAddress(); } catch (UnknownHostException e) { System.out.println(" Exception in obtaining hostname/IpAddress!"); return null; } }
diff --git a/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/OpenLiveDialogHandler.java b/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/OpenLiveDialogHandler.java index cedb14d1..06b459be 100644 --- a/bundles/org.eclipse.e4.tools.emf.liveeditor/s...
true
true
public void run(@Named(IServiceConstants.ACTIVE_SHELL) Shell s, IEclipseContext c, MApplication application, IStylingEngine engine) { if (this.shell == null || this.shell.isDisposed()) { try { this.shell = new Shell(s,SWT.SHELL_TRIM); //FIXME Style this.shell.setBackground(shell.getDisplay().getSys...
public void run(@Named(IServiceConstants.ACTIVE_SHELL) Shell s, IEclipseContext c, MApplication application, IStylingEngine engine) { if (this.shell == null || this.shell.isDisposed()) { try { this.shell = new Shell(s,SWT.SHELL_TRIM); //FIXME Style this.shell.setBackground(shell.getDisplay().getSys...
diff --git a/bbb-tool/impl/src/java/org/sakaiproject/bbb/impl/sql/DefaultSqlGenerator.java b/bbb-tool/impl/src/java/org/sakaiproject/bbb/impl/sql/DefaultSqlGenerator.java index 7de3093..612528a 100644 --- a/bbb-tool/impl/src/java/org/sakaiproject/bbb/impl/sql/DefaultSqlGenerator.java +++ b/bbb-tool/impl/src/java/org/sa...
false
true
public List<PreparedStatement> getStoreMeetingStatements( BBBMeeting meeting, Connection connection) throws Exception { List<PreparedStatement> statements = new ArrayList<PreparedStatement>(); PreparedStatement meetingST = connection .prepareStatement("INSERT INT...
public List<PreparedStatement> getStoreMeetingStatements( BBBMeeting meeting, Connection connection) throws Exception { List<PreparedStatement> statements = new ArrayList<PreparedStatement>(); PreparedStatement meetingST = connection .prepareStatement("INSERT INT...
diff --git a/src/com/epam/task5/transform/XsltTransformerFactory.java b/src/com/epam/task5/transform/XsltTransformerFactory.java index a164228..45b1448 100644 --- a/src/com/epam/task5/transform/XsltTransformerFactory.java +++ b/src/com/epam/task5/transform/XsltTransformerFactory.java @@ -1,76 +1,76 @@ package com.epam...
false
true
public static Transformer getTransformer(String xsltFilePath) { Transformer transformer = null; String realPath = CommandFactory.getRealPath(); Templates template = xsltTemplates.get(xsltFilePath); try { if (template == null) { lock.lock(); template = xsltTemplates.get(xsltFilePath); if (template == ...
public static Transformer getTransformer(String xsltFilePath) { Transformer transformer = null; String realPath = CommandFactory.getRealPath(); Templates template = xsltTemplates.get(xsltFilePath); lock.lock(); try { if (template == null) { template = xsltTemplates.get(xsltFilePath); if (template == n...
diff --git a/luni/src/main/java/java/util/prefs/XMLParser.java b/luni/src/main/java/java/util/prefs/XMLParser.java index d12169eb7..b63784c3e 100644 --- a/luni/src/main/java/java/util/prefs/XMLParser.java +++ b/luni/src/main/java/java/util/prefs/XMLParser.java @@ -1,506 +1,505 @@ /* Licensed to the Apache Software Fou...
true
true
private static NodeList selectNodeList(Element documentElement, String string) { NodeList result = null; ArrayList<Node> input = new ArrayList<Node>(); String[] path = string.split("/"); NodeList childNodes = documentElement.getChildNodes(); if(path[0].equals("entry") ||...
private static NodeList selectNodeList(Element documentElement, String string) { NodeList result = null; ArrayList<Node> input = new ArrayList<Node>(); String[] path = string.split("/"); NodeList childNodes = documentElement.getChildNodes(); if(path[0].equals("entry") ||...
diff --git a/src/butterseal/src/edu/smcm/gamedev/butterseal/ButterSeal.java b/src/butterseal/src/edu/smcm/gamedev/butterseal/ButterSeal.java index bbff95e..e372feb 100644 --- a/src/butterseal/src/edu/smcm/gamedev/butterseal/ButterSeal.java +++ b/src/butterseal/src/edu/smcm/gamedev/butterseal/ButterSeal.java @@ -1,106 +...
true
true
public void create() { float w = Gdx.graphics.getWidth(); float h = Gdx.graphics.getHeight(); camera = new OrthographicCamera(); assetManager = new AssetManager(); batch = new SpriteBatch(); font = new BitmapFont(); camera.setToOrtho(false, (w / h) * 10, 10); camera.update(); assetManager....
public void create() { float w = Gdx.graphics.getWidth(); float h = Gdx.graphics.getHeight(); camera = new OrthographicCamera(); assetManager = new AssetManager(); batch = new SpriteBatch(); font = new BitmapFont(); camera.setToOrtho(false, (w / h) * 10, 10); camera.update(); assetManager....
diff --git a/src/ecologylab/serialization/deserializers/pullhandlers/stringformats/XMLPullDeserializer.java b/src/ecologylab/serialization/deserializers/pullhandlers/stringformats/XMLPullDeserializer.java index 081154a1..c58901d7 100644 --- a/src/ecologylab/serialization/deserializers/pullhandlers/stringformats/XMLPull...
true
true
private void createObjectModel(Object root, ClassDescriptor<? extends FieldDescriptor> rootClassDescriptor, String rootTag) throws IOException, SIMPLTranslationException { try { int event = 0; event = nextEvent(); FieldDescriptor currentFieldDescriptor = null; // new FieldDescriptor(); String ...
private void createObjectModel(Object root, ClassDescriptor<? extends FieldDescriptor> rootClassDescriptor, String rootTag) throws IOException, SIMPLTranslationException { try { int event = 0; event = nextEvent(); FieldDescriptor currentFieldDescriptor = null; // new FieldDescriptor(); String ...
diff --git a/lexevs-dao/src/main/java/org/lexevs/registry/setup/LexEvsSchemaInstallationSetup.java b/lexevs-dao/src/main/java/org/lexevs/registry/setup/LexEvsSchemaInstallationSetup.java index a22e54e4a..9179d180e 100644 --- a/lexevs-dao/src/main/java/org/lexevs/registry/setup/LexEvsSchemaInstallationSetup.java +++ b/l...
false
true
public void setUpLexEvsDbSchema() throws Exception { this.getLogger().info("Checking for installed LexEVS Database Schema."); if(!isLexGridSchemaInstalled){ this.getLexEvsDatabaseOperations().createCommonTables(); this.getLexEvsDatabaseOperations().createHistoryTables(); this.registryDao.initRegistryM...
public void setUpLexEvsDbSchema() throws Exception { this.getLogger().info("Checking for installed LexEVS Database Schema."); if(!isLexGridSchemaInstalled){ this.getLexEvsDatabaseOperations().createCommonTables(); if(this.systemVariables.isSingleTableMode()){ lexEvsDatabaseOperations.createCodingSche...
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/DetailsDialog.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/DetailsDialog.java index 53069ba25..3d8ac1177 100644 --- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/DetailsDialog.java +...
true
true
final protected Control createDialogArea(Composite parent) { // create composite Composite composite = (Composite)super.createDialogArea(parent); // create image Image image = JFaceResources.getImageRegistry().get(getImageKey()); if (image != null) { // create a composite to split the dialog area in tw...
final protected Control createDialogArea(Composite parent) { // create composite Composite composite = (Composite)super.createDialogArea(parent); // create image String key = getImageKey(); Image image = null; if (key != null) { image = JFaceResources.getImageRegistry().get(key); } if (image != n...
diff --git a/src/syndie/gui/Syndicator.java b/src/syndie/gui/Syndicator.java index 676af27..9d02c13 100644 --- a/src/syndie/gui/Syndicator.java +++ b/src/syndie/gui/Syndicator.java @@ -1,1262 +1,1266 @@ package syndie.gui; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java...
true
true
private void locked_loadDataFetch(SyncArchive.IncomingAction action) { if (action != null) { SyndieURI uri = action.getURI(); if (uri == null) return; Hash scope = uri.getScope(); if (scope == null) return; Map incomingURIToItem = (Map)_archiveNam...
private void locked_loadDataFetch(SyncArchive.IncomingAction action) { if (action != null) { SyndieURI uri = action.getURI(); if (uri == null) return; Hash scope = uri.getScope(); if (scope == null) return; Map incomingURIToItem = (Map)_archiveNam...
diff --git a/QPhoneApp/src/com/ventus/smartphonequadrotor/qphoneapp/util/bluetooth/BluetoothManager.java b/QPhoneApp/src/com/ventus/smartphonequadrotor/qphoneapp/util/bluetooth/BluetoothManager.java index f57ef3e..2bf2669 100644 --- a/QPhoneApp/src/com/ventus/smartphonequadrotor/qphoneapp/util/bluetooth/BluetoothManage...
false
true
public void run(byte[] packet, int length) { // Require command id, data source, 4 timestamp, and at least 1 payload if(length >= 7) { // values from tri axis sensors int x, y, z; // Timestamp is unsigned long timestamp = ((packet[TIMESTAMP_START_INDEX] << 0) & 0x00000000FF) | ...
public void run(byte[] packet, int length) { // Require command id, data source, 4 timestamp, and at least 1 payload if(length >= 7) { // values from tri axis sensors int x, y, z; // Timestamp is unsigned long timestamp = ((packet[TIMESTAMP_START_INDEX] << 0) & 0x00000000FF) | ...
diff --git a/lucene/test-framework/src/java/org/apache/lucene/store/MockIndexOutputWrapper.java b/lucene/test-framework/src/java/org/apache/lucene/store/MockIndexOutputWrapper.java index dcf910f0c1..058dc978ef 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/store/MockIndexOutputWrapper.java +++ b/lucene/t...
true
true
public void writeBytes(byte[] b, int offset, int len) throws IOException { long freeSpace = dir.maxSize == 0 ? 0 : dir.maxSize - dir.sizeInBytes(); long realUsage = 0; if (dir.rateLimiter != null && len >= 10) { dir.rateLimiter.pause(len); } // If MockRAMDir crashed since we were opened, t...
public void writeBytes(byte[] b, int offset, int len) throws IOException { long freeSpace = dir.maxSize == 0 ? 0 : dir.maxSize - dir.sizeInBytes(); long realUsage = 0; if (dir.rateLimiter != null && len >= 1000) { dir.rateLimiter.pause(len); } // If MockRAMDir crashed since we were opened,...
diff --git a/bundles/org.eclipse.draw2d/src/org/eclipse/draw2d/GhostImageFigure.java b/bundles/org.eclipse.draw2d/src/org/eclipse/draw2d/GhostImageFigure.java index 22755c3..d4b3cc9 100644 --- a/bundles/org.eclipse.draw2d/src/org/eclipse/draw2d/GhostImageFigure.java +++ b/bundles/org.eclipse.draw2d/src/org/eclipse/draw...
true
true
public GhostImageFigure(final IFigure source, int alpha, RGB transparency) { this.alpha = alpha; Rectangle sourceFigureRelativePrecisionBounds = new PrecisionRectangle( source.getBounds().getCopy()); // Create image using RAP constructors. Image offscreenImage = new Image(Display.getCurrent(), new ImageDa...
public GhostImageFigure(final IFigure source, int alpha, RGB transparency) { this.alpha = alpha; Rectangle sourceFigureRelativePrecisionBounds = new PrecisionRectangle( source.getBounds().getCopy()); // Create image using RAP constructors. Image offscreenImage = new Image(Display.getCurrent(), new ImageDa...
diff --git a/jbpm-services/droolsjbpm-knowledge-services/src/main/java/org/droolsjbpm/services/impl/CDISessionManager.java b/jbpm-services/droolsjbpm-knowledge-services/src/main/java/org/droolsjbpm/services/impl/CDISessionManager.java index 6dce0f093..0b2dd1f5c 100644 --- a/jbpm-services/droolsjbpm-knowledge-services/s...
true
true
public int buildSession(String sessionName, String path, boolean streamMode) { getDomain().addKsessionRepositoryRoot(sessionName, path); Iterable<Path> loadProcessFiles = null; Iterable<Path> loadRulesFiles = null; try { loadProcessFiles = fs.loadFilesByType(path, ...
public int buildSession(String sessionName, String path, boolean streamMode) { getDomain().addKsessionRepositoryRoot(sessionName, path); Iterable<Path> loadProcessFiles = null; Iterable<Path> loadRulesFiles = null; try { loadProcessFiles = fs.loadFilesByType(path, ...
diff --git a/modules/extension/app-schema/app-schema/src/main/java/org/geotools/data/complex/MappingFeatureIteratorFactory.java b/modules/extension/app-schema/app-schema/src/main/java/org/geotools/data/complex/MappingFeatureIteratorFactory.java index c69354a16..824f21f4d 100644 --- a/modules/extension/app-schema/app-sc...
false
true
public static IMappingFeatureIterator getInstance(AppSchemaDataAccess store, FeatureTypeMapping mapping, Query rawQuery, Filter unrolledFilter) throws IOException { Query query = new Query(rawQuery); if (mapping instanceof XmlFeatureTypeMapping) { return new XmlMappingFeatureIt...
public static IMappingFeatureIterator getInstance(AppSchemaDataAccess store, FeatureTypeMapping mapping, Query query, Filter unrolledFilter) throws IOException { if (mapping instanceof XmlFeatureTypeMapping) { return new XmlMappingFeatureIterator(store, mapping, query); } ...
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/EclipseFolder.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/EclipseFolder.java index ceca1834a..cb0364e32 100644 --- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/inte...
false
true
public ICVSResource[] members(int flags) throws CVSException { final List result = new ArrayList(); IResource[] resources = EclipseSynchronizer.getInstance().members((IContainer)resource); boolean includeFiles = (((flags & FILE_MEMBERS) != 0) || ((flags & (FILE_MEMBERS | FOLDER_MEMBERS)) == 0)); boolean incl...
public ICVSResource[] members(int flags) throws CVSException { final List result = new ArrayList(); IResource[] resources = EclipseSynchronizer.getInstance().members((IContainer)resource); boolean includeFiles = (((flags & FILE_MEMBERS) != 0) || ((flags & (FILE_MEMBERS | FOLDER_MEMBERS)) == 0)); boolean incl...
diff --git a/src/com/inc/im/serptracker/data/access/AsyncDownloader.java b/src/com/inc/im/serptracker/data/access/AsyncDownloader.java index dc7f22a..e210e77 100644 --- a/src/com/inc/im/serptracker/data/access/AsyncDownloader.java +++ b/src/com/inc/im/serptracker/data/access/AsyncDownloader.java @@ -1,285 +1,285 @@ pa...
false
true
private Elements downloadJsoapParseH3FirstA(Keyword keyword) { if (keyword == null) return null; Document doc = null; // String ua = // "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30"; String ua = "Apache-HttpClient/UNAVAILABLE (...
private Elements downloadJsoapParseH3FirstA(Keyword keyword) { if (keyword == null) return null; Document doc = null; // String ua = // "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30"; String ua = "Apache-HttpClient/UNAVAILABLE (...
diff --git a/GAE/src/com/gallatinsystems/survey/dao/SurveyUtils.java b/GAE/src/com/gallatinsystems/survey/dao/SurveyUtils.java index d5bfad0e3..d74737a93 100644 --- a/GAE/src/com/gallatinsystems/survey/dao/SurveyUtils.java +++ b/GAE/src/com/gallatinsystems/survey/dao/SurveyUtils.java @@ -1,212 +1,212 @@ /* * Copyri...
false
true
public static QuestionGroup copyQuestionGroup(QuestionGroup source, Long newSurveyId, Integer order) { final QuestionGroupDao qgDao = new QuestionGroupDao(); final QuestionDao qDao = new QuestionDao(); final QuestionGroup tmp = new QuestionGroup(); BeanUtils.copyProperties(source, tmp, Constants.EXCLUDED_...
public static QuestionGroup copyQuestionGroup(QuestionGroup source, Long newSurveyId, Integer order) { final QuestionGroupDao qgDao = new QuestionGroupDao(); final QuestionDao qDao = new QuestionDao(); final QuestionGroup tmp = new QuestionGroup(); BeanUtils.copyProperties(source, tmp, Constants.EXCLUDED_...
diff --git a/src/net/eonz/bukkit/psduo/signs/normal/DelaySign.java b/src/net/eonz/bukkit/psduo/signs/normal/DelaySign.java index 99b2853..a03651e 100644 --- a/src/net/eonz/bukkit/psduo/signs/normal/DelaySign.java +++ b/src/net/eonz/bukkit/psduo/signs/normal/DelaySign.java @@ -1,129 +1,131 @@ package net.eonz.bukkit.ps...
false
true
protected void declare(boolean reload, SignChangeEvent event) { String periodLine = this.getLines(event)[1].trim(); if (periodLine.length() > 0) { try { period = Integer.parseInt(periodLine); } catch (Exception e) { if (!reload) this.main.alert(this.getOwnerName(), "Could not understand period,...
protected void declare(boolean reload, SignChangeEvent event) { String periodLine = this.getLines(event)[1].trim(); if (periodLine.length() > 0) { try { period = Integer.parseInt(periodLine); } catch (Exception e) { if (!reload) this.main.alert(this.getOwnerName(), "Could not understand period,...
diff --git a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/TypeImpl.java b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/TypeImpl.java index 6e6d61795..1f6f7c137 100644 --- a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/TypeImpl.java +++ b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/TypeImpl.java...
false
true
public static String classNameToSignature(String qualifiedName) { // L<classname>; : fully-qualified-class /* JNI signature examples: * int[][] -> [[I * long[] -> [J * java.lang.String -> Ljava/lang/String; * java.lang.String[] -> [Ljava/lang/String; */ StringBuffer s...
public static String classNameToSignature(String qualifiedName) { // L<classname>; : fully-qualified-class /* JNI signature examples: * int[][] -> [[I * long[] -> [J * java.lang.String -> Ljava/lang/String; * java.lang.String[] -> [Ljava/lang/String; */ StringBuffer s...
diff --git a/ProjetoAM/src/br/com/am/dao/AdvogadoDAO.java b/ProjetoAM/src/br/com/am/dao/AdvogadoDAO.java index e5080cd..083a99b 100644 --- a/ProjetoAM/src/br/com/am/dao/AdvogadoDAO.java +++ b/ProjetoAM/src/br/com/am/dao/AdvogadoDAO.java @@ -1,96 +1,97 @@ package br.com.am.dao; import java.sql.Connection; import ja...
true
true
public List<Advogado> consultarAdvogados() { //Conex�o Connection conn = ConnectionFactory.getConnectionOracle(); //Comunica��o String sql = "SELECT CD_PESSOA_ADV, NR_OAB, NR_CPF, NR_RG, DS_EMAIL, DS_PASSWORD FROM AM_ADVOGADO"; PreparedStatement ps = null; ResultSet rs = null; Advogado advogado =...
public List<Advogado> consultarAdvogados() { //Conex�o //xx Connection conn = ConnectionFactory.getConnectionOracle(); //Comunica��o String sql = "SELECT CD_PESSOA_ADV, NR_OAB, NR_CPF, NR_RG, DS_EMAIL, DS_PASSWORD FROM AM_ADVOGADO"; PreparedStatement ps = null; ResultSet rs = null; Advogado adv...
diff --git a/src/com/example/multimodal2/UserCommunication.java b/src/com/example/multimodal2/UserCommunication.java index a857e3a..e2c23a8 100644 --- a/src/com/example/multimodal2/UserCommunication.java +++ b/src/com/example/multimodal2/UserCommunication.java @@ -1,183 +1,183 @@ package com.example.multimodal2; im...
false
true
public void InputFromUser(String text) { Log.d("SpeechRepeatActivity", text); //Toast.makeText(this.ma, "You said: "+text, Toast.LENGTH_LONG).show(); //if(this.tts != null) { //this.tts.speak("You said: "+text, TextToSpeech.QUEUE_FLUSH, null); //} if(this.currentCommand == null) { this.currentCommand =...
public void InputFromUser(String text) { Log.d("SpeechRepeatActivity", text); //Toast.makeText(this.ma, "You said: "+text, Toast.LENGTH_LONG).show(); //if(this.tts != null) { //this.tts.speak("You said: "+text, TextToSpeech.QUEUE_FLUSH, null); //} if(this.currentCommand == null) { this.currentCommand =...
diff --git a/bitrepository-core/src/main/java/org/bitrepository/common/settings/SettingsProvider.java b/bitrepository-core/src/main/java/org/bitrepository/common/settings/SettingsProvider.java index de3b211e..e98eca21 100644 --- a/bitrepository-core/src/main/java/org/bitrepository/common/settings/SettingsProvider.java ...
true
true
public synchronized void reloadSettings(String componentID) { CollectionSettings collectionSettings = settingsReader.loadSettings(CollectionSettings.class); ReferenceSettings referenceSettings = settingsReader.loadSettings(ReferenceSettings.class); String receiverDestinationIDFactoryClass = null;...
public synchronized void reloadSettings(String componentID) { CollectionSettings collectionSettings = settingsReader.loadSettings(CollectionSettings.class); ReferenceSettings referenceSettings = settingsReader.loadSettings(ReferenceSettings.class); String receiverDestinationIDFactoryClass = null;...
diff --git a/eclipse_files/src/manager/panel/KitManagerPanel.java b/eclipse_files/src/manager/panel/KitManagerPanel.java index 39a928e5..91cddafb 100644 --- a/eclipse_files/src/manager/panel/KitManagerPanel.java +++ b/eclipse_files/src/manager/panel/KitManagerPanel.java @@ -1,307 +1,307 @@ package manager.panel; im...
true
true
public KitManagerPanel(manager.KitManager k) { // store a reference to the KitManager to sent/receive items from client/server. km = k; setLayout(new GridLayout(1, 1)); JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP); add(tabbedPane); JPanel managerPanel = new JPanel(); tabbedPane.addT...
public KitManagerPanel(manager.KitManager k) { // store a reference to the KitManager to sent/receive items from client/server. km = k; setLayout(new GridLayout(1, 1)); JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP); add(tabbedPane); JPanel managerPanel = new JPanel(); tabbedPane.addT...
diff --git a/wagon-providers/wagon-scm/src/main/java/org/apache/maven/wagon/providers/scm/ScmWagon.java b/wagon-providers/wagon-scm/src/main/java/org/apache/maven/wagon/providers/scm/ScmWagon.java index b6306e9d..da84eba9 100644 --- a/wagon-providers/wagon-scm/src/main/java/org/apache/maven/wagon/providers/scm/ScmWagon...
true
true
private String checkOut( ScmProvider scmProvider, ScmRepository scmRepository, String targetName, Resource resource ) throws TransferFailedException { checkoutDirectory = createCheckoutDirectory(); Stack stack = new Stack(); String target = targetName; // totally ignor...
private String checkOut( ScmProvider scmProvider, ScmRepository scmRepository, String targetName, Resource resource ) throws TransferFailedException { checkoutDirectory = createCheckoutDirectory(); Stack stack = new Stack(); String target = targetName; // totally ignor...
diff --git a/luni/src/main/java/javax/net/ssl/DefaultHostnameVerifier.java b/luni/src/main/java/javax/net/ssl/DefaultHostnameVerifier.java index ab861ccbb..e68baca8e 100644 --- a/luni/src/main/java/javax/net/ssl/DefaultHostnameVerifier.java +++ b/luni/src/main/java/javax/net/ssl/DefaultHostnameVerifier.java @@ -1,168 +...
true
true
public boolean verifyHostName(String hostName, String cn) { if (hostName == null || hostName.isEmpty() || cn == null || cn.isEmpty()) { return false; } cn = cn.toLowerCase(Locale.US); if (!cn.contains("*")) { return hostName.equals(cn); } if...
public boolean verifyHostName(String hostName, String cn) { if (hostName == null || hostName.isEmpty() || cn == null || cn.isEmpty()) { return false; } cn = cn.toLowerCase(Locale.US); if (!cn.contains("*")) { return hostName.equals(cn); } if...
diff --git a/GAE/src/com/gallatinsystems/survey/dao/DeviceSurveyJobQueueDAO.java b/GAE/src/com/gallatinsystems/survey/dao/DeviceSurveyJobQueueDAO.java index 2002a3887..99ff8dd12 100644 --- a/GAE/src/com/gallatinsystems/survey/dao/DeviceSurveyJobQueueDAO.java +++ b/GAE/src/com/gallatinsystems/survey/dao/DeviceSurveyJobQ...
true
true
public void deleteJob(String phone, Long surveyId) { PersistenceManager pm = PersistenceFilter.getManager(); if (phone != null && surveyId != null) { javax.jdo.Query query = pm.newQuery(Task.class); String filterString = "devicePhoneNumber = devicePhoneParam && surveyId = surveyIdParam"; String paramStri...
public void deleteJob(String phone, Long surveyId) { PersistenceManager pm = PersistenceFilter.getManager(); if (phone != null && surveyId != null) { javax.jdo.Query query = pm.newQuery(Task.class); String filterString = "devicePhoneNumber == devicePhoneParam && surveyId == surveyIdParam"; String paramSt...
diff --git a/java/modules/core/src/main/java/org/apache/synapse/config/xml/IterateMediatorFactory.java b/java/modules/core/src/main/java/org/apache/synapse/config/xml/IterateMediatorFactory.java index 168021b6e..0bf31ff7a 100644 --- a/java/modules/core/src/main/java/org/apache/synapse/config/xml/IterateMediatorFactory....
true
true
public Mediator createMediator(OMElement elem) { IterateMediator mediator = new IterateMediator(); processTraceState(mediator, elem); OMAttribute continueParent = elem.getAttribute(ATT_CONTPAR); if (continueParent != null) { mediator.setContinueParent( B...
public Mediator createMediator(OMElement elem) { IterateMediator mediator = new IterateMediator(); processTraceState(mediator, elem); OMAttribute continueParent = elem.getAttribute(ATT_CONTPAR); if (continueParent != null) { mediator.setContinueParent( B...
diff --git a/maven/src/main/java/org/liquibase/maven/plugins/AbstractLiquibaseMojo.java b/maven/src/main/java/org/liquibase/maven/plugins/AbstractLiquibaseMojo.java index 60125bfa..c0ab4c08 100644 --- a/maven/src/main/java/org/liquibase/maven/plugins/AbstractLiquibaseMojo.java +++ b/maven/src/main/java/org/liquibase/ma...
true
true
public void execute() throws MojoExecutionException, MojoFailureException { getLog().info(MavenUtils.LOG_SEPARATOR); String shouldRunProperty = System.getProperty(Liquibase.SHOULD_RUN_SYSTEM_PROPERTY); if (shouldRunProperty != null && !Boolean.valueOf(shouldRunProperty).booleanValue()) { getLog().w...
public void execute() throws MojoExecutionException, MojoFailureException { getLog().info(MavenUtils.LOG_SEPARATOR); String shouldRunProperty = System.getProperty(Liquibase.SHOULD_RUN_SYSTEM_PROPERTY); if (shouldRunProperty != null && !Boolean.valueOf(shouldRunProperty).booleanValue()) { getLog().w...
diff --git a/Disasteroids/trunk/src/disasteroids/Running.java b/Disasteroids/trunk/src/disasteroids/Running.java index 70c2778..c908ef7 100644 --- a/Disasteroids/trunk/src/disasteroids/Running.java +++ b/Disasteroids/trunk/src/disasteroids/Running.java @@ -1,278 +1,276 @@ /* * DISASTEROIDS * Running.java */ pac...
true
true
public static void quit() { try { GameLoop.stopLoop(); System.out.println( "\nShutting down nicely..." ); // Tell server or clients that we're quitting. if ( Client.is() ) Client.getInstance().quit(); else if ( Server.i...
public static void quit() { try { GameLoop.stopLoop(); System.out.println( "\nShutting down nicely..." ); // Tell server or clients that we're quitting. if ( Client.is() ) Client.getInstance().quit(); else if ( Server.i...
diff --git a/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/TransitionSupport.java b/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/TransitionSupport.java index d85f8299..3c356bba 100644 --- a/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/et...
true
true
public Connection create(ICreateConnectionContext context) { Connection newConnection = null; TransitionTerminal src = SupportUtil.getTransitionTerminal(context.getSourceAnchor(), fp); TransitionTerminal dst = SupportUtil.getTransitionTerminal(context.getTargetAnchor(), fp); StateGraph sg = Supp...
public Connection create(ICreateConnectionContext context) { Connection newConnection = null; TransitionTerminal src = SupportUtil.getTransitionTerminal(context.getSourceAnchor(), fp); TransitionTerminal dst = SupportUtil.getTransitionTerminal(context.getTargetAnchor(), fp); StateGraph sg = Supp...
diff --git a/src/net/grinder/util/InsecureSSLContextFactory.java b/src/net/grinder/util/InsecureSSLContextFactory.java index a9347e04..bef59923 100755 --- a/src/net/grinder/util/InsecureSSLContextFactory.java +++ b/src/net/grinder/util/InsecureSSLContextFactory.java @@ -1,129 +1,129 @@ // Copyright (C) 2004 Philip Ast...
true
true
public SSLContext create() throws CreateException { try { final SSLContext sslContext = SSLContext.getInstance("SSL"); // No KeyManager. sslContext.init(null, s_trustManagers, s_insecureRandom); return sslContext; } catch (GeneralSecurityException e) { throw new CreateExcep...
public SSLContext create() throws CreateException { try { final SSLContext sslContext = SSLContext.getInstance("SSL"); // No KeyManager. sslContext.init(m_keyManagers, s_trustManagers, s_insecureRandom); return sslContext; } catch (GeneralSecurityException e) { throw new Cr...
diff --git a/http/src/test/java/com/zaubersoftware/gnip4j/http/HttpGnipStreamTestDriver.java b/http/src/test/java/com/zaubersoftware/gnip4j/http/HttpGnipStreamTestDriver.java index 48f4dc0..827f4c0 100644 --- a/http/src/test/java/com/zaubersoftware/gnip4j/http/HttpGnipStreamTestDriver.java +++ b/http/src/test/java/com/...
true
true
public void testReConnection() throws Exception { final InputStream instream = new ActivityNetworkExceptionInputStream( getClass().getClassLoader().getResourceAsStream( "com/zaubersoftware/gnip4j/payload/payload-example.js"), 2); final GnipAuthentication auth = new InmutableGnipAuthe...
public void testReConnection() throws Exception { final InputStream instream = new ActivityNetworkExceptionInputStream( getClass().getClassLoader().getResourceAsStream( "com/zaubersoftware/gnip4j/payload/payload-example.js"), 2); final GnipAuthentication auth = new InmutableGnipAuthe...
diff --git a/tool/src/java/org/sakaiproject/evaluation/tool/producers/PreviewEvalProducer.java b/tool/src/java/org/sakaiproject/evaluation/tool/producers/PreviewEvalProducer.java index 1c4e0d27..dcc74a98 100644 --- a/tool/src/java/org/sakaiproject/evaluation/tool/producers/PreviewEvalProducer.java +++ b/tool/src/java/o...
false
true
public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) { // NOTE: the logic in this page was based on where the link originated (which is a terrible way to do things) and has // been changed to instead be based on the incoming view parameters, as a result, this is most...
public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) { // NOTE: the logic in this page was based on where the link originated (which is a terrible way to do things) and has // been changed to instead be based on the incoming view parameters, as a result, this is most...
diff --git a/src/org/mozilla/javascript/ScriptableObject.java b/src/org/mozilla/javascript/ScriptableObject.java index da9b29fd..094fbd60 100644 --- a/src/org/mozilla/javascript/ScriptableObject.java +++ b/src/org/mozilla/javascript/ScriptableObject.java @@ -1,2414 +1,2414 @@ /* -*- Mode: java; tab-width: 8; indent-ta...
true
true
private Slot accessSlot(String name, int index, int accessType) { int indexOrHash = (name != null ? name.hashCode() : index); if (accessType == SLOT_QUERY || accessType == SLOT_MODIFY || accessType == SLOT_MODIFY_CONST || accessType == SLOT_MODIFY_GETTER_SETT...
private Slot accessSlot(String name, int index, int accessType) { int indexOrHash = (name != null ? name.hashCode() : index); if (accessType == SLOT_QUERY || accessType == SLOT_MODIFY || accessType == SLOT_MODIFY_CONST || accessType == SLOT_MODIFY_GETTER_SETT...
diff --git a/src/de/ueller/midlet/gps/Trace.java b/src/de/ueller/midlet/gps/Trace.java index 522816e8..8571b632 100644 --- a/src/de/ueller/midlet/gps/Trace.java +++ b/src/de/ueller/midlet/gps/Trace.java @@ -1,3472 +1,3474 @@ /* * GpsMid - Copyright (c) 2007 Harald Mueller james22 at users dot sourceforge dot net *...
true
true
public void commandAction(Command c, Displayable d) { updateLastUserActionTime(); try { if((keyboardLocked) && (d != null)) { // show alert in keypressed() that keyboard is locked keyPressed(0); return; } if ((c == CMDS[PAN_LEFT25_CMD]) || (c == CMDS[PAN_RIGHT25_CMD]) || (c == CMDS[P...
public void commandAction(Command c, Displayable d) { updateLastUserActionTime(); try { if((keyboardLocked) && (d != null)) { // show alert in keypressed() that keyboard is locked keyPressed(0); return; } if ((c == CMDS[PAN_LEFT25_CMD]) || (c == CMDS[PAN_RIGHT25_CMD]) || (c == CMDS[P...
diff --git a/src/org/key2gym/presentation/panels/forms/ClientProfileFormPanel.java b/src/org/key2gym/presentation/panels/forms/ClientProfileFormPanel.java index 266d2ab..d2c4bce 100644 --- a/src/org/key2gym/presentation/panels/forms/ClientProfileFormPanel.java +++ b/src/org/key2gym/presentation/panels/forms/ClientProfi...
true
true
public void setClientProfile(ClientProfileDTO clientProfile) { this.clientProfile = clientProfile; if (bindingGroup == null) { bindingGroup = new BindingGroup(); formBindingListener = new FormBindingListener(); Binding binding = Bindings.createAutoBinding(AutoBi...
public void setClientProfile(ClientProfileDTO clientProfile) { this.clientProfile = clientProfile; if (bindingGroup == null) { bindingGroup = new BindingGroup(); formBindingListener = new FormBindingListener(); Binding binding = Bindings.createAutoBinding(AutoBi...
diff --git a/src/com/jeremyP/diseasedefense/LoadingScreen.java b/src/com/jeremyP/diseasedefense/LoadingScreen.java index f945381..45e7f1d 100644 --- a/src/com/jeremyP/diseasedefense/LoadingScreen.java +++ b/src/com/jeremyP/diseasedefense/LoadingScreen.java @@ -1,97 +1,97 @@ package com.jeremyP.diseasedefense; impor...
true
true
public void update(float deltaTime) { Graphics g = game.getGraphics(); Assets.levelBackground[0] = g.newPixmap("bloodstream.png", PixmapFormat.RGB565); Assets.levelBackground[1] = g.newPixmap("brain.png", PixmapFormat.RGB565); Assets.levelBackground[2] = g.newPixmap("blue_blood_cell.jpg", PixmapFormat.RGB565)...
public void update(float deltaTime) { Graphics g = game.getGraphics(); Assets.levelBackground[0] = g.newPixmap("bloodstream.png", PixmapFormat.RGB565); Assets.levelBackground[1] = g.newPixmap("brain.png", PixmapFormat.RGB565); Assets.levelBackground[2] = g.newPixmap("blue_blood_cell.png", PixmapFormat.RGB565)...
diff --git a/src/java/org/smoothbuild/command/err/CommandLineError.java b/src/java/org/smoothbuild/command/err/CommandLineError.java index 85614a86..19aca5f1 100644 --- a/src/java/org/smoothbuild/command/err/CommandLineError.java +++ b/src/java/org/smoothbuild/command/err/CommandLineError.java @@ -1,11 +1,11 @@ packag...
true
true
public CommandLineError(String message) { super(ERROR, "Incorrect command line\n " + message); }
public CommandLineError(String message) { super(ERROR, "Incorrect command line\n" + message); }
diff --git a/ui/plugins/eu.esdihumboldt.hale.ui.util/src/eu/esdihumboldt/hale/ui/util/selector/AbstractSelector.java b/ui/plugins/eu.esdihumboldt.hale.ui.util/src/eu/esdihumboldt/hale/ui/util/selector/AbstractSelector.java index 335db9ef0..e9d2271cd 100644 --- a/ui/plugins/eu.esdihumboldt.hale.ui.util/src/eu/esdihumbol...
true
true
public AbstractSelector(Composite parent, ILabelProvider labelProvider, ViewerFilter[] filters) { main = new Composite(parent, SWT.NONE); TableColumnLayout columnLayout = new TableColumnLayout(); main.setLayout(columnLayout); // entity selection combo viewer = new TableViewer(main, SWT.BORDER | SWT.SINGLE |...
public AbstractSelector(Composite parent, ILabelProvider labelProvider, ViewerFilter[] filters) { main = new Composite(parent, SWT.NONE); TableColumnLayout columnLayout = new TableColumnLayout(); main.setLayout(columnLayout); // entity selection combo /* * Use MULTI selection so having an empty selection...
diff --git a/fabric/fabric-maven-proxy/src/main/java/org/fusesource/fabric/maven/impl/MavenProxyImpl.java b/fabric/fabric-maven-proxy/src/main/java/org/fusesource/fabric/maven/impl/MavenProxyImpl.java index bca105e16..2633ad76d 100644 --- a/fabric/fabric-maven-proxy/src/main/java/org/fusesource/fabric/maven/impl/MavenP...
true
true
public void run() { InputStream inputStream = null; BufferedOutputStream output = null; try { BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream())); output = new BufferedOutputStream(socket.getOutputStream()...
public void run() { InputStream inputStream = null; BufferedOutputStream output = null; try { BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream())); output = new BufferedOutputStream(socket.getOutputStream()...
diff --git a/test/org/openstreetmap/osmosis/core/apidb/v0_6/ApidbFileReplicatorTest.java b/test/org/openstreetmap/osmosis/core/apidb/v0_6/ApidbFileReplicatorTest.java index afd2cdc7..8b7fb63a 100644 --- a/test/org/openstreetmap/osmosis/core/apidb/v0_6/ApidbFileReplicatorTest.java +++ b/test/org/openstreetmap/osmosis/co...
true
true
public void testLoadAndDump() throws IOException { File authFile; File snapshotFile; File changesetFile; File outputFile; File workingDirectory; // Generate input files. authFile = dbUtils.getAuthorizationFile(); snapshotFile = fileUtils.getDataFile("...
public void testLoadAndDump() throws IOException { File authFile; File snapshotFile; File changesetFile; File outputFile; File workingDirectory; // Generate input files. authFile = dbUtils.getAuthorizationFile(); snapshotFile = fileUtils.getDataFile("...
diff --git a/src/cgrb/eta/client/tabs/WrapperRunner.java b/src/cgrb/eta/client/tabs/WrapperRunner.java index 75d5b76..7df6ec2 100644 --- a/src/cgrb/eta/client/tabs/WrapperRunner.java +++ b/src/cgrb/eta/client/tabs/WrapperRunner.java @@ -1,413 +1,414 @@ /* * Copyright 2012 Oregon State University. * All Rights Reserv...
true
true
public void setup(Wrapper wrapper) { this.wrapper = wrapper; bar.clear(); pane.clear(); options = new JobOptions(); // make the bar usersNot = new MultipleUserSelect(); Label descTitle = new Label("Description:"); Label descText = new Label(wrapper.getDescription()); descTitle.setStyleName("simple-la...
public void setup(Wrapper wrapper) { this.wrapper = wrapper; bar.clear(); pane.clear(); options = new JobOptions(); jobName = new LabelButton(wrapper.getName()); // make the bar usersNot = new MultipleUserSelect(); Label descTitle = new Label("Description:"); Label descText = new Label(wrapper.getDes...
diff --git a/src/main/java/net/catharos/lib/command/CommandManager.java b/src/main/java/net/catharos/lib/command/CommandManager.java index 915ae7e..f81f9d1 100644 --- a/src/main/java/net/catharos/lib/command/CommandManager.java +++ b/src/main/java/net/catharos/lib/command/CommandManager.java @@ -1,190 +1,190 @@ packag...
false
true
public boolean onCommand(CommandSender cs, org.bukkit.command.Command cmnd, String label, String[] args) { String str; Command cmd; for (int args_left = args.length; args_left >= 0; args_left--) { // Build command string str = label + ((args_left > 0) ? " " + ArrayUtil.implode( Arrays.copyOfRange( args,...
public boolean onCommand(CommandSender cs, org.bukkit.command.Command cmnd, String label, String[] args) { String str; Command cmd; for (int args_left = args.length; args_left >= 0; args_left--) { // Build command string str = label + ((args_left > 0) ? " " + ArrayUtil.implode( Arrays.copyOfRange( args,...
diff --git a/wicket/numberguess/src/test/java/org/jboss/weld/examples/wicket/Start.java b/wicket/numberguess/src/test/java/org/jboss/weld/examples/wicket/Start.java index 3e2792d5d..78e91c292 100755 --- a/wicket/numberguess/src/test/java/org/jboss/weld/examples/wicket/Start.java +++ b/wicket/numberguess/src/test/java/o...
true
true
public static void main(String[] args) throws Exception { Server server = new Server(); SocketConnector connector = new SocketConnector(); connector.setPort(8080); server.setConnectors(new Connector[] { connector }); WebAppContext bb = new WebAppContext(); bb.setServer(server)...
public static void main(String[] args) throws Exception { Server server = new Server(); SocketConnector connector = new SocketConnector(); connector.setPort(9090); server.setConnectors(new Connector[] { connector }); WebAppContext bb = new WebAppContext(); bb.setServer(server)...
diff --git a/providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/AWSEC2PropertiesBuilder.java b/providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/AWSEC2PropertiesBuilder.java index b0ec4d771..6cc2d1a91 100644 --- a/providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/AWSEC2PropertiesBuilder.java +++ b/providers/aws-ec...
true
true
protected Properties defaultProperties() { Properties properties = super.defaultProperties(); // sometimes, like in ec2, stop takes a very long time, perhaps // due to volume management. one example spent 2 minutes moving // from stopping->stopped state on an ec2 micro properties.setPro...
protected Properties defaultProperties() { Properties properties = super.defaultProperties(); // sometimes, like in ec2, stop takes a very long time, perhaps // due to volume management. one example spent 2 minutes moving // from stopping->stopped state on an ec2 micro properties.setPro...
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/IsModifiedTests.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/IsModifiedTests.java index d86bbc845..6733f7ba9 100644 --- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/t...
true
true
private void assertModificationState(IContainer container, String[] resources, final boolean listedResourcesShouldBeModified) throws CVSException { final ICVSFolder rootFolder = CVSWorkspaceRoot.getCVSFolderFor(container); final List resourceList = new ArrayList(); final Set modifiedResources = new HashSet(); ...
private void assertModificationState(IContainer container, String[] resources, final boolean listedResourcesShouldBeModified) throws CVSException { final ICVSFolder rootFolder = CVSWorkspaceRoot.getCVSFolderFor(container); final List resourceList = new ArrayList(); final Set modifiedResources = new HashSet(); ...
diff --git a/src/test/java/burrito/util/BBCodeCreatorTest.java b/src/test/java/burrito/util/BBCodeCreatorTest.java index a6f73e7..c4a0880 100644 --- a/src/test/java/burrito/util/BBCodeCreatorTest.java +++ b/src/test/java/burrito/util/BBCodeCreatorTest.java @@ -1,66 +1,66 @@ package burrito.util; import static org.j...
false
true
public void testUrlLink() { String bbcode = "[url=http://test/url?x=1&y=2]1 < 2[/url]"; String html = BBCodeCreator.generateHTML(bbcode); assertEquals("<a target=\"_blank\" href=\"http://test/url?x=1&amp;y=2\">1 &lt; 2</a>", html); bbcode = "[url]http://test/url?x=1&y=2[/url]"; html = BBCodeCreator.generat...
public void testUrlLink() { String bbcode = "[url=http://test/url?x=1&y=2]1 < 2[/url]"; String html = BBCodeCreator.generateHTML(bbcode); assertEquals("<a href=\"http://test/url?x=1&amp;y=2\">1 &lt; 2</a>", html); bbcode = "[url]http://test/url?x=1&y=2[/url]"; html = BBCodeCreator.generateHTML(bbcode); ...
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/text/FileLabelProvider.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/text/FileLabelProvider.java index 12cb39366..3c62b4a58 100644 --- a/org.eclipse.search/search/org/eclipse/search/internal/ui/text/FileLabelProvider.java +++ b/org....
true
true
public String getText(Object element) { if (!(element instanceof IResource)) return null; //$NON-NLS-1$ IResource resource= (IResource)element; String text= null; if (!resource.exists()) text= SearchMessages.getString("FileLabelProvider.removed_resource.label"); //$NON-NLS-1$ else { IPath path=...
public String getText(Object element) { if (!(element instanceof IResource)) return null; //$NON-NLS-1$ IResource resource= (IResource)element; String text= null; if (!resource.exists()) text= SearchMessages.getString("FileLabelProvider.removed_resource.label"); //$NON-NLS-1$ else { IPath path=...
diff --git a/wms/src/main/java/org/vfny/geoserver/wms/responses/map/pdf/PDFMapProducer.java b/wms/src/main/java/org/vfny/geoserver/wms/responses/map/pdf/PDFMapProducer.java index 809f19fe62..77e0445fd3 100644 --- a/wms/src/main/java/org/vfny/geoserver/wms/responses/map/pdf/PDFMapProducer.java +++ b/wms/src/main/java/or...
true
true
public void produceMap(WMSMapContext map) throws WmsException { this.mapContext = map; final int width = map.getMapWidth(); final int height = map.getMapHeight(); if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("setting up " + width + "x" + height + " image"); ...
public void produceMap(WMSMapContext map) throws WmsException { this.mapContext = map; final int width = map.getMapWidth(); final int height = map.getMapHeight(); if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("setting up " + width + "x" + height + " image"); ...
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/BranchTrackingStatus.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/BranchTrackingStatus.java index 7844fd819..1525e5b18 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/BranchTrackingStatus.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/BranchTrackin...
false
true
public static BranchTrackingStatus of(Repository repository, String branchName) throws IOException { BranchConfig branchConfig = new BranchConfig(repository.getConfig(), branchName); String trackingBranch = branchConfig.getTrackingBranch(); if (trackingBranch == null) return null; Ref tracking = r...
public static BranchTrackingStatus of(Repository repository, String branchName) throws IOException { String shortBranchName = Repository.shortenRefName(branchName); String fullBranchName = Constants.R_HEADS + shortBranchName; BranchConfig branchConfig = new BranchConfig(repository.getConfig(), shortBranc...
diff --git a/src/what/torrents/torrents/TorrentFormatsActivity.java b/src/what/torrents/torrents/TorrentFormatsActivity.java index a78a7338..efd4d525 100644 --- a/src/what/torrents/torrents/TorrentFormatsActivity.java +++ b/src/what/torrents/torrents/TorrentFormatsActivity.java @@ -1,123 +1,123 @@ package what.torrent...
true
true
private void showDownloadDialog(final String torrentId, final String url) { AlertDialog alert = new AlertDialog.Builder(TorrentFormatsActivity.this).create(); alert.setButton(AlertDialog.BUTTON1, "Download", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int whi...
private void showDownloadDialog(final String torrentId, final String url) { AlertDialog alert = new AlertDialog.Builder(TorrentFormatsActivity.this).create(); alert.setButton(AlertDialog.BUTTON1, "Download", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int whi...
diff --git a/fjarr-client-components/src/main/java/com/wixpress/fjarr/client/RpcClient.java b/fjarr-client-components/src/main/java/com/wixpress/fjarr/client/RpcClient.java index 55e23af..f44f26a 100644 --- a/fjarr-client-components/src/main/java/com/wixpress/fjarr/client/RpcClient.java +++ b/fjarr-client-components/sr...
false
true
private Object _invoke(String serviceName, String methodName, Type returnType, Object... arguments) throws Throwable { StringWriter stringWriter = new StringWriter(); // write request String invocationBody = protocol.writeRequest(methodName, arguments); RpcInvocation invocation =...
private Object _invoke(String serviceName, String methodName, Type returnType, Object... arguments) throws Throwable { StringWriter stringWriter = new StringWriter(); // write request String invocationBody = protocol.writeRequest(methodName, arguments); RpcInvocation invocation =...
diff --git a/Inventory/src/edu/colorado/csci3308/inventory/servlet/AddRackServlet.java b/Inventory/src/edu/colorado/csci3308/inventory/servlet/AddRackServlet.java index e2b64d4..945dd99 100644 --- a/Inventory/src/edu/colorado/csci3308/inventory/servlet/AddRackServlet.java +++ b/Inventory/src/edu/colorado/csci3308/inven...
true
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String rackDesc = request.getParameter("RackDesc"); Integer maxHeight = Integer.valueOf(request.getParameter("RackMaxHeight")); Integer depth = Integer.valueOf(request.getParameter("RackDepth"))...
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String rackDesc = request.getParameter("RackDesc"); Integer maxHeight = Integer.valueOf(request.getParameter("RackMaxHeight")); Integer depth = Integer.valueOf(request.getParameter("RackDepth"))...
diff --git a/apidb/src/main/java/org/openstreetmap/osmosis/apidb/v0_6/impl/EntityDao.java b/apidb/src/main/java/org/openstreetmap/osmosis/apidb/v0_6/impl/EntityDao.java index 2d89e859..2c134f2d 100644 --- a/apidb/src/main/java/org/openstreetmap/osmosis/apidb/v0_6/impl/EntityDao.java +++ b/apidb/src/main/java/org/openst...
true
true
public ReleasableIterator<ChangeContainer> getHistory(ReplicationQueryPredicates predicates) { String selectedEntityTableName; StringBuilder sql; MapSqlParameterSource parameterSource; // PostgreSQL sometimes incorrectly chooses to perform full table scans, these options // prevent this. Note that this is...
public ReleasableIterator<ChangeContainer> getHistory(ReplicationQueryPredicates predicates) { String selectedEntityTableName; StringBuilder sql; MapSqlParameterSource parameterSource; // PostgreSQL sometimes incorrectly chooses to perform full table scans, these options // prevent this. Note that this is...
diff --git a/main/src/cgeo/geocaching/export/GpxExport.java b/main/src/cgeo/geocaching/export/GpxExport.java index 6ed0a3ecd..ad4a1b11e 100644 --- a/main/src/cgeo/geocaching/export/GpxExport.java +++ b/main/src/cgeo/geocaching/export/GpxExport.java @@ -1,325 +1,323 @@ package cgeo.geocaching.export; import cgeo.geo...
true
true
protected Boolean doInBackground(Void... params) { // quick check for being able to write the GPX file if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { return false; } Writer gpx = null; try { ...
protected Boolean doInBackground(Void... params) { // quick check for being able to write the GPX file if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { return false; } Writer gpx = null; try { ...
diff --git a/srcj/com/sun/electric/tool/routing/SimpleWirer.java b/srcj/com/sun/electric/tool/routing/SimpleWirer.java index c5c76773f..998650822 100644 --- a/srcj/com/sun/electric/tool/routing/SimpleWirer.java +++ b/srcj/com/sun/electric/tool/routing/SimpleWirer.java @@ -1,197 +1,197 @@ /* -*- tab-width: 4 -*- * ...
true
true
protected boolean planRoute(Route route, Cell cell, RouteElementPort endRE, Point2D startLoc, Point2D endLoc, Point2D clicked, VerticalRoute vroute, boolean contactsOnEndObj) { RouteElementPort startRE = route.getEnd(); // find port p...
protected boolean planRoute(Route route, Cell cell, RouteElementPort endRE, Point2D startLoc, Point2D endLoc, Point2D clicked, VerticalRoute vroute, boolean contactsOnEndObj) { RouteElementPort startRE = route.getEnd(); // find port p...
diff --git a/OpERP/src/main/java/devopsdistilled/operp/client/items/panes/CreateItemPane.java b/OpERP/src/main/java/devopsdistilled/operp/client/items/panes/CreateItemPane.java index 867caa8e..b63198a4 100644 --- a/OpERP/src/main/java/devopsdistilled/operp/client/items/panes/CreateItemPane.java +++ b/OpERP/src/main/jav...
false
true
public CreateItemPane() { pane = new JPanel(); pane.setLayout(new MigLayout("debug, flowy", "[][][grow][]", "[][][][][]")); JLabel lblProductName = new JLabel("Product Name"); pane.add(lblProductName, "cell 0 0,alignx trailing"); comboProducts = new JComboBox<Product>(); comboProducts.setSelectedItem...
public CreateItemPane() { pane = new JPanel(); pane.setLayout(new MigLayout("debug, flowy", "[][][grow][]", "[][][][][]")); JLabel lblProductName = new JLabel("Product Name"); pane.add(lblProductName, "cell 0 0,alignx trailing"); comboProducts = new JComboBox<>(); comboProducts.setSelectedItem(null);...
diff --git a/org.kevoree.modeling.kotlin.generator.mavenplugin/src/main/java/org/kevoree/modeling/kotlin/generator/mavenplugin/GenModelPlugin.java b/org.kevoree.modeling.kotlin.generator.mavenplugin/src/main/java/org/kevoree/modeling/kotlin/generator/mavenplugin/GenModelPlugin.java index fcd262e3..f6e3e6fd 100644 --- a...
true
true
public void execute() throws MojoExecutionException { if (clearOutput) { deleteDirectory(output); } if (trace && !json) { json = true; // trace need JSON } if (js && !json) { json = true; // JS need JSON by default for Java extension ...
public void execute() throws MojoExecutionException { if (clearOutput) { deleteDirectory(output); } if (trace && !json) { json = true; // trace need JSON } if (js && !json) { json = true; // JS need JSON by default for Java extension ...
diff --git a/src/main/java/goldengate/common/state/MachineState.java b/src/main/java/goldengate/common/state/MachineState.java index 590dd00f..092ca89b 100644 --- a/src/main/java/goldengate/common/state/MachineState.java +++ b/src/main/java/goldengate/common/state/MachineState.java @@ -1,159 +1,159 @@ /** This fil...
true
true
private boolean isReachable(EnumState desiredState) { if (currentState == null) { return false; } EnumSet<?> set = statemap.get(currentState); if (set != null) { return set.contains(desiredState); } return false; }
private boolean isReachable(EnumState desiredState) { if (currentState == null || statemap == null) { return false; } EnumSet<?> set = statemap.get(currentState); if (set != null) { return set.contains(desiredState); } return false; }
diff --git a/app/PdePreprocessor.java b/app/PdePreprocessor.java index 76d5c9c56..4a82ff9b9 100644 --- a/app/PdePreprocessor.java +++ b/app/PdePreprocessor.java @@ -1,305 +1,306 @@ /* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* PdePreprocessor - wrapper for default ANTLR-generated parser ...
true
true
public String write(String program, String buildPath, String name, String extraImports[]) throws java.lang.Exception { // if the program ends with no CR or LF an OutOfMemoryError will happen. // not gonna track down the bug now, so here's a hack for it: if (program.charAt(program.le...
public String write(String program, String buildPath, String name, String extraImports[]) throws java.lang.Exception { // if the program ends with no CR or LF an OutOfMemoryError will happen. // not gonna track down the bug now, so here's a hack for it: if ((program.length() > 0) &&...
diff --git a/plugins/wyclipse.ui/src/wyclipse/ui/dialogs/VirtualContainerSelectionDialog.java b/plugins/wyclipse.ui/src/wyclipse/ui/dialogs/VirtualContainerSelectionDialog.java index f33c56e..df23c97 100644 --- a/plugins/wyclipse.ui/src/wyclipse/ui/dialogs/VirtualContainerSelectionDialog.java +++ b/plugins/wyclipse.ui/...
true
true
public Control createDialogArea(Composite parent) { Composite container = new Composite(parent, SWT.NONE); // ===================================================================== // Configure Grid // ===================================================================== GridLayout layout = new GridLayout...
public Control createDialogArea(Composite parent) { Composite container = new Composite(parent, SWT.NONE); // ===================================================================== // Configure Grid // ===================================================================== GridLayout layout = new GridLayout...
diff --git a/src/be/ibridge/kettle/trans/dialog/TransExecutionConfigurationDialog.java b/src/be/ibridge/kettle/trans/dialog/TransExecutionConfigurationDialog.java index 1f71c39e..3f6f6092 100644 --- a/src/be/ibridge/kettle/trans/dialog/TransExecutionConfigurationDialog.java +++ b/src/be/ibridge/kettle/trans/dialog/Tran...
true
true
public boolean open() { display = parent.getDisplay(); shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX | SWT.MIN); props.setLook(shell); FormLayout formLayout = new FormLayout (); formLayout.marginWidth = Const.FORM_MARGIN; formLayout.ma...
public boolean open() { display = parent.getDisplay(); shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX | SWT.MIN); props.setLook(shell); FormLayout formLayout = new FormLayout (); formLayout.marginWidth = Const.FORM_MARGIN; formLayout.ma...
diff --git a/src/Reminder.java b/src/Reminder.java index a08328e..dd88d40 100644 --- a/src/Reminder.java +++ b/src/Reminder.java @@ -1,149 +1,149 @@ import java.io.File; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.regex.Matcher; ...
true
true
public void onMessage(Message in_message) throws Exception { IRC irc = IRC.getInstance(); UserList ul = UserList.getInstance(); String user = in_message.getUser(); String channel = in_message.getChannel(); String message = in_message.getMessage(); if (message.matches("(\\.reminder)\\s([a-zA-Z0...
public void onMessage(Message in_message) throws Exception { IRC irc = IRC.getInstance(); UserList ul = UserList.getInstance(); String user = in_message.getUser(); String channel = in_message.getChannel(); String message = in_message.getMessage(); if (message.matches("(\\.remind)\\s([a-zA-Z0-9...
diff --git a/src/contrib/hdfsproxy/src/test/org/apache/hadoop/hdfsproxy/TestProxyUtil.java b/src/contrib/hdfsproxy/src/test/org/apache/hadoop/hdfsproxy/TestProxyUtil.java index 73f4245aa8..444beacb01 100644 --- a/src/contrib/hdfsproxy/src/test/org/apache/hadoop/hdfsproxy/TestProxyUtil.java +++ b/src/contrib/hdfsproxy/s...
false
true
public void testSendCommand() throws Exception { Configuration conf = new HdfsConfiguration(false); conf.addResource("ssl-client.xml"); conf.addResource("hdfsproxy-default.xml"); String address = "localhost:" + TEST_PROXY_HTTPS_PORT; conf.set("hdfsproxy.https.address", address); Strin...
public void testSendCommand() throws Exception { Configuration conf = new HdfsConfiguration(false); conf.addResource("ssl-client.xml"); conf.addResource("hdfsproxy-default.xml"); String address = "localhost:" + TEST_PROXY_HTTPS_PORT; conf.set("hdfsproxy.https.address", address); Strin...
diff --git a/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/rubyvms/VMLibraryBlock.java b/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/rubyvms/VMLibraryBlock.java index 41dba1c2..83ccec51 100644 --- a/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/ruby...
true
true
public void update() { updateButtons(); IStatus status = Status.OK_STATUS; if (fLibraryContentProvider.getLibraries().length == 0) { // && !isDefaultSystemLibrary()) { status = new Status(IStatus.ERROR, RdtDebugUiPlugin.getUniqueIdentifier(), RdtDebugUiConstants.INTERNAL_ERROR, RubyVMMessages.VMLibraryBlo...
public void update() { updateButtons(); IStatus status = Status.OK_STATUS; if (fLibraryContentProvider.getLibraries().length == 0) { // && !isDefaultSystemLibrary()) { status = new Status(IStatus.ERROR, RdtDebugUiPlugin.getUniqueIdentifier(), RdtDebugUiConstants.INTERNAL_ERROR, RubyVMMessages.VMLibraryBlo...
diff --git a/modules/keystone-kernel/src/main/java/org/intelligentsia/keystone/kernel/init/KeystoneApplication.java b/modules/keystone-kernel/src/main/java/org/intelligentsia/keystone/kernel/init/KeystoneApplication.java index d6a2290..e562a85 100644 --- a/modules/keystone-kernel/src/main/java/org/intelligentsia/keysto...
true
true
public void run() { // load KernelConfiguration final KernelConfiguration configuration = loadKernelConfiguration(); // build kernel Instance KernelBuilder builder = null; try { builder = new KernelBuilder().setKernelConfiguration(configuration); } catch (Throwable e) { throw new IllegalArgumentExce...
public void run() { // load KernelConfiguration final KernelConfiguration configuration = loadKernelConfiguration(); // build kernel Instance KernelBuilder builder = null; try { builder = new KernelBuilder().setKernelConfiguration(configuration); } catch (Throwable e) { throw new IllegalArgumentExce...
diff --git a/src/ultraextreme/view/SpriteFactory.java b/src/ultraextreme/view/SpriteFactory.java index 030d388..129238b 100644 --- a/src/ultraextreme/view/SpriteFactory.java +++ b/src/ultraextreme/view/SpriteFactory.java @@ -1,325 +1,325 @@ /* ============================================================ * Copyright ...
false
true
private SpriteFactory(final SimpleBaseGameActivity activity) { Dimension screenDimension = new Dimension(activity.getResources() .getDisplayMetrics().widthPixels, activity.getResources() .getDisplayMetrics().heightPixels); GameObjectSprite.setScreenDimension(screenDimension); textureMap = new HashMap<Obj...
private SpriteFactory(final SimpleBaseGameActivity activity) { Dimension screenDimension = new Dimension(activity.getResources() .getDisplayMetrics().widthPixels, activity.getResources() .getDisplayMetrics().heightPixels); GameObjectSprite.setScreenDimension(screenDimension); textureMap = new HashMap<Obj...
diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/helpers/v249/ModifierHelper.java b/engine/src/blender/com/jme3/scene/plugins/blender/helpers/v249/ModifierHelper.java index 312909625..dd9a038a5 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/helpers/v249/ModifierHelper.java +++ b/engine/src...
true
true
public void readModifiers(Structure objectStructure, DataRepository dataRepository) throws BlenderFileException { Structure modifiersListBase = (Structure) objectStructure.getFieldValue("modifiers"); List<Structure> modifiers = modifiersListBase.evaluateListBase(dataRepository); for (Structu...
public void readModifiers(Structure objectStructure, DataRepository dataRepository) throws BlenderFileException { Structure modifiersListBase = (Structure) objectStructure.getFieldValue("modifiers"); List<Structure> modifiers = modifiersListBase.evaluateListBase(dataRepository); for (Structu...
diff --git a/collector-desktop/src/collector/desktop/model/album/AlbumItemStore.java b/collector-desktop/src/collector/desktop/model/album/AlbumItemStore.java index 85b24d5..27e1e9d 100644 --- a/collector-desktop/src/collector/desktop/model/album/AlbumItemStore.java +++ b/collector-desktop/src/collector/desktop/model/a...
true
true
public static AlbumItem getSampleAlbumItem(boolean containsPictures, List<MetaItemField> metaItemFields) { List<ItemField> itemFields = new ArrayList<ItemField>(); List<AlbumItemPicture> pictures = new ArrayList<AlbumItemPicture>(); if (containsPictures) { pictures.add(new SampleAlbumItemPicture(FileSyst...
public static AlbumItem getSampleAlbumItem(boolean containsPictures, List<MetaItemField> metaItemFields) { List<ItemField> itemFields = new ArrayList<ItemField>(); List<AlbumItemPicture> pictures = new ArrayList<AlbumItemPicture>(); if (containsPictures) { pictures.add(new SampleAlbumItemPicture(FileSyst...
diff --git a/src/jar/resolver-distributed/java/org/mulgara/resolver/distributed/remote/ShortGlobalStatementSet.java b/src/jar/resolver-distributed/java/org/mulgara/resolver/distributed/remote/ShortGlobalStatementSet.java index a43c0cf2..2b37c561 100644 --- a/src/jar/resolver-distributed/java/org/mulgara/resolver/distri...
false
true
ShortGlobalStatementSet(Statements statements, ResolverSession session) throws TuplesException, GlobalizeException { // build the array long rowCount = statements.getRowCount(); assert rowCount < StatementSetFactory.WATER_MARK; data = new ArrayList<Triple>((int)rowCount); // populate the array ...
ShortGlobalStatementSet(Statements statements, ResolverSession session) throws TuplesException, GlobalizeException { // build the array long rowCount = statements.getRowCount(); assert rowCount < StatementSetFactory.WATER_MARK; data = new ArrayList<Triple>((int)rowCount); // populate the array ...
diff --git a/src/org/geometerplus/zlibrary/ui/android/library/ZLAndroidActivity.java b/src/org/geometerplus/zlibrary/ui/android/library/ZLAndroidActivity.java index 537f6ee9..ebad6b19 100644 --- a/src/org/geometerplus/zlibrary/ui/android/library/ZLAndroidActivity.java +++ b/src/org/geometerplus/zlibrary/ui/android/libr...
false
true
public void onCreate(Bundle state) { super.onCreate(state); Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler(this)); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(getActivityLayout()); setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL); getLibrary().setActivity(this); ...
public void onCreate(Bundle state) { super.onCreate(state); Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler(this)); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(getActivityLayout()); setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL); getLibrary().setActivity(this); ...
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandsethome.java b/Essentials/src/com/earth2me/essentials/commands/Commandsethome.java index d9bd32c3..82d66a71 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandsethome.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandse...
true
true
public void run(Server server, User user, String commandLabel, String[] args) throws Exception { if (args.length > 0) { //Allowing both formats /sethome khobbits house | /sethome khobbits:house final String[] nameParts = args[0].split(":"); if (nameParts[0].length() != args[0].length()) { args = n...
public void run(Server server, User user, String commandLabel, String[] args) throws Exception { if (args.length > 0) { //Allowing both formats /sethome khobbits house | /sethome khobbits:house final String[] nameParts = args[0].split(":"); if (nameParts[0].length() != args[0].length()) { args = n...
diff --git a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/adapter/ModelDteApiAdapter.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/adapter/ModelDteApiAdapter.java index e5de498a7..5f2d72cb5 100644 --- a/plugins/org.eclipse.birt.report.engine/src/org/eclips...
true
true
void adaptBaseDataSet( DataSetHandle modelDataSet, BaseDataSetDesign dteDataSet ) throws BirtException { if ( (!(modelDataSet instanceof JointDataSetHandle)) && modelDataSet.getDataSource( ) == null ) throw new EngineException( "The data source of this data set can not be null." ); if ( !( modelDataSe...
void adaptBaseDataSet( DataSetHandle modelDataSet, BaseDataSetDesign dteDataSet ) throws BirtException { if ( (!(modelDataSet instanceof JointDataSetHandle)) && modelDataSet.getDataSource( ) == null ) throw new EngineException( "The data source of this data set can not be null." ); if ( !( modelDataSe...