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/core/src/main/java/de/uniluebeck/itm/wsn/deviceutils/listener/DeviceListenerCLI.java b/core/src/main/java/de/uniluebeck/itm/wsn/deviceutils/listener/DeviceListenerCLI.java index 3632f90..b4a8ee5 100755 --- a/core/src/main/java/de/uniluebeck/itm/wsn/deviceutils/listener/DeviceListenerCLI.java +++ b/core/src...
true
true
public static void main(String[] args) throws InterruptedException, IOException { CommandLineParser parser = new PosixParser(); Options options = createCommandLineOptions(); String deviceType = null; String port = null; Map<String, String> configuration = newHashMap(); OutputStream outStream = System.ou...
public static void main(String[] args) throws InterruptedException, IOException { CommandLineParser parser = new PosixParser(); Options options = createCommandLineOptions(); String deviceType = null; String port = null; Map<String, String> configuration = newHashMap(); OutputStream outStream = System.ou...
diff --git a/src/main/java/com/dumptruckman/chunky/permission/ChunkyPermissions.java b/src/main/java/com/dumptruckman/chunky/permission/ChunkyPermissions.java index 885d002..a761c04 100644 --- a/src/main/java/com/dumptruckman/chunky/permission/ChunkyPermissions.java +++ b/src/main/java/com/dumptruckman/chunky/permissio...
true
true
public ChunkyPermissions(Flags... flags) { EnumSet flagSet = EnumSet.noneOf(Flags.class); for (Flags flag : flags) { flagSet.add(flag); } this.flags = flagSet; }
public ChunkyPermissions(Flags... flags) { EnumSet flagSet = EnumSet.noneOf(Flags.class); if (flags == null) return; for (Flags flag : flags) { flagSet.add(flag); } this.flags = flagSet; }
diff --git a/src/com/nicknackhacks/dailyburn/adapters/BodyEntryWrapper.java b/src/com/nicknackhacks/dailyburn/adapters/BodyEntryWrapper.java index 5231a45..ba2b2a2 100644 --- a/src/com/nicknackhacks/dailyburn/adapters/BodyEntryWrapper.java +++ b/src/com/nicknackhacks/dailyburn/adapters/BodyEntryWrapper.java @@ -1,64 +1...
false
true
public void populateWithDiff(BodyLogEntry e, BodyLogEntry past) { getValue().setText(String.valueOf(e.getValue())); getLoggedOn().setText(e.getLoggedOn()); float diff = e.getValue() - past.getValue(); String diffString = String.valueOf(diff); diffString = diffString.substring(0, diffString.indexOf('.') + 3);...
public void populateWithDiff(BodyLogEntry e, BodyLogEntry past) { getValue().setText(String.valueOf(e.getValue())); getLoggedOn().setText(e.getLoggedOn()); float diff = e.getValue() - past.getValue(); String diffString = String.format("%+2.2f",diff); if(diff > 0) { getDelta().setTextColor(Color.RED); } ...
diff --git a/src/common/com/ForgeEssentials/permissions/ConfigGroups.java b/src/common/com/ForgeEssentials/permissions/ConfigGroups.java index 98ff054ab..435171e05 100644 --- a/src/common/com/ForgeEssentials/permissions/ConfigGroups.java +++ b/src/common/com/ForgeEssentials/permissions/ConfigGroups.java @@ -1,52 +1,52 ...
true
true
public ConfigGroups() { config = new Configuration(groupsFile, true); defaultGroup = GroupManager.DEFAULT.name; // check for other groups. or generate if (config.categories.size() == 0) { config.addCustomCategoryComment("members", "Generated group for your conveniance"); config.get("members", "pro...
public ConfigGroups() { config = new Configuration(groupsFile, true); defaultGroup = GroupManager.DEFAULT.name; // check for other groups. or generate if (config.categories.size() == 0) { config.addCustomCategoryComment("members", "Generated group for your conveniance"); config.get("members", "pro...
diff --git a/src/com/android/dialer/PhoneCallDetailsHelper.java b/src/com/android/dialer/PhoneCallDetailsHelper.java index b51a27bce..be9cb660f 100644 --- a/src/com/android/dialer/PhoneCallDetailsHelper.java +++ b/src/com/android/dialer/PhoneCallDetailsHelper.java @@ -1,204 +1,205 @@ /* * Copyright (C) 2011 The Andr...
true
true
public void setPhoneCallDetails(PhoneCallDetailsViews views, PhoneCallDetails details, boolean isHighlighted) { // Display up to a given number of icons. views.callTypeIcons.clear(); int count = details.callTypes.length; for (int index = 0; index < count && index < MAX_CA...
public void setPhoneCallDetails(PhoneCallDetailsViews views, PhoneCallDetails details, boolean isHighlighted) { // Display up to a given number of icons. views.callTypeIcons.clear(); int count = details.callTypes.length; for (int index = 0; index < count && index < MAX_CA...
diff --git a/src/serial/RoundConfiguration.java b/src/serial/RoundConfiguration.java index 0be5a9d..a0976ae 100644 --- a/src/serial/RoundConfiguration.java +++ b/src/serial/RoundConfiguration.java @@ -1,151 +1,151 @@ package serial; import java.util.*; import java.util.concurrent.ConcurrentHashMap; import org.buk...
false
true
public RoundConfiguration(Location center, List<Team> list) { // Auto-assign positions String radiusStr = Stalemate.getInstance().settings.get("playradius"); int radius; try { radius = Integer.parseInt(radiusStr); } catch (NumberFormatException|NullPointerException e) { throw new RuntimeException("Plea...
public RoundConfiguration(Location center, List<Team> list) { // Auto-assign positions String radiusStr = Stalemate.getInstance().getSetting("playradius", "10"); int radius; try { radius = Integer.parseInt(radiusStr); } catch (NumberFormatException e) { throw new RuntimeException("Please set playradius...
diff --git a/hidden-src/net/slreynolds/ds/util/FileUtil.java b/hidden-src/net/slreynolds/ds/util/FileUtil.java index 4fdbcd2..e79fa0c 100644 --- a/hidden-src/net/slreynolds/ds/util/FileUtil.java +++ b/hidden-src/net/slreynolds/ds/util/FileUtil.java @@ -1,35 +1,35 @@ package net.slreynolds.ds.util; import java.io....
true
true
public static File createEmptyWritableFile(String path) throws IOException { File out = new File(path); if (out.exists()) { if (!out.isFile()) { throw new IOException(path + " is not a file"); } if (!out.delete()) { throw new IOExce...
public static File createEmptyWritableFile(String path) throws IOException { File out = new File(path); if (out.exists()) { if (!out.isFile()) { throw new IOException(path + " is not a file"); } if (!out.delete()) { throw new IOExce...
diff --git a/srcj/com/sun/electric/tool/io/input/ScalarEpicAnalysis.java b/srcj/com/sun/electric/tool/io/input/ScalarEpicAnalysis.java index 9c6cdc673..3c7a5eb6b 100644 --- a/srcj/com/sun/electric/tool/io/input/ScalarEpicAnalysis.java +++ b/srcj/com/sun/electric/tool/io/input/ScalarEpicAnalysis.java @@ -1,962 +1,962 @@...
true
true
protected Waveform[] loadWaveforms(AnalogSignal signal) { int index = signal.getIndexInAnalysis(); double valueResolution = getValueResolution(index); int start = waveStarts[index]; int len = waveLengths[index]; byte[] packedWaveform = new byte[len]; try { ...
protected Waveform[] loadWaveforms(AnalogSignal signal) { int index = signal.getIndexInAnalysis(); double valueResolution = getValueResolution(index); int start = waveStarts[index]; int len = waveLengths[index]; byte[] packedWaveform = new byte[len]; try { ...
diff --git a/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromESB.java b/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromESB.java index 8636a53..1a670cf 100644 --- a/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bo...
true
true
public void createESBRuntime() { SWTBot wiz = open.preferenceOpen(ActionItem.Preference.JBossToolsJBossESBRuntimes.LABEL); wiz.button("Add").click(); bot.shell(IDELabel.Shell.NEW_ESB_RUNTIME).activate(); assertFalse("Finish button must not be enabled when no home dir is defined",bot.button(IDELabel.Button.FINI...
public void createESBRuntime() { SWTBot wiz = open.preferenceOpen(ActionItem.Preference.JBossToolsJBossESBRuntimes.LABEL); wiz.button("Add").click(); bot.shell(IDELabel.Shell.NEW_ESB_RUNTIME).activate(); assertFalse("Finish button must not be enabled when no home dir is defined",bot.button(IDELabel.Button.FINI...
diff --git a/src/ca/couchware/wezzle2d/tile/ItemTileEntity.java b/src/ca/couchware/wezzle2d/tile/ItemTileEntity.java index 9942e10..3043dac 100644 --- a/src/ca/couchware/wezzle2d/tile/ItemTileEntity.java +++ b/src/ca/couchware/wezzle2d/tile/ItemTileEntity.java @@ -1,77 +1,79 @@ package ca.couchware.wezzle2d.tile; i...
true
true
public boolean draw() { if (isVisible() == false) return false; // Invoke super draw. super.draw(); // Draw bomb on top of it. //itemSprite.draw((int) x2, (int) y2, width, height, itemTheta, opacity); itemGraphic.draw(x, y).wi...
public boolean draw() { if (isVisible() == false) return false; // Invoke super draw. super.draw(); // Draw bomb on top of it. //itemSprite.draw((int) x2, (int) y2, width, height, itemTheta, opacity); itemGraphic.draw(x, y).wi...
diff --git a/hama/hybrid/kmeans/src/at/illecker/hama/hybrid/examples/kmeans/KMeansHybridKernel.java b/hama/hybrid/kmeans/src/at/illecker/hama/hybrid/examples/kmeans/KMeansHybridKernel.java index 1ab8c9e..e590611 100644 --- a/hama/hybrid/kmeans/src/at/illecker/hama/hybrid/examples/kmeans/KMeansHybridKernel.java +++ b/ha...
false
true
public void gpuMethod() { // Check maxIterations if (m_maxIterations <= 0) { return; } int blockSize = RootbeerGpu.getBlockDimx(); int gridSize = RootbeerGpu.getGridDimx(); int block_idxx = RootbeerGpu.getBlockIdxx(); int thread_idxx = RootbeerGpu.getThreadIdxx(); // globalThr...
public void gpuMethod() { // Check maxIterations if (m_maxIterations <= 0) { return; } int blockSize = RootbeerGpu.getBlockDimx(); int gridSize = RootbeerGpu.getGridDimx(); int block_idxx = RootbeerGpu.getBlockIdxx(); int thread_idxx = RootbeerGpu.getThreadIdxx(); // globalThr...
diff --git a/rds-manager/src/main/java/com/stationmillenium/rdsmanager/services/rs232/RDSDisplayManagerService.java b/rds-manager/src/main/java/com/stationmillenium/rdsmanager/services/rs232/RDSDisplayManagerService.java index 0534932..ace8af5 100644 --- a/rds-manager/src/main/java/com/stationmillenium/rdsmanager/servi...
true
true
public void initRDS() { String initCommand = rs232Config.getInitCommand(); String psCommand = rdsDisplayManagerProperties.getPsCommandPrefix() + rdsDisplayManagerProperties.getPsInitCommand() + rdsDisplayManagerProperties.getCommandTerminaison(); String rtCommand = rdsDisplayManagerProperties.getRtCommandPrefix(...
public void initRDS() { String initCommand = rs232Config.getInitCommand() + rdsDisplayManagerProperties.getCommandTerminaison(); String psCommand = rdsDisplayManagerProperties.getPsCommandPrefix() + rdsDisplayManagerProperties.getPsInitCommand() + rdsDisplayManagerProperties.getCommandTerminaison(); String rtCom...
diff --git a/src/confdb/db/CfgDatabase.java b/src/confdb/db/CfgDatabase.java index 24e543c9..d282d37b 100644 --- a/src/confdb/db/CfgDatabase.java +++ b/src/confdb/db/CfgDatabase.java @@ -1,2356 +1,2356 @@ package confdb.db; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException...
true
true
public boolean prepareStatements() { int[] keyColumn = { 1 }; try { psSelectModuleTypes = dbConnector.getConnection().prepareStatement ("SELECT" + " ModuleTypes.typeId," + " ModuleTypes.type " + "FROM ModuleTypes"); psSelectParameterTypes = dbConnector.getConnection().prepareSt...
public boolean prepareStatements() { int[] keyColumn = { 1 }; try { psSelectModuleTypes = dbConnector.getConnection().prepareStatement ("SELECT" + " ModuleTypes.typeId," + " ModuleTypes.type " + "FROM ModuleTypes"); psSelectParameterTypes = dbConnector.getConnection().prepareSt...
diff --git a/common/logisticspipes/logic/BaseLogicCrafting.java b/common/logisticspipes/logic/BaseLogicCrafting.java index 1c111c82..99760287 100644 --- a/common/logisticspipes/logic/BaseLogicCrafting.java +++ b/common/logisticspipes/logic/BaseLogicCrafting.java @@ -1,316 +1,317 @@ package logisticspipes.logic; imp...
true
true
public void openAttachedGui(EntityPlayer player) { if (MainProxy.isClient(player.worldObj)) { final PacketCoordinates packet = new PacketCoordinates(NetworkConstants.CRAFTING_PIPE_OPEN_CONNECTED_GUI, xCoord, yCoord, zCoord); PacketDispatcher.sendPacketToServer(packet.getPacket()); return; } final WorldU...
public void openAttachedGui(EntityPlayer player) { if (MainProxy.isClient(player.worldObj)) { player.closeScreen(); final PacketCoordinates packet = new PacketCoordinates(NetworkConstants.CRAFTING_PIPE_OPEN_CONNECTED_GUI, xCoord, yCoord, zCoord); PacketDispatcher.sendPacketToServer(packet.getPacket()); r...
diff --git a/application/app/controllers/schools/SchoolController.java b/application/app/controllers/schools/SchoolController.java index 27a0cbe7..07b41da8 100644 --- a/application/app/controllers/schools/SchoolController.java +++ b/application/app/controllers/schools/SchoolController.java @@ -1,229 +1,229 @@ /** * ...
true
true
public static Result save() { // Generate breadcrumbs List<Link> breadcrumbs = getBreadcrumbs(); breadcrumbs.add(new Link(EMessages.get("schools.add"), "/schools/new")); if (!isAuthorized()) return ok(noaccess.render(breadcrumbs)); // Check if authorized // Retri...
public static Result save() { // Generate breadcrumbs List<Link> breadcrumbs = getBreadcrumbs(); breadcrumbs.add(new Link(EMessages.get("schools.add"), "/schools/new")); if (!isAuthorized()) return ok(noaccess.render(breadcrumbs)); // Check if authorized // Retri...
diff --git a/src/java/com/eviware/soapui/impl/wsdl/submit/filters/HttpRequestFilter.java b/src/java/com/eviware/soapui/impl/wsdl/submit/filters/HttpRequestFilter.java index f3d863f30..8942de0d6 100644 --- a/src/java/com/eviware/soapui/impl/wsdl/submit/filters/HttpRequestFilter.java +++ b/src/java/com/eviware/soapui/imp...
true
true
public void filterHttpRequest( SubmitContext context, HttpRequestInterface<?> request ) { HttpRequestBase httpMethod = ( HttpRequestBase )context.getProperty( BaseHttpRequestTransport.HTTP_METHOD ); String path = PropertyExpander.expandProperties( context, request.getPath() ); StringBuffer query = new StringBu...
public void filterHttpRequest( SubmitContext context, HttpRequestInterface<?> request ) { HttpRequestBase httpMethod = ( HttpRequestBase )context.getProperty( BaseHttpRequestTransport.HTTP_METHOD ); String path = PropertyExpander.expandProperties( context, request.getPath() ); StringBuffer query = new StringBu...
diff --git a/src/main/java/com/araeosia/ArcherGames/ScheduledTasks.java b/src/main/java/com/araeosia/ArcherGames/ScheduledTasks.java index a9b9849..8f40f83 100644 --- a/src/main/java/com/araeosia/ArcherGames/ScheduledTasks.java +++ b/src/main/java/com/araeosia/ArcherGames/ScheduledTasks.java @@ -1,189 +1,189 @@ packag...
true
true
public void everySecondCheck() { if (schedulerTaskID != -1) { schedulerTaskID = plugin.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, new Runnable() { public void run() { switch (gameStatus) { case 1: if (plugin.debug) { plugin.log.info((preGameCountdown - currentLoop)...
public void everySecondCheck() { if (schedulerTaskID != -1) { schedulerTaskID = plugin.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, new Runnable() { public void run() { switch (gameStatus) { case 1: if (plugin.debug) { plugin.log.info((preGameCountdown - currentLoop)...
diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java b/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java index eecab9de3..575e31312 100644 --- a/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java +++ b/activemq-broker/src/main/java/o...
false
true
protected void checkSystemUsageLimits() throws IOException { SystemUsage usage = getSystemUsage(); long memLimit = usage.getMemoryUsage().getLimit(); long jvmLimit = Runtime.getRuntime().maxMemory(); if (memLimit > jvmLimit) { usage.getMemoryUsage().setPercentOfJvmHeap(7...
protected void checkSystemUsageLimits() throws IOException { SystemUsage usage = getSystemUsage(); long memLimit = usage.getMemoryUsage().getLimit(); long jvmLimit = Runtime.getRuntime().maxMemory(); if (memLimit > jvmLimit) { usage.getMemoryUsage().setPercentOfJvmHeap(7...
diff --git a/tests/org.jboss.tools.switchyard.ui.bot.test/src/org/jboss/tools/switchyard/ui/bot/test/BPMTest.java b/tests/org.jboss.tools.switchyard.ui.bot.test/src/org/jboss/tools/switchyard/ui/bot/test/BPMTest.java index 45c6fd12..787e3b04 100644 --- a/tests/org.jboss.tools.switchyard.ui.bot.test/src/org/jboss/tools/...
false
true
public void bpmCreationTest() { new WorkbenchShell().maximize(); // Create new Switchyard project, Add support for Bean, BPM new SwitchYardProjectWizard(PROJECT).impl("Bean", "BPM (jBPM)") .groupId(GROUP_ID).packageName(PACKAGE).create(); openFile(PROJECT, PACKAGE_MAIN_RESOURCES, "META-INF", "switchyard.xm...
public void bpmCreationTest() { new WorkbenchShell().maximize(); // Create new Switchyard project, Add support for Bean, BPM new SwitchYardProjectWizard(PROJECT).impl("Bean", "BPM (jBPM)") .groupId(GROUP_ID).packageName(PACKAGE).create(); openFile(PROJECT, PACKAGE_MAIN_RESOURCES, "META-INF", "switchyard.xm...
diff --git a/src/java/org/apache/cassandra/cli/CliClient.java b/src/java/org/apache/cassandra/cli/CliClient.java index d25ebb48..0320d658 100644 --- a/src/java/org/apache/cassandra/cli/CliClient.java +++ b/src/java/org/apache/cassandra/cli/CliClient.java @@ -1,2168 +1,2168 @@ /** * Licensed to the Apache Software Fo...
true
true
private void describeKeySpace(String keySpaceName, KsDef metadata) throws TException { NodeProbe probe = sessionState.getNodeProbe(); // getting compaction manager MBean to displaying index building information CompactionManagerMBean compactionManagerMBean = (probe == null) ? null : pro...
private void describeKeySpace(String keySpaceName, KsDef metadata) throws TException { NodeProbe probe = sessionState.getNodeProbe(); // getting compaction manager MBean to displaying index building information CompactionManagerMBean compactionManagerMBean = (probe == null) ? null : pro...
diff --git a/src/main/java/org/codehaus/gmavenplus/mojo/AbstractGroovydocMojo.java b/src/main/java/org/codehaus/gmavenplus/mojo/AbstractGroovydocMojo.java index b24b1694..7cbe6da6 100644 --- a/src/main/java/org/codehaus/gmavenplus/mojo/AbstractGroovydocMojo.java +++ b/src/main/java/org/codehaus/gmavenplus/mojo/Abstract...
false
true
protected void generateGroovydoc(final FileSet[] sourceDirectories, final File outputDirectory) throws ClassNotFoundException, InvocationTargetException, IllegalAccessException, InstantiationException { // get classes we need with reflection Class<?> groovyDocToolClass = Class.forName("org.codehaus....
protected void generateGroovydoc(final FileSet[] sourceDirectories, final File outputDirectory) throws ClassNotFoundException, InvocationTargetException, IllegalAccessException, InstantiationException { // get classes we need with reflection Class<?> groovyDocToolClass = Class.forName("org.codehaus....
diff --git a/grails/src/commons/grails/util/GrailsUtil.java b/grails/src/commons/grails/util/GrailsUtil.java index db1b5d3e7..b62aa987f 100644 --- a/grails/src/commons/grails/util/GrailsUtil.java +++ b/grails/src/commons/grails/util/GrailsUtil.java @@ -1,196 +1,198 @@ /* Copyright 2004-2005 the original author or auth...
true
true
public static String getEnvironment() { GrailsApplication app = ApplicationHolder.getApplication(); String envName = null; if(app!=null) { envName = (String)app.getMetadata().get(GrailsApplication.ENVIRONMENT); } if(StringUtils.isBlank(envName)) envN...
public static String getEnvironment() { GrailsApplication app = ApplicationHolder.getApplication(); String envName = null; if(app!=null) { Map metadata = app.getMetadata(); if(metadata!=null) envName = (String)metadata.get(GrailsApplication.ENVIRONME...
diff --git a/src/org/openstatic/irc/IrcUser.java b/src/org/openstatic/irc/IrcUser.java index 7be951b..37cbb38 100755 --- a/src/org/openstatic/irc/IrcUser.java +++ b/src/org/openstatic/irc/IrcUser.java @@ -1,427 +1,431 @@ package org.openstatic.irc; import java.util.Enumeration; import java.util.Vector; public c...
true
true
public void onGatewayCommand(IRCMessage cmd) { // we only want to set the command source if the user is fully authenticated. if (this.isWelcomed()) { cmd.setSource(this.toString()); } // Reset idle time on activity, as long as its not a ping, pong or ...
public void onGatewayCommand(IRCMessage cmd) { // we only want to set the command source if the user is fully authenticated. if (this.isWelcomed()) { cmd.setSource(this.toString()); } // Reset idle time on activity, as long as its not a ping, pong or ...
diff --git a/gov.va.med.iss.meditor/src/gov/va/med/iss/meditor/utils/RoutineChangedDialog.java b/gov.va.med.iss.meditor/src/gov/va/med/iss/meditor/utils/RoutineChangedDialog.java index e919ff9..1febe66 100644 --- a/gov.va.med.iss.meditor/src/gov/va/med/iss/meditor/utils/RoutineChangedDialog.java +++ b/gov.va.med.iss.me...
false
true
public RoutineChangedDialogData open(String rouName, String infile1, String infile2, boolean isSave, boolean isMult) { result = new RoutineChangedDialogData(); routineName = rouName; isSaveValue = isSave; final Shell shell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL); String strVa...
public RoutineChangedDialogData open(String rouName, String infile1, String infile2, boolean isSave, boolean isMult) { result = new RoutineChangedDialogData(); routineName = rouName; isSaveValue = isSave; final Shell shell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.CENTER); ...
diff --git a/src/main/java/com/od/swing/eventbus/UIEventBus.java b/src/main/java/com/od/swing/eventbus/UIEventBus.java index d77d8bf..7567b3a 100644 --- a/src/main/java/com/od/swing/eventbus/UIEventBus.java +++ b/src/main/java/com/od/swing/eventbus/UIEventBus.java @@ -1,74 +1,74 @@ package com.od.swing.eventbus; im...
true
true
public <E> void fireEvent(final Class<E> listenerClass, final EventSender<E> eventSender) { //run in event thread, if this is not already the event thread UIUtilities.runInDispatchThread( new Runnable() { public void run() { List listeners = listenerCl...
public <E> void fireEvent(final Class<E> listenerClass, final EventSender<E> eventSender) { //run in event thread, if this is not already the event thread UIUtilities.runInDispatchThread( new Runnable() { public void run() { List listeners = getListene...
diff --git a/components/bio-formats/src/loci/formats/in/TillVisionReader.java b/components/bio-formats/src/loci/formats/in/TillVisionReader.java index 50bbe03b0..663cddf6d 100644 --- a/components/bio-formats/src/loci/formats/in/TillVisionReader.java +++ b/components/bio-formats/src/loci/formats/in/TillVisionReader.java...
false
true
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); exposureTimes = new Hashtable<Integer, Double>(); POIService poi = null; try { ServiceFactory factory = new ServiceFactory(); poi = factory.getInstance(POIService.class); } catch (Depende...
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); exposureTimes = new Hashtable<Integer, Double>(); POIService poi = null; try { ServiceFactory factory = new ServiceFactory(); poi = factory.getInstance(POIService.class); } catch (Depende...
diff --git a/webapp/WEB-INF/classes/org/makumba/parade/tools/TriggerFilter.java b/webapp/WEB-INF/classes/org/makumba/parade/tools/TriggerFilter.java index 01e8c98..6d7d71e 100644 --- a/webapp/WEB-INF/classes/org/makumba/parade/tools/TriggerFilter.java +++ b/webapp/WEB-INF/classes/org/makumba/parade/tools/TriggerFilter....
false
true
public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws java.io.IOException, ServletException { ServletRequest origReq = req; PerThreadPrintStream.setEnabled(true); ServletContext ctx = context.getContext(beforeContext); // we create a...
public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws java.io.IOException, ServletException { ServletRequest origReq = req; PerThreadPrintStream.setEnabled(true); ServletContext ctx = context.getContext(beforeContext); // we create a...
diff --git a/src/ufly/frs/Select.java b/src/ufly/frs/Select.java index 6ad9b5a..0495237 100644 --- a/src/ufly/frs/Select.java +++ b/src/ufly/frs/Select.java @@ -1,141 +1,142 @@ package ufly.frs; import java.io.IOException; import java.text.ParsePosition; import java.text.SimpleDateFormat; import java.util.Date; ...
true
true
private void buildPage(String departopt,String returnopt,Integer numPass,HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { List<Flight> FlightList=new Vector<Flight>(); addFlightsToFlightList(FlightList,departopt); if(returnopt!=null) { addFlightsToFlightList(Fligh...
private void buildPage(String departopt,String returnopt,Integer numPass,HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { List<Flight> FlightList=new Vector<Flight>(); addFlightsToFlightList(FlightList,departopt); if(returnopt!=null) { addFlightsToFlightList(Fligh...
diff --git a/src/main/java/hudson/plugins/msbuild/MsBuildBuilder.java b/src/main/java/hudson/plugins/msbuild/MsBuildBuilder.java index 9cd8331..a0fdebc 100644 --- a/src/main/java/hudson/plugins/msbuild/MsBuildBuilder.java +++ b/src/main/java/hudson/plugins/msbuild/MsBuildBuilder.java @@ -1,169 +1,169 @@ package hudson...
true
true
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { ArgumentListBuilder args = new ArgumentListBuilder(); String execName = "msbuild.exe"; MsBuildInstallation ai = getMsBuild(); if (ai == null) { ...
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { ArgumentListBuilder args = new ArgumentListBuilder(); String execName = "msbuild.exe"; MsBuildInstallation ai = getMsBuild(); if (ai == null) { ...
diff --git a/src/de/ub0r/android/websms/WebSMS.java b/src/de/ub0r/android/websms/WebSMS.java index ec094938..7b08f6e1 100644 --- a/src/de/ub0r/android/websms/WebSMS.java +++ b/src/de/ub0r/android/websms/WebSMS.java @@ -1,1764 +1,1769 @@ /* * Copyright (C) 2010 Felix Bechstein, Lado Kumsiashvili * * This file is...
true
true
private Dialog createEmoticonsDialog() { final Dialog d = new Dialog(this); d.setTitle(R.string.emo_); d.setContentView(R.layout.emo); d.setCancelable(true); final GridView gridview = (GridView) d.findViewById(R.id.gridview); gridview.setAdapter(new BaseAdapter() { // references to our images private...
private Dialog createEmoticonsDialog() { final Dialog d = new Dialog(this); d.setTitle(R.string.emo_); d.setContentView(R.layout.emo); d.setCancelable(true); final GridView gridview = (GridView) d.findViewById(R.id.gridview); gridview.setAdapter(new BaseAdapter() { // references to our images private...
diff --git a/src/java/org/apache/cassandra/io/compress/CompressedSequentialWriter.java b/src/java/org/apache/cassandra/io/compress/CompressedSequentialWriter.java index f9af7489..af8ec26d 100644 --- a/src/java/org/apache/cassandra/io/compress/CompressedSequentialWriter.java +++ b/src/java/org/apache/cassandra/io/compre...
true
true
public synchronized void resetAndTruncate(FileMark mark) throws IOException { assert mark instanceof CompressedFileWriterMark; CompressedFileWriterMark realMark = ((CompressedFileWriterMark) mark); // reset position current = realMark.uncDataOffset; if (realMark.chunkO...
public synchronized void resetAndTruncate(FileMark mark) throws IOException { assert mark instanceof CompressedFileWriterMark; CompressedFileWriterMark realMark = ((CompressedFileWriterMark) mark); // reset position current = realMark.uncDataOffset; if (realMark.chunkO...
diff --git a/lib/packetpig/src/main/java/com/packetloop/packetpig/loaders/pcap/packet/DnsPacketRecordReader.java b/lib/packetpig/src/main/java/com/packetloop/packetpig/loaders/pcap/packet/DnsPacketRecordReader.java index 98de335..63cffef 100644 --- a/lib/packetpig/src/main/java/com/packetloop/packetpig/loaders/pcap/pac...
true
true
public boolean nextKeyValue() throws IOException, InterruptedException { if (tupleQueue.size() > 0) { tuple = tupleQueue.remove(0); return true; } try { // keep going until the decoder says it found a good one. PcapPacket packet = null; ...
public boolean nextKeyValue() throws IOException, InterruptedException { if (tupleQueue.size() > 0) { tuple = tupleQueue.remove(0); return true; } try { // keep going until the decoder says it found a good one. PcapPacket packet = null; ...
diff --git a/app/controllers/AdminCategories.java b/app/controllers/AdminCategories.java index de9397e..7212e07 100644 --- a/app/controllers/AdminCategories.java +++ b/app/controllers/AdminCategories.java @@ -1,114 +1,114 @@ package controllers; import java.util.List; import models.Category; import models.Modul...
true
true
public static void edit(@Required Long id, @Required @MaxSize(Util.VARCHAR_SIZE) String name, @MaxSize(Util.TEXT_SIZE) String description) { notFoundIfNull(id); Category category = Category.findByName(name); if(category != null) { if (!category.id.equals(id)) { Validation.addError("name", "...
public static void edit(@Required Long id, @Required @MaxSize(Util.VARCHAR_SIZE) String name, @MaxSize(Util.TEXT_SIZE) String description) { notFoundIfNull(id); Category category = Category.findByName(name); if(category != null) { if (!category.id.equals(id)) { Validation.addError("name", "...
diff --git a/src/org/hopto/seed419/Listeners/MushroomListener.java b/src/org/hopto/seed419/Listeners/MushroomListener.java index e2b4ab6..d662186 100644 --- a/src/org/hopto/seed419/Listeners/MushroomListener.java +++ b/src/org/hopto/seed419/Listeners/MushroomListener.java @@ -1,62 +1,62 @@ package org.hopto.seed419.Li...
true
true
public void onBlockBreak(BlockBreakEvent event) { Material mat = event.getBlock().getType(); Player player = event.getPlayer(); if (mat == Material.RED_MUSHROOM || mat == Material.BROWN_MUSHROOM) { int randomInt = (int) (Math.random()*100); if (randomInt <= 3) { ...
public void onBlockBreak(BlockBreakEvent event) { Material mat = event.getBlock().getType(); Player player = event.getPlayer(); if (mat == Material.RED_MUSHROOM || mat == Material.BROWN_MUSHROOM) { int randomInt = (int) (Math.random()*100); if (randomInt <= 3) { ...
diff --git a/src/craig_proj/DashBoardServlet.java b/src/craig_proj/DashBoardServlet.java index 5799aee..e840515 100644 --- a/src/craig_proj/DashBoardServlet.java +++ b/src/craig_proj/DashBoardServlet.java @@ -1,43 +1,43 @@ package craig_proj; import java.io.IOException; import javax.servlet.RequestDispatcher; ...
true
true
private void doBoth(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); //response.sendRedirect("/WEB-INF/dashboard.jsp"); //HEADER isn't set using this RequestDispatcher rd = request.getRequestDispatcher("WEB-INF/dashboa...
private void doBoth(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); //response.sendRedirect("/WEB-INF/dashboard.jsp"); //HEADER isn't set using this RequestDispatcher rd = request.getRequestDispatcher("WEB-INF/dashboa...
diff --git a/src/main/java/com/hitsoft/mongo/managed/ManagedService.java b/src/main/java/com/hitsoft/mongo/managed/ManagedService.java index 5545988..de5349c 100644 --- a/src/main/java/com/hitsoft/mongo/managed/ManagedService.java +++ b/src/main/java/com/hitsoft/mongo/managed/ManagedService.java @@ -1,143 +1,147 @@ pa...
true
true
public static <T> T fromDBObject(DBObject obj, Class<T> clazz) { T result = null; if (obj != null) { Constructor ctor = getDefaultConstructor(clazz); try { result = (T) ctor.newInstance((Object[]) null); Class currentClass = clazz; while (currentClass != null) { f...
public static <T> T fromDBObject(DBObject obj, Class<T> clazz) { T result = null; if (obj != null) { Constructor ctor = getDefaultConstructor(clazz); try { result = (T) ctor.newInstance((Object[]) null); Class currentClass = clazz; while (currentClass != null) { f...
diff --git a/src/com/google/javascript/jscomp/VarCheck.java b/src/com/google/javascript/jscomp/VarCheck.java index 3b7eeee06..6a44596c0 100644 --- a/src/com/google/javascript/jscomp/VarCheck.java +++ b/src/com/google/javascript/jscomp/VarCheck.java @@ -1,370 +1,371 @@ /* * Copyright 2004 The Closure Compiler Authors...
false
true
public void visit(NodeTraversal t, Node n, Node parent) { if (!n.isName()) { return; } String varName = n.getString(); // Only a function can have an empty name. if (varName.isEmpty()) { Preconditions.checkState(parent.isFunction()); Preconditions.checkState(NodeUtil.isFunction...
public void visit(NodeTraversal t, Node n, Node parent) { if (!n.isName()) { return; } String varName = n.getString(); // Only a function can have an empty name. if (varName.isEmpty()) { Preconditions.checkState(parent.isFunction()); Preconditions.checkState(NodeUtil.isFunction...
diff --git a/src/ch/good2go/Home.java b/src/ch/good2go/Home.java index 4162f19..a5d2433 100644 --- a/src/ch/good2go/Home.java +++ b/src/ch/good2go/Home.java @@ -1,80 +1,80 @@ package ch.good2go; import android.app.TabActivity; import android.content.Intent; import android.content.res.Resources; import android.os...
false
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.location); Resources res = getResources(); // Resource object to get Drawables TabHost tabHost = getTabHost(); // The activity TabHost TabHost.TabSpec spec; // Reusable TabSpec for ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.location); Resources res = getResources(); // Resource object to get Drawables TabHost tabHost = getTabHost(); // The activity TabHost TabHost.TabSpec spec; // Reusable TabSpec for ...
diff --git a/src/hunternif/mc/dota2items/item/BlinkDagger.java b/src/hunternif/mc/dota2items/item/BlinkDagger.java index fae66ba..58967a3 100644 --- a/src/hunternif/mc/dota2items/item/BlinkDagger.java +++ b/src/hunternif/mc/dota2items/item/BlinkDagger.java @@ -1,234 +1,234 @@ package hunternif.mc.dota2items.item; i...
true
true
private boolean blink(ItemStack itemStack, World world, EntityPlayer player, int x, int y, int z) { Entity blinkingEntity; if (player.ridingEntity != null) { blinkingEntity = player.ridingEntity; } else { blinkingEntity = player; } // First of all, check if we are hanging in the air; if so, land. Mat...
private boolean blink(ItemStack itemStack, World world, EntityPlayer player, int x, int y, int z) { Entity blinkingEntity; if (player.ridingEntity != null) { blinkingEntity = player.ridingEntity; } else { blinkingEntity = player; } // First of all, check if we are hanging in the air; if so, land. Mat...
diff --git a/osgi-int/src/main/org/jboss/osgi/plugins/metadata/OSGiParameters.java b/osgi-int/src/main/org/jboss/osgi/plugins/metadata/OSGiParameters.java index dca34bca..e0d4a149 100644 --- a/osgi-int/src/main/org/jboss/osgi/plugins/metadata/OSGiParameters.java +++ b/osgi-int/src/main/org/jboss/osgi/plugins/metadata/O...
true
true
protected <T> T get(String key, ValueCreator<T> creator, T defaultValue) { T value = (T)cachedAttributes.get(key); if (value == null) { Parameter parameter = parameters.get(key); if (parameter != null) { Object paramValue = parameter.getValue(); ...
protected <T> T get(String key, ValueCreator<T> creator, T defaultValue) { T value = (T)cachedAttributes.get(key); if (value == null) { Parameter parameter = parameters.get(key); if (parameter != null) { Object paramValue = parameter.getValue(); ...
diff --git a/src/java/org/apache/hadoop/dfs/DataNode.java b/src/java/org/apache/hadoop/dfs/DataNode.java index 063f241f7..08587fd56 100644 --- a/src/java/org/apache/hadoop/dfs/DataNode.java +++ b/src/java/org/apache/hadoop/dfs/DataNode.java @@ -1,1524 +1,1532 @@ /** * Licensed to the Apache Software Foundation (ASF)...
true
true
private void writeBlock(DataInputStream in) throws IOException { // // Read in the header // DataOutputStream reply = new DataOutputStream(s.getOutputStream()); DataOutputStream out = null; DataOutputStream checksumOut = null; Socket mirrorSock = null; DataOutputStrea...
private void writeBlock(DataInputStream in) throws IOException { // // Read in the header // DataOutputStream reply = new DataOutputStream(s.getOutputStream()); DataOutputStream out = null; DataOutputStream checksumOut = null; Socket mirrorSock = null; DataOutputStrea...
diff --git a/src/ru/cubelife/clearworld/ClearWorld.java b/src/ru/cubelife/clearworld/ClearWorld.java index 15df4d0..5ef731a 100644 --- a/src/ru/cubelife/clearworld/ClearWorld.java +++ b/src/ru/cubelife/clearworld/ClearWorld.java @@ -1,87 +1,88 @@ package ru.cubelife.clearworld; import java.io.File; import java.uti...
true
true
public void onEnable() { enabled = true; cfgFile = new File(getDataFolder(), "config.yml"); cfg = YamlConfiguration.loadConfiguration(cfgFile); loadCfg(); // Загружаем настройки saveCfg(); // Сохраняем настройки PluginManager pm = getServer().getPluginManager(); if(pm.getPlugin("WorldGuard") != nul...
public void onEnable() { enabled = true; cfgFile = new File(getDataFolder(), "config.yml"); cfg = YamlConfiguration.loadConfiguration(cfgFile); loadCfg(); // Загружаем настройки saveCfg(); // Сохраняем настройки PluginManager pm = getServer().getPluginManager(); if(pm.getPlugin("WorldGuard") != nul...
diff --git a/src/java/org/osjava/norbert/NoRobotClient.java b/src/java/org/osjava/norbert/NoRobotClient.java index bc42303..76d24b3 100644 --- a/src/java/org/osjava/norbert/NoRobotClient.java +++ b/src/java/org/osjava/norbert/NoRobotClient.java @@ -1,244 +1,244 @@ /* * Copyright (c) 2003-2005, Henri Yandell * All ...
false
true
private RulesEngine parseTextForUserAgent(String txt, String userAgent) throws NoRobotException { RulesEngine engine = new RulesEngine(); // Classic basic parser style, read an element at a time, // changing a state variable [parsingAllowBlock] // take each line, one at a time ...
private RulesEngine parseTextForUserAgent(String txt, String userAgent) throws NoRobotException { RulesEngine engine = new RulesEngine(); // Classic basic parser style, read an element at a time, // changing a state variable [parsingAllowBlock] // take each line, one at a time ...
diff --git a/src/com/sunlightlabs/android/congress/notifications/finders/BillNewsFinder.java b/src/com/sunlightlabs/android/congress/notifications/finders/BillNewsFinder.java index 3afd2323..efb43530 100644 --- a/src/com/sunlightlabs/android/congress/notifications/finders/BillNewsFinder.java +++ b/src/com/sunlightlabs/...
true
true
public Intent notificationIntent(NotificationEntity entity) { return Utils.billLoadIntent(entity.id, Utils.legislatorTabsIntent() .putExtra("tab", BillTabs.Tabs.news)); }
public Intent notificationIntent(NotificationEntity entity) { return Utils.billLoadIntent(entity.id, Utils.billTabsIntent() .putExtra("tab", BillTabs.Tabs.news)); }
diff --git a/amibe/src/org/jcae/mesh/bora/ds/ResultConstraint.java b/amibe/src/org/jcae/mesh/bora/ds/ResultConstraint.java index 9aa6ec07..68da7cb5 100644 --- a/amibe/src/org/jcae/mesh/bora/ds/ResultConstraint.java +++ b/amibe/src/org/jcae/mesh/bora/ds/ResultConstraint.java @@ -1,294 +1,294 @@ /* jCAE stand for Java C...
true
true
private void combine(Constraint mh, CADShapeEnum d) { ResultConstraint that = createConstraint(mh.getHypothesis(), d); if (that == null) return; if (dimension == null) copyHypothesis(that, d); if (elementType != that.elementType) { logger.debug("Element "+elementType+" and "+that.elementType+" diff...
private void combine(Constraint mh, CADShapeEnum d) { ResultConstraint that = createConstraint(mh.getHypothesis(), d); if (that == null) return; if (dimension == null) copyHypothesis(that, d); if (!elementType.equals(that.elementType)) { logger.debug("Element "+elementType+" and "+that.elementType+...
diff --git a/src/com/nineducks/hereader/ui/NewsItemsFragment.java b/src/com/nineducks/hereader/ui/NewsItemsFragment.java index e3782d4..6742cf4 100644 --- a/src/com/nineducks/hereader/ui/NewsItemsFragment.java +++ b/src/com/nineducks/hereader/ui/NewsItemsFragment.java @@ -1,306 +1,307 @@ package com.nineducks.hereader...
true
true
private void initUI() { Log.d("hereader", "Creating UI"); webViewContainer = (FrameLayout) getActivity().findViewById(R.id.webview_container); mDualPane = webViewContainer != null && webViewContainer.getVisibility() == View.VISIBLE; actionBar = (ActionBar) getActivity().findViewById(R.id.action_bar); action...
private void initUI() { Log.d("hereader", "Creating UI"); webViewContainer = (FrameLayout) getActivity().findViewById(R.id.webview_container); mDualPane = webViewContainer != null && webViewContainer.getVisibility() == View.VISIBLE; actionBar = (ActionBar) getActivity().findViewById(R.id.action_bar); action...
diff --git a/src/main/java/pl/psnc/dl/wf4ever/portal/pages/SparqlEndpointPage.java b/src/main/java/pl/psnc/dl/wf4ever/portal/pages/SparqlEndpointPage.java index 6303093..7881569 100644 --- a/src/main/java/pl/psnc/dl/wf4ever/portal/pages/SparqlEndpointPage.java +++ b/src/main/java/pl/psnc/dl/wf4ever/portal/pages/SparqlE...
true
true
public SparqlEndpointPage(final PageParameters parameters) { super(parameters); add(new MyFeedbackPanel("feedbackPanel")); Form< ? > form = new Form<Void>("form"); add(form); final TextArea<String> queryTA = new TextArea<String>("query", new PropertyModel<String>(this, "query")) { @Override protecte...
public SparqlEndpointPage(final PageParameters parameters) { super(parameters); add(new MyFeedbackPanel("feedbackPanel")); Form< ? > form = new Form<Void>("form"); add(form); final TextArea<String> queryTA = new TextArea<String>("query", new PropertyModel<String>(this, "query")) { @Override protecte...
diff --git a/src/com/dmdirc/addons/ui_swing/framemanager/tree/TreeFrameManager.java b/src/com/dmdirc/addons/ui_swing/framemanager/tree/TreeFrameManager.java index 922dd9bb..1bf62969 100644 --- a/src/com/dmdirc/addons/ui_swing/framemanager/tree/TreeFrameManager.java +++ b/src/com/dmdirc/addons/ui_swing/framemanager/tree...
true
true
public void addWindow(final TreeViewNode parent, final FrameContainer window) { UIUtilities.invokeAndWait(new Runnable() { /** {@inheritDoc} */ @Override public void run() { final NodeLabel label = new NodeLabel(window); final ...
public void addWindow(final TreeViewNode parent, final FrameContainer window) { UIUtilities.invokeAndWait(new Runnable() { /** {@inheritDoc} */ @Override public void run() { final NodeLabel label = new NodeLabel(window); final ...
diff --git a/src/Kode/GUI.java b/src/Kode/GUI.java index a13b72b..fba6fc1 100644 --- a/src/Kode/GUI.java +++ b/src/Kode/GUI.java @@ -1,198 +1,198 @@ package Kode; import java.awt.*; import javax.swing.*; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JFrame; import javax.swing.JM...
true
true
public GUI(String tittel) { //Ramme setDefaultCloseOperation(EXIT_ON_CLOSE); setVisible(true); setTitle(tittel); contentPane.setLayout(layout); setJMenuBar(menuBar); sjakk = new Sjakk(); sjakk.addSjakkListener(sjakkL); timerS = new Timer(); ...
public GUI(String tittel) { //Ramme setDefaultCloseOperation(EXIT_ON_CLOSE); setVisible(true); setTitle(tittel); contentPane.setLayout(layout); setJMenuBar(menuBar); sjakk = new Sjakk(); sjakk.addSjakkListener(sjakkL); timerS = new Timer(); ...
diff --git a/trunk/jbehave/core/src/com/thoughtworks/jbehave/core/responsibility/NotifyingResponsibilityVerifier.java b/trunk/jbehave/core/src/com/thoughtworks/jbehave/core/responsibility/NotifyingResponsibilityVerifier.java index e7c1215d..e5d96f69 100644 --- a/trunk/jbehave/core/src/com/thoughtworks/jbehave/core/resp...
true
true
public Result verifyResponsibility(Listener listener, Method method, Object instance) { try { listener.responsibilityVerificationStarting(method); Result result = doVerifyResponsibility(method, instance); listener.responsibilityVerificationEnding(result, instance); ...
public Result verifyResponsibility(Listener listener, Method method, Object instance) { try { listener.responsibilityVerificationStarting(method); Result result = doVerifyResponsibility(method, instance); result = listener.responsibilityVerificationEnding(result, instance...
diff --git a/src/main/java/com/googlecode/wmbutil/messages/XmlPayload.java b/src/main/java/com/googlecode/wmbutil/messages/XmlPayload.java index 42cc732..d9c403a 100644 --- a/src/main/java/com/googlecode/wmbutil/messages/XmlPayload.java +++ b/src/main/java/com/googlecode/wmbutil/messages/XmlPayload.java @@ -1,290 +1,29...
true
true
public void createXmlDeclaration(String version, String encoding, Boolean standalone) throws MbException { checkReadOnly(); MbElement elm = getMbElement(); if (ElementUtil.isXMLNSC(elm)) { MbElement xmlDecl = elm.createElementAsFirstChild(MbXMLNSC.XML_DECLARATION); xmlDecl....
public void createXmlDeclaration(String version, String encoding, boolean standalone) throws MbException { checkReadOnly(); MbElement elm = getMbElement(); if (ElementUtil.isXMLNSC(elm)) { MbElement xmlDecl = elm.createElementAsFirstChild(MbXMLNSC.XML_DECLARATION); xmlDecl....
diff --git a/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToConverterSuite.java b/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToConverterSuite.java index 570c8d155..976ccd981 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToConverterSuite.java +++ b/src/...
true
true
public static Test suite() { TestSuite suite = new TestSuite(); File directory = POIDataSamples.getDocumentInstance().getFile( "../document" ); for ( final File child : directory.listFiles( new FilenameFilter() { public boolean accept( File dir, Strin...
public static Test suite() { TestSuite suite = new TestSuite(TestWordToConverterSuite.class.getName()); File directory = POIDataSamples.getDocumentInstance().getFile( "../document" ); for ( final File child : directory.listFiles( new FilenameFilter() { ...
diff --git a/atlas-web/src/main/java/ae3/service/structuredquery/AtlasStructuredQueryParser.java b/atlas-web/src/main/java/ae3/service/structuredquery/AtlasStructuredQueryParser.java index 6dac8aa27..df87abb4a 100644 --- a/atlas-web/src/main/java/ae3/service/structuredquery/AtlasStructuredQueryParser.java +++ b/atlas-w...
true
true
static public AtlasStructuredQuery parseRestRequest(HttpServletRequest request, Collection<String> properties, Collection<String> factors) { AtlasStructuredQueryBuilder qb = new AtlasStructuredQueryBuilder(); qb.viewAs(ViewType.LIST); Pattern pexpr = Pattern.compile("^(any|non|up|d(ow)?n|up(...
static public AtlasStructuredQuery parseRestRequest(HttpServletRequest request, Collection<String> properties, Collection<String> factors) { AtlasStructuredQueryBuilder qb = new AtlasStructuredQueryBuilder(); qb.viewAs(ViewType.LIST); Pattern pexpr = Pattern.compile("^(any|non|up|d(ow)?n|up(...
diff --git a/helloworld/src/Smallint.java b/helloworld/src/Smallint.java index ffb4914..2ca23d7 100644 --- a/helloworld/src/Smallint.java +++ b/helloworld/src/Smallint.java @@ -1,7 +1,10 @@ public class Smallint { public int getSmallest (int a, int b){ + if (a < b){ return a; + } + return b; } }
false
true
public int getSmallest (int a, int b){ return a; }
public int getSmallest (int a, int b){ if (a < b){ return a; } return b; }
diff --git a/src/main/java/org/mybatis/spring/SqlSessionTemplate.java b/src/main/java/org/mybatis/spring/SqlSessionTemplate.java index bc3c1bbd..938c9252 100644 --- a/src/main/java/org/mybatis/spring/SqlSessionTemplate.java +++ b/src/main/java/org/mybatis/spring/SqlSessionTemplate.java @@ -1,380 +1,385 @@ /* * Co...
false
true
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { final SqlSession sqlSession = getSqlSession( SqlSessionTemplate.this.sqlSessionFactory, SqlSessionTemplate.this.executorType, SqlSessionTemplate.this.exceptionTranslator); try { Obje...
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { SqlSession sqlSession = getSqlSession( SqlSessionTemplate.this.sqlSessionFactory, SqlSessionTemplate.this.executorType, SqlSessionTemplate.this.exceptionTranslator); try { Object res...
diff --git a/emulator/src/vidhrdw/pengo.java b/emulator/src/vidhrdw/pengo.java index c563900..21e1e44 100644 --- a/emulator/src/vidhrdw/pengo.java +++ b/emulator/src/vidhrdw/pengo.java @@ -1,294 +1,294 @@ /* * ported to v0.36 * using automatic conversion tool v0.04 + manual conversion * converted at : 29-05-2013...
true
true
public static VhUpdatePtr pengo_vh_screenrefresh = new VhUpdatePtr() { public void handler(osd_bitmap bitmap,int full_refresh) { int offs; for (offs = videoram_size[0] - 1; offs > 0; offs--) { if (dirtybuffer[offs]!=0) { int mx,my,sx,sy; dirtybuffer[offs] = 0; ...
public static VhUpdatePtr pengo_vh_screenrefresh = new VhUpdatePtr() { public void handler(osd_bitmap bitmap,int full_refresh) { int offs; for (offs = videoram_size[0] - 1; offs > 0; offs--) { if (dirtybuffer[offs]!=0) { int mx,my,sx,sy; dirtybuffer[offs] = 0; ...
diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java index a3d6f75e4..4b5379ac1 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPCli...
false
true
protected void clientConnectionRun(Socket s) { OutputStream out = null; String targetRequest = null; boolean usingWWWProxy = false; String currentProxy = null; long requestId = ++__requestId; try { out = s.getOutputStream(); BufferedReader br =...
protected void clientConnectionRun(Socket s) { OutputStream out = null; String targetRequest = null; boolean usingWWWProxy = false; String currentProxy = null; long requestId = ++__requestId; try { out = s.getOutputStream(); BufferedReader br =...
diff --git a/tools/pldt/org.eclipse.ptp.pldt.mpi.core/src/org/eclipse/ptp/pldt/mpi/core/actions/RunAnalyseMPIcommandHandler.java b/tools/pldt/org.eclipse.ptp.pldt.mpi.core/src/org/eclipse/ptp/pldt/mpi/core/actions/RunAnalyseMPIcommandHandler.java index 9debb1003..37629c0cc 100644 --- a/tools/pldt/org.eclipse.ptp.pldt.m...
true
true
public ScanReturn doArtifactAnalysis(final ITranslationUnit tu, final List<String> includes) { final ScanReturn msr = new ScanReturn(); final String fileName = tu.getElementName(); ILanguage lang; boolean allowPrefixOnlyMatch = MpiPlugin.getDefault().getPreferenceStore() .getBoolean(MpiIDs.MPI_RECOGNIZE_AP...
public ScanReturn doArtifactAnalysis(final ITranslationUnit tu, final List<String> includes) { final ScanReturn msr = new ScanReturn(); final String fileName = tu.getElementName(); ILanguage lang; boolean allowPrefixOnlyMatch = MpiPlugin.getDefault().getPreferenceStore() .getBoolean(MpiIDs.MPI_RECOGNIZE_AP...
diff --git a/src/main/java/ch/entwine/weblounge/contentrepository/impl/fs/FileSystemContentRepository.java b/src/main/java/ch/entwine/weblounge/contentrepository/impl/fs/FileSystemContentRepository.java index 5557081bd..6fb0c5583 100644 --- a/src/main/java/ch/entwine/weblounge/contentrepository/impl/fs/FileSystemConten...
true
true
protected long index(String resourceType) throws IOException { // Temporary path for rebuilt site String resourceDirectory = resourceType + "s"; String homePath = UrlUtils.concat(repositorySiteRoot.getAbsolutePath(), resourceDirectory); File resourcesRootDirectory = new File(homePath); FileUtils.f...
protected long index(String resourceType) throws IOException { // Temporary path for rebuilt site String resourceDirectory = resourceType + "s"; String homePath = UrlUtils.concat(repositorySiteRoot.getAbsolutePath(), resourceDirectory); File resourcesRootDirectory = new File(homePath); FileUtils.f...
diff --git a/src/me/libraryaddict/Hungergames/Kits/Spiderman.java b/src/me/libraryaddict/Hungergames/Kits/Spiderman.java index ef97776..2b86163 100644 --- a/src/me/libraryaddict/Hungergames/Kits/Spiderman.java +++ b/src/me/libraryaddict/Hungergames/Kits/Spiderman.java @@ -1,95 +1,96 @@ package me.libraryaddict.Hungerg...
true
true
public void onProjectileLaunch(ProjectileLaunchEvent event) { if (event.getEntityType() == EntityType.SNOWBALL) { if (event.getEntity().getShooter() != null && event.getEntity().getShooter() instanceof Player) { Player p = (Player) event.getEntity().getShooter(); ...
public void onProjectileLaunch(ProjectileLaunchEvent event) { if (event.getEntityType() == EntityType.SNOWBALL) { if (event.getEntity().getShooter() != null && event.getEntity().getShooter() instanceof Player) { Player p = (Player) event.getEntity().getShooter(); ...
diff --git a/src/powercrystals/minefactoryreloaded/modhelpers/vanilla/Vanilla.java b/src/powercrystals/minefactoryreloaded/modhelpers/vanilla/Vanilla.java index 93be4e54..48cbd2b1 100644 --- a/src/powercrystals/minefactoryreloaded/modhelpers/vanilla/Vanilla.java +++ b/src/powercrystals/minefactoryreloaded/modhelpers/va...
true
true
public void load(FMLInitializationEvent event) { MFRRegistry.registerPlantable(new PlantableStandard(Block.sapling.blockID, Block.sapling.blockID)); MFRRegistry.registerPlantable(new PlantableStandard(Item.pumpkinSeeds.itemID, Block.pumpkinStem.blockID)); MFRRegistry.registerPlantable(new PlantableStandard(Item...
public void load(FMLInitializationEvent event) { MFRRegistry.registerPlantable(new PlantableStandard(Block.sapling.blockID, Block.sapling.blockID)); MFRRegistry.registerPlantable(new PlantableStandard(Item.pumpkinSeeds.itemID, Block.pumpkinStem.blockID)); MFRRegistry.registerPlantable(new PlantableStandard(Item...
diff --git a/test/jdbc/Connection/ConnTest1.java b/test/jdbc/Connection/ConnTest1.java index ab32232b..2370d74b 100755 --- a/test/jdbc/Connection/ConnTest1.java +++ b/test/jdbc/Connection/ConnTest1.java @@ -1,49 +1,50 @@ //Test connection default rollback mechanism //close the connection without committing the transa...
true
true
public static void main(String[] args) { try { Class.forName("csql.jdbc.JdbcSqlDriver"); Connection con = DriverManager.getConnection("jdbc:csql", "root", "manager"); Statement cStmt = con.createStatement(); int ret =0; cStmt.execute("CREATE TABLE T...
public static void main(String[] args) { try { Class.forName("csql.jdbc.JdbcSqlDriver"); Connection con = DriverManager.getConnection("jdbc:csql", "root", "manager"); con.setAutoCommit( false ); Statement cStmt = con.createStatement(); int ret =0; ...
diff --git a/fog.routing.hrm/src/de/tuilmenau/ics/fog/ui/eclipse/editors/CoordinatorEditor.java b/fog.routing.hrm/src/de/tuilmenau/ics/fog/ui/eclipse/editors/CoordinatorEditor.java index fe19bcdc..ecbd8be3 100644 --- a/fog.routing.hrm/src/de/tuilmenau/ics/fog/ui/eclipse/editors/CoordinatorEditor.java +++ b/fog.routing....
false
true
public void printCluster(Cluster pCluster) { Text overviewText = new Text(mContainer, SWT.BORDER);; overviewText.setText(pCluster.toString()); if(pCluster instanceof IntermediateCluster) { ToolBar tToolbar = new ToolBar(mContainer, SWT.NONE); ToolItem toolItem1 = new ToolItem(tToolbar, SWT.PUSH); ...
public void printCluster(Cluster pCluster) { Text overviewText = new Text(mContainer, SWT.BORDER);; overviewText.setText(pCluster.toString()); if(pCluster instanceof IntermediateCluster) { ToolBar tToolbar = new ToolBar(mContainer, SWT.NONE); ToolItem toolItem1 = new ToolItem(tToolbar, SWT.PUSH); ...
diff --git a/src/master/src/org/drftpd/vfs/DirectoryHandle.java b/src/master/src/org/drftpd/vfs/DirectoryHandle.java index 518637b8..2011f888 100644 --- a/src/master/src/org/drftpd/vfs/DirectoryHandle.java +++ b/src/master/src/org/drftpd/vfs/DirectoryHandle.java @@ -1,979 +1,980 @@ /* * This file is part of DrFTPD, ...
true
true
public void remerge(List<LightRemoteInode> files, RemoteSlave rslave, long lastModified) throws IOException { Iterator<LightRemoteInode> sourceIter = files.iterator(); // source comes pre-sorted from the slave List<InodeHandle> destinationList = null; try { destinationList = new ArrayList<InodeHandle>(ge...
public void remerge(List<LightRemoteInode> files, RemoteSlave rslave, long lastModified) throws IOException { Iterator<LightRemoteInode> sourceIter = files.iterator(); // source comes pre-sorted from the slave List<InodeHandle> destinationList = null; try { destinationList = new ArrayList<InodeHandle>(ge...
diff --git a/cq-component-maven-plugin/src/main/java/com/citytechinc/cq/component/dialog/maker/impl/SelectionWidgetMaker.java b/cq-component-maven-plugin/src/main/java/com/citytechinc/cq/component/dialog/maker/impl/SelectionWidgetMaker.java index b29542a..8a09ef0 100644 --- a/cq-component-maven-plugin/src/main/java/com...
true
true
private static final List<DialogElement> buildSelectionOptionsForField(CtField widgetField, Selection fieldAnnotation, ClassLoader classLoader, ClassPool classPool) throws InvalidComponentFieldException, CannotCompileException, NotFoundException, ClassNotFoundException { List<DialogElement> options = new ArrayList<...
private static final List<DialogElement> buildSelectionOptionsForField(CtField widgetField, Selection fieldAnnotation, ClassLoader classLoader, ClassPool classPool) throws InvalidComponentFieldException, CannotCompileException, NotFoundException, ClassNotFoundException { List<DialogElement> options = new ArrayList<...
diff --git a/ui/web/src/main/java/org/openengsb/ui/web/config/AuditingConfig.java b/ui/web/src/main/java/org/openengsb/ui/web/config/AuditingConfig.java index 1d948462c..80dedb28e 100644 --- a/ui/web/src/main/java/org/openengsb/ui/web/config/AuditingConfig.java +++ b/ui/web/src/main/java/org/openengsb/ui/web/config/Aud...
true
true
public void init() { try { ruleManager.addImport(AuditingDomain.class.getCanonicalName()); ruleManager.addGlobal(AuditingDomain.class.getCanonicalName(), "auditing"); addRule("auditEvent"); List<ServiceManager> serviceManagersForDomain = domain...
public void init() { try { ruleManager.addImport(AuditingDomain.class.getCanonicalName()); try { ruleManager.addGlobal(AuditingDomain.class.getCanonicalName(), "auditing"); } catch (RuntimeException e) { // thrown if there is already one gl...
diff --git a/plugin/src/main/java/hudson/plugins/findbugs/FindBugsPublisher.java b/plugin/src/main/java/hudson/plugins/findbugs/FindBugsPublisher.java index b03400d..40020cf 100644 --- a/plugin/src/main/java/hudson/plugins/findbugs/FindBugsPublisher.java +++ b/plugin/src/main/java/hudson/plugins/findbugs/FindBugsPublis...
true
true
public BuildResult perform(final AbstractBuild<?, ?> build, final PluginLogger logger) throws InterruptedException, IOException { logger.log("Collecting findbugs analysis files..."); String defaultPattern = isMavenBuild(build) ? MAVEN_DEFAULT_PATTERN : ANT_DEFAULT_PATTERN; FilesParser colle...
public BuildResult perform(final AbstractBuild<?, ?> build, final PluginLogger logger) throws InterruptedException, IOException { logger.log("Collecting findbugs analysis files..."); String defaultPattern = isMavenBuild(build) ? MAVEN_DEFAULT_PATTERN : ANT_DEFAULT_PATTERN; FilesParser colle...
diff --git a/src/main/java/me/eccentric_nz/TARDIS/commands/TARDISBookCommands.java b/src/main/java/me/eccentric_nz/TARDIS/commands/TARDISBookCommands.java index 7b3fca565..a7ff6a5bf 100644 --- a/src/main/java/me/eccentric_nz/TARDIS/commands/TARDISBookCommands.java +++ b/src/main/java/me/eccentric_nz/TARDIS/commands/TAR...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { // If the player typed /tardisbook then do the following... if (cmd.getName().equalsIgnoreCase("tardisbook")) { if (sender.hasPermission("tardis.book")) { String first = args[0].toL...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { // If the player typed /tardisbook then do the following... if (cmd.getName().equalsIgnoreCase("tardisbook")) { if (args.length < 1) { return false; } if (se...
diff --git a/HashDatabase/src/org/sleuthkit/autopsy/hashdatabase/HashDbSearchPanel.java b/HashDatabase/src/org/sleuthkit/autopsy/hashdatabase/HashDbSearchPanel.java index f4c7db191..6ee4d79bf 100644 --- a/HashDatabase/src/org/sleuthkit/autopsy/hashdatabase/HashDbSearchPanel.java +++ b/HashDatabase/src/org/sleuthkit/aut...
false
true
private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); hashTable = new javax.swing.JTable(); hashField = new javax.swing.JTextField(); addButton = new javax.swing.JButton(); hashLabel = new javax.swing.JLabel(); cancelButton = new javax.swing.J...
private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); hashTable = new javax.swing.JTable(); hashField = new javax.swing.JTextField(); addButton = new javax.swing.JButton(); hashLabel = new javax.swing.JLabel(); cancelButton = new javax.swing.J...
diff --git a/LNReader/src/com/erakk/lnreader/helper/BakaTsukiWebChromeClient.java b/LNReader/src/com/erakk/lnreader/helper/BakaTsukiWebChromeClient.java index 9b407cd..8673a1d 100644 --- a/LNReader/src/com/erakk/lnreader/helper/BakaTsukiWebChromeClient.java +++ b/LNReader/src/com/erakk/lnreader/helper/BakaTsukiWebChrom...
false
true
public boolean onConsoleMessage (ConsoleMessage consoleMessage) { if(consoleMessage.message().startsWith(HIGHLIGHT_EVENT)) { String data[] = consoleMessage.message().split(":"); BookmarkModel bookmark = new BookmarkModel(); bookmark.setPage(caller.content.getPage()); bookmark.setpIndex(Integer.parseInt(d...
public boolean onConsoleMessage (ConsoleMessage consoleMessage) { if(consoleMessage.message().startsWith(HIGHLIGHT_EVENT)) { String data[] = consoleMessage.message().split(":"); try{ int pIndex = Integer.parseInt(data[1]); BookmarkModel bookmark = new BookmarkModel(); bookmark.setPage(caller.conten...
diff --git a/src/edu/ntnu/idi/goldfish/Main.java b/src/edu/ntnu/idi/goldfish/Main.java index bf090eb..59e7ced 100644 --- a/src/edu/ntnu/idi/goldfish/Main.java +++ b/src/edu/ntnu/idi/goldfish/Main.java @@ -1,76 +1,76 @@ package edu.ntnu.idi.goldfish; import java.io.File; import java.io.IOException; import java.uti...
true
true
public static void main(String[] args) throws IOException, TasteException { //DataModel model = new GroupLensDataModel(new File("data/movielens-1m/ratings.dat.gz")); DataModel dataModel = new GroupLensDataModel(new File("data/sample100/ratings.dat")); Evaluator evaluator = new Evaluator(dataModel); /*...
public static void main(String[] args) throws IOException, TasteException { //DataModel model = new GroupLensDataModel(new File("data/movielens-1m/ratings.dat.gz")); DataModel dataModel = new GroupLensDataModel(new File("datasets/sample100/ratings.dat.gz")); Evaluator evaluator = new Evaluator(dataModel); ...
diff --git a/src/org/sablecc/sablecc/core/Context.java b/src/org/sablecc/sablecc/core/Context.java index f1428af..184753c 100644 --- a/src/org/sablecc/sablecc/core/Context.java +++ b/src/org/sablecc/sablecc/core/Context.java @@ -1,384 +1,388 @@ /* This file is part of SableCC ( http://sablecc.org ). * * See the NO...
true
true
private void resolveUnitsAndAddToSet( List<PUnit> units, Set<IToken> set) { for (PUnit pUnit : units) { if (pUnit instanceof ANameUnit) { ANameUnit unit = (ANameUnit) pUnit; INameDeclaration nameDeclaration = this.grammar ...
private void resolveUnitsAndAddToSet( List<PUnit> units, Set<IToken> set) { for (PUnit pUnit : units) { if (pUnit instanceof ANameUnit) { ANameUnit unit = (ANameUnit) pUnit; INameDeclaration nameDeclaration = this.grammar ...
diff --git a/src/eu/cassandra/sim/entities/people/Activity.java b/src/eu/cassandra/sim/entities/people/Activity.java index 0a14b6b..5d3188a 100644 --- a/src/eu/cassandra/sim/entities/people/Activity.java +++ b/src/eu/cassandra/sim/entities/people/Activity.java @@ -1,350 +1,350 @@ /* Copyright 2011-2013 The Cass...
true
true
public void updateDailySchedule(int tick, PriorityBlockingQueue<Event> queue) { /* * Decide on the number of times the activity is going to be activated * during a day */ ProbabilityDistribution numOfTimesProb; ProbabilityDistribution startProb; ProbabilityDistribution durationProb; Vector<Do...
public void updateDailySchedule(int tick, PriorityBlockingQueue<Event> queue) { /* * Decide on the number of times the activity is going to be activated * during a day */ ProbabilityDistribution numOfTimesProb; ProbabilityDistribution startProb; ProbabilityDistribution durationProb; Vector<Do...
diff --git a/srcj/com/sun/electric/tool/drc/Schematic.java b/srcj/com/sun/electric/tool/drc/Schematic.java index 339ff98fb..e1d9d01f1 100644 --- a/srcj/com/sun/electric/tool/drc/Schematic.java +++ b/srcj/com/sun/electric/tool/drc/Schematic.java @@ -1,659 +1,659 @@ /* -*- tab-width: 4 -*- * * Electric(tm) VLSI Desi...
true
true
private void schematicDoCheck(Netlist netlist, Geometric geom, ErrorGrouper eg) { // Checked already if (nodesChecked.contains(geom)) return; nodesChecked.add(geom); Cell cell = geom.getParent(); if (geom instanceof NodeInst) { NodeInst ni...
private void schematicDoCheck(Netlist netlist, Geometric geom, ErrorGrouper eg) { // Checked already if (nodesChecked.contains(geom)) return; nodesChecked.add(geom); Cell cell = geom.getParent(); if (geom instanceof NodeInst) { NodeInst ni...
diff --git a/src/shoddybattleclient/ChallengeWindow.java b/src/shoddybattleclient/ChallengeWindow.java index 4e9c9f3..ac47280 100644 --- a/src/shoddybattleclient/ChallengeWindow.java +++ b/src/shoddybattleclient/ChallengeWindow.java @@ -1,149 +1,150 @@ /* * To change this template, choose Tools | Templates * and o...
true
true
private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); lstTeam = new javax.swing.JList(); btnLoad = new javax.swing.JButton(); btnChallenge = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); j...
private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); lstTeam = new javax.swing.JList(); btnLoad = new javax.swing.JButton(); btnChallenge = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); se...
diff --git a/mod/jodd-wot/src/jodd/lagarto/adapter/htmlstapler/HtmlStaplerTagAdapter.java b/mod/jodd-wot/src/jodd/lagarto/adapter/htmlstapler/HtmlStaplerTagAdapter.java index 664b90370..0c68500c2 100644 --- a/mod/jodd-wot/src/jodd/lagarto/adapter/htmlstapler/HtmlStaplerTagAdapter.java +++ b/mod/jodd-wot/src/jodd/lagart...
true
true
public void tag(Tag tag) { if (insideConditionalComment == false) { if (tag.getName().equalsIgnoreCase("link")) { String type = tag.getAttributeValue("type", false); if (type == null || type.equalsIgnoreCase("text/css") == true) { String media = tag.getAttributeValue("media", false); if (media...
public void tag(Tag tag) { if (insideConditionalComment == false) { if (tag.getName().equalsIgnoreCase("link")) { String type = tag.getAttributeValue("type", false); if (type != null && type.equalsIgnoreCase("text/css") == true) { String media = tag.getAttributeValue("media", false); if (media...
diff --git a/src/com/hackrgt/katanalocate/MainActivity.java b/src/com/hackrgt/katanalocate/MainActivity.java index 2a9dae4..e6557e1 100644 --- a/src/com/hackrgt/katanalocate/MainActivity.java +++ b/src/com/hackrgt/katanalocate/MainActivity.java @@ -1,133 +1,133 @@ package com.hackrgt.katanalocate; import java.io.Fi...
true
true
protected void onSessionStateChange(SessionState state, Exception exception) { super.onSessionStateChange(state, exception); if (isResumed) { mainFragment.onSessionStateChange(state, exception); if (state.isClosed()) { //Default to SSO login and show dialog if Faceb...
protected void onSessionStateChange(SessionState state, Exception exception) { super.onSessionStateChange(state, exception); if (isResumed) { mainFragment.onSessionStateChange(state, exception); if (state.isClosed()) { //Default to SSO login and show dialog if Faceb...
diff --git a/src/org/geometerplus/zlibrary/ui/android/view/AnimationProvider.java b/src/org/geometerplus/zlibrary/ui/android/view/AnimationProvider.java index ddaf7698..c6f0dc83 100644 --- a/src/org/geometerplus/zlibrary/ui/android/view/AnimationProvider.java +++ b/src/org/geometerplus/zlibrary/ui/android/view/Animatio...
true
true
public void setup(int startX, int startY, int endX, int endY, boolean horizontal) { myStartX = startX; myStartX = startY; myEndX = endX; myEndY = endY; myHorizontal = horizontal; }
public void setup(int startX, int startY, int endX, int endY, boolean horizontal) { myStartX = startX; myStartY = startY; myEndX = endX; myEndY = endY; myHorizontal = horizontal; }
diff --git a/src/testrunner-lib/src/com/robomorphine/test/filtering/FilterPredicate.java b/src/testrunner-lib/src/com/robomorphine/test/filtering/FilterPredicate.java index 503a30e..fa6f90e 100644 --- a/src/testrunner-lib/src/com/robomorphine/test/filtering/FilterPredicate.java +++ b/src/testrunner-lib/src/com/robomorp...
false
true
private void addPredicate(int action, Class<? extends Annotation> annotation, List<Predicate<TestMethod>> orPredicates, List<Predicate<TestMethod>> andPredicates) { /* Special handling for annotations that indicate test type */ if (TestTypeEqualsTo.isTestTypeAnnotation(annotation)) { ...
private void addPredicate(int action, Class<? extends Annotation> annotation, List<Predicate<TestMethod>> orPredicates, List<Predicate<TestMethod>> andPredicates) { /* Special handling for annotations that indicate test type */ if (TestTypeEqualsTo.isTestTypeAnnotation(annotation)) { ...
diff --git a/src/com/mitsugaru/Karmiconomy/DatabaseHandler.java b/src/com/mitsugaru/Karmiconomy/DatabaseHandler.java index e99708a..fcb25db 100644 --- a/src/com/mitsugaru/Karmiconomy/DatabaseHandler.java +++ b/src/com/mitsugaru/Karmiconomy/DatabaseHandler.java @@ -1,937 +1,939 @@ package com.mitsugaru.Karmiconomy; ...
false
true
public int getData(Field field, String name, Item item, String command) { boolean validId = false; int data = -1; int id = getPlayerId(name); if (id == -1) { plugin.getLogger().warning( "Player '" + name + "' not found in master database!"); addPlayer(name); id = getPlayerId(name); if (id !...
public int getData(Field field, String name, Item item, String command) { boolean validId = false; int data = -1; int id = getPlayerId(name); if (id == -1) { plugin.getLogger().warning( "Player '" + name + "' not found in master database!"); addPlayer(name); id = getPlayerId(name); if (id !...
diff --git a/src/main/java/net/alpha01/jwtest/pages/session/SessionsPage.java b/src/main/java/net/alpha01/jwtest/pages/session/SessionsPage.java index 989c0cb..b700238 100644 --- a/src/main/java/net/alpha01/jwtest/pages/session/SessionsPage.java +++ b/src/main/java/net/alpha01/jwtest/pages/session/SessionsPage.java @@ ...
true
true
public SessionsPage(PageParameters params) { super(); if (getSession().getCurrentProject() == null) { error("Nessun progetto selezionato"); setResponsePage(HomePage.class); return; } SqlSessionMapper<SessionMapper> sesMapper = SqlConnection.getSessionMapper(SessionMapper.class); if (!params.get("idS...
public SessionsPage(PageParameters params) { super(); if (getSession().getCurrentProject() == null) { error("Nessun progetto selezionato"); setResponsePage(HomePage.class); return; } SqlSessionMapper<SessionMapper> sesMapper = SqlConnection.getSessionMapper(SessionMapper.class); if (!params.get("idS...
diff --git a/fritzing/Fritzing.diagram/src/org/fritzing/fritzing/diagram/part/FritzingDiagramEditorUtil.java b/fritzing/Fritzing.diagram/src/org/fritzing/fritzing/diagram/part/FritzingDiagramEditorUtil.java index 43a2931f5..e744de3d2 100644 --- a/fritzing/Fritzing.diagram/src/org/fritzing/fritzing/diagram/part/Fritzing...
true
true
public static File getFritzingUserFolder() { File location = new File(System.getProperty("user.home") + "/Fritzing"); // fallback location // taken from Arduinos Base.getDefaultSketchbookFolder(): if (Platform.getOS().equals(Platform.OS_MACOSX)) { try { Class clazz = Class.forName("com.apple.eio.FileMana...
public static File getFritzingUserFolder() { File location = new File(System.getProperty("user.home") + "/Fritzing"); // fallback location // taken from Arduinos Base.getDefaultSketchbookFolder(): if (Platform.getOS().equals(Platform.OS_MACOSX)) { try { Class clazz = Class.forName("com.apple.eio.FileMana...
diff --git a/Kandidat33MobileGame/src/gamestate/PlatformSceneObjectDataSource.java b/Kandidat33MobileGame/src/gamestate/PlatformSceneObjectDataSource.java index a60fa9d..70db673 100644 --- a/Kandidat33MobileGame/src/gamestate/PlatformSceneObjectDataSource.java +++ b/Kandidat33MobileGame/src/gamestate/PlatformSceneObjec...
true
true
public Spatial getSceneObject(){ Geometry geometry; if(this.geometery == null){ Box model = new Box(Vector3f.ZERO,P.platformLength,P.platformHeight,P.platformWidth); geometry = new Geometry("Platform" , model); Material material = new Materia...
public Spatial getSceneObject(){ Geometry geometry; if(this.geometery == null){ Box model = new Box(Vector3f.ZERO,P.platformLength,P.platformHeight,P.platformWidth); geometry = new Geometry("Platform" , model); Material material = new Materia...
diff --git a/src/main/java/net/aufdemrand/denizen/scripts/commands/entity/ShootCommand.java b/src/main/java/net/aufdemrand/denizen/scripts/commands/entity/ShootCommand.java index cd487ac57..76257f8f3 100644 --- a/src/main/java/net/aufdemrand/denizen/scripts/commands/entity/ShootCommand.java +++ b/src/main/java/net/aufd...
false
true
public void execute(final ScriptEntry scriptEntry) throws CommandExecutionException { dEntity originEntity = (dEntity) scriptEntry.getObject("originEntity"); dLocation originLocation = scriptEntry.hasObject("originLocation") ? (dLocation) scriptEntry.getObject("or...
public void execute(final ScriptEntry scriptEntry) throws CommandExecutionException { dEntity originEntity = (dEntity) scriptEntry.getObject("originEntity"); dLocation originLocation = scriptEntry.hasObject("originLocation") ? (dLocation) scriptEntry.getObject("or...
diff --git a/src/main/java/org/primefaces/extensions/component/tooltip/TooltipRenderer.java b/src/main/java/org/primefaces/extensions/component/tooltip/TooltipRenderer.java index dbd2b6a9..ed0cd62d 100644 --- a/src/main/java/org/primefaces/extensions/component/tooltip/TooltipRenderer.java +++ b/src/main/java/org/primef...
false
true
public void encodeEnd(final FacesContext context, final UIComponent component) throws IOException { ResponseWriter writer = context.getResponseWriter(); Tooltip tooltip = (Tooltip) component; String clientId = tooltip.getClientId(context); boolean global = tooltip.isGlobal(); boolean shared = tooltip.isShare...
public void encodeEnd(final FacesContext context, final UIComponent component) throws IOException { ResponseWriter writer = context.getResponseWriter(); Tooltip tooltip = (Tooltip) component; String clientId = tooltip.getClientId(context); boolean global = tooltip.isGlobal(); boolean shared = tooltip.isShare...
diff --git a/src/com/android/browser/TitleBarBase.java b/src/com/android/browser/TitleBarBase.java index ee4a2a68..7e8ea1ac 100644 --- a/src/com/android/browser/TitleBarBase.java +++ b/src/com/android/browser/TitleBarBase.java @@ -1,430 +1,432 @@ /* * Copyright (C) 2010 The Android Open Source Project * * Licens...
true
true
protected void updateAutoLogin(Tab tab, boolean animate) { DeviceAccountLogin login = tab.getDeviceAccountLogin(); if (login != null) { mAutoLoginHandler = login; ContextThemeWrapper wrapper = new ContextThemeWrapper(mContext, android.R.style.Theme_Holo_Li...
protected void updateAutoLogin(Tab tab, boolean animate) { DeviceAccountLogin login = tab.getDeviceAccountLogin(); if (login != null) { mAutoLoginHandler = login; ContextThemeWrapper wrapper = new ContextThemeWrapper(mContext, android.R.style.Theme_Holo_Li...
diff --git a/pluginsource/org/enigma/backend/EnigmaSettings.java b/pluginsource/org/enigma/backend/EnigmaSettings.java index 6acf7a7a..07dd3a9b 100644 --- a/pluginsource/org/enigma/backend/EnigmaSettings.java +++ b/pluginsource/org/enigma/backend/EnigmaSettings.java @@ -1,278 +1,278 @@ /* * Copyright (C) 2010 IsmAva...
true
true
private static List<TargetSelection> findTargets(String target) { ArrayList<TargetSelection> targets = new ArrayList<TargetSelection>(); File f = new File(LGM.workDir.getParentFile(),"ENIGMAsystem"); f = new File(f,"SHELL"); f = new File(f,target); File files[] = f.listFiles(); for (File dir : files) ...
private static List<TargetSelection> findTargets(String target) { ArrayList<TargetSelection> targets = new ArrayList<TargetSelection>(); File f = new File(LGM.workDir.getParentFile(),"ENIGMAsystem"); f = new File(f,"SHELL"); f = new File(f,target); File files[] = f.listFiles(); for (File dir : files) ...
diff --git a/src/main/java/com/photon/phresco/util/PhrescoDynamicLoader.java b/src/main/java/com/photon/phresco/util/PhrescoDynamicLoader.java index 2ca09d6..95be808 100644 --- a/src/main/java/com/photon/phresco/util/PhrescoDynamicLoader.java +++ b/src/main/java/com/photon/phresco/util/PhrescoDynamicLoader.java @@ -1,1...
false
true
public InputStream getResourceAsStream(String fileName) throws PhrescoException { List<Artifact> artifacts = new ArrayList<Artifact>(); String destFile = ""; JarFile jarfile = null; for (ArtifactGroup plugin : plugins) { List<ArtifactInfo> versions = plugin.getVersions(); for (ArtifactInfo artifactInfo ...
public InputStream getResourceAsStream(String fileName) throws PhrescoException { List<Artifact> artifacts = new ArrayList<Artifact>(); Artifact foundArtifact = null; String destFile = ""; JarFile jarfile = null; for (ArtifactGroup plugin : plugins) { List<ArtifactInfo> versions = plugin.getVersions(); ...
diff --git a/TaskListRSF/tool/src/java/org/sakaiproject/tool/tasklist/rsf/TaskListProducer.java b/TaskListRSF/tool/src/java/org/sakaiproject/tool/tasklist/rsf/TaskListProducer.java index 00e526b..35e28e3 100644 --- a/TaskListRSF/tool/src/java/org/sakaiproject/tool/tasklist/rsf/TaskListProducer.java +++ b/TaskListRSF/to...
true
true
public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) { String username = userDirectoryService.getCurrentUser().getDisplayName(); UIOutput.make(tofill, "current-username", username); // Illustrates fetching messages from locator - remaining messages are ...
public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) { String username = userDirectoryService.getCurrentUser().getDisplayName(); UIOutput.make(tofill, "current-username", username); // Illustrates fetching messages from locator - remaining messages are ...
diff --git a/src/database/SQLHelper.java b/src/database/SQLHelper.java index b0268d3..2eefd68 100644 --- a/src/database/SQLHelper.java +++ b/src/database/SQLHelper.java @@ -1,125 +1,125 @@ package database; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.s...
true
true
public static void update(Connection con, String tableName, String[] fieldNamesToUpdate, String[] fieldValuesToUpdate, String rowIdFieldName, String rowIdFieldValue) throws SQLException { if(fieldNamesToUpdate.length != fieldValuesToUpdate.length) throw new IndexOutOfBoundsException("The lengths of the fieldNames...
public static void update(Connection con, String tableName, String[] fieldNamesToUpdate, String[] fieldValuesToUpdate, String rowIdFieldName, String rowIdFieldValue) throws SQLException { if(fieldNamesToUpdate.length != fieldValuesToUpdate.length) throw new IndexOutOfBoundsException("The lengths of the fieldNames...
diff --git a/iphone/test/java/org/openqa/selenium/iphone/IPhoneDriverTestSuite.java b/iphone/test/java/org/openqa/selenium/iphone/IPhoneDriverTestSuite.java index 2ffb449d7..dc425eee9 100644 --- a/iphone/test/java/org/openqa/selenium/iphone/IPhoneDriverTestSuite.java +++ b/iphone/test/java/org/openqa/selenium/iphone/IP...
true
true
public static Test suite() throws Exception { return new TestSuiteBuilder() .addSourceDir("iphone") .addSourceDir("remote") .addSourceDir("common") .usingDriver(TestIPhoneSimulatorDriver.class) .exclude(IPHONE) .exclude(REMOTE) .keepDriverInstance() ...
public static Test suite() throws Exception { return new TestSuiteBuilder() .addSourceDir("iphone") .addSourceDir("common") .usingDriver(TestIPhoneSimulatorDriver.class) .exclude(IPHONE) .exclude(REMOTE) .keepDriverInstance() .includeJavascriptTests() ...
diff --git a/src/cc/osint/graphd/server/GraphCommandExecutor.java b/src/cc/osint/graphd/server/GraphCommandExecutor.java index b140516..b3db9c2 100644 --- a/src/cc/osint/graphd/server/GraphCommandExecutor.java +++ b/src/cc/osint/graphd/server/GraphCommandExecutor.java @@ -1,620 +1,625 @@ package cc.osint.graphd.server...
true
true
protected String execute(Channel responseChannel, String clientId, ConcurrentHashMap<String, String> clientState, String request, String cmd, String[] args) throws Exc...
protected String execute(Channel responseChannel, String clientId, ConcurrentHashMap<String, String> clientState, String request, String cmd, String[] args) throws Exc...
diff --git a/obex/javax/obex/ServerOperation.java b/obex/javax/obex/ServerOperation.java index 12c53b50..1d8a4d66 100644 --- a/obex/javax/obex/ServerOperation.java +++ b/obex/javax/obex/ServerOperation.java @@ -1,721 +1,721 @@ /* * Copyright (c) 2010-2011, Motorola, Inc. * * All rights reserved. * * Redistri...
true
true
public synchronized boolean sendReply(int type) throws IOException { mBodyBuffer.reset(); long id = mListener.getConnectionId(); if (id == -1) { replyHeader.mConnectionID = null; } else { replyHeader.mConnectionID = ObexHelper.convertToByteArray(id); ...
public synchronized boolean sendReply(int type) throws IOException { mBodyBuffer.reset(); long id = mListener.getConnectionId(); if (id == -1) { replyHeader.mConnectionID = null; } else { replyHeader.mConnectionID = ObexHelper.convertToByteArray(id); ...
diff --git a/src/test/java/com/sonyericsson/jenkins/plugins/externalresource/dispatcher/ReleaseRunListenerHudsonTest.java b/src/test/java/com/sonyericsson/jenkins/plugins/externalresource/dispatcher/ReleaseRunListenerHudsonTest.java index 7b7a549..9339876 100644 --- a/src/test/java/com/sonyericsson/jenkins/plugins/exte...
true
true
public void testOnCompleted() throws Exception { FreeStyleProject project = this.createFreeStyleProject("testProject"); Thread.sleep(1000); //TODO remove sleep when race condition is found and fixed. project.setAssignedLabel(new LabelAtom("TEST")); project.getBuildersList().add(new S...
public void testOnCompleted() throws Exception { FreeStyleProject project = this.createFreeStyleProject("testProject"); project.setAssignedLabel(new LabelAtom("TEST")); project.getBuildersList().add(new Shell("sleep 2")); AbstractDeviceSelection selection = new StringDeviceSelection(...
diff --git a/src/main/java/net/frontlinesms/smsdevice/internet/ClickatellInternetService.java b/src/main/java/net/frontlinesms/smsdevice/internet/ClickatellInternetService.java index 729a543..10a39cb 100644 --- a/src/main/java/net/frontlinesms/smsdevice/internet/ClickatellInternetService.java +++ b/src/main/java/net/fr...
true
true
protected void sendSmsDirect(Message message) { LOG.trace("ENTER"); LOG.debug(Library.getLibraryDescription()); LOG.debug("Version: " + Library.getLibraryVersion()); LOG.debug("Sending [" + message.getTextContent() + "] to [" + message.getRecipientMsisdn() + "]"); OutboundMessage oMessage; // FIXME if we...
protected void sendSmsDirect(Message message) { LOG.trace("ENTER"); LOG.debug(Library.getLibraryDescription()); LOG.debug("Version: " + Library.getLibraryVersion()); LOG.debug("Sending [" + message.getTextContent() + "] to [" + message.getRecipientMsisdn() + "]"); OutboundMessage oMessage; // FIXME if we...
diff --git a/src/test/java/com/ning/billing/recurly/TestRecurlyClient.java b/src/test/java/com/ning/billing/recurly/TestRecurlyClient.java index 18aba4f..57f638a 100644 --- a/src/test/java/com/ning/billing/recurly/TestRecurlyClient.java +++ b/src/test/java/com/ning/billing/recurly/TestRecurlyClient.java @@ -1,368 +1,36...
true
true
public void testCreateSubscriptions() throws Exception { // final Account accountData = TestUtils.createRandomAccount(); final BillingInfo billingInfoData = TestUtils.createRandomBillingInfo(); final Plan planData = TestUtils.createRandomPlan(); try { // Create a...
public void testCreateSubscriptions() throws Exception { // final Account accountData = TestUtils.createRandomAccount(); final BillingInfo billingInfoData = TestUtils.createRandomBillingInfo(); final Plan planData = TestUtils.createRandomPlan(); try { // Create a...
diff --git a/conan-ae-services/src/main/java/uk/ac/ebi/fgpt/conan/ae/lsf/AbstractLSFProcess.java b/conan-ae-services/src/main/java/uk/ac/ebi/fgpt/conan/ae/lsf/AbstractLSFProcess.java index 44ceb8f..4239fbe 100644 --- a/conan-ae-services/src/main/java/uk/ac/ebi/fgpt/conan/ae/lsf/AbstractLSFProcess.java +++ b/conan-ae-se...
true
true
public boolean execute(Map<ConanParameter, String> parameters) throws IllegalArgumentException, ProcessExecutionException, InterruptedException { getLog().debug("Executing an LSF process with parameters: " + parameters); int memReq = getMemoryRequirement(parameters); // get emai...
public boolean execute(Map<ConanParameter, String> parameters) throws IllegalArgumentException, ProcessExecutionException, InterruptedException { getLog().debug("Executing an LSF process with parameters: " + parameters); int memReq = getMemoryRequirement(parameters); // get emai...
diff --git a/solr/src/common/org/apache/solr/common/SolrDocumentList.java b/solr/src/common/org/apache/solr/common/SolrDocumentList.java index 9aca8d778..a7f3d4b15 100644 --- a/solr/src/common/org/apache/solr/common/SolrDocumentList.java +++ b/solr/src/common/org/apache/solr/common/SolrDocumentList.java @@ -1,68 +1,68 ...
true
true
public String toString() { return "{numFound="+numFound +",start="+start + (maxScore!=null ? ""+maxScore : "") +",docs="+super.toString() +"}"; }
public String toString() { return "{numFound="+numFound +",start="+start + (maxScore!=null ? ",maxScore="+maxScore : "") +",docs="+super.toString() +"}"; }
diff --git a/hazeltask-core/src/main/java/com/hazeltask/executor/task/HazeltaskTask.java b/hazeltask-core/src/main/java/com/hazeltask/executor/task/HazeltaskTask.java index d8bcb41..fbf32df 100644 --- a/hazeltask-core/src/main/java/com/hazeltask/executor/task/HazeltaskTask.java +++ b/hazeltask-core/src/main/java/com/ha...
false
true
public void run() { TimerContext ctx = taskExecutedTimer.time(); try { if(callTask != null) { if(callTask instanceof HazelcastInstanceAware) { ((HazelcastInstanceAware) callTask).setHazelcastInstance(hazelcastInstance); } this...
public void run() { TimerContext ctx = null; if(taskExecutedTimer != null) ctx = taskExecutedTimer.time(); try { if(callTask != null) { if(callTask instanceof HazelcastInstanceAware) { ((HazelcastInstanceAware) callTask).setHazelcas...
diff --git a/sventon/src/main/java/de/berlios/sventon/web/command/ConfigCommandValidator.java b/sventon/src/main/java/de/berlios/sventon/web/command/ConfigCommandValidator.java index 06bcd65b..cd7f3c0a 100644 --- a/sventon/src/main/java/de/berlios/sventon/web/command/ConfigCommandValidator.java +++ b/sventon/src/main/j...
true
true
public void validate(final Object obj, final Errors errors) { final ConfigCommand command = (ConfigCommand) obj; // Validate 'repository instance name' final String instanceName = command.getName(); if (instanceName != null) { if (!Instance.isValidName(instanceName)) { final String msg ...
public void validate(final Object obj, final Errors errors) { final ConfigCommand command = (ConfigCommand) obj; // Validate 'repository instance name' final String instanceName = command.getName(); if (instanceName != null) { if (!Instance.isValidName(instanceName)) { final String msg ...