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/main/java/de/hpi/fgis/yql/YQLApiJSON.java b/src/main/java/de/hpi/fgis/yql/YQLApiJSON.java index f94f3a5..906aee4 100644 --- a/src/main/java/de/hpi/fgis/yql/YQLApiJSON.java +++ b/src/main/java/de/hpi/fgis/yql/YQLApiJSON.java @@ -1,49 +1,53 @@ package de.hpi.fgis.yql; import java.io.InputStream; i...
true
true
protected DBObject parse(InputStream jsonIn) { String data = convertStreamToString(jsonIn, "UTF-8"); try { return (DBObject) JSON.parse(data); } catch (JSONParseException e) { System.out.println(data); throw e; } }
protected DBObject parse(InputStream jsonIn) { String data = convertStreamToString(jsonIn, "UTF-8"); try { if(data==null || !data.matches("^\\s*{")) { // log the erroneous data return null; } return (DBObject) JSON.parse(data); } catch (JSONParseException e) { System.out.println(data); thr...
diff --git a/src/com/tactfactory/harmony/parser/ClassCompletor.java b/src/com/tactfactory/harmony/parser/ClassCompletor.java index 984af306..47bca1ad 100644 --- a/src/com/tactfactory/harmony/parser/ClassCompletor.java +++ b/src/com/tactfactory/harmony/parser/ClassCompletor.java @@ -1,295 +1,295 @@ /** * This file is...
false
true
private void updateRelations(final EntityMetadata cm) { final ArrayList<FieldMetadata> newFields = new ArrayList<FieldMetadata>(); // For each relation in the class for (final FieldMetadata fieldMeta : cm.getRelations().values()) { boolean isRecursive = false; final RelationMetadata rel = fieldMeta.g...
private void updateRelations(final EntityMetadata cm) { final ArrayList<FieldMetadata> newFields = new ArrayList<FieldMetadata>(); // For each relation in the class for (final FieldMetadata fieldMeta : cm.getRelations().values()) { boolean isRecursive = false; final RelationMetadata rel = fieldMeta.g...
diff --git a/src/minecraft/co/uk/flansmods/client/tmt/ModelRendererTurbo.java b/src/minecraft/co/uk/flansmods/client/tmt/ModelRendererTurbo.java index 95ae6760..8e116593 100644 --- a/src/minecraft/co/uk/flansmods/client/tmt/ModelRendererTurbo.java +++ b/src/minecraft/co/uk/flansmods/client/tmt/ModelRendererTurbo.java @...
false
true
public void addFlexTrapezoid(float x, float y, float z, int w, int h, int d, float scale, float bScale1, float bScale2, float bScale3, float bScale4, float fScale1, float fScale2, int dir) { float f4 = x + (float)w; float f5 = y + (float)h; float f6 = z + (float)d; x -= scale; y -= scale; z -= scale; f4...
public void addFlexTrapezoid(float x, float y, float z, int w, int h, int d, float scale, float bScale1, float bScale2, float bScale3, float bScale4, float fScale1, float fScale2, int dir) { float f4 = x + (float)w; float f5 = y + (float)h; float f6 = z + (float)d; x -= scale; y -= scale; z -= scale; f4...
diff --git a/e/hu.e.compiler/src/hu/e/compiler/tasks/AssembleHexFileTask.java b/e/hu.e.compiler/src/hu/e/compiler/tasks/AssembleHexFileTask.java index 6e4cada3..e96a20e6 100644 --- a/e/hu.e.compiler/src/hu/e/compiler/tasks/AssembleHexFileTask.java +++ b/e/hu.e.compiler/src/hu/e/compiler/tasks/AssembleHexFileTask.java @...
false
true
public void execute(ITaskContext context, IProgressMonitor monitor) { String input = context.getParameterValue(INPUT).get(0); Resource inputmodel = context.getInput(context.getModelURI(input)); AssemblerObject assem = (AssemblerObject) inputmodel.getContents().get(0); String archmodel = context.getParame...
public void execute(ITaskContext context, IProgressMonitor monitor) { String input = context.getParameterValue(INPUT).get(0); Resource inputmodel = context.getInput(context.getModelURI(input)); AssemblerObject assem = (AssemblerObject) inputmodel.getContents().get(0); String archmodel = context.getParame...
diff --git a/src/at/ac/tuwien/infosys/aicc11/services/RatingImpl.java b/src/at/ac/tuwien/infosys/aicc11/services/RatingImpl.java index 67e9aa7..fb1832f 100644 --- a/src/at/ac/tuwien/infosys/aicc11/services/RatingImpl.java +++ b/src/at/ac/tuwien/infosys/aicc11/services/RatingImpl.java @@ -1,30 +1,31 @@ package at.ac.tu...
true
true
public Ratings getRating(long customerId) { try { return backend.getRating(customerId); } catch (LegacyException e) { System.out.println(e); ResponseBuilderImpl builder = new ResponseBuilderImpl(); builder.status(Response.Status.NOT_FOUND); builder.entity("The requested customer id does not ...
public Ratings getRating(long customerId) { try { return backend.getRating(customerId); } catch (LegacyException e) { System.out.println(e); ResponseBuilderImpl builder = new ResponseBuilderImpl(); builder.status(Response.Status.NOT_FOUND); // == 404 builder.type("text/html"); builder.enti...
diff --git a/milltown-map-swing/src/main/java/sciuto/corey/milltown/map/swing/components/MultiLineTextField.java b/milltown-map-swing/src/main/java/sciuto/corey/milltown/map/swing/components/MultiLineTextField.java index c206e4b..5c5d54b 100755 --- a/milltown-map-swing/src/main/java/sciuto/corey/milltown/map/swing/comp...
true
true
public MultiLineTextField(String name, int xSize, int ySize){ this.setName(name); this.setMaximumSize(new Dimension(xSize,ySize)); this.setBorder(BorderFactory.createTitledBorder(null, getName(), TitledBorder.CENTER,TitledBorder.TOP)); this.setEditable(false); }
public MultiLineTextField(String name, int xSize, int ySize){ this.setName(name); this.setMaximumSize(new Dimension(xSize,ySize)); this.setBorder(BorderFactory.createTitledBorder(null, getName(), TitledBorder.CENTER,TitledBorder.TOP)); this.setEditable(false); this.setFocusable(false); }
diff --git a/spiffyui-app/src/main/java/org/spiffyui/spsample/client/GetStartedPanel.java b/spiffyui-app/src/main/java/org/spiffyui/spsample/client/GetStartedPanel.java index 79f4145a..d6833a60 100644 --- a/spiffyui-app/src/main/java/org/spiffyui/spsample/client/GetStartedPanel.java +++ b/spiffyui-app/src/main/java/org...
true
true
public GetStartedPanel() { super("div", STRINGS.GetStartedPanel_html()); getElement().setId("getStartedPanel"); RootPanel.get("mainContent").add(this); setVisible(false); /* * Add the get help anchor */ Anchor getHelp = new Anchor("Get Help p...
public GetStartedPanel() { super("div", STRINGS.GetStartedPanel_html()); getElement().setId("getStartedPanel"); RootPanel.get("mainContent").add(this); setVisible(false); /* * Add the get help anchor */ Anchor getHelp = new Anchor("Help page"...
diff --git a/src/test/java/org/apache/hadoop/hbase/rest/TestStatusResource.java b/src/test/java/org/apache/hadoop/hbase/rest/TestStatusResource.java index 2c0e7a673..a6b0e7a40 100644 --- a/src/test/java/org/apache/hadoop/hbase/rest/TestStatusResource.java +++ b/src/test/java/org/apache/hadoop/hbase/rest/TestStatusResou...
true
true
private static void validate(StorageClusterStatusModel model) { assertNotNull(model); assertTrue(model.getRegions() >= 2); assertTrue(model.getRequests() >= 0); // assumes minicluster with two regionservers assertTrue(model.getAverageLoad() >= 1.0); assertNotNull(model.getLiveNodes()); ass...
private static void validate(StorageClusterStatusModel model) { assertNotNull(model); assertTrue(model.getRegions() >= 2); assertTrue(model.getRequests() >= 0); // TODO: testing average load is flaky but not a stargate issue, revisit // assertTrue(model.getAverageLoad() >= 1.0); assertNotNull(...
diff --git a/src/main/java/com/censoredsoftware/demigods/DemigodsPlugin.java b/src/main/java/com/censoredsoftware/demigods/DemigodsPlugin.java index 08f0b3b0..03a46eb0 100644 --- a/src/main/java/com/censoredsoftware/demigods/DemigodsPlugin.java +++ b/src/main/java/com/censoredsoftware/demigods/DemigodsPlugin.java @@ -1...
true
true
public void onDisable() { // Save all the data. DataManager.save(); // Toggle all prayer off for(Player player : Bukkit.getOnlinePlayers()) DPlayer.Util.togglePrayingSilent(player, false, false);; // Cancel all threads, callAbilityEvent calls, and connections. ThreadManager.stopThreads(this); Handl...
public void onDisable() { // Save all the data. DataManager.save(); // Toggle all prayer off for(Player player : Bukkit.getOnlinePlayers()) DPlayer.Util.togglePrayingSilent(player, false, false);; // Cancel all threads, Event calls, and connections. ThreadManager.stopThreads(this); HandlerList.unre...
diff --git a/src/jobs/WorkerThread.java b/src/jobs/WorkerThread.java index 911dbe1..4f69b56 100644 --- a/src/jobs/WorkerThread.java +++ b/src/jobs/WorkerThread.java @@ -1,143 +1,146 @@ package jobs; import loadbalance.Adaptor; import org.apache.log4j.Logger; import util.Util; import java.util.concurrent.atom...
true
true
public void start() { mainThread = new Thread(new Runnable() { @Override public void run() { while(!stopWork) { if(getJobQueue().isEmpty() && getCurRunJob() == null) { Util.sleep(NO_JOB_SLEEP_INTERVAL); ...
public void start() { mainThread = new Thread(new Runnable() { @Override public void run() { while(!stopWork) { if(getJobQueue().isEmpty() && getCurRunJob() == null) { Util.sleep(NO_JOB_SLEEP_INTERVAL); ...
diff --git a/modules/plus/src/test/java/org/mortbay/jetty/plus/jaas/TestJAASUserRealm.java b/modules/plus/src/test/java/org/mortbay/jetty/plus/jaas/TestJAASUserRealm.java index 70c7d6c7f..6384326c8 100644 --- a/modules/plus/src/test/java/org/mortbay/jetty/plus/jaas/TestJAASUserRealm.java +++ b/modules/plus/src/test/jav...
true
true
public void testItDataSource () throws Exception { String tmpDir = System.getProperty("java.io.tmpdir")+System.getProperty("file.separator"); System.setProperty("derby.system.home", tmpDir); String dbname = "derby-"+(int)(random.nextDouble()*10000); EmbeddedDataSourc...
public void testItDataSource () throws Exception { String tmpDir = System.getProperty("java.io.tmpdir")+System.getProperty("file.separator"); System.setProperty("derby.system.home", tmpDir); String dbname = "derby-"+(int)(random.nextDouble()*10000); EmbeddedDataSourc...
diff --git a/annis-gui/src/main/java/annis/gui/controlpanel/ControlPanel.java b/annis-gui/src/main/java/annis/gui/controlpanel/ControlPanel.java index 8f9ce58b9..700ef86b2 100644 --- a/annis-gui/src/main/java/annis/gui/controlpanel/ControlPanel.java +++ b/annis-gui/src/main/java/annis/gui/controlpanel/ControlPanel.java...
false
true
public void run() { WebResource res = null; synchronized(getApplication()) { res = Helper.getAnnisWebResource(getApplication()); } //AnnisService service = Helper.getService(getApplication(), window); if (res != null) { try { co...
public void run() { WebResource res = null; synchronized(getApplication()) { res = Helper.getAnnisWebResource(getApplication()); } //AnnisService service = Helper.getService(getApplication(), window); if (res != null) { try { co...
diff --git a/web/src/main/java/de/betterform/agent/web/resources/ResourceServlet.java b/web/src/main/java/de/betterform/agent/web/resources/ResourceServlet.java index 497b5ea6..1759b2ab 100644 --- a/web/src/main/java/de/betterform/agent/web/resources/ResourceServlet.java +++ b/web/src/main/java/de/betterform/agent/web/...
false
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String requestUri = req.getRequestURI(); String resourcePath = RESOURCE_FOLDER + getResourcePath(requestUri); URL url = ResourceServlet.class.getResource(resourcePath); if (L...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String requestUri = req.getRequestURI(); String resourcePath = RESOURCE_FOLDER + getResourcePath(requestUri); URL url = ResourceServlet.class.getResource(resourcePath); if (L...
diff --git a/test/org/bodytrack/client/GraphAxisTest.java b/test/org/bodytrack/client/GraphAxisTest.java index efe2097..8e751da 100644 --- a/test/org/bodytrack/client/GraphAxisTest.java +++ b/test/org/bodytrack/client/GraphAxisTest.java @@ -1,35 +1,36 @@ package org.bodytrack.client; import org.junit.Test; impor...
true
true
public void test_ticks() { GraphAxis g=new GraphAxis(0, 1, // min, max Basis.xDownYRight, 5 // width ); int height = 100; int tick_pixels = 10; double epsilon = 1e-10; assertEquals(0.1, g.computeTickSize( 9), epsilon); assertEquals(0.1, g.computeTickSize( 10), epsilon); assertEquals(0...
public void test_ticks() { GraphAxis g = new GraphAxis(GraphAxis.NO_CHANNEL_NAME, 0, 1, // min, max Basis.xDownYRight, 5 // width ); int height = 100; int tick_pixels = 10; double epsilon = 1e-10; assertEquals(0.1, g.computeTickSize( 9), epsilon); assertEquals(0.1, g.computeTickSize...
diff --git a/Server/Portal/trustednet-login/src/main/java/com/digt/web/ReminderController.java b/Server/Portal/trustednet-login/src/main/java/com/digt/web/ReminderController.java index 16ae104..8a28119 100644 --- a/Server/Portal/trustednet-login/src/main/java/com/digt/web/ReminderController.java +++ b/Server/Portal/tru...
true
true
public String sendReminder(HttpServletRequest request, Model model, @ModelAttribute("formBean") ReminderBean form, HttpSession session, BindingResult result) throws MessagingException, UnsupportedEncodingException, IOException { if (session.getAttribute(ATTR_REM...
public String sendReminder(HttpServletRequest request, Model model, @ModelAttribute("formBean") ReminderBean form, HttpSession session, BindingResult result) throws MessagingException, UnsupportedEncodingException, IOException { if (session.getAttribute(ATTR_REM...
diff --git a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/BreakpointScopeOrganizer.java b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/BreakpointScopeOrganizer.java index b3b9e8a6a..544bbefac 100644 --- a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/...
true
true
public void addBreakpoint(IBreakpoint breakpoint, IAdaptable category) { if (category instanceof BreakpointScopeCategory && breakpoint instanceof ICBreakpoint) { String filter = ((BreakpointScopeCategory)category).getFilter(); String contextIds = ((BreakpointScopeCategory)category).g...
public void addBreakpoint(IBreakpoint breakpoint, IAdaptable category) { if (category instanceof BreakpointScopeCategory && breakpoint instanceof ICBreakpoint) { String filter = ((BreakpointScopeCategory)category).getFilter(); String contextIds = ((BreakpointScopeCategory)category).g...
diff --git a/hazelcast/src/main/java/com/hazelcast/map/MapStoreWriteProcessor.java b/hazelcast/src/main/java/com/hazelcast/map/MapStoreWriteProcessor.java index 28c50f7698..ed1d676da1 100644 --- a/hazelcast/src/main/java/com/hazelcast/map/MapStoreWriteProcessor.java +++ b/hazelcast/src/main/java/com/hazelcast/map/MapSt...
false
true
public void process(EntryTaskScheduler<Data, Object> scheduler, Collection<ScheduledEntry<Data, Object>> entries) { if (entries.isEmpty()) return; final ILogger logger = mapService.getNodeEngine().getLogger(getClass()); if (entries.size() == 1) { ScheduledEntry<Data,...
public void process(EntryTaskScheduler<Data, Object> scheduler, Collection<ScheduledEntry<Data, Object>> entries) { if (entries.isEmpty()) return; final ILogger logger = mapService.getNodeEngine().getLogger(getClass()); if (entries.size() == 1) { ScheduledEntry<Data,...
diff --git a/src/net/appositedesigns/fileexplorer/quickactions/QuickActionHelper.java b/src/net/appositedesigns/fileexplorer/quickactions/QuickActionHelper.java index 1e275c8..fd2aed4 100644 --- a/src/net/appositedesigns/fileexplorer/quickactions/QuickActionHelper.java +++ b/src/net/appositedesigns/fileexplorer/quickac...
true
true
public void showQuickActions(final View view, final FileListEntry entry) { final File file = entry.getPath(); final QuickAction actions = new QuickAction(view); int[] availableActions = FileActionsHelper.getContextMenuOptions(file, mContext); ActionItem action = null; for(int i=availableActions.le...
public void showQuickActions(final View view, final FileListEntry entry) { final File file = entry.getPath(); final QuickAction actions = new QuickAction(view); int[] availableActions = FileActionsHelper.getContextMenuOptions(file, mContext); ActionItem action = null; for(int i=availableActions.le...
diff --git a/cpf-pentaho/src/pt/webdetails/cpk/CpkContentGenerator.java b/cpf-pentaho/src/pt/webdetails/cpk/CpkContentGenerator.java index ef78ccd..24392f3 100644 --- a/cpf-pentaho/src/pt/webdetails/cpk/CpkContentGenerator.java +++ b/cpf-pentaho/src/pt/webdetails/cpk/CpkContentGenerator.java @@ -1,236 +1,239 @@ /* Thi...
true
true
public void listDataAccessTypes(final OutputStream out) throws Exception { //boolean refreshCache = Boolean.parseBoolean(getRequestParameters().getStringParameter("refreshCache", "false")); Set<DataSource> dataSources = new LinkedHashSet<DataSource>(); StringBuilder dsDeclarations = new Str...
public void listDataAccessTypes(final OutputStream out) throws Exception { //boolean refreshCache = Boolean.parseBoolean(getRequestParameters().getStringParameter("refreshCache", "false")); Set<DataSource> dataSources = new LinkedHashSet<DataSource>(); StringBuilder dsDeclarations = new Str...
diff --git a/org.rubypeople.rdt.launching.tests/src/org/rubypeople/rdt/internal/launching/TC_RubyRuntime.java b/org.rubypeople.rdt.launching.tests/src/org/rubypeople/rdt/internal/launching/TC_RubyRuntime.java index 1e846cce..bf7a290e 100644 --- a/org.rubypeople.rdt.launching.tests/src/org/rubypeople/rdt/internal/launch...
false
true
public void testSetInstalledInterpreters() { ShamRubyRuntime runtime = new ShamRubyRuntime(); IInterpreter interpreterOne = new RubyInterpreter("InterpreterOne", new File("C:/RubyInstallRootOne")); runtime.setInstalledInterpreters(Arrays.asList(new IInterpreter[] { interpreterOne })); assertEquals("XML s...
public void testSetInstalledInterpreters() { ShamRubyRuntime runtime = new ShamRubyRuntime(); IInterpreter interpreterOne = new RubyInterpreter("InterpreterOne", new File("C:/RubyInstallRootOne")); runtime.setInstalledInterpreters(Arrays.asList(new IInterpreter[] { interpreterOne })); assertEquals("XML s...
diff --git a/SongSelectionScreen.java b/SongSelectionScreen.java index 3d56f78..fbbc5de 100644 --- a/SongSelectionScreen.java +++ b/SongSelectionScreen.java @@ -1,150 +1,153 @@ package crescendo.sheetmusic; import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import jav...
true
true
private void loadSong(String filename){ File file = new File(filename); SongModel loadedSong = null; boolean loading = true; try { while(loading){ loadedSong = SongFactory.generateSongFromFile(file.getAbsolutePath()); loading = false; } } catch (IOException e1) { Response response = ErrorHan...
private void loadSong(String filename){ File file = new File(filename); SongModel loadedSong = null; boolean loading = true; try { while(loading){ loadedSong = SongFactory.generateSongFromFile(file.getAbsolutePath()); loading = false; } } catch (IOException e1) { Response response = ErrorHan...
diff --git a/src/main/java/org/mapdb/HTreeMap.java b/src/main/java/org/mapdb/HTreeMap.java index bd408e7c..640a247a 100644 --- a/src/main/java/org/mapdb/HTreeMap.java +++ b/src/main/java/org/mapdb/HTreeMap.java @@ -1,1366 +1,1366 @@ /* * Copyright (c) 2012 Jan Kotek * * Licensed under the Apache License, Versi...
true
true
public V put(final K key, final V value){ if (key == null) throw new IllegalArgumentException("null key"); if (value == null) throw new IllegalArgumentException("null value"); Utils.checkMapValueIsNotCollecion(value); final int h = hash(key); final ...
public V put(final K key, final V value){ if (key == null) throw new IllegalArgumentException("null key"); if (value == null) throw new IllegalArgumentException("null value"); Utils.checkMapValueIsNotCollecion(value); final int h = hash(key); final ...
diff --git a/src/powercrystals/minefactoryreloaded/decorative/BlockFactoryRoad.java b/src/powercrystals/minefactoryreloaded/decorative/BlockFactoryRoad.java index 417595dc..6bdb988f 100644 --- a/src/powercrystals/minefactoryreloaded/decorative/BlockFactoryRoad.java +++ b/src/powercrystals/minefactoryreloaded/decorative...
false
true
public void onNeighborBlockChange(World world, int x, int y, int z, int neighborId) { if(!world.isRemote) { int meta = world.getBlockMetadata(x, y, z); boolean isPowered = Util.isRedstonePowered(world, x, y, z); if((meta == 1 || meta == 3) && isPowered) { world.setBlockMetadataWithNotify(x, y, z, ...
public void onNeighborBlockChange(World world, int x, int y, int z, int neighborId) { if(!world.isRemote) { int meta = world.getBlockMetadata(x, y, z); boolean isPowered = Util.isRedstonePowered(world, x, y, z); if(meta == 1 && isPowered) { world.setBlockMetadataWithNotify(x, y, z, 2); } els...
diff --git a/core/src/main/java/hudson/lifecycle/WindowsSlaveInstaller.java b/core/src/main/java/hudson/lifecycle/WindowsSlaveInstaller.java index d05ab8469..480a92700 100644 --- a/core/src/main/java/hudson/lifecycle/WindowsSlaveInstaller.java +++ b/core/src/main/java/hudson/lifecycle/WindowsSlaveInstaller.java @@ -1,1...
true
true
public void actionPerformed(ActionEvent e) { int r = JOptionPane.showConfirmDialog(dialog, "This will install a slave agent as a Windows service,\n" + "so that this slave will connect to Hudson as soon as the machine boots.\n" + "Do you want to proceed with in...
public void actionPerformed(ActionEvent e) { int r = JOptionPane.showConfirmDialog(dialog, "This will install a slave agent as a Windows service,\n" + "so that this slave will connect to Hudson as soon as the machine boots.\n" + "Do you want to proceed with in...
diff --git a/src/lorian/graph/GraphMain.java b/src/lorian/graph/GraphMain.java index 6c097c9..01e02a3 100644 --- a/src/lorian/graph/GraphMain.java +++ b/src/lorian/graph/GraphMain.java @@ -1,158 +1,158 @@ package lorian.graph; import java.lang.reflect.Method; import java.net.URL; import java.net.URLClassLoader; ...
false
true
public static void main(String[] args) throws Throwable { System.out.println("Graph v" + GraphFunctionsFrame.version); boolean use_swing = false; boolean load_libs = true; String foreLangName = null; for(int i = 0; i < args.length; i++) { String arg = args[i]; if(arg.equalsIgnoreCase("-swt")) ...
public static void main(String[] args) throws Throwable { System.out.println("Graph v" + GraphFunctionsFrame.version); boolean use_swing = false; boolean load_libs = true; String forceLangName = null; for(int i = 0; i < args.length; i++) { String arg = args[i]; if(arg.equalsIgnoreCase("-swt")) ...
diff --git a/src/org/antlr/codegen/RubyTarget.java b/src/org/antlr/codegen/RubyTarget.java index d40a74b..bc08e11 100644 --- a/src/org/antlr/codegen/RubyTarget.java +++ b/src/org/antlr/codegen/RubyTarget.java @@ -1,73 +1,73 @@ /* [The "BSD licence"] Copyright (c) 2005 Martin Traverso All rights reserved. Red...
true
true
public String getTargetCharLiteralFromANTLRCharLiteral( CodeGenerator generator, String literal) { literal = literal.substring(1, literal.length() - 1); String result = "?"; if (literal.equals("\\")) { result += "\\\\"; } else if (lit...
public String getTargetCharLiteralFromANTLRCharLiteral( CodeGenerator generator, String literal) { literal = literal.substring(1, literal.length() - 1); String result = ""; if (literal.equals("\\")) { result += "\\\\"; } else if (lite...
diff --git a/src/main/java/de/markiewb/netbeans/plugin/git/openinexternalviewer/OpenAction.java b/src/main/java/de/markiewb/netbeans/plugin/git/openinexternalviewer/OpenAction.java index c5b151c..1c0a80e 100644 --- a/src/main/java/de/markiewb/netbeans/plugin/git/openinexternalviewer/OpenAction.java +++ b/src/main/java/...
true
true
private void init(Lookup lkp) { setEnabled(false); //only support one project selected project Collection<? extends Project> lookupAll = lkp.lookupAll(Project.class); if (lookupAll != null && lookupAll.size() >= 2) { return; } ...
private void init(Lookup lkp) { setEnabled(false); //only support one project selected project Collection<? extends Project> lookupAll = lkp.lookupAll(Project.class); if (lookupAll != null && lookupAll.size() >= 2) { return; } ...
diff --git a/src/com/android/launcher2/AppsCustomizePagedView.java b/src/com/android/launcher2/AppsCustomizePagedView.java index 3f8360f1..55e66896 100644 --- a/src/com/android/launcher2/AppsCustomizePagedView.java +++ b/src/com/android/launcher2/AppsCustomizePagedView.java @@ -1,1706 +1,1707 @@ /* * Copyright (C) 2...
true
true
public void syncWidgetPageItems(final int page, final boolean immediate) { int numItemsPerPage = mWidgetCountX * mWidgetCountY; // Calculate the dimensions of each cell we are giving to each widget final ArrayList<Object> items = new ArrayList<Object>(); int contentWidth = mWidgetSp...
public void syncWidgetPageItems(final int page, final boolean immediate) { int numItemsPerPage = mWidgetCountX * mWidgetCountY; // Calculate the dimensions of each cell we are giving to each widget final ArrayList<Object> items = new ArrayList<Object>(); int contentWidth = mWidgetSp...
diff --git a/okapi/filters/table/src/main/java/net/sf/okapi/filters/table/csv/CSVSkeletonWriter.java b/okapi/filters/table/src/main/java/net/sf/okapi/filters/table/csv/CSVSkeletonWriter.java index 5f7749d3d..69e6c552e 100644 --- a/okapi/filters/table/src/main/java/net/sf/okapi/filters/table/csv/CSVSkeletonWriter.java +...
true
true
public String processTextUnit(ITextUnit tu) { System.out.println(tu.getSource().getUnSegmentedContentCopy().toString()); if (tu.isReferent()) { return super.processTextUnit(tu); } if (tu.hasProperty(CommaSeparatedValuesFilter.PROP_QUALIFIED) && "yes".equals(tu.getProperty(CommaSeparatedValuesFilter.P...
public String processTextUnit(ITextUnit tu) { if (tu.isReferent()) { return super.processTextUnit(tu); } if (tu.hasProperty(CommaSeparatedValuesFilter.PROP_QUALIFIED) && "yes".equals(tu.getProperty(CommaSeparatedValuesFilter.PROP_QUALIFIED).getValue())) { return super.processTextUnit(tu); } Te...
diff --git a/src/Main.java b/src/Main.java index d5bae6e..3508009 100644 --- a/src/Main.java +++ b/src/Main.java @@ -1,128 +1,127 @@ import java.util.Iterator; import java.util.List; public class Main { /** * Entry point for program * @param args */ public static void main(String[] args) { ...
false
true
public static void main(String[] args) { //Read instructions from program file List<Long> instructions = ProgramReader.getInstructions(args[0]); //load instructions into instruction memory Long numInstr = (long) instructions.size(); Long firstInstrAddr = Long.parseLong("1000", 16); Memory instrMemory...
public static void main(String[] args) { //Read instructions from program file List<Long> instructions = ProgramReader.getInstructions(args[0]); //load instructions into instruction memory Long numInstr = (long) instructions.size(); Long firstInstrAddr = Long.parseLong("1000", 16); Memory instrMemory...
diff --git a/src/com/nadmm/airports/wx/WxCursorAdapter.java b/src/com/nadmm/airports/wx/WxCursorAdapter.java index 8f1394ea..751d3c13 100644 --- a/src/com/nadmm/airports/wx/WxCursorAdapter.java +++ b/src/com/nadmm/airports/wx/WxCursorAdapter.java @@ -1,247 +1,251 @@ /* * FlightIntel for Pilots * * Copyright 2012...
false
true
protected void showMetarInfo( View view, Cursor c, Metar metar ) { if ( metar != null ) { if ( metar.isValid ) { // We have METAR for this station double lat = c.getDouble( c.getColumnIndex( Wxs.STATION_LATITUDE_DEGREES ) ); ...
protected void showMetarInfo( View view, Cursor c, Metar metar ) { if ( metar != null ) { if ( metar.isValid ) { // We have METAR for this station double lat = c.getDouble( c.getColumnIndex( Wxs.STATION_LATITUDE_DEGREES ) ); ...
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java b/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java index 97aa2ea3..fd959472 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandte...
true
true
public void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception { if (args.length < 2) { throw new NotEnoughArgumentsException(); } final User user = getPlayer(server, args, 0, true); if (!user.isOnline()) { if (sender instanceof Play...
public void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception { if (args.length < 2) { throw new NotEnoughArgumentsException(); } final User user = getPlayer(server, args, 0, true); if (!user.isOnline()) { if (sender instanceof Play...
diff --git a/src/org/eclipse/core/internal/resources/ProjectPreferences.java b/src/org/eclipse/core/internal/resources/ProjectPreferences.java index 6c1f6be3..59f1a9ba 100644 --- a/src/org/eclipse/core/internal/resources/ProjectPreferences.java +++ b/src/org/eclipse/core/internal/resources/ProjectPreferences.java @@ -1...
false
true
protected void save() throws BackingStoreException { final IFile fileInWorkspace = getFile(); if (fileInWorkspace == null) { if (Policy.DEBUG_PREFERENCES) Policy.debug("Not saving preferences since there is no file for node: " + absolutePath()); //$NON-NLS-1$ return; } Properties table = convertToPro...
protected void save() throws BackingStoreException { final IFile fileInWorkspace = getFile(); if (fileInWorkspace == null) { if (Policy.DEBUG_PREFERENCES) Policy.debug("Not saving preferences since there is no file for node: " + absolutePath()); //$NON-NLS-1$ return; } Properties table = convertToPro...
diff --git a/src/main/java/com/moandjiezana/tent/essayist/tent/Entities.java b/src/main/java/com/moandjiezana/tent/essayist/tent/Entities.java index 6468d64..8e8c0db 100644 --- a/src/main/java/com/moandjiezana/tent/essayist/tent/Entities.java +++ b/src/main/java/com/moandjiezana/tent/essayist/tent/Entities.java @@ -1,2...
true
true
public static String getEntityForUrl(String entity) { String prefix = entity.startsWith("https://") ? "s:" : ""; String urlEntity = entity.replace("http://", "").replace("https://", ""); if (urlEntity.endsWith("/")) { urlEntity.substring(0, urlEntity.length() - 1); } return prefix + urlEnti...
public static String getEntityForUrl(String entity) { String prefix = entity.startsWith("https://") ? "s:" : ""; String urlEntity = entity.replace("http://", "").replace("https://", ""); if (urlEntity.endsWith("/")) { urlEntity = urlEntity.substring(0, urlEntity.length() - 1); } return pref...
diff --git a/src/org/touchirc/model/Message.java b/src/org/touchirc/model/Message.java index 674e89f..0e26592 100644 --- a/src/org/touchirc/model/Message.java +++ b/src/org/touchirc/model/Message.java @@ -1,56 +1,56 @@ package org.touchirc.model; import java.sql.Timestamp; import java.util.Date; public class Me...
true
true
public Message(String text, String author, int type) { this.type = type; this.author = author; this.type = type; this.timestamp = new Date().getTime(); }
public Message(String text, String author, int type) { this.content = text; this.author = author; this.type = type; this.timestamp = new Date().getTime(); }
diff --git a/alchemy-midlet/src/alchemy/evm/EtherFunction.java b/alchemy-midlet/src/alchemy/evm/EtherFunction.java index d6442ba..38f5e14 100644 --- a/alchemy-midlet/src/alchemy/evm/EtherFunction.java +++ b/alchemy-midlet/src/alchemy/evm/EtherFunction.java @@ -1,953 +1,953 @@ /* * This file is a part of Alchemy OS p...
true
true
public Object exec(Context c, Object[] args) throws AlchemyException { //initializing final Object[] stack = new Object[stacksize]; int head = -1; final byte[] code = this.bcode; Object[] locals; if (args.length == localsize) { locals = args; } else { locals = new Object[localsize]; System.array...
public Object exec(Context c, Object[] args) throws AlchemyException { //initializing final Object[] stack = new Object[stacksize]; int head = -1; final byte[] code = this.bcode; Object[] locals; if (args.length == localsize) { locals = args; } else { locals = new Object[localsize]; System.array...
diff --git a/portal/src/hot/org/vamdc/portal/session/queryBuilder/forms/TransitionsForm.java b/portal/src/hot/org/vamdc/portal/session/queryBuilder/forms/TransitionsForm.java index ce17f1b..8ab9cc5 100644 --- a/portal/src/hot/org/vamdc/portal/session/queryBuilder/forms/TransitionsForm.java +++ b/portal/src/hot/org/vamd...
false
true
public TransitionsForm(QueryData queryData){ super(queryData); fields = new ArrayList<AbstractField>(); fields.add(new RangeField(Restrictable.RadTransWavelength,"Wavelength")); AbstractField field = new UnitConvRangeField(Restrictable.StateEnergy, "Upper state energy", new EnergyUnitConverter()); field.setP...
public TransitionsForm(QueryData queryData){ super(queryData); fields = new ArrayList<AbstractField>(); fields.add(new RangeField(Restrictable.RadTransWavelength,"Wavelength")); AbstractField field = new UnitConvRangeField(Restrictable.StateEnergy, "Upper state energy", new EnergyUnitConverter()); field.setP...
diff --git a/src/org/rascalmpl/interpreter/Typeifier.java b/src/org/rascalmpl/interpreter/Typeifier.java index a5b672e301..aa571d50ba 100644 --- a/src/org/rascalmpl/interpreter/Typeifier.java +++ b/src/org/rascalmpl/interpreter/Typeifier.java @@ -1,244 +1,246 @@ package org.rascalmpl.interpreter; import java.util.L...
true
true
public static Type declare(IConstructor typeValue, final TypeStore store) { final List<IConstructor> todo = new LinkedList<IConstructor>(); todo.add(typeValue); while (!todo.isEmpty()) { final IConstructor next = todo.get(0); todo.remove(0); Type type = toType(next); // We dispatch on the real type...
public static Type declare(IConstructor typeValue, final TypeStore store) { final List<IConstructor> todo = new LinkedList<IConstructor>(); todo.add(typeValue); while (!todo.isEmpty()) { final IConstructor next = todo.get(0); todo.remove(0); Type type = toType(next); // We dispatch on the real type...
diff --git a/ardor3d-ui/src/main/java/com/ardor3d/extension/ui/AbstractLabelUIComponent.java b/ardor3d-ui/src/main/java/com/ardor3d/extension/ui/AbstractLabelUIComponent.java index 2e8904d..448bb72 100755 --- a/ardor3d-ui/src/main/java/com/ardor3d/extension/ui/AbstractLabelUIComponent.java +++ b/ardor3d-ui/src/main/jav...
false
true
protected void drawComponent(final Renderer renderer) { double x = 0; double y = 0; int width = 0; // Gather our width... check for icon and text and gap. if (_icon != null) { width = _iconDimensions.getWidth(); if (getText() != null && getText().len...
protected void drawComponent(final Renderer renderer) { double x = 0; double y = 0; int width = 0; final boolean hasText = _text != null && _text.getText() != null; // Gather our width... check for icon and text and gap. if (_icon != null) { width = _ico...
diff --git a/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityWeather.java b/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityWeather.java index 218efeab..c041e73f 100644 --- a/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityWeather.java +++ b/src/powercrystals/minefactoryreloaded/t...
true
true
public boolean activateMachine() { MFRLiquidMover.pumpLiquid(_tank, this); if(worldObj.getWorldInfo().isRaining() && canSeeSky()) { BiomeGenBase bgb = worldObj.getBiomeGenForCoords(this.xCoord, this.zCoord); if(!bgb.canSpawnLightningBolt() && !bgb.getEnableSnow()) { setIdleTicks(getIdleTicks...
public boolean activateMachine() { MFRLiquidMover.pumpLiquid(_tank, this); if(worldObj.getWorldInfo().isRaining() && canSeeSky()) { BiomeGenBase bgb = worldObj.getBiomeGenForCoords(this.xCoord, this.zCoord); if(!bgb.canSpawnLightningBolt() && !bgb.getEnableSnow()) { setIdleTicks(getIdleTicks...
diff --git a/jsword/src/main/java/org/crosswire/jsword/book/filter/thml/DivTag.java b/jsword/src/main/java/org/crosswire/jsword/book/filter/thml/DivTag.java index 3708400b..2c25de10 100644 --- a/jsword/src/main/java/org/crosswire/jsword/book/filter/thml/DivTag.java +++ b/jsword/src/main/java/org/crosswire/jsword/book/f...
true
true
public Element processTag(Element ele, Attributes attrs) { // See if there are variant readings e.g. WHNU Mat 1.9 String typeAttr = attrs.getValue("type"); //$NON-NLS-1$ if ("variant".equals(typeAttr)) //$NON-NLS-1$ { Element seg = OSISUtil.factory().createSeg(); ...
public Element processTag(Element ele, Attributes attrs) { // See if there are variant readings e.g. WHNU Mat 1.9 String typeAttr = attrs.getValue("type"); //$NON-NLS-1$ if ("variant".equals(typeAttr)) //$NON-NLS-1$ { Element seg = OSISUtil.factory().createSeg(); ...
diff --git a/pluginsource/org/enigma/EnigmaRunner.java b/pluginsource/org/enigma/EnigmaRunner.java index fa2450ee..ac00e7de 100644 --- a/pluginsource/org/enigma/EnigmaRunner.java +++ b/pluginsource/org/enigma/EnigmaRunner.java @@ -1,841 +1,841 @@ /* * Copyright (C) 2008, 2009, 2010 IsmAvatar <IsmAvatar@gmail.com> ...
true
true
static List<TargetSelection> findTargets(String target, String current) { ArrayList<TargetSelection> targets = new ArrayList<TargetSelection>(); if (current == null || current.isEmpty()) return targets; File f = new File(LGM.workDir.getParentFile(),"ENIGMAsystem"); f = new File(f,"SHELL"); f = new File(f,...
static List<TargetSelection> findTargets(String target, String current) { ArrayList<TargetSelection> targets = new ArrayList<TargetSelection>(); if (current == null || current.isEmpty()) return targets; File f = new File(LGM.workDir.getParentFile(),"ENIGMAsystem"); f = new File(f,"SHELL"); f = new File(f,...
diff --git a/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_tploc.java b/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_tploc.java index b333096..58d4f28 100644 --- a/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_tploc.java +++ b/CommandsEX/...
true
true
public static Boolean run(CommandSender sender, String alias, String[] args) { if (PlayerHelper.checkIsPlayer(sender)) { Player player = (Player)sender; if (!Utils.checkCommandSpam(player, "tp-tploc")) { // first of all, check permissions if (Permissions.checkPerms(player, "cex.tploc")) { // alte...
public static Boolean run(CommandSender sender, String alias, String[] args) { if (PlayerHelper.checkIsPlayer(sender)) { Player player = (Player)sender; if (!Utils.checkCommandSpam(player, "tp-tploc")) { // first of all, check permissions if (Permissions.checkPerms(player, "cex.tploc")) { // alte...
diff --git a/src/main/java/com/salesforce/dataloader/client/HttpClientTransport.java b/src/main/java/com/salesforce/dataloader/client/HttpClientTransport.java index a421222..f489483 100644 --- a/src/main/java/com/salesforce/dataloader/client/HttpClientTransport.java +++ b/src/main/java/com/salesforce/dataloader/client/...
false
true
public InputStream getContent() throws IOException { DefaultHttpClient client = new DefaultHttpClient(); if (config.getProxy() != null) { String proxyUser = config.getProxyUsername() == null ? "" : config.getProxyUsername(); String proxyPassword = config.getProxyPass...
public InputStream getContent() throws IOException { DefaultHttpClient client = new DefaultHttpClient(); if (config.getProxy().address() != null) { String proxyUser = config.getProxyUsername() == null ? "" : config.getProxyUsername(); String proxyPassword = config.ge...
diff --git a/carrot2/components/carrot2-input-snippet-reader/src/com/dawidweiss/carrot/input/snippetreader/extractors/regexp/SnippetDescription.java b/carrot2/components/carrot2-input-snippet-reader/src/com/dawidweiss/carrot/input/snippetreader/extractors/regexp/SnippetDescription.java index f145108ff..5da99d127 100644...
true
true
protected void initInstanceFromXML(Element snippet) { snippetMatch = new RegularExpression(snippet.element("match")); titleStart = new RegularExpression((Element) snippet.selectSingleNode("title/start")); titleEnd = new RegularExpression((Element) snippet.selectSingleNode("title/end")); ...
protected void initInstanceFromXML(Element snippet) { snippetMatch = new RegularExpression(snippet.element("match")); titleStart = new RegularExpression((Element) snippet.selectSingleNode("title/start")); titleEnd = new RegularExpression((Element) snippet.selectSingleNode("title/end")); ...
diff --git a/src/freemail/transport/Channel.java b/src/freemail/transport/Channel.java index da164a7..919c731 100644 --- a/src/freemail/transport/Channel.java +++ b/src/freemail/transport/Channel.java @@ -1,1028 +1,1033 @@ /* * Channel.java * This file is part of Freemail * Copyright (C) 2006,2007,2008 Dave Bake...
false
true
public void run() { Logger.debug(this, "RTSSender running"); //Check when the RTS should be sent long sendRtsIn = sendRTSIn(); if(sendRtsIn < 0) { return; } if(sendRtsIn > 0) { Logger.debug(this, "Rescheduling RTSSender in " + sendRtsIn + " ms when the RTS is due to be inserted"); execu...
public void run() { Logger.debug(this, "RTSSender running"); //Check when the RTS should be sent long sendRtsIn = sendRTSIn(); if(sendRtsIn < 0) { return; } if(sendRtsIn > 0) { Logger.debug(this, "Rescheduling RTSSender in " + sendRtsIn + " ms when the RTS is due to be inserted"); execu...
diff --git a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java index 31ebe7f0..ccb9632a 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java @@ -1,831 +1,831 @@ package net.osmand.plus.views; ...
true
true
public void openViewConfigureDialog() { final OsmandSettings settings = view.getSettings(); final ArrayList<Object> list = new ArrayList<Object>(); String appMode = settings.getApplicationMode().toHumanString(view.getContext()); list.add(map.getString(R.string.map_widget_reset) + " [" + appMode +"] "); l...
public void openViewConfigureDialog() { final OsmandSettings settings = view.getSettings(); final ArrayList<Object> list = new ArrayList<Object>(); String appMode = settings.getApplicationMode().toHumanString(view.getContext()); list.add(map.getString(R.string.map_widget_reset) + " [" + appMode +"] "); l...
diff --git a/mmstudio/src/org/micromanager/acquisition/engine/BurstMaker.java b/mmstudio/src/org/micromanager/acquisition/engine/BurstMaker.java index fd1081102..82df697d2 100644 --- a/mmstudio/src/org/micromanager/acquisition/engine/BurstMaker.java +++ b/mmstudio/src/org/micromanager/acquisition/engine/BurstMaker.java...
true
true
protected void process() { ImageRequest thisRequest = this.poll(); if (lastRequest_ != null) { boolean burstValid = ((lastRequest_.exposure == thisRequest.exposure) && (lastRequest_.Position == thisRequest.Position) && (lastRequest_.SliceIndex ...
protected void process() { ImageRequest thisRequest = this.poll(); if (lastRequest_ != null) { boolean burstValid = ((lastRequest_.exposure == thisRequest.exposure) && (lastRequest_.Position == thisRequest.Position) && (lastRequest_.SliceIndex ...
diff --git a/plugins/org.eclipse.gmf.codegen/src-templates/org/eclipse/gmf/codegen/templates/providers/ModelingAssistantProviderGenerator.java b/plugins/org.eclipse.gmf.codegen/src-templates/org/eclipse/gmf/codegen/templates/providers/ModelingAssistantProviderGenerator.java index cebfc5c62..ccbee80cf 100644 --- a/plugi...
false
true
public String generate(Object argument) { StringBuffer stringBuffer = new StringBuffer(); GenDiagram genDiagram = (GenDiagram) argument; stringBuffer.append(TEXT_1); stringBuffer.append(genDiagram.getProvidersPackageName()); stringBuffer.append(TEXT_2); ImportUtil importManager = new ImportU...
public String generate(Object argument) { StringBuffer stringBuffer = new StringBuffer(); GenDiagram genDiagram = (GenDiagram) argument; stringBuffer.append(TEXT_1); stringBuffer.append(genDiagram.getProvidersPackageName()); stringBuffer.append(TEXT_2); ImportUtil importManager = new ImportU...
diff --git a/src/main/java/freemarker/core/Macro.java b/src/main/java/freemarker/core/Macro.java index 4c7edc39..44ac1c92 100644 --- a/src/main/java/freemarker/core/Macro.java +++ b/src/main/java/freemarker/core/Macro.java @@ -1,271 +1,272 @@ /* * Copyright (c) 2003 The Visigoth Software Society. All rights * rese...
true
true
void sanityCheck(Environment env) throws TemplateException { boolean resolvedAnArg, hasUnresolvedArg; Expression firstUnresolvedExpression; InvalidReferenceException firstReferenceException; do { firstUnresolvedExpression = null; fi...
void sanityCheck(Environment env) throws TemplateException { boolean resolvedAnArg, hasUnresolvedArg; Expression firstUnresolvedExpression; InvalidReferenceException firstReferenceException; do { firstUnresolvedExpression = null; fi...
diff --git a/java/src/org/broadinstitute/sting/playground/gatk/walkers/PickSequenomProbes.java b/java/src/org/broadinstitute/sting/playground/gatk/walkers/PickSequenomProbes.java index 343a4c0d9..7e651c7d0 100755 --- a/java/src/org/broadinstitute/sting/playground/gatk/walkers/PickSequenomProbes.java +++ b/java/src/org/...
true
true
public String map(RefMetaDataTracker rodData, ReferenceContext ref, AlignmentContext context) { String refBase = String.valueOf(ref.getBase()); System.out.printf("Probing " + ref.getLocus() + " " + ref.getWindow() + "\n"); Iterator<ReferenceOrderedDatum> rods = rodData.getAllRods().iterator();...
public String map(RefMetaDataTracker rodData, ReferenceContext ref, AlignmentContext context) { String refBase = String.valueOf(ref.getBase()); System.out.printf("Probing " + ref.getLocus() + " " + ref.getWindow() + "\n"); Iterator<ReferenceOrderedDatum> rods = rodData.getAllRods().iterator();...
diff --git a/org/nsu/vectoreditor/Main.java b/org/nsu/vectoreditor/Main.java index 719d6ca..0e7c337 100644 --- a/org/nsu/vectoreditor/Main.java +++ b/org/nsu/vectoreditor/Main.java @@ -1,24 +1,24 @@ package org.nsu.vectoreditor; public class Main { public static void main(String args[]) { Shape re...
true
true
public static void main(String args[]) { Shape rect = new Rectangle(50, 100, 260, 200); Shape circle = new Circle(100, 150, 80); Shape triangle = new Triangle(250, 250, 400, 300, 100, 350); Shape dummy = new Circle(10, 10, 5); Scene scene = new Scene(); scene.addSha...
public static void main(String args[]) { Shape rect = new Rectangle(50, 100, 260, 200); Shape circle = new Circle(100, 150, 80); Shape triangle = new Triangle(250, 250, 400, 300, 100, 350); Shape dummy = new Circle(10, 10, 5); Scene scene = new Scene(); scene.addSha...
diff --git a/Basics/src/coolawesomeme/basics_plugin/AutoUpdater.java b/Basics/src/coolawesomeme/basics_plugin/AutoUpdater.java index 4691058..de6f151 100644 --- a/Basics/src/coolawesomeme/basics_plugin/AutoUpdater.java +++ b/Basics/src/coolawesomeme/basics_plugin/AutoUpdater.java @@ -1,107 +1,110 @@ package coolawesom...
false
true
public static void checkForUpdate(Basics basics){ try { URL url = new URL("https://raw.github.com/coolawesomeme/Basics/master/UPDATE.txt"); BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream())); while ((pluginAcquiredVersion = in.re...
public static void checkForUpdate(Basics basics){ try { URL url = new URL("https://raw.github.com/coolawesomeme/Basics/master/UPDATE.txt"); BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream())); while ((pluginAcquiredVersion = in.re...
diff --git a/src/hdfs/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java b/src/hdfs/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java index 2eff1f859..c420b296b 100644 --- a/src/hdfs/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java +++ b/src/hdfs/org/apache/hadoop/hdfs/server/namenod...
false
true
private void initialize(final Configuration conf) throws IOException { final InetSocketAddress infoSocAddr = getHttpAddress(conf); infoBindAddress = infoSocAddr.getHostName(); if (UserGroupInformation.isSecurityEnabled()) { SecurityUtil.login(conf, DFSConfigKeys.DFS_SECONDARY_NAMENODE_KEY...
private void initialize(final Configuration conf) throws IOException { final InetSocketAddress infoSocAddr = getHttpAddress(conf); infoBindAddress = infoSocAddr.getHostName(); if (UserGroupInformation.isSecurityEnabled()) { SecurityUtil.login(conf, DFSConfigKeys.DFS_SECONDARY_NAMENODE_KEY...
diff --git a/SpagoBIGeoReportEngine/src/it/eng/spagobi/engines/georeport/features/provider/FeaturesProviderDAOFileImpl.java b/SpagoBIGeoReportEngine/src/it/eng/spagobi/engines/georeport/features/provider/FeaturesProviderDAOFileImpl.java index eeea22599..e84e61030 100644 --- a/SpagoBIGeoReportEngine/src/it/eng/spagobi/e...
true
true
private void createIndex(String filename, String geoIdPName) { String resourcesDir; File targetFile; logger.debug("IN"); try { Assert.assertTrue(!StringUtilities.isEmpty(filename), "Input parameter [filename] cannot be null or empty"); Assert.assertTrue(!StringUtilities.isEmpty(geoIdPName), ...
private void createIndex(String filename, String geoIdPName) { String resourcesDir; File targetFile; logger.debug("IN"); try { Assert.assertTrue(!StringUtilities.isEmpty(filename), "Input parameter [filename] cannot be null or empty"); Assert.assertTrue(!StringUtilities.isEmpty(geoIdPName), ...
diff --git a/src/org/melonbrew/fe/API.java b/src/org/melonbrew/fe/API.java index cec4540..05cc2ef 100755 --- a/src/org/melonbrew/fe/API.java +++ b/src/org/melonbrew/fe/API.java @@ -1,103 +1,103 @@ package org.melonbrew.fe; import java.text.DecimalFormat; import java.util.List; import org.bukkit.ChatColor; impo...
false
true
public String format(double amount){ amount = getMoneyRounded(amount); String suffix = " "; if (amount == 1.0){ suffix = getCurrencySingle(); }else { suffix = getCurrencyMultiple(); } if (suffix.equalsIgnoreCase(" ")){ suffix = ""; } return Phrase.SECONDARY_COLOR.parse() + getCurrenc...
public String format(double amount){ amount = getMoneyRounded(amount); String suffix = " "; if (amount == 1.0){ suffix += getCurrencySingle(); }else { suffix += getCurrencyMultiple(); } if (suffix.equalsIgnoreCase(" ")){ suffix = ""; } return Phrase.SECONDARY_COLOR.parse() + getCurre...
diff --git a/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/ImageView.java b/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/ImageView.java index d7801747..057e47a9 100644 --- a/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/ImageView.java +++ b/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/ImageView.java @@ -1,169...
true
true
public boolean setUrl(String cameraUrl) { if ((cameraUrl == null) || cameraUrl.trim().equals("")) { currentCameraUrl = null; if (image != null) { image.setUrl(""); } image = new Image(); image.setWidth(videoWidth); image.setHeight(videoHeight); image.setUrl(videoPoster); image.setTitle...
public boolean setUrl(String cameraUrl) { if ((cameraUrl == null) || cameraUrl.trim().equals("")) { currentCameraUrl = null; if (image != null) { image.setUrl(""); } image = new Image(); image.setWidth(videoWidth); image.setHeight(videoHeight); image.setUrl(videoPoster); image.setTitle...
diff --git a/aura/src/main/java/org/auraframework/http/AuraFrameworkServlet.java b/aura/src/main/java/org/auraframework/http/AuraFrameworkServlet.java index fc13901121..214b2fe252 100644 --- a/aura/src/main/java/org/auraframework/http/AuraFrameworkServlet.java +++ b/aura/src/main/java/org/auraframework/http/AuraFramewo...
false
true
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // defend against directory traversal attack // getPathInfo() has already resolved all ".." * "%2E%2E" relative // references in the path // and ensured that no direc...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // defend against directory traversal attack // getPathInfo() has already resolved all ".." * "%2E%2E" relative // references in the path // and ensured that no direc...
diff --git a/src/com/android/settings/TextToSpeechSettings.java b/src/com/android/settings/TextToSpeechSettings.java index 23959c87c..fa9ea583f 100644 --- a/src/com/android/settings/TextToSpeechSettings.java +++ b/src/com/android/settings/TextToSpeechSettings.java @@ -1,692 +1,714 @@ /* * Copyright (C) 2009 The Andr...
true
true
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == VOICE_DATA_INTEGRITY_CHECK) { if (data == null){ // The CHECK_TTS_DATA activity for the plugin did not run properly; // disable the preview and install controls and ...
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == VOICE_DATA_INTEGRITY_CHECK) { if (data == null){ // The CHECK_TTS_DATA activity for the plugin did not run properly; // disable the preview and install controls and ...
diff --git a/android/src/de/hsa/otma/android/map/Board.java b/android/src/de/hsa/otma/android/map/Board.java index 9a0034b..258abb5 100644 --- a/android/src/de/hsa/otma/android/map/Board.java +++ b/android/src/de/hsa/otma/android/map/Board.java @@ -1,175 +1,175 @@ package de.hsa.otma.android.map; import android.uti...
true
true
private void buildBoard() { BoardElement map1x1 = createBoardElementAndPutToBoard(1, 1, R.drawable.map_1x1); BoardElement map1x2 = createBoardElementAndPutToBoard(2, 1, R.drawable.map_1x2); BoardElement map1x3 = createBoardElementAndPutToBoard(3, 1, R.drawable.map_1x3); BoardElement ...
private void buildBoard() { BoardElement map1x1 = createBoardElementAndPutToBoard(1, 1, R.drawable.map_1x1); BoardElement map1x2 = createBoardElementAndPutToBoard(2, 1, R.drawable.map_1x2); BoardElement map1x3 = createBoardElementAndPutToBoard(3, 1, R.drawable.map_1x3); BoardElement ...
diff --git a/deegree-core/deegree-core-cs/src/main/java/org/deegree/cs/transformations/TransformationFactory.java b/deegree-core/deegree-core-cs/src/main/java/org/deegree/cs/transformations/TransformationFactory.java index 59c495fa15..4eed83eadf 100644 --- a/deegree-core/deegree-core-cs/src/main/java/org/deegree/cs/tra...
false
true
private Transformation createTransformation( ICompoundCRS sourceCRS, ICompoundCRS targetCRS ) throws TransformationException { if ( sourceCRS.getUnderlyingCRS().equals( targetCRS.getUnderlyingCRS() ) ) { return null; } sourceCRS = ( (CompoundCRS) resol...
private Transformation createTransformation( ICompoundCRS sourceCRS, ICompoundCRS targetCRS ) throws TransformationException { if ( sourceCRS.getUnderlyingCRS().equals( targetCRS.getUnderlyingCRS() ) ) { return null; } sourceCRS = ( (CompoundCRS) resol...
diff --git a/core/src/visad/trunk/data/mcidas/McIDASGridReader.java b/core/src/visad/trunk/data/mcidas/McIDASGridReader.java index 2216044b0..bf8dff578 100644 --- a/core/src/visad/trunk/data/mcidas/McIDASGridReader.java +++ b/core/src/visad/trunk/data/mcidas/McIDASGridReader.java @@ -1,138 +1,138 @@ // // McIDASGridD...
true
true
private void readEntry(int ent) { try { int te = entry[ent] * 4; System.out.println("Entry 0 = "+te); byte[] gridHeader = new byte[256]; fn.seek(te); fn.readFully(gridHeader); //gridHeader[32]='m'; // we had to make the units m instead of M McIDASGridDirectory mgd...
private void readEntry(int ent) { try { int te = entry[ent] * 4; System.out.println("Entry 0 = "+te); byte[] gridHeader = new byte[256]; fn.seek(te); fn.readFully(gridHeader); //gridHeader[32]='m'; // we had to make the units m instead of M McIDASGridDirectory mgd...
diff --git a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/FindFileCommand.java b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/FindFileCommand.java index a3dab8f1..6c34db22 100644 --- a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/FindFileCommand...
true
true
public void execute(EditorAdaptor editorAdaptor) throws CommandExecutionException { String[] paths = editorAdaptor.getConfiguration().get(Options.PATH).split(","); boolean success = editorAdaptor.getFileService().findAndOpenFile(filename, paths); if(! success) { editorAdaptor.getUserIn...
public void execute(EditorAdaptor editorAdaptor) throws CommandExecutionException { String[] paths = editorAdaptor.getConfiguration().get(Options.PATH).split(","); boolean success = editorAdaptor.getFileService().findAndOpenFile(filename, paths); if(! success) { editorAdaptor.getUserIn...
diff --git a/apptests/GattServerApp/src/com/android/bluetooth/test/GattServerAppReceiver.java b/apptests/GattServerApp/src/com/android/bluetooth/test/GattServerAppReceiver.java index 67e3f2a..90feb23 100644 --- a/apptests/GattServerApp/src/com/android/bluetooth/test/GattServerAppReceiver.java +++ b/apptests/GattServerA...
true
true
public void onReceive(Context context, Intent intent) { final String action = intent.getAction(); BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); if(action != null && action.equalsIgnoreCase(BluetoothAdapter.ACTION_STATE_CHANGED)) { if (intent.getIntExt...
public void onReceive(Context context, Intent intent) { final String action = intent.getAction(); BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); if(action != null && action.equalsIgnoreCase(BluetoothAdapter.ACTION_STATE_CHANGED)) { if (intent.getIntExt...
diff --git a/src/main/java/org/apache/maven/plugin/nar/NarSystemGenerate.java b/src/main/java/org/apache/maven/plugin/nar/NarSystemGenerate.java index e3c81617..d33df60f 100644 --- a/src/main/java/org/apache/maven/plugin/nar/NarSystemGenerate.java +++ b/src/main/java/org/apache/maven/plugin/nar/NarSystemGenerate.java @...
false
true
public void execute() throws MojoExecutionException, MojoFailureException { if ( shouldSkip() ) return; // get packageName if specified for JNI. String packageName = null; String narSystemName = null; String narSystemDirectory = null; boolean ...
public void execute() throws MojoExecutionException, MojoFailureException { if ( shouldSkip() ) return; // get packageName if specified for JNI. String packageName = null; String narSystemName = null; String narSystemDirectory = null; boolean ...
diff --git a/test/test/RunXmlTest.java b/test/test/RunXmlTest.java index 3ee13c3..c8ad1d8 100644 --- a/test/test/RunXmlTest.java +++ b/test/test/RunXmlTest.java @@ -1,53 +1,51 @@ /* * Copyright (C) 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file ...
false
true
public void testXmlRoundtrip() { Scenario a15dalvik = new Scenario(ImmutableMap.of( "foo", "A", "bar", "15", "vm", "dalvikvm")); Scenario b15dalvik = new Scenario(ImmutableMap.of( "foo", "B", "bar", "15", "vm", "dalvikvm")); Run toEncode = new Run(ImmutableMap.of(a15dalvik, new Measuremen...
public void testXmlRoundtrip() { Scenario a15dalvik = new Scenario(ImmutableMap.of( "foo", "A", "bar", "15", "vm", "dalvikvm")); Scenario b15dalvik = new Scenario(ImmutableMap.of( "foo", "B", "bar", "15", "vm", "dalvikvm")); Run toEncode = new Run(ImmutableMap.of(a15dalvik, new Measuremen...
diff --git a/android/src/org/shokai/goldfish/API.java b/android/src/org/shokai/goldfish/API.java index fbb4475..821c42c 100644 --- a/android/src/org/shokai/goldfish/API.java +++ b/android/src/org/shokai/goldfish/API.java @@ -1,46 +1,46 @@ package org.shokai.goldfish; import java.util.*; import java.io.*; import...
true
true
public String post(String tag, String action) throws Exception{ HttpClient client = new DefaultHttpClient(); HttpPost httppost = new HttpPost(this.api_url); List<NameValuePair> params = new ArrayList<NameValuePair>(); params.add(new BasicNameValuePair("tag", tag)); params.add...
public String post(String tag, String action) throws Exception{ HttpClient client = new DefaultHttpClient(); HttpPost httppost = new HttpPost(this.api_url+"/android"); List<NameValuePair> params = new ArrayList<NameValuePair>(); params.add(new BasicNameValuePair("tag", tag)); ...
diff --git a/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/AbstractBackend.java b/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/AbstractBackend.java index 922f0e7f3..999f67bf9 100644 --- a/eclipse/plugins/net.sf.orcc.backends/src/net/sf/orcc/backends/AbstractBackend.java +++ b/eclipse/pl...
true
true
public Object start(IApplicationContext context) throws Exception { Options options = new Options(); Option opt; // Required command line arguments opt = new Option("p", "project", true, "Project name"); opt.setRequired(true); options.addOption(opt); opt = new Option("o", "output", true, "Output folde...
public Object start(IApplicationContext context) throws Exception { Options options = new Options(); Option opt; // Required command line arguments opt = new Option("p", "project", true, "Project name"); opt.setRequired(true); options.addOption(opt); opt = new Option("o", "output", true, "Output folde...
diff --git a/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java b/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java index c8c29aa7..8a7bd642 100644 --- a/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java +++ b/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java @@ -1,176 +1,...
false
true
public void invoke(final PartnerRoleMessageExchange odeMex) { boolean isTwoWay = odeMex.getMessageExchangePattern() == org.apache.ode.bpel.iapi.MessageExchange.MessageExchangePattern.REQUEST_RESPONSE; try { Element msgContent = SOAPUtils.wrap(odeMex.getRequest().getMessag...
public void invoke(final PartnerRoleMessageExchange odeMex) { boolean isTwoWay = odeMex.getMessageExchangePattern() == org.apache.ode.bpel.iapi.MessageExchange.MessageExchangePattern.REQUEST_RESPONSE; try { Element msgContent = SOAPUtils.wrap(odeMex.getRequest().getMessag...
diff --git a/src/com/android/deskclock/timer/CountingTimerView.java b/src/com/android/deskclock/timer/CountingTimerView.java index 58b89675..54b11552 100644 --- a/src/com/android/deskclock/timer/CountingTimerView.java +++ b/src/com/android/deskclock/timer/CountingTimerView.java @@ -1,315 +1,307 @@ /* * Copyright (C)...
true
true
public void setTime(long time, boolean showHundredths, boolean update) { boolean neg = false, showNeg = false; String format = null; if (time < 0) { time = -time; neg = showNeg = true; } long hundreds, seconds, minutes, hours; seconds = time / ...
public void setTime(long time, boolean showHundredths, boolean update) { boolean neg = false, showNeg = false; String format = null; if (time < 0) { time = -time; neg = showNeg = true; } long hundreds, seconds, minutes, hours; seconds = time / ...
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index 0ffb4be7..fcbe3878 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -1,2834 +1,2835 @@ /* * Copyright (C) 2010 The Android Open Source Project * * Licensed und...
true
true
public boolean onOptionsItemSelected(MenuItem item) { if (null == getCurrentTopWebView()) { return false; } if (mMenuIsDown) { // The shortcut action consumes the MENU. Even if it is still down, // it won't trigger the next shortcut action. In the case of ...
public boolean onOptionsItemSelected(MenuItem item) { if (null == getCurrentTopWebView()) { return false; } if (mMenuIsDown) { // The shortcut action consumes the MENU. Even if it is still down, // it won't trigger the next shortcut action. In the case of ...
diff --git a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/validation/TLDValidator.java b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/validation/TLDValidator.java index 4f9388385..b9f4e87db 100644 --- a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/int...
false
true
public ValidationResult validate(IResource resource, int kind, ValidationState state, IProgressMonitor monitor) { if (resource.getType() != IResource.FILE) return null; ValidationResult result = new ValidationResult(); IFile file = (IFile) resource; if (file.isAccessible()) { // TAGX if (fTagXexts.co...
public ValidationResult validate(IResource resource, int kind, ValidationState state, IProgressMonitor monitor) { if (resource.getType() != IResource.FILE) return null; ValidationResult result = new ValidationResult(); IFile file = (IFile) resource; if (file.isAccessible()) { // TAGX if (fTagXexts.co...
diff --git a/android/src/com/google/zxing/client/android/QRCodeEncoder.java b/android/src/com/google/zxing/client/android/QRCodeEncoder.java index 49420436..76fd8495 100755 --- a/android/src/com/google/zxing/client/android/QRCodeEncoder.java +++ b/android/src/com/google/zxing/client/android/QRCodeEncoder.java @@ -1,194...
true
true
private boolean encodeContents(Intent intent) { if (intent == null) { return false; } String type = intent.getStringExtra(Intents.Encode.TYPE); if (type == null || type.length() == 0) { return false; } if (type.equals(Contents.Type.TEXT)) { String data = intent.getStringExtr...
private boolean encodeContents(Intent intent) { if (intent == null) { return false; } String type = intent.getStringExtra(Intents.Encode.TYPE); if (type == null || type.length() == 0) { return false; } if (type.equals(Contents.Type.TEXT)) { String data = intent.getStringExtr...
diff --git a/src/edu/csupomona/kyra/component/render/ai/AntiZombieRender.java b/src/edu/csupomona/kyra/component/render/ai/AntiZombieRender.java index de18293..02ce672 100644 --- a/src/edu/csupomona/kyra/component/render/ai/AntiZombieRender.java +++ b/src/edu/csupomona/kyra/component/render/ai/AntiZombieRender.java @@ ...
false
true
public AntiZombieRender(String id) throws SlickException { super(id); Image[] bERightmovement = { new Image("img/anti-enemy-move-right_001.png"), new Image("img/anti-enemy-move-right_002.png"), new Image("img/anti-enemy-move-right_001.png"), new Image("img/anti-enemy-move-right_003.png") }; Ima...
public AntiZombieRender(String id) throws SlickException { super(id); int[] moveTween = {200, 200, 200, 200}; Image[] moveRight = { new Image("img/anti-enemy-move-right_001.png"), new Image("img/anti-enemy-move-right_002.png"), new Image("img/anti-enemy-move-right_001.png"), new Image("img/anti-e...
diff --git a/spring-integration-core/src/main/java/org/springframework/integration/aggregator/AbstractCorrelatingMessageHandler.java b/spring-integration-core/src/main/java/org/springframework/integration/aggregator/AbstractCorrelatingMessageHandler.java index d589a2e920..660ef818c4 100644 --- a/spring-integration-core...
true
true
private void forceComplete(MessageGroup group) { Object correlationKey = group.getGroupId(); // UUIDConverter is no-op if already converted Lock lock = this.lockRegistry.obtain(UUIDConverter.getUUID(correlationKey).toString()); boolean removeGroup = true; try { lock.lockInterruptibly(); try { /* ...
private void forceComplete(MessageGroup group) { Object correlationKey = group.getGroupId(); // UUIDConverter is no-op if already converted Lock lock = this.lockRegistry.obtain(UUIDConverter.getUUID(correlationKey).toString()); boolean removeGroup = true; try { lock.lockInterruptibly(); try { /* ...
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ClasspathVariableTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ClasspathVariableTests.java index 8f15ffdb5..978866385 100644 --- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/Classpat...
true
true
public void testProjectResolutionWithVariableArchiveAndSourceAttachmentWithExtension() throws Exception { IJavaProject project = JavaProjectHelper.createJavaProject("VariableSource"); IResource archive = getJavaProject().getProject().getFolder("src").getFile("A.jar"); IProject root = getJavaProject().getProject(...
public void testProjectResolutionWithVariableArchiveAndSourceAttachmentWithExtension() throws Exception { IJavaProject project = JavaProjectHelper.createJavaProject("VariableSource"); IResource archive = getJavaProject().getProject().getFolder("src").getFile("A.jar"); IProject root = getJavaProject().getProject(...
diff --git a/org.neo4j.neoclipse/src/main/java/org/neo4j/neoclipse/editor/SqlEditorView.java b/org.neo4j.neoclipse/src/main/java/org/neo4j/neoclipse/editor/SqlEditorView.java index 8db7e1e..79a5483 100644 --- a/org.neo4j.neoclipse/src/main/java/org/neo4j/neoclipse/editor/SqlEditorView.java +++ b/org.neo4j.neoclipse/src...
true
true
public void createPartControl( Composite parent ) { parent.setLayout( new GridLayout( 1, false ) ); { ToolBar toolBar = new ToolBar( parent, SWT.FLAT | SWT.RIGHT ); { tltmExecuteCypherSql = new ToolItem( toolBar, SWT.PUSH ); tltmExecuteCyph...
public void createPartControl( Composite parent ) { parent.setLayout( new GridLayout( 1, false ) ); { ToolBar toolBar = new ToolBar( parent, SWT.FLAT | SWT.RIGHT ); { tltmExecuteCypherSql = new ToolItem( toolBar, SWT.PUSH ); tltmExecuteCyph...
diff --git a/src/model/undo/AddItems.java b/src/model/undo/AddItems.java index a5bc47a..1b9c36a 100644 --- a/src/model/undo/AddItems.java +++ b/src/model/undo/AddItems.java @@ -1,128 +1,129 @@ package model.undo; import java.util.Date; import java.util.Set; import java.util.TreeSet; import model.BarcodePrinter...
true
true
public void execute() { if (addProduct != null) { addProduct.execute(); product = addProduct.getProduct(); } if (!addedItems.isEmpty()) { for (Item item : addedItems) { container.add(item); itemManager.manage(item); BarcodePrinter.getInstance().addItemToBatch(item); } } else { for (i...
public void execute() { if (addProduct != null) { addProduct.execute(); product = addProduct.getProduct(); } if (!addedItems.isEmpty()) { for (Item item : addedItems) { container.add(item); itemManager.manage(item); product.addItem(item); BarcodePrinter.getInstance().addItemToBatch(item)...
diff --git a/core/src/com/google/zxing/qrcode/QRCodeReader.java b/core/src/com/google/zxing/qrcode/QRCodeReader.java index 3a9be4e8..c272d030 100644 --- a/core/src/com/google/zxing/qrcode/QRCodeReader.java +++ b/core/src/com/google/zxing/qrcode/QRCodeReader.java @@ -1,181 +1,181 @@ /* * Copyright 2007 ZXing authors ...
true
true
private static BitMatrix extractPureBits(BitMatrix image) throws NotFoundException { int[] leftTopBlack = image.getTopLeftOnBit(); int[] rightBottomBlack = image.getBottomRightOnBit(); if (leftTopBlack == null || rightBottomBlack == null) { throw NotFoundException.getNotFoundInstance(); } ...
private static BitMatrix extractPureBits(BitMatrix image) throws NotFoundException { int[] leftTopBlack = image.getTopLeftOnBit(); int[] rightBottomBlack = image.getBottomRightOnBit(); if (leftTopBlack == null || rightBottomBlack == null) { throw NotFoundException.getNotFoundInstance(); } ...
diff --git a/src/lib/com/izforge/izpack/compiler/Packager.java b/src/lib/com/izforge/izpack/compiler/Packager.java index e59aca68..3a1b1ae9 100644 --- a/src/lib/com/izforge/izpack/compiler/Packager.java +++ b/src/lib/com/izforge/izpack/compiler/Packager.java @@ -1,289 +1,289 @@ /* * $Id$ * IzPack * Copyright ...
true
true
public void writeSkeletonInstaller (JarOutputStream out) throws Exception { InputStream is = getClass().getResourceAsStream("lib/installer.jar"); ZipInputStream skeleton_is = null; if (is != null) { skeleton_is = new ZipInputStream (is); } if (skeleton_is == null) { skel...
public void writeSkeletonInstaller (JarOutputStream out) throws Exception { InputStream is = getClass().getResourceAsStream("lib/installer.jar"); ZipInputStream skeleton_is = null; if (is != null) { skeleton_is = new ZipInputStream (is); } if (skeleton_is == null) { skel...
diff --git a/src/org/ohmage/feedback/visualization/FeedbackTimeChart.java b/src/org/ohmage/feedback/visualization/FeedbackTimeChart.java index 8606b7b..bec4507 100644 --- a/src/org/ohmage/feedback/visualization/FeedbackTimeChart.java +++ b/src/org/ohmage/feedback/visualization/FeedbackTimeChart.java @@ -1,239 +1,240 @@...
true
true
public Intent execute(Context context) { // titles for each of the series (in this case we have only one) String[] titles = new String[] { "" }; // list of labels for each series (only one, since we only have one series) List<Date[]> dates = new ArrayList<Date[]>(); // list of values for each series (only...
public Intent execute(Context context) { // titles for each of the series (in this case we have only one) String[] titles = new String[] { "" }; // list of labels for each series (only one, since we only have one series) List<Date[]> dates = new ArrayList<Date[]>(); // list of values for each series (only...
diff --git a/src/java/org/apache/cassandra/db/ColumnIndexer.java b/src/java/org/apache/cassandra/db/ColumnIndexer.java index 8b2dc1c2e..538802e3b 100644 --- a/src/java/org/apache/cassandra/db/ColumnIndexer.java +++ b/src/java/org/apache/cassandra/db/ColumnIndexer.java @@ -1,147 +1,147 @@ /** * Licensed to the Apache...
true
true
public static void serializeInternal(IIterableColumns columns, DataOutput dos) throws IOException { int columnCount = columns.getEstimatedColumnCount(); BloomFilter bf = BloomFilter.getFilter(columnCount, 4); if (columnCount == 0) { writeEmptyHeader(dos, bf); ...
public static void serializeInternal(IIterableColumns columns, DataOutput dos) throws IOException { int columnCount = columns.getEstimatedColumnCount(); BloomFilter bf = BloomFilter.getFilter(columnCount, 4); if (columnCount == 0) { writeEmptyHeader(dos, bf); ...
diff --git a/src/main/java/at/co/hohl/Announcer/AnnouncerThread.java b/src/main/java/at/co/hohl/Announcer/AnnouncerThread.java index 643e740..712481e 100644 --- a/src/main/java/at/co/hohl/Announcer/AnnouncerThread.java +++ b/src/main/java/at/co/hohl/Announcer/AnnouncerThread.java @@ -1,68 +1,68 @@ /* * Copyright (C)...
true
true
public void run() { if (plugin.isAnnouncerEnabled()) { if (plugin.isRandom()) { lastAnnouncement = randomGenerator.nextInt() % plugin.numberOfAnnouncements(); } else { if ((++lastAnnouncement) >= plugin.numberOfAnnouncements()) { la...
public void run() { if (plugin.isAnnouncerEnabled()) { if (plugin.isRandom()) { lastAnnouncement = Math.abs(randomGenerator.nextInt() % plugin.numberOfAnnouncements()); } else { if ((++lastAnnouncement) >= plugin.numberOfAnnouncements()) { ...
diff --git a/deegree-core/deegree-core-base/src/main/java/org/deegree/gml/feature/GMLFeatureWriter.java b/deegree-core/deegree-core-base/src/main/java/org/deegree/gml/feature/GMLFeatureWriter.java index 3ab51fb48f..429a4a1153 100644 --- a/deegree-core/deegree-core-base/src/main/java/org/deegree/gml/feature/GMLFeatureWr...
true
true
private void export( Property property, GmlXlinkOptions resolveState ) throws XMLStreamException, UnknownCRSException, TransformationException { QName propName = property.getName(); PropertyType pt = property.getType(); if ( pt.getMinOccurs() == 0 ) { ...
private void export( Property property, GmlXlinkOptions resolveState ) throws XMLStreamException, UnknownCRSException, TransformationException { QName propName = property.getName(); PropertyType pt = property.getType(); if ( pt.getMinOccurs() == 0 ) { ...
diff --git a/seqware-queryengine-backend/src/test/java/com/github/seqware/queryengine/system/test/QueryVCFDumperBenchmarkTest.java b/seqware-queryengine-backend/src/test/java/com/github/seqware/queryengine/system/test/QueryVCFDumperBenchmarkTest.java index aff6a809..899ae579 100644 --- a/seqware-queryengine-backend/src...
false
true
public void generateReport(){ int i; float singleTotal = 0; float multiTotal= 0; float total = 0; System.out.println("\n"); System.out.println("Import timing for Binning: " + String.valueOf(importTimingBinning) + "\n"); System.out.println("Import timing for Naive Overlaps: " + String.valueOf(importTiming...
public void generateReport(){ int i; float singleTotal = 0; float multiTotal= 0; float total = 0; System.out.println("\n"); System.out.println("Import timing for Binning: " + String.valueOf(importTimingBinning) + "\n"); System.out.println("Import timing for Naive Overlaps: " + String.valueOf(importTiming...
diff --git a/android/voice-client-core/src/main/java/com/tuenti/voice/core/VoiceClient.java b/android/voice-client-core/src/main/java/com/tuenti/voice/core/VoiceClient.java index feb7665..fb29c26 100644 --- a/android/voice-client-core/src/main/java/com/tuenti/voice/core/VoiceClient.java +++ b/android/voice-client-core/...
false
true
private void dispatchNativeEvent( int what, int code, String data, long callId ) { switch ( what ) { case CALL_STATE_EVENT: // data contains remoteJid handleCallStateChanged( code, data, callId ); break; case CALL_ERROR_EVEN...
private void dispatchNativeEvent( int what, int code, String data, long callId ) { switch ( what ) { case CALL_STATE_EVENT: // data contains remoteJid handleCallStateChanged( code, data, callId ); break; case CALL_ERROR_EVEN...
diff --git a/src/org/hackystat/dailyprojectdata/resource/filemetric/jaxb/TestFileMetricRestApi.java b/src/org/hackystat/dailyprojectdata/resource/filemetric/jaxb/TestFileMetricRestApi.java index ec72212..baa159a 100644 --- a/src/org/hackystat/dailyprojectdata/resource/filemetric/jaxb/TestFileMetricRestApi.java +++ b/sr...
true
true
public void getDefaultFileMetric() throws Exception { // First, create a batch of DevEvent sensor data. SensorDatas batchData = new SensorDatas(); batchData.getSensorData().add( makeFileMetric("2007-04-30T02:00:00", "2007-04-30T02:00:00.001", user, "/home/hackystat-sensorbase-uh/src/or...
public void getDefaultFileMetric() throws Exception { // First, create a batch of DevEvent sensor data. SensorDatas batchData = new SensorDatas(); batchData.getSensorData().add( makeFileMetric("2007-04-30T02:00:00", "2007-04-30T02:00:00.001", user, "/home/hackystat-sensorbase-uh/src/or...
diff --git a/src/ca/eandb/jmist/framework/lens/PanoramicLens.java b/src/ca/eandb/jmist/framework/lens/PanoramicLens.java index 8d4c24e1..07c2a5a7 100644 --- a/src/ca/eandb/jmist/framework/lens/PanoramicLens.java +++ b/src/ca/eandb/jmist/framework/lens/PanoramicLens.java @@ -1,77 +1,77 @@ /** * */ package ca.eandb...
true
true
protected Ray3 viewRayAt(Point2 p) { double theta = (p.x() - 0.05) * hfov; double height = 2.0 * Math.tan(vfov / 2.0); return new Ray3( Point3.ORIGIN, new Vector3( Math.sin(theta), (0.5 - p.y()) * height, -Math.cos(theta) ).unit() ); }
protected Ray3 viewRayAt(Point2 p) { double theta = (p.x() - 0.5) * hfov; double height = 2.0 * Math.tan(vfov / 2.0); return new Ray3( Point3.ORIGIN, new Vector3( Math.sin(theta), (0.5 - p.y()) * height, -Math.cos(theta) ).unit() ); }
diff --git a/src/Gate.java b/src/Gate.java index ec03589..213fdf7 100644 --- a/src/Gate.java +++ b/src/Gate.java @@ -1,355 +1,361 @@ import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.FilenameFilter; import java.io.IOException; import java.util.ArrayList; import java....
false
true
private static Gate loadGate(File file) { Scanner scanner = null; boolean designing = false; ArrayList<ArrayList<Integer>> design = new ArrayList<ArrayList<Integer>>(); HashMap<Character, Integer> types = new HashMap<Character, Integer>(); HashMap<String, String> config = new...
private static Gate loadGate(File file) { Scanner scanner = null; boolean designing = false; ArrayList<ArrayList<Integer>> design = new ArrayList<ArrayList<Integer>>(); HashMap<Character, Integer> types = new HashMap<Character, Integer>(); HashMap<String, String> config = new...
diff --git a/src/org/jacorb/idl/ParseException.java b/src/org/jacorb/idl/ParseException.java index 72c3ef748..5fce9d4ce 100644 --- a/src/org/jacorb/idl/ParseException.java +++ b/src/org/jacorb/idl/ParseException.java @@ -1,69 +1,70 @@ /* * JacORB - a free Java ORB * * Copyright (C) 1997-2003 Gerald Bro...
true
true
public String getMessage() { return ( position != null ? position.toString() : "" ) + ": " + "parse error: " + super.getMessage(); }
public String getMessage() { return ( position != null ? (position.toString() + ": ") : "" ) + "Parse error " + ( super.getMessage() != null ? (": " + super.getMessage()) : "" ) ; }
diff --git a/org.openscada.hd.client.net/src/org/openscada/hd/client/net/Activator.java b/org.openscada.hd.client.net/src/org/openscada/hd/client/net/Activator.java index 354e89e2b..a1c62c98e 100644 --- a/org.openscada.hd.client.net/src/org/openscada/hd/client/net/Activator.java +++ b/org.openscada.hd.client.net/src/or...
true
true
public void start ( final BundleContext context ) throws Exception { this.factory = new DriverFactoryImpl (); final Dictionary<String, String> properties = new Hashtable<String, String> (); properties.put ( org.openscada.core.client.DriverFactory.INTERFACE_NAME, "hd" ); properti...
public void start ( final BundleContext context ) throws Exception { this.factory = new DriverFactoryImpl (); final Dictionary<String, String> properties = new Hashtable<String, String> (); properties.put ( org.openscada.core.client.DriverFactory.INTERFACE_NAME, "hd" ); properti...
diff --git a/Ingest/src/org/sleuthkit/autopsy/ingest/Installer.java b/Ingest/src/org/sleuthkit/autopsy/ingest/Installer.java index 754069dd3..db57922ee 100644 --- a/Ingest/src/org/sleuthkit/autopsy/ingest/Installer.java +++ b/Ingest/src/org/sleuthkit/autopsy/ingest/Installer.java @@ -1,56 +1,56 @@ /* * Autopsy Foren...
true
true
public void restored() { Logger logger = Logger.getLogger(Installer.class.getName()); logger.log(Level.INFO, "Initializing ingest manager"); final IngestManager manager = IngestManager.getDefault(); WindowManager.getDefault().invokeWhenUIReady(new Runnable() { @Override...
public void restored() { Logger logger = Logger.getLogger(Installer.class.getName()); logger.log(Level.INFO, "Initializing ingest manager"); final IngestManager manager = IngestManager.getDefault(); WindowManager.getDefault().invokeWhenUIReady(new Runnable() { @Override...
diff --git a/Fanorona/src/team01/GUI.java b/Fanorona/src/team01/GUI.java index 80bc9be..afdf9c9 100644 --- a/Fanorona/src/team01/GUI.java +++ b/Fanorona/src/team01/GUI.java @@ -1,322 +1,322 @@ package team01; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.ArrayList; import ...
false
true
public GUI(int width, int height, boolean aiPlayer, int player) { //gameInProgress = false; setBackground(new Color(47, 79, 79)); //create menu JMenuBar b; Menu menu = new Menu(); b = menu.get_bar(); setJMenuBar(b); b.setVisible(true); width = menu.get_col_size(); height = menu.get_row_siz...
public GUI(int width, int height, boolean aiPlayer, int player) { //gameInProgress = false; setBackground(new Color(47, 79, 79)); //create menu JMenuBar b; Menu menu = new Menu(); b = menu.get_bar(); setJMenuBar(b); b.setVisible(true); // width = menu.get_col_size(); // height = menu.get_row...
diff --git a/webinos/common/android/app/src/org/webinos/app/anode/AnodeReceiver.java b/webinos/common/android/app/src/org/webinos/app/anode/AnodeReceiver.java index 25bd04e3..50fc38fc 100644 --- a/webinos/common/android/app/src/org/webinos/app/anode/AnodeReceiver.java +++ b/webinos/common/android/app/src/org/webinos/ap...
true
true
public void onReceive(Context ctx, Intent intent) { /* get the system options */ String action = intent.getAction(); if(ACTION_STOPALL.equals(action)) { if(Runtime.isInitialised()) { for(Isolate isolate : AnodeService.getAll()) stopInstance(isolate); } /* temporary ... kill the process */ Sy...
public void onReceive(Context ctx, Intent intent) { /* get the system options */ String action = intent.getAction(); if(ACTION_STOPALL.equals(action)) { if(Runtime.isInitialised()) { for(Isolate isolate : AnodeService.getAll()) stopInstance(isolate); } /* temporary ... kill the process */ Sy...
diff --git a/src/java/org/infoglue/deliver/taglib/common/RSSFeedTag.java b/src/java/org/infoglue/deliver/taglib/common/RSSFeedTag.java index 672862c26..293f3dca1 100755 --- a/src/java/org/infoglue/deliver/taglib/common/RSSFeedTag.java +++ b/src/java/org/infoglue/deliver/taglib/common/RSSFeedTag.java @@ -1,132 +1,136 @@...
true
true
public int doEndTag() throws JspException { try { RssHelper rssHelper = new RssHelper(); SyndFeed feed = rssHelper.getFeed(this.feedType, this.title, this.link, this.description); feed.setEntries(entries); String rss = rssHelper.render(feed); setResultAttribute...
public int doEndTag() throws JspException { try { RssHelper rssHelper = new RssHelper(); SyndFeed feed = rssHelper.getFeed(this.feedType, this.title, this.link, this.description); feed.setEntries(entries); String rss = rssHelper.render(feed); setResultAttribute...
diff --git a/src/main/java/org/castor/transactionmanager/JOTMTransactionManagerFactory.java b/src/main/java/org/castor/transactionmanager/JOTMTransactionManagerFactory.java index fd5db3c7..d651a043 100644 --- a/src/main/java/org/castor/transactionmanager/JOTMTransactionManagerFactory.java +++ b/src/main/java/org/castor...
false
true
public TransactionManager getTransactionManager( final String factoryClassName, final Properties properties) throws TransactionManagerAcquireException { TransactionManager transactionManager = null; try { Class factory = Class.forName(factoryClassName); ...
public TransactionManager getTransactionManager( final String factoryClassName, final Properties properties) throws TransactionManagerAcquireException { TransactionManager transactionManager = null; try { Class factory = Class.forName(factoryClassName); ...
diff --git a/core/sail/rdbms/src/main/java/org/openrdf/sail/rdbms/schema/ValueTable.java b/core/sail/rdbms/src/main/java/org/openrdf/sail/rdbms/schema/ValueTable.java index 758b5db92..42c838ffe 100644 --- a/core/sail/rdbms/src/main/java/org/openrdf/sail/rdbms/schema/ValueTable.java +++ b/core/sail/rdbms/src/main/java/o...
false
true
public void initialize() throws SQLException { StringBuilder sb = new StringBuilder(); sb.append("INSERT INTO "); if (temporary == null) { sb.append(table.getName()); } else { sb.append(temporary.getName()); } sb.append(" (id, value) VALUES (?, ?)"); INSERT = sb.toString(); if (temporary != null)...
public void initialize() throws SQLException { StringBuilder sb = new StringBuilder(); sb.append("INSERT INTO "); if (temporary == null) { sb.append(table.getName()); } else { sb.append(temporary.getName()); } sb.append(" (id, value) VALUES (?, ?)"); INSERT = sb.toString(); sb.delete(0, sb.length...
diff --git a/deegree-services/deegree-services-wms/src/main/java/org/deegree/services/wms/OldStyleMapService.java b/deegree-services/deegree-services-wms/src/main/java/org/deegree/services/wms/OldStyleMapService.java index 8c4509eb01..a3094346a7 100644 --- a/deegree-services/deegree-services-wms/src/main/java/org/deegr...
true
true
private void paintMap( Graphics2D g, GetMap gm, LinkedList<String> warnings ) throws MissingDimensionValue, InvalidDimensionValue { Iterator<Layer> layers = gm.getLayers().iterator(); Iterator<Style> styles = gm.getStyles().iterator(); if ( reduce( true, map( gm....
private void paintMap( Graphics2D g, GetMap gm, LinkedList<String> warnings ) throws MissingDimensionValue, InvalidDimensionValue { Iterator<Layer> layers = gm.getLayers().iterator(); Iterator<Style> styles = gm.getStyles().iterator(); if ( reduce( true, map( gm....
diff --git a/src/com/android/browser/FetchUrlMimeType.java b/src/com/android/browser/FetchUrlMimeType.java index 33b58086..6556b380 100644 --- a/src/com/android/browser/FetchUrlMimeType.java +++ b/src/com/android/browser/FetchUrlMimeType.java @@ -1,139 +1,143 @@ /* * Copyright (C) 2008 The Android Open Source Projec...
false
true
public void run() { // User agent is likely to be null, though the AndroidHttpClient // seems ok with that. AndroidHttpClient client = AndroidHttpClient.newInstance(mUserAgent); HttpHost httpHost; try { httpHost = Proxy.getPreferredHttpHost(mContext, mUri); ...
public void run() { // User agent is likely to be null, though the AndroidHttpClient // seems ok with that. AndroidHttpClient client = AndroidHttpClient.newInstance(mUserAgent); HttpHost httpHost; try { httpHost = Proxy.getPreferredHttpHost(mContext, mUri); ...
diff --git a/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/management/Cluster.java b/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/management/Cluster.java index fc803330..a4257c3e 100644 --- a/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/management/Cluster.java +++ b/fog...
false
true
public void setSuperiorCoordinatorCEP(ComChannel pCoordinatorChannel, Name pCoordName, int pCoordToken, HRMName pAddress) { setToken(pCoordToken); Logging.log(this, "Setting " + (++mCoordinatorUpdateCounter) + " time a new coordinator: " + pCoordName + "/" + pCoordinatorChannel + " with routing address " + pAd...
public void setSuperiorCoordinatorCEP(ComChannel pComChannel, Name pCoordName, int pCoordToken, HRMName pAddress) { setToken(pCoordToken); Logging.log(this, "Setting " + (++mCoordinatorUpdateCounter) + " time a new coordinator: " + pCoordName + "/" + pComChannel + " with routing address " + pAddress); mChann...