Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/jpcsp/Emulator.java b/src/jpcsp/Emulator.java index b2b02bda..67b30796 100644 --- a/src/jpcsp/Emulator.java +++ b/src/jpcsp/Emulator.java @@ -1,431 +1,433 @@ /* This file is part of jpcsp. Jpcsp is free software: you can redistribute it and/or modify it under the terms of the GNU General Publi...
true
true
private void initNewPsp(boolean fromSyscall) { moduleLoaded = false; HLEModuleManager.getInstance().stopModules(); RuntimeContext.reset(); if (!fromSyscall) { // Do not reset the profiler if we have been called from sceKernelLoadExec Profiler.reset(); ...
private void initNewPsp(boolean fromSyscall) { moduleLoaded = false; HLEModuleManager.getInstance().stopModules(); RuntimeContext.reset(); if (!fromSyscall) { // Do not reset the profiler if we have been called from sceKernelLoadExec Profiler.reset(); ...
diff --git a/server/serengeti/src/main/java/com/vmware/bdd/manager/ClusterManager.java b/server/serengeti/src/main/java/com/vmware/bdd/manager/ClusterManager.java index fdd9cee0..383b81a1 100644 --- a/server/serengeti/src/main/java/com/vmware/bdd/manager/ClusterManager.java +++ b/server/serengeti/src/main/java/com/vmwa...
true
true
public Long resizeCluster(final String clusterName, final String nodeGroupName, final int instanceNum) throws Exception { logger.info("ClusterManager, updating node group " + nodeGroupName + " in cluster " + clusterName + " reset instance number to " + instanceNum); fina...
public Long resizeCluster(final String clusterName, final String nodeGroupName, final int instanceNum) throws Exception { logger.info("ClusterManager, updating node group " + nodeGroupName + " in cluster " + clusterName + " reset instance number to " + instanceNum); fina...
diff --git a/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/BeansXMLDefinition.java b/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/BeansXMLDefinition.java index bf0c60420..c97d6c9fd 100644 --- a/cdi/plugins/org.jboss.tools.cdi.cor...
true
true
public void setBeansXML(XModelObject beansXML) { if(beansXML.getModelEntity().getName().startsWith("FileCDIBeans")) { if(beansXML instanceof FileAnyImpl) { FileAnyImpl f = (FileAnyImpl)beansXML; if(f.getParent() instanceof FolderImpl) { ((FolderImpl)f.getParent()).update(); } } XModelObject...
public void setBeansXML(XModelObject beansXML) { if(beansXML.getModelEntity().getName().startsWith("FileCDIBeans")) { if(beansXML instanceof FileAnyImpl) { FileAnyImpl f = (FileAnyImpl)beansXML; if(f.getParent() instanceof FolderImpl) { long b = ((FolderImpl)f.getParent()).waitForUpdate(); if(b ...
diff --git a/omod/src/main/java/org/openmrs/module/feedback/web/AddFeedbackFormController.java b/omod/src/main/java/org/openmrs/module/feedback/web/AddFeedbackFormController.java index 62f1b69..bbbf8a7 100644 --- a/omod/src/main/java/org/openmrs/module/feedback/web/AddFeedbackFormController.java +++ b/omod/src/main/jav...
true
true
protected Boolean formBackingObject(HttpServletRequest request) throws Exception { /*To check wheather or not the subject , severity and feedback is empty or not*/ Boolean feedbackMessage = false ; String text = ""; if (request.getParameter("subject") != null...
protected Boolean formBackingObject(HttpServletRequest request) throws Exception { /*To check wheather or not the subject , severity and feedback is empty or not*/ Boolean feedbackMessage = false ; String text = ""; if (request.getParameter("subject") != null...
diff --git a/src/main/java/de/fuberlin/wiwiss/pubby/servlets/PathPageURLServlet.java b/src/main/java/de/fuberlin/wiwiss/pubby/servlets/PathPageURLServlet.java index 1a05492..010abf9 100644 --- a/src/main/java/de/fuberlin/wiwiss/pubby/servlets/PathPageURLServlet.java +++ b/src/main/java/de/fuberlin/wiwiss/pubby/servlets...
true
true
public boolean doGet(HypermediaResource controller, Collection<MappedResource> resources, Property property, boolean isInverse, HttpServletRequest request, HttpServletResponse response, Configuration config) throws IOException { Model descriptions = getAnonymousPropertyValues(resources, property, ...
public boolean doGet(HypermediaResource controller, Collection<MappedResource> resources, Property property, boolean isInverse, HttpServletRequest request, HttpServletResponse response, Configuration config) throws IOException { Model descriptions = getAnonymousPropertyValues(resources, property, ...
diff --git a/src/com/cyanogenmod/cmparts/activities/UIStatusBarActivity.java b/src/com/cyanogenmod/cmparts/activities/UIStatusBarActivity.java index 4d48b69..198350f 100644 --- a/src/com/cyanogenmod/cmparts/activities/UIStatusBarActivity.java +++ b/src/com/cyanogenmod/cmparts/activities/UIStatusBarActivity.java @@ -1,1...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTitle(R.string.ui_status_bar_title); addPreferencesFromResource(R.xml.ui_status_bar); mContext = this.getBaseContext(); PreferenceScreen prefSet = getPreferenceScreen(); mSquadzone ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTitle(R.string.ui_status_bar_title); addPreferencesFromResource(R.xml.ui_status_bar); mContext = this.getBaseContext(); PreferenceScreen prefSet = getPreferenceScreen(); mSquadzone ...
diff --git a/src/com/herocraftonline/dev/heroes/skill/skills/SkillPort.java b/src/com/herocraftonline/dev/heroes/skill/skills/SkillPort.java index 205801ef..d2ad60d1 100644 --- a/src/com/herocraftonline/dev/heroes/skill/skills/SkillPort.java +++ b/src/com/herocraftonline/dev/heroes/skill/skills/SkillPort.java @@ -1,87 ...
true
true
public SkillResult use(Hero hero, String[] args) { Player player = hero.getPlayer(); if (args[0].equalsIgnoreCase("list")) { for (String n : SkillConfigManager.getUseSettingKeys(hero, this, null)) { String retrievedNode = SkillConfigManager.getUseSetting(hero, this, n, (...
public SkillResult use(Hero hero, String[] args) { Player player = hero.getPlayer(); if (args[0].equalsIgnoreCase("list")) { for (String n : SkillConfigManager.getUseSettingKeys(hero, this, null)) { String retrievedNode = SkillConfigManager.getUseSetting(hero, this, n, (...
diff --git a/eclipse/org.dresdenocl.debug/src/org/dresdenocl/debug/OclDebugger.java b/eclipse/org.dresdenocl.debug/src/org/dresdenocl/debug/OclDebugger.java index 09e39a12d..47bcc4882 100644 --- a/eclipse/org.dresdenocl.debug/src/org/dresdenocl/debug/OclDebugger.java +++ b/eclipse/org.dresdenocl.debug/src/org/dresdenoc...
false
true
protected void pushStackFrame(String functionName, EObject parameter) { int line = getLine(parameter); String[] data = new String[6]; data[0] = functionName + " ( " + parameter.getClass().getSimpleName() + " )"; data[1] = getNextStackId(); data[2] = m_currentMappings.get(parameter).eResource().getURI() ...
protected void pushStackFrame(String functionName, EObject parameter) { int line = getLine(parameter); String[] data = new String[6]; data[0] = functionName + " ( " + parameter.getClass().getSimpleName() + " )"; data[1] = getNextStackId(); data[2] = "dummy Resource (FIXME)"; data[3] = Integer.toString...
diff --git a/src/main/java/me/eccentric_nz/TARDIS/TARDIS.java b/src/main/java/me/eccentric_nz/TARDIS/TARDIS.java index 42ad57bd6..dd4f07464 100644 --- a/src/main/java/me/eccentric_nz/TARDIS/TARDIS.java +++ b/src/main/java/me/eccentric_nz/TARDIS/TARDIS.java @@ -1,639 +1,641 @@ /* * Copyright (C) 2013 eccentric_nz *...
true
true
public void onEnable() { pdfFile = getDescription(); pluginName = ChatColor.GOLD + "[" + pdfFile.getName() + "]" + ChatColor.RESET + " "; plugin = this; console = getServer().getConsoleSender(); loadClasses(); saveDefaultConfig(); TARDISConfiguration tc = new...
public void onEnable() { pdfFile = getDescription(); pluginName = ChatColor.GOLD + "[" + pdfFile.getName() + "]" + ChatColor.RESET + " "; plugin = this; console = getServer().getConsoleSender(); loadClasses(); saveDefaultConfig(); TARDISConfiguration tc = new...
diff --git a/application/src/ezhun/smsb/filter/SmartSpamFilter.java b/application/src/ezhun/smsb/filter/SmartSpamFilter.java index 3ef89bc..6f99c43 100644 --- a/application/src/ezhun/smsb/filter/SmartSpamFilter.java +++ b/application/src/ezhun/smsb/filter/SmartSpamFilter.java @@ -1,29 +1,28 @@ package ezhun.smsb.filte...
true
true
public boolean isSpam(SmsPojo message) throws ApplicationException { ISpamFilter contactSpamFilter = new ContactSpamFilter(getContentResolver()); ISpamFilter whiteListSpamFilter = new WhiteListSpamFilter(getContentResolver()); //return contactSpamFilter.isSpam(message) || whiteListSpamFilter.isSpam(message); ...
public boolean isSpam(SmsPojo message) throws ApplicationException { ISpamFilter contactSpamFilter = new ContactSpamFilter(getContentResolver()); ISpamFilter whiteListSpamFilter = new WhiteListSpamFilter(getContentResolver()); return contactSpamFilter.isSpam(message) || whiteListSpamFilter.isSpam(message); }
diff --git a/src/java/org/smoothbuild/builtin/java/javac/OutputClassFile.java b/src/java/org/smoothbuild/builtin/java/javac/OutputClassFile.java index 08847e15..999a8ae8 100644 --- a/src/java/org/smoothbuild/builtin/java/javac/OutputClassFile.java +++ b/src/java/org/smoothbuild/builtin/java/javac/OutputClassFile.java @...
false
true
public OutputStream openOutputStream() throws IOException { final OutputStream out = fileBuilder.openOutputStream(); return new ForwardingOutputStream(out) { @Override public void close() throws IOException { out.close(); fileSetBuilder.add(fileBuilder.build()); } }; }
public OutputStream openOutputStream() throws IOException { final OutputStream outputStream = fileBuilder.openOutputStream(); return new ForwardingOutputStream(outputStream) { @Override public void close() throws IOException { outputStream.close(); fileSetBuilder.add(fileBuilder.bu...
diff --git a/core/src/main/java/hudson/slaves/CommandLauncher.java b/core/src/main/java/hudson/slaves/CommandLauncher.java index 88bdc37e4..1f650408d 100644 --- a/core/src/main/java/hudson/slaves/CommandLauncher.java +++ b/core/src/main/java/hudson/slaves/CommandLauncher.java @@ -1,111 +1,115 @@ package hudson.slaves;...
true
true
public void launch(SlaveComputer computer, final StreamTaskListener listener) { EnvVars _cookie = null; Process _proc = null; try { listener.getLogger().println(Messages.Slave_Launching(getTimestamp())); listener.getLogger().println("$ " + getCommand()); ...
public void launch(SlaveComputer computer, final StreamTaskListener listener) { EnvVars _cookie = null; Process _proc = null; try { listener.getLogger().println(Messages.Slave_Launching(getTimestamp())); listener.getLogger().println("$ " + getCommand()); ...
diff --git a/library/src/se/emilsjolander/stickylistheaders/StickyListHeadersListView.java b/library/src/se/emilsjolander/stickylistheaders/StickyListHeadersListView.java index bffab54..2aee223 100644 --- a/library/src/se/emilsjolander/stickylistheaders/StickyListHeadersListView.java +++ b/library/src/se/emilsjolander/...
true
true
public StickyListHeadersListView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); // Initialize the wrapped list mList = new WrapperViewList(context); // null out divider, dividers are handled by adapter so they look good with headers mD...
public StickyListHeadersListView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); // Initialize the wrapped list mList = new WrapperViewList(context); // null out divider, dividers are handled by adapter so they look good with headers mD...
diff --git a/src/neuralNets/lib/learning/GA/AbstractChromoPool.java b/src/neuralNets/lib/learning/GA/AbstractChromoPool.java index 115e029..a7892a9 100644 --- a/src/neuralNets/lib/learning/GA/AbstractChromoPool.java +++ b/src/neuralNets/lib/learning/GA/AbstractChromoPool.java @@ -1,126 +1,126 @@ package neuralNets.lib...
true
true
public static AbstractChromoPool createChromoPool(String name) { AbstractChromoPool chromoPool = null; try { chromoPool = (AbstractChromoPool) Class.forName("neuralNets.lib.learning.GA." + name).newInstance(); } catch (InstantiationException ex) { ...
public static AbstractChromoPool createChromoPool(String name) { AbstractChromoPool chromoPool = null; try { chromoPool = (AbstractChromoPool) Class.forName("neuralNets.lib.learning.GA." + name + ".ChromoPool").newInstance(); } catch (InstantiationException ex) ...
diff --git a/src/uk/org/ponder/rsf/flow/ARIProcessor.java b/src/uk/org/ponder/rsf/flow/ARIProcessor.java index 1b77425..f9e64f3 100644 --- a/src/uk/org/ponder/rsf/flow/ARIProcessor.java +++ b/src/uk/org/ponder/rsf/flow/ARIProcessor.java @@ -1,56 +1,56 @@ /* * Created on 5 Feb 2007 */ package uk.org.ponder.rsf.flo...
true
true
public void interceptActionResult(ARIResult ariresult, ViewParameters incoming, Object result) { if (interceptors == null) { interceptors = new ArrayList(); } ArrayList requestinterceptors = new ArrayList(interceptors); accreteViewARIs(requestinterceptors, incoming); for (int i =...
public void interceptActionResult(ARIResult ariresult, ViewParameters incoming, Object result) { if (interceptors == null) { interceptors = new ArrayList(); } ArrayList requestinterceptors = new ArrayList(interceptors); accreteViewARIs(requestinterceptors, incoming); for (int i =...
diff --git a/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java b/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java index 4dfaa7fe5..cfa64bc3c 100644 --- a/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java +++ b/src/com/android/gallery3d/filtershow/category/CategoryAdap...
true
true
public View getView(int position, View convertView, ViewGroup parent) { if (mUseFilterIconButton) { if (convertView == null) { LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); conver...
public View getView(int position, View convertView, ViewGroup parent) { if (mUseFilterIconButton) { if (convertView == null) { LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); conver...
diff --git a/src/presentation/BrowsePanel.java b/src/presentation/BrowsePanel.java index ef7c267..b67dbd5 100644 --- a/src/presentation/BrowsePanel.java +++ b/src/presentation/BrowsePanel.java @@ -1,163 +1,163 @@ package presentation; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension;...
true
true
public void initBrowse() { setBorder(new EmptyBorder(10, 10, 10, 10)); setLayout(new BorderLayout()); upperPanel = new JPanel(new GridLayout(1, 6, 10, 10)); lowerPanel = new JPanel(new BorderLayout()); lowerRightPanel = new JPanel(new GridLayout(1, 2, 10, 10)); leftPanel = new JPanel(new GridLayout(2...
public void initBrowse() { setBorder(new EmptyBorder(10, 10, 10, 10)); setLayout(new BorderLayout(10, 20)); upperPanel = new JPanel(new GridLayout(1, 6, 10, 10)); lowerPanel = new JPanel(new BorderLayout()); lowerRightPanel = new JPanel(new GridLayout(1, 2, 10, 10)); leftPanel = new JPanel(new GridLa...
diff --git a/container/catalina/src/share/org/apache/catalina/servlets/DefaultServlet.java b/container/catalina/src/share/org/apache/catalina/servlets/DefaultServlet.java index f66fbbae..f92df2c5 100644 --- a/container/catalina/src/share/org/apache/catalina/servlets/DefaultServlet.java +++ b/container/catalina/src/shar...
false
true
protected void serveResource(HttpServletRequest request, HttpServletResponse response, boolean content) throws IOException, ServletException { // Identify the requested resource path String path = getRelativePath(request); ...
protected void serveResource(HttpServletRequest request, HttpServletResponse response, boolean content) throws IOException, ServletException { // Identify the requested resource path String path = getRelativePath(request); ...
diff --git a/phresco-framework-web/src/test/java/com/photon/phresco/framework/rest/api/ProjectServiceTest.java b/phresco-framework-web/src/test/java/com/photon/phresco/framework/rest/api/ProjectServiceTest.java index 7f3b8e999..e0b66db33 100644 --- a/phresco-framework-web/src/test/java/com/photon/phresco/framework/rest...
true
true
private static ApplicationInfo getApplicationInfo() { ApplicationInfo info = new ApplicationInfo(); info.setAppDirName("TestProject"); info.setCode("TestProject"); info.setId("TestProject"); info.setCustomerIds(getCollections("photon")); info.setEmailSupported(false); info.setPhoneEnabled(false); info....
private static ApplicationInfo getApplicationInfo() { ApplicationInfo info = new ApplicationInfo(); info.setAppDirName("TestProject"); info.setCode("TestProject"); info.setId("TestProject"); info.setCustomerIds(getCollections("photon")); info.setEmailSupported(false); info.setPhoneEnabled(false); info....
diff --git a/src/edu/jas/ufd/FactorRational.java b/src/edu/jas/ufd/FactorRational.java index 9b2b28cb..b254410c 100644 --- a/src/edu/jas/ufd/FactorRational.java +++ b/src/edu/jas/ufd/FactorRational.java @@ -1,78 +1,80 @@ /* * $Id$ */ package edu.jas.ufd; import java.util.List; import java.util.ArrayList...
false
true
public List<GenPolynomial<BigRational>> baseFactorsSquarefree(GenPolynomial<BigRational> P) { if ( P == null ) { throw new RuntimeException(this.getClass().getName() + " P == null"); } List<GenPolynomial<BigRational>> factors = new ArrayList<GenPolynomial<BigRational>>(); ...
public List<GenPolynomial<BigRational>> baseFactorsSquarefree(GenPolynomial<BigRational> P) { if ( P == null ) { throw new RuntimeException(this.getClass().getName() + " P == null"); } List<GenPolynomial<BigRational>> factors = new ArrayList<GenPolynomial<BigRational>>(); ...
diff --git a/javafx.editor/src/org/netbeans/modules/javafx/editor/format/CompilerIndependentJFXReformatTask.java b/javafx.editor/src/org/netbeans/modules/javafx/editor/format/CompilerIndependentJFXReformatTask.java index 732b6cc5..0b3f694c 100644 --- a/javafx.editor/src/org/netbeans/modules/javafx/editor/format/Compile...
false
true
public void reformat() throws BadLocationException { final Document document = context.document(); final BaseDocument bd = (BaseDocument)document; bd.runAtomic( new Runnable() { public void run() { try { Element rootElement = document.getDefau...
public void reformat() throws BadLocationException { final Document document = context.document(); final BaseDocument bd = (BaseDocument)document; bd.runAtomic( new Runnable() { public void run() { try { Element rootElement = document.getDefau...
diff --git a/src/com/android/settings/AccessibilitySettings.java b/src/com/android/settings/AccessibilitySettings.java index 827af13d9..29be510f9 100644 --- a/src/com/android/settings/AccessibilitySettings.java +++ b/src/com/android/settings/AccessibilitySettings.java @@ -1,923 +1,923 @@ /* * Copyright (C) 2009 The ...
true
true
private void updateServicesPreferences() { // Since services category is auto generated we have to do a pass // to generate it since services can come and go and then based on // the global accessibility state to decided whether it is enabled. // Generate. mServicesCategory....
private void updateServicesPreferences() { // Since services category is auto generated we have to do a pass // to generate it since services can come and go and then based on // the global accessibility state to decided whether it is enabled. // Generate. mServicesCategory....
diff --git a/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java b/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java index 7c90e22e7..9bb252d8a 100644 --- a/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/Def...
true
true
public void testVersionComparing() { assertVersionEqual( "1", "1" ); assertVersionOlder( "1", "2" ); assertVersionOlder( "1.5", "2" ); assertVersionOlder( "1", "2.5" ); assertVersionEqual( "1", "1.0" ); assertVersionEqual( "1", "1.0.0" ); assertVersionOlde...
public void testVersionComparing() { assertVersionEqual( "1", "1" ); assertVersionOlder( "1", "2" ); assertVersionOlder( "1.5", "2" ); assertVersionOlder( "1", "2.5" ); assertVersionEqual( "1", "1.0" ); assertVersionEqual( "1", "1.0.0" ); assertVersionOlde...
diff --git a/org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks/bugs/wizards/ReportErrorPage.java b/org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks/bugs/wizards/ReportErrorPage.java index 85fa76d91..57824128a 100644 --- a/org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks...
true
true
public void createControl(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); composite.setLayout(new GridLayout(2, false)); // Group errorGroup = new Group(composite, SWT.NONE); // GridDataFactory.fillDefaults().align(SWT.FILL, SWT.TOP).grab(true, false).applyTo(errorGroup); // errorGro...
public void createControl(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); composite.setLayout(new GridLayout(2, false)); // Group errorGroup = new Group(composite, SWT.NONE); // GridDataFactory.fillDefaults().align(SWT.FILL, SWT.TOP).grab(true, false).applyTo(errorGroup); // errorGro...
diff --git a/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java b/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java index 7ea6cd65f..13281eb86 100644 --- a/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java +++ ...
false
true
private Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops) { Itinerary itinerary = makeEmptyItinerary(path); Leg leg = null; List<Alert> notesForNewLeg = new ArrayList<Alert>(); Edge edge = null; EdgeNarrative edgeNarrative = null; TraverseMo...
private Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops) { Itinerary itinerary = makeEmptyItinerary(path); Leg leg = null; List<Alert> notesForNewLeg = new ArrayList<Alert>(); Edge edge = null; EdgeNarrative edgeNarrative = null; TraverseMo...
diff --git a/common/net/minecraft/src/buildcraft/krapht/logic/LogicLiquidSupplier.java b/common/net/minecraft/src/buildcraft/krapht/logic/LogicLiquidSupplier.java index 15682927..2b64d6ec 100644 --- a/common/net/minecraft/src/buildcraft/krapht/logic/LogicLiquidSupplier.java +++ b/common/net/minecraft/src/buildcraft/kra...
false
true
public void throttledUpdateEntity() { if (pause) return; super.throttledUpdateEntity(); WorldUtil worldUtil = new WorldUtil(worldObj, xCoord, yCoord, zCoord); for (AdjacentTile tile : worldUtil.getAdjacentTileEntities()){ if (!(tile.tile instanceof ITankContainer)) continue; ITankContainer container = (...
public void throttledUpdateEntity() { if (pause) return; super.throttledUpdateEntity(); WorldUtil worldUtil = new WorldUtil(worldObj, xCoord, yCoord, zCoord); for (AdjacentTile tile : worldUtil.getAdjacentTileEntities()){ if (!(tile.tile instanceof ITankContainer) || tile.tile instanceof TileGenericPipe) c...
diff --git a/baksmali/src/main/java/org/jf/baksmali/Adaptors/Format/SparseSwitchMethodItem.java b/baksmali/src/main/java/org/jf/baksmali/Adaptors/Format/SparseSwitchMethodItem.java index 5c7ec54..46f49dc 100644 --- a/baksmali/src/main/java/org/jf/baksmali/Adaptors/Format/SparseSwitchMethodItem.java +++ b/baksmali/src/m...
true
true
public SparseSwitchMethodItem(MethodDefinition methodDefinition, CodeItem codeItem, int codeAddress, SparseSwitchDataPseudoInstruction instruction) { super(codeItem, codeAddress, instruction); int baseCodeAddress = methodDefinition.getSparseSwitchBaseAddress(codeAd...
public SparseSwitchMethodItem(MethodDefinition methodDefinition, CodeItem codeItem, int codeAddress, SparseSwitchDataPseudoInstruction instruction) { super(codeItem, codeAddress, instruction); int baseCodeAddress = methodDefinition.getSparseSwitchBaseAddress(codeAd...
diff --git a/DelayedCommand/src/me/asofold/bukkit/delayedcommand/DelayedCommand.java b/DelayedCommand/src/me/asofold/bukkit/delayedcommand/DelayedCommand.java index a8e7152..1201692 100644 --- a/DelayedCommand/src/me/asofold/bukkit/delayedcommand/DelayedCommand.java +++ b/DelayedCommand/src/me/asofold/bukkit/delayedcom...
true
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { int len = args.length; if (len == 0) return true; // allows for a no op command! int startIndex = 0; long delay = -1; if (args[0].trim().toLowerCase().startsWith("-delay=")){ // parse delay: startIndex = 1...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (!sender.isOp() && !sender.hasPermission("delayedcommand.use")){ sender.sendMessage("You do not have permission to use this!"); return true; } int len = args.length; if (len == 0) return true; // allows f...
diff --git a/src/com/android/camera/Storage.java b/src/com/android/camera/Storage.java index 564c0881..38a6d489 100644 --- a/src/com/android/camera/Storage.java +++ b/src/com/android/camera/Storage.java @@ -1,130 +1,136 @@ /* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache Lice...
true
true
public static Uri addImage(ContentResolver resolver, String title, long date, Location location, int orientation, byte[] jpeg, int width, int height) { // Save the image. String path = DIRECTORY + '/' + title + ".jpg"; FileOutputStream out = null; try { ou...
public static Uri addImage(ContentResolver resolver, String title, long date, Location location, int orientation, byte[] jpeg, int width, int height) { // Save the image. String path = DIRECTORY + '/' + title + ".jpg"; FileOutputStream out = null; try { ou...
diff --git a/src/java/org/apache/cassandra/cli/CliUserHelp.java b/src/java/org/apache/cassandra/cli/CliUserHelp.java index fd9484a3..2274db88 100644 --- a/src/java/org/apache/cassandra/cli/CliUserHelp.java +++ b/src/java/org/apache/cassandra/cli/CliUserHelp.java @@ -1,361 +1,361 @@ /** * Licensed to the Apache Softw...
true
true
protected void printCmdHelp(Tree statement, CliSessionState state) { if (statement.getChildCount() > 0) { int helpType = statement.getChild(0).getType(); switch(helpType) { case CliParser.NODE_HELP: state.out.println("help <command...
protected void printCmdHelp(Tree statement, CliSessionState state) { if (statement.getChildCount() > 0) { int helpType = statement.getChild(0).getType(); switch(helpType) { case CliParser.NODE_HELP: state.out.println("help <command...
diff --git a/bundles/io/org.openhab.io.multimedia/src/main/java/org/openhab/io/multimedia/actions/Audio.java b/bundles/io/org.openhab.io.multimedia/src/main/java/org/openhab/io/multimedia/actions/Audio.java index 162c0c32..b255f8ab 100644 --- a/bundles/io/org.openhab.io.multimedia/src/main/java/org/openhab/io/multimedi...
false
true
static public void playStream(String url) { if (streamPlayer != null) { // if we are already playing a stream, stop it first streamPlayer.close(); } if (url == null) { // the call was only for stopping the currently playing stream return; } try { if(url.toLowerCase().endsWith(".m3u")) { In...
static public synchronized void playStream(String url) { if (streamPlayer != null) { // if we are already playing a stream, stop it first streamPlayer.close(); streamPlayer = null; } if (url == null) { // the call was only for stopping the currently playing stream return; } try { if(url.toL...
diff --git a/src/org/apache/xerces/validators/schema/identity/XPathMatcher.java b/src/org/apache/xerces/validators/schema/identity/XPathMatcher.java index 690d266a..5634c636 100644 --- a/src/org/apache/xerces/validators/schema/identity/XPathMatcher.java +++ b/src/org/apache/xerces/validators/schema/identity/XPathMatche...
false
true
public void startElement(QName element, XMLAttrList attributes, int handle) throws Exception { if (DEBUG_METHODS || DEBUG_METHODS2) { System.out.println("XPATH["+toString()+"]: startElement("+ "element={"+ "prefix="+fStringPoo...
public void startElement(QName element, XMLAttrList attributes, int handle) throws Exception { if (DEBUG_METHODS || DEBUG_METHODS2) { System.out.println("XPATH["+toString()+"]: startElement("+ "element={"+ "prefix="+fStringPoo...
diff --git a/Essentials/src/com/earth2me/essentials/UserData.java b/Essentials/src/com/earth2me/essentials/UserData.java index 8046102..81b8eac 100644 --- a/Essentials/src/com/earth2me/essentials/UserData.java +++ b/Essentials/src/com/earth2me/essentials/UserData.java @@ -1,709 +1,711 @@ package com.earth2me.essential...
false
true
public final void reloadConfig() { config.load(); money = _getMoney(); unlimited = _getUnlimited(); powertools = getPowertools(); lastLocation = _getLastLocation(); lastTeleportTimestamp = _getLastTeleportTimestamp(); lastHealTimestamp = _getLastHealTimestamp(); jail = _getJail(); mails = _getMails(...
public final void reloadConfig() { config.load(); money = _getMoney(); unlimited = _getUnlimited(); powertools = getPowertools(); lastLocation = _getLastLocation(); lastTeleportTimestamp = _getLastTeleportTimestamp(); lastHealTimestamp = _getLastHealTimestamp(); jail = _getJail(); mails = _getMails(...
diff --git a/opentaps/opentaps-common/src/base/org/opentaps/foundation/service/ofbiz/POJOJavaEngine.java b/opentaps/opentaps-common/src/base/org/opentaps/foundation/service/ofbiz/POJOJavaEngine.java index 551ce6269..5fea1f295 100644 --- a/opentaps/opentaps-common/src/base/org/opentaps/foundation/service/ofbiz/POJOJavaE...
false
true
private Object serviceInvoker(String localName, ModelService modelService, Map context) throws GenericServiceException { DispatchContext dctx = dispatcher.getLocalContext(localName); if (modelService == null) { Debug.logError("ERROR: Null Model Service.", module); } if (...
private Object serviceInvoker(String localName, ModelService modelService, Map context) throws GenericServiceException { DispatchContext dctx = dispatcher.getLocalContext(localName); if (modelService == null) { Debug.logError("ERROR: Null Model Service.", module); } if (...
diff --git a/org.ducktools.eclipse.tycho.samples.ui.java.test/src/org/ducktools/eclipse/tycho/samples/ui/views/HelloWorldViewTest.java b/org.ducktools.eclipse.tycho.samples.ui.java.test/src/org/ducktools/eclipse/tycho/samples/ui/views/HelloWorldViewTest.java index 916eafb..f3f65e5 100644 --- a/org.ducktools.eclipse.tyc...
false
true
public void it_should_have_hello_world_as_title() { // given: a hello world view in the Java perspective bot.perspectiveById("org.eclipse.jdt.ui.JavaPerspective").activate(); SWTBotView helloWorldView = bot.viewById("org.ducktools.eclipse.tycho.samples.ui.views.HelloWorldView"); // expected: the titl...
public void it_should_have_hello_world_as_title() { // given: a hello world view in the Java perspective bot.perspectiveById("org.eclipse.jdt.ui.JavaPerspective").activate(); SWTBotView helloWorldView = bot.viewById("org.ducktools.eclipse.tycho.samples.ui.views.HelloWorldJavaView"); // expected: the ...
diff --git a/net.sf.rcer.jcoimport/src/net/sf/rcer/jcoimport/SummaryPage.java b/net.sf.rcer.jcoimport/src/net/sf/rcer/jcoimport/SummaryPage.java index b33ef7d..0fc8e29 100644 --- a/net.sf.rcer.jcoimport/src/net/sf/rcer/jcoimport/SummaryPage.java +++ b/net.sf.rcer.jcoimport/src/net/sf/rcer/jcoimport/SummaryPage.java @@ ...
true
true
public void createControl(Composite parent) { Composite top = new Composite(parent, SWT.NONE); GridLayoutFactory.swtDefaults().applyTo(top); Label info = new Label(top, SWT.NONE); info.setText(Messages.SummaryPage_InfoLabel); checkboxPlugin = new Button(top, SWT.CHECK); context.bindValue(SWTObservabl...
public void createControl(Composite parent) { Composite top = new Composite(parent, SWT.NONE); GridLayoutFactory.swtDefaults().applyTo(top); Label info = new Label(top, SWT.NONE); info.setText(Messages.SummaryPage_InfoLabel); checkboxPlugin = new Button(top, SWT.CHECK); context.bindValue(SWTObservabl...
diff --git a/src/blay09/mods/irc/command/IRCCommandHandler.java b/src/blay09/mods/irc/command/IRCCommandHandler.java index 4fafd41c..da40c7c2 100644 --- a/src/blay09/mods/irc/command/IRCCommandHandler.java +++ b/src/blay09/mods/irc/command/IRCCommandHandler.java @@ -1,801 +1,798 @@ // Copyright (c) 2013, Christopher "...
false
true
public static boolean processCommand(ICommandSender sender, String[] args, boolean serverSide) { String commandName = serverSide ? "servirc" : "irc"; if(args.length < 1) { throw new WrongUsageException("commands.irc.usage", commandName); } String cmd = args[0]; if(cmd.equals("connect")) { // [serv]irc con...
public static boolean processCommand(ICommandSender sender, String[] args, boolean serverSide) { String commandName = serverSide ? "servirc" : "irc"; if(args.length < 1) { throw new WrongUsageException("commands.irc.usage", commandName); } String cmd = args[0]; if(cmd.equals("connect")) { // [serv]irc con...
diff --git a/loci/visbio/ClassManager.java b/loci/visbio/ClassManager.java index 84dfbb9..1ea8262 100644 --- a/loci/visbio/ClassManager.java +++ b/loci/visbio/ClassManager.java @@ -1,101 +1,101 @@ // // ClassManager.java // /* VisBio application for visualization of multidimensional biological image data. Copyr...
true
true
private void doGUI() { // preload a bunch of classes int size = preloadClasses.size(); String pkg = ""; for (int i=0; i<size; i++) { String className = (String) preloadClasses.elementAt(i); int dot = className.lastIndexOf("."); String prefix = className.substring(0, dot); if (!...
private void doGUI() { // preload a bunch of classes int size = preloadClasses.size(); String pkg = ""; for (int i=0; i<size; i++) { String className = (String) preloadClasses.elementAt(i); int dot = className.lastIndexOf("."); String prefix = className.substring(0, dot); if (!...
diff --git a/ide/eclipse/esb/org.wso2.developerstudio.eclipse.artifact.proxyservice/src/org/wso2/developerstudio/eclipse/artifact/proxyservice/validators/ProxyServiceProjectFieldController.java b/ide/eclipse/esb/org.wso2.developerstudio.eclipse.artifact.proxyservice/src/org/wso2/developerstudio/eclipse/artifact/proxyse...
false
true
public void validate(String modelProperty, Object value, ProjectDataModel model) throws FieldValidationException { boolean optWsdlbasedProxy = false; boolean optCustomProxy = false; ArtifactTemplate selectedTemplate = (ArtifactTemplate)model.getModelPropertyValue("ps.type"); if(selectedTemplate!=nul...
public void validate(String modelProperty, Object value, ProjectDataModel model) throws FieldValidationException { boolean optWsdlbasedProxy = false; boolean optCustomProxy = false; ArtifactTemplate selectedTemplate = (ArtifactTemplate)model.getModelPropertyValue("ps.type"); if(selectedTemplate!=nul...
diff --git a/src/main/java/com/fordfrog/ruian2pgsql/utils/XMLStringUtil.java b/src/main/java/com/fordfrog/ruian2pgsql/utils/XMLStringUtil.java index fbddc57..de2899e 100644 --- a/src/main/java/com/fordfrog/ruian2pgsql/utils/XMLStringUtil.java +++ b/src/main/java/com/fordfrog/ruian2pgsql/utils/XMLStringUtil.java @@ -1,2...
true
true
private static void writeElementTree(final XMLStreamReader reader, final XMLStreamWriter writer, final boolean setNamespace) throws XMLStreamException { final String namespace = reader.getNamespaceURI(); final String localName = reader.getLocalName(); writer.writeSta...
private static void writeElementTree(final XMLStreamReader reader, final XMLStreamWriter writer, final boolean setNamespace) throws XMLStreamException { final String namespace = reader.getNamespaceURI(); final String localName = reader.getLocalName(); writer.writeSta...
diff --git a/app/controllers/PlanService.java b/app/controllers/PlanService.java index 4d8e110..7911ab9 100644 --- a/app/controllers/PlanService.java +++ b/app/controllers/PlanService.java @@ -1,90 +1,90 @@ package controllers; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import j...
true
true
public static void getRetrievalPlan(@NotNull String videoId, @NotNull String userId){ if(validation.hasErrors()){ play.Logger.error("Invalid params: %s", params); jsonError("Invalid params"); } play.Logger.info("Retrieval plan requested by user: "+userId+" for video: "+videoId); User planRequester...
public static void getRetrievalPlan(@NotNull String videoId, @NotNull String userId){ if(validation.hasErrors()){ play.Logger.error("Invalid params: %s", params); jsonError("Invalid params"); } play.Logger.info("Retrieval plan requested by user: "+userId+" for video: "+videoId); User planRequester...
diff --git a/src/main/java/ee/ignorance/transformiceapi/ServerMessagesParser.java b/src/main/java/ee/ignorance/transformiceapi/ServerMessagesParser.java index 03fd813..f5a62ae 100644 --- a/src/main/java/ee/ignorance/transformiceapi/ServerMessagesParser.java +++ b/src/main/java/ee/ignorance/transformiceapi/ServerMessage...
true
true
public static AbstractResponse parse(byte[] bytes) { List<String> rawMessage = split(bytes); int codeMajor = (int) rawMessage.get(0).charAt(0); int codeMinor = (int) rawMessage.get(0).charAt(1); if (codeMajor == 26) { if (codeMinor == 22) { return new IntroduceResponse(rawMessage); } if (codeMinor...
public static AbstractResponse parse(byte[] bytes) { List<String> rawMessage = split(bytes); int codeMajor = (int) rawMessage.get(0).charAt(0); int codeMinor = (int) rawMessage.get(0).charAt(1); if (codeMajor == 26) { if (codeMinor == 22) { return new IntroduceResponse(rawMessage); } if (codeMinor...
diff --git a/de.gebit.integrity.runner/src/de/gebit/integrity/runner/console/ConsoleTestExecutor.java b/de.gebit.integrity.runner/src/de/gebit/integrity/runner/console/ConsoleTestExecutor.java index 5686b6c1..ef4b1689 100644 --- a/de.gebit.integrity.runner/src/de/gebit/integrity/runner/console/ConsoleTestExecutor.java ...
true
true
public void run(String[] someArgs) { SimpleCommandLineParser tempParser = new SimpleCommandLineParser(); SimpleCommandLineParser.BooleanOption tempConsoleOption = new SimpleCommandLineParser.BooleanOption("s", "silent", "Disable console logging during test execution", "[{-s,--silent}]"); SimpleCommandLinePar...
public void run(String[] someArgs) { SimpleCommandLineParser tempParser = new SimpleCommandLineParser(); SimpleCommandLineParser.BooleanOption tempConsoleOption = new SimpleCommandLineParser.BooleanOption("s", "silent", "Disable console logging during test execution", "[{-s,--silent}]"); SimpleCommandLinePar...
diff --git a/container-tests/src/test/java/org/jboss/forge/furnace/ForgeSetArgsTest.java b/container-tests/src/test/java/org/jboss/forge/furnace/ForgeSetArgsTest.java index 69eaa2b..2ebc7ce 100644 --- a/container-tests/src/test/java/org/jboss/forge/furnace/ForgeSetArgsTest.java +++ b/container-tests/src/test/java/org/j...
true
true
public void testAddonsCanReferenceDependenciesInOtherRepositories() throws IOException { String[] args = new String[] { "arg1", "arg2" }; Furnace forge = ForgeFactory.getInstance(Furnace.class.getClassLoader()); forge.setArgs(args); forge.addRepository(AddonRepositoryMode.MUTABLE, repodir...
public void testAddonsCanReferenceDependenciesInOtherRepositories() throws IOException { String[] args = new String[] { "arg1", "arg2" }; Furnace forge = ForgeFactory.getInstance(Furnace.class.getClassLoader()); forge.setArgs(args); forge.addRepository(AddonRepositoryMode.MUTABLE, repodir...
diff --git a/Spider.java b/Spider.java index 4831afc..aa6c73a 100644 --- a/Spider.java +++ b/Spider.java @@ -1,38 +1,38 @@ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import java.util.r...
true
true
private static List<String> findLinks(final InputStream in) throws IOException { final BufferedReader reader = new BufferedReader(new InputStreamReader(in)); final List<String> foundLinks = new ArrayList<>(); String line; while ((line=reader.readLine()) != null) { final Matcher matcher = HREF_REGEX.matcher...
private static List<String> findLinks(final InputStream in) throws IOException { final BufferedReader reader = new BufferedReader(new InputStreamReader(in)); final List<String> foundLinks = new ArrayList<>(); String line; while ((line=reader.readLine()) != null) { final Matcher matcher = HREF_REGEX.matcher...
diff --git a/src/test/java/net/ayld/facade/api/RegistrarTest.java b/src/test/java/net/ayld/facade/api/RegistrarTest.java index 19e0437..ec2c884 100644 --- a/src/test/java/net/ayld/facade/api/RegistrarTest.java +++ b/src/test/java/net/ayld/facade/api/RegistrarTest.java @@ -1,48 +1,48 @@ package net.ayld.facade.api; ...
true
true
public void jarExtractionUpdateCallCount() throws IOException { final Listener callCountListener = new Listener(); ListenerRegistrar.listeners(callCountListener).register(); LibraryMinimizer .forSourcesAt(toPath(Resources.getResource("test-classes/test-src-dir"))) .withLibs(toPath(Resources.getResour...
public void jarExtractionUpdateCallCount() throws IOException { final Listener callCountListener = new Listener(); ListenerRegistrar.listeners(callCountListener).register(); LibraryMinimizer .forSourcesAt(toPath(Resources.getResource("test-classes/test-src-dir"))) .withLibs(toPath(Resources.getResour...
diff --git a/com/buglabs/bug/module/gps/NMEARawFeed.java b/com/buglabs/bug/module/gps/NMEARawFeed.java index 2bc0cd5..043cb75 100644 --- a/com/buglabs/bug/module/gps/NMEARawFeed.java +++ b/com/buglabs/bug/module/gps/NMEARawFeed.java @@ -1,17 +1,17 @@ package com.buglabs.bug.module.gps; import java.io.InputStream; ...
true
true
public NMEARawFeed(InputStream is) { super(is); setName("NMEARawFeed"); setLogService(LogServiceUtil.getLogService(Activator.getInstance().getBundleContext())); }
public NMEARawFeed(InputStream is, long read_delay) { super(is, 1, 0, read_delay); setName("NMEARawFeed"); setLogService(LogServiceUtil.getLogService(Activator.getInstance().getBundleContext())); }
diff --git a/src/org/openstreetmap/josm/gui/io/ChangesetManagementPanel.java b/src/org/openstreetmap/josm/gui/io/ChangesetManagementPanel.java index e86ff813..fa4286ae 100644 --- a/src/org/openstreetmap/josm/gui/io/ChangesetManagementPanel.java +++ b/src/org/openstreetmap/josm/gui/io/ChangesetManagementPanel.java @@ -1...
true
true
protected void build() { setLayout(new GridBagLayout()); GridBagConstraints gc = new GridBagConstraints(); setBorder(BorderFactory.createEmptyBorder(3,3,3,3)); bgUseNewOrExisting = new ButtonGroup(); gc.gridwidth = 4; gc.gridx = 0; gc.gridy = 0; gc.f...
protected void build() { setLayout(new GridBagLayout()); GridBagConstraints gc = new GridBagConstraints(); setBorder(BorderFactory.createEmptyBorder(3,3,3,3)); bgUseNewOrExisting = new ButtonGroup(); gc.gridwidth = 4; gc.gridx = 0; gc.gridy = 0; gc.f...
diff --git a/sveditor/plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/expr_utils/SVExprScanner.java b/sveditor/plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/expr_utils/SVExprScanner.java index c344419a..2d976f5c 100644 --- a/sveditor/plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/expr_utils/SVExprS...
true
true
public SVExprContext extractExprContext( IBIDITextScanner scanner, boolean leaf_scan_fwd) { SVExprContext ret = new SVExprContext(); debug("--> extractExprContext()"); int c = -1; boolean scan_fwd = scanner.getScanFwd(); scanner.setScanFwd(false); c = scanner.get_ch(); debug(" First Ch...
public SVExprContext extractExprContext( IBIDITextScanner scanner, boolean leaf_scan_fwd) { SVExprContext ret = new SVExprContext(); debug("--> extractExprContext()"); int c = -1; boolean scan_fwd = scanner.getScanFwd(); scanner.setScanFwd(false); c = scanner.get_ch(); debug(" First Ch...
diff --git a/app/controllers/Application.java b/app/controllers/Application.java index 04c945f..9afab3d 100644 --- a/app/controllers/Application.java +++ b/app/controllers/Application.java @@ -1,113 +1,117 @@ /**************************************************************************** * * Copyright (c) 2013, Lina...
true
true
public static Result step( String flowId, String stepId ) { String dir = MiscUtils.loadPreferences().logRootDirectory; FlowBuilder flowBuilder = new FlowBuilder(); flowBuilder.setLogDirectories( dir ); Flow flowObject = flowBuilder.parseFlow( flowId ); FlowStep stepObject = flowObject.getRoot().findDescend...
public static Result step( String flowId, String stepId ) { String dir = MiscUtils.loadPreferences().logRootDirectory; FlowBuilder flowBuilder = new FlowBuilder(); flowBuilder.setLogDirectories( dir ); Flow flowObject = flowBuilder.parseFlow( flowId ); FlowStep stepObject; if( stepId.equals( flowObject.g...
diff --git a/MODSRC/vazkii/tinkerer/common/block/BlockPlatform.java b/MODSRC/vazkii/tinkerer/common/block/BlockPlatform.java index 71ffa43f..6ee5d1d3 100644 --- a/MODSRC/vazkii/tinkerer/common/block/BlockPlatform.java +++ b/MODSRC/vazkii/tinkerer/common/block/BlockPlatform.java @@ -1,43 +1,43 @@ /** * This class was...
true
true
public void addCollisionBoxesToList(World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, List par6List, Entity par7Entity) { if(par7Entity.posY > par3 + (par7Entity instanceof EntityPlayer ? 1 : 0) && (!(par7Entity instanceof EntityPlayer) || !par7Entity.isSneaking())) super.addCollisio...
public void addCollisionBoxesToList(World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, List par6List, Entity par7Entity) { if(par7Entity != null && par7Entity.posY > par3 + (par7Entity instanceof EntityPlayer ? 1 : 0) && (!(par7Entity instanceof EntityPlayer) || !par7Entity.isSneaking())...
diff --git a/java/test/org/broadinstitute/sting/gatk/walkers/qc/ValidatingPileupIntegrationTest.java b/java/test/org/broadinstitute/sting/gatk/walkers/qc/ValidatingPileupIntegrationTest.java index 72e03346e..9d26129cc 100644 --- a/java/test/org/broadinstitute/sting/gatk/walkers/qc/ValidatingPileupIntegrationTest.java +...
true
true
public void testEcoliThreaded() { WalkerTest.WalkerTestSpec spec = new WalkerTest.WalkerTestSpec( "-T ValidatingPileup" + " -I /humgen/gsa-scr1/GATK_Data/Validation_Data/MV1994.selected.bam" + " -R /humgen/gsa-scr1/GATK_Data/Validation_Data/Escherichia_coli_K1...
public void testEcoliThreaded() { WalkerTest.WalkerTestSpec spec = new WalkerTest.WalkerTestSpec( "-T ValidatingPileup" + " -I " + validationDataLocation + "MV1994.selected.bam" + " -R " + validationDataLocation + "Escherichia_coli_K12_MG1655.fasta" + ...
diff --git a/wikapidia-core/src/test/java/org/wikapidia/core/dao/TestDao.java b/wikapidia-core/src/test/java/org/wikapidia/core/dao/TestDao.java index 3bfeba15..98689010 100644 --- a/wikapidia-core/src/test/java/org/wikapidia/core/dao/TestDao.java +++ b/wikapidia-core/src/test/java/org/wikapidia/core/dao/TestDao.java @...
false
true
public void testArticle() throws ClassNotFoundException, IOException, SQLException { Class.forName("org.h2.Driver"); File tmpDir = File.createTempFile("wikapidia-h2", null); tmpDir.delete(); tmpDir.deleteOnExit(); tmpDir.mkdirs(); BoneCPDataSource ds = new B...
public void testArticle() throws ClassNotFoundException, IOException, SQLException { Class.forName("org.h2.Driver"); File tmpDir = File.createTempFile("wikapidia-h2", null); tmpDir.delete(); tmpDir.deleteOnExit(); tmpDir.mkdirs(); BoneCPDataSource ds = new B...
diff --git a/android-app/RPInfo/src/org/rpi/rpinfo/DetailedView/DetailedViewActivity.java b/android-app/RPInfo/src/org/rpi/rpinfo/DetailedView/DetailedViewActivity.java index d16324a..598f436 100644 --- a/android-app/RPInfo/src/org/rpi/rpinfo/DetailedView/DetailedViewActivity.java +++ b/android-app/RPInfo/src/org/rpi/r...
true
true
private boolean addToContacts(){ ArrayList<ContentProviderOperation> ops = new ArrayList<ContentProviderOperation>(); //Backreference value. Don't need to do anything to it. int contact_index = 0; //Use the RCS ID as a unique account identifier String accountName = selectedPerson.getElement("rcsid", null...
private boolean addToContacts(){ ArrayList<ContentProviderOperation> ops = new ArrayList<ContentProviderOperation>(); //Backreference value. Don't need to do anything to it. int contact_index = 0; //Use the RCS ID as a unique account identifier String accountName = selectedPerson.getElement("rcsid", null...
diff --git a/src/main/java/com/flaptor/indextank/apiclient/IndexTankClient.java b/src/main/java/com/flaptor/indextank/apiclient/IndexTankClient.java index fa4425a..96412d9 100644 --- a/src/main/java/com/flaptor/indextank/apiclient/IndexTankClient.java +++ b/src/main/java/com/flaptor/indextank/apiclient/IndexTankClient....
true
true
private static Object callAPI(String method, String urlString, Map<String, String> params, String data, String privatePass) throws IOException, HttpCodeException { if (params!=null && !params.isEmpty()) { urlString += "?" + paramsToQueryString(params); } URL url = new UR...
private static Object callAPI(String method, String urlString, Map<String, String> params, String data, String privatePass) throws IOException, HttpCodeException { if (params!=null && !params.isEmpty()) { urlString += "?" + paramsToQueryString(params); } URL url = new UR...
diff --git a/name/richardson/james/jlist/jList.java b/name/richardson/james/jlist/jList.java index 294d325..5d8c9c7 100644 --- a/name/richardson/james/jlist/jList.java +++ b/name/richardson/james/jlist/jList.java @@ -1,107 +1,107 @@ package name.richardson.james.jlist; import java.util.ArrayList; import java.util....
true
true
public String createPlayerList(String header, List<Player> players) { StringBuilder message = new StringBuilder(); final String seperator = "§f, "; int currentLine = 1; int hiddenChars = 0; message.append(header); if (players.size() != 0) { for (Player player : players) { ...
public String createPlayerList(String header, List<Player> players) { StringBuilder message = new StringBuilder(); final String seperator = "§f, "; int currentLine = 1; int hiddenChars = 0; message.append(header); if (players.size() != 0) { for (Player player : players) { ...
diff --git a/pace-server/src/com/pace/server/eval/ES_RecalcMeasures.java b/pace-server/src/com/pace/server/eval/ES_RecalcMeasures.java index 5a0ca156..7372beee 100644 --- a/pace-server/src/com/pace/server/eval/ES_RecalcMeasures.java +++ b/pace-server/src/com/pace/server/eval/ES_RecalcMeasures.java @@ -1,145 +1,145 @@ ...
true
true
public void performEvaluation(EvalState evalState) throws PafException { long startTime = System.currentTimeMillis(); long stepTime; PafDataCache dataCache = evalState.getDataCache(); String measureDim = evalState.getClientState().getApp().getMdbDef().getMeasureDim(); ...
public void performEvaluation(EvalState evalState) throws PafException { long startTime = System.currentTimeMillis(); long stepTime; PafDataCache dataCache = evalState.getDataCache(); String measureDim = evalState.getClientState().getApp().getMdbDef().getMeasureDim(); ...
diff --git a/src/com/m0pt0pmatt/bettereconomy/CommandHandler.java b/src/com/m0pt0pmatt/bettereconomy/CommandHandler.java index ec3ca43..b51a8e3 100644 --- a/src/com/m0pt0pmatt/bettereconomy/CommandHandler.java +++ b/src/com/m0pt0pmatt/bettereconomy/CommandHandler.java @@ -1,189 +1,194 @@ package com.m0pt0pmatt.bettere...
true
true
public static boolean commands(CommandSender sender, Command cmd, String label, String[] args){ /** * player wants to deposit money */ if(cmd.getName().equalsIgnoreCase("deposit")){ if (args.length == 3){ if (!(sender instanceof BlockCommandSender)){ return false; } //ADDED 2/21/13 @au...
public static boolean commands(CommandSender sender, Command cmd, String label, String[] args){ /** * player wants to deposit money */ if(cmd.getName().equalsIgnoreCase("deposit")){ if (args.length == 3){ if (!(sender instanceof BlockCommandSender)){ return false; } //ADDED 2/21/13 @au...
diff --git a/backend/src/com/mymed/model/data/session/MSessionBean.java b/backend/src/com/mymed/model/data/session/MSessionBean.java index a50bf4403..728bd0134 100644 --- a/backend/src/com/mymed/model/data/session/MSessionBean.java +++ b/backend/src/com/mymed/model/data/session/MSessionBean.java @@ -1,196 +1,196 @@ pa...
false
true
public boolean equals(final Object object) { boolean equal = false; if (this == object) { equal = true; } else if (object instanceof MSessionBean) { final MSessionBean comparable = (MSessionBean) object; /* * We compare only a subsets of the field to check that two * MUserBean objects are the...
public boolean equals(final Object object) { boolean equal = false; if (this == object) { equal = true; } else if (object instanceof MSessionBean) { final MSessionBean comparable = (MSessionBean) object; /* * We compare only a subsets of the field to check that two * MUserBean objects are the...
diff --git a/gdx/src/com/badlogic/gdx/assets/loaders/TextureLoader.java b/gdx/src/com/badlogic/gdx/assets/loaders/TextureLoader.java index f4df20cbd..6112737a1 100644 --- a/gdx/src/com/badlogic/gdx/assets/loaders/TextureLoader.java +++ b/gdx/src/com/badlogic/gdx/assets/loaders/TextureLoader.java @@ -1,120 +1,120 @@ /*...
false
true
public void loadAsync (AssetManager manager, String fileName, FileHandle file, TextureParameter parameter) { info.filename = fileName; if (parameter == null || parameter.textureData == null) { Pixmap pixmap = null; Format format = null; boolean genMipMaps = false; info.texture = null; if (parameter...
public void loadAsync (AssetManager manager, String fileName, FileHandle file, TextureParameter parameter) { info.filename = fileName; if (parameter == null || parameter.textureData == null) { Pixmap pixmap = null; Format format = null; boolean genMipMaps = false; info.texture = null; if (parameter...
diff --git a/org.emftext.sdk/src/org/emftext/sdk/codegen/generators/ManifestGenerator.java b/org.emftext.sdk/src/org/emftext/sdk/codegen/generators/ManifestGenerator.java index 860da6df6..081334645 100644 --- a/org.emftext.sdk/src/org/emftext/sdk/codegen/generators/ManifestGenerator.java +++ b/org.emftext.sdk/src/org/e...
false
true
private String getManifestContent() { StringComposite sc = new ManifestComposite(); ConcreteSyntax concreteSyntax = context.getConcreteSyntax(); String projectName = context.getPluginName(); sc.add("Manifest-Version: 1.0"); sc.add("Bundle-ManifestVersion: 2"); sc.add("Bundle-Name: EMFText Parser Plugin:...
private String getManifestContent() { StringComposite sc = new ManifestComposite(); ConcreteSyntax concreteSyntax = context.getConcreteSyntax(); String projectName = context.getPluginName(); sc.add("Manifest-Version: 1.0"); sc.add("Bundle-ManifestVersion: 2"); sc.add("Bundle-Name: EMFText Parser Plugin:...
diff --git a/src/main/java/org/waarp/openr66/database/model/DbModelOracle.java b/src/main/java/org/waarp/openr66/database/model/DbModelOracle.java index ebb43c9a..ce2d312d 100644 --- a/src/main/java/org/waarp/openr66/database/model/DbModelOracle.java +++ b/src/main/java/org/waarp/openr66/database/model/DbModelOracle.ja...
false
true
public void createTables(DbSession session) throws WaarpDatabaseNoConnectionException { // Create tables: configuration, hosts, rules, runner, cptrunner String createTableH2 = "CREATE TABLE "; String constraint = " CONSTRAINT "; String primaryKey = " PRIMARY KEY "; String notNull = " NOT NULL "; // Multip...
public void createTables(DbSession session) throws WaarpDatabaseNoConnectionException { // Create tables: configuration, hosts, rules, runner, cptrunner String createTableH2 = "CREATE TABLE "; String constraint = " CONSTRAINT "; String primaryKey = " PRIMARY KEY "; String notNull = " NOT NULL "; // Multip...
diff --git a/src/main/java/com/github/rnewson/couchdb/lucene/LuceneServlet.java b/src/main/java/com/github/rnewson/couchdb/lucene/LuceneServlet.java index ae6cbe8..b4dd0f3 100644 --- a/src/main/java/com/github/rnewson/couchdb/lucene/LuceneServlet.java +++ b/src/main/java/com/github/rnewson/couchdb/lucene/LuceneServlet....
true
true
private void cleanup(final HttpServletRequest req, final HttpServletResponse resp) throws IOException { final Couch couch = getCouch(req); final Set<String> dbKeep = new HashSet<String>(); for (final String dbname : couch.getAllDatabases()) { final Database db = couch.getDatabase(dbname); final UUID uu...
private void cleanup(final HttpServletRequest req, final HttpServletResponse resp) throws IOException { final Couch couch = getCouch(req); final Set<String> dbKeep = new HashSet<String>(); for (final String dbname : couch.getAllDatabases()) { final Database db = couch.getDatabase(dbname); final UUID uu...
diff --git a/frontend/http_server/src/java/ConstructorHandler.java b/frontend/http_server/src/java/ConstructorHandler.java index 97fe70a..4c2992d 100644 --- a/frontend/http_server/src/java/ConstructorHandler.java +++ b/frontend/http_server/src/java/ConstructorHandler.java @@ -1,111 +1,116 @@ package eo.frontend.httpse...
true
true
public Response handle(final Request request) { try { Response r = new Response(); if ((request.getParameterValues("sid") != null) && (request.getParameterValues("poi_id") != null)) { //we have to add poi to existing user`s route int poi_id = Integer.parseInt(...
public Response handle(final Request request) { try { Response r = new Response(); if ((request.getParameterValues("sid") != null) && (request.getParameterValues("poi_id") != null)) { //we have to add poi to existing user`s route int poi_id = Integer.parseInt(...
diff --git a/plugins/org.eclipse.gmf.common/src/org/eclipse/gmf/internal/common/codegen/GeneratorBase.java b/plugins/org.eclipse.gmf.common/src/org/eclipse/gmf/internal/common/codegen/GeneratorBase.java index 49b742253..c27951958 100644 --- a/plugins/org.eclipse.gmf.common/src/org/eclipse/gmf/internal/common/codegen/Ge...
true
true
protected final void doGenerateJavaClass(TextEmitter emitter, String packageName, String className, Object... input) throws InterruptedException { IProgressMonitor pm = getNextStepMonitor(); try { setProgressTaskName(className); pm.beginTask(null, 5); String genText = emitter.generate(new SubProgressMonit...
protected final void doGenerateJavaClass(TextEmitter emitter, String packageName, String className, Object... input) throws InterruptedException { IProgressMonitor pm = getNextStepMonitor(); try { setProgressTaskName(className); pm.beginTask(null, 5); String genText = emitter.generate(new SubProgressMonit...
diff --git a/qdox/src/it/qdox-224/src/test/java/ClasspathSourcesTest.java b/qdox/src/it/qdox-224/src/test/java/ClasspathSourcesTest.java index 6c27f165..bd1c5619 100644 --- a/qdox/src/it/qdox-224/src/test/java/ClasspathSourcesTest.java +++ b/qdox/src/it/qdox-224/src/test/java/ClasspathSourcesTest.java @@ -1,34 +1,33 @@...
true
true
public void testCommonsLangSources() throws Exception { JavaProjectBuilder builder = new JavaProjectBuilder(); builder.addClassLoader( ClassLoader.getSystemClassLoader() ); JavaClass clazz = builder.getClassByName( "org.apache.commons.lang.BitField" ); //0 is constructor....
public void testCommonsLangSources() throws Exception { JavaProjectBuilder builder = new JavaProjectBuilder(); builder.addClassLoader( ClassLoader.getSystemClassLoader() ); JavaClass clazz = builder.getClassByName( "org.apache.commons.lang.BitField" ); JavaMethod method =...
diff --git a/Echode/src/com/base/echode/Echode.java b/Echode/src/com/base/echode/Echode.java index 6d995dd..9eda32c 100644 --- a/Echode/src/com/base/echode/Echode.java +++ b/Echode/src/com/base/echode/Echode.java @@ -1,99 +1,99 @@ package com.base.echode; import java.text.SimpleDateFormat; import java.util.Calenda...
true
true
private static void parse(String in2) { /** * Commented this out, in case needed. * * if (in2.equalsIgnoreCase("about")) { System.out.println( * "Echode version 0.2.2\nMade by Erik Konijn and Marks Polakovs"); } * else { if (in2.equalsIgnoreCase("kill")){ * System.out.println("Echode shut down suc...
private static void parse(String in2) { /** * Commented this out, in case needed. * * if (in2.equalsIgnoreCase("about")) { System.out.println( * "Echode version 0.2.2\nMade by Erik Konijn and Marks Polakovs"); } * else { if (in2.equalsIgnoreCase("kill")){ * System.out.println("Echode shut down suc...
diff --git a/faims-android-app/src/au/org/intersect/faims/android/nutiteq/WKBUtil.java b/faims-android-app/src/au/org/intersect/faims/android/nutiteq/WKBUtil.java index b7f53dca..2aa97e75 100644 --- a/faims-android-app/src/au/org/intersect/faims/android/nutiteq/WKBUtil.java +++ b/faims-android-app/src/au/org/intersect/...
true
true
public static Geometry cleanGeometry(Geometry geom) { if (geom instanceof Polygon) { Polygon p = (Polygon) geom; LinkedList<MapPos> list = new LinkedList<MapPos>(p.getVertexList()); list.removeLast(); return new Polygon(list, new ArrayList<List<MapPos>>(), p.getLabel(), p.getStyleSet(), p.userData); } ...
public static Geometry cleanGeometry(Geometry geom) { if (geom instanceof Polygon) { Polygon p = (Polygon) geom; LinkedList<MapPos> list = new LinkedList<MapPos>(p.getVertexList()); if (list.get(0).equals(list.get(list.size()-1))) { list.removeLast(); } return new Polygon(list, new ArrayList<List<...
diff --git a/org.spoofax.interpreter.library.language/src/org/spoofax/interpreter/library/language/SemanticIndexEntryParent.java b/org.spoofax.interpreter.library.language/src/org/spoofax/interpreter/library/language/SemanticIndexEntryParent.java index 9addfd5..e84698f 100644 --- a/org.spoofax.interpreter.library.langu...
true
true
public void remove(SemanticIndexEntry entry) { allDefsCached = null; for (int i = 0, max = children.size(); i < max; i++) { if (children.get(i) == entry) children.remove(i--); } }
public void remove(SemanticIndexEntry entry) { allDefsCached = null; for (int i = 0; i < children.size(); i++) { if (children.get(i) == entry) children.remove(i--); } }
diff --git a/src/gov/nih/nci/rembrandt/web/graphing/data/GeneExpressionPlot.java b/src/gov/nih/nci/rembrandt/web/graphing/data/GeneExpressionPlot.java index f29f34a7..67ec905f 100755 --- a/src/gov/nih/nci/rembrandt/web/graphing/data/GeneExpressionPlot.java +++ b/src/gov/nih/nci/rembrandt/web/graphing/data/GeneExpressio...
true
true
public static HashMap generateBarChart(String gene, String reporter, HttpSession session, PrintWriter pw, GeneExpressionDataSetType geType) { String log2Filename = null; String rawFilename = null; String medianFilename = null; String bwFilename = ""; String legendHtml = null; HashMap charts = new HashMa...
public static HashMap generateBarChart(String gene, String reporter, HttpSession session, PrintWriter pw, GeneExpressionDataSetType geType) { String log2Filename = null; String rawFilename = null; String medianFilename = null; String bwFilename = ""; String legendHtml = null; HashMap charts = new HashMa...
diff --git a/ide/eclipse/registry/org.wso2.developerstudio.eclipse.artifact.registry/src/org/wso2/developerstudio/eclipse/artifact/registry/provider/ArtifactRegistryResourceProvider.java b/ide/eclipse/registry/org.wso2.developerstudio.eclipse.artifact.registry/src/org/wso2/developerstudio/eclipse/artifact/registry/prov...
false
true
private void scanAndCollectResources(Map<String, List<String>> filters) throws FactoryConfigurationError { resources=new ArrayList<IRegistryResource>(); List<IRegistryFile> childrenFiles = new ArrayList<IRegistryFile>(); List<IRegistryCollection> childrenCollections = new ArrayList<IRegistryCollection>(); if (...
private void scanAndCollectResources(Map<String, List<String>> filters) throws FactoryConfigurationError { resources=new ArrayList<IRegistryResource>(); List<IRegistryFile> childrenFiles = new ArrayList<IRegistryFile>(); List<IRegistryCollection> childrenCollections = new ArrayList<IRegistryCollection>(); if (...
diff --git a/src/com/linkomnia/android/StrokeFiveKeyboard/Stroke5Table.java b/src/com/linkomnia/android/StrokeFiveKeyboard/Stroke5Table.java index 6865a45..e1b912f 100644 --- a/src/com/linkomnia/android/StrokeFiveKeyboard/Stroke5Table.java +++ b/src/com/linkomnia/android/StrokeFiveKeyboard/Stroke5Table.java @@ -1,83 +1...
true
true
public ArrayList<String> searchRecord(String input) { ArrayList<String> result = new ArrayList<String>(); String[] args = {input}; String order = Stroke5Table.COLUMN_USAGE+", "+ Stroke5Table.COLUMN_CHAR +" DESC"; Cursor cursor = database.query(Stroke5Table.TABLE_NAME, ...
public ArrayList<String> searchRecord(String input) { ArrayList<String> result = new ArrayList<String>(); String[] args = {input}; String order = Stroke5Table.COLUMN_USAGE+" DESC , "+ Stroke5Table.COLUMN_ID +" ASC"; Cursor cursor = database.query(Stroke5Table.TABLE_NAME, ...
diff --git a/src/main/java/org/waarp/openr66/database/data/DbTaskRunner.java b/src/main/java/org/waarp/openr66/database/data/DbTaskRunner.java index 37fe21e7..5337dc4c 100644 --- a/src/main/java/org/waarp/openr66/database/data/DbTaskRunner.java +++ b/src/main/java/org/waarp/openr66/database/data/DbTaskRunner.java @@ -1...
false
true
private static DbPreparedStatement getFilterCondition( DbPreparedStatement preparedStatement, String srcrequest, int limit, String orderby, String startid, String stopid, Timestamp start, Timestamp stop, String rule, String req, boolean pending, boolean transfer, boolean error, boolean done, boolean all...
private static DbPreparedStatement getFilterCondition( DbPreparedStatement preparedStatement, String srcrequest, int limit, String orderby, String startid, String stopid, Timestamp start, Timestamp stop, String rule, String req, boolean pending, boolean transfer, boolean error, boolean done, boolean all...
diff --git a/src/com/esotericsoftware/kryo/serialize/FieldSerializer.java b/src/com/esotericsoftware/kryo/serialize/FieldSerializer.java index f6a5553..d6e1602 100644 --- a/src/com/esotericsoftware/kryo/serialize/FieldSerializer.java +++ b/src/com/esotericsoftware/kryo/serialize/FieldSerializer.java @@ -1,501 +1,501 @@...
true
true
public Access createAccess (Class type, ArrayList<CachedField> publicFields) { int fieldCount = publicFields.size(); Access access = classToAccess.get(type); if (access != null) return access; String className = type.getName(); String accessClassName = className + "Access"; Class accessClass = null...
public Access createAccess (Class type, ArrayList<CachedField> publicFields) { int fieldCount = publicFields.size(); Access access = classToAccess.get(type); if (access != null) return access; String className = type.getName(); String accessClassName = className + "Access"; Class accessClass = null...
diff --git a/org.smartsnip/src/org/smartsnip/junit/TestSession.java b/org.smartsnip/src/org/smartsnip/junit/TestSession.java index dc7fe27..a2bd6f1 100644 --- a/org.smartsnip/src/org/smartsnip/junit/TestSession.java +++ b/org.smartsnip/src/org/smartsnip/junit/TestSession.java @@ -1,141 +1,141 @@ package org.smartsnip....
true
true
public void testGetState() { final int threadcount = 10; /* * NOTE: This test case has currently serveral problems with the * IllegalStateException that normally should NOT be thrown!!! * * I have to work on this */ System.out.print("Testing session state with " + threadcount + " threads ... ")...
public void testGetState() { final int threadcount = 10; /* * XXX: This test case has currently serveral problems with the * IllegalStateException that normally should NOT be thrown!!! * * I have to work on this */ System.out.print("Testing session state with " + threadcount + " threads ... ");...
diff --git a/test/src/com/socialize/android/ioc/test/BeanMapperParserTest.java b/test/src/com/socialize/android/ioc/test/BeanMapperParserTest.java index b7b5f7e..d45d738 100644 --- a/test/src/com/socialize/android/ioc/test/BeanMapperParserTest.java +++ b/test/src/com/socialize/android/ioc/test/BeanMapperParserTest.java...
false
true
public void testBeanMapperParser() throws IOException { BeanMappingParser parser = new BeanMappingParser(); BeanMapping mapping = parser.parseFromAsset(getContext()); assertNotNull(mapping); Collection<BeanRef> beanRefs = mapping.getBeanRefs(); assertNotNull(beanRefs); assertEquals(8, beanRe...
public void testBeanMapperParser() throws IOException { BeanMappingParser parser = new BeanMappingParser(); BeanMapping mapping = parser.parseFromAsset(getContext()); assertNotNull(mapping); Collection<BeanRef> beanRefs = mapping.getBeanRefs(); assertNotNull(beanRefs); assertEquals(9, beanRe...
diff --git a/core/src/classes/org/jdesktop/wonderland/client/jme/login/WonderlandLoginDialog.java b/core/src/classes/org/jdesktop/wonderland/client/jme/login/WonderlandLoginDialog.java index 5078e5507..dee624dfe 100644 --- a/core/src/classes/org/jdesktop/wonderland/client/jme/login/WonderlandLoginDialog.java +++ b/core...
false
true
private void initComponents() { userPasswordPanel = new javax.swing.JPanel(); upServerLabel = new javax.swing.JLabel(); upPasswordLabel = new javax.swing.JLabel(); upUsernameLabel = new javax.swing.JLabel(); upServerField = new javax.swing.JTextField(); upPasswordFie...
private void initComponents() { userPasswordPanel = new javax.swing.JPanel(); upServerLabel = new javax.swing.JLabel(); upPasswordLabel = new javax.swing.JLabel(); upUsernameLabel = new javax.swing.JLabel(); upServerField = new javax.swing.JTextField(); upPasswordFie...
diff --git a/plugins/org.eclipse.xtend.core/xtend-gen/org/eclipse/xtend/core/formatting/FormatterExtensions.java b/plugins/org.eclipse.xtend.core/xtend-gen/org/eclipse/xtend/core/formatting/FormatterExtensions.java index d30218b28..55634887d 100644 --- a/plugins/org.eclipse.xtend.core/xtend-gen/org/eclipse/xtend/core/f...
false
true
public Iterable<FormattingData> newFormattingData(final HiddenLeafs leafs, final NewLineConfig configuration, final int indentationChange) { ArrayList<FormattingData> _xblockexpression = null; { final ArrayList<FormattingData> result = CollectionLiterals.<FormattingData>newArrayList(); boolean app...
public Iterable<FormattingData> newFormattingData(final HiddenLeafs leafs, final NewLineConfig configuration, final int indentationChange) { ArrayList<FormattingData> _xblockexpression = null; { final ArrayList<FormattingData> result = CollectionLiterals.<FormattingData>newArrayList(); boolean app...
diff --git a/src/mud/network/server/input/interpreter/ChatInterpreter.java b/src/mud/network/server/input/interpreter/ChatInterpreter.java index 79082e5..6f5ff68 100644 --- a/src/mud/network/server/input/interpreter/ChatInterpreter.java +++ b/src/mud/network/server/input/interpreter/ChatInterpreter.java @@ -1,116 +1,11...
true
true
public boolean interpret(Connection sender, ParsedInput input) { String firstWord = input.getFirstWord(); //Check to see if the message is a tell if (firstWord.equalsIgnoreCase("tell")) { String target = input.getWordAtIndex(1); //Check to see if there is no target ar...
public boolean interpret(Connection sender, ParsedInput input) { String firstWord = input.getFirstWord(); //Check to see if the message is a tell if (firstWord.equalsIgnoreCase("tell")) { String target = input.getWordAtIndex(1); //Check to see if there is no target ar...
diff --git a/java/src/org/exist/messaging/xquery/RegisterReceiver.java b/java/src/org/exist/messaging/xquery/RegisterReceiver.java index 650049e..24dfabb 100644 --- a/java/src/org/exist/messaging/xquery/RegisterReceiver.java +++ b/java/src/org/exist/messaging/xquery/RegisterReceiver.java @@ -1,115 +1,116 @@ /* * eX...
true
true
public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { // User must either be DBA or in the JMS group if (!context.getSubject().hasDbaRole() && !context.getSubject().hasGroup(Constants.JMS_GROUP)) { String txt = String.format("Permission denied, user '%s...
public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { // User must either be DBA or in the JMS group if (!context.getSubject().hasDbaRole() && !context.getSubject().hasGroup(Constants.JMS_GROUP)) { String txt = String.format("Permission denied, user '%s...
diff --git a/fog.launcher/src/de/tuilmenau/ics/fog/launcher/FoGLauncher.java b/fog.launcher/src/de/tuilmenau/ics/fog/launcher/FoGLauncher.java index d33ad920..e5f9bcef 100644 --- a/fog.launcher/src/de/tuilmenau/ics/fog/launcher/FoGLauncher.java +++ b/fog.launcher/src/de/tuilmenau/ics/fog/launcher/FoGLauncher.java @@ -1...
true
true
protected void create(Configuration pConfiguration) throws LauncherException { if(mSimulation != null) { throw new LauncherException(this, "Simulation already running."); } // store configuration for other methods if(pConfiguration != null){ mConfiguration = pConfiguration; } // read config...
protected void create(Configuration pConfiguration) throws LauncherException { if(mSimulation != null) { throw new LauncherException(this, "Simulation already running."); } // store configuration for other methods if(pConfiguration != null){ mConfiguration = pConfiguration; } // read config...
diff --git a/src/main/java/com/totalchange/bunman/jb7/Jb7Catalogue.java b/src/main/java/com/totalchange/bunman/jb7/Jb7Catalogue.java index 1b6499a..7e17e29 100644 --- a/src/main/java/com/totalchange/bunman/jb7/Jb7Catalogue.java +++ b/src/main/java/com/totalchange/bunman/jb7/Jb7Catalogue.java @@ -1,253 +1,255 @@ /* *...
true
true
private void processQueryResults(CatalogueSongListener listener, File file, String id, List<CddbResult> results) { if (logger.isTraceEnabled()) { logger.trace("Got CDDB results for file " + file + ", id " + id + ": " + results); } if (results.size...
private void processQueryResults(CatalogueSongListener listener, File file, String id, List<CddbResult> results) { if (logger.isTraceEnabled()) { logger.trace("Got CDDB results for file " + file + ", id " + id + ": " + results); } if (results.size...
diff --git a/curator-test/src/main/java/com/netflix/curator/test/KillSession.java b/curator-test/src/main/java/com/netflix/curator/test/KillSession.java index e6693d03..414b8b8e 100644 --- a/curator-test/src/main/java/com/netflix/curator/test/KillSession.java +++ b/curator-test/src/main/java/com/netflix/curator/test/Ki...
true
true
public static void kill(ZooKeeper client, String connectString, int maxMs) throws Exception { long startTicks = System.currentTimeMillis(); final CountDownLatch sessionLostLatch = new CountDownLatch(1); Watcher sessionLostWatch = new Watcher() ...
public static void kill(ZooKeeper client, String connectString, int maxMs) throws Exception { long startTicks = System.currentTimeMillis(); final CountDownLatch sessionLostLatch = new CountDownLatch(1); Watcher sessionLostWatch = new Watcher() ...
diff --git a/apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java b/apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java index 870f162d4..f2acafdff 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java +++ b/apps/routerconsole/java/src/net/i2p/router/...
false
true
public void startConsole() { File workDir = new SecureDirectory(I2PAppContext.getGlobalContext().getTempDir(), "jetty-work"); boolean workDirRemoved = FileUtil.rmdir(workDir, false); if (!workDirRemoved) System.err.println("ERROR: Unable to remove Jetty temporary work directory")...
public void startConsole() { File workDir = new SecureDirectory(I2PAppContext.getGlobalContext().getTempDir(), "jetty-work"); boolean workDirRemoved = FileUtil.rmdir(workDir, false); if (!workDirRemoved) System.err.println("ERROR: Unable to remove Jetty temporary work directory")...
diff --git a/src/main/java/org/mvel/MVELRuntime.java b/src/main/java/org/mvel/MVELRuntime.java index 32739d04..083a4cbc 100644 --- a/src/main/java/org/mvel/MVELRuntime.java +++ b/src/main/java/org/mvel/MVELRuntime.java @@ -1,285 +1,284 @@ package org.mvel; import static org.mvel.DataConversion.canConvert; import s...
true
true
public static Object execute(boolean debugger, CompiledExpression expression, Object ctx, VariableResolverFactory variableFactory) { final ASTLinkedList node = new ASTLinkedList(expression.getTokens().firstNode()); Stack stk = new ExecutionStack(); Object v1, v2; ASTNode tk = null;...
public static Object execute(boolean debugger, CompiledExpression expression, Object ctx, VariableResolverFactory variableFactory) { final ASTLinkedList node = new ASTLinkedList(expression.getTokens().firstNode()); Stack stk = new ExecutionStack(); Object v1, v2; ASTNode tk = null;...
diff --git a/src/net/rptools/maptool/model/Token.java b/src/net/rptools/maptool/model/Token.java index 9764694d..932257c1 100644 --- a/src/net/rptools/maptool/model/Token.java +++ b/src/net/rptools/maptool/model/Token.java @@ -1,379 +1,381 @@ /* The MIT License * * Copyright (c) 2005 David Rice, Trevor Croft * ...
true
true
public Token(Token token) { id = new GUID(); assetID = token.assetID; x = token.x; y = token.y; snapToScale = token.snapToScale; width = token.width; height = token.height; size = token.size; snapToGrid = token.snapToGrid; isVisible = token.isVisible; name = token.name; if (token.ownerList !...
public Token(Token token) { id = new GUID(); assetID = token.assetID; x = token.x; y = token.y; snapToScale = token.snapToScale; width = token.width; height = token.height; size = token.size; facing = token.facing; tokenType = token.tokenType; snapToGrid = token.snapToGrid; isVisible = token....
diff --git a/src/main/java/com/github/stefanbirkner/editors/SfbEnumEditor.java b/src/main/java/com/github/stefanbirkner/editors/SfbEnumEditor.java index a68510f..f1e8bf8 100644 --- a/src/main/java/com/github/stefanbirkner/editors/SfbEnumEditor.java +++ b/src/main/java/com/github/stefanbirkner/editors/SfbEnumEditor.java...
true
true
public SfbEnumEditor(Class<? extends Enum<E>> enumClass) { super(new EnumEditor(enumClass)); }
public SfbEnumEditor(Class<E> enumClass) { super(new EnumEditor<E>(enumClass)); }
diff --git a/src/test/java/ru/urbancamper/audiobookmarker/AudioBookMarkerUtilTest.java b/src/test/java/ru/urbancamper/audiobookmarker/AudioBookMarkerUtilTest.java index 8bb5d89..d505d2c 100644 --- a/src/test/java/ru/urbancamper/audiobookmarker/AudioBookMarkerUtilTest.java +++ b/src/test/java/ru/urbancamper/audiobookmar...
true
true
public void testMakeMarkersDirVersion() { ApplicationContext ctxt = new AnnotationConfigApplicationContext(BeansAnnotationsForTests.class); AudioFileRecognizerStub recognizer = (AudioFileRecognizerStub) ctxt.getBean("audioFileRecognizerStub"); recognizer.setStubText(RECOGNIZED_AND_ALIGNED_S...
public void testMakeMarkersDirVersion() { ApplicationContext ctxt = new AnnotationConfigApplicationContext(BeansAnnotationsForTests.class); AudioFileRecognizerStub recognizer = (AudioFileRecognizerStub) ctxt.getBean("audioFileRecognizerStub"); recognizer.setStubText(RECOGNIZED_AND_ALIGNED_S...
diff --git a/src/test/java/no/steria/swhrs/WebtestFrontpage.java b/src/test/java/no/steria/swhrs/WebtestFrontpage.java index f8c71bd..9baf0ee 100644 --- a/src/test/java/no/steria/swhrs/WebtestFrontpage.java +++ b/src/test/java/no/steria/swhrs/WebtestFrontpage.java @@ -1,46 +1,46 @@ package no.steria.swhrs; import s...
true
true
public void shouldDisplayFrontpage() throws Exception { Server server = new Server(0); server.setHandler(new WebAppContext("src/main/webapp", "/")); server.start(); int localPort = server.getConnectors()[0].getLocalPort(); WebDriver browser = createBrowser(); browser.get("http://localhost:" + localPort + "...
public void shouldDisplayFrontpage() throws Exception { Server server = new Server(0); server.setHandler(new WebAppContext("src/main/webapp", "/")); server.start(); int localPort = server.getConnectors()[0].getLocalPort(); WebDriver browser = createBrowser(); browser.get("http://localhost:" + localPort + "...
diff --git a/tests/org.bonitasoft.studio.connectors.test/src/org/bonitasoft/studio/connectors/test/TestProvidedDefinitionAndImplementation.java b/tests/org.bonitasoft.studio.connectors.test/src/org/bonitasoft/studio/connectors/test/TestProvidedDefinitionAndImplementation.java index 821b9b5cd7..59eab78cf2 100644 --- a/t...
true
true
public void testProvidedDefinitionsSanity() throws Exception { StringBuilder testReport = new StringBuilder("testProvidedDefinitionsSanity report:"); for(ConnectorDefinition definition : connectorDefStore.getDefinitions()){ String resourceName = definition.eResource().getURI().lastSegment(); if(connectorDefS...
public void testProvidedDefinitionsSanity() throws Exception { StringBuilder testReport = new StringBuilder("testProvidedDefinitionsSanity report:"); for(ConnectorDefinition definition : connectorDefStore.getDefinitions()){ String resourceName = definition.eResource().getURI().lastSegment(); if(connectorDefS...
diff --git a/src/main/java/com/jetdrone/vertx/yoke/middleware/Router.java b/src/main/java/com/jetdrone/vertx/yoke/middleware/Router.java index 32559f7d..922f6d65 100644 --- a/src/main/java/com/jetdrone/vertx/yoke/middleware/Router.java +++ b/src/main/java/com/jetdrone/vertx/yoke/middleware/Router.java @@ -1,746 +1,746 ...
false
true
public static Router from(Object... objs) { Router router = new Router(); for (Object o : objs) { for (final Method m : o.getClass().getMethods()) { Annotation[] annotations = m.getAnnotations(); // this method is not annotated if (annota...
public static Router from(Object... objs) { Router router = new Router(); for (Object o : objs) { for (final Method m : o.getClass().getMethods()) { Annotation[] annotations = m.getAnnotations(); // this method is not annotated if (annota...
diff --git a/src/test/java/net/praqma/hudson/test/integration/sibling/BaselinesFound.java b/src/test/java/net/praqma/hudson/test/integration/sibling/BaselinesFound.java index 581d544..f5c02e7 100644 --- a/src/test/java/net/praqma/hudson/test/integration/sibling/BaselinesFound.java +++ b/src/test/java/net/praqma/hudson/...
true
true
public void basicSibling() throws Exception { Stream one = ccenv.context.streams.get( "one_int" ); Stream two = ccenv.context.streams.get( "two_int" ); one.setDefaultTarget( two ); /* The baseline that should be built */ Baseline baseline = ccenv.context.baselines.get( "model-1" ); AbstractBuild<?...
public void basicSibling() throws Exception { Stream one = ccenv.context.streams.get( "one_int" ); Stream two = ccenv.context.streams.get( "two_int" ); one.setDefaultTarget( two ); /* The baseline that should be built */ Baseline baseline = ccenv.context.baselines.get( "model-1" ); AbstractBuild<?...
diff --git a/src/gnu/io/RXTXCommDriver.java b/src/gnu/io/RXTXCommDriver.java index eb50d21..8acb8dc 100644 --- a/src/gnu/io/RXTXCommDriver.java +++ b/src/gnu/io/RXTXCommDriver.java @@ -1,692 +1,692 @@ /*------------------------------------------------------------------------- | A wrapper to convert RXTX into Linux ...
true
true
private void registerScannedPorts(int PortType) { String[] CandidateDeviceNames; if (debug) System.out.println("scanning device directory "+deviceDirectory+" for ports of type "+PortType); if(osName.toLowerCase().indexOf("windows") != -1 ) { String[] temp = { "COM1", "COM2","COM3","COM4" }; /*FIXME U...
private void registerScannedPorts(int PortType) { String[] CandidateDeviceNames; if (debug) System.out.println("scanning device directory "+deviceDirectory+" for ports of type "+PortType); if(osName.toLowerCase().indexOf("windows") != -1 ) { String[] temp = { "COM1", "COM2","COM3","COM4" }; /*FIXME U...
diff --git a/solr/src/java/org/apache/solr/search/MutableValueInt.java b/solr/src/java/org/apache/solr/search/MutableValueInt.java index 0a6838e05..1502b1345 100755 --- a/solr/src/java/org/apache/solr/search/MutableValueInt.java +++ b/solr/src/java/org/apache/solr/search/MutableValueInt.java @@ -1,72 +1,66 @@ /** * ...
true
true
public int compareSameType(Object other) { MutableValueInt b = (MutableValueInt)other; int ai = value; int bi = b.value; int c = (int)((((long)ai) - ((long)bi)) >> 32); // any shift >= 32 should do. if (c!=0) return c; /* is there any pattern that the compiler would recognize as a single nati...
public int compareSameType(Object other) { MutableValueInt b = (MutableValueInt)other; int ai = value; int bi = b.value; if (ai<bi) return -1; else if (ai>bi) return 1; if (exists == b.exists) return 0; return exists ? 1 : -1; }
diff --git a/src/java/com/android/internal/telephony/gsm/GSMPhone.java b/src/java/com/android/internal/telephony/gsm/GSMPhone.java index cd01895..16358c5 100644 --- a/src/java/com/android/internal/telephony/gsm/GSMPhone.java +++ b/src/java/com/android/internal/telephony/gsm/GSMPhone.java @@ -1,1632 +1,1639 @@ /* * C...
true
true
public void handleMessage (Message msg) { AsyncResult ar; Message onComplete; if (!mIsTheCurrentActivePhone) { Rlog.e(LOG_TAG, "Received message " + msg + "[" + msg.what + "] while being destroyed. Ignoring."); return; } switch (ms...
public void handleMessage (Message msg) { AsyncResult ar; Message onComplete; if (!mIsTheCurrentActivePhone) { Rlog.e(LOG_TAG, "Received message " + msg + "[" + msg.what + "] while being destroyed. Ignoring."); return; } switch (ms...
diff --git a/entitlement/src/test/java/com/ning/billing/entitlement/api/transfer/TestTransfer.java b/entitlement/src/test/java/com/ning/billing/entitlement/api/transfer/TestTransfer.java index 5dbfa71a0..bdb393b6c 100644 --- a/entitlement/src/test/java/com/ning/billing/entitlement/api/transfer/TestTransfer.java +++ b/e...
false
true
public void testTransferWithAO() throws Exception { final UUID newAccountId = UUID.randomUUID(); final String baseProduct = "Shotgun"; final BillingPeriod baseTerm = BillingPeriod.MONTHLY; final String basePriceList = PriceListSet.DEFAULT_PRICELIST_NAME; // CREATE BP ...
public void testTransferWithAO() throws Exception { final UUID newAccountId = UUID.randomUUID(); final String baseProduct = "Shotgun"; final BillingPeriod baseTerm = BillingPeriod.MONTHLY; final String basePriceList = PriceListSet.DEFAULT_PRICELIST_NAME; // CREATE BP ...
diff --git a/xsl-webhelpindexer/src/com/nexwave/nsidita/DirList.java b/xsl-webhelpindexer/src/com/nexwave/nsidita/DirList.java index 44bcf7a9b..82f611b12 100755 --- a/xsl-webhelpindexer/src/com/nexwave/nsidita/DirList.java +++ b/xsl-webhelpindexer/src/com/nexwave/nsidita/DirList.java @@ -1,102 +1,102 @@ package com.ne...
true
true
public DirList(File inputdir, String regex, int depth) { try { listFiles = new ArrayList<File> (); // not yet implemented if(regex == null) { for (File f: inputdir.listFiles()) { if (!f.isDirectory()){ listFiles.add(f); }else { ...
public DirList(File inputdir, String regex, int depth) { try { listFiles = new ArrayList<File> (); // not yet implemented if(regex == null) { for (File f: inputdir.listFiles()) { if (!f.isDirectory()){ listFiles.add(f); }else { ...
diff --git a/converter/src/de/uni_leipzig/informatik/swp13_sc/virtuoso/VirtuosoRDFImporter.java b/converter/src/de/uni_leipzig/informatik/swp13_sc/virtuoso/VirtuosoRDFImporter.java index e322919..c501f38 100644 --- a/converter/src/de/uni_leipzig/informatik/swp13_sc/virtuoso/VirtuosoRDFImporter.java +++ b/converter/src/...
false
true
public boolean convertAndImportFromPGNFile(InputStream inputStream) { PGNToChessDataModelConverter pgn2cdm = new PGNToChessDataModelConverter(); pgn2cdm.setInputStream(inputStream); ChessDataModelToRDFConverter cdm2rdf = new ChessDataModelToRDFConverter(); boolean ok = t...
public boolean convertAndImportFromPGNFile(InputStream inputStream) { PGNToChessDataModelConverter pgn2cdm = new PGNToChessDataModelConverter(); pgn2cdm.setInputStream(inputStream); ChessDataModelToRDFConverter cdm2rdf = new ChessDataModelToRDFConverter(); boolean ok = t...
diff --git a/packages/SystemUI/src/com/android/systemui/quicksettings/HolobamTile.java b/packages/SystemUI/src/com/android/systemui/quicksettings/HolobamTile.java index 5deeff38..cae1b87d 100644 --- a/packages/SystemUI/src/com/android/systemui/quicksettings/HolobamTile.java +++ b/packages/SystemUI/src/com/android/syste...
true
true
public HolobamTile(Context context, LayoutInflater inflater, QuickSettingsContainerView container, QuickSettingsController qsc, Handler handler) { super(context, inflater, container, qsc); mOnClick = new OnClickListener() { @Override public void onClick(View v) {...
public HolobamTile(Context context, LayoutInflater inflater, QuickSettingsContainerView container, QuickSettingsController qsc, Handler handler) { super(context, inflater, container, qsc); mOnClick = new OnClickListener() { @Override public void onClick(View v) {...
diff --git a/com.mobilesorcery.sdk.builder.java/src/com/mobilesorcery/sdk/builder/java/JavaPackager.java b/com.mobilesorcery.sdk.builder.java/src/com/mobilesorcery/sdk/builder/java/JavaPackager.java index de06bbaf..87fab4e7 100644 --- a/com.mobilesorcery.sdk.builder.java/src/com/mobilesorcery/sdk/builder/java/JavaPacka...
false
true
public void createPackage(MoSyncProject project, IBuildVariant variant, IBuildResult buildResult) throws CoreException { DefaultPackager internal = new DefaultPackager(project, variant); IProfile targetProfile = variant.getProfile(); File runtimeDir = new File(internal.resolve("%runtime-dir%...
public void createPackage(MoSyncProject project, IBuildVariant variant, IBuildResult buildResult) throws CoreException { DefaultPackager internal = new DefaultPackager(project, variant); IProfile targetProfile = variant.getProfile(); File runtimeDir = internal.resolveFile("%runtime-dir%"); ...