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/sobiohazardous/minestrappolation/extradecor/block/BlockGoblet.java b/sobiohazardous/minestrappolation/extradecor/block/BlockGoblet.java index 07d6dcd3..8582c526 100644 --- a/sobiohazardous/minestrappolation/extradecor/block/BlockGoblet.java +++ b/sobiohazardous/minestrappolation/extradecor/block/BlockGoble...
false
true
public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) { int meta = par1World.getBlockMetadata(par2, par3, par4); switch(meta){ case 0: if(par5EntityPlayer.getCurrentEquippedItem() ...
public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) { int meta = par1World.getBlockMetadata(par2, par3, par4); switch(meta){ case 0: if(par5EntityPlayer.getCurrentEquippedItem() ...
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/toc/HrefUtil.java b/org.eclipse.help/src/org/eclipse/help/internal/toc/HrefUtil.java index 2f03bbdca..495e59b3e 100644 --- a/org.eclipse.help/src/org/eclipse/help/internal/toc/HrefUtil.java +++ b/org.eclipse.help/src/org/eclipse/help/internal/toc/HrefUtil.java...
false
true
public final static String normalizeHref(String pluginID, String href) { if (href == null) return null; href = normalizeDirectoryPath(href); if (href.startsWith("/")) //$NON-NLS-1$ // already normalized return href; if (href.startsWith("http:") //$NON-NLS-1$ || href.startsWith("https:") //$NON-NLS...
public final static String normalizeHref(String pluginID, String href) { if (href == null) return null; if (href.startsWith("http:") //$NON-NLS-1$ || href.startsWith("https:") //$NON-NLS-1$ || href.startsWith("file:") //$NON-NLS-1$ || href.startsWith("jar:")) //$NON-NLS-1$ // external doc retu...
diff --git a/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/tcf/core/AbstractChannel.java b/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/tcf/core/AbstractChannel.java index 818f59139..680360a81 100644 --- a/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/tcf/core/AbstractChannel.java +++ b/plugins/org.ecli...
true
true
protected AbstractChannel(IPeer local_peer, IPeer remote_peer) { assert Protocol.isDispatchThread(); this.remote_peer = remote_peer; this.local_peer = local_peer; inp_thread = new Thread() { final byte[] empty_byte_array = new byte[0]; byte[] buf = new byte[...
protected AbstractChannel(IPeer local_peer, IPeer remote_peer) { assert Protocol.isDispatchThread(); this.remote_peer = remote_peer; this.local_peer = local_peer; inp_thread = new Thread() { final byte[] empty_byte_array = new byte[0]; byte[] buf = new byte[...
diff --git a/src/newbieprotect/Storage.java b/src/newbieprotect/Storage.java index 28507a1..5e1730e 100644 --- a/src/newbieprotect/Storage.java +++ b/src/newbieprotect/Storage.java @@ -1,106 +1,107 @@ package newbieprotect; import java.io.File; import java.io.IOException; import java.util.List; import java.util....
false
true
protected boolean isPlayerProtected(String playername) { if (playerprotecttime.containsKey(playername) && System.currentTimeMillis() - playerprotecttime.get(playername) > config.protecttime) { unprotectPlayer(playername); } Player player = Bukkit.getPlayerExact(playername); try { List<String> aregions...
protected boolean isPlayerProtected(String playername) { if (playerprotecttime.containsKey(playername) && System.currentTimeMillis() - playerprotecttime.get(playername) > config.protecttime) { unprotectPlayer(playername); } Player player = Bukkit.getPlayerExact(playername); if (Bukkit.getPluginManager()....
diff --git a/src/main/java/net/praqma/hudson/scm/PucmScm.java b/src/main/java/net/praqma/hudson/scm/PucmScm.java index e2af37d..0d13151 100644 --- a/src/main/java/net/praqma/hudson/scm/PucmScm.java +++ b/src/main/java/net/praqma/hudson/scm/PucmScm.java @@ -1,736 +1,736 @@ package net.praqma.hudson.scm; import hudso...
true
true
public boolean checkout( AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile ) throws IOException, InterruptedException { logger = PraqmaLogger.getLogger(); File rdir = build.getRootDir(); File pdir = build.getProject().getRootDir(); logger.setLocalLog( new F...
public boolean checkout( AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile ) throws IOException, InterruptedException { logger = PraqmaLogger.getLogger(); File rdir = build.getRootDir(); File pdir = build.getProject().getRootDir(); logger.setLocalLog( new F...
diff --git a/src/java/org/apache/cassandra/db/CollationController.java b/src/java/org/apache/cassandra/db/CollationController.java index b59e52616..95042d9d7 100644 --- a/src/java/org/apache/cassandra/db/CollationController.java +++ b/src/java/org/apache/cassandra/db/CollationController.java @@ -1,259 +1,259 @@ /** ...
true
true
private ColumnFamily collectTimeOrderedData() { logger.debug("collectTimeOrderedData"); ISortedColumns.Factory factory = mutableColumns ? ThreadSafeSortedColumns.factory() : TreeMapBackedSortedColumns.factory(); ...
private ColumnFamily collectTimeOrderedData() { logger.debug("collectTimeOrderedData"); ISortedColumns.Factory factory = mutableColumns ? ThreadSafeSortedColumns.factory() : TreeMapBackedSortedColumns.factory(); ...
diff --git a/app/controllers/Execution.java b/app/controllers/Execution.java index a70002a..45b1a90 100644 --- a/app/controllers/Execution.java +++ b/app/controllers/Execution.java @@ -1,327 +1,325 @@ package controllers; import java.util.Arrays; import java.util.Date; import java.util.HashMap; import java.util....
true
true
public static void updateRun(Long runId) { Run run = Lookups.getRun(runId); if (run == null) { notFound(); } // Play can bind Lists of entities as well, using as form input name things like step[id].status and then in the action method List<RunStep> step (make sure it's ...
public static void updateRun(Long runId) { Run run = Lookups.getRun(runId); if (run == null) { notFound(); } // Play can bind Lists of entities as well, using as form input name things like step[id].status and then in the action method List<RunStep> step (make sure it's ...
diff --git a/expenditure-tracking/src/main/java/module/mission/domain/activity/UnCommitFundsActivity.java b/expenditure-tracking/src/main/java/module/mission/domain/activity/UnCommitFundsActivity.java index 046ac028..324477d7 100644 --- a/expenditure-tracking/src/main/java/module/mission/domain/activity/UnCommitFundsAc...
true
true
public boolean isActive(final MissionProcess missionProcess, final User user) { if (!super.isActive(missionProcess, user)) { return false; } if (missionProcess.isCanceled()) { return false; } if (!MissionState.FUND_ALLOCATION.isPending(missionProcess) ...
public boolean isActive(final MissionProcess missionProcess, final User user) { if (!super.isActive(missionProcess, user)) { return false; } if (missionProcess.isCanceled()) { return false; } if (!MissionState.FUND_ALLOCATION.isPending(missionProcess) ...
diff --git a/applications/secore/secore-core/src/java/secore/util/StringUtil.java b/applications/secore/secore-core/src/java/secore/util/StringUtil.java index 9f451013..6281c6b0 100644 --- a/applications/secore/secore-core/src/java/secore/util/StringUtil.java +++ b/applications/secore/secore-core/src/java/secore/util/S...
true
true
public static ResolveRequest buildRequest(String uri) throws SecoreException { log.trace("Building request for URI: " + uri); uri = StringUtil.urldecode(uri); String fullUri = uri; log.trace("Decoded URI: " + uri); String serviceUri = StringUtil.getServiceUrl(uri); uri = StringUtil.stripDef(ur...
public static ResolveRequest buildRequest(String uri) throws SecoreException { log.trace("Building request for URI: " + uri); uri = StringUtil.urldecode(uri); String fullUri = uri; log.trace("Decoded URI: " + uri); String serviceUri = StringUtil.getServiceUrl(uri); uri = StringUtil.stripDef(ur...
diff --git a/pmd/src/net/sourceforge/pmd/lang/java/rule/basic/UselessOverridingMethodRule.java b/pmd/src/net/sourceforge/pmd/lang/java/rule/basic/UselessOverridingMethodRule.java index 685e28e81..b5c70be7b 100644 --- a/pmd/src/net/sourceforge/pmd/lang/java/rule/basic/UselessOverridingMethodRule.java +++ b/pmd/src/net/s...
false
true
public Object visit(ASTMethodDeclaration node, Object data) { // Can skip abstract methods and methods whose only purpose is to // guarantee that the inherited method is not changed by finalizing // them. if (node.isAbstract() || node.isFinal() || node.isNative() || node.isSynchronized()) { return super.vi...
public Object visit(ASTMethodDeclaration node, Object data) { // Can skip abstract methods and methods whose only purpose is to // guarantee that the inherited method is not changed by finalizing // them. if (node.isAbstract() || node.isFinal() || node.isNative() || node.isSynchronized()) { return super.vi...
diff --git a/src/main/java/me/chaseoes/tf2/listeners/TF2DeathListener.java b/src/main/java/me/chaseoes/tf2/listeners/TF2DeathListener.java index b20c961..dd8d81d 100644 --- a/src/main/java/me/chaseoes/tf2/listeners/TF2DeathListener.java +++ b/src/main/java/me/chaseoes/tf2/listeners/TF2DeathListener.java @@ -1,76 +1,79 ...
true
true
public void onDeath(final TF2DeathEvent event) { TF2.getInstance().getServer().getScheduler().scheduleSyncDelayedTask(TF2.getInstance(), new Runnable() { @Override public void run() { final Player player = event.getPlayer(); final GamePlayer playerg = ...
public void onDeath(final TF2DeathEvent event) { TF2.getInstance().getServer().getScheduler().scheduleSyncDelayedTask(TF2.getInstance(), new Runnable() { @Override public void run() { final Player player = event.getPlayer(); final GamePlayer playerg = ...
diff --git a/blobstore-largeblob/src/main/java/org/jclouds/examples/blobstore/largeblob/MainApp.java b/blobstore-largeblob/src/main/java/org/jclouds/examples/blobstore/largeblob/MainApp.java index 169afc8..7e6eccd 100755 --- a/blobstore-largeblob/src/main/java/org/jclouds/examples/blobstore/largeblob/MainApp.java +++ b...
true
true
public static void main(String[] args) throws IOException { if (args.length < PARAMETERS) throw new IllegalArgumentException(INVALID_SYNTAX); // Args String provider = args[0]; if (!Iterables.contains(BlobStoreUtils.getSupportedProviders(), provider)) throw new IllegalArg...
public static void main(String[] args) throws IOException { if (args.length < PARAMETERS) throw new IllegalArgumentException(INVALID_SYNTAX); // Args String provider = args[0]; if (!Iterables.contains(BlobStoreUtils.getSupportedProviders(), provider)) throw new IllegalArg...
diff --git a/webbench/src/com/netease/webbench/blogbench/misc/ParameterGenerator.java b/webbench/src/com/netease/webbench/blogbench/misc/ParameterGenerator.java index 0597d97..791d6df 100644 --- a/webbench/src/com/netease/webbench/blogbench/misc/ParameterGenerator.java +++ b/webbench/src/com/netease/webbench/blogbench/...
true
true
private void doInit(BbTestOptions opt, DbOptions dbOpt) throws Exception { this.titleLenRange = bbTestOpt.getMaxTtlSize() - bbTestOpt.getMinTtlSize() + 1; this.absRange = bbTestOpt.getMaxAbsSize() - bbTestOpt.getMinAbsSize() + 1; this.randomGenerator = new Random(); /* read all blog content files */ readB...
private void doInit(BbTestOptions opt, DbOptions dbOpt) throws Exception { this.titleLenRange = bbTestOpt.getMaxTtlSize() - bbTestOpt.getMinTtlSize() + 1; this.absRange = bbTestOpt.getMaxAbsSize() - bbTestOpt.getMinAbsSize() + 1; this.randomGenerator = new Random(); /* read all blog content files */ readB...
diff --git a/eclipse_files/src/DeviceGraphicsDisplay/GantryGraphicsDisplay.java b/eclipse_files/src/DeviceGraphicsDisplay/GantryGraphicsDisplay.java index 370c2018..19b850e8 100644 --- a/eclipse_files/src/DeviceGraphicsDisplay/GantryGraphicsDisplay.java +++ b/eclipse_files/src/DeviceGraphicsDisplay/GantryGraphicsDispla...
false
true
public void draw(JComponent c, Graphics2D g) { // If robot is at incorrect Y location, first move bot to inital X location if (currentLocation.getY() != destinationLocation.getY() && currentLocation.getX() != Constants.GANTRY_ROBOT_LOC.getX()) { if(currentLocation.getX() < Constants.GANTRY_ROBOT_LOC.getX()) { ...
public void draw(JComponent c, Graphics2D g) { // If robot is at incorrect Y location, first move bot to inital X location if (currentLocation.getY() != destinationLocation.getY() && currentLocation.getX() != Constants.GANTRY_ROBOT_LOC.getX()) { if(currentLocation.getX() < Constants.GANTRY_ROBOT_LOC.getX()) { ...
diff --git a/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/system/swtxy/ImageTrace.java b/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/system/swtxy/ImageTrace.java index 1fb03e31f..7a3ec0e97 100644 --- a/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/system/swtxy/ImageTrace.jav...
false
true
private boolean createScaledImage(ImageScaleType rescaleType, final IProgressMonitor monitor) { if (!imageCreationAllowed) return false; boolean requireImageGeneration = imageData==null || rescaleType==ImageScaleType.FORCE_REIMAGE || rescaleType==Ima...
private boolean createScaledImage(ImageScaleType rescaleType, final IProgressMonitor monitor) { if (!imageCreationAllowed) return false; boolean requireImageGeneration = imageData==null || rescaleType==ImageScaleType.FORCE_REIMAGE || rescaleType==Ima...
diff --git a/common/cpw/mods/fml/relauncher/RelaunchLibraryManager.java b/common/cpw/mods/fml/relauncher/RelaunchLibraryManager.java index 9346c563..3ed09f91 100644 --- a/common/cpw/mods/fml/relauncher/RelaunchLibraryManager.java +++ b/common/cpw/mods/fml/relauncher/RelaunchLibraryManager.java @@ -1,274 +1,274 @@ pack...
false
true
public static void handleLaunch(File mcDir, RelaunchClassLoader actualClassLoader) { List<IFMLLoadingPlugin> loadPlugins = new ArrayList<IFMLLoadingPlugin>(); List<ILibrarySet> libraries = new ArrayList<ILibrarySet>(); for (String s : plugins) { try { ...
public static void handleLaunch(File mcDir, RelaunchClassLoader actualClassLoader) { List<IFMLLoadingPlugin> loadPlugins = new ArrayList<IFMLLoadingPlugin>(); List<ILibrarySet> libraries = new ArrayList<ILibrarySet>(); for (String s : plugins) { try { ...
diff --git a/src/com/android/mms/transaction/MmsSystemEventReceiver.java b/src/com/android/mms/transaction/MmsSystemEventReceiver.java index e152b3a7..92511338 100644 --- a/src/com/android/mms/transaction/MmsSystemEventReceiver.java +++ b/src/com/android/mms/transaction/MmsSystemEventReceiver.java @@ -1,102 +1,105 @@ ...
false
true
public void onReceive(Context context, Intent intent) { if (Log.isLoggable(LogTag.TRANSACTION, Log.VERBOSE)) { Log.v(TAG, "Intent received: " + intent); } String action = intent.getAction(); if (action.equals(Mms.Intents.CONTENT_CHANGED_ACTION)) { Uri changed...
public void onReceive(Context context, Intent intent) { if (Log.isLoggable(LogTag.TRANSACTION, Log.VERBOSE)) { Log.v(TAG, "Intent received: " + intent); } String action = intent.getAction(); if (action.equals(Mms.Intents.CONTENT_CHANGED_ACTION)) { Uri changed...
diff --git a/plugins/net.bioclipse.brunn.ui/src/net/bioclipse/brunn/ui/dialogs/CreatePatientCell.java b/plugins/net.bioclipse.brunn.ui/src/net/bioclipse/brunn/ui/dialogs/CreatePatientCell.java index a99b532..846870f 100644 --- a/plugins/net.bioclipse.brunn.ui/src/net/bioclipse/brunn/ui/dialogs/CreatePatientCell.java ++...
true
true
protected Control createDialogArea(Composite parent) { Composite area = (Composite) super.createDialogArea(parent); Composite container = new Composite(area, SWT.NONE); container.setLayout(new FormLayout()); container.setLayoutData(new GridData(GridData.FILL_BOTH)); final Label label = new Label(container, ...
protected Control createDialogArea(Composite parent) { Composite area = (Composite) super.createDialogArea(parent); Composite container = new Composite(area, SWT.NONE); container.setLayout(new FormLayout()); container.setLayoutData(new GridData(GridData.FILL_BOTH)); final Label label = new Label(container, ...
diff --git a/Client/src/com/mamehub/client/login/LoginDialog.java b/Client/src/com/mamehub/client/login/LoginDialog.java index 2baa1813..73b7bccf 100644 --- a/Client/src/com/mamehub/client/login/LoginDialog.java +++ b/Client/src/com/mamehub/client/login/LoginDialog.java @@ -1,409 +1,405 @@ package com.mamehub.client.l...
true
true
public LoginDialog(ClientHttpServer clientHttpServer) throws IOException { super(); URL u = Utils.getResource(LoginDialog.class, "/MAMEHub.png"); BufferedImage bi = ImageIO.read(u); this.setIconImage(bi); if(OSValidator.isMac()) { com.apple.eawt.Application macApp = com.apple.eawt.Application.getApplicati...
public LoginDialog(ClientHttpServer clientHttpServer) throws IOException { super(); URL u = Utils.getResource(LoginDialog.class, "/MAMEHub.png"); BufferedImage bi = ImageIO.read(u); this.setIconImage(bi); udpReflectionServer = new UDPReflectionServer(); rpcEngine = new RpcEngine(); logger.info("Add...
diff --git a/atlas-web/src/main/java/uk/ac/ebi/gxa/tasks/RepairExperimentTask.java b/atlas-web/src/main/java/uk/ac/ebi/gxa/tasks/RepairExperimentTask.java index 252652725..e342afdee 100644 --- a/atlas-web/src/main/java/uk/ac/ebi/gxa/tasks/RepairExperimentTask.java +++ b/atlas-web/src/main/java/uk/ac/ebi/gxa/tasks/Repai...
false
true
public void start() { final String accession = getTaskSpec().getAccession(); log.info("Repair experiment - task started, checking NetCDF"); final TaskSpec netcdfSpec = LoaderTask.SPEC_UPDATEEXPERIMENT(accession); final TaskStatus netcdfState = taskMan.getTaskStatus(netcdfSpec); ...
public void start() { final String accession = getTaskSpec().getAccession(); log.info("Repair experiment - task started, checking NetCDF"); final TaskSpec netcdfSpec = LoaderTask.SPEC_UPDATEEXPERIMENT(accession); final TaskStatus netcdfState = taskMan.getTaskStatus(netcdfSpec); ...
diff --git a/src/de/cdauth/osm/basic/ChangesetContent.java b/src/de/cdauth/osm/basic/ChangesetContent.java index 473d382..c5a1445 100644 --- a/src/de/cdauth/osm/basic/ChangesetContent.java +++ b/src/de/cdauth/osm/basic/ChangesetContent.java @@ -1,411 +1,417 @@ /* This file is part of OSM Route Manager. OSM...
true
true
public Segment[][] getNodeChanges() throws IOException, SAXException, ParserConfigurationException, APIError, ParseException { Hashtable<Object,Object> old = getPreviousVersions(); Hashtable<String,Node> nodesRemoved = new Hashtable<String,Node>(); // All removed nodes and the old versions of all moved nodes ...
public Segment[][] getNodeChanges() throws IOException, SAXException, ParserConfigurationException, APIError, ParseException { Hashtable<Object,Object> old = getPreviousVersions(); Hashtable<String,Node> nodesRemoved = new Hashtable<String,Node>(); // All removed nodes and the old versions of all moved nodes ...
diff --git a/src/com/markupartist/iglaset/provider/DrinksParser.java b/src/com/markupartist/iglaset/provider/DrinksParser.java index 73589de..4a62a46 100644 --- a/src/com/markupartist/iglaset/provider/DrinksParser.java +++ b/src/com/markupartist/iglaset/provider/DrinksParser.java @@ -1,138 +1,138 @@ package com.markup...
true
true
public void endElement(String uri, String name, String qName) throws SAXException { final String result = mTextBuffer.toString().replace("\n", "").trim(); if (mCurrentDrink != null) { if (name.trim().equals("name")) { mCurrentDrink.setName(result)...
public void endElement(String uri, String name, String qName) throws SAXException { final String result = mTextBuffer.toString().replace("\n", "").trim(); if (mCurrentDrink != null) { if (name.trim().equals("name")) { mCurrentDrink.setName(result)...
diff --git a/src/taberystwyth/controller/JudgeInsertionFrameListener.java b/src/taberystwyth/controller/JudgeInsertionFrameListener.java index a7a5112..f8a608f 100644 --- a/src/taberystwyth/controller/JudgeInsertionFrameListener.java +++ b/src/taberystwyth/controller/JudgeInsertionFrameListener.java @@ -1,80 +1,84 @@ ...
true
true
public void actionPerformed(ActionEvent e) { frame = JudgeInsertionFrame.getInstance(); if (e.getActionCommand().equals("Save")) { try { Connection sql = TabServer.getConnectionPool().getConnection(); synchronized (sql) { String s = "inser...
public void actionPerformed(ActionEvent e) { frame = JudgeInsertionFrame.getInstance(); if (e.getActionCommand().equals("Save")) { try { Connection sql = TabServer.getConnectionPool().getConnection(); synchronized (sql) { String s = "inser...
diff --git a/src/java/net/sf/samtools/SAMRecord.java b/src/java/net/sf/samtools/SAMRecord.java index d5f873f..801cd01 100644 --- a/src/java/net/sf/samtools/SAMRecord.java +++ b/src/java/net/sf/samtools/SAMRecord.java @@ -1,1757 +1,1757 @@ /* * The MIT License * * Copyright (c) 2009 The Broad Institute * * Pe...
true
true
public List<SAMValidationError> isValid() { // ret is only instantiate if there are errors to report, in order to reduce GC in the typical case // in which everything is valid. It's ugly, but more efficient. ArrayList<SAMValidationError> ret = null; if (!getReadPairedFlag()) { ...
public List<SAMValidationError> isValid() { // ret is only instantiate if there are errors to report, in order to reduce GC in the typical case // in which everything is valid. It's ugly, but more efficient. ArrayList<SAMValidationError> ret = null; if (!getReadPairedFlag()) { ...
diff --git a/org.eclipse.mylyn.ide.ui/src/org/eclipse/mylyn/internal/ide/ui/MarkerInterestFilter.java b/org.eclipse.mylyn.ide.ui/src/org/eclipse/mylyn/internal/ide/ui/MarkerInterestFilter.java index 72ac843f3..61b4af7c5 100644 --- a/org.eclipse.mylyn.ide.ui/src/org/eclipse/mylyn/internal/ide/ui/MarkerInterestFilter.jav...
true
true
public boolean select(Viewer viewer, Object parent, Object element) { if (element instanceof MarkerItem) { if (element.getClass().getSimpleName().equals("MarkerCategory")) { //$NON-NLS-1$ try { if (markerCategoryMethod == null) { Class<?> markerCategoryClass = Class.forName("org.eclipse.ui.interna...
public boolean select(Viewer viewer, Object parent, Object element) { if (element instanceof MarkerItem) { if (element.getClass().getSimpleName().equals("MarkerCategory")) { //$NON-NLS-1$ try { if (markerCategoryMethod == null) { Class<?> markerCategoryClass = Class.forName("org.eclipse.ui.interna...
diff --git a/java/modules/core/src/main/java/org/apache/synapse/config/xml/EndpointSerializer.java b/java/modules/core/src/main/java/org/apache/synapse/config/xml/EndpointSerializer.java index 15692b33a..f3cc33cee 100644 --- a/java/modules/core/src/main/java/org/apache/synapse/config/xml/EndpointSerializer.java +++ b/j...
true
true
public static OMElement serializeEndpoint(Endpoint endpt, OMElement parent) { OMElement endpoint = fac.createOMElement("endpoint", synNS); // is this an endpoint ref or an actual endpoint if (endpt.getName() == null && endpt.getRef() != null) { endpoint.addAttribute(fac.createO...
public static OMElement serializeEndpoint(Endpoint endpt, OMElement parent) { OMElement endpoint = fac.createOMElement("endpoint", synNS); // is this an endpoint ref or an actual endpoint if (endpt.getName() == null && endpt.getRef() != null) { endpoint.addAttribute(fac.createO...
diff --git a/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/controller/InteractiveFlexoEditor.java b/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/controller/InteractiveFlexoEditor.java index 1ffb5e464..4faf9ab9b 100644 --- a/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/controller/Interact...
true
true
private <A extends org.openflexo.foundation.action.FlexoAction<A, T1, T2>, T1 extends FlexoModelObject, T2 extends FlexoModelObject> A executeAction( final A action, final EventObject event) { final boolean progressIsShowing = ProgressWindow.hasInstance(); boolean confirmDoAction = runInitializer(action, event)...
private <A extends org.openflexo.foundation.action.FlexoAction<A, T1, T2>, T1 extends FlexoModelObject, T2 extends FlexoModelObject> A executeAction( final A action, final EventObject event) { final boolean progressIsShowing = ProgressWindow.hasInstance(); boolean confirmDoAction = runInitializer(action, event)...
diff --git a/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java b/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java index 7d3e96ba..634aa2f5 100644 --- a/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java +++ b/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java @@ -1,2932 +1,2933 @@ /* * Lic...
true
true
protected XSDocumentInfo constructTrees(Element schemaRoot, String locationHint, XSDDescription desc) { if (schemaRoot == null) return null; String callerTNS = desc.getTargetNamespace(); short referType = desc.getContextType(); XSDocumentInfo currSchemaInfo = null; t...
protected XSDocumentInfo constructTrees(Element schemaRoot, String locationHint, XSDDescription desc) { if (schemaRoot == null) return null; String callerTNS = desc.getTargetNamespace(); short referType = desc.getContextType(); XSDocumentInfo currSchemaInfo = null; t...
diff --git a/src/replicatorg/app/ui/modeling/MoveTool.java b/src/replicatorg/app/ui/modeling/MoveTool.java index 75a80046..c896a5a0 100644 --- a/src/replicatorg/app/ui/modeling/MoveTool.java +++ b/src/replicatorg/app/ui/modeling/MoveTool.java @@ -1,168 +1,168 @@ package replicatorg.app.ui.modeling; import java.awt....
false
true
public JPanel getControls() { JPanel p = new JPanel(new MigLayout("fillx,filly,gap 0")); JButton centerButton = createToolButton("Center","images/center-object.png"); centerButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { parent.getModel().center(); } })...
public JPanel getControls() { JPanel p = new JPanel(new MigLayout("fillx,filly,gap 0")); JButton centerButton = createToolButton("Center","images/center-object.png"); centerButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { parent.getModel().center(); } })...
diff --git a/src/com/bukkit/N4th4/NuxGrief/NGPlayerListener.java b/src/com/bukkit/N4th4/NuxGrief/NGPlayerListener.java index bc2ded6..c1848bb 100644 --- a/src/com/bukkit/N4th4/NuxGrief/NGPlayerListener.java +++ b/src/com/bukkit/N4th4/NuxGrief/NGPlayerListener.java @@ -1,33 +1,36 @@ package com.bukkit.N4th4.NuxGrief; ...
true
true
public void onPlayerInteract(PlayerInteractEvent event) { if (event.getClickedBlock().getType() == Material.CHEST && !plugin.permissions.has(event.getPlayer(), "nuxgrief.interact.chests")) { event.setCancelled(true); } else if (event.getClickedBlock().getType() == Material.FURNACE && !plugin.pe...
public void onPlayerInteract(PlayerInteractEvent event) { if (event.getClickedBlock() == null) { return; } if (event.getClickedBlock().getType() == Material.CHEST && !plugin.permissions.has(event.getPlayer(), "nuxgrief.interact.chests")) { event.setCancelled(true); } else if (ev...
diff --git a/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/util/ModelUtils.java b/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/util/ModelUtils.java index d0c157839..d014a4a23 100644 --- a/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/util/ModelUtils.java +++ b/plugins/org.ecli...
true
true
public static Resource createResource(URI modelURI, ResourceSet resourceSet) { String fileExtension = modelURI.fileExtension(); if (fileExtension.indexOf('.') > 0) fileExtension = fileExtension.substring(fileExtension.indexOf('.') + 1); final Resource.Factory.Registry registry = Resource.Factory.Registry.INS...
public static Resource createResource(URI modelURI, ResourceSet resourceSet) { String fileExtension = modelURI.fileExtension(); if (fileExtension == null || fileExtension.length() == 0) { fileExtension = Resource.Factory.Registry.DEFAULT_EXTENSION; } final Resource.Factory.Registry registry = Resource.Fact...
diff --git a/client/cpw/mods/fml/client/GuiModList.java b/client/cpw/mods/fml/client/GuiModList.java index 1e9d548b..2085f15e 100644 --- a/client/cpw/mods/fml/client/GuiModList.java +++ b/client/cpw/mods/fml/client/GuiModList.java @@ -1,178 +1,180 @@ /* * The FML Forge Mod Loader suite. * Copyright (C) 2012 cpw ...
false
true
public void func_73863_a(int p_571_1_, int p_571_2_, float p_571_3_) { this.modList.drawScreen(p_571_1_, p_571_2_, p_571_3_); this.func_73732_a(this.field_73886_k, "Mod List", this.field_73880_f / 2, 16, 0xFFFFFF); int offset = this.listWidth + 20; if (selectedMod != null) { ...
public void func_73863_a(int p_571_1_, int p_571_2_, float p_571_3_) { this.modList.drawScreen(p_571_1_, p_571_2_, p_571_3_); this.func_73732_a(this.field_73886_k, "Mod List", this.field_73880_f / 2, 16, 0xFFFFFF); int offset = this.listWidth + 20; if (selectedMod != null) { ...
diff --git a/src/DVN-EJB/src/java/edu/harvard/iq/dvn/ingest/dsb/impl/DvnRGraphServiceImpl.java b/src/DVN-EJB/src/java/edu/harvard/iq/dvn/ingest/dsb/impl/DvnRGraphServiceImpl.java index 65160474d..311f95f4e 100644 --- a/src/DVN-EJB/src/java/edu/harvard/iq/dvn/ingest/dsb/impl/DvnRGraphServiceImpl.java +++ b/src/DVN-EJB/s...
false
true
public Map<String, String> execute(DvnRJobRequest sro) { // set the return object Map<String, String> result = new HashMap<String, String>(); try { if ( sro != null ) { dbgLog.fine("sro dump:\n"+ToStringBuilder.reflectionToString(sro, ToStringStyle.MULTI_LINE_STYLE)); ...
public Map<String, String> execute(DvnRJobRequest sro) { // set the return object Map<String, String> result = new HashMap<String, String>(); try { if ( sro != null ) { dbgLog.fine("sro dump:\n"+ToStringBuilder.reflectionToString(sro, ToStringStyle.MULTI_LINE_STYLE)); ...
diff --git a/src/org/shangjiyu/twidere/extension/translator/SettingsActivity.java b/src/org/shangjiyu/twidere/extension/translator/SettingsActivity.java index 2d6ceb8..ab21b0e 100644 --- a/src/org/shangjiyu/twidere/extension/translator/SettingsActivity.java +++ b/src/org/shangjiyu/twidere/extension/translator/SettingsA...
false
true
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { // TODO Auto-generated method stub if (sharedPreferences.getBoolean(getString(R.string.baidu_translate_api_checkbox), false)) { String baiduAPIKey = sharedPreferences.getString(getString(R.string.baidu_client_id_value), ...
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { // TODO Auto-generated method stub if (sharedPreferences.getBoolean(getString(R.string.baidu_translate_api_checkbox), false)) { String baiduAPIKey = sharedPreferences.getString(getString(R.string.baidu_client_id_value), ...
diff --git a/src/org/bennedum/transporter/Teleport.java b/src/org/bennedum/transporter/Teleport.java index 96557d3..db44857 100644 --- a/src/org/bennedum/transporter/Teleport.java +++ b/src/org/bennedum/transporter/Teleport.java @@ -1,797 +1,797 @@ /* * Copyright 2011 frdfsnlght <frdfsnlght@gmail.com>. * * Licen...
true
true
private static Location send(Entity entity, LocalGate fromGate, LocalGate toGate) throws TeleportException { Player player = null; String pin = null; Context ctx = null; if (entity instanceof Player) player = (Player)entity; else if (entity.getPassenger() instanc...
private static Location send(Entity entity, LocalGate fromGate, LocalGate toGate) throws TeleportException { Player player = null; String pin = null; Context ctx = null; if (entity instanceof Player) player = (Player)entity; else if (entity.getPassenger() instanc...
diff --git a/src/net/amunak/bukkit/flywithfood/FlyWithFoodEventListener.java b/src/net/amunak/bukkit/flywithfood/FlyWithFoodEventListener.java index bd29a61..bddf2ab 100644 --- a/src/net/amunak/bukkit/flywithfood/FlyWithFoodEventListener.java +++ b/src/net/amunak/bukkit/flywithfood/FlyWithFoodEventListener.java @@ -1,1...
true
true
public void onPlayerItemConsume(PlayerItemConsumeEvent e) { log.fine("itemConsume fired"); Player p = e.getPlayer(); if (!e.isCancelled() && p.getGameMode().equals(GameMode.SURVIVAL) && this.plugin.config.getBoolean("options.limitFoodConsumption.enable") && p....
public void onPlayerItemConsume(PlayerItemConsumeEvent e) { log.fine("itemConsume fired"); Player p = e.getPlayer(); if (!e.isCancelled() && p.getGameMode().equals(GameMode.SURVIVAL) && this.plugin.config.getBoolean("options.limitFoodConsumption.enable") && p....
diff --git a/core/src/com/google/zxing/common/reedsolomon/GF256.java b/core/src/com/google/zxing/common/reedsolomon/GF256.java index f36caa75..5d7eb9b0 100644 --- a/core/src/com/google/zxing/common/reedsolomon/GF256.java +++ b/core/src/com/google/zxing/common/reedsolomon/GF256.java @@ -1,142 +1,142 @@ /* * Copyright...
true
true
private GF256(int primitive) { exp_table = new int[256]; log_table = new int[256]; int x = 1; for (int i = 0; i < 256; i++) { exp_table[i] = x; x <<= 1; // x = x * 2; we're assuming the generator alpha is 2 if (x >= 0x100) { x ^= primitive; } } for (int i = 0; i...
private GF256(int primitive) { exp_table = new int[256]; log_table = new int[256]; int x = 1; for (int i = 0; i < 256; i++) { exp_table[i] = x; x <<= 1; // x = x * 2; we're assuming the generator alpha is 2 if (x >= 0x100) { x ^= primitive; } } for (int i = 0; i...
diff --git a/src/edu/ames/frc/robot/MotorControl.java b/src/edu/ames/frc/robot/MotorControl.java index a53bbdd..73e7c2a 100644 --- a/src/edu/ames/frc/robot/MotorControl.java +++ b/src/edu/ames/frc/robot/MotorControl.java @@ -1,28 +1,28 @@ /* Currently managed by Tarun Sunkaraneni, and Ben Rose * This class manages a...
true
true
double[] convertHeadingToMotorCommands(double direction, double speed) { double[] motorvalue = new double[3]; /* so, we'll define the direction we want to go as "forward". There are * 3 different points where only two motors will need to run (if the direction * is parallel...
double[] convertHeadingToMotorCommands(double direction, double speed) { double[] motorvalue = new double[3]; /* so, we'll define the direction we want to go as "forward". There are * 3 different points where only two motors will need to run (if the direction * is parallel...
diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/builder/TestAll.java b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/builder/TestAll.java index 40ad5c88..0dadc886 100644 --- a/editor/tools/plugins/com.google.dart.to...
true
true
public static Test suite() { TestSuite suite = new TestSuite("Tests in " + TestAll.class.getPackage().getName()); suite.addTestSuite(CachingArtifactProviderTest.class); // suite.addTestSuite(DartBuilderTest.class); suite.addTestSuite(LocalArtifactProviderTest.class); suite.addTestSuite(RootArtifact...
public static Test suite() { TestSuite suite = new TestSuite("Tests in " + TestAll.class.getPackage().getName()); suite.addTestSuite(CachingArtifactProviderTest.class); // suite.addTestSuite(DartBuilderTest.class); suite.addTestSuite(LocalArtifactProviderTest.class); // suite.addTestSuite(RootArtifa...
diff --git a/src/pl/cougy/MonteCarlo/Test.java b/src/pl/cougy/MonteCarlo/Test.java index c4bd933..17c1f77 100644 --- a/src/pl/cougy/MonteCarlo/Test.java +++ b/src/pl/cougy/MonteCarlo/Test.java @@ -1,38 +1,39 @@ package pl.cougy.MonteCarlo; import java.util.ArrayList; import java.util.Scanner; public class Test ...
true
true
public static void main(String[] args) { @SuppressWarnings("resource") Scanner scanner = new Scanner(System.in); System.out.println("Please enter your expresion to be integrated with MonteCarlo method"); System.out.println("you can use standard notation for example (x*x+y*y) :"); String expression = scanner....
public static void main(String[] args) { @SuppressWarnings("resource") Scanner scanner = new Scanner(System.in); System.out.println("Please enter your expresion to be integrated with MonteCarlo method"); System.out.println("you can use standard notation for example (a*a+b*b), remember to start " + "na...
diff --git a/src/main/java/org/eweb4j/component/dwz/menu/navmenu/SearchNavMenuAction.java b/src/main/java/org/eweb4j/component/dwz/menu/navmenu/SearchNavMenuAction.java index d8a4320..6a17582 100644 --- a/src/main/java/org/eweb4j/component/dwz/menu/navmenu/SearchNavMenuAction.java +++ b/src/main/java/org/eweb4j/compone...
true
true
public String doSearchAndPaging(Map model) { try { model.put("listPage", service.getSearchResult(keyword, pageNum, numPerPage)); } catch (MenuException e) { return dwz.getFailedJson(e.getMessage()).toString(); } return "success"; }
public String doSearchAndPaging(Map model) { try { model.put("listPage", service.getSearchResult(keyword, pageNum, numPerPage)); } catch (MenuException e) { e.printStackTrace(); return dwz.getFailedJson(e.getMessage()).toString(); } return "success"; }
diff --git a/src/com/librelio/base/BaseActivity.java b/src/com/librelio/base/BaseActivity.java index bd0538f..a6dbd40 100644 --- a/src/com/librelio/base/BaseActivity.java +++ b/src/com/librelio/base/BaseActivity.java @@ -1,320 +1,322 @@ package com.librelio.base; import java.io.File; import java.io.FileOutputStrea...
false
true
protected void showAlertDialog(int id){ int msg_id = 0; final int fId = id; switch (id) { case CONNECTION_ALERT:{ msg_id = R.string.connection_failed; break; } case SERVER_ALERT:{ msg_id = R.string.server_error; break; } case DOWNLOAD_ALERT:{ msg_id = R.string.download_failed_please_chec...
protected void showAlertDialog(int id){ int msg_id = 0; final int fId = id; switch (id) { case CONNECTION_ALERT:{ msg_id = R.string.connection_failed; break; } case SERVER_ALERT:{ msg_id = R.string.server_error; break; } case DOWNLOAD_ALERT:{ msg_id = R.string.download_failed_please_chec...
diff --git a/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java b/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java index b224eeb1..fd826bdf 100644 --- a/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java +++ b/src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java @@ -1,666 +1,666 @@ /* * Copyright...
true
true
void addRoadWithoutLoops(Way way, GType gt) { List<Integer> nodeIndices = new ArrayList<Integer>(); List<Coord> points = way.getPoints(); Way trailingWay = null; // make sure the way has nodes at each end points.get(0).incHighwayCount(); points.get(points.size() - 1).incHighwayCount(); // collect the W...
void addRoadWithoutLoops(Way way, GType gt) { List<Integer> nodeIndices = new ArrayList<Integer>(); List<Coord> points = way.getPoints(); Way trailingWay = null; // make sure the way has nodes at each end points.get(0).incHighwayCount(); points.get(points.size() - 1).incHighwayCount(); // collect the W...
diff --git a/src/webrender/java/nextapp/echo2/webrender/output/HtmlDocument.java b/src/webrender/java/nextapp/echo2/webrender/output/HtmlDocument.java index 39397e5a..f338704f 100644 --- a/src/webrender/java/nextapp/echo2/webrender/output/HtmlDocument.java +++ b/src/webrender/java/nextapp/echo2/webrender/output/HtmlDoc...
true
true
public HtmlDocument(String publicId, String systemId, String namespaceUri) { super("html", publicId, systemId, namespaceUri); Document document = getDocument(); Element htmlElement = document.getDocumentElement(); Element headElement = document.createElement("head"); Element ...
public HtmlDocument(String publicId, String systemId, String namespaceUri) { super("html", publicId, systemId, namespaceUri); Document document = getDocument(); Element htmlElement = document.getDocumentElement(); Element headElement = document.createElement("head"); Element ...
diff --git a/user/test/com/google/gwt/dev/jjs/test/CoverageTest.java b/user/test/com/google/gwt/dev/jjs/test/CoverageTest.java index 8493a0d6f..daebfc7e4 100644 --- a/user/test/com/google/gwt/dev/jjs/test/CoverageTest.java +++ b/user/test/com/google/gwt/dev/jjs/test/CoverageTest.java @@ -1,956 +1,956 @@ /* * Copyrig...
false
true
private void testAssertStatement() { // AssertStatement if (!CoverageTest.class.desiredAssertionStatus()) { return; } i = 1; try { assert i == 2; fail(); } catch (AssertionError e) { } try { assert i == 3 : true; fail(); ...
private void testAssertStatement() { // AssertStatement if (!CoverageTest.class.desiredAssertionStatus()) { return; } i = 1; try { assert i == 2; fail(); } catch (AssertionError e) { } try { assert i == 3 : true; fail(); ...
diff --git a/src/main/java/com/googlesource/gerrit/plugins/gitiles/MenuFilter.java b/src/main/java/com/googlesource/gerrit/plugins/gitiles/MenuFilter.java index df5438e..aeeec93 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/gitiles/MenuFilter.java +++ b/src/main/java/com/googlesource/gerrit/plugins/gitiles...
false
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; CurrentUser user = userProvider.get(); List<Object> entries = Lists.newArrayListWithCapacity(2); if (user instan...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; CurrentUser user = userProvider.get(); List<Object> entries = Lists.newArrayListWithCapacity(2); if (user instan...
diff --git a/do_jdbc/src/main/java/data_objects/drivers/AbstractDriverDefinition.java b/do_jdbc/src/main/java/data_objects/drivers/AbstractDriverDefinition.java index d5604e89..28936efb 100644 --- a/do_jdbc/src/main/java/data_objects/drivers/AbstractDriverDefinition.java +++ b/do_jdbc/src/main/java/data_objects/drivers...
true
true
public final IRubyObject getTypecastResultSetValue(Ruby runtime, ResultSet rs, int col, RubyType type) throws SQLException, IOException { // TODO assert to needs to be turned on with the java call // better throw something assert (type != null); // this method does no...
public final IRubyObject getTypecastResultSetValue(Ruby runtime, ResultSet rs, int col, RubyType type) throws SQLException, IOException { // TODO assert to needs to be turned on with the java call // better throw something assert (type != null); // this method does no...
diff --git a/src/filius/gui/anwendungssicht/GUIApplicationTerminalWindow.java b/src/filius/gui/anwendungssicht/GUIApplicationTerminalWindow.java index 4ff18ae..0836637 100644 --- a/src/filius/gui/anwendungssicht/GUIApplicationTerminalWindow.java +++ b/src/filius/gui/anwendungssicht/GUIApplicationTerminalWindow.java @@ ...
true
true
public GUIApplicationTerminalWindow(GUIDesktopPanel desktop, String appName){ super(desktop, appName); this.setMaximizable(false); this.setResizable(false); jobRunning = false; multipleObserverEvents = false; terminalField = new JTextArea(""); terminalField.setEditable(false); terminalField.setCaretCo...
public GUIApplicationTerminalWindow(GUIDesktopPanel desktop, String appName){ super(desktop, appName); this.setMaximizable(false); this.setResizable(false); jobRunning = false; multipleObserverEvents = false; terminalField = new JTextArea(""); terminalField.setEditable(false); terminalField.setCaretCo...
diff --git a/src/galileo/client/StoreNOAA.java b/src/galileo/client/StoreNOAA.java index 33d0982..c29f10f 100644 --- a/src/galileo/client/StoreNOAA.java +++ b/src/galileo/client/StoreNOAA.java @@ -1,126 +1,125 @@ /* Copyright (c) 2013, Colorado State University All rights reserved. Redistribution and use in sourc...
true
true
public static void main(String[] args) throws Exception { if (args.length != 3) { System.out.println("Usage: galileo.client.TextClient " + "<server-hostname> <server-port> <directory-name>"); return; } String serverHostName = args[0]; int serverPort = Integer.parseInt(args[1]); StoreNOAA clie...
public static void main(String[] args) throws Exception { if (args.length != 3) { System.out.println("Usage: galileo.client.TextClient " + "<server-hostname> <server-port> <directory-name>"); return; } String serverHostName = args[0]; int serverPort = Integer.parseInt(args[1]); StoreNOAA clie...
diff --git a/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/NewObjectClassWizard.java b/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/NewObjectClassWizard.java index ba095826c..8fd439575 100644 --- a/s...
true
true
public boolean performFinish() { ObjectClassImpl newOC = new ObjectClassImpl( generalPage.getOidValue() ); newOC.setSchema( generalPage.getSchemaValue() ); newOC.setNames( generalPage.getAliasesValue() ); newOC.setDescription( generalPage.getDescriptionValue() ); newOC.se...
public boolean performFinish() { ObjectClassImpl newOC = new ObjectClassImpl( generalPage.getOidValue() ); newOC.setSchema( generalPage.getSchemaValue() ); newOC.setNames( generalPage.getAliasesValue() ); newOC.setDescription( generalPage.getDescriptionValue() ); newOC.se...
diff --git a/src/main/java/mmo/Chat/MMOChat.java b/src/main/java/mmo/Chat/MMOChat.java index 9777495..eb69921 100644 --- a/src/main/java/mmo/Chat/MMOChat.java +++ b/src/main/java/mmo/Chat/MMOChat.java @@ -1,170 +1,171 @@ /* * This file is part of mmoMinecraft (https://github.com/mmoMinecraftDev). * * mmoMinecraf...
true
true
public void loadConfiguration(Configuration cfg) { cfg.getString("default_channel", "Chat"); if (cfg.getKeys("channel").isEmpty()) { cfg.getBoolean("channel.Chat.enabled", true); cfg.getBoolean("channel.Chat.command", true); cfg.getBoolean("channel.Chat.log", true); cfg.getString("channel.Chat.filters"...
public void loadConfiguration(Configuration cfg) { cfg.getString("default_channel", "Chat"); List<String> keys = cfg.getKeys("channel"); if (keys == null || keys.isEmpty()) { cfg.getBoolean("channel.Chat.enabled", true); cfg.getBoolean("channel.Chat.command", true); cfg.getBoolean("channel.Chat.log", tr...
diff --git a/org.osate.xtext.aadl2.errormodel/src/org/osate/xtext/aadl2/errormodel/linking/EMLinkingService.java b/org.osate.xtext.aadl2.errormodel/src/org/osate/xtext/aadl2/errormodel/linking/EMLinkingService.java index 2492f6cb..e8309910 100644 --- a/org.osate.xtext.aadl2.errormodel/src/org/osate/xtext/aadl2/errormod...
false
true
public List<EObject> getLinkedObjects(EObject context, EReference reference, INode node) throws IllegalNodeException { final EClass requiredType = reference.getEReferenceType(); EObject searchResult = null; if (requiredType == null) return Collections.<EObject> emptyList(); Element cxt = (Element) contex...
public List<EObject> getLinkedObjects(EObject context, EReference reference, INode node) throws IllegalNodeException { final EClass requiredType = reference.getEReferenceType(); EObject searchResult = null; if (requiredType == null) return Collections.<EObject> emptyList(); Element cxt = (Element) contex...
diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnDiffViewer.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnDiffViewer.java index d2d847637..0636d1a10 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnDiffViewer.java +++ b/scm-plugins/scm-...
true
true
public void getDiff(String revision, String path, OutputStream output) throws IOException, RepositoryException { AssertUtil.assertIsNotEmpty(revision); AssertUtil.assertIsNotNull(output); try { SVNURL svnurl = SVNURL.fromFile(directory); if (Util.isNotEmpty(path)) { ...
public void getDiff(String revision, String path, OutputStream output) throws IOException, RepositoryException { AssertUtil.assertIsNotEmpty(revision); AssertUtil.assertIsNotNull(output); try { SVNURL svnurl = SVNURL.fromFile(directory); if (Util.isNotEmpty(path)) { ...
diff --git a/ChallengeSheet.java b/ChallengeSheet.java index 7610c11..51297c3 100644 --- a/ChallengeSheet.java +++ b/ChallengeSheet.java @@ -1,93 +1,93 @@ import java.util.*; import java.nio.file.*; import java.nio.charset.*; public class ChallengeSheet { public static void makeSheet() { Difficulty[] ds ...
true
true
public static void makeSheet() { Difficulty[] ds = { Difficulty.getEasyDifficulty(), Difficulty.getMediumDifficulty(), Difficulty.getHardDifficulty() }; Challenge[] cs = new Challenge[3]; { int found = 0; while (found != 3) { Challenge c = new Challenge(ds[found]); ArrayList<Operato...
public static void makeSheet() { Difficulty[] ds = { Difficulty.getEasyDifficulty(), Difficulty.getMediumDifficulty(), Difficulty.getHardDifficulty() }; Challenge[] cs = new Challenge[3]; { int found = 0; while (found != 3) { Challenge c = new Challenge(ds[found]); ArrayList<Operato...
diff --git a/skype-bot-core/src/main/java/org/zeroturnaround/skypebot/SkypeChatBot.java b/skype-bot-core/src/main/java/org/zeroturnaround/skypebot/SkypeChatBot.java index f0b9b5d..8c8443b 100644 --- a/skype-bot-core/src/main/java/org/zeroturnaround/skypebot/SkypeChatBot.java +++ b/skype-bot-core/src/main/java/org/zerot...
true
true
private static void initConfiguration() { String homeDir = System.getProperty("skypeBotHome", "."); Properties props = new Properties(); File propsFile = new File(new File(homeDir), "personal.properties"); try { if (propsFile.exists()) { props.load(new FileReader(propsFile)); } ...
private static void initConfiguration() { String homeDir = System.getProperty("skypeBotHome", "."); Properties props = new Properties(); File propsFile = new File(new File(homeDir), "personal.properties"); try { if (propsFile.exists()) { props.load(new FileReader(propsFile)); } ...
diff --git a/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/internal/core/BundleResourceHandler.java b/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/internal/core/BundleResourceHandler.java index ef97501d..0de516f3 100644 --- a/bundles/org.eclipse.osgi/defaultAdaptor/src...
false
true
protected void parseURL(URL url, String str, int start, int end) { if (end < start) return; if (url.getPath() != null) // A call to a URL constructor has been made that uses an authorized URL as its context. // Null out bundleEntry because it will not be valid for the new path bundleEntry = null; Str...
protected void parseURL(URL url, String str, int start, int end) { if (end < start) return; if (url.getPath() != null) // A call to a URL constructor has been made that uses an authorized URL as its context. // Null out bundleEntry because it will not be valid for the new path bundleEntry = null; Str...
diff --git a/bundles/org.eclipse.ecf.protocol.nntp.store.derby/src/org/eclipse/ecf/protocol/nntp/store/derby/internal/ArticleDAO.java b/bundles/org.eclipse.ecf.protocol.nntp.store.derby/src/org/eclipse/ecf/protocol/nntp/store/derby/internal/ArticleDAO.java index a8466c4..7a74f1a 100644 --- a/bundles/org.eclipse.ecf.pro...
true
true
private void prepareStatements() throws StoreException { try { getArticleHeader = connection .prepareStatement("select * from articleheader where articleid = ?"); getArticleBody = connection .prepareStatement("select * from articlebody where articleid = ?"); getArticleRange = connection .p...
private void prepareStatements() throws StoreException { try { getArticleHeader = connection .prepareStatement("select * from articleheader where articleid = ?"); getArticleBody = connection .prepareStatement("select * from articlebody where articleid = ?"); getArticleRange = connection .p...
diff --git a/SublimeJava.java b/SublimeJava.java index da622ac..d226054 100644 --- a/SublimeJava.java +++ b/SublimeJava.java @@ -1,555 +1,560 @@ /* Copyright (c) 2012 Fredrik Ehnbom This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any dama...
true
true
public static void main(String... unusedargs) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); boolean first = true; while (true) { try { if (!first) ...
public static void main(String... unusedargs) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); boolean first = true; while (true) { try { if (!first) ...
diff --git a/trunk/jbehave-maven-plugin/src/main/java/org/jbehave/mojo/ScenarioClassLoader.java b/trunk/jbehave-maven-plugin/src/main/java/org/jbehave/mojo/ScenarioClassLoader.java index f36fcfb3..c3c91040 100644 --- a/trunk/jbehave-maven-plugin/src/main/java/org/jbehave/mojo/ScenarioClassLoader.java +++ b/trunk/jbehav...
true
true
public Scenario newScenario(String scenarioClassName) { try { Scenario scenario = (Scenario) loadClass(scenarioClassName).getConstructor(ClassLoader.class).newInstance( this); Thread.currentThread().setContextClassLoader(this); return scenario; ...
public Scenario newScenario(String scenarioClassName) { try { Scenario scenario = (Scenario) loadClass(scenarioClassName).getConstructor(ClassLoader.class).newInstance( this); Thread.currentThread().setContextClassLoader(this); return scenario; ...
diff --git a/Core/SDK/org.emftext.sdk.codegen.resource.ui/src/org/emftext/sdk/codegen/resource/ui/generators/ui/ToggleCommentHandlerGenerator.java b/Core/SDK/org.emftext.sdk.codegen.resource.ui/src/org/emftext/sdk/codegen/resource/ui/generators/ui/ToggleCommentHandlerGenerator.java index a03e1e9a1..60c17b33f 100644 ---...
true
true
private void addExecuteMethod(JavaComposite sc) { sc.add("public Object execute(" + EXECUTION_EVENT(sc) + " event) throws " + EXECUTION_EXCEPTION(sc) + " {"); sc.add(I_EDITOR_PART(sc) + " editorPart = " + HANDLER_UTIL(sc) + ".getActiveEditor(event);"); sc.add(editorClassName + " editor = null;"); sc.addLineBre...
private void addExecuteMethod(JavaComposite sc) { sc.add("public Object execute(" + EXECUTION_EVENT(sc) + " event) throws " + EXECUTION_EXCEPTION(sc) + " {"); sc.add(I_EDITOR_PART(sc) + " editorPart = " + HANDLER_UTIL(sc) + ".getActiveEditor(event);"); sc.add(editorClassName + " editor = null;"); sc.addLineBre...
diff --git a/core/org.eclipse.ptp.core/src/org/eclipse/ptp/rtsystem/simulation/SimulationControlSystem.java b/core/org.eclipse.ptp.core/src/org/eclipse/ptp/rtsystem/simulation/SimulationControlSystem.java index 7d8f43af6..6a92f832c 100644 --- a/core/org.eclipse.ptp.core/src/org/eclipse/ptp/rtsystem/simulation/Simulatio...
true
true
public String run(JobRunConfiguration jobRunConfig) { if (spawned_app_state != null && (spawned_app_state.equals(IPProcess.STARTING) || spawned_app_state .equals(IPProcess.RUNNING))) { System.out .println("Another job already running, unable to start a new one."); return null; } numJobs++; ...
public String run(JobRunConfiguration jobRunConfig) { if (spawned_app_state != null && (spawned_app_state.equals(IPProcess.STARTING) || spawned_app_state .equals(IPProcess.RUNNING))) { System.out .println("Another job already running, unable to start a new one."); return null; } numJobs++; ...
diff --git a/src/test/java/dk/statsbiblioteket/newspaper/md5checker/MD5CheckerComponentTest.java b/src/test/java/dk/statsbiblioteket/newspaper/md5checker/MD5CheckerComponentTest.java index c81a8bd..33682eb 100644 --- a/src/test/java/dk/statsbiblioteket/newspaper/md5checker/MD5CheckerComponentTest.java +++ b/src/test/ja...
false
true
public void testDoWorkOnBatch() throws Exception { MD5CheckerComponent md5CheckerComponent = new MockupIteratorSuper(System.getProperties()); // Run on first batch with one wrong checksum ResultCollector result = new ResultCollector( md5CheckerComponent.getComponentName(), ...
public void testDoWorkOnBatch() throws Exception { MD5CheckerComponent md5CheckerComponent = new MockupIteratorSuper(System.getProperties()); // Run on first batch with one wrong checksum ResultCollector result = new ResultCollector( md5CheckerComponent.getComponentName(), ...
diff --git a/JFTP/src/org/jcooke212/jftp/FSHandler.java b/JFTP/src/org/jcooke212/jftp/FSHandler.java index 23428e3..0449328 100644 --- a/JFTP/src/org/jcooke212/jftp/FSHandler.java +++ b/JFTP/src/org/jcooke212/jftp/FSHandler.java @@ -1,61 +1,62 @@ package org.jcooke212.jftp; import java.io.File; import java.io.IOEx...
true
true
public static void traverseFS(ArrayList<String> list, String target, Context appContext) throws IOException { currentDir += "/" + target; File dir = new File(currentDir); File root = Environment.getExternalStorageDirectory(); if(dir.isDirectory()) { list.clear(); if...
public static void traverseFS(ArrayList<String> list, String target, Context appContext) throws IOException { currentDir += "/" + target; File dir = new File(currentDir); File root = Environment.getExternalStorageDirectory(); if(dir.isDirectory()) { list.clear(); if...
diff --git a/dspace-api/src/main/java/org/dspace/app/statistics/LogAnalyser.java b/dspace-api/src/main/java/org/dspace/app/statistics/LogAnalyser.java index 7bdde4b6f..c551f3330 100644 --- a/dspace-api/src/main/java/org/dspace/app/statistics/LogAnalyser.java +++ b/dspace-api/src/main/java/org/dspace/app/statistics/LogA...
false
true
public static void processLogs(Context context, String myLogDir, String myFileTemplate, String myConfigFile, String myOutFile, Date myStartDate, Date myEndDate, boolean myLookUp) throws IOException...
public static void processLogs(Context context, String myLogDir, String myFileTemplate, String myConfigFile, String myOutFile, Date myStartDate, Date myEndDate, boolean myLookUp) throws IOException...
diff --git a/src/de/raptor2101/GalDroid/Activities/ImageViewActivity.java b/src/de/raptor2101/GalDroid/Activities/ImageViewActivity.java index f816c54..8c8a151 100644 --- a/src/de/raptor2101/GalDroid/Activities/ImageViewActivity.java +++ b/src/de/raptor2101/GalDroid/Activities/ImageViewActivity.java @@ -1,216 +1,216 @@...
false
true
public boolean onTouch(View v, MotionEvent event) { Log.d("ImageViewActivity", "EventAction: " + event.getAction()); switch(event.getAction()) { case MotionEvent.ACTION_DOWN: mTouchStartY = event.getY(); mTouchStartX = event.getX(); mTouchMode = TouchMode.Drag; break; case MotionEvent.ACTION_...
public boolean onTouch(View v, MotionEvent event) { Log.d("ImageViewActivity", "EventAction: " + event.getAction()); switch(event.getAction()) { case MotionEvent.ACTION_DOWN: mTouchStartY = event.getY(); mTouchStartX = event.getX(); mTouchMode = TouchMode.Drag; break; case MotionEvent.ACTION_...
diff --git a/PullPit/src/kea/kme/pullpit/server/services/Import.java b/PullPit/src/kea/kme/pullpit/server/services/Import.java index 0563875..4cfd6eb 100644 --- a/PullPit/src/kea/kme/pullpit/server/services/Import.java +++ b/PullPit/src/kea/kme/pullpit/server/services/Import.java @@ -1,84 +1,88 @@ package kea.kme.pull...
false
true
public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException { try { String isCron = req.getParameter("cron"); if (isCron.equals("true")) PodioObjectHandler.truncateAllPodioTables(); } catch (Exception e) {} res.getWriter().write("HTTP/1.0 200 OK"); res.getWriter().close(); ...
public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException { String isCron = req.getParameter("cron"); if (isCron!=null) { try { PodioObjectHandler.truncateAllPodioTables(); } catch (SQLException e) { e.printStackTrace(System.err); } } else { res.getWriter().writ...
diff --git a/izpack-src/branches/4.3/src/lib/com/izforge/izpack/installer/Installer.java b/izpack-src/branches/4.3/src/lib/com/izforge/izpack/installer/Installer.java index b2bc87bf..7cb324ce 100644 --- a/izpack-src/branches/4.3/src/lib/com/izforge/izpack/installer/Installer.java +++ b/izpack-src/branches/4.3/src/lib/c...
false
true
public static void main(String[] args) { Debug.log(" - Logger initialized at '" + new Date(System.currentTimeMillis()) + "'."); Debug.log(" - commandline args: " + StringTool.stringArrayToSpaceSeparatedString(args)); // OS X tweakings if (System.getProperty("mrj.version") != null) { System.setProperty("co...
public static void main(String[] args) { Debug.log(" - Logger initialized at '" + new Date(System.currentTimeMillis()) + "'."); Debug.log(" - commandline args: " + StringTool.stringArrayToSpaceSeparatedString(args)); // OS X tweakings if (System.getProperty("mrj.version") != null) { System.setProperty("co...
diff --git a/core/src/main/java/hudson/util/CopyOnWriteList.java b/core/src/main/java/hudson/util/CopyOnWriteList.java index c209ce8f8..9f1628252 100644 --- a/core/src/main/java/hudson/util/CopyOnWriteList.java +++ b/core/src/main/java/hudson/util/CopyOnWriteList.java @@ -1,201 +1,203 @@ /* * The MIT License * ...
false
true
public CopyOnWriteList unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { // read the items from xml into a list List items = new ArrayList(); while (reader.hasMoreChildren()) { reader.moveDown(); try { ...
public CopyOnWriteList unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { // read the items from xml into a list List items = new ArrayList(); while (reader.hasMoreChildren()) { reader.moveDown(); try { ...
diff --git a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/DefaultEditorAdaptor.java b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/DefaultEditorAdaptor.java index b20a69b2..bdf0ae1d 100644 --- a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/DefaultEditorAdaptor.java +++ b/...
true
true
public boolean sourceConfigurationFile(final String filename) { final File homeDir = new File(System.getProperty("user.home")); final File config = new File(homeDir, filename); if(config.exists()) { BufferedReader reader = null; try { reader = new Buffere...
public boolean sourceConfigurationFile(final String filename) { final File homeDir = new File(System.getProperty("user.home")); final File config = new File(homeDir, filename); if(config.exists()) { BufferedReader reader = null; try { reader = new Buffere...
diff --git a/src/java/org/xhtmlrenderer/pdf/DocumentSplitter.java b/src/java/org/xhtmlrenderer/pdf/DocumentSplitter.java index c6af0d1e..814d84b3 100644 --- a/src/java/org/xhtmlrenderer/pdf/DocumentSplitter.java +++ b/src/java/org/xhtmlrenderer/pdf/DocumentSplitter.java @@ -1,300 +1,300 @@ /* * {{{ header & license ...
false
true
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { if (_inHead) { _head.startElement(uri, localName, qName, atts); } else if (_inDocument) { if (_depth == 2 && ! _replayedHead) { if (qName.equals(HEAD_EL...
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { if (_inHead) { _head.startElement(uri, localName, qName, atts); } else if (_inDocument) { if (_depth == 2 && ! _replayedHead) { if (HEAD_ELEMENT_NAME.eq...
diff --git a/persistence-plugin/src/test/java/org/jboss/seam/forge/persistence/test/plugins/NewEntityPluginTest.java b/persistence-plugin/src/test/java/org/jboss/seam/forge/persistence/test/plugins/NewEntityPluginTest.java index 5f45dfe3..85043897 100644 --- a/persistence-plugin/src/test/java/org/jboss/seam/forge/persi...
true
true
public void testNewEntity() throws Exception { Project project = getProject(); String entityName = "Goofy"; queueInputLines(""); getShell().execute("new-entity --named " + entityName); String pkg = project.getFacet(PersistenceFacet.class).getEntityPackage() + "." + entityName; ...
public void testNewEntity() throws Exception { Project project = getProject(); String entityName = "Goofy"; queueInputLines(""); getShell().execute("new-entity --named " + entityName); String pkg = project.getFacet(PersistenceFacet.class).getEntityPackage() + "." + entityName; ...
diff --git a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/invitation/internal/OutgoingInvitationProcess.java b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/invitation/internal/OutgoingInvitationProcess.java index 267224232..0fea8e10d 100644 --- a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/invitation/internal/Outgo...
true
true
protected void sendArchive(SubMonitor monitor) { monitor.beginTask("Sending as archive", 100); File archive = null; try { if (getState() == State.CANCELED) { this.toSend.clear(); return; } if (this.toSend.size() == 0) { ...
protected void sendArchive(SubMonitor monitor) { monitor.beginTask("Sending as archive", 100); File archive = null; try { if (getState() == State.CANCELED) { this.toSend.clear(); return; } if (this.toSend.size() == 0) { ...
diff --git a/src/org/olap4j/driver/xmla/XmlaOlap4jConnection.java b/src/org/olap4j/driver/xmla/XmlaOlap4jConnection.java index 3723154..2798f0b 100644 --- a/src/org/olap4j/driver/xmla/XmlaOlap4jConnection.java +++ b/src/org/olap4j/driver/xmla/XmlaOlap4jConnection.java @@ -1,2208 +1,2211 @@ /* // This software is subj...
false
true
public String generateRequest( Context context, MetadataRequest metadataRequest, Object[] restrictions) throws OlapException { final String content = "Data"; final String encoding = proxy.getEncodingCharsetName(); final StringBuilder buf = new StringBu...
public String generateRequest( Context context, MetadataRequest metadataRequest, Object[] restrictions) throws OlapException { final String content = "Data"; final String encoding = proxy.getEncodingCharsetName(); final StringBuilder buf = new StringBu...
diff --git a/ModeratorGui/src/me/heldplayer/ModeratorGui/ReviewCommand.java b/ModeratorGui/src/me/heldplayer/ModeratorGui/ReviewCommand.java index 9062786..6947bce 100644 --- a/ModeratorGui/src/me/heldplayer/ModeratorGui/ReviewCommand.java +++ b/ModeratorGui/src/me/heldplayer/ModeratorGui/ReviewCommand.java @@ -1,85 +1...
false
true
public boolean onCommand(CommandSender sender, Command command, String alias, String[] args) { if (args.length <= 0) { int rowCount = main.getDatabase().find(Lists.class).findRowCount(); String[] results = new String[12]; results[0] = ChatColor.GRAY + "Types: " + ChatColor.YELLOW + "Issue " + ChatColor.DA...
public boolean onCommand(CommandSender sender, Command command, String alias, String[] args) { if (args.length <= 0) { int rowCount = main.getDatabase().find(Lists.class).findRowCount(); String[] results = new String[Math.min(2, Math.min(10, rowCount + 2))]; results[0] = ChatColor.GRAY + "Types: " + ChatC...
diff --git a/java/modules/core/src/main/java/org/apache/synapse/core/axis2/Axis2FlexibleMEPClient.java b/java/modules/core/src/main/java/org/apache/synapse/core/axis2/Axis2FlexibleMEPClient.java index 0972ccc29..ab46cfd89 100644 --- a/java/modules/core/src/main/java/org/apache/synapse/core/axis2/Axis2FlexibleMEPClient....
false
true
public static void send( EndpointDefinition endpoint, org.apache.synapse.MessageContext synapseOutMessageContext) throws AxisFault { boolean separateListener = false; boolean wsSecurityEnabled = false; String wsSecPolicyKey = null; String inboundWsS...
public static void send( EndpointDefinition endpoint, org.apache.synapse.MessageContext synapseOutMessageContext) throws AxisFault { boolean separateListener = false; boolean wsSecurityEnabled = false; String wsSecPolicyKey = null; String inboundWsS...
diff --git a/tool/src/java/org/sakaiproject/evaluation/tool/producers/SummaryProducer.java b/tool/src/java/org/sakaiproject/evaluation/tool/producers/SummaryProducer.java index 3fe3471f..fc7eecbd 100644 --- a/tool/src/java/org/sakaiproject/evaluation/tool/producers/SummaryProducer.java +++ b/tool/src/java/org/sakaiproj...
true
true
public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) { // local variables used in the render logic String currentUserId = externalLogic.getCurrentUserId(); String currentGroup = externalLogic.getCurrentEvalGroup(); boolean userAdmin = externalLogic.isUserAdmin(cu...
public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) { // local variables used in the render logic String currentUserId = externalLogic.getCurrentUserId(); String currentGroup = externalLogic.getCurrentEvalGroup(); boolean userAdmin = externalLogic.isUserAdmin(cu...
diff --git a/src/java/is/idega/idegaweb/pheidippides/presentation/RegistrationRunnerChanger.java b/src/java/is/idega/idegaweb/pheidippides/presentation/RegistrationRunnerChanger.java index a13eab6..421c648 100644 --- a/src/java/is/idega/idegaweb/pheidippides/presentation/RegistrationRunnerChanger.java +++ b/src/java/is...
false
true
protected void initializeComponent(FacesContext context) { IWContext iwc = IWContext.getIWContext(context); if (iwc.isLoggedOn()) { User user = iwc.getCurrentUser(); iwb = getBundle(context, getBundleIdentifier()); Long registrationPK = iwc.isParameterSet(PARAMETER_REGISTRATION) ? Long .parseLong(iw...
protected void initializeComponent(FacesContext context) { IWContext iwc = IWContext.getIWContext(context); if (iwc.isLoggedOn()) { User user = iwc.getCurrentUser(); iwb = getBundle(context, getBundleIdentifier()); Long registrationPK = iwc.isParameterSet(PARAMETER_REGISTRATION) ? Long .parseLong(iw...
diff --git a/src/test/java/se/triad/kickass/exomizer/TestJNA.java b/src/test/java/se/triad/kickass/exomizer/TestJNA.java index 6db30a7..d0b9318 100644 --- a/src/test/java/se/triad/kickass/exomizer/TestJNA.java +++ b/src/test/java/se/triad/kickass/exomizer/TestJNA.java @@ -1,54 +1,54 @@ package se.triad.kickass.exomize...
true
true
public void testCrunch() throws Exception { ExoLibrary exolib = ExoLibrary.INSTANCE; crunch_options options = new crunch_options(null, 65535,65535, 65535, 1, 0); crunch_info info = new crunch_info(); final String txt = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum h...
public void testCrunch() throws Exception { ExoLibrary exolib = ExoLibrary.INSTANCE; crunch_options options = new crunch_options(null, 65535,65535, 65535, 1, 0); crunch_info info = new crunch_info(); final String txt = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum h...
diff --git a/src/de/ueller/midlet/gps/GuiMapFeatures.java b/src/de/ueller/midlet/gps/GuiMapFeatures.java index d1670fe2..3370ec26 100644 --- a/src/de/ueller/midlet/gps/GuiMapFeatures.java +++ b/src/de/ueller/midlet/gps/GuiMapFeatures.java @@ -1,176 +1,176 @@ package de.ueller.midlet.gps; /* * GpsMid - Copyright (c)...
true
true
public GuiMapFeatures(Trace tr) { super(Locale.get("guimapfeatures.MapFeatures")/*Map features*/); this.parent = tr; try { // set choice texts and convert bits from render flag into selection states elems[0] = Locale.get("guimapfeatures.POIs")/*POIs*/; selElems[0]=Configuration.getCfgBitState(Configura...
public GuiMapFeatures(Trace tr) { super(Locale.get("guimapfeatures.MapFeatures")/*Map features*/); this.parent = tr; try { // set choice texts and convert bits from render flag into selection states elems[0] = Locale.get("guimapfeatures.POIs")/*POIs*/; selElems[0]=Configuration.getCfgBitState(Configura...
diff --git a/NCuboid/src/main/java/fr/ribesg/bukkit/ncuboid/listeners/flag/WarpgateFlagListener.java b/NCuboid/src/main/java/fr/ribesg/bukkit/ncuboid/listeners/flag/WarpgateFlagListener.java index e4d2f593..482593f1 100644 --- a/NCuboid/src/main/java/fr/ribesg/bukkit/ncuboid/listeners/flag/WarpgateFlagListener.java +++...
true
true
public void onPlayerMoveBlock(final ExtendedPlayerMoveEvent ext) { final PlayerMoveEvent event = (PlayerMoveEvent) ext.getBaseEvent(); if (!ext.isCustomCancelled()) { if (ext.getToRegion() != null && ext.getToRegion().getFlag(Flag.WARPGATE)) { event.getPlayer().teleport(ext.getToRegion().getLocFlagAtt(FlagA...
public void onPlayerMoveBlock(final ExtendedPlayerMoveEvent ext) { final PlayerMoveEvent event = (PlayerMoveEvent) ext.getBaseEvent(); if (!ext.isCustomCancelled()) { if (ext.getToRegion() != null && ext.getToRegion().getFlag(Flag.WARPGATE)) { event.getPlayer().teleport(ext.getToRegion().getLocFlagAtt(FlagA...
diff --git a/src/main/java/com/laytonsmith/aliasengine/AliasCore.java b/src/main/java/com/laytonsmith/aliasengine/AliasCore.java index c709f303..5c14f4a2 100644 --- a/src/main/java/com/laytonsmith/aliasengine/AliasCore.java +++ b/src/main/java/com/laytonsmith/aliasengine/AliasCore.java @@ -1,345 +1,345 @@ /* * To ch...
true
true
public boolean alias(String command, final CommandSender player, ArrayList<Script> playerCommands) { if (scripts == null) { throw new ConfigRuntimeException("Cannot run alias commands, no config file is loaded", 0, null); } boolean match = false; try { //catch RuntimeEx...
public boolean alias(String command, final CommandSender player, ArrayList<Script> playerCommands) { if (scripts == null) { throw new ConfigRuntimeException("Cannot run alias commands, no config file is loaded", 0, null); } boolean match = false; try { //catch RuntimeEx...
diff --git a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/JerichoParserWrapper.java b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/JerichoParserWrapper.java index 50b7f0fc8..ba723ddff 100644 --- a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/JerichoParserWrapper.java +++ b/KeywordSearch/src/o...
true
true
public void parse() { out = new StringBuilder(); try { Source source = new Source(in); source.fullSequentialParse(); String text; StringBuilder scripts = new StringBuilder(); StringBuilder links = new StringBuilder(); ...
public void parse() { out = new StringBuilder(); try { Source source = new Source(in); source.fullSequentialParse(); String text; StringBuilder scripts = new StringBuilder(); StringBuilder links = new StringBuilder(); ...
diff --git a/src/vm/jvm/runtime/org/perl6/nqp/runtime/StaticCodeInfo.java b/src/vm/jvm/runtime/org/perl6/nqp/runtime/StaticCodeInfo.java index 15d642fa3..557b1fa7d 100644 --- a/src/vm/jvm/runtime/org/perl6/nqp/runtime/StaticCodeInfo.java +++ b/src/vm/jvm/runtime/org/perl6/nqp/runtime/StaticCodeInfo.java @@ -1,207 +1,20...
true
true
public StaticCodeInfo(CompilationUnit compUnit, MethodHandle mh, String uniqueId, String[] oLexicalNames, String[] iLexicalNames, String[] nLexicalNames, String[] sLexicalNames, long[][] handlers, SixModelObject staticCode, short argsExpectation) { ...
public StaticCodeInfo(CompilationUnit compUnit, MethodHandle mh, String uniqueId, String[] oLexicalNames, String[] iLexicalNames, String[] nLexicalNames, String[] sLexicalNames, long[][] handlers, SixModelObject staticCode, short argsExpectation) { ...
diff --git a/portal-lite/src/main/java/de/offis/europeana/mobile/DeviceRecognitionInterceptor.java b/portal-lite/src/main/java/de/offis/europeana/mobile/DeviceRecognitionInterceptor.java index 69426366..02e278b6 100644 --- a/portal-lite/src/main/java/de/offis/europeana/mobile/DeviceRecognitionInterceptor.java +++ b/por...
true
true
public void postHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o, ModelAndView modelAndView) throws Exception { super.postHandle(httpServletRequest, httpServletResponse, o, modelAndView); if (deviceRecognition != null) { String currentViewName = modelAndView....
public void postHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object o, ModelAndView modelAndView) throws Exception { super.postHandle(httpServletRequest, httpServletResponse, o, modelAndView); if (deviceRecognition != null) { String currentViewName = modelAndView....
diff --git a/src/java/org/jdesktop/swingx/plaf/windows/WindowsLookAndFeelAddons.java b/src/java/org/jdesktop/swingx/plaf/windows/WindowsLookAndFeelAddons.java index 70a7d79c..b8d48c17 100644 --- a/src/java/org/jdesktop/swingx/plaf/windows/WindowsLookAndFeelAddons.java +++ b/src/java/org/jdesktop/swingx/plaf/windows/Win...
true
true
public void initialize() { super.initialize(); // fix Issue #1305-swingx: wrapper for core issue #6753637 // set ui property to prevent eating mousePressed when closing popup System.out.println(UIManager.getLookAndFeel().getClass().getName() + UIManager.get("PopupMenu.consumeEventOnC...
public void initialize() { super.initialize(); // fix Issue #1305-swingx: wrapper for core issue #6753637 // set ui property to prevent eating mousePressed when closing popup UIManager.put("PopupMenu.consumeEventOnClose", Boolean.FALSE); }
diff --git a/Water.java b/Water.java index 4c538f5..69321a6 100644 --- a/Water.java +++ b/Water.java @@ -1,38 +1,38 @@ import greenfoot.*; import javax.swing.JOptionPane; public class Water extends Actor { private int life = 2; public Water() { getImage().scale(10, 10); } public ...
true
true
public void act() { if (getOneIntersectingObject(Bag.class) != null) { getWorld().addObject(new Floodbank(), getX(), getY()); getWorld().removeObject(this); return; } if (Math.random() > 0.05) return; int dx = 0, dy = 0; switch ((int)(3.0 ...
public void act() { if (getOneIntersectingObject(Bag.class) != null) { getWorld().addObject(new Floodbank(), getX(), getY()); getWorld().removeObject(this); return; } if (Math.random() > 0.05) return; int dx = 0, dy = 0; switch ((int)(3.0 ...
diff --git a/src/com/java/phondeux/team/Team.java b/src/com/java/phondeux/team/Team.java index 0946197..10c338e 100644 --- a/src/com/java/phondeux/team/Team.java +++ b/src/com/java/phondeux/team/Team.java @@ -1,134 +1,134 @@ package com.java.phondeux.team; import java.sql.SQLException; import java.util.logging.Log...
true
true
private void initializeEvents() { eh.RegisterCallback(new EventHandler.EventCallback() { public void run(int parent, int child, String data) { getServer().broadcastMessage(ChatColor.GOLD + th.playerGetName(parent) + " created a new team, " + ChatColor.WHITE + th.teamGetName(child) + ChatColor.GOLD + "!"); ...
private void initializeEvents() { eh.RegisterCallback(new EventHandler.EventCallback() { public void run(int parent, int child, String data) { getServer().broadcastMessage(ChatColor.GOLD + th.playerGetName(parent) + " created a new team, " + ChatColor.WHITE + th.teamGetName(child) + ChatColor.GOLD + "!"); ...
diff --git a/src/realms/welcome-admin/yanel/resources/show-realms/src/java/org/wyona/yanel/impl/resources/ShowRealms.java b/src/realms/welcome-admin/yanel/resources/show-realms/src/java/org/wyona/yanel/impl/resources/ShowRealms.java index 0bb671c82..22b77e270 100644 --- a/src/realms/welcome-admin/yanel/resources/show-r...
true
true
public View getView(String viewId) throws Exception { View defaultView = new View(); defaultView.setMimeType("application/xml"); StringBuffer sb = new StringBuffer("<?xml version=\"1.0\"?>"); defaultView.setInputStream(new java.io.StringBufferInputStream(sb .toString(...
public View getView(String viewId) throws Exception { View defaultView = new View(); defaultView.setMimeType("application/xml"); StringBuffer sb = new StringBuffer("<?xml version=\"1.0\"?>"); defaultView.setInputStream(new java.io.StringBufferInputStream(sb .toString(...
diff --git a/cadpage/src/net/anei/cadpage/parsers/IN/INWayneCountyParser.java b/cadpage/src/net/anei/cadpage/parsers/IN/INWayneCountyParser.java index 11dc94132..c401be7cc 100644 --- a/cadpage/src/net/anei/cadpage/parsers/IN/INWayneCountyParser.java +++ b/cadpage/src/net/anei/cadpage/parsers/IN/INWayneCountyParser.java...
true
true
public boolean parseMsg(String subject, String body, Data data) { if (!subject.equals("911")) return false; Matcher match = MASTER.matcher(body); if (!match.matches()) return false; data.strDate = match.group(1); data.strTime = match.group(2); String sAddr = match.group(3).trim(); ...
public boolean parseMsg(String subject, String body, Data data) { if (!subject.equals("911")) return false; Matcher match = MASTER.matcher(body); if (!match.matches()) return false; data.strDate = match.group(1); data.strTime = match.group(2); String sAddr = match.group(3).trim(); ...
diff --git a/src/main/java/org/osaf/cosmo/jackrabbit/io/ExportCalendarCollectionCommand.java b/src/main/java/org/osaf/cosmo/jackrabbit/io/ExportCalendarCollectionCommand.java index 5ea16a7f1..4ebf979bc 100644 --- a/src/main/java/org/osaf/cosmo/jackrabbit/io/ExportCalendarCollectionCommand.java +++ b/src/main/java/org/o...
true
true
public boolean execute(ApplicationContextAwareExportContext context) throws Exception { Node resourceNode = context.getNode(); if (resourceNode == null || ! resourceNode.isNodeType(CosmoJcrConstants.NT_CALDAV_COLLECTION)) { return false; } // extract ...
public boolean execute(ApplicationContextAwareExportContext context) throws Exception { Node resourceNode = context.getNode(); if (resourceNode == null || ! resourceNode.isNodeType(CosmoJcrConstants.NT_CALDAV_COLLECTION)) { return false; } // extract ...
diff --git a/src/savant/view/swing/Frame.java b/src/savant/view/swing/Frame.java index 50ff855e..4d95baf8 100644 --- a/src/savant/view/swing/Frame.java +++ b/src/savant/view/swing/Frame.java @@ -1,797 +1,803 @@ /* * Copyright 2010 University of Toronto * * Licensed under the Apache License, Version 2.0 (th...
false
true
public Frame(List<ViewTrack> tracks, List<TrackRenderer> renderers, String name) { this.name = name; //INIT LEGEND PANEL arcLegend = new JPanel(); arcLegend.setVisible(false); isLocked = false; this.tracks = new ArrayList<ViewTrack>(); this.frameLandsca...
public Frame(List<ViewTrack> tracks, List<TrackRenderer> renderers, String name) { this.name = name; //INIT LEGEND PANEL arcLegend = new JPanel(); arcLegend.setVisible(false); isLocked = false; this.tracks = new ArrayList<ViewTrack>(); this.frameLandsca...
diff --git a/src/main/java/de/ailis/xadrian/dialogs/WarePricesDialog.java b/src/main/java/de/ailis/xadrian/dialogs/WarePricesDialog.java index 188778e..b521a34 100644 --- a/src/main/java/de/ailis/xadrian/dialogs/WarePricesDialog.java +++ b/src/main/java/de/ailis/xadrian/dialogs/WarePricesDialog.java @@ -1,421 +1,425 @@...
true
true
private void initContent() { final WareFactory wareFactory = WareFactory.getInstance(); final Color gray = new Color(0xee, 0xee, 0xee); final NumberFormat formatter = NumberFormat.getNumberInstance(); JSpinner focusComponent = null; final GridBagConstraints c = new GridB...
private void initContent() { final WareFactory wareFactory = WareFactory.getInstance(); final Color gray = new Color(0xee, 0xee, 0xee); final NumberFormat formatter = NumberFormat.getNumberInstance(); JSpinner focusComponent = null; final GridBagConstraints c = new GridB...
diff --git a/src/com/android/mms/transaction/SmsSingleRecipientSender.java b/src/com/android/mms/transaction/SmsSingleRecipientSender.java index 42d8ad6b..40866d8a 100644 --- a/src/com/android/mms/transaction/SmsSingleRecipientSender.java +++ b/src/com/android/mms/transaction/SmsSingleRecipientSender.java @@ -1,128 +1,...
false
true
public boolean sendMessage(long token) throws MmsException { if (LogTag.DEBUG_SEND) { Log.v(TAG, "sendMessage token: " + token); } if (mMessageText == null) { // Don't try to send an empty message, and destination should be just // one. throw n...
public boolean sendMessage(long token) throws MmsException { if (LogTag.DEBUG_SEND) { Log.v(TAG, "sendMessage token: " + token); } if (mMessageText == null) { // Don't try to send an empty message, and destination should be just // one. throw n...
diff --git a/POS/src/ee/ut/math/tvt/BSS/IntroUI.java b/POS/src/ee/ut/math/tvt/BSS/IntroUI.java index b661bf6..7c87cce 100644 --- a/POS/src/ee/ut/math/tvt/BSS/IntroUI.java +++ b/POS/src/ee/ut/math/tvt/BSS/IntroUI.java @@ -1,102 +1,102 @@ package ee.ut.math.tvt.BSS; import java.awt.Dimension; import java.awt.GridBag...
true
true
public IntroUI(){ super("IntroUI"); log.info("starting IntroUI"); try { setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); TName = new JLabel("Team name: Brewery Software Solutions"); c.gridx = 0; c.gridy = 0; c.weighty = 1.0; c.weightx = 1.0; add(TNa...
public IntroUI(){ super("IntroUI"); log.info("starting IntroUI"); try { setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); TName = new JLabel("Team name: Brewery Software Solutions"); c.gridx = 0; c.gridy = 0; c.weighty = 1.0; c.weightx = 1.0; add(TNa...
diff --git a/server/src/com/chiorichan/command/defaults/UpdateCommand.java b/server/src/com/chiorichan/command/defaults/UpdateCommand.java index 66505be9..eb0814aa 100644 --- a/server/src/com/chiorichan/command/defaults/UpdateCommand.java +++ b/server/src/com/chiorichan/command/defaults/UpdateCommand.java @@ -1,161 +1,...
false
true
public boolean execute( CommandSender sender, String currentAlias, String[] args ) { if ( !Loader.getInstance().getAutoUpdater().isEnabled() ) { sender.sendMessage( ChatColor.RED + "I'm sorry but updates are disabled on this server per configs!" ); return true; } if ( Loader.getConfig().getBoolean( "...
public boolean execute( CommandSender sender, String currentAlias, String[] args ) { if ( !Loader.getInstance().getAutoUpdater().isEnabled() ) { sender.sendMessage( ChatColor.RED + "I'm sorry but updates are disabled on this server per configs!" ); return true; } if ( Loader.getConfig().getBoolean( "...
diff --git a/src/org/subethamail/smtp/server/Session.java b/src/org/subethamail/smtp/server/Session.java index 8e5916b..a29781c 100644 --- a/src/org/subethamail/smtp/server/Session.java +++ b/src/org/subethamail/smtp/server/Session.java @@ -1,451 +1,452 @@ package org.subethamail.smtp.server; import java.io.IOExcep...
true
true
public void run() { if (log.isDebugEnabled()) { InetAddress remoteInetAddress = this.getRemoteAddress().getAddress(); remoteInetAddress.getHostName(); // Causes future toString() to print the name too log.debug("SMTP connection from {}, new connection count: {}", remoteInetAddress, this.server.getNumber...
public void run() { if (log.isDebugEnabled()) { InetAddress remoteInetAddress = this.getRemoteAddress().getAddress(); remoteInetAddress.getHostName(); // Causes future toString() to print the name too log.debug("SMTP connection from {}, new connection count: {}", remoteInetAddress, this.server.getNumber...
diff --git a/src/gnu/prolog/database/PrologTextLoaderState.java b/src/gnu/prolog/database/PrologTextLoaderState.java index 0874586..55f6cba 100644 --- a/src/gnu/prolog/database/PrologTextLoaderState.java +++ b/src/gnu/prolog/database/PrologTextLoaderState.java @@ -1,567 +1,567 @@ /* GNU Prolog for Java * Copyright (...
true
true
public void addClause(PrologTextLoader loader, Term term) { Term head = term; CompoundTermTag headTag; if (term instanceof CompoundTerm && ((CompoundTerm) term).tag == TermConstants.clauseTag) { head = ((CompoundTerm) term).args[0]; } if (head instanceof AtomTerm) { headTag = CompoundTermTag.get((...
public void addClause(PrologTextLoader loader, Term term) { Term head = term; CompoundTermTag headTag; if (term instanceof CompoundTerm && ((CompoundTerm) term).tag == TermConstants.clauseTag) { head = ((CompoundTerm) term).args[0]; } if (head instanceof AtomTerm) { headTag = CompoundTermTag.get((...
diff --git a/src/opt/boilercontrol/uk/co/jaynne/Scheduler.java b/src/opt/boilercontrol/uk/co/jaynne/Scheduler.java index 2ce07a3..cb00a78 100755 --- a/src/opt/boilercontrol/uk/co/jaynne/Scheduler.java +++ b/src/opt/boilercontrol/uk/co/jaynne/Scheduler.java @@ -1,126 +1,126 @@ package uk.co.jaynne; import java.util....
false
true
public void run() { while (!Thread.interrupted()) { //Heating and water default to off Calendar calendar = Calendar.getInstance(); /** TimeZone z = calendar.getTimeZone(); int offset = z.getRawOffset(); if(z.inDaylightTime(new Date())){ offset = offset + z.getDSTSavings(); ...
public void run() { while (!Thread.interrupted()) { //Heating and water default to off Calendar calendar = Calendar.getInstance(); /** TimeZone z = calendar.getTimeZone(); int offset = z.getRawOffset(); if(z.inDaylightTime(new Date())){ offset = offset + z.getDSTSavings(); ...
diff --git a/framework/test-src/play/cache/EhCacheImplTest.java b/framework/test-src/play/cache/EhCacheImplTest.java index f724c27a..89f94d17 100644 --- a/framework/test-src/play/cache/EhCacheImplTest.java +++ b/framework/test-src/play/cache/EhCacheImplTest.java @@ -1,32 +1,35 @@ package play.cache; import org.juni...
true
true
public void verifyThatTTLSurvivesIncrDecr() throws Exception { final EhCacheImpl cache = EhCacheImpl.getInstance(); cache.clear(); final String key = "EhCacheImplTest_verifyThatTTLSurvivesIncrDecr"; final int expiration = 1; cache.add(key, 1, expiration); Thread.sl...
public void verifyThatTTLSurvivesIncrDecr() throws Exception { EhCacheImpl cache = EhCacheImpl.getInstance(); if (cache==null) { cache = EhCacheImpl.newInstance(); } cache.clear(); final String key = "EhCacheImplTest_verifyThatTTLSurvivesIncrDecr"; final...
diff --git a/src/test/java/org/abqjug/MultimapTest.java b/src/test/java/org/abqjug/MultimapTest.java index 0cc52cd..ebe2541 100644 --- a/src/test/java/org/abqjug/MultimapTest.java +++ b/src/test/java/org/abqjug/MultimapTest.java @@ -1,83 +1,83 @@ /** * Copyright 2010-2013 Daniel Hinojosa * * Licensed under the A...
true
true
public void testMultiMap() { Multimap<String, Integer> superBowlMap = ArrayListMultimap.create(); superBowlMap.put("Dallas Cowboys", 1971); superBowlMap.put("Dallas Cowboys", 1992); superBowlMap.put("Dallas Cowboys", 1993); superBowlMap.put("Dallas Cowboys", 1...
public void testMultiMap() { Multimap<String, Integer> superBowlMap = ArrayListMultimap.create(); superBowlMap.put("Dallas Cowboys", 1971); superBowlMap.put("Dallas Cowboys", 1992); superBowlMap.put("Dallas Cowboys", 1993); superBowlMap.put("Dallas Cowboys", 1...