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/ingemark/requestage/plugin/ui/HistoryView.java b/src/com/ingemark/requestage/plugin/ui/HistoryView.java index 4f3cf98..31261c6 100644 --- a/src/com/ingemark/requestage/plugin/ui/HistoryView.java +++ b/src/com/ingemark/requestage/plugin/ui/HistoryView.java @@ -1,151 +1,152 @@ package com.ingemark.r...
true
true
@Override public void createPartControl(Composite parent) { final Display disp = parent.getDisplay(); parent.setLayout(new GridLayout(2, false)); chart = new Chart(parent, SWT.NONE); chart.setBackground(disp.getSystemColor(SWT.COLOR_WHITE)); gridData().align(FILL, FILL).grab(true, true).applyTo(ch...
@Override public void createPartControl(Composite parent) { final Display disp = parent.getDisplay(); parent.setLayout(new GridLayout(2, false)); chart = new Chart(parent, SWT.NONE); chart.setBackground(disp.getSystemColor(SWT.COLOR_WHITE)); gridData().align(FILL, FILL).grab(true, true).applyTo(ch...
diff --git a/extension/src/main/java/org/jboss/as/capedwarf/extension/CapedwarfSubsystemAdd.java b/extension/src/main/java/org/jboss/as/capedwarf/extension/CapedwarfSubsystemAdd.java index e8effe5..e9d573e 100644 --- a/extension/src/main/java/org/jboss/as/capedwarf/extension/CapedwarfSubsystemAdd.java +++ b/extension/s...
false
true
public void performBoottime(final OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { final ModelNode appEngineModel = C...
public void performBoottime(final OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { final ModelNode appEngineModel = C...
diff --git a/java/marytts/tools/voiceimport/HnmTimelineMaker.java b/java/marytts/tools/voiceimport/HnmTimelineMaker.java index ed4ee4617..ee92aa61b 100644 --- a/java/marytts/tools/voiceimport/HnmTimelineMaker.java +++ b/java/marytts/tools/voiceimport/HnmTimelineMaker.java @@ -1,401 +1,401 @@ /** * Portions Copyright...
false
true
public boolean compute() { long start = System.currentTimeMillis(); // start timing System.out.println("---- Importing Harmonics plus noise parameters\n\n"); System.out.println("Base directory: " + db.getProp(db.ROOTDIR) + "\n"); /* Export the basename list into...
public boolean compute() { long start = System.currentTimeMillis(); // start timing System.out.println("---- Importing Harmonics plus noise parameters\n\n"); System.out.println("Base directory: " + db.getProp(db.ROOTDIR) + "\n"); /* Export the basename list into...
diff --git a/src/com/vaadin/ui/Select.java b/src/com/vaadin/ui/Select.java index 31c4ff6ef..4e4ab7421 100644 --- a/src/com/vaadin/ui/Select.java +++ b/src/com/vaadin/ui/Select.java @@ -1,514 +1,516 @@ /* @ITMillApache2LicenseForJavaFiles@ */ package com.vaadin.ui; import java.util.Collection; import java.uti...
true
true
public void paintContent(PaintTarget target) throws PaintException { if (isMultiSelect()) { // background compatibility hack. This object shouldn't be used for // multiselect lists anymore (ListSelect instead). This fallbacks to // a simpler paint method in super class. ...
public void paintContent(PaintTarget target) throws PaintException { if (isMultiSelect()) { // background compatibility hack. This object shouldn't be used for // multiselect lists anymore (ListSelect instead). This fallbacks to // a simpler paint method in super class. ...
diff --git a/src/test/java/npanday/its/IntegrationTestSuite.java b/src/test/java/npanday/its/IntegrationTestSuite.java index dc1cf21..4c279d6 100644 --- a/src/test/java/npanday/its/IntegrationTestSuite.java +++ b/src/test/java/npanday/its/IntegrationTestSuite.java @@ -1,95 +1,95 @@ package npanday.its; /* * Licen...
true
true
public static Test suite() { TestSuite suite = new TestSuite(); /* * This must be the first one to ensure the local repository is properly setup. */ suite.addTestSuite( BootstrapTest.class ); /* * Add tests in order of newest first. * Newer t...
public static Test suite() { TestSuite suite = new TestSuite(); /* * This must be the first one to ensure the local repository is properly setup. */ suite.addTestSuite( BootstrapTest.class ); /* * Add tests in order of newest first. * Newer t...
diff --git a/jelly/src/main/java/org/kohsuke/stapler/jelly/ThisTagLibrary.java b/jelly/src/main/java/org/kohsuke/stapler/jelly/ThisTagLibrary.java index e3c38a53f..640ee2162 100644 --- a/jelly/src/main/java/org/kohsuke/stapler/jelly/ThisTagLibrary.java +++ b/jelly/src/main/java/org/kohsuke/stapler/jelly/ThisTagLibrary....
false
true
public TagScript createTagScript(final String tagName, Attributes atts) throws JellyException { return new CallTagLibScript() { @Override protected Script resolveDefinition(JellyContext context) throws JellyTagException { Object it = expr.evaluate(context); ...
public TagScript createTagScript(final String tagName, Attributes atts) throws JellyException { return new CallTagLibScript() { @Override protected Script resolveDefinition(JellyContext context) throws JellyTagException { Object it = expr.evaluate(context); ...
diff --git a/src/org/ruhlendavis/mc/communitybridge/Configuration.java b/src/org/ruhlendavis/mc/communitybridge/Configuration.java index 8dca55b..a969a0a 100644 --- a/src/org/ruhlendavis/mc/communitybridge/Configuration.java +++ b/src/org/ruhlendavis/mc/communitybridge/Configuration.java @@ -1,1119 +1,1119 @@ package ...
true
true
public boolean analyzeConfiguration(SQL sql) { boolean status; boolean temp; // Linking table section. status = checkTable(sql, "player-user-linking.table-name", linkingTableName); if (status) { status = status & checkColumn(sql, "player-user-linking.user-id-column", linkingTableName, linkingUserIDCol...
public boolean analyzeConfiguration(SQL sql) { boolean status; boolean temp; // Linking table section. status = checkTable(sql, "player-user-linking.table-name", linkingTableName); if (status) { status = status & checkColumn(sql, "player-user-linking.user-id-column", linkingTableName, linkingUserIDCol...
diff --git a/loci/visbio/ome/ImageDownloader.java b/loci/visbio/ome/ImageDownloader.java index b6942e2..08d14b4 100644 --- a/loci/visbio/ome/ImageDownloader.java +++ b/loci/visbio/ome/ImageDownloader.java @@ -1,244 +1,244 @@ // // ImageDownloader.java // /* VisBio application for visualization of multidimensiona...
false
true
public float[][] downloadPixels(PixelsFactory pf, Pixels pix, int z, int t) { // This code has been adapted from Phil Huettl's OME plugin for ImageJ int sizeX = pix.getSizeX().intValue(); int sizeY = pix.getSizeY().intValue(); int sizeC = pix.getSizeC().intValue(); String pixelType = pix.getPixelT...
public float[][] downloadPixels(PixelsFactory pf, Pixels pix, int z, int t) { // This code has been adapted from Phil Huettl's OME plugin for ImageJ int sizeX = pix.getSizeX().intValue(); int sizeY = pix.getSizeY().intValue(); int sizeC = pix.getSizeC().intValue(); String pixelType = pix.getPixelT...
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/rules/DefaultPartitioner.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/rules/DefaultPartitioner.java index ee677e868..25ad2b4f2 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/rules/DefaultPartitioner.java +++ b/org.eclipse.jface.t...
false
true
public IRegion documentChanged2(DocumentEvent e) { try { IDocument d= e.getDocument(); Position[] category= d.getPositions(fPositionCategory); IRegion line= d.getLineInformationOfOffset(e.getOffset()); int reparseStart= line.getOffset(); int partitionStart= -1; String contentType= null...
public IRegion documentChanged2(DocumentEvent e) { try { IDocument d= e.getDocument(); Position[] category= d.getPositions(fPositionCategory); IRegion line= d.getLineInformationOfOffset(e.getOffset()); int reparseStart= line.getOffset(); int partitionStart= -1; String contentType= null...
diff --git a/src/com/ayan4m1/multiarrow/arrows/DrillArrowEffect.java b/src/com/ayan4m1/multiarrow/arrows/DrillArrowEffect.java index 668d286..49bb0bc 100644 --- a/src/com/ayan4m1/multiarrow/arrows/DrillArrowEffect.java +++ b/src/com/ayan4m1/multiarrow/arrows/DrillArrowEffect.java @@ -1,38 +1,39 @@ package com.ayan4m1....
true
true
private void drillDown(Block startBlock) { for(int y = 0; y >= -2; y--) { //Don't increase the count for snow if (startBlock.getType() == Material.SNOW) { y++; } for (int x = -1; x < 1; x++) { for (int z = -1; z < 1; z++) { Vector offset = startBlock.getLocation().toVector().add(new Vector(x...
private void drillDown(Block startBlock) { for(int y = 0; y >= -2; y--) { //Don't increase the count for snow if (startBlock.getType() == Material.SNOW) { startBlock.setType(Material.AIR); y++; } for (int x = -1; x < 1; x++) { for (int z = -1; z < 1; z++) { Vector offset = startBlock.get...
diff --git a/src/ceid/netcins/frontend/GetContentIDsHandler.java b/src/ceid/netcins/frontend/GetContentIDsHandler.java index 1bf3f53..2bc5dfb 100644 --- a/src/ceid/netcins/frontend/GetContentIDsHandler.java +++ b/src/ceid/netcins/frontend/GetContentIDsHandler.java @@ -1,116 +1,119 @@ package ceid.netcins.frontend; ...
false
true
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType("application/json"); response.setStatus(HttpServletResponse.SC_OK); String param = request.getParameter(PostParamTag); String UID = null; if (param != null) { param ...
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType("application/json"); response.setStatus(HttpServletResponse.SC_OK); String param = request.getParameter(PostParamTag); String UID = null; if (param != null) { param ...
diff --git a/src/javamop/output/MOPJavaCode.java b/src/javamop/output/MOPJavaCode.java index 9dbc8a0..1bf0a10 100644 --- a/src/javamop/output/MOPJavaCode.java +++ b/src/javamop/output/MOPJavaCode.java @@ -1,100 +1,100 @@ package javamop.output; import java.util.Set; import java.util.regex.Matcher; import java.uti...
true
true
public String toString() { String ret = ""; if (code != null) ret += code; if (this.monitorName != null) ret = ret.replaceAll("\\@MONITORCLASS", monitorName.toString()); ret = rewriteVariables(ret); if (ret.length() != 0 && !ret.endsWith("\n")) ret += "\n"; if (Main.dacapo) { if(Main.silen...
public String toString() { String ret = ""; if (code != null) ret += code; if (this.monitorName != null) ret = ret.replaceAll("\\@MONITORCLASS", monitorName.toString()); ret = rewriteVariables(ret); if (ret.length() != 0 && !ret.endsWith("\n")) ret += "\n"; if (Main.dacapo) { if(Main.silen...
diff --git a/hazelcast-spring/src/test/java/com/hazelcast/spring/TestFullApplicationContext.java b/hazelcast-spring/src/test/java/com/hazelcast/spring/TestFullApplicationContext.java index cb63096ceb..2971cad77d 100644 --- a/hazelcast-spring/src/test/java/com/hazelcast/spring/TestFullApplicationContext.java +++ b/hazel...
true
true
public void testMapConfig() { assertNotNull(config); assertEquals(8, config.getMapConfigs().size()); MapConfig testMapConfig = config.getMapConfig("testMap"); assertNotNull(testMapConfig); assertEquals("testMap", testMapConfig.getName()); assertEquals(2, testMapConfig...
public void testMapConfig() { assertNotNull(config); assertEquals(6, config.getMapConfigs().size()); MapConfig testMapConfig = config.getMapConfig("testMap"); assertNotNull(testMapConfig); assertEquals("testMap", testMapConfig.getName()); assertEquals(2, testMapConfig...
diff --git a/jython/src/com/ziclix/python/sql/util/PyArgParser.java b/jython/src/com/ziclix/python/sql/util/PyArgParser.java index 77504b02..74451f4e 100644 --- a/jython/src/com/ziclix/python/sql/util/PyArgParser.java +++ b/jython/src/com/ziclix/python/sql/util/PyArgParser.java @@ -1,133 +1,133 @@ /* * Jython Databa...
true
true
protected void parse(PyObject[] args, String[] kws) { // walk backwards through the kws and build the map int largs = args.length; if (kws != null) { for (String kw: kws) { keywords.put(kw, args[--largs]); } } arguments = new PyObject...
protected void parse(PyObject[] args, String[] kws) { // walk backwards through the kws and build the map int largs = args.length; if (kws != null) { for (int i = kws.length - 1; i >= 0; i--) { keywords.put(kws[i], args[--largs]); } } ...
diff --git a/solr/core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java b/solr/core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java index a4f5281087..56e995db00 100644 --- a/solr/core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java +++ b/solr/core/src/java/org/...
false
true
private void init(String solrHome, String context, int port, boolean stopAtShutdown) { this.context = context; server = new Server(port); this.solrHome = solrHome; this.stopAtShutdown = stopAtShutdown; server.setStopAtShutdown(stopAtShutdown); if (!stopAtShutdown) { server.setGracefulSh...
private void init(String solrHome, String context, int port, boolean stopAtShutdown) { this.context = context; server = new Server(port); this.solrHome = solrHome; this.stopAtShutdown = stopAtShutdown; server.setStopAtShutdown(stopAtShutdown); if (!stopAtShutdown) { server.setGracefulSh...
diff --git a/src/main/java/org/atlasapi/remotesite/youtube/YouTubeFeedExtractor.java b/src/main/java/org/atlasapi/remotesite/youtube/YouTubeFeedExtractor.java index 2f8c944c3..542b59c7e 100644 --- a/src/main/java/org/atlasapi/remotesite/youtube/YouTubeFeedExtractor.java +++ b/src/main/java/org/atlasapi/remotesite/youtu...
false
true
public Playlist extract(YouTubeFeedSource source) { VideoFeed feed = source.getVideoFeed(); Playlist playlist = new Playlist(source.getUri(), YouTubeFeedCanonicaliser.curieFor(source.getUri()), Publisher.YOUTUBE); playlist.setMediaType(MediaType.VIDEO); for (VideoEn...
public Playlist extract(YouTubeFeedSource source) { VideoFeed feed = source.getVideoFeed(); if (feed == null) { return null; } Playlist playlist = new Playlist(source.getUri(), YouTubeFeedCanonicaliser.curieFor(source.getUri()), Publisher.YOUTUBE); playli...
diff --git a/mcu/src/org/smbarbour/mcu/AppletLauncherThread.java b/mcu/src/org/smbarbour/mcu/AppletLauncherThread.java index 735f79e..1b79192 100644 --- a/mcu/src/org/smbarbour/mcu/AppletLauncherThread.java +++ b/mcu/src/org/smbarbour/mcu/AppletLauncherThread.java @@ -1,280 +1,280 @@ package org.smbarbour.mcu; impo...
false
true
public void run() { File launcher = MCUpdater.getInstance().getArchiveFolder().resolve("MCU-Launcher.jar").toFile(); if(!launcher.exists()) { try { URL launcherURL = new URL("http://files.mcupdater.com/MCU-Launcher.jar"); ReadableByteChannel rbc = Channels.newChannel(launcherURL.openStream()); Fil...
public void run() { File launcher = MCUpdater.getInstance().getArchiveFolder().resolve("MCU-Launcher.jar").toFile(); if(!launcher.exists()) { try { URL launcherURL = new URL("http://files.mcupdater.com/MCU-Launcher.jar"); ReadableByteChannel rbc = Channels.newChannel(launcherURL.openStream()); Fil...
diff --git a/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/internal/commands/handlers/ShowPropertiesHandler.java b/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/internal/commands/handlers/ShowPropertiesHandler.java index 61d0e8ed..9ee9aaaf 100644 --- a/org.eclipse.mylyn.r...
false
true
public Object execute(final ExecutionEvent aEvent) { final UIJob job = new UIJob(COMMAND_MESSAGE) { @Override public IStatus runInUIThread(IProgressMonitor monitor) { monitor.beginTask(COMMAND_MESSAGE, 1); R4EUIPlugin.Ftracer.traceInfo("Showing Properties View"); //$NON-NLS-1$ IWorkbenchPart part...
public Object execute(final ExecutionEvent aEvent) { final UIJob job = new UIJob(COMMAND_MESSAGE) { @Override public IStatus runInUIThread(IProgressMonitor monitor) { monitor.beginTask(COMMAND_MESSAGE, 1); R4EUIPlugin.Ftracer.traceInfo("Showing Properties View"); //$NON-NLS-1$ R4EUIModelControlle...
diff --git a/src/main/java/org/apache/commons/math3/optim/BaseMultiStartMultivariateOptimizer.java b/src/main/java/org/apache/commons/math3/optim/BaseMultiStartMultivariateOptimizer.java index 8f7a51e1c..a5e7c69c1 100644 --- a/src/main/java/org/apache/commons/math3/optim/BaseMultiStartMultivariateOptimizer.java +++ b/s...
true
true
protected PAIR doOptimize() { // Remove all instances of "MaxEval" and "InitialGuess" from the // array that will be passed to the internal optimizer. // The former is to enforce smaller numbers of allowed evaluations // (according to how many have been used up already), and the latt...
protected PAIR doOptimize() { // Remove all instances of "MaxEval" and "InitialGuess" from the // array that will be passed to the internal optimizer. // The former is to enforce smaller numbers of allowed evaluations // (according to how many have been used up already), and the latt...
diff --git a/srcj/com/sun/electric/tool/io/output/Spice.java b/srcj/com/sun/electric/tool/io/output/Spice.java index 2ab6c82c1..294440ff6 100644 --- a/srcj/com/sun/electric/tool/io/output/Spice.java +++ b/srcj/com/sun/electric/tool/io/output/Spice.java @@ -1,3175 +1,3175 @@ /* -*- tab-width: 4 -*- * * Electric(tm)...
false
true
protected void writeCellTopology(Cell cell, CellNetInfo cni, VarContext context, Topology.MyCellInfo info) { // if this is the top level cell, write globals if (cell == topCell) { Netlist netList = cni.getNetList(); Global.Set globals = netList.getGlobals(); int globalSize = ...
protected void writeCellTopology(Cell cell, CellNetInfo cni, VarContext context, Topology.MyCellInfo info) { // if this is the top level cell, write globals if (cell == topCell) { Netlist netList = cni.getNetList(); Global.Set globals = netList.getGlobals(); int globalSize = ...
diff --git a/src/openblocks/common/tileentity/TileEntityElevator.java b/src/openblocks/common/tileentity/TileEntityElevator.java index 026b9ded..50f2a762 100644 --- a/src/openblocks/common/tileentity/TileEntityElevator.java +++ b/src/openblocks/common/tileentity/TileEntityElevator.java @@ -1,169 +1,171 @@ package open...
false
true
public void updateEntity() { super.updateEntity(); if (!worldObj.isRemote) { Iterator<Entry<String, Integer>> cooldownIter = cooldown.entrySet().iterator(); while (cooldownIter.hasNext()) { Entry<String, Integer> entry = cooldownIter.next(); int less = entry.getValue() - 1; entry.setValue(less)...
public void updateEntity() { super.updateEntity(); if (!worldObj.isRemote) { Iterator<Entry<String, Integer>> cooldownIter = cooldown.entrySet().iterator(); while (cooldownIter.hasNext()) { Entry<String, Integer> entry = cooldownIter.next(); int less = entry.getValue() - 1; entry.setValue(less)...
diff --git a/src/test/java/hudson/plugins/promoted_builds/PromotionEnvironmentVariablesTest.java b/src/test/java/hudson/plugins/promoted_builds/PromotionEnvironmentVariablesTest.java index a3be598..a048a92 100644 --- a/src/test/java/hudson/plugins/promoted_builds/PromotionEnvironmentVariablesTest.java +++ b/src/test/ja...
true
true
public void shouldSetJobAndJobFullNames() throws Descriptor.FormException, IOException, InterruptedException, ExecutionException { // Assemble MockFolder parent = new MockFolder(r.jenkins, "Folder"); parent.save(); FreeStyleProject project = new FreeStyleProject(parent, "Project"); ...
public void shouldSetJobAndJobFullNames() throws Descriptor.FormException, IOException, InterruptedException, ExecutionException { // Assemble MockFolder parent = new MockFolder(r.jenkins, "Folder"); parent.save(); FreeStyleProject project = new FreeStyleProject(parent, "Project"); ...
diff --git a/src/main/java/org/pircbotx/InputThread.java b/src/main/java/org/pircbotx/InputThread.java index a04d016..d817a03 100644 --- a/src/main/java/org/pircbotx/InputThread.java +++ b/src/main/java/org/pircbotx/InputThread.java @@ -1,121 +1,122 @@ /** * Copyright (C) 2010 Leon Blakey <lord.quackstar at gmail.co...
true
true
public void run() { while (true) { //Get line from the server String line = null; try { line = breader.readLine(); } catch (InterruptedIOException iioe) { // This will happen if we haven't received anything from the server for a while. // So we shall send it a ping to check that we are still ...
public void run() { while (true) { //Get line from the server String line = null; try { line = breader.readLine(); } catch (InterruptedIOException iioe) { // This will happen if we haven't received anything from the server for a while. // So we shall send it a ping to check that we are still ...
diff --git a/src/main/java/org/dynmap/hdmap/IsoHDPerspective.java b/src/main/java/org/dynmap/hdmap/IsoHDPerspective.java index 2f71a912..5096c922 100644 --- a/src/main/java/org/dynmap/hdmap/IsoHDPerspective.java +++ b/src/main/java/org/dynmap/hdmap/IsoHDPerspective.java @@ -1,1626 +1,1629 @@ package org.dynmap.hdmap; ...
true
true
public boolean render(MapChunkCache cache, HDMapTile tile, String mapname) { Color rslt = new Color(); MapIterator mapiter = cache.getIterator(0, 0, 0); /* Build shader state object for each shader */ HDShaderState[] shaderstate = MapManager.mapman.hdmapman.getShaderStateForTile(tile...
public boolean render(MapChunkCache cache, HDMapTile tile, String mapname) { Color rslt = new Color(); MapIterator mapiter = cache.getIterator(0, 0, 0); /* Build shader state object for each shader */ HDShaderState[] shaderstate = MapManager.mapman.hdmapman.getShaderStateForTile(tile...
diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java index bf39f1aba..5bc7e9e32 100644 --- a/htroot/yacysearch.java +++ b/htroot/yacysearch.java @@ -1,509 +1,509 @@ // yacysearch.java // ----------------------- // part of the AnomicHTTPD caching proxy // (C) by Michael Peter Christen; mc@anomic.de // first...
true
true
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { final plasmaSwitchboard sb = (plasmaSwitchboard) env; boolean authenticated = sb.adminAuthenticated(header) >= 2; int display = ((post == null) || (!authenticated)) ? 0 : post.getInt("display", 0)...
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { final plasmaSwitchboard sb = (plasmaSwitchboard) env; boolean authenticated = sb.adminAuthenticated(header) >= 2; int display = ((post == null) || (!authenticated)) ? 0 : post.getInt("display", 0)...
diff --git a/src/java/org/apache/cassandra/service/AntiEntropyService.java b/src/java/org/apache/cassandra/service/AntiEntropyService.java index 59615467b..ed4de2c65 100644 --- a/src/java/org/apache/cassandra/service/AntiEntropyService.java +++ b/src/java/org/apache/cassandra/service/AntiEntropyService.java @@ -1,935 +...
true
true
public void runMayThrow() throws Exception { logger.info(String.format("[repair #%s] new session: will sync %s on range %s for %s.%s", getName(), repairedNodes(), range, tablename, Arrays.toString(cfnames))); if (endpoints.isEmpty()) { differencingDon...
public void runMayThrow() throws Exception { logger.info(String.format("[repair #%s] new session: will sync %s on range %s for %s.%s", getName(), repairedNodes(), range, tablename, Arrays.toString(cfnames))); if (endpoints.isEmpty()) { differencingDon...
diff --git a/TheRunningAPP/src/com/example/therunningapp/TrappDBHelper.java b/TheRunningAPP/src/com/example/therunningapp/TrappDBHelper.java index d53eefb..1623243 100644 --- a/TheRunningAPP/src/com/example/therunningapp/TrappDBHelper.java +++ b/TheRunningAPP/src/com/example/therunningapp/TrappDBHelper.java @@ -1,167 +...
false
true
public void onCreate(SQLiteDatabase db) { db.execSQL(SQL_CREATE_WORKOUTLOG); db.execSQL(SQL_CREATE_PREF); db.execSQL(SQL_CREATE_INTERVAL); db.execSQL(SQL_CREATE_TEST); db.execSQL(SQL_CREATE_LOCATIONS); // Create a new map of values, where column names are the keys ContentValues values1 = new ContentVa...
public void onCreate(SQLiteDatabase db) { db.execSQL(SQL_CREATE_WORKOUTLOG); db.execSQL(SQL_CREATE_PREF); db.execSQL(SQL_CREATE_INTERVAL); db.execSQL(SQL_CREATE_TEST); db.execSQL(SQL_CREATE_LOCATIONS); // Create a new map of values, where column names are the keys ContentValues values1 = new ContentVa...
diff --git a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/SocketListeningConnectorImpl.java b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/SocketListeningConnectorImpl.java index a8e8ea711..9aa49e956 100644 --- a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/SocketListeningConne...
true
true
private void getConnectionArguments(Map connectionArgs) throws IllegalConnectorArgumentsException { String attribute = "port"; //$NON-NLS-1$ try { fPort = ((Connector.IntegerArgument)connectionArgs.get(attribute)).intValue(); // Note that timeout is not used in SUN's ListeningConnector, but is used by our ...
private void getConnectionArguments(Map connectionArgs) throws IllegalConnectorArgumentsException { String attribute = "port"; //$NON-NLS-1$ try { fPort = ((Connector.IntegerArgument)connectionArgs.get(attribute)).intValue(); // Note that timeout is not used in SUN's ListeningConnector, but is used by our ...
diff --git a/src/main/java/com/redhat/automationportal/scripts/svnstats/SvnStats.java b/src/main/java/com/redhat/automationportal/scripts/svnstats/SvnStats.java index 17c7885..ef8203b 100644 --- a/src/main/java/com/redhat/automationportal/scripts/svnstats/SvnStats.java +++ b/src/main/java/com/redhat/automationportal/sc...
true
true
public boolean run(final List<ConfigXMLData> configDataItems) { final Integer randomInt = this.generateRandomInt(); this.message = ""; this.output = ""; if (configDataItems.size() != 0) { final String configXML = cleanStringForBash(getConfigXml(configDataItems)); final String configXMLEscaped = ...
public boolean run(final List<ConfigXMLData> configDataItems) { final Integer randomInt = this.generateRandomInt(); this.message = ""; this.output = ""; if (configDataItems.size() != 0) { final String configXML = cleanStringForBash(getConfigXml(configDataItems)); final String configXMLEscaped = ...
diff --git a/src/main/java/org/broadleafcommerce/payment/service/gateway/PayPalExpressWebResponseServiceImpl.java b/src/main/java/org/broadleafcommerce/payment/service/gateway/PayPalExpressWebResponseServiceImpl.java index aa07fdd..b5563dd 100644 --- a/src/main/java/org/broadleafcommerce/payment/service/gateway/PayPalE...
true
true
public PaymentResponseDTO translateWebResponse(HttpServletRequest request) throws PaymentException { PaymentRequestDTO requestDTO = new PaymentRequestDTO() .additionalField(MessageConstants.TOKEN, request.getParameter(MessageConstants.HTTP_TOKEN)); PaymentResponseDTO responseDTO = re...
public PaymentResponseDTO translateWebResponse(HttpServletRequest request) throws PaymentException { PaymentRequestDTO requestDTO = new PaymentRequestDTO() .additionalField(MessageConstants.TOKEN, request.getParameter(MessageConstants.HTTP_TOKEN)); PaymentResponseDTO responseDTO = re...
diff --git a/src/main/java/tconstruct/weaponry/weapons/Crossbow.java b/src/main/java/tconstruct/weaponry/weapons/Crossbow.java index 9588b8248..a9fdba4e0 100644 --- a/src/main/java/tconstruct/weaponry/weapons/Crossbow.java +++ b/src/main/java/tconstruct/weaponry/weapons/Crossbow.java @@ -1,461 +1,461 @@ package tconst...
true
true
public IIcon getIcon(ItemStack stack, int renderPass) { if(!animateLayer(renderPass) && renderPass < getPartAmount()) return super.getIcon(stack, renderPass); if(!stack.hasTagCompound()) return super.getIcon(stack, renderPass); NBTTagCompound tags = stack.getTagComp...
public IIcon getIcon(ItemStack stack, int renderPass) { if(!animateLayer(renderPass) && renderPass < getPartAmount()) return super.getIcon(stack, renderPass); if(!stack.hasTagCompound()) return super.getIcon(stack, renderPass); NBTTagCompound tags = stack.getTagComp...
diff --git a/steamcraft/Steamcraft.java b/steamcraft/Steamcraft.java index 72412e4..4ccc8da 100644 --- a/steamcraft/Steamcraft.java +++ b/steamcraft/Steamcraft.java @@ -1,661 +1,661 @@ package steamcraft; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Random; impor...
false
true
public void load(FMLPreInitializationEvent event) { Configuration config = new Configuration(event.getSuggestedConfigurationFile()); config.load(); config.addCustomCategoryComment("Generation", "TPC:Tries per chunk"); genNetherTree = config.get("Generation", "Nether_Trees_TPC", genNetherTree).getInt(); genHi...
public void load(FMLPreInitializationEvent event) { Configuration config = new Configuration(event.getSuggestedConfigurationFile()); config.load(); config.addCustomCategoryComment("Generation", "TPC:Tries per chunk"); genNetherTree = config.get("Generation", "Nether_Trees_TPC", genNetherTree).getInt(); genHi...
diff --git a/E-Adventure/src/es/eucm/eadventure/engine/core/control/functionaldata/FunctionalScene.java b/E-Adventure/src/es/eucm/eadventure/engine/core/control/functionaldata/FunctionalScene.java index cc737049..5333435c 100644 --- a/E-Adventure/src/es/eucm/eadventure/engine/core/control/functionaldata/FunctionalScene...
false
true
public void updateScene( ) { // Update the resources and the player's resources updateResources( ); player.updateResources( ); // Pick the game data Chapter gameData = Game.getInstance( ).getCurrentChapterData( ); // Check the item references of the scene f...
public void updateScene( ) { // Update the resources and the player's resources updateResources( ); player.updateResources( ); // Pick the game data Chapter gameData = Game.getInstance( ).getCurrentChapterData( ); // Check the item references of the scene f...
diff --git a/src/api/org/openmrs/api/context/Context.java b/src/api/org/openmrs/api/context/Context.java index f9e39741..005f2d7e 100644 --- a/src/api/org/openmrs/api/context/Context.java +++ b/src/api/org/openmrs/api/context/Context.java @@ -1,1082 +1,1082 @@ /** * The contents of this file are subject to the OpenM...
true
true
public static void checkCoreDataset() { // setting core roles try { Context.addProxyPrivilege(OpenmrsConstants.PRIV_MANAGE_ROLES); Set<String> currentRoleNames = new HashSet<String>(); for (Role role : Context.getUserService().getAllRoles()) { currentRoleNames.add(role.getRole().toUpperCase()); } ...
public static void checkCoreDataset() { // setting core roles try { Context.addProxyPrivilege(OpenmrsConstants.PRIV_MANAGE_ROLES); Set<String> currentRoleNames = new HashSet<String>(); for (Role role : Context.getUserService().getAllRoles()) { currentRoleNames.add(role.getRole().toUpperCase()); } ...
diff --git a/ide/org.codehaus.groovy.eclipse.codeassist.completion/src/org/codehaus/groovy/eclipse/codeassist/completions/GroovyJavaGuessingCompletionProposal.java b/ide/org.codehaus.groovy.eclipse.codeassist.completion/src/org/codehaus/groovy/eclipse/codeassist/completions/GroovyJavaGuessingCompletionProposal.java ind...
true
true
private String computeGuessingCompletion() throws JavaModelException { StringBuffer buffer = new StringBuffer(); char[] proposalName = fProposal.getName(); boolean hasWhitespace = false; for (int i = 0; i < proposalName.length; i++) { if (CharOperation.isWhitespace(propos...
private String computeGuessingCompletion() throws JavaModelException { StringBuffer buffer = new StringBuffer(); char[] proposalName = fProposal.getName(); boolean hasWhitespace = false; for (int i = 0; i < proposalName.length; i++) { if (CharOperation.isWhitespace(propos...
diff --git a/flexoserver/flexoexternalbuilders/src/main/java/org/openflexo/builders/FlexoDocGeneratorMain.java b/flexoserver/flexoexternalbuilders/src/main/java/org/openflexo/builders/FlexoDocGeneratorMain.java index 954b09c30..e861b6cfb 100644 --- a/flexoserver/flexoexternalbuilders/src/main/java/org/openflexo/builder...
true
true
protected void doRun() { File output = getWorkingDir(); if (!output.exists() || !output.canWrite()) { if (logger.isLoggable(Level.WARNING)) { logger.warning("Output path: " + output.getAbsolutePath() + " either does not exist or does not have write permissions."); } output = null; } if (output == ...
protected void doRun() { File output = getWorkingDir(); if (!output.exists() || !output.canWrite()) { if (logger.isLoggable(Level.WARNING)) { logger.warning("Output path: " + output.getAbsolutePath() + " either does not exist or does not have write permissions."); } output = null; } if (output == ...
diff --git a/src/dev/nationcraft/org/LiveScoreboard/LiveScoreboard.java b/src/dev/nationcraft/org/LiveScoreboard/LiveScoreboard.java index 5107a79..372a3a5 100644 --- a/src/dev/nationcraft/org/LiveScoreboard/LiveScoreboard.java +++ b/src/dev/nationcraft/org/LiveScoreboard/LiveScoreboard.java @@ -1,97 +1,96 @@ package ...
false
true
public void ScoreBoard() { ScoreboardManager sm = Bukkit.getScoreboardManager(); Scoreboard b = sm.getNewScoreboard(); Objective obj = b.registerNewObjective("test", "dummy"); obj.setDisplaySlot(DisplaySlot.SIDEBAR); obj.setDisplayName("Live KDR"); Set<String> players...
public void ScoreBoard() { ScoreboardManager sm = Bukkit.getScoreboardManager(); Scoreboard b = sm.getNewScoreboard(); Objective obj = b.registerNewObjective("test", "dummy"); obj.setDisplaySlot(DisplaySlot.SIDEBAR); obj.setDisplayName("Live KDR"); Set<String> players...
diff --git a/adito/src/com/adito/jdbc/hsqldb/HSQLDBDatabaseEngine.java b/adito/src/com/adito/jdbc/hsqldb/HSQLDBDatabaseEngine.java index e30149a5..f67ea8d5 100644 --- a/adito/src/com/adito/jdbc/hsqldb/HSQLDBDatabaseEngine.java +++ b/adito/src/com/adito/jdbc/hsqldb/HSQLDBDatabaseEngine.java @@ -1,43 +1,43 @@ package co...
true
true
public String getURL() { if (serverMode) { return "jdbc:hsqldb:hsql://127.0.0.1:9002/" + getDatabase(); } else { return "jdbc:hsqldb:file:" + ContextHolder.getContext().getDBDirectory() + "/" + getDatabase(); } }
public String getURL() { if (serverMode) { return "jdbc:hsqldb:hsql://127.0.0.1:9001/" + getDatabase(); } else { return "jdbc:hsqldb:file:" + ContextHolder.getContext().getDBDirectory() + "/" + getDatabase(); } }
diff --git a/src/frontend/org/voltdb/logging/VoltLogger.java b/src/frontend/org/voltdb/logging/VoltLogger.java index 90a7410ee..c44ee660b 100644 --- a/src/frontend/org/voltdb/logging/VoltLogger.java +++ b/src/frontend/org/voltdb/logging/VoltLogger.java @@ -1,172 +1,173 @@ /* This file is part of VoltDB. * Copyright ...
true
true
public VoltLogger(String classname) { CoreVoltLogger tempLogger = null; // try to load the Log4j logger without importing it // any exception thrown will just keep going try { Class<?> loggerClz = Class.forName("org.voltdb.logging.VoltLog4jLogger"); assert(lo...
public VoltLogger(String classname) { CoreVoltLogger tempLogger = null; // try to load the Log4j logger without importing it // any exception thrown will just keep going try { Class<?> loggerClz = Class.forName("org.voltdb.logging.VoltLog4jLogger"); assert(lo...
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/PatchSetsBlock.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/PatchSetsBlock.java index 005423ffc..b9ed4e793 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/PatchSetsBlock.java +++ b/gerrit-gwtui/src/ma...
true
true
public void display(final ChangeDetail detail, final PatchSet.Id diffBaseId) { clear(); final PatchSet currps = detail.getCurrentPatchSet(); currentPatchSetId = currps.getId(); patchSets = detail.getPatchSets(); if (Gerrit.isSignedIn()) { final AccountGeneralPreferences p = Gerri...
public void display(final ChangeDetail detail, final PatchSet.Id diffBaseId) { clear(); final PatchSet currps = detail.getCurrentPatchSet(); currentPatchSetId = currps.getId(); patchSets = detail.getPatchSets(); if (Gerrit.isSignedIn()) { final AccountGeneralPreferences p = Gerri...
diff --git a/src/net/sf/freecol/common/model/Colony.java b/src/net/sf/freecol/common/model/Colony.java index 30790b5d9..0541cb157 100644 --- a/src/net/sf/freecol/common/model/Colony.java +++ b/src/net/sf/freecol/common/model/Colony.java @@ -1,2008 +1,2022 @@ /** * Copyright (C) 2002-2007 The FreeCol Team * * ...
true
true
public void newTurn() { // Skip doing work in enemy colonies. if (unitCount != -1) { return; } if (getTile() == null) { // Fix NullPointerException below logger.warning("Colony " + getName() + " lacks a tile!"); return; } ...
public void newTurn() { // Skip doing work in enemy colonies. if (unitCount != -1) { return; } if (getTile() == null) { // Fix NullPointerException below logger.warning("Colony " + getName() + " lacks a tile!"); return; } ...
diff --git a/src/com/fsck/k9/mail/store/WebDavStore.java b/src/com/fsck/k9/mail/store/WebDavStore.java index 3c2e501..df1f0a3 100644 --- a/src/com/fsck/k9/mail/store/WebDavStore.java +++ b/src/com/fsck/k9/mail/store/WebDavStore.java @@ -1,2667 +1,2665 @@ package com.fsck.k9.mail.store; import android.util.Log; i...
false
true
public void doFBA() throws IOException, MessagingException { /* public CookieStore doAuthentication(String username, String password, String url) throws IOException, MessagingException {*/ String authPath; String url = this.mUrl; String username = this.mUsername;...
public void doFBA() throws IOException, MessagingException { /* public CookieStore doAuthentication(String username, String password, String url) throws IOException, MessagingException {*/ String authPath; String url = this.mUrl; String username = this.mUsername;...
diff --git a/src/main/java/ru/altruix/commons/api/fbprefixes/AbstractMessageCodePrefixRegistry.java b/src/main/java/ru/altruix/commons/api/fbprefixes/AbstractMessageCodePrefixRegistry.java index c2359dd..27c0553 100644 --- a/src/main/java/ru/altruix/commons/api/fbprefixes/AbstractMessageCodePrefixRegistry.java +++ b/sr...
true
true
public String getPrefix(final C aModule) { return this.prefixesByModules.get(aModule) + PREFIX_MESSAGE_NUMBER_SEPARATOR; }
public final String getPrefix(final C aModule) { return this.prefixesByModules.get(aModule) + PREFIX_MESSAGE_NUMBER_SEPARATOR; }
diff --git a/src/savant/model/data/continuous/GenericContinuousTrack.java b/src/savant/model/data/continuous/GenericContinuousTrack.java index 3b8faa1b..f3169acb 100644 --- a/src/savant/model/data/continuous/GenericContinuousTrack.java +++ b/src/savant/model/data/continuous/GenericContinuousTrack.java @@ -1,157 +1,157 ...
true
true
public List<ContinuousRecord> getRecords(Range range, Resolution resolution) { List<ContinuousRecord> data = new ArrayList<ContinuousRecord>(); try { int binSize = getSamplingFrequency(resolution); int contiguousSamples = getNumContinuousSamples(resolution); in...
public List<ContinuousRecord> getRecords(Range range, Resolution resolution) { List<ContinuousRecord> data = new ArrayList<ContinuousRecord>(); try { int binSize = getSamplingFrequency(resolution); int contiguousSamples = getNumContinuousSamples(resolution); in...
diff --git a/hbase-firsthops/sling-hbase-repository/src/main/java/ch/x42/terye/observation/EventFilter.java b/hbase-firsthops/sling-hbase-repository/src/main/java/ch/x42/terye/observation/EventFilter.java index 9bfba8c..dbe6090 100644 --- a/hbase-firsthops/sling-hbase-repository/src/main/java/ch/x42/terye/observation/E...
true
true
public boolean filters(EventImpl event) { // event type if ((eventTypes & event.getType()) == 0) { return true; } // locality if (noLocal && !session.equals(event.getSession())) { return true; } // check path if (event.getParent...
public boolean filters(EventImpl event) { // event type if ((eventTypes & event.getType()) == 0) { return true; } // locality if (noLocal && session.equals(event.getSession())) { return true; } // check path if (event.getParentI...
diff --git a/src/test/java/com/netflix/simianarmy/chaos/TestChaosMonkeyContext.java b/src/test/java/com/netflix/simianarmy/chaos/TestChaosMonkeyContext.java index e3e7e3f..ff2d475 100644 --- a/src/test/java/com/netflix/simianarmy/chaos/TestChaosMonkeyContext.java +++ b/src/test/java/com/netflix/simianarmy/chaos/TestCha...
true
true
public ChaosCrawler chaosCrawler() { return new ChaosCrawler() { @Override public EnumSet<?> groupTypes() { return EnumSet.allOf(CrawlerTypes.class); } @Override public List<InstanceGroup> groups() { InstanceGroup g...
public ChaosCrawler chaosCrawler() { return new ChaosCrawler() { @Override public EnumSet<?> groupTypes() { return EnumSet.allOf(CrawlerTypes.class); } @Override public List<InstanceGroup> groups() { InstanceGroup g...
diff --git a/src/java/org/infoglue/cms/applications/structuretool/actions/ViewSiteNodeAction.java b/src/java/org/infoglue/cms/applications/structuretool/actions/ViewSiteNodeAction.java index a8f76c619..a98b8609c 100755 --- a/src/java/org/infoglue/cms/applications/structuretool/actions/ViewSiteNodeAction.java +++ b/src/...
true
true
public String doExecute() throws Exception { if(getSiteNodeId() != null) { this.initialize(getSiteNodeId()); if((this.stay == null || !this.stay.equalsIgnoreCase("true")) && this.siteNodeVersionVO.getStateId().intValue() == SiteNodeVersionVO.WORKING_STATE.intValue() && getSho...
public String doExecute() throws Exception { if(getSiteNodeId() != null) { this.initialize(getSiteNodeId()); if((this.stay == null || !this.stay.equalsIgnoreCase("true")) && this.siteNodeVO.getSiteNodeTypeDefinitionId() != null && this.siteNodeVersionVO.getStateId().intValue(...
diff --git a/src/edu/wustl/security/beans/RoleGroupDetailsBean.java b/src/edu/wustl/security/beans/RoleGroupDetailsBean.java index f061e47..71c16ee 100644 --- a/src/edu/wustl/security/beans/RoleGroupDetailsBean.java +++ b/src/edu/wustl/security/beans/RoleGroupDetailsBean.java @@ -1,196 +1,193 @@ package edu.wustl.se...
false
true
public boolean equals(final Object object) // NOPMD by deepti_shelar on 11/17/08 5:35 PM { boolean equals = false; if ((object != null) && object instanceof RoleGroupDetailsBean) { RoleGroupDetailsBean bean = (RoleGroupDetailsBean) object; if (isObjectEqual(bean.getGroupId(), this.getGroupId()) || is...
public boolean equals(final Object object) // NOPMD by deepti_shelar on 11/17/08 5:35 PM { boolean equals = false; if ((object != null) && object instanceof RoleGroupDetailsBean) { RoleGroupDetailsBean bean = (RoleGroupDetailsBean) object; equals = ( isObjectEqual(bean.getGroupId(), this.getGroupId()) ...
diff --git a/core/java/android/widget/AutoCompleteTextView.java b/core/java/android/widget/AutoCompleteTextView.java index 0df587f1..4bc00de3 100644 --- a/core/java/android/widget/AutoCompleteTextView.java +++ b/core/java/android/widget/AutoCompleteTextView.java @@ -1,1579 +1,1576 @@ /* * Copyright (C) 2007 The Andr...
true
true
private int buildDropDown() { ViewGroup dropDownView; int otherHeights = 0; if (mAdapter != null) { InputMethodManager imm = InputMethodManager.peekInstance(); if (imm != null) { int N = mAdapter.getCount(); if (N > 20) N = 20; ...
private int buildDropDown() { ViewGroup dropDownView; int otherHeights = 0; if (mAdapter != null) { InputMethodManager imm = InputMethodManager.peekInstance(); if (imm != null) { int N = mAdapter.getCount(); if (N > 20) N = 20; ...
diff --git a/test-modules/functional-tests/src/test/java/org/openlmis/functional/ManageReport.java b/test-modules/functional-tests/src/test/java/org/openlmis/functional/ManageReport.java index 766e7e0a73..b3de8aa0c8 100644 --- a/test-modules/functional-tests/src/test/java/org/openlmis/functional/ManageReport.java +++ b...
true
true
public void invalidScenariosReports(String[] credentials) throws Exception { LoginPage loginPage = new LoginPage(testWebDriver, baseUrlGlobal); HomePage homePage = loginPage.loginAs(credentials[0], credentials[1]); ReportPage reportPage = homePage.navigateReportScreen(); reportPage.verifyNoReportsMe...
public void invalidScenariosReports(String[] credentials) throws Exception { LoginPage loginPage = new LoginPage(testWebDriver, baseUrlGlobal); HomePage homePage = loginPage.loginAs(credentials[0], credentials[1]); ReportPage reportPage = homePage.navigateReportScreen(); // reportPage.verifyNoReports...
diff --git a/core/src/org/icepdf/core/util/Parser.java b/core/src/org/icepdf/core/util/Parser.java index 51ed236a..2d23334a 100644 --- a/core/src/org/icepdf/core/util/Parser.java +++ b/core/src/org/icepdf/core/util/Parser.java @@ -1,1300 +1,1301 @@ /* * Copyright 2006-2013 ICEsoft Technologies Inc. * * Licensed ...
true
true
public Object getObject(Library library) throws PDFException { int deepnessCount = 0; boolean inObject = false; // currently parsing tokens in an object boolean complete = false; // flag used for do loop. Object nextToken; Reference objectReference = null; try { ...
public Object getObject(Library library) throws PDFException { int deepnessCount = 0; boolean inObject = false; // currently parsing tokens in an object boolean complete = false; // flag used for do loop. Object nextToken; Reference objectReference = null; try { ...
diff --git a/core/src/main/java/brooklyn/event/basic/EntityRankers.java b/core/src/main/java/brooklyn/event/basic/EntityRankers.java index c3328b909..937a43813 100644 --- a/core/src/main/java/brooklyn/event/basic/EntityRankers.java +++ b/core/src/main/java/brooklyn/event/basic/EntityRankers.java @@ -1,32 +1,32 @@ pack...
true
true
public static Comparator<Entity> sensorComparator(final String sensorName) { return new Comparator<Entity>() { public int compare(Entity a, Entity b) { Object aMetric = a.getProperties().get(sensorName); Object bMetric = b.getProperties().get(sensorName); ...
public static Comparator<Entity> sensorComparator(final String sensorName) { return new Comparator<Entity>() { public int compare(Entity a, Entity b) { Object aMetric = a.getAttributes().get(sensorName); Object bMetric = b.getAttributes().get(sensorName); ...
diff --git a/sources/FeedSourceService/src/org/sociotech/communitymashup/source/feed/FeedSourceService.java b/sources/FeedSourceService/src/org/sociotech/communitymashup/source/feed/FeedSourceService.java index 6b4582e..bc59f75 100644 --- a/sources/FeedSourceService/src/org/sociotech/communitymashup/source/feed/FeedSou...
true
true
public boolean initialize(Source configuration) { boolean initialized = super.initialize(configuration); if(initialized) { String feedUrl = source.getPropertyValue(FeedProperties.FEED_URL_PROPERTY); // check url property initialized &= (feedUrl != null & !feedUrl.isEmpty()); } if(!initializ...
public boolean initialize(Source configuration) { boolean initialized = super.initialize(configuration); if(initialized) { String feedUrl = source.getPropertyValue(FeedProperties.FEED_URL_PROPERTY); // check url property initialized &= (feedUrl != null && !feedUrl.isEmpty()); } if(!initiali...
diff --git a/src/web/org/openmrs/web/controller/remotecommunication/PostHl7Controller.java b/src/web/org/openmrs/web/controller/remotecommunication/PostHl7Controller.java index f115133b..076f9b2f 100644 --- a/src/web/org/openmrs/web/controller/remotecommunication/PostHl7Controller.java +++ b/src/web/org/openmrs/web/con...
true
true
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { Map<String, Object> model = new HashMap<String, Object>(); Boolean success = false; if (!Context.isAuthenticated()) { String username = request.getParameter("username"); String password = request....
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { Map<String, Object> model = new HashMap<String, Object>(); Boolean success = false; if (!Context.isAuthenticated()) { String username = request.getParameter("username"); String password = request....
diff --git a/Core/src/org/sleuthkit/autopsy/datamodel/DataConversion.java b/Core/src/org/sleuthkit/autopsy/datamodel/DataConversion.java index b4672bbb5..e0b4f67e7 100644 --- a/Core/src/org/sleuthkit/autopsy/datamodel/DataConversion.java +++ b/Core/src/org/sleuthkit/autopsy/datamodel/DataConversion.java @@ -1,138 +1,13...
true
true
public static String byteArrayToHex(byte[] array, int length, long arrayOffset) { if (array == null) { return ""; } else { StringBuilder outputStringBuilder = new StringBuilder(); // loop through the file in 16-byte increments fo...
public static String byteArrayToHex(byte[] array, int length, long arrayOffset) { if (array == null) { return ""; } else { StringBuilder outputStringBuilder = new StringBuilder(); // loop through the file in 16-byte increments fo...
diff --git a/src/au/com/addstar/truehardcore/CommandTH.java b/src/au/com/addstar/truehardcore/CommandTH.java index 3bf91e7..27ed79d 100644 --- a/src/au/com/addstar/truehardcore/CommandTH.java +++ b/src/au/com/addstar/truehardcore/CommandTH.java @@ -1,411 +1,421 @@ package au.com.addstar.truehardcore; /* * TrueHardco...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { String action = ""; if (args.length > 0) { action = args[0].toUpperCase(); } if (action.equals("PLAY")) { if (sender instanceof Player) { if (!Util.RequirePermission((Player) sender, "truehardcore.use")...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { String action = ""; if (args.length > 0) { action = args[0].toUpperCase(); } if (action.equals("PLAY")) { if (sender instanceof Player) { if (!Util.RequirePermission((Player) sender, "truehardcore.use")...
diff --git a/src/main/java/net/ftlines/blog/cdidemo/cdi/TransactionalInterceptor.java b/src/main/java/net/ftlines/blog/cdidemo/cdi/TransactionalInterceptor.java index 0fe916e..ba51a10 100755 --- a/src/main/java/net/ftlines/blog/cdidemo/cdi/TransactionalInterceptor.java +++ b/src/main/java/net/ftlines/blog/cdidemo/cdi/T...
true
true
public Object wrapInTransaction(InvocationContext invocation) throws Exception { boolean owner = em.getTransaction().isActive(); if (owner) { em.getTransaction().begin(); } try { return invocation.proceed(); } catch (RuntimeException e) { em.getTransaction().setRollbackOnly(); ...
public Object wrapInTransaction(InvocationContext invocation) throws Exception { boolean owner = !em.getTransaction().isActive(); if (owner) { em.getTransaction().begin(); } try { return invocation.proceed(); } catch (RuntimeException e) { em.getTransaction().setRollbackOnly();...
diff --git a/web/src/main/java/com/wikia/search/suggest/service/SearchSuggestService.java b/web/src/main/java/com/wikia/search/suggest/service/SearchSuggestService.java index d03fa0d..c4aa870 100644 --- a/web/src/main/java/com/wikia/search/suggest/service/SearchSuggestService.java +++ b/web/src/main/java/com/wikia/sear...
true
true
public List<Suggestion> search( int wikiId, String query ) { try { SolrQuery solrQuery = new SolrQuery(); solrQuery.setQuery("wikiId_i:" + wikiId); solrQuery.addFilterQuery("(title_ngram:\"" + query + "\") OR (redirects_ngram:\"" + query + "\")"); solrQuery.ad...
public List<Suggestion> search( int wikiId, String query ) { try { SolrQuery solrQuery = new SolrQuery(); solrQuery.setQuery("wikiId_i:" + wikiId); solrQuery.addFilterQuery("(title_ngram:\"" + query + "\") OR (redirects_ngram_mv:\"" + query + "\")"); solrQuery...
diff --git a/src/main/java/net/ae97/totalpermissions/commands/subcommands/DumpCommand.java b/src/main/java/net/ae97/totalpermissions/commands/subcommands/DumpCommand.java index 1e41340..4041186 100644 --- a/src/main/java/net/ae97/totalpermissions/commands/subcommands/DumpCommand.java +++ b/src/main/java/net/ae97/totalp...
false
true
public boolean execute(CommandSender sender, String[] args) { String[] params = new String[2]; Cipher lang = plugin.getLangFile(); if (args.length == 0) { return false; } if (args.length == 1) { Player possible = Bukkit.getPlayer(args[0]); ...
public boolean execute(CommandSender sender, String[] args) { String[] params = new String[2]; Cipher lang = plugin.getLangFile(); if (args.length == 0) { sender.sendMessage("No parameters passed"); return false; } if (args.length == 1) { P...
diff --git a/src/main/java/net/catharos/recipes/cRecipes.java b/src/main/java/net/catharos/recipes/cRecipes.java index 16b87c3..c02a663 100644 --- a/src/main/java/net/catharos/recipes/cRecipes.java +++ b/src/main/java/net/catharos/recipes/cRecipes.java @@ -1,99 +1,98 @@ package net.catharos.recipes; import java.io....
false
true
public void onEnable() { instance = this; getConfig().options().copyDefaults( true ); this.saveConfig(); getConfig().getBoolean( "check-updates", true ); new Updater( this, true ); // Run async, to reduce lagg getServer().getScheduler().runTask( this, new Runnable() { public void run() { try { ...
public void onEnable() { instance = this; getConfig().options().copyDefaults( true ); this.saveConfig(); if (getConfig().getBoolean( "check-updates", true )) new Updater( this, true ); // Run async, to reduce lagg getServer().getScheduler().runTask( this, new Runnable() { public void run() { try ...
diff --git a/src/main/java/uk/co/epsilontechnologies/primer/PrimerAnnotations.java b/src/main/java/uk/co/epsilontechnologies/primer/PrimerAnnotations.java index bc0ca8f..4b54b4e 100644 --- a/src/main/java/uk/co/epsilontechnologies/primer/PrimerAnnotations.java +++ b/src/main/java/uk/co/epsilontechnologies/primer/Primer...
true
true
public static void initPrimers(final Object testClass) { final Class<?> clazz = testClass.getClass(); for (final Field field : clazz.getDeclaredFields()) { if (field.isAnnotationPresent(Primer.class)) { final Primer primerAnnotation = field.getDeclaredAnnotation(Primer.cl...
public static void initPrimers(final Object testClass) { final Class<?> clazz = testClass.getClass(); for (final Field field : clazz.getDeclaredFields()) { if (field.isAnnotationPresent(Primer.class)) { final Primer primerAnnotation = field.getAnnotation(Primer.class); ...
diff --git a/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java b/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java index 38bf8c010..766574d32 100644 --- a/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/mave...
true
true
public void execute() throws MojoExecutionException { // ---------------------------------------------------------------------- // Look up the compiler. This is done before other code than can // cause the mojo to return before the lookup is done possibly resulting // in ...
public void execute() throws MojoExecutionException { // ---------------------------------------------------------------------- // Look up the compiler. This is done before other code than can // cause the mojo to return before the lookup is done possibly resulting // in ...
diff --git a/import/src/main/java/org/kramerius/processes/ParametrizedImportInputTemplate.java b/import/src/main/java/org/kramerius/processes/ParametrizedImportInputTemplate.java index ba2a2837b..ae50ddaf4 100644 --- a/import/src/main/java/org/kramerius/processes/ParametrizedImportInputTemplate.java +++ b/import/src/ma...
true
true
public void executeGet(LRProcessDefinition definition, Writer writer) throws IOException { // root ? File homeFolder = new File(KConfiguration.getInstance().getProperty("import.directory")).getParentFile(); InputStream iStream = this.getClass().getResourceAsStream("parametrizedimport.stg"); ...
public void renderInput(LRProcessDefinition definition, Writer writer) throws IOException { // root ? File homeFolder = new File(KConfiguration.getInstance().getProperty("import.directory")).getParentFile(); InputStream iStream = this.getClass().getResourceAsStream("parametrizedimport.stg");...
diff --git a/seng403/src/gui/UserManualWindow.java b/seng403/src/gui/UserManualWindow.java index 2756772..d72968b 100644 --- a/seng403/src/gui/UserManualWindow.java +++ b/seng403/src/gui/UserManualWindow.java @@ -1,114 +1,114 @@ package gui; import java.awt.EventQueue; import javax.swing.JFrame; import api.API_In...
true
true
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 1000, 825); frame.setResizable(false); frame.getContentPane().setLayout(new FormLayout(new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC, ColumnSpec.decode("default:grow"),}, new RowSpec[] { FormFactory.RELATED_GAP_ROWS...
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 1000, 825); frame.setResizable(false); frame.getContentPane().setLayout(new FormLayout(new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC, ColumnSpec.decode("default:grow"),}, new RowSpec[] { FormFactory.RELATED_GAP_ROWS...
diff --git a/Tableroids/src/com/september/tableroids/MainGamePanel.java b/Tableroids/src/com/september/tableroids/MainGamePanel.java index 8acedd9..0ac82cd 100644 --- a/Tableroids/src/com/september/tableroids/MainGamePanel.java +++ b/Tableroids/src/com/september/tableroids/MainGamePanel.java @@ -1,354 +1,355 @@ /** ...
false
true
public MainGamePanel(Context context) { super(context); // adding the callback (this) to the surface holder to intercept events getHolder().addCallback(this); AssetManager manager = getContext().getAssets(); WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); Display di...
public MainGamePanel(Context context) { super(context); // adding the callback (this) to the surface holder to intercept events getHolder().addCallback(this); AssetManager manager = getContext().getAssets(); WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); Display di...
diff --git a/hw3/src/company/Laboratory.java b/hw3/src/company/Laboratory.java index 4bae2b3..0f1cbc6 100644 --- a/hw3/src/company/Laboratory.java +++ b/hw3/src/company/Laboratory.java @@ -1,74 +1,74 @@ /** @author Eldar Damari, Ory Band. */ package company; import java.lang.Comparable; public class Laborat...
true
true
public String toString() { StringBuilder result = new StringBuilder(); String N = System.getProperty("line.separator"); result.append(N); result.append(this.price + "$, "); result.append(this.name + ", "); result.append(this.specialization + ", "); result.ap...
public String toString() { StringBuilder result = new StringBuilder(); String N = System.getProperty("line.separator"); result.append(N); result.append(this.price + "$, "); result.append(this.name + ", "); result.append(this.specialization + ", "); result.ap...
diff --git a/tool/src/java/org/sakaiproject/evaluation/tool/producers/ModifyItemProducer.java b/tool/src/java/org/sakaiproject/evaluation/tool/producers/ModifyItemProducer.java index 095585ae..661c811d 100644 --- a/tool/src/java/org/sakaiproject/evaluation/tool/producers/ModifyItemProducer.java +++ b/tool/src/java/org/...
true
true
public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) { // local variables used in the render logic String currentUserId = commonLogic.getCurrentUserId(); boolean userAdmin = commonLogic.isUserAdmin(currentUserId); boolean createTemplate...
public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) { // local variables used in the render logic String currentUserId = commonLogic.getCurrentUserId(); boolean userAdmin = commonLogic.isUserAdmin(currentUserId); boolean createTemplate...
diff --git a/SEIS610_asgn/Dvoracek_Asgn_01/src/dvoracek_asgn_01/Dvoracek_Asgn_01.java b/SEIS610_asgn/Dvoracek_Asgn_01/src/dvoracek_asgn_01/Dvoracek_Asgn_01.java index 72fa664..6c729a5 100644 --- a/SEIS610_asgn/Dvoracek_Asgn_01/src/dvoracek_asgn_01/Dvoracek_Asgn_01.java +++ b/SEIS610_asgn/Dvoracek_Asgn_01/src/dvoracek_a...
false
true
public static void main(String[] args) { // TODO code application logic here // assign variables int n,x,nx,arraycount, r1score, r2score, beginx, lastx, arraysize; String testset1, testset2, t1,r1, r2; double target,random1,random2,test1,test2 ; //initialize variables r1score...
public static void main(String[] args) { // TODO code application logic here // assign variables int n,x,nx,arraycount, r1score, r2score, beginx, lastx, arraysize; String testset1, testset2, t1,r1, r2; double target,random1,random2,test1,test2 ; //initialize variables r1score...
diff --git a/src/pt/up/fe/dceg/neptus/mra/plots/ZPlot.java b/src/pt/up/fe/dceg/neptus/mra/plots/ZPlot.java index 42ddfc6b7..e6e1dafb2 100644 --- a/src/pt/up/fe/dceg/neptus/mra/plots/ZPlot.java +++ b/src/pt/up/fe/dceg/neptus/mra/plots/ZPlot.java @@ -1,101 +1,101 @@ /* * Copyright (c) 2004-2013 Universidade do Porto -...
false
true
public void process(LsfIndex source) { if (source.getDefinitions().getVersion().compareTo("5.0.0") >= 0) { for (IMCMessage es : source.getIterator("EstimatedState", 0, (long)(timestep * 1000))) { double depth = es.getDouble("depth"); double alt = es.getDouble("al...
public void process(LsfIndex source) { if (source.getDefinitions().getVersion().compareTo("5.0.0") >= 0) { for (IMCMessage es : source.getIterator("EstimatedState", 0, (long)(timestep * 1000))) { double depth = es.getDouble("depth"); double alt = es.getDouble("al...
diff --git a/bin/.templates/Main.java b/bin/.templates/Main.java index 5d217aa..62c7f9f 100644 --- a/bin/.templates/Main.java +++ b/bin/.templates/Main.java @@ -1,167 +1,167 @@ /******************************************************************************* * Copyright (c) 2012, THE BOARD OF TRUSTEES OF THE LELAND S...
true
true
public boolean isHealthy () throws CycladesException { /***************************************************************************************/ /** Each action handler can override the "isHealthy()" method. If desired this health **/ /** check can be extended to include checking each Action...
public boolean isHealthy () throws CycladesException { /***************************************************************************************/ /** Each action handler can override the "isHealthy()" method. If desired this health **/ /** check can be extended to include checking each Action...
diff --git a/java/ru/tsu/inf/atexant/nlp/WordNetSimilarityMeasurer.java b/java/ru/tsu/inf/atexant/nlp/WordNetSimilarityMeasurer.java index 2ccad8e..fe5463f 100644 --- a/java/ru/tsu/inf/atexant/nlp/WordNetSimilarityMeasurer.java +++ b/java/ru/tsu/inf/atexant/nlp/WordNetSimilarityMeasurer.java @@ -1,225 +1,223 @@ packag...
true
true
private double getSimilarity(Synset a, Synset b) { try { if (a.getSynset().equals(b.getSynset())) { return 1.0; } RelationshipList relationshipList = RelationshipFinder.findRelationships(a, b, PointerType.HYPERNYM); if...
private double getSimilarity(Synset a, Synset b) { try { if (a.getSynset().equals(b.getSynset())) { return 1.0; } RelationshipList relationshipList = RelationshipFinder.findRelationships(a, b, PointerType.HYPERNYM); if...
diff --git a/net.sf.eclipsefp.haskell.core/src/net/sf/eclipsefp/haskell/core/uuagc/UuagcProjectManager.java b/net.sf.eclipsefp.haskell.core/src/net/sf/eclipsefp/haskell/core/uuagc/UuagcProjectManager.java index 40bd008e..f7cf0a5a 100644 --- a/net.sf.eclipsefp.haskell.core/src/net/sf/eclipsefp/haskell/core/uuagc/UuagcPr...
true
true
public void initFromContents( final String contents ) { // Initialize the files files = new ArrayList<UuagcFile>(); // Parse the file String[] lines = contents.split( "[\r\n]+" ); //$NON-NLS-1$ for (int i = 0; i < lines.length; i++) { String line = lines[i]; if (line.startsWith( FILE_I...
public void initFromContents( final String contents ) { // Initialize the files files = new ArrayList<UuagcFile>(); // Parse the file String[] lines = contents.split( "[\r\n]+" ); //$NON-NLS-1$ for (int i = 0; i < lines.length; i++) { String line = lines[i]; if (line.startsWith( FILE_I...
diff --git a/CubicMeterCommunityApp/src/com/example/cubicmetercommunity/app/BiodiversityFragment.java b/CubicMeterCommunityApp/src/com/example/cubicmetercommunity/app/BiodiversityFragment.java index d8fd2d3..bb969fc 100644 --- a/CubicMeterCommunityApp/src/com/example/cubicmetercommunity/app/BiodiversityFragment.java ++...
true
true
public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); TableLayout table = (TableLayout) getActivity().findViewById( R.id.TableLayout1); bugs = getResources().getStringArray(R.array.BugNames); bugPics = getResources().getStringArray(R.array.BugPics); Itera...
public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); TableLayout table = (TableLayout) getActivity().findViewById( R.id.TableLayout1); bugs = getResources().getStringArray(R.array.BugNames); bugPics = getResources().getStringArray(R.array.BugPics); Itera...
diff --git a/src/me/libraryaddict/Hungergames/Hungergames.java b/src/me/libraryaddict/Hungergames/Hungergames.java index b215769..7c8e716 100644 --- a/src/me/libraryaddict/Hungergames/Hungergames.java +++ b/src/me/libraryaddict/Hungergames/Hungergames.java @@ -1,424 +1,423 @@ package me.libraryaddict.Hungergames; i...
false
true
public void onEnable() { try { Metrics metrics = new Metrics(this); metrics.start(); if (metrics.isOptOut()) System.out.print(cm.getLoggerMetricsMessage()); } catch (IOException e) { } HungergamesApi.init(this); cm = Hungerg...
public void onEnable() { try { if (!new Metrics(this).start()) System.out.print(cm.getLoggerMetricsMessage()); } catch (Exception e) { e.printStackTrace(); } HungergamesApi.init(this); cm = HungergamesApi.getChatManager(); pm = ...
diff --git a/src/com/quizz/core/widgets/SectionProgressView.java b/src/com/quizz/core/widgets/SectionProgressView.java index eb01daa..17c02f3 100644 --- a/src/com/quizz/core/widgets/SectionProgressView.java +++ b/src/com/quizz/core/widgets/SectionProgressView.java @@ -1,69 +1,69 @@ package com.quizz.core.widgets; i...
true
true
protected void onDraw(Canvas canvas) { super.onDraw(canvas); if (mProgressBounds != null) { mProgressBounds.left = mPaddingLeft; mProgressBounds.top = mPaddingTop; mProgressBounds.right = (int) ((getWidth() - mPaddingRight) * mProgressValue / 100f); mProgressBounds.bottom = getHeight() - mPadding...
protected void onDraw(Canvas canvas) { super.onDraw(canvas); if (mProgressBounds != null && mProgressDrawable != null) { mProgressBounds.left = mPaddingLeft; mProgressBounds.top = mPaddingTop; mProgressBounds.right = (int) ((getWidth() - mPaddingRight) * mProgressValue / 100f); mProgressBounds.bo...
diff --git a/Item/src/info/tregmine/item/Item.java b/Item/src/info/tregmine/item/Item.java index a1b8492..2dc0db0 100644 --- a/Item/src/info/tregmine/item/Item.java +++ b/Item/src/info/tregmine/item/Item.java @@ -1,151 +1,151 @@ package info.tregmine.item; import java.util.logging.Logger; import org.bukkit.Cha...
false
true
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { String commandName = command.getName().toLowerCase(); Player player = null; if(!(sender instanceof Player)) { return false; } else { player = (Player) sender; } info.tregmine.api.TregminePlayer tregm...
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { String commandName = command.getName().toLowerCase(); Player player = null; if(!(sender instanceof Player)) { return false; } else { player = (Player) sender; } info.tregmine.api.TregminePlayer tregm...
diff --git a/src/ch/zhaw/mcag/model/Shot.java b/src/ch/zhaw/mcag/model/Shot.java index 821ab67..e8426b5 100644 --- a/src/ch/zhaw/mcag/model/Shot.java +++ b/src/ch/zhaw/mcag/model/Shot.java @@ -1,44 +1,46 @@ package ch.zhaw.mcag.model; import java.awt.Image; import ch.zhaw.mcag.*; /** * Shot item */ publi...
true
true
public Shot(Position position, Dimension dimension, Image image, boolean good) { super(position, dimension, image); if (!good) { this.direction = -1; this.good = good; } }
public Shot(Position position, Dimension dimension, Image image, boolean good) { super(position, dimension, image); if (!good) { this.direction = -1; this.good = good; } else { this.good = true; } }
diff --git a/components/bio-formats/src/loci/formats/in/LeicaHandler.java b/components/bio-formats/src/loci/formats/in/LeicaHandler.java index ebf779bab..01b0f180a 100644 --- a/components/bio-formats/src/loci/formats/in/LeicaHandler.java +++ b/components/bio-formats/src/loci/formats/in/LeicaHandler.java @@ -1,1040 +1,1...
true
true
public void startElement(String uri, String localName, String qName, Attributes attributes) { if (attributes.getLength() > 0 && !qName.equals("Element") && !qName.equals("Attachment") && !qName.equals("LMSDataContainerHeader")) { nameStack.push(qName); } int oldSeriesCount = numData...
public void startElement(String uri, String localName, String qName, Attributes attributes) { if (attributes.getLength() > 0 && !qName.equals("Element") && !qName.equals("Attachment") && !qName.equals("LMSDataContainerHeader")) { nameStack.push(qName); } int oldSeriesCount = numData...
diff --git a/src/main/java/com/redhat/ceylon/compiler/js/TypeUtils.java b/src/main/java/com/redhat/ceylon/compiler/js/TypeUtils.java index 966db0e0..07c7d707 100644 --- a/src/main/java/com/redhat/ceylon/compiler/js/TypeUtils.java +++ b/src/main/java/com/redhat/ceylon/compiler/js/TypeUtils.java @@ -1,750 +1,763 @@ pack...
false
true
static void encodeForRuntime(final Node that, final Declaration d, final GenerateJsVisitor gen, final RuntimeMetamodelAnnotationGenerator annGen) { gen.out("function(){return{mod:$$METAMODEL$$"); List<TypeParameter> tparms = d instanceof TypeDeclaration ? ((TypeDeclaration)d).getTypeParameters() : n...
static void encodeForRuntime(final Node that, final Declaration d, final GenerateJsVisitor gen, final RuntimeMetamodelAnnotationGenerator annGen) { gen.out("function(){return{mod:$$METAMODEL$$"); List<TypeParameter> tparms = d instanceof TypeDeclaration ? ((TypeDeclaration)d).getTypeParameters() : n...
diff --git a/demo/src/main/java/fi/jasoft/qrcode/demo/QRCodeDemo.java b/demo/src/main/java/fi/jasoft/qrcode/demo/QRCodeDemo.java index 46c59e7..908db86 100644 --- a/demo/src/main/java/fi/jasoft/qrcode/demo/QRCodeDemo.java +++ b/demo/src/main/java/fi/jasoft/qrcode/demo/QRCodeDemo.java @@ -1,153 +1,153 @@ /* * Copyrig...
true
true
protected void init(VaadinRequest request) { VerticalLayout root = new VerticalLayout(); root.setSpacing(true); setContent(root); code = new QRCode(); code.setWidth("100px"); code.setHeight("100px"); HorizontalLayout layout = new HorizontalLayout(); layo...
protected void init(VaadinRequest request) { VerticalLayout root = new VerticalLayout(); root.setSpacing(true); setContent(root); code = new QRCode(); code.setWidth("100px"); code.setHeight("100px"); HorizontalLayout layout = new HorizontalLayout(); layo...
diff --git a/srcj/com/sun/electric/tool/io/input/LibraryFiles.java b/srcj/com/sun/electric/tool/io/input/LibraryFiles.java index fc11ceaae..e436e42ff 100755 --- a/srcj/com/sun/electric/tool/io/input/LibraryFiles.java +++ b/srcj/com/sun/electric/tool/io/input/LibraryFiles.java @@ -1,451 +1,452 @@ /* -*- tab-width: 4 -*...
true
true
protected Library readExternalLibraryFromFilename(String theFileName) { // get the path to the library file File libFile = new File(theFileName); // see if this library is already read in String libFileName = libFile.getName(); String libFilePath = libFile.getParent(); // special case if the library p...
protected Library readExternalLibraryFromFilename(String theFileName) { // get the path to the library file File libFile = new File(theFileName); // see if this library is already read in String libFileName = libFile.getName(); String libFilePath = libFile.getParent(); // special case if the library p...
diff --git a/src/main/java/net/h31ix/anticheat/event/PlayerListener.java b/src/main/java/net/h31ix/anticheat/event/PlayerListener.java index b698dc3..75fb0a7 100644 --- a/src/main/java/net/h31ix/anticheat/event/PlayerListener.java +++ b/src/main/java/net/h31ix/anticheat/event/PlayerListener.java @@ -1,273 +1,276 @@ pa...
false
true
public void onPlayerMove(PlayerMoveEvent event) { Player player = event.getPlayer(); if(!plugin.lagged && !ex.isHit(player)) { //Log the player's health level hm.log(player); //Get distances for hack checks. LengthCheck c = new LengthCheck(...
public void onPlayerMove(PlayerMoveEvent event) { Player player = event.getPlayer(); if(!plugin.lagged && !ex.isHit(player)) { //Log the player's health level hm.log(player); //Get distances for hack checks. LengthCheck c = new LengthCheck(...
diff --git a/src/main/java/org/vectomatic/dom/svg/ui/SVGImage.java b/src/main/java/org/vectomatic/dom/svg/ui/SVGImage.java index 9c7bb2f..077d150 100644 --- a/src/main/java/org/vectomatic/dom/svg/ui/SVGImage.java +++ b/src/main/java/org/vectomatic/dom/svg/ui/SVGImage.java @@ -1,184 +1,183 @@ /*************************...
true
true
public void setSvgElement(OMSVGSVGElement svgElement) { //this.svgElement = (OMSVGSVGElement)svgElement.cloneNode(true); this.svgElement = svgElement; // Sets the element in UIObject. This guarantees that // SimplePanel.setWidget() and ComplexPanel.insertWidget() // get the SVGSVGElement when this widget ...
public void setSvgElement(OMSVGSVGElement svgElement) { this.svgElement = (OMSVGSVGElement)svgElement.cloneNode(true); // Sets the element in UIObject. This guarantees that // SimplePanel.setWidget() and ComplexPanel.insertWidget() // get the SVGSVGElement when this widget is inserted // in a SimplePanel ...
diff --git a/src/main/java/org/spoutcraft/launcher/gui/BackgroundImageWorker.java b/src/main/java/org/spoutcraft/launcher/gui/BackgroundImageWorker.java index b666631..867c967 100644 --- a/src/main/java/org/spoutcraft/launcher/gui/BackgroundImageWorker.java +++ b/src/main/java/org/spoutcraft/launcher/gui/BackgroundImag...
true
true
protected Object doInBackground() { try { if (!backgroundImage.exists() || backgroundImage.length() < 10*1024 || System.currentTimeMillis() - backgroundImage.lastModified() > IMAGE_CYCLE_TIME) { Download download = new Download("http://www.spoutcraft.org/splash/random.png", backgroundImage.getPath()); dow...
protected Object doInBackground() { try { if (!backgroundImage.exists() || backgroundImage.length() < 10*1024 || System.currentTimeMillis() - backgroundImage.lastModified() > IMAGE_CYCLE_TIME) { Download download = new Download("http://get.spout.org/splash/random.png", backgroundImage.getPath()); download...
diff --git a/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/MassIndexUpdater.java b/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/MassIndexUpdater.java index eb1146a4..6601da23 100644 --- a/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/MassIndexUpdater...
true
true
private void processFile(IFile file) { try { Node node = parser.parse(file); updater.update(file, node, false); } catch (CoreException e) { RubyCore.log(e); } catch (SyntaxException se) { System.err.println("Explicit catch of SyntaxError in MassIn...
private void processFile(IFile file) { try { Node node = parser.parse(file); updater.update(file, node, false); } catch (CoreException e) { RubyCore.log(e); } catch (SyntaxException se) { RubyCore.log("Explicit catch of SyntaxError in MassIndexUpd...
diff --git a/app/src/test/java/li/klass/fhem/util/ValueExtractUtilTest.java b/app/src/test/java/li/klass/fhem/util/ValueExtractUtilTest.java index a2ea89e9..ea4fbe42 100644 --- a/app/src/test/java/li/klass/fhem/util/ValueExtractUtilTest.java +++ b/app/src/test/java/li/klass/fhem/util/ValueExtractUtilTest.java @@ -1,58 ...
true
true
public void testExtractLeadingNumericText() { assertThat(extractLeadingNumericText("abc def"), is("")); assertThat(extractLeadingNumericText("5 abc def ds"), is("5")); assertThat(extractLeadingNumericText("5.0 abc def ds"), is("5.0")); assertThat(extractLeadingNumericText("abc"), is(...
public void testExtractLeadingNumericText() { assertThat(extractLeadingNumericText("abc def"), is("")); assertThat(extractLeadingNumericText("5 abc def ds"), is("5")); assertThat(extractLeadingNumericText("5.0 abc def ds"), is("5.0")); assertThat(extractLeadingNumericText("abc"), is(...
diff --git a/src/test/java/com/develogical/QueryProcessorTest.java b/src/test/java/com/develogical/QueryProcessorTest.java index 888b7b8..c44ad88 100644 --- a/src/test/java/com/develogical/QueryProcessorTest.java +++ b/src/test/java/com/develogical/QueryProcessorTest.java @@ -1,22 +1,22 @@ package com.develogical; ...
true
true
public void returnsEmptyStringIfCannotProcessQuery() throws Exception { assertThat(queryProcessor.process("test"), is("")); }
public void returnsEmptyStringIfCannotProcessQuery() throws Exception { assertThat(queryProcessor.process("test"), is("I have no knowledge of that subject")); }
diff --git a/main/src/cgeo/geocaching/connector/gc/GCMap.java b/main/src/cgeo/geocaching/connector/gc/GCMap.java index be4c17b5c..97e74268d 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCMap.java +++ b/main/src/cgeo/geocaching/connector/gc/GCMap.java @@ -1,371 +1,370 @@ package cgeo.geocaching.connector.gc; i...
true
true
public static SearchResult parseMapJSON(final String data, Tile tile, Bitmap bitmap, final Strategy strategy) { final SearchResult searchResult = new SearchResult(); try { final LeastRecentlyUsedMap<String, String> nameCache = new LeastRecentlyUsedMap.LruCache<String, String>(2000); //...
public static SearchResult parseMapJSON(final String data, Tile tile, Bitmap bitmap, final Strategy strategy) { final SearchResult searchResult = new SearchResult(); try { final LeastRecentlyUsedMap<String, String> nameCache = new LeastRecentlyUsedMap.LruCache<String, String>(2000); //...
diff --git a/test-modules/functional-tests/src/test/java/org/openlmis/functional/E2EInitiateRnR.java b/test-modules/functional-tests/src/test/java/org/openlmis/functional/E2EInitiateRnR.java index d9db28a378..3b9cfd0541 100644 --- a/test-modules/functional-tests/src/test/java/org/openlmis/functional/E2EInitiateRnR.java...
true
true
public void testE2EInitiateRnR(String period,String program,String userSIC, String userMO, String password,String[] credentials) throws Exception { LoginPage loginPage=new LoginPage(testWebDriver); HomePage homePage = loginPage.loginAs(credentials[0], credentials[1]); CreateFacilityPage cr...
public void testE2EInitiateRnR(String period,String program,String userSIC, String userMO, String password,String[] credentials) throws Exception { LoginPage loginPage=new LoginPage(testWebDriver); HomePage homePage = loginPage.loginAs(credentials[0], credentials[1]); CreateFacilityPage cr...
diff --git a/android/src/com/phonegap/DroidGap.java b/android/src/com/phonegap/DroidGap.java index 62d5da1..9f0bb09 100644 --- a/android/src/com/phonegap/DroidGap.java +++ b/android/src/com/phonegap/DroidGap.java @@ -1,174 +1,175 @@ package com.phonegap; /* License (MIT) * Copyright (c) 2008 Nitobi * website: htt...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().requestFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN, WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().requestFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN, WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); ...
diff --git a/kryonet/src/com/esotericsoftware/kryonet/util/InputStreamSender.java b/kryonet/src/com/esotericsoftware/kryonet/util/InputStreamSender.java index bdf0c54..057e254 100644 --- a/kryonet/src/com/esotericsoftware/kryonet/util/InputStreamSender.java +++ b/kryonet/src/com/esotericsoftware/kryonet/util/InputStrea...
true
true
protected final Object next () { try { int total = 0; while (total < chunk.length) { int count = input.read(chunk, total, chunk.length - total); if (count < 0) { if (total == 0) return null; byte[] partial = new byte[total]; System.arraycopy(chunk, 0, partial, 0, total); return part...
protected final Object next () { try { int total = 0; while (total < chunk.length) { int count = input.read(chunk, total, chunk.length - total); if (count < 0) { if (total == 0) return null; byte[] partial = new byte[total]; System.arraycopy(chunk, 0, partial, 0, total); return next...
diff --git a/IDEtalk/tests/jetbrains/communicator/util/StringUtilTest.java b/IDEtalk/tests/jetbrains/communicator/util/StringUtilTest.java index bc8edfd346..7b63888ca3 100644 --- a/IDEtalk/tests/jetbrains/communicator/util/StringUtilTest.java +++ b/IDEtalk/tests/jetbrains/communicator/util/StringUtilTest.java @@ -1,61 ...
true
true
public void testBigConversion() throws Exception { WatchDog watchDog = new WatchDog("Xml String Convert"); StringBuffer sb = new StringBuffer(BUFLENGTH); for (int i = 0; i < BUFLENGTH >> 1; i++) { sb.append('Л'); sb.append('i'); } String s = sb.toString(); watchDog.watchAndReset...
public void testBigConversion() throws Exception { WatchDog watchDog = new WatchDog("Xml String Convert"); StringBuffer sb = new StringBuffer(BUFLENGTH); for (int i = 0; i < BUFLENGTH >> 1; i++) { sb.append("Л"); sb.append('i'); } String s = sb.toString(); watchDog.watchAndReset...
diff --git a/src/VASSAL/counters/Restricted.java b/src/VASSAL/counters/Restricted.java index 25041cf8..e32a730a 100644 --- a/src/VASSAL/counters/Restricted.java +++ b/src/VASSAL/counters/Restricted.java @@ -1,273 +1,273 @@ /* * $Id$ * * Copyright (c) 2000-2003 by Rodney Kinney * * This library is free softwa...
true
true
public boolean isRestricted() { boolean restricted = false; if (restrictByPlayer) { restricted = owningPlayer.length() > 0 && !GameModule.getUserId().equals(owningPlayer); } if (restricted && PlayerRoster.isActive() && GameModule.getGameModule().getGameState().isGameStarted()) {...
public boolean isRestricted() { boolean restricted = false; if (restrictByPlayer) { restricted = owningPlayer.length() > 0 && !GameModule.getUserId().equals(owningPlayer); } if ((restricted || !restrictByPlayer) && PlayerRoster.isActive() && GameModule.getGameModule().getGameSta...
diff --git a/src/net/sf/freecol/server/ai/StandardAIPlayer.java b/src/net/sf/freecol/server/ai/StandardAIPlayer.java index af11fb97c..665767e0e 100644 --- a/src/net/sf/freecol/server/ai/StandardAIPlayer.java +++ b/src/net/sf/freecol/server/ai/StandardAIPlayer.java @@ -1,2429 +1,2429 @@ /** * Copyright (C) 2002-2011...
true
true
private void giveNormalMissions() { logger.finest("Entering method giveNormalMissions"); // Create a datastructure for the worker wishes: java.util.Map<UnitType, ArrayList<Wish>> workerWishes = new HashMap<UnitType, ArrayList<Wish>>(); for (UnitType unitType : getAIMain(...
private void giveNormalMissions() { logger.finest("Entering method giveNormalMissions"); // Create a datastructure for the worker wishes: java.util.Map<UnitType, ArrayList<Wish>> workerWishes = new HashMap<UnitType, ArrayList<Wish>>(); for (UnitType unitType : getAIMain(...
diff --git a/src/main/java/lcmc/gui/resources/HbColocationInfo.java b/src/main/java/lcmc/gui/resources/HbColocationInfo.java index 7db10d92..37b619fe 100644 --- a/src/main/java/lcmc/gui/resources/HbColocationInfo.java +++ b/src/main/java/lcmc/gui/resources/HbColocationInfo.java @@ -1,530 +1,530 @@ /* * This file is ...
true
true
public void apply(final Host dcHost, final boolean testOnly) { final String[] params = getParametersFromXML(); final Map<String, String> attrs = new LinkedHashMap<String, String>(); boolean changed = true; for (final String param : params) { final Value value = getComboBo...
public void apply(final Host dcHost, final boolean testOnly) { final String[] params = getParametersFromXML(); final Map<String, String> attrs = new LinkedHashMap<String, String>(); boolean changed = true; for (final String param : params) { final Value value = getComboBo...
diff --git a/GAE/src/org/waterforpeople/mapping/helper/AccessPointHelper.java b/GAE/src/org/waterforpeople/mapping/helper/AccessPointHelper.java index cd9eda897..6ee9a3389 100644 --- a/GAE/src/org/waterforpeople/mapping/helper/AccessPointHelper.java +++ b/GAE/src/org/waterforpeople/mapping/helper/AccessPointHelper.java...
true
true
public static void setAccessPointField(AccessPoint ap, QuestionAnswerStore qas, SurveyAttributeMapping mapping) throws SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException { if (GEO_TYPE.equalsIgnoreCase(qas.getType())) { GeoCoordinates geoC = new GeoCoordinates().ext...
public static void setAccessPointField(AccessPoint ap, QuestionAnswerStore qas, SurveyAttributeMapping mapping) throws SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException { if (GEO_TYPE.equalsIgnoreCase(qas.getType())) { GeoCoordinates geoC = new GeoCoordinates().ext...
diff --git a/server-vertx/src/main/java/org/jboss/aerogear/simplepush/vertx/SimplePushServerHandler.java b/server-vertx/src/main/java/org/jboss/aerogear/simplepush/vertx/SimplePushServerHandler.java index deb398c..88a9ea1 100644 --- a/server-vertx/src/main/java/org/jboss/aerogear/simplepush/vertx/SimplePushServerHandle...
true
true
public void handle(final SockJSSocket sock) { sock.dataHandler(new Handler<Buffer>() { @Override public void handle(final Buffer buffer) { final MessageType messageType = JsonUtil.parseFrame(buffer.toString()); switch (messageType.getMessageType()) { ...
public void handle(final SockJSSocket sock) { sock.dataHandler(new Handler<Buffer>() { @Override public void handle(final Buffer buffer) { final MessageType messageType = JsonUtil.parseFrame(buffer.toString()); switch (messageType.getMessageType()) { ...
diff --git a/src/java/com/idega/user/data/GroupBMPBean.java b/src/java/com/idega/user/data/GroupBMPBean.java index 14be957d2..c283ab67a 100644 --- a/src/java/com/idega/user/data/GroupBMPBean.java +++ b/src/java/com/idega/user/data/GroupBMPBean.java @@ -1,1988 +1,1988 @@ package com.idega.user.data; import java.sql....
true
true
public final void initializeAttributes() { addAttribute(getIDColumnName()); addAttribute(getNameColumnName(), "Group name", true, true, "java.lang.String"); addAttribute(getGroupDescriptionColumnName(), "Description", true, true, "java.lang.String"); addAttribute(getExtraInfoColumnName(), "Extra information", ...
public final void initializeAttributes() { addAttribute(getIDColumnName()); addAttribute(getNameColumnName(), "Group name", true, true, "java.lang.String"); addAttribute(getGroupDescriptionColumnName(), "Description", true, true, "java.lang.String"); addAttribute(getExtraInfoColumnName(), "Extra information", ...
diff --git a/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/preferences/database/H2ConnectionInfo.java b/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/preferences/database/H2ConnectionInfo.java index 5cdee18b6..5f0655cb2 100644 --- a/org.eclipse.jubula.client.core/src/org/eclipse/...
true
true
public String getConnectionUrl() { StringBuilder sb = new StringBuilder(); sb.append("jdbc:h2:") //$NON-NLS-1$ .append(getLocation()) .append(";MVCC=TRUE;AUTO_SERVER=TRUE"); //$NON-NLS-1$ return sb.toString(); }
public String getConnectionUrl() { StringBuilder sb = new StringBuilder(); sb.append("jdbc:h2:") //$NON-NLS-1$ .append(getLocation()) .append(";MVCC=TRUE;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE"); //$NON-NLS-1$ return sb.toString(); }
diff --git a/src/com/upcloo/client/Manager.java b/src/com/upcloo/client/Manager.java index 12ff098..1e595a4 100644 --- a/src/com/upcloo/client/Manager.java +++ b/src/com/upcloo/client/Manager.java @@ -1,80 +1,80 @@ package com.upcloo.client; import com.upcloo.client.http.UpCloo; import com.upcloo.client.http.UpClo...
false
true
public Manager getInstance() { if (Manager.instance == null) { Manager.instance = new Manager(); //Default use UpCloo client this.setClient(new UpCloo()); } return Manager.instance; }
public static Manager getInstance() { if (Manager.instance == null) { Manager.instance = new Manager(); //Default use UpCloo client Manager.instance.setClient(new UpCloo()); } return Manager.instance; }