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/driver/GUIDriver.java b/src/driver/GUIDriver.java index f766151..50e3116 100644 --- a/src/driver/GUIDriver.java +++ b/src/driver/GUIDriver.java @@ -1,220 +1,219 @@ package driver; import java.awt.Canvas; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Grap...
true
true
public static void main(String[] args) { // Create game window... JFrame app = new JFrame(); app.setIgnoreRepaint(true); app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // Create canvas for painting... Canvas canvas = new Canvas(); canvas.setIgnoreRepaint(true); canvas.setSize(1200, 480); //...
public static void main(String[] args) { // Create game window... JFrame app = new JFrame(); app.setIgnoreRepaint(true); app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // Create canvas for painting... Canvas canvas = new Canvas(); canvas.setIgnoreRepaint(true); canvas.setSize(1200, 480); //...
diff --git a/plugins/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/internal/adapter/DataAdapterUtil.java b/plugins/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/internal/adapter/DataAdapterUtil.java index 532c07518..93952e981 100644 --- a/plugins/org.eclip...
false
true
private static void populateParameter( DataSetHandle modelDataSet, BaseDataSetDesign dteDataSet ) { //dataset parameters definition HashMap paramBindingCandidates = new HashMap( ); Iterator elmtIter = modelDataSet.parametersIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { Da...
private static void populateParameter( DataSetHandle modelDataSet, BaseDataSetDesign dteDataSet ) { //dataset parameters definition HashMap paramBindingCandidates = new HashMap( ); Iterator elmtIter = modelDataSet.parametersIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { Da...
diff --git a/source/de/anomic/http/httpc.java b/source/de/anomic/http/httpc.java index 0e26cf386..ea9b71ad4 100644 --- a/source/de/anomic/http/httpc.java +++ b/source/de/anomic/http/httpc.java @@ -1,1859 +1,1862 @@ // httpc.java // ------------------------------------- // (C) by Michael Peter Christen; mc@anomic.de ...
true
true
private void send(String method, String path, httpHeader header, boolean zipped) throws IOException { // scheduled request through request-response objects/threads // check and correct path if ((path == null) || (path.length() == 0)) path = "/"; // for debuggug: this.reques...
private void send(String method, String path, httpHeader header, boolean zipped) throws IOException { // scheduled request through request-response objects/threads // check and correct path if ((path == null) || (path.length() == 0)) path = "/"; // for debuggug: this.reques...
diff --git a/core/src/main/java/org/fourthline/cling/binding/xml/RecoveringUDA10DeviceDescriptorBinderImpl.java b/core/src/main/java/org/fourthline/cling/binding/xml/RecoveringUDA10DeviceDescriptorBinderImpl.java index d597042..deace6c 100644 --- a/core/src/main/java/org/fourthline/cling/binding/xml/RecoveringUDA10Devi...
true
true
public <D extends Device> D describe(D undescribedDevice, String descriptorXml) throws DescriptorBindingException, ValidationException { D device = null; DescriptorBindingException originalException; try { try { descriptorXml = descriptorXml.trim(); // Always tr...
public <D extends Device> D describe(D undescribedDevice, String descriptorXml) throws DescriptorBindingException, ValidationException { D device = null; DescriptorBindingException originalException; try { try { if (descriptorXml != null) descr...
diff --git a/rms/org.eclipse.ptp.rm.lml.core/src/org/eclipse/ptp/rm/lml/internal/core/model/LguiItem.java b/rms/org.eclipse.ptp.rm.lml.core/src/org/eclipse/ptp/rm/lml/internal/core/model/LguiItem.java index d82e67e89..b13c0352c 100644 --- a/rms/org.eclipse.ptp.rm.lml.core/src/org/eclipse/ptp/rm/lml/internal/core/model/...
true
true
private void updateJobData() { final Set<String> jobsInTable = new HashSet<String>(); final List<String> oidsToRemove = new ArrayList<String>(); /* * First check for jobs that are in the table and update them */ for (final InformationType information : getOverviewAccess().getInformations()) { for (fi...
private void updateJobData() { final Set<String> jobsInTable = new HashSet<String>(); final List<String> oidsToRemove = new ArrayList<String>(); /* * First check for jobs that are in the table and update them */ for (final InformationType information : getOverviewAccess().getInformations()) { for (fi...
diff --git a/src/com/flobi/floAuction/Auction.java b/src/com/flobi/floAuction/Auction.java index 9ebf60e..c475c6f 100644 --- a/src/com/flobi/floAuction/Auction.java +++ b/src/com/flobi/floAuction/Auction.java @@ -1,392 +1,393 @@ package com.flobi.floAuction; import org.bukkit.command.CommandSender; import org.bukk...
true
true
public void Bid(Player bidder, String[] inputArgs) { AuctionBid bid = new AuctionBid(this, bidder, inputArgs); if (bid.getError() != null) { failBid(bid, bid.getError()); return; } if (ownerName.equals(bidder.getName()) && !floAuction.allowBidOnOwn) { failBid(bid, "bid-fail-is-auction-owner"); retu...
public void Bid(Player bidder, String[] inputArgs) { AuctionBid bid = new AuctionBid(this, bidder, inputArgs); if (bid.getError() != null) { failBid(bid, bid.getError()); return; } if (ownerName.equals(bidder.getName()) && !floAuction.allowBidOnOwn) { failBid(bid, "bid-fail-is-auction-owner"); retu...
diff --git a/ws-impls/ws-java-netty/src/main/java/perf/test/netty/client/NettyClientPool.java b/ws-impls/ws-java-netty/src/main/java/perf/test/netty/client/NettyClientPool.java index 04a659d..a006386 100644 --- a/ws-impls/ws-java-netty/src/main/java/perf/test/netty/client/NettyClientPool.java +++ b/ws-impls/ws-java-net...
true
true
public void sendGetRequest(URI uri, ClientCompletionListener completionListener) { if (shutdown) { logger.warn("Netty client pool is shutting down."); throw new RejectedExecutionException("Netty client pool is shutting down."); } final Request newRequest = new Request...
public void sendGetRequest(URI uri, ClientCompletionListener completionListener) { if (shutdown) { logger.warn("Netty client pool is shutting down."); throw new RejectedExecutionException("Netty client pool is shutting down."); } final Request newRequest = new Request...
diff --git a/src/main/java/net/uvavru/maven/plugins/jettyconf/internals/AbstractJettyConfMojo.java b/src/main/java/net/uvavru/maven/plugins/jettyconf/internals/AbstractJettyConfMojo.java index 7670067..2f7172c 100755 --- a/src/main/java/net/uvavru/maven/plugins/jettyconf/internals/AbstractJettyConfMojo.java +++ b/src/m...
true
true
public JettyFiles filterAndTranslateWebAppArtifacts(ArtifactCandidates artifacts) throws MojoExecutionException { JettyFiles webAppFiles = filterAndTranslateArtifacts(artifacts, Pattern.compile(webAppMatchArtifactPattern), webAppPatterns, webAppReplacements); Pattern webAppAlternativePattern = null; if (webAp...
public JettyFiles filterAndTranslateWebAppArtifacts(ArtifactCandidates artifacts) throws MojoExecutionException { JettyFiles webAppFiles = filterAndTranslateArtifacts(artifacts, Pattern.compile(webAppMatchArtifactPattern), webAppPatterns, webAppReplacements); Pattern webAppAlternativePattern = null; if (webAp...
diff --git a/mes-plugins/mes-plugins-samples/src/main/java/com/qcadoo/mes/samples/loader/AbstractSamplesLoader.java b/mes-plugins/mes-plugins-samples/src/main/java/com/qcadoo/mes/samples/loader/AbstractSamplesLoader.java index 333e258e8d..b150efe05f 100644 --- a/mes-plugins/mes-plugins-samples/src/main/java/com/qcadoo/...
true
true
protected void addParameters(final Map<String, String> values) { LOG.info("Adding parameters"); Entity params = parameterService.getParameter(); Entity currency = dataDefinitionService .get(SamplesConstants.BASIC_PLUGIN_IDENTIFIER, SamplesConstants.BASIC_MODEL_CURRENCY).find...
protected void addParameters(final Map<String, String> values) { LOG.info("Adding parameters"); Entity params = parameterService.getParameter(); Entity currency = dataDefinitionService .get(SamplesConstants.BASIC_PLUGIN_IDENTIFIER, SamplesConstants.BASIC_MODEL_CURRENCY).find...
diff --git a/modules/dCache/org/dcache/auth/RecordConvert.java b/modules/dCache/org/dcache/auth/RecordConvert.java index 39c305eeb6..d0008e33bf 100644 --- a/modules/dCache/org/dcache/auth/RecordConvert.java +++ b/modules/dCache/org/dcache/auth/RecordConvert.java @@ -1,138 +1,139 @@ package org.dcache.auth; import g...
true
true
public static AuthorizationRecord gPlazmaToAuthorizationRecord(Map<NameRolePair, gPlazmaAuthorizationRecord> user_auths) { AuthorizationRecord authrec = new AuthorizationRecord(); gPlazmaAuthorizationRecord gauthrec; Iterator<NameRolePair> nameRolesIter = user_auths.keySet().itera...
public static AuthorizationRecord gPlazmaToAuthorizationRecord(Map<NameRolePair, gPlazmaAuthorizationRecord> user_auths) { AuthorizationRecord authrec = new AuthorizationRecord(); gPlazmaAuthorizationRecord gauthrec; Iterator<NameRolePair> nameRolesIter = user_auths.keySet().itera...
diff --git a/src/sketch/dyn/debug/ScDebugRun.java b/src/sketch/dyn/debug/ScDebugRun.java index 85b22f0..a692ad2 100644 --- a/src/sketch/dyn/debug/ScDebugRun.java +++ b/src/sketch/dyn/debug/ScDebugRun.java @@ -1,76 +1,77 @@ package sketch.dyn.debug; import java.util.Vector; import sketch.dyn.ScDynamicSketch; imp...
true
true
public final void run() { sketch.solution_cost = 0; sketch.enable_debug(); assert_info = null; succeeded = false; trycatch: try { for (ScFixedInputConf counterexample : all_counterexamples) { counterexample.set_input_for_sketch(sketch); ...
public final void run() { run_init(); sketch.solution_cost = 0; sketch.enable_debug(); assert_info = null; succeeded = false; trycatch: try { for (ScFixedInputConf counterexample : all_counterexamples) { counterexample.set_input_for_sketch(...
diff --git a/beam-globalbedo-upscaling/src/main/java/org/esa/beam/globalbedo/upscaling/GlobalbedoLevel3UpscaleAlbedo.java b/beam-globalbedo-upscaling/src/main/java/org/esa/beam/globalbedo/upscaling/GlobalbedoLevel3UpscaleAlbedo.java index e0cf185d..be320bfd 100644 --- a/beam-globalbedo-upscaling/src/main/java/org/esa/b...
true
true
public void initialize() throws OperatorException { refTile = findRefTile(); if (refTile == null || !refTile.exists()) { throw new OperatorException("No BRDF files for mosaicing found."); } ProductReader productReader = ProductIO.getProductReader("GLOBALBEDO-L3-MOSAIC")...
public void initialize() throws OperatorException { refTile = findRefTile(); if (refTile == null || !refTile.exists()) { throw new OperatorException("No BRDF files for mosaicing found."); } ProductReader productReader = ProductIO.getProductReader("GLOBALBEDO-L3-MOSAIC")...
diff --git a/RefereePkg/src/model/TaskTimer.java b/RefereePkg/src/model/TaskTimer.java index 38d0023..d52855f 100644 --- a/RefereePkg/src/model/TaskTimer.java +++ b/RefereePkg/src/model/TaskTimer.java @@ -1,202 +1,202 @@ package model; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import ja...
true
true
public void startNewTimer(long configTime, long runTime) { if (timerStop) { this.configTime = configTime * 1000; this.runTime = runTime * 1000; usedTime = 0; timer = new Timer(); configTimeRunning = true; runTimeRunning = false; inTime = true; timerStop = false; startTime = System.current...
public void startNewTimer(long configTime, long runTime) { if (timerStop) { this.configTime = configTime * 1000; this.runTime = runTime * 1000; usedTime = 0; timer = new Timer(); configTimeRunning = true; runTimeRunning = false; inTime = true; timerStop = false; startTime = System.current...
diff --git a/src/edu/cmu/cs/diamond/pathfind/DjangoAnnotationStore.java b/src/edu/cmu/cs/diamond/pathfind/DjangoAnnotationStore.java index 3fcfc38..6e614d4 100644 --- a/src/edu/cmu/cs/diamond/pathfind/DjangoAnnotationStore.java +++ b/src/edu/cmu/cs/diamond/pathfind/DjangoAnnotationStore.java @@ -1,301 +1,301 @@ /* *...
true
true
public void saveAnnotations(String qh1, SelectionListModel ssModel) throws IOException { // convert to jaxb RegionList rl = new RegionList(); List<Region> regions = rl.getRegion(); for (Annotation a : ssModel) { System.out.println("saving annotation: " + a); ...
public void saveAnnotations(String qh1, SelectionListModel ssModel) throws IOException { // convert to jaxb RegionList rl = new RegionList(); List<Region> regions = rl.getRegion(); for (Annotation a : ssModel) { System.out.println("saving annotation: " + a); ...
diff --git a/plugins/SPIMAcquisition/spim/progacq/OMETIFFHandler.java b/plugins/SPIMAcquisition/spim/progacq/OMETIFFHandler.java index a1d104726..cd421c38d 100644 --- a/plugins/SPIMAcquisition/spim/progacq/OMETIFFHandler.java +++ b/plugins/SPIMAcquisition/spim/progacq/OMETIFFHandler.java @@ -1,198 +1,198 @@ package sp...
true
true
public OMETIFFHandler(CMMCore iCore, File outDir, String xyDev, String cDev, String zDev, String tDev, AcqRow[] acqRows, int iTimeSteps, double iDeltaT) { if(outDir == null || !outDir.exists() || !outDir.isDirectory()) throw new IllegalArgumentException("Null path specified: " + outDir.toString()); imag...
public OMETIFFHandler(CMMCore iCore, File outDir, String xyDev, String cDev, String zDev, String tDev, AcqRow[] acqRows, int iTimeSteps, double iDeltaT) { if(outDir == null || !outDir.exists() || !outDir.isDirectory()) throw new IllegalArgumentException("Null path specified: " + outDir.toString()); imag...
diff --git a/src/net/grinder/console/swingui/Resources.java b/src/net/grinder/console/swingui/Resources.java index 3352e711..03726099 100755 --- a/src/net/grinder/console/swingui/Resources.java +++ b/src/net/grinder/console/swingui/Resources.java @@ -1,171 +1,171 @@ // Copyright (C) 2000 Paco Gomez // Copyright (C) 2...
true
true
public String getStringFromFile(String key, boolean warnIfMissing) { final URL resource = get(key, warnIfMissing); if (resource != null) { try { final Reader in = new BufferedReader( new InputStreamReader(resource.openStream())); final StringWriter out = new StringWriter(); int c; wh...
public String getStringFromFile(String key, boolean warnIfMissing) { final URL resource = get(key, warnIfMissing); if (resource != null) { try { final Reader in = new BufferedReader( new InputStreamReader(resource.openStream())); final StringWriter out = new StringWriter(); int c; wh...
diff --git a/server/src/test/java/org/apache/abdera/protocol/server/test/customer/CustomerAdapterTest.java b/server/src/test/java/org/apache/abdera/protocol/server/test/customer/CustomerAdapterTest.java index 8d547e55..5ddd9ceb 100755 --- a/server/src/test/java/org/apache/abdera/protocol/server/test/customer/CustomerAd...
true
true
private void runTests(String base) throws IOException { Abdera abdera = new Abdera(); Factory factory = abdera.getFactory(); AbderaClient client = new AbderaClient(abdera); String uri = "http://localhost:9002" + base; // Testing of entry creation IRI colUri = new IRI(uri).resolve("custo...
private void runTests(String base) throws IOException { Abdera abdera = new Abdera(); Factory factory = abdera.getFactory(); AbderaClient client = new AbderaClient(abdera); String uri = "http://localhost:9002" + base; // Testing of entry creation IRI colUri = new IRI(uri).resolve("custo...
diff --git a/src/net/LobbyManager.java b/src/net/LobbyManager.java index 945ce67..ee72ba7 100644 --- a/src/net/LobbyManager.java +++ b/src/net/LobbyManager.java @@ -1,218 +1,219 @@ package src.net; import java.io.IOException; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.Arr...
true
true
private void initializeClientListener() { client.addListener(new Listener() { public void received(Connection connection, Object object) { if (object instanceof GameNegotiationMessage) { GameNegotiationMessage m = (GameNegotiationMessage)object; switch (m.type) { case GAME_DISCOVER_RESPO...
private void initializeClientListener() { client.addListener(new Listener() { public void received(Connection connection, Object object) { if (object instanceof GameNegotiationMessage) { GameNegotiationMessage m = (GameNegotiationMessage)object; switch (m.type) { case GAME_DISCOVER_RESPO...
diff --git a/jboss-interceptor-core/src/main/java/org/jboss/interceptor/proxy/SimpleInterceptionChain.java b/jboss-interceptor-core/src/main/java/org/jboss/interceptor/proxy/SimpleInterceptionChain.java index f4ac45f..bbbe967 100644 --- a/jboss-interceptor-core/src/main/java/org/jboss/interceptor/proxy/SimpleIntercepti...
true
true
public Object invokeNextInterceptor(InvocationContext invocationContext) throws Throwable { try { if (hasNextInterceptor()) { InterceptorInvocation.InterceptorMethodInvocation nextInterceptorMethodInvocation = interceptorMethodInvocations.get(currentPosition++); ...
public Object invokeNextInterceptor(InvocationContext invocationContext) throws Throwable { try { if (hasNextInterceptor()) { InterceptorInvocation.InterceptorMethodInvocation nextInterceptorMethodInvocation = interceptorMethodInvocations.get(currentPosition++); ...
diff --git a/src/main/java/com/couchbase/client/CouchbaseClient.java b/src/main/java/com/couchbase/client/CouchbaseClient.java index ca17f719..72793f87 100644 --- a/src/main/java/com/couchbase/client/CouchbaseClient.java +++ b/src/main/java/com/couchbase/client/CouchbaseClient.java @@ -1,2546 +1,2543 @@ /** * Copyri...
true
true
public void observePoll(String key, long cas, PersistTo persist, ReplicateTo replicate, boolean isDelete) { if(persist == null) { persist = PersistTo.ZERO; } if(replicate == null) { replicate = ReplicateTo.ZERO; } int persistReplica = persist.getValue() > 0 ? persist.getValue() ...
public void observePoll(String key, long cas, PersistTo persist, ReplicateTo replicate, boolean isDelete) { if(persist == null) { persist = PersistTo.ZERO; } if(replicate == null) { replicate = ReplicateTo.ZERO; } int persistReplica = persist.getValue() > 0 ? persist.getValue() ...
diff --git a/microRTS/src/ai/cs4730/ArmyManager.java b/microRTS/src/ai/cs4730/ArmyManager.java index 1f26c54..44e2f48 100755 --- a/microRTS/src/ai/cs4730/ArmyManager.java +++ b/microRTS/src/ai/cs4730/ArmyManager.java @@ -1,117 +1,120 @@ package ai.cs4730; import java.util.ArrayList; import rts.units.Unit; impor...
true
true
@Override public void update(){ for(Unit unit : ai.gameState.getOtherUnits()){ if(unit.isBuilding()){ BuildingUnitController bc = new BuildingUnitController(unit, ai); if(!ai.enemyBuildings.contains(bc)){ ai.enemyBuildings.add(bc); if(AIController....
@Override public void update(){ for(Unit unit : ai.gameState.getOtherUnits()){ if(unit.isBuilding()){ BuildingUnitController bc = new BuildingUnitController(unit, ai); if(!ai.enemyBuildings.contains(bc)){ ai.enemyBuildings.add(bc); if(AIController....
diff --git a/src/btwmod/livemap/MapImage.java b/src/btwmod/livemap/MapImage.java index 2d8ea28..135e5e6 100644 --- a/src/btwmod/livemap/MapImage.java +++ b/src/btwmod/livemap/MapImage.java @@ -1,307 +1,307 @@ package btwmod.livemap; import java.awt.Color; import java.awt.image.BufferedImage; import java.io.File; ...
false
true
public void renderChunk(Chunk chunk) { if (!isLoaded()) return; MapPos pos = new MapPos(chunk, mapLayer); int increment = (int)Math.max(1.0F, 1.0F / mapLayer.pixelSize); PixelColor colorPixel = new PixelColor(); PixelColor heightPixel = new PixelColor(); byte[] biomes = chunk.getBiomeArray(); ...
public void renderChunk(Chunk chunk) { if (!isLoaded()) return; MapPos pos = new MapPos(chunk, mapLayer); int increment = (int)Math.max(1.0F, 1.0F / mapLayer.pixelSize); PixelColor colorPixel = new PixelColor(); PixelColor heightPixel = new PixelColor(); byte[] biomes = chunk.getBiomeArray(); ...
diff --git a/software/base/src/test/java/brooklyn/entity/software/mysql/DynamicToyMySqlEntityBuilder.java b/software/base/src/test/java/brooklyn/entity/software/mysql/DynamicToyMySqlEntityBuilder.java index c84b308ae..f20916a81 100644 --- a/software/base/src/test/java/brooklyn/entity/software/mysql/DynamicToyMySqlEntit...
true
true
public void apply(final EntityLocal entity) { new MachineLifecycleEffectorTasks() { @Override protected String startProcessesAtMachine(Supplier<MachineLocation> machineS) { DynamicTasks.queue( SshEffectorTasks.ssh( ...
public void apply(final EntityLocal entity) { new MachineLifecycleEffectorTasks() { @Override protected String startProcessesAtMachine(Supplier<MachineLocation> machineS) { DynamicTasks.queue( SshEffectorTasks.ssh( ...
diff --git a/src/main/java/org/concord/energy3d/logger/TimeSeriesLogger.java b/src/main/java/org/concord/energy3d/logger/TimeSeriesLogger.java index fe2fee21..f526e94f 100644 --- a/src/main/java/org/concord/energy3d/logger/TimeSeriesLogger.java +++ b/src/main/java/org/concord/energy3d/logger/TimeSeriesLogger.java @@ -1...
false
true
private void log() { String timestamp = new SimpleDateFormat("yyyy-MM-dd" + space + "HH:mm:ss").format(Calendar.getInstance().getTime()); URL url = Scene.getURL(); if (url == null) // no logging if not using a template return; String filename = url == null ? null : new File(url.getFile()).getName(); Strin...
private void log() { String timestamp = new SimpleDateFormat("yyyy-MM-dd" + space + "HH:mm:ss").format(Calendar.getInstance().getTime()); URL url = Scene.getURL(); if (url == null) // no logging if not using a template return; String filename = url == null ? null : new File(url.getFile()).getName(); Strin...
diff --git a/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ThreadedRefreshHandler.java b/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ThreadedRefreshHandler.java index d88e95fc9..d82fc3f87 100644 --- a/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ThreadedRefreshHandler.java +++ b/htmlunit/src/mai...
true
true
public void handleRefresh(final Page page, final URL url, final int seconds) { final Thread thread = new Thread("ThreadedRefreshHandler Thread") { @Override public void run() { try { new WaitingRefreshHandler().handleRefresh(page, url, seconds); ...
public void handleRefresh(final Page page, final URL url, final int seconds) { final Thread thread = new Thread("ThreadedRefreshHandler Thread") { @Override public void run() { try { new WaitingRefreshHandler().handleRefresh(page, url, seconds); ...
diff --git a/maven-plugin-testing-tools/src/main/java/org/apache/maven/shared/test/plugin/BuildTool.java b/maven-plugin-testing-tools/src/main/java/org/apache/maven/shared/test/plugin/BuildTool.java index 1bb7307..b3acf81 100644 --- a/maven-plugin-testing-tools/src/main/java/org/apache/maven/shared/test/plugin/BuildToo...
true
true
public void consumeLine( String line ) { if ( writer == null ) { try { writer = new FileWriter( output ); } catch ( IOException e ) { throw new IllegalStateExce...
public void consumeLine( String line ) { if ( writer == null ) { try { output.getParentFile().mkdirs(); writer = new FileWriter( output ); } catch ( IOException e ) ...
diff --git a/nio-impl/src/main/java/org/xnio/nio/NioXnioWorker.java b/nio-impl/src/main/java/org/xnio/nio/NioXnioWorker.java index 1b775658..16e3c3d6 100644 --- a/nio-impl/src/main/java/org/xnio/nio/NioXnioWorker.java +++ b/nio-impl/src/main/java/org/xnio/nio/NioXnioWorker.java @@ -1,307 +1,307 @@ /* * JBoss, Home o...
true
true
NioXnioWorker(final NioXnio xnio, final ThreadGroup threadGroup, final OptionMap optionMap, final Runnable terminationTask) throws IOException { super(xnio, threadGroup, optionMap, terminationTask); final int threadCount; if (optionMap.contains(Options.WORKER_IO_THREADS)) { threa...
NioXnioWorker(final NioXnio xnio, final ThreadGroup threadGroup, final OptionMap optionMap, final Runnable terminationTask) throws IOException { super(xnio, threadGroup, optionMap, terminationTask); final int threadCount; if (optionMap.contains(Options.WORKER_IO_THREADS)) { threa...
diff --git a/src/jpcsp/graphics/VideoEngine.java b/src/jpcsp/graphics/VideoEngine.java index 21f96ea1..070e782e 100644 --- a/src/jpcsp/graphics/VideoEngine.java +++ b/src/jpcsp/graphics/VideoEngine.java @@ -1,6257 +1,6262 @@ /* Parts based on soywiz's pspemulator. This file is part of jpcsp. Jpcsp is free softw...
false
true
public void executeCommand(int instruction) { int normalArgument = intArgument(instruction); // Compute floatArgument only on demand, most commands do not use it. //float floatArgument = floatArgument(instruction); int command = command(instruction); currentCMDValues.put(com...
public void executeCommand(int instruction) { int normalArgument = intArgument(instruction); // Compute floatArgument only on demand, most commands do not use it. //float floatArgument = floatArgument(instruction); int command = command(instruction); currentCMDValues.put(com...
diff --git a/launchpad/base/src/main/java/org/apache/sling/launchpad/base/webapp/SlingServletDelegate.java b/launchpad/base/src/main/java/org/apache/sling/launchpad/base/webapp/SlingServletDelegate.java index 6a9fb50571..025cf755d8 100644 --- a/launchpad/base/src/main/java/org/apache/sling/launchpad/base/webapp/SlingSe...
true
true
public final void init() throws ServletException { // temporary holders control final setup and ensure proper // disposal in case of setup errors SlingBridge tmpSling = null; Servlet tmpDelegatee = null; try { log("Starting Sling in " + slingHome); ...
public final void init() throws ServletException { // temporary holders control final setup and ensure proper // disposal in case of setup errors SlingBridge tmpSling = null; Servlet tmpDelegatee = null; try { log("Starting Sling in " + slingHome); ...
diff --git a/ttt2/src/java/capstone/server/util/GameRecorder.java b/ttt2/src/java/capstone/server/util/GameRecorder.java index 796e1a2..66027e4 100644 --- a/ttt2/src/java/capstone/server/util/GameRecorder.java +++ b/ttt2/src/java/capstone/server/util/GameRecorder.java @@ -1,62 +1,71 @@ /* * To change this template, ...
false
true
public static void record(String gameID, String player, String coords) { if (!gameIDs.containsKey(player)) { gameIDs.put(player, new ArrayList<String>()); } if (gameIDs.get(player).indexOf(gameID) == -1) { GameRecord game = new GameRecord(); game.putCoord...
public static void record(String gameID, String player, String coords) { if (!gameIDs.containsKey(player)) { gameIDs.put(player, new ArrayList<String>()); //gameIDs.get(player).add(gameID); } if (gameIDs.get(player).indexOf(gameID) == -1) { GameRecord gam...
diff --git a/core/src/main/java/org/zenoss/zep/impl/HeartbeatProcessorImpl.java b/core/src/main/java/org/zenoss/zep/impl/HeartbeatProcessorImpl.java index f95c710..4b5bfd5 100644 --- a/core/src/main/java/org/zenoss/zep/impl/HeartbeatProcessorImpl.java +++ b/core/src/main/java/org/zenoss/zep/impl/HeartbeatProcessorImpl....
false
true
public void sendHeartbeatEvents() throws ZepException { final Set<Entry<String,String>> currentHeartbeatEvents = getCurrentHeartbeatEvents(); final long now = System.currentTimeMillis(); final List<DaemonHeartbeat> heartbeats = this.heartbeatDao.findAll(); for (DaemonHeartbe...
public void sendHeartbeatEvents() throws ZepException { final Set<Entry<String,String>> currentHeartbeatEvents = getCurrentHeartbeatEvents(); final long now = System.currentTimeMillis(); final List<DaemonHeartbeat> heartbeats = this.heartbeatDao.findAll(); for (DaemonHeartbe...
diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 0daf00c5d..01997de1b 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -1,7977 +1,7981 @@ /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* Part of ...
false
true
static public void main(String args[]) { // Disable abyssmally slow Sun renderer on OS X 10.5. System.setProperty("apple.awt.graphics.UseQuartz", "true"); if (args.length < 1) { System.err.println("Usage: PApplet <appletname>"); System.err.println("For additional options, " + ...
static public void main(String args[]) { // Disable abyssmally slow Sun renderer on OS X 10.5. if (platform == MACOSX) { // Only run this on OS X otherwise it can cause a permissions error. // http://dev.processing.org/bugs/show_bug.cgi?id=976 System.setProperty("apple.awt.graphics.UseQuartz...
diff --git a/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISButtonListener.java b/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISButtonListener.java index 04fe65de4..d099a7bb0 100644 --- a/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISButtonListener.java +++ b/src/main/java/me/eccentric_nz/TARDIS/lis...
true
true
public void onButtonInteract(PlayerInteractEvent event) { final Player player = event.getPlayer(); Block block = event.getClickedBlock(); if (block != null) { Material blockType = block.getType(); Action action = event.getAction(); if (action == Action.RIG...
public void onButtonInteract(PlayerInteractEvent event) { final Player player = event.getPlayer(); Block block = event.getClickedBlock(); if (block != null) { Material blockType = block.getType(); Action action = event.getAction(); if (action == Action.RIG...
diff --git a/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wrappers/SchemaSorter.java b/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wrappers/SchemaSorter.java index 179e791fa..fdabf1b0a 100644 --- a/plugins/schemaeditor/src/main/java/org/apache/dir...
true
true
public int compare( TreeNode o1, TreeNode o2 ) { if ( ( o1 instanceof SchemaWrapper ) && ( o2 instanceof SchemaWrapper ) ) { Schema s1 = ( ( SchemaWrapper ) o1 ).getSchema(); Schema s2 = ( ( SchemaWrapper ) o2 ).getSchema(); return s1.getSchemaName().compareT...
public int compare( TreeNode o1, TreeNode o2 ) { if ( ( o1 instanceof SchemaWrapper ) && ( o2 instanceof SchemaWrapper ) ) { Schema s1 = ( ( SchemaWrapper ) o1 ).getSchema(); Schema s2 = ( ( SchemaWrapper ) o2 ).getSchema(); if ( ( s1 != null ) && ( s2 != nul...
diff --git a/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java b/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java index 9ffc7d0a2..8ec440500 100644 --- a/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java +++ b/java/src/com/android/inputmethod/latin/BinaryD...
true
true
private static AssetFileAddress cacheWordList(final String id, final String locale, final ContentResolver resolver, final Context context) { final int COMPRESSED_CRYPTED_COMPRESSED = 0; final int CRYPTED_COMPRESSED = 1; final int COMPRESSED_CRYPTED = 2; final int COMPRES...
private static AssetFileAddress cacheWordList(final String id, final String locale, final ContentResolver resolver, final Context context) { final int COMPRESSED_CRYPTED_COMPRESSED = 0; final int CRYPTED_COMPRESSED = 1; final int COMPRESSED_CRYPTED = 2; final int COMPRES...
diff --git a/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceUnitMojo.java b/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceUnitMojo.java index 879a6f971..27a04b5ae 100644 --- a/tooling/jbi-maven-plugin/src/main/java/org/apache/s...
true
true
private void createUnpackedInstaller() throws JbiPluginException { if (!workDirectory.isDirectory()) { if (!workDirectory.mkdirs()) { throw new JbiPluginException( "Unable to create work directory: " + workDirectory); } } try { FileUtils.copyDirectory(serviceUnitLocation, workDirectory); }...
private void createUnpackedInstaller() throws JbiPluginException { if (!workDirectory.isDirectory()) { if (!workDirectory.mkdirs()) { throw new JbiPluginException( "Unable to create work directory: " + workDirectory); } } try { FileUtils.copyDirectoryStructure(serviceUnitLocation, workDirect...
diff --git a/src/org/mdonoughe/JGitDescribeTask.java b/src/org/mdonoughe/JGitDescribeTask.java index 3351009..5138029 100644 --- a/src/org/mdonoughe/JGitDescribeTask.java +++ b/src/org/mdonoughe/JGitDescribeTask.java @@ -1,209 +1,207 @@ package org.mdonoughe; import java.io.File; import java.io.IOException; impor...
false
true
public void execute() throws BuildException { if(property == null) { log("\"property\" attribute must be set!", Project.MSG_ERR); return; } if(!dir.exists()) { log("directory " + dir + " does not exist", Project.MSG_ERR); return; } Repository r = null; try { ...
public void execute() throws BuildException { if(property == null) { throw new BuildException("\"property\" attribute must be set!"); } if(!dir.exists()) { throw new BuildException("directory " + dir + " does not exist"); } Repository r = null; try { r = new Repository(...
diff --git a/BitMusic/bitmusic/network/message/MessageSendSongFile.java b/BitMusic/bitmusic/network/message/MessageSendSongFile.java index d1d571b..69f4359 100644 --- a/BitMusic/bitmusic/network/message/MessageSendSongFile.java +++ b/BitMusic/bitmusic/network/message/MessageSendSongFile.java @@ -1,163 +1,164 @@ /* *...
true
true
public void treatment() { try { /* If temporary is set to false, it means the file should be read, if it is set to true, the file should be saved on the hard drive. */ String pathFile; if (temporary) { pathFile = Music...
public void treatment() { try { /* If temporary is set to false, it means the file should be read, if it is set to true, the file should be saved on the hard drive. */ String pathFile; if (temporary) { pathFile = Music...
diff --git a/web-core/src/main/java/com/stratelia/webactiv/util/viewGenerator/html/buttonPanes/ButtonPaneWA2.java b/web-core/src/main/java/com/stratelia/webactiv/util/viewGenerator/html/buttonPanes/ButtonPaneWA2.java index 0c2a7b364d..ea539e9ca1 100644 --- a/web-core/src/main/java/com/stratelia/webactiv/util/viewGenera...
false
true
public String horizontalPrint() { StringBuilder result = new StringBuilder(); List<Button> buttons = getButtons(); result.append("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>"); result.append("<td width=\"100\">&nbsp;</td>"); if (buttons.size() > 0) { result.append("<td>"); ...
public String horizontalPrint() { StringBuilder result = new StringBuilder(); List<Button> buttons = getButtons(); result.append("<div class=\"buttonPane\">"); result.append("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>"); result.append("<td width=\"100\">&nbsp;</td>"); if (bu...
diff --git a/plugins/org.eclipse.emf.compare.ui/src/org/eclipse/emf/compare/ui/editor/ModelCompareEditorLauncher.java b/plugins/org.eclipse.emf.compare.ui/src/org/eclipse/emf/compare/ui/editor/ModelCompareEditorLauncher.java index c131f2ca8..86ad9288f 100644 --- a/plugins/org.eclipse.emf.compare.ui/src/org/eclipse/emf/...
true
true
public void open(IPath file) { try { final EObject snapshot = ModelUtils.load(file.toFile(), new ResourceSetImpl()); if (snapshot instanceof ModelInputSnapshot) CompareUI.openCompareEditor(new ModelCompareEditorInput((ModelInputSnapshot)snapshot)); } catch (IOException e) { // Fichier non lisible a...
public void open(IPath file) { try { final EObject snapshot = ModelUtils.load(file.toFile(), new ResourceSetImpl()); if (snapshot instanceof ModelInputSnapshot) CompareUI.openCompareEditor(new ModelCompareEditorInput((ModelInputSnapshot)snapshot)); } catch (IOException e) { // file couldn't be read ...
diff --git a/libraries/emulatorview/src/jackpal/androidterm/emulatorview/TermKeyListener.java b/libraries/emulatorview/src/jackpal/androidterm/emulatorview/TermKeyListener.java index 9d6ed1e..e849a6c 100644 --- a/libraries/emulatorview/src/jackpal/androidterm/emulatorview/TermKeyListener.java +++ b/libraries/emulatorvi...
true
true
public void keyDown(int keyCode, KeyEvent event, boolean appMode, boolean allowToggle) throws IOException { if (handleKeyCode(keyCode, appMode)) { return; } int result = -1; boolean chordedCtrl = false; boolean setHighBit = false; switch (keyCo...
public void keyDown(int keyCode, KeyEvent event, boolean appMode, boolean allowToggle) throws IOException { if (handleKeyCode(keyCode, appMode)) { return; } int result = -1; boolean chordedCtrl = false; boolean setHighBit = false; switch (keyCo...
diff --git a/src/test/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationPreCheckoutTest.java b/src/test/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationPreCheckoutTest.java index a8a41da..2fbd69b 100644 --- a/src/test/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegra...
true
true
public void testShouldCreateInstance() throws Exception { Constructor <?> c = PretestedIntegrationPreCheckout.class .getConstructor(String.class); Object inst = c.newInstance(); assertNotNull(inst); }
public void testShouldCreateInstance() throws Exception { Constructor <?> c = PretestedIntegrationPreCheckout.class .getConstructor(); Object inst = c.newInstance(); assertNotNull(inst); }
diff --git a/src/main/java/org/blitzortung/android/data/provider/BlitzortungHttpDataProvider.java b/src/main/java/org/blitzortung/android/data/provider/BlitzortungHttpDataProvider.java index 3b84f84..eeeab36 100644 --- a/src/main/java/org/blitzortung/android/data/provider/BlitzortungHttpDataProvider.java +++ b/src/main...
false
true
public List<AbstractStroke> getStrokes(int timeInterval, int intervalOffset, int region) { List<AbstractStroke> strokes = new ArrayList<AbstractStroke>(); if (username != null && username.length() != 0 && password != null && password.length() != 0) { try { BufferedReader reader = readFromUrl(Type.STRIKES...
public List<AbstractStroke> getStrokes(int timeInterval, int intervalOffset, int region) { List<AbstractStroke> strokes = new ArrayList<AbstractStroke>(); if (username != null && username.length() != 0 && password != null && password.length() != 0) { try { long startTime = System.currentTimeM...
diff --git a/MODSRC/vazkii/tinkerer/common/research/ModRecipes.java b/MODSRC/vazkii/tinkerer/common/research/ModRecipes.java index f1e58644..d31612a0 100644 --- a/MODSRC/vazkii/tinkerer/common/research/ModRecipes.java +++ b/MODSRC/vazkii/tinkerer/common/research/ModRecipes.java @@ -1,268 +1,268 @@ /** * This class w...
true
true
private static void initArcaneRecipes() { registerResearchItem(LibResearch.KEY_INTERFACE, LibResearch.KEY_INTERFACE, new ItemStack(ModBlocks.interfase), new AspectList().add(Aspect.ORDER, 12).add(Aspect.ENTROPY, 16), "BRB", "LEL", "BRB", 'B', new ItemStack(ConfigBlocks.blockCosmeticSolid, 1, 6), 'E', new...
private static void initArcaneRecipes() { registerResearchItem(LibResearch.KEY_INTERFACE, LibResearch.KEY_INTERFACE, new ItemStack(ModBlocks.interfase), new AspectList().add(Aspect.ORDER, 12).add(Aspect.ENTROPY, 16), "BRB", "LEL", "BRB", 'B', new ItemStack(ConfigBlocks.blockCosmeticSolid, 1, 6), 'E', new...
diff --git a/src/org/joval/scap/oval/adapter/linux/DpkginfoAdapter.java b/src/org/joval/scap/oval/adapter/linux/DpkginfoAdapter.java index 085674a6..084f7bc8 100755 --- a/src/org/joval/scap/oval/adapter/linux/DpkginfoAdapter.java +++ b/src/org/joval/scap/oval/adapter/linux/DpkginfoAdapter.java @@ -1,209 +1,206 @@ // C...
true
true
private DpkginfoItem parsePackage(String line) { StringTokenizer tok = new StringTokenizer(line); if (tok.countTokens() == 3) { DpkginfoItem item = Factories.sc.linux.createDpkginfoItem(); EntityItemStringType nameType = Factories.sc.core.createEntityItemStringType(); nameType.setDatatype(SimpleDa...
private DpkginfoItem parsePackage(String line) { StringTokenizer tok = new StringTokenizer(line); if (tok.countTokens() == 3) { DpkginfoItem item = Factories.sc.linux.createDpkginfoItem(); EntityItemStringType nameType = Factories.sc.core.createEntityItemStringType(); nameType.setDatatype(SimpleDa...
diff --git a/bundles/binding/org.openhab.binding.http/src/main/java/org/openhab/binding/http/internal/HttpBinding.java b/bundles/binding/org.openhab.binding.http/src/main/java/org/openhab/binding/http/internal/HttpBinding.java index 8d4e94f2..da057486 100644 --- a/bundles/binding/org.openhab.binding.http/src/main/java/...
true
true
public void execute() { for (HttpBindingProvider provider : providers) { for (String itemName : provider.getInBindingItemNames()) { String url = provider.getUrl(itemName); url = String.format(url, Calendar.getInstance().getTime()); Properties headers = provider.getHttpHeaders(itemName); i...
public void execute() { for (HttpBindingProvider provider : providers) { for (String itemName : provider.getInBindingItemNames()) { String url = provider.getUrl(itemName); url = String.format(url, Calendar.getInstance().getTime()); Properties headers = provider.getHttpHeaders(itemName); i...
diff --git a/app/pdf/PdfGenerator.java b/app/pdf/PdfGenerator.java index 2f6db10..334ade8 100644 --- a/app/pdf/PdfGenerator.java +++ b/app/pdf/PdfGenerator.java @@ -1,60 +1,60 @@ package pdf; import com.itextpdf.text.Font; import com.itextpdf.text.FontFactory; import play.Play; import java.io.File; import jav...
true
true
public PdfGenerator() { rootPath = Play.configuration.getProperty("my.pdf.resources.path"); String mode = Play.configuration.getProperty("application.mode"); if (mode.equals("dev")) { rootPath = "public/pdf/resources/"; } else { rootPath = "app/public/pdf/r...
public PdfGenerator() { rootPath = Play.configuration.getProperty("my.pdf.resources.path"); String mode = Play.configuration.getProperty("application.mode"); if (mode.equals("dev")) { rootPath = "public/pdf/resources/"; } else { rootPath = "/public/pdf/reso...
diff --git a/ini/trakem2/display/Bucket.java b/ini/trakem2/display/Bucket.java index 7c024c52..39d3fe97 100644 --- a/ini/trakem2/display/Bucket.java +++ b/ini/trakem2/display/Bucket.java @@ -1,569 +1,570 @@ /** TrakEM2 plugin for ImageJ(C). Copyright (C) 2005-2009 Albert Cardona and Rodney Douglas. This program...
true
true
final private boolean populate(final Bucketable container, final Layer layer, final HashMap<Displayable,ArrayList<Bucket>> db_map, final int parent_w, final int parent_h, final int max_width, final int max_height, final HashMap<Integer,Displayable> parent_list, final HashMap<Displayable,Area> areas) { if (this.w <= ...
final private boolean populate(final Bucketable container, final Layer layer, final HashMap<Displayable,ArrayList<Bucket>> db_map, final int parent_w, final int parent_h, final int max_width, final int max_height, final HashMap<Integer,Displayable> parent_list, final HashMap<Displayable,Area> areas) { if (this.w <= ...
diff --git a/src/java/com/scratchdisk/script/rhino/RhinoCallable.java b/src/java/com/scratchdisk/script/rhino/RhinoCallable.java index 0db84179..f5d719ed 100644 --- a/src/java/com/scratchdisk/script/rhino/RhinoCallable.java +++ b/src/java/com/scratchdisk/script/rhino/RhinoCallable.java @@ -1,81 +1,81 @@ /* * Scripto...
true
true
public Object call(Object obj, Object[] args) throws RhinoScriptException { // Retrieve wrapper object for the native java object, and call the // function on it. try { Scriptable scope = ScriptableObject.getTopLevelScope(function); Scriptable wrapper = RhinoEngine.getWrapper(obj, scope); for (int i = 0...
public Object call(Object obj, Object[] args) throws RhinoScriptException { // Retrieve wrapper object for the native java object, and call the // function on it. try { Scriptable scope = ScriptableObject.getTopLevelScope(function); Scriptable wrapper = RhinoEngine.getWrapper(obj, scope); for (int i = 0...
diff --git a/src/fi/jasoft/qrcode/client/ui/VQRCode.java b/src/fi/jasoft/qrcode/client/ui/VQRCode.java index 31f7514..8ce2ccb 100644 --- a/src/fi/jasoft/qrcode/client/ui/VQRCode.java +++ b/src/fi/jasoft/qrcode/client/ui/VQRCode.java @@ -1,120 +1,120 @@ /* * Copyright 2011 John Ahlroos * * Licensed under the Apac...
true
true
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { // This call should be made first. // It handles sizes, captions, tooltips, etc. automatically. if (client.updateComponent(this, uidl, true)) { // If client.updateComponent returns true there has been no changes and we // do not n...
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { // This call should be made first. // It handles sizes, captions, tooltips, etc. automatically. if (client.updateComponent(this, uidl, true)) { // If client.updateComponent returns true there has been no changes and we // do not n...
diff --git a/src/com/akuroda/mapreduce/montecarlopi/MonteCarloPI.java b/src/com/akuroda/mapreduce/montecarlopi/MonteCarloPI.java index 09cd2b5..bd626a5 100644 --- a/src/com/akuroda/mapreduce/montecarlopi/MonteCarloPI.java +++ b/src/com/akuroda/mapreduce/montecarlopi/MonteCarloPI.java @@ -1,113 +1,115 @@ package com.ak...
true
true
public static void main(String[] args) throws Exception { if (args.length != 2) { System.err.println("Usage: MonteCarloPI <input path> <output path>"); System.exit(-1); } Job job = Job.getInstance(); job.setJarByClass(MonteCarloPI.class); FileInputFormat.addInputPath(job, new Path(args[0])); FileOu...
public static void main(String[] args) throws Exception { if (args.length != 2) { System.err.println("Usage: MonteCarloPI <input path> <output path>"); System.exit(-1); } // deprecated as of 0.21 // Job job = new Job(); Job job = Job.getInstance(); job.setJarByClass(MonteCarloPI.class); FileInput...
diff --git a/sipXconfig/neoconf/src/org/sipfoundry/sipxconfig/admin/callgroup/AbstractCallSequence.java b/sipXconfig/neoconf/src/org/sipfoundry/sipxconfig/admin/callgroup/AbstractCallSequence.java index b3750f8ee..41d5ea5df 100644 --- a/sipXconfig/neoconf/src/org/sipfoundry/sipxconfig/admin/callgroup/AbstractCallSequen...
false
true
protected List generateAliases(String identity, String domain, boolean neverRouteToVoicemail) { List rings = getRings(); int activeRings = 0; // Count number of active rings for (Iterator i = rings.iterator(); i.hasNext();) { AbstractRing r = (AbstractRing) i.next(); ...
protected List generateAliases(String identity, String domain, boolean neverRouteToVoicemail) { List rings = getRings(); List aliases = new ArrayList(rings.size()); ForkQueueValue q = new ForkQueueValue(rings.size()); for (Iterator i = rings.iterator(); i.hasNext();) { ...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPreferenceInitializer.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPreferenceInitializer.java index 5af964e00..d67e59929 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDe...
true
true
public void initializeDefaultPreferences() { IPreferenceStore store = JDIDebugUIPlugin.getDefault().getPreferenceStore(); store.setDefault(IJDIPreferencesConstants.PREF_SUSPEND_ON_COMPILATION_ERRORS, true); store.setDefault(IJDIPreferencesConstants.PREF_SUSPEND_ON_UNCAUGHT_EXCEPTIONS, true); store.setDefault(I...
public void initializeDefaultPreferences() { IPreferenceStore store = JDIDebugUIPlugin.getDefault().getPreferenceStore(); store.setDefault(IJDIPreferencesConstants.PREF_SUSPEND_ON_COMPILATION_ERRORS, true); store.setDefault(IJDIPreferencesConstants.PREF_SUSPEND_ON_UNCAUGHT_EXCEPTIONS, true); store.setDefault(I...
diff --git a/src/com/fluendo/jst/Caps.java b/src/com/fluendo/jst/Caps.java index 71c1435..78f76ac 100644 --- a/src/com/fluendo/jst/Caps.java +++ b/src/com/fluendo/jst/Caps.java @@ -1,95 +1,95 @@ /* Copyright (C) <2004> Wim Taymans <wim@fluendo.com> * * This library is free software; you can redistribute it and/or ...
true
true
public Caps(String mime) { super(); int sep1, sep2, sep3; int len; len = mime.length(); sep1 = 0; sep2 = mime.indexOf (';'); if (sep2 == -1) sep2 = len; this.mime = mime.substring(0, sep2); while (sep2 < len) { sep1 = sep2+1; sep2 = mime.indexOf ('=', sep1);...
public Caps(String mime) { super(); int sep1, sep2, sep3; int len; len = mime.length(); sep1 = 0; sep2 = mime.indexOf (';'); if (sep2 == -1) sep2 = len; this.mime = mime.substring(0, sep2); while (sep2 < len) { sep1 = sep2+1; sep2 = mime.indexOf ('=', sep1);...
diff --git a/src/view/FirstPersonRoom.java b/src/view/FirstPersonRoom.java index 0812f2e..20f1d2a 100755 --- a/src/view/FirstPersonRoom.java +++ b/src/view/FirstPersonRoom.java @@ -1,90 +1,90 @@ package view; import java.awt.Color; import java.awt.event.MouseListener; import javax.swing.ImageIcon; import javax...
true
true
public JPanel getView(String direction) { JPanel panel = new JPanel(); panel.setLayout(null); if (getWall(direction).getMonster() != null && getWall(direction).getMonster().isAlive()) { //Add a monster image JLabel monster = new JLabel(""); monster.setToolTipText("attack," + getWall(direction...
public JPanel getView(String direction) { JPanel panel = new JPanel(); panel.setLayout(null); if (getWall(direction).getMonster() != null && getWall(direction).getMonster().isAlive()) { //Add a monster image JLabel monster = new JLabel(""); monster.setToolTipText("attack," + getWall(direction...
diff --git a/src/ScheduleDisplay.java b/src/ScheduleDisplay.java index b79b573..c8f91ed 100644 --- a/src/ScheduleDisplay.java +++ b/src/ScheduleDisplay.java @@ -1,319 +1,321 @@ import java.awt.Color; import java.io.Serializable; import java.util.List; import javax.swing.BorderFactory; import javax.swing.JButton;...
true
true
public void populateTable() { data[0][0] = " Reading"; data[1][0] = " 9 - 10:35"; data[maxStudentsPerClass + 3][0] = " Language Arts"; data[maxStudentsPerClass + 4][0] = " 10:40 - 11:55"; data[(2 * maxStudentsPerClass) + 6][0] = " Specials"; data[(2 * maxStudentsPerClass) + 7][0] = " 12:50 - 1:20"; data...
public void populateTable() { int tabRows = (7 * maxStudentsPerClass) + 1; data = new Object[tabRows][numRooms + 2]; data[0][0] = " Reading"; data[1][0] = " 9 - 10:35"; data[maxStudentsPerClass + 3][0] = " Language Arts"; data[maxStudentsPerClass + 4][0] = " 10:40 - 11:55"; data[(2 * maxStudentsPerClass...
diff --git a/test/models/IssueCommentTest.java b/test/models/IssueCommentTest.java index 6f3e71ac..6cff7ba3 100644 --- a/test/models/IssueCommentTest.java +++ b/test/models/IssueCommentTest.java @@ -1,43 +1,42 @@ package models; import static org.fest.assertions.Assertions.assertThat; import java.util.List; i...
false
true
public void create(){ // Given IssueComment issueComment = new IssueComment(); issueComment.issue = Issue.findById(1l); issueComment.contents = "create() test"; issueComment.authorId = getTestUser().id; // When long id = IssueComment.create(...
public void create(){ // Given IssueComment issueComment = new IssueComment(); issueComment.contents = "create() test"; issueComment.authorId = getTestUser().id; // When long id = IssueComment.create(issueComment); // Then assertThat(IssueC...
diff --git a/src/main/java/org/amplafi/flow/impl/JsonFlowRenderer.java b/src/main/java/org/amplafi/flow/impl/JsonFlowRenderer.java index 841c049..f042fbf 100644 --- a/src/main/java/org/amplafi/flow/impl/JsonFlowRenderer.java +++ b/src/main/java/org/amplafi/flow/impl/JsonFlowRenderer.java @@ -1,167 +1,168 @@ package or...
true
true
public void renderError(FlowState flowState, String message, Exception exception, Writer writer) { JSONWriter jsonWriter = getFlowStateWriter(); try { jsonWriter.object(); jsonWriter.keyValueIfNotBlankValue(ServicesConstants.ERROR_MESSAGE, message); if (flowState != null) { ...
public void renderError(FlowState flowState, String message, Exception exception, Writer writer) { JSONWriter jsonWriter = getFlowStateWriter(); try { jsonWriter.object(); jsonWriter.keyValueIfNotBlankValue(ServicesConstants.ERROR_MESSAGE, message); if (flowState != null) { ...
diff --git a/codemodel/src/com/sun/codemodel/JCommentPart.java b/codemodel/src/com/sun/codemodel/JCommentPart.java index 2a5e5990..74a39555 100644 --- a/codemodel/src/com/sun/codemodel/JCommentPart.java +++ b/codemodel/src/com/sun/codemodel/JCommentPart.java @@ -1,95 +1,95 @@ package com.sun.codemodel; import java....
true
true
protected void format( JFormatter f, String indent ) { if(!f.isPrinting()) { // quickly pass the types to JFormatter for( Object o : this ) if(o instanceof JClass) f.t((JClass)o); return; } if(!isEmpty()) f....
protected void format( JFormatter f, String indent ) { if(!f.isPrinting()) { // quickly pass the types to JFormatter for( Object o : this ) if(o instanceof JClass) f.t((JClass)o); return; } if(!isEmpty()) f....
diff --git a/org.eclipse.mylyn.wikitext.confluence.core/src/org/eclipse/mylyn/internal/wikitext/confluence/core/block/AbstractConfluenceDelimitedBlock.java b/org.eclipse.mylyn.wikitext.confluence.core/src/org/eclipse/mylyn/internal/wikitext/confluence/core/block/AbstractConfluenceDelimitedBlock.java index e0368305..fc5...
false
true
public int processLineContent(String line, int offset) { if (blockLineCount == 0) { setOptions(matcher.group(1)); offset = matcher.start(2); beginBlock(); } int end = line.length(); int segmentEnd = end; boolean terminating = false; Matcher endMatcher = endPattern.matcher(line); if (offset <...
public int processLineContent(String line, int offset) { if (blockLineCount == 0) { setOptions(matcher.group(1)); offset = matcher.start(2); beginBlock(); } int end = line.length(); int segmentEnd = end; boolean terminating = false; if (offset < end) { Matcher endMatcher = endPattern.matche...
diff --git a/src/test/java/com/salesforce/dataloader/integration/InstallTest.java b/src/test/java/com/salesforce/dataloader/integration/InstallTest.java index 8a69c06..5faf84c 100644 --- a/src/test/java/com/salesforce/dataloader/integration/InstallTest.java +++ b/src/test/java/com/salesforce/dataloader/integration/Inst...
true
true
public void classSetup() { File dll = new File(System.getProperty("user.home") + File.pathSeparator + ".m2" + File.pathSeparator + "repository" + File.pathSeparator + "net" + File.pathSeparator + "sf" + File.pathSeparator + "jacob-project" + File.pathSeparator + "jacob" + File....
public void classSetup() { File dll = new File(System.getProperty("user.home") + File.separator + ".m2" + File.separator + "repository" + File.separator + "net" + File.separator + "sf" + File.separator + "jacob-project" + File.separator + "jacob" + File.separator + "1.14.3" ...
diff --git a/motech-ivr-kookoo/src/main/java/org/motechproject/ivr/kookoo/controller/IVRController.java b/motech-ivr-kookoo/src/main/java/org/motechproject/ivr/kookoo/controller/IVRController.java index 2040af427..64c71c195 100644 --- a/motech-ivr-kookoo/src/main/java/org/motechproject/ivr/kookoo/controller/IVRControll...
true
true
public String reply(@ModelAttribute KookooRequest ivrRequest, HttpServletRequest request, HttpServletResponse response) { try { BaseEventAction action = actions.findFor(ivrRequest.callEvent()); String callId = establishCallId(ivrRequest, request, response); final String x...
public String reply(@ModelAttribute KookooRequest ivrRequest, HttpServletRequest request, HttpServletResponse response) { try { BaseEventAction action = actions.findFor(ivrRequest.callEvent()); String callId = establishCallId(ivrRequest, request, response); final String x...
diff --git a/common/rebelkeithy/mods/keithyutils/metablock/SubBlock.java b/common/rebelkeithy/mods/keithyutils/metablock/SubBlock.java index 8b60a66..2ef84ee 100644 --- a/common/rebelkeithy/mods/keithyutils/metablock/SubBlock.java +++ b/common/rebelkeithy/mods/keithyutils/metablock/SubBlock.java @@ -1,219 +1,219 @@ pa...
true
true
public SubBlock(int id, int meta, String iconName) { if(Block.blocksList[id] == null) { metaBlock = new MetaBlock(id); metaBlock.addSubBlock(this, meta); } else { metaBlock = (MetaBlock) Block.blocksList[id]; metaBlock.addSubBlock(this, meta); } this.meta = meta; this.iconName = iconName; ...
public SubBlock(int id, int meta, String iconName) { if(!(Block.blocksList[id] instanceof MetaBlock)) { metaBlock = new MetaBlock(id); metaBlock.addSubBlock(this, meta); } else { metaBlock = (MetaBlock) Block.blocksList[id]; metaBlock.addSubBlock(this, meta); } this.meta = meta; this.iconNa...
diff --git a/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java b/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java index f85a4639c..a7e281201 100644 --- a/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java +++ b/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java @@ -1,1302 +1,1302 @@ pack...
true
true
public String getAttribute(Attribute attribute) { if (attribute == null) return "null"; if (player_name == null) return Element.NULL.getAttribute(attribute); ///////////////////// // OFFLINE ATTRIBUTES ///////////////// ///////////////////...
public String getAttribute(Attribute attribute) { if (attribute == null) return "null"; if (player_name == null) return Element.NULL.getAttribute(attribute); ///////////////////// // OFFLINE ATTRIBUTES ///////////////// ///////////////////...
diff --git a/processor/src/org/gwtmpv/processor/DispatchGenerator.java b/processor/src/org/gwtmpv/processor/DispatchGenerator.java index c6c8f99..3194348 100644 --- a/processor/src/org/gwtmpv/processor/DispatchGenerator.java +++ b/processor/src/org/gwtmpv/processor/DispatchGenerator.java @@ -1,102 +1,102 @@ package or...
true
true
public DispatchGenerator(ProcessingEnvironment env, TypeElement element) throws InvalidTypeElementException { if (!element.toString().endsWith("Spec")) { env.getMessager().printMessage(Kind.ERROR, "GenDispatch targets must end with a Spec suffix"); throw new InvalidTypeElementException(); } String dispatc...
public DispatchGenerator(ProcessingEnvironment env, TypeElement element) throws InvalidTypeElementException { if (!element.toString().endsWith("Spec")) { env.getMessager().printMessage(Kind.ERROR, "GenDispatch targets must end with a Spec suffix", element); throw new InvalidTypeElementException(); } Strin...
diff --git a/src/assemblernator/InstructionFormatter.java b/src/assemblernator/InstructionFormatter.java index d2a686c..6f0e67f 100644 --- a/src/assemblernator/InstructionFormatter.java +++ b/src/assemblernator/InstructionFormatter.java @@ -1,252 +1,249 @@ package assemblernator; /** * * @author Noah * @date...
true
true
public static int [] formatOther(Instruction instr) { String code = IOFormat.formatBinInteger(instr.getOpcode(), 6); //011000 String fmt; String srcReg = "1000"; //default values String destReg = "1000"; String ixr = "0000"; String mem = "000000000000"; // formats FL DM, FC DM, EX DM if(instr.hasOperan...
public static int [] formatOther(Instruction instr) { String code = IOFormat.formatBinInteger(instr.getOpcode(), 6); //011000 String fmt; String srcReg = "1000"; //default values String destReg = "1000"; String ixr = "0000"; String mem = "000000000000"; // formats FL DM, FC DM, EX DM if(instr.hasOperan...
diff --git a/installer/test/java/org/python/util/install/driver/StandaloneVerifierTest.java b/installer/test/java/org/python/util/install/driver/StandaloneVerifierTest.java index 1a61a8ed..0b452522 100644 --- a/installer/test/java/org/python/util/install/driver/StandaloneVerifierTest.java +++ b/installer/test/java/org/...
true
true
public void testGetSimpleCommand() throws Exception { File javaHome = new File(System.getProperty("java.home")); assertNotNull(javaHome); assertTrue(javaHome.exists()); File targetDir = new File(System.getProperty(("user.dir"))); // any existing dir assertNotNull(targetDir); ...
public void testGetSimpleCommand() throws Exception { File javaHome = new File(System.getProperty("java.home")); assertNotNull(javaHome); assertTrue(javaHome.exists()); File targetDir = new File(System.getProperty(("user.dir"))); // any existing dir assertNotNull(targetDir); ...
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/QueryProvider.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/QueryProvider.java index 4f10b4656..8223eb25d 100644 --- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/QueryPro...
true
true
public ElementQueryDescriptor getQueryDescriptor(final QueriedElement element) { // Initialize queryable, queryContext, and queryType from the element. // In some cases we override this. Policy policy = ui.getPolicy(); IQueryable<?> queryable = element.getQueryable(); int queryType = element.getQueryType(); ...
public ElementQueryDescriptor getQueryDescriptor(final QueriedElement element) { // Initialize queryable, queryContext, and queryType from the element. // In some cases we override this. Policy policy = ui.getPolicy(); IQueryable<?> queryable = element.getQueryable(); int queryType = element.getQueryType(); ...
diff --git a/src/org/jacorb/orb/standardInterceptors/SASComponentInterceptor.java b/src/org/jacorb/orb/standardInterceptors/SASComponentInterceptor.java index 1d61bcf74..d50a4d964 100644 --- a/src/org/jacorb/orb/standardInterceptors/SASComponentInterceptor.java +++ b/src/org/jacorb/orb/standardInterceptors/SASComponent...
true
true
public void establish_components(IORInfo info) { try { if( tc == null ) { // parse required association options String targetSupportsNames = Environment.getProperty( "jacorb.security.sas.tss.target_supports", "" ); short targetSupports = ...
public void establish_components(IORInfo info) { try { if( tc == null ) { // parse required association options String targetSupportsNames = Environment.getProperty( "jacorb.security.sas.tss.target_supports", "" ); short targetSupports = ...
diff --git a/test/org/nutz/http/HttpTest.java b/test/org/nutz/http/HttpTest.java index 7032dbde1..b028bb967 100644 --- a/test/org/nutz/http/HttpTest.java +++ b/test/org/nutz/http/HttpTest.java @@ -1,72 +1,72 @@ package org.nutz.http; import static org.junit.Assert.assertEquals; import static org.junit.Assert.asser...
true
true
public void testPost() { Map<String, Object> parms = new HashMap<String, Object>(); parms.put("version", "NutzTest"); parms.put("website", Nutz.version()); String response = Http.post("http://nutztest.herokuapp.com/", parms, "utf-8", "utf-8"); assertNotNull(response); ...
public void testPost() { Map<String, Object> parms = new HashMap<String, Object>(); parms.put("version", "NutzTest"); parms.put("website", Nutz.version()); String response = Http.post("http://nutztest.herokuapp.com/", parms, 5*1000); assertNotNull(response); assertTru...
diff --git a/src/to/joe/j2mc/resslots/J2MC_ReservedSlots.java b/src/to/joe/j2mc/resslots/J2MC_ReservedSlots.java index e0590a1..104fb42 100644 --- a/src/to/joe/j2mc/resslots/J2MC_ReservedSlots.java +++ b/src/to/joe/j2mc/resslots/J2MC_ReservedSlots.java @@ -1,47 +1,47 @@ package to.joe.j2mc.resslots; import org.bukk...
false
true
public void onPlayerPreLogin(PlayerPreLoginEvent event) { boolean isAdmin = J2MC_Manager.getPermissions().isAdmin(event.getName()); boolean isDonator = J2MC_Manager.getPermissions().hasFlag(event.getName(), 'd'); if(this.getServer().getOnlinePlayers().length >= this.getServer().getMaxPlayers()){ if(!isAdmin &...
public void onPlayerPreLogin(PlayerPreLoginEvent event) { boolean isAdmin = J2MC_Manager.getPermissions().isAdmin(event.getName()); boolean isDonator = J2MC_Manager.getPermissions().hasFlag(event.getName(), 'd'); if(this.getServer().getOnlinePlayers().length >= this.getServer().getMaxPlayers()){ if(!isAdmin &...
diff --git a/src/java/nz/co/searchwellington/model/FeedNewsitem.java b/src/java/nz/co/searchwellington/model/FeedNewsitem.java index a157423f..a29da352 100644 --- a/src/java/nz/co/searchwellington/model/FeedNewsitem.java +++ b/src/java/nz/co/searchwellington/model/FeedNewsitem.java @@ -1,69 +1,70 @@ package nz.co.sear...
true
true
public FeedNewsitem(int id, String name, String url, String description, Date date, Set<DiscoveredFeed> discoveredFeeds) { this.id = id; this.name = name; this.url = url; this.description = description; this.date = date; this.discoveredFeeds = discoveredFeeds; ...
public FeedNewsitem(int id, String name, String url, String description, Date date, Set<DiscoveredFeed> discoveredFeeds) { this.id = id; this.name = name; this.url = url; this.description = description; this.date = date; this.discoveredFeeds = discoveredFeeds; ...
diff --git a/tmc-plugin/src/fi/helsinki/cs/tmc/model/ExerciseUpdateOverwritingDecider.java b/tmc-plugin/src/fi/helsinki/cs/tmc/model/ExerciseUpdateOverwritingDecider.java index 8c4e881..c0f575e 100644 --- a/tmc-plugin/src/fi/helsinki/cs/tmc/model/ExerciseUpdateOverwritingDecider.java +++ b/tmc-plugin/src/fi/helsinki/cs...
true
true
private boolean mayBothOverwriteAndDelete(String relPath) { return isNotAnExtraFile(relPath) && ( relPath.startsWith("test") || relPath.startsWith("lib") || (relPath.startsWith("nbproject") && !relPath.startsWith("nbproject" + s + "private")) || ...
private boolean mayBothOverwriteAndDelete(String relPath) { return isNotAnExtraFile(relPath) && ( relPath.startsWith("test") || relPath.startsWith("src" + s + "test" + s + "java") || relPath.startsWith("src" + s + "test" + s + "resources") || r...
diff --git a/jblog-view/jblog-web-controller/src/main/java/com/github/aint/jblog/web/controller/Registration.java b/jblog-view/jblog-web-controller/src/main/java/com/github/aint/jblog/web/controller/Registration.java index fa6fdc9..3c8621c 100755 --- a/jblog-view/jblog-web-controller/src/main/java/com/github/aint/jblog...
true
true
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { if (request.getParameter(REGISTRATION_BUTTON) == null) { request.getRequestDispatcher(REGISTRATION_JSP_PATH).forward(request, response); return; ...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { if (request.getParameter(REGISTRATION_BUTTON) == null) { request.getRequestDispatcher(REGISTRATION_JSP_PATH).forward(request, response); return; ...
diff --git a/mule-module-activiti-remote/src/test/java/org/mule/module/activiti/action/remote/GetRuntimeVariableOfProcessActionTestCase.java b/mule-module-activiti-remote/src/test/java/org/mule/module/activiti/action/remote/GetRuntimeVariableOfProcessActionTestCase.java index 5128ffd..238672f 100644 --- a/mule-module-a...
true
true
public void testGetVariable() throws Exception { MuleClient client = muleContext.getClient(); DefaultMuleMessage message = new DefaultMuleMessage("", muleContext); Map parameterMap = new HashMap(); parameterMap.put("processDefinitionKey", ActivitiTestUtils.MULTIPLY_WAIT_...
public void testGetVariable() throws Exception { MuleClient client = muleContext.getClient(); DefaultMuleMessage message = new DefaultMuleMessage("", muleContext); Map parameterMap = new HashMap(); parameterMap.put("processDefinitionKey", ActivitiTestUtils.MULTIPLY_WAIT_...
diff --git a/presentation/terminal/CommandGroup.java b/presentation/terminal/CommandGroup.java index 49806bf..a922c62 100644 --- a/presentation/terminal/CommandGroup.java +++ b/presentation/terminal/CommandGroup.java @@ -1,64 +1,64 @@ package interiores.core.presentation.terminal; import java.util.Arrays; import j...
true
true
public String readChoice(String question, String ... choices) { List<String> list = Arrays.asList(choices); String available = "Available choices are: "; for(int i = 0; i < list.size(); ++i) { if(i != 0) available += ", "; available += list.get(i); ...
public String readChoice(String question, String ... choices) { List<String> list = Arrays.asList(choices); String available = "Available choices are: "; for(int i = 0; i < list.size(); ++i) { if(i != 0) available += ", "; available += list.get(i); ...
diff --git a/ORRE-v2/src/orre/animation/execution/AnimationPlayhead.java b/ORRE-v2/src/orre/animation/execution/AnimationPlayhead.java index 4ea9993..52ed962 100644 --- a/ORRE-v2/src/orre/animation/execution/AnimationPlayhead.java +++ b/ORRE-v2/src/orre/animation/execution/AnimationPlayhead.java @@ -1,84 +1,85 @@ pack...
false
true
public void updateAnimation() { KeyFrame currentFrame = animation.keyFrames[currentFrameID]; float currentTime = timer.getTime(); double elapsedTimeInFrame = currentTime - keyFrameStartTime; double elapsedTime = currentTime - previousFrameStartTime; if(elapsedTimeInFrame > currentFrame.duration) { if(c...
public void updateAnimation() { KeyFrame currentFrame = animation.keyFrames[currentFrameID]; float currentTime = timer.getTime(); double elapsedTimeInFrame = currentTime - keyFrameStartTime; double elapsedTime = currentTime - previousFrameStartTime; if(elapsedTimeInFrame > currentFrame.duration) { if(c...
diff --git a/src/uk/me/parabola/mkgmap/reader/osm/RestrictionRelation.java b/src/uk/me/parabola/mkgmap/reader/osm/RestrictionRelation.java index 1a47b0d8..8421230e 100644 --- a/src/uk/me/parabola/mkgmap/reader/osm/RestrictionRelation.java +++ b/src/uk/me/parabola/mkgmap/reader/osm/RestrictionRelation.java @@ -1,270 +1,...
false
true
public RestrictionRelation(Relation other) { setId(other.getId()); messagePrefix = "Turn restriction " + getId() + " "; for (Map.Entry<Element, String> pairs: other.getRoles().entrySet()){ Element el = pairs.getKey(); String role = pairs.getValue(); addElement(role, el); if("to".equals(role)) { ...
public RestrictionRelation(Relation other) { setId(other.getId()); messagePrefix = "Turn restriction " + getId() + " "; for (Map.Entry<Element, String> pairs: other.getRoles().entrySet()){ Element el = pairs.getKey(); String role = pairs.getValue(); addElement(role, el); if("to".equals(role)) { ...
diff --git a/resources/redirect/src/java/org/wyona/yanel/impl/resources/RedirectResource.java b/resources/redirect/src/java/org/wyona/yanel/impl/resources/RedirectResource.java index 4fe94a8..737cf46 100644 --- a/resources/redirect/src/java/org/wyona/yanel/impl/resources/RedirectResource.java +++ b/resources/redirect/s...
true
true
public View getView(String viewId, String revisionName) throws Exception { View view = new View(); view.setResponse(false); // this resource writes the response itself HttpServletResponse response = getResponse(); String defaultHref = getResourceConfigProperty("href"); if ...
public View getView(String viewId, String revisionName) throws Exception { View view = new View(); view.setResponse(false); // this resource writes the response itself HttpServletResponse response = getResponse(); String defaultHref = getResourceConfigProperty("href"); if ...
diff --git a/src/test/java/iron9light/coffeescriptMavenPlugin/test/CoffeeScriptCompilerTest.java b/src/test/java/iron9light/coffeescriptMavenPlugin/test/CoffeeScriptCompilerTest.java index 2d6cfe8..a02ebd1 100644 --- a/src/test/java/iron9light/coffeescriptMavenPlugin/test/CoffeeScriptCompilerTest.java +++ b/src/test/ja...
true
true
public void testVersion() throws MalformedURLException { URL url = getClass().getResource("/coffee-script.js"); CoffeeScriptCompiler compiler = new CoffeeScriptCompiler(url, false); assertThat(compiler.version, equalTo("1.1.3")); }
public void testVersion() throws MalformedURLException { URL url = getClass().getResource("/coffee-script.js"); CoffeeScriptCompiler compiler = new CoffeeScriptCompiler(url, false); assertThat(compiler.version, equalTo("1.2.0")); }
diff --git a/src/Pathfinding/Pathfinder.java b/src/Pathfinding/Pathfinder.java index b5279a7..5da4936 100644 --- a/src/Pathfinding/Pathfinder.java +++ b/src/Pathfinding/Pathfinder.java @@ -1,618 +1,618 @@ package Pathfinding; import Crane.Crane; import Helpers.Vector3f; import Parkinglot.Parkinglot; import java....
true
true
public static void generateArea() throws Exception{ Nodes = new Node[1100]; parkinglots = new Parkinglot[300]; List<Path> pathList = new ArrayList<>(); // helpers final float halfPathWidth = pathWidth/2; final float mainRoadWidth = 4*pathWidth; final ...
public static void generateArea() throws Exception{ Nodes = new Node[1100]; parkinglots = new Parkinglot[300]; List<Path> pathList = new ArrayList<>(); // helpers final float halfPathWidth = pathWidth/2; final float mainRoadWidth = 4*pathWidth; final ...
diff --git a/src/main/java/org/noisemap/core/PropagationProcess.java b/src/main/java/org/noisemap/core/PropagationProcess.java index c1d6882..4ca5c89 100644 --- a/src/main/java/org/noisemap/core/PropagationProcess.java +++ b/src/main/java/org/noisemap/core/PropagationProcess.java @@ -1,947 +1,947 @@ /** * NoiseMap i...
true
true
private void receiverSourcePropa(Coordinate srcCoord, Coordinate receiverCoord, double energeticSum[], double[] alpha_atmo, List<Double> wj, List<MirrorReceiverResult> mirroredReceiver, List<LineSegment> nearBuildingsWalls, List<Coordinate> regionCorners, List<Integer> regionCornersFreeToReceiver, do...
private void receiverSourcePropa(Coordinate srcCoord, Coordinate receiverCoord, double energeticSum[], double[] alpha_atmo, List<Double> wj, List<MirrorReceiverResult> mirroredReceiver, List<LineSegment> nearBuildingsWalls, List<Coordinate> regionCorners, List<Integer> regionCornersFreeToReceiver, do...
diff --git a/samples/java/comet-clock/app/controllers/Application.java b/samples/java/comet-clock/app/controllers/Application.java index 912a7d30b..2a0d8e759 100644 --- a/samples/java/comet-clock/app/controllers/Application.java +++ b/samples/java/comet-clock/app/controllers/Application.java @@ -1,98 +1,99 @@ package ...
true
true
public void onReceive(Object message) { // Handle connections if(message instanceof Comet) { final Comet cometSocket = (Comet)message; if(sockets.contains(cometSocket)) { // Brower is disconnected ...
public void onReceive(Object message) { // Handle connections if(message instanceof Comet) { final Comet cometSocket = (Comet)message; if(sockets.contains(cometSocket)) { // Brower is disconnected ...
diff --git a/bootstrap-core/src/test/java/de/agilecoders/wicket/core/markup/html/themes/bootstrap/BootstrapJsReferenceTest.java b/bootstrap-core/src/test/java/de/agilecoders/wicket/core/markup/html/themes/bootstrap/BootstrapJsReferenceTest.java index 2bb1aa98..0ad60b34 100644 --- a/bootstrap-core/src/test/java/de/agile...
true
true
public void cdnResources() { WebApplication application = tester().getApplication(); application.getResourceSettings().setCachingStrategy(new NoOpResourceCachingStrategy()); IBootstrapSettings settings = Bootstrap.getSettings(application); ResourceReference jsResourceReference = set...
public void cdnResources() { WebApplication application = tester().getApplication(); application.getResourceSettings().setCachingStrategy(new NoOpResourceCachingStrategy()); IBootstrapSettings settings = Bootstrap.getSettings(application); ResourceReference jsResourceReference = set...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java index 18188c04f..d949bbf5f 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListVi...
true
true
public void createPartControl(Composite parent) { themeManager = getSite().getWorkbenchWindow().getWorkbench().getThemeManager(); themeManager.addPropertyChangeListener(THEME_CHANGE_LISTENER); filteredTree = new TaskListFilteredTree(parent, SWT.MULTI | SWT.VERTICAL | /* SWT.H_SCROLL | */SWT.V_SCROLL | SWT.F...
public void createPartControl(Composite parent) { themeManager = getSite().getWorkbenchWindow().getWorkbench().getThemeManager(); themeManager.addPropertyChangeListener(THEME_CHANGE_LISTENER); filteredTree = new TaskListFilteredTree(parent, SWT.MULTI | SWT.VERTICAL | /* SWT.H_SCROLL | */SWT.V_SCROLL | SWT.F...
diff --git a/kit/src/de/zib/gndms/kit/network/StrictNonblockingClientFactory.java b/kit/src/de/zib/gndms/kit/network/StrictNonblockingClientFactory.java index 0ba04d47..59984b58 100644 --- a/kit/src/de/zib/gndms/kit/network/StrictNonblockingClientFactory.java +++ b/kit/src/de/zib/gndms/kit/network/StrictNonblockingClie...
true
true
public GridFTPClient createClient( String host, int port, CredentialProvider cp ) throws ServerException, IOException { final GridFTPClientCreator creator = new GridFTPClientCreator( host, port, cp, inc() ); final Forkable<GridFTPClient> fork = new Forkable<GridFTPClient>( creator ); fina...
public GridFTPClient createClient( String host, int port, CredentialProvider cp ) throws ServerException, IOException { final GridFTPClientCreator creator = new GridFTPClientCreator( host, port, cp, inc() ); final Forkable<GridFTPClient> fork = new Forkable<GridFTPClient>( creator ); fina...
diff --git a/src/com/legit2/Demigods/Listeners/DCommandListener.java b/src/com/legit2/Demigods/Listeners/DCommandListener.java index 4f17882d..2a068806 100644 --- a/src/com/legit2/Demigods/Listeners/DCommandListener.java +++ b/src/com/legit2/Demigods/Listeners/DCommandListener.java @@ -1,37 +1,38 @@ package com.legit2...
true
true
public static void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) { String message = event.getMessage(); String[] args = message.split("\\s+"); Player player = event.getPlayer(); try { DDeityUtil.invokeDeityCommand(player, args); } catch(Exception e) { // Not a command } }
public static void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) { String message = event.getMessage(); message = message.substring(1); String[] args = message.split("\\s+"); Player player = event.getPlayer(); try { DDeityUtil.invokeDeityCommand(player, args); } catch(Exception e...
diff --git a/core/src/forplay/flash/json/impl/JsonContext.java b/core/src/forplay/flash/json/impl/JsonContext.java index 201ed0d4..3c5286d4 100644 --- a/core/src/forplay/flash/json/impl/JsonContext.java +++ b/core/src/forplay/flash/json/impl/JsonContext.java @@ -1,82 +1,82 @@ /* * Copyright 2010 Google Inc. * * ...
true
true
JsonContext(JsonValue value) { this.value = this.value; }
JsonContext(JsonValue value) { this.value = value; }
diff --git a/job/controller/src/main/java/org/talend/esb/job/controller/internal/PolicyProviderImpl.java b/job/controller/src/main/java/org/talend/esb/job/controller/internal/PolicyProviderImpl.java index a02d55f64..0b67ce290 100644 --- a/job/controller/src/main/java/org/talend/esb/job/controller/internal/PolicyProvide...
true
true
private Policy loadPolicy(String location) { InputStream is = null; try { is = new FileInputStream(location); return policyBuilder.getPolicy(is); } catch (Exception e) { throw new RuntimeException("Cannot load policy"); } finally { if (...
private Policy loadPolicy(String location) { InputStream is = null; try { is = new FileInputStream(location); return policyBuilder.getPolicy(is); } catch (Exception e) { throw new RuntimeException("Cannot load policy", e); } finally { i...
diff --git a/src/org/biojavax/bio/seq/io/GenbankFormat.java b/src/org/biojavax/bio/seq/io/GenbankFormat.java index 5c357ecef..3e42980f0 100644 --- a/src/org/biojavax/bio/seq/io/GenbankFormat.java +++ b/src/org/biojavax/bio/seq/io/GenbankFormat.java @@ -1,757 +1,757 @@ /* * BioJava development code...
false
true
public boolean readRichSequence(BufferedReader reader, SymbolTokenization symParser, RichSeqIOListener rlistener) throws IllegalSymbolException, IOException, ParseException { String line; boolean hasAnotherSequence = true; boolean hasInternalWhitespace ...
public boolean readRichSequence(BufferedReader reader, SymbolTokenization symParser, RichSeqIOListener rlistener) throws IllegalSymbolException, IOException, ParseException { String line; boolean hasAnotherSequence = true; boolean hasInternalWhitespace ...
diff --git a/src/java/ognl/ASTProperty.java b/src/java/ognl/ASTProperty.java index edc0086..1890537 100644 --- a/src/java/ognl/ASTProperty.java +++ b/src/java/ognl/ASTProperty.java @@ -1,576 +1,576 @@ // -------------------------------------------------------------------------- // Copyright (c) 1998-2004, Drew Davids...
true
true
public String toGetSourceString(OgnlContext context, Object target) { if (context.getCurrentObject() == null) throw new UnsupportedCompilationException("Current target is null."); String result = ""; Method m = null; try { /* System.out.println("astprope...
public String toGetSourceString(OgnlContext context, Object target) { if (context.getCurrentObject() == null) throw new UnsupportedCompilationException("Current target is null."); String result = ""; Method m = null; try { /* System.out.println("astprope...
diff --git a/src/java-common/org/xins/common/servlet/container/HTTPServletHandler.java b/src/java-common/org/xins/common/servlet/container/HTTPServletHandler.java index 0db1ec2cb..050c37b4c 100644 --- a/src/java-common/org/xins/common/servlet/container/HTTPServletHandler.java +++ b/src/java-common/org/xins/common/servl...
false
true
public void httpQuery(BufferedReader input, BufferedOutputStream outbound) throws IOException { // Read the input String url = null; char[] contentData = null; Map inHeaders = new HashMap(); int contentLength = -1; String inContentType = null; boole...
public void httpQuery(BufferedReader input, BufferedOutputStream outbound) throws IOException { // Read the input String url = null; char[] contentData = null; Map inHeaders = new HashMap(); int contentLength = -1; String inContentType = null; boole...
diff --git a/public/java/src/org/broadinstitute/sting/gatk/walkers/annotator/MVLikelihoodRatio.java b/public/java/src/org/broadinstitute/sting/gatk/walkers/annotator/MVLikelihoodRatio.java index 8da64608f..bd0d4e3fb 100755 --- a/public/java/src/org/broadinstitute/sting/gatk/walkers/annotator/MVLikelihoodRatio.java +++ ...
true
true
public Map<String, Object> annotate(RefMetaDataTracker tracker, AnnotatorCompatibleWalker walker, ReferenceContext ref, Map<String, AlignmentContext> stratifiedContexts, VariantContext vc) { if ( mendelianViolation == null ) { if ( walker instanceof VariantAnnotator && ((VariantAnnotator) walker...
public Map<String, Object> annotate(RefMetaDataTracker tracker, AnnotatorCompatibleWalker walker, ReferenceContext ref, Map<String, AlignmentContext> stratifiedContexts, VariantContext vc) { if ( mendelianViolation == null ) { if ( walker instanceof VariantAnnotator && ((VariantAnnotator) walker...
diff --git a/activeio-core/src/main/java/org/apache/activeio/journal/active/LogFileManager.java b/activeio-core/src/main/java/org/apache/activeio/journal/active/LogFileManager.java index 920c61e..bf81c89 100644 --- a/activeio-core/src/main/java/org/apache/activeio/journal/active/LogFileManager.java +++ b/activeio-core/...
true
true
void initialize(int onlineLogFileCount) throws IOException { try { LogFileNode logFiles[] = new LogFileNode[onlineLogFileCount]; // Create the log directory if it does not exist. if (!logDirectory.exists()) { if (!logDirectory.mkdirs()) { throw new IO...
void initialize(int onlineLogFileCount) throws IOException { try { LogFileNode logFiles[] = new LogFileNode[onlineLogFileCount]; // Create the log directory if it does not exist. if (!logDirectory.exists()) { if (!logDirectory.mkdirs()) { throw new IO...
diff --git a/src/census/presentation/dialogs/PickClientDialog.java b/src/census/presentation/dialogs/PickClientDialog.java index 4317809..9d3a6a8 100644 --- a/src/census/presentation/dialogs/PickClientDialog.java +++ b/src/census/presentation/dialogs/PickClientDialog.java @@ -1,347 +1,348 @@ /* * To change this temp...
true
true
private void initComponents() { modeButtonGroup = new javax.swing.ButtonGroup(); searchCriteriasPanel = new javax.swing.JPanel(); cardTextField = new javax.swing.JTextField(); cardRadioButton = new javax.swing.JRadioButton(); idTextField = new javax.swing.JTextField(); ...
private void initComponents() { modeButtonGroup = new javax.swing.ButtonGroup(); searchCriteriasPanel = new javax.swing.JPanel(); cardTextField = new javax.swing.JTextField(); cardRadioButton = new javax.swing.JRadioButton(); idTextField = new javax.swing.JTextField(); ...
diff --git a/qcadoo-plugin/src/test/java/com/qcadoo/plugin/internal/artifact/JarPluginArtifactTest.java b/qcadoo-plugin/src/test/java/com/qcadoo/plugin/internal/artifact/JarPluginArtifactTest.java index 74969328e..906ad7bf4 100644 --- a/qcadoo-plugin/src/test/java/com/qcadoo/plugin/internal/artifact/JarPluginArtifactTe...
false
true
public void shouldThrowAnExceptionIfFileIsNotReadable() throws Exception { // given File file = folder.newFile("plugin.jar"); System.out.println(" ********************************* "); System.out.println(" 0 " + file.getAbsolutePath()); System.out.println(" 1 " + file.canRea...
public void shouldThrowAnExceptionIfFileIsNotReadable() throws Exception { // given File file = folder.newFile("plugin.jar"); System.out.println(" ********************************* "); System.out.println(System.getProperty("java.io.tmpdir")); System.out.println(" 0 " + file....
diff --git a/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/XSLTMediator.java b/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/XSLTMediator.java index 5608062c3..b2d1b52ad 100644 --- a/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/XSLTMediator.jav...
false
true
private void performXSLT(MessageContext synCtx, final boolean traceOrDebugOn, final boolean traceOn) { boolean reCreate = false; OMNode sourceNode = getTransformSource(synCtx); TemporaryData tempTargetData = null; OutputStream osForTarget; boolean isSoapEnvelope = (s...
private void performXSLT(MessageContext synCtx, final boolean traceOrDebugOn, final boolean traceOn) { boolean reCreate = false; OMNode sourceNode = getTransformSource(synCtx); TemporaryData tempTargetData = null; OutputStream osForTarget; boolean isSoapEnvelope = (s...
diff --git a/javafx.editor/src/org/netbeans/modules/javafx/editor/completion/environment/VariableTreeEnvironment.java b/javafx.editor/src/org/netbeans/modules/javafx/editor/completion/environment/VariableTreeEnvironment.java index 0dff8f46..8e163646 100644 --- a/javafx.editor/src/org/netbeans/modules/javafx/editor/comp...
true
true
protected void inside(VariableTree t) throws IOException { if (LOGGABLE) log("inside VariableTree " + t + " offset == " + offset); // NOI18N boolean isLocal = path.getParentPath().getLeaf().getJavaFXKind() != Tree.JavaFXKind.CLASS_DECLARATION; Tree type = t.getType(); int typePos = ...
protected void inside(VariableTree t) throws IOException { if (LOGGABLE) log("inside VariableTree " + t + " offset == " + offset); // NOI18N boolean isLocal = path.getParentPath().getLeaf().getJavaFXKind() != Tree.JavaFXKind.CLASS_DECLARATION; Tree type = t.getType(); int typePos; ...
diff --git a/src/main/java/de/cismet/commons/gui/equalizer/EqualizerPanel.java b/src/main/java/de/cismet/commons/gui/equalizer/EqualizerPanel.java index 6bff117..f700a69 100644 --- a/src/main/java/de/cismet/commons/gui/equalizer/EqualizerPanel.java +++ b/src/main/java/de/cismet/commons/gui/equalizer/EqualizerPanel.java...
true
true
protected void paintComponent(final Graphics g) { super.paintComponent(g); if (!splinePainted) { // nothing to do, bail out return; } final Collection<JSlider> sliders = sliderMap.values(); Double[] p = new Double[slid...
protected void paintComponent(final Graphics g) { super.paintComponent(g); if (!splinePainted || model.getEqualizerCategoryCount() < 2) { // nothing to do, bail out return; } final Collection<JSlider> sliders = sliderMap.values();...
diff --git a/src/ise/gameoflife/agents/PoliticalAgentGroup.java b/src/ise/gameoflife/agents/PoliticalAgentGroup.java index 0b3e711..bf32278 100644 --- a/src/ise/gameoflife/agents/PoliticalAgentGroup.java +++ b/src/ise/gameoflife/agents/PoliticalAgentGroup.java @@ -1,778 +1,779 @@ /* * To change this template, choose...
false
true
protected Food chooseFood() { if (getDataModel().getHuntingTeam() == null) return null; List<String> members = this.getDataModel().getHuntingTeam().getMembers(); //We assume there will only be two food sources (stags/rabbits) List<Food> foodArray = new LinkedList...
protected Food chooseFood() { if (getDataModel().getHuntingTeam() == null) return null; List<String> members = this.getDataModel().getHuntingTeam().getMembers(); //We assume there will only be two food sources (stags/rabbits) List<Food> foodArray = new LinkedList...